:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #17253c;
  background: #f8faff;
  font-synthesis: none;
  --accent: #2463eb;
  --accent-hover: #1b52cf;
  --line: #e3e9f3;
  --muted: #6b7b91;
  --soft: #f0f5ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #9bbdfb;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  font-weight: 680;
  letter-spacing: -1.3px;
  margin-bottom: 12px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.7;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.subtle {
  font-size: 11px;
  color: #71829c;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: #5380c5;
  margin: 0 0 12px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 24px;
  font-weight: 730;
  letter-spacing: -0.85px;
  color: #172b49;
  white-space: nowrap;
}
.brand-icon {
  display: inline-block;
  flex: none;
  width: 35px;
  height: 35px;
  background: url('./logo.svg') center/contain no-repeat;
  font-size: 0;
  overflow: hidden;
  border-radius: 9px;
}
.primary,
.secondary,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 3px #245acc10;
}
.primary:hover {
  background: var(--accent-hover);
}
.primary > span {
  margin-left: auto;
}
.secondary {
  background: #fff;
  border-color: #dfe6f2;
  color: #3a4f70;
}
.secondary:hover {
  background: #f7faff;
  border-color: #a8c0e8;
}
.danger-button {
  color: #b33c46;
  background: #fff1f2;
  border-color: #f6d6db;
  font-size: 12px;
  padding: 10px 14px;
}
.danger-button:hover {
  background: #ffe6e9;
}
.text-button {
  display: block;
  background: none;
  border: 0;
  color: #6b82a2;
  padding: 12px 0;
  font-size: 12px;
  text-align: left;
}
.text-button:hover {
  color: #245ed7;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 24px 0 18px;
}
input,
select {
  display: block;
  width: 100%;
  padding: 12px 13px;
  margin-top: 9px;
  background: #fff;
  border: 1px solid #dce4f0;
  border-radius: 7px;
  outline: none;
  color: #243855;
}
input:focus,
select:focus {
  border-color: #6d9bf0;
  box-shadow: 0 0 0 3px #2463eb0d;
}
input::placeholder {
  color: #8d9bb0;
}
.error {
  font-size: 12px;
  color: #b03c47;
  min-height: 18px;
}
.notice {
  padding: 15px 18px;
  background: #f4f8ff;
  border: 1px solid #dbe8fb;
  color: #50719e;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: auto;
  background: #fff;
  padding: 0 60px;
  gap: 100px;
}
.login-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 0;
  min-height: 680px;
}
.login-story h1 {
  font-size: clamp(38px, 4.4vw, 59px);
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin: 22px 0;
  color: #172b49;
}
.login-story h1 > span {
  color: #2463eb;
}
.login-story > div > p:not(.eyebrow) {
  color: #73839a;
  font-size: 14px;
  max-width: 365px;
}
.connection-art {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 40px 0 30px;
}
.mini-screen {
  width: 112px;
  height: 76px;
  border: 2px solid #9cbaeb;
  border-radius: 9px;
  background: #f0f6ff;
  position: relative;
  box-shadow: inset 0 0 0 6px white;
}
.mini-screen:before {
  content: '';
  position: absolute;
  inset: 17px 21px;
  background: #dfebff;
  border-radius: 3px;
}
.mini-screen:after {
  content: '';
  position: absolute;
  width: 37px;
  bottom: -12px;
  left: calc(50% - 18px);
  border-top: 2px solid #9cbaeb;
}
.mini-screen.small {
  width: 80px;
  height: 57px;
}
.mini-screen.small:before {
  inset: 14px 16px;
}
.connection-art i {
  width: 60px;
  border-top: 1px dashed #a9c1e7;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}
.login-form {
  width: 100%;
  max-width: 425px;
  padding: 37px 34px 27px;
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  box-shadow: 0 12px 42px #1d427308;
}
.login-form h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.login-form > p.muted {
  font-size: 13px;
}
.login-form > .primary {
  width: 100%;
  padding: 13px 16px;
}
.login-form .small {
  font-size: 11px;
  line-height: 1.8;
}
.login-form .error {
  margin-top: 13px;
}
.login-form label {
  font-size: 11px;
}
body:has(.login-layout:not(.hidden)) {
  background: white;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 230px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.sidebar > .brand {
  padding: 0 5px;
}
.workspace-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 10px;
  margin: 29px 0 18px;
  background: #fafcff;
  border: 1px solid #e9eef7;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #415675;
}
.workspace-tag small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #8595ac;
  margin-top: 4px;
}
.workspace-avatar,
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  background: #ecf3ff;
  color: #5b82bc;
  font-size: 11px;
  border: 1px solid #dfe9f9;
  flex: none;
}
.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: #6e809b;
  padding: 12px;
  border-radius: 7px;
  margin: 5px 0;
}
.nav-item.selected {
  color: #2463d8;
  background: #edf4ff;
  font-weight: 600;
}
.nav-item:hover {
  background: #f5f8fd;
}
.nav-item.selected:hover {
  background: #e8f1ff;
}
.nav-item span {
  font-size: 17px;
  width: 19px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  color: #8696ad;
  font-size: 10px;
  line-height: 1.7;
  padding: 18px 8px 0;
}
.sidebar-bottom .text-button {
  font-size: 11px;
  margin-top: 3px;
}
.connection-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4e8be4;
  margin-right: 5px;
}
.main {
  flex: 1;
  min-width: 0;
  margin-left: 230px;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #8090a7;
}
.topbar-account {
  display: flex;
  gap: 15px;
  align-items: center;
}
.private-pill {
  color: #8396b2;
  font-size: 10px;
}
.page {
  max-width: 1350px;
  margin: auto;
  padding: 41px 40px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 31px;
  margin-bottom: 9px;
}
.page-heading p.muted {
  font-size: 12px;
  margin: 0;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 25px 0 35px;
}
.stats > div {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.stats span {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1.2px;
  color: #294465;
}
.stats small {
  color: #8192a9;
  font-size: 11px;
}
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 18px;
}
.list-toolbar h3 {
  margin: 0;
  font-size: 13px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-wrap input {
  margin: 0;
  width: 205px;
  font-size: 11px;
  padding: 10px 12px;
}
.search-wrap button {
  padding: 9px 12px;
  font-size: 16px;
}
.device-card {
  display: flex;
  align-items: center;
  gap: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 23px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.device-card:hover {
  border-color: #aac5ee;
}
.device-glyph {
  width: 49px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #6e95d0;
  background: #f0f6ff;
  font-size: 25px;
  border: 1px solid #e3edfc;
  flex: none;
}
.device-info {
  flex: 1;
  min-width: 0;
}
.device-info h3 {
  margin: 0 0 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.device-info p {
  margin: 0;
  font-size: 10px;
  color: #8a9ab1;
}
.device-status {
  font-size: 10px;
  color: #8e9bb0;
  white-space: nowrap;
}
.device-status.online {
  color: #3c78c9;
}
.remove-device {
  background: transparent;
  border: 0;
  font-size: 17px;
  color: #a1afc2;
  padding: 5px;
}
.remove-device:hover {
  color: #b14352;
}
.device-card .primary {
  font-size: 11px;
  padding: 10px 16px;
}
.empty {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 60px 20px 56px;
}
.empty h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.empty p {
  font-size: 12px;
  color: #8798af;
  line-height: 1.9;
  margin-bottom: 23px;
}
.empty-illustration {
  position: relative;
  width: 100px;
  height: 76px;
  margin: 0 auto 29px;
}
.empty-illustration span {
  display: block;
  position: absolute;
  width: 76px;
  height: 52px;
  left: 7px;
  top: 5px;
  border: 2px solid #b7cef1;
  border-radius: 8px;
  background: #f3f7ff;
  box-shadow: inset 0 0 0 5px white;
}
.empty-illustration span:after {
  content: '';
  width: 25px;
  border-top: 2px solid #b7cef1;
  position: absolute;
  bottom: -10px;
  left: 23px;
}
.empty-illustration i {
  position: absolute;
  right: 2px;
  bottom: 11px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: #2463eb;
  color: white;
  font-size: 20px;
  font-style: normal;
  border-radius: 8px;
  border: 3px solid white;
}
.empty-search {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 13px;
}
dialog {
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 30px;
  border: 1px solid #dce6f6;
  border-radius: 15px;
  box-shadow: 0 24px 90px #172b4926;
  color: #213654;
}
dialog::backdrop {
  background: #172b4933;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 23px;
}
dialog > p {
  font-size: 12px;
}
.pair-code {
  font:
    650 25px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 1.5px;
  padding: 18px 12px;
  text-align: center;
  background: #f2f6ff;
  color: #326bc4;
  border: 1px solid #dfebff;
  border-radius: 7px;
  margin-top: 10px;
}
dialog > .primary {
  width: 100%;
  margin-top: 8px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: #203554;
  color: #fff;
  padding: 14px 21px;
  border-radius: 9px;
  box-shadow: 0 6px 24px #183c6b1f;
  font-size: 12px;
  z-index: 1000;
}
.activity-row {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 23px;
  margin: 10px 0;
  font-size: 12px;
}
.activity-row div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.activity-row small {
  font-size: 10px;
  color: #8193ad;
}
.status-pill {
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 20px;
  background: #f1f5fc;
  color: #708aaf;
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.download-card {
  padding: 29px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.download-card h2 {
  font-size: 20px;
}
.download-card p {
  font-size: 12px;
  color: #7f90a9;
  line-height: 1.8;
}
.download-card .secondary {
  font-size: 11px;
  margin: 5px 8px 5px 0;
}
.app-glyph {
  width: 47px;
  height: 47px;
  background: #edf4ff;
  color: #4a83d8;
  border: 1px solid #e0eaff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 27px;
  margin-bottom: 22px;
}
.remote-session {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0e192c;
  z-index: 100;
}
.session-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #283e5d;
  min-height: 68px;
}
.brand.compact {
  font-size: 17px;
}
.brand.compact .brand-icon {
  width: 27px;
  height: 27px;
}
.session-name {
  padding-left: 17px;
  border-left: 1px solid var(--line);
  font-size: 12px;
}
.session-name small {
  display: block;
  color: #8195b2;
  font-size: 10px;
  margin-top: 4px;
}
.toolbar-spacer {
  flex: 1;
}
.toolbar-button {
  border: 1px solid #dfe7f5;
  background: #fff;
  color: #526b91;
  font-size: 11px;
  padding: 9px 12px;
  border-radius: 6px;
}
.session-badge {
  font-size: 10px;
  color: #6286bb;
  background: #eef5ff;
  padding: 7px 10px;
  border-radius: 20px;
}
.session-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.video-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e192c;
  overflow: hidden;
}
.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}
.video-wrap video.control-enabled {
  cursor: crosshair;
}
.session-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7faff;
  color: #344d70;
  padding: 30px;
  text-align: center;
}
.session-overlay h2 {
  font-size: 22px;
  margin: 21px 0 10px;
}
.session-overlay p {
  font-size: 12px;
  color: #7f94b1;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid #dce7f8;
  border-top-color: #3977df;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.session-panel {
  width: 285px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid var(--line);
  min-height: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h3 {
  font-size: 12px;
  margin: 0;
}
.panel-heading .small {
  font-size: 9px;
}
.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 17px;
  min-height: 0;
}
.chat-hint {
  font-size: 11px;
  color: #92a2b9;
  line-height: 1.7;
}
.chat-bubble {
  background: #f0f4fa;
  color: #526887;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 18px 10px 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat-bubble.mine {
  margin: 0 0 10px 18px;
  background: #eaf2ff;
  color: #3769b3;
}
.chat-bubble small {
  display: block;
  font-size: 9px;
  color: #839ab9;
  margin-bottom: 5px;
}
.chat-compose {
  display: flex;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
  gap: 8px;
}
.chat-compose input {
  margin: 0;
  font-size: 11px;
  min-width: 0;
  padding: 10px;
}
.chat-compose button {
  flex: none;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 7px;
  background: #2463eb;
  color: #fff;
  font-size: 17px;
}
.transfer-panel {
  border-top: 1px solid var(--line);
  padding: 18px;
  background: #fbfcff;
}
.transfer-panel h4 {
  font-size: 11px;
  margin-bottom: 10px;
}
.transfer-panel p {
  font-size: 10px;
  color: #8498b5;
  line-height: 1.7;
}
.transfer-panel progress {
  width: 100%;
  height: 4px;
  accent-color: #3479e9;
}
.transfer-panel a {
  display: block;
  font-size: 11px;
  color: #2f71d8;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.session-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 19px;
  background: #fff;
  color: #8196b5;
  border-top: 1px solid var(--line);
  font-size: 9px;
}
.desktop-page {
  max-width: 1160px;
  padding: 30px 35px;
  margin: auto;
}
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 27px;
}
.role-label {
  font-size: 10px;
  color: #7291bb;
  background: #edf4ff;
  border: 1px solid #dde9fc;
  padding: 7px 11px;
  border-radius: 20px;
}
.desktop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.card {
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card h2 {
  font-size: 23px;
  line-height: 1.3;
}
.card label:first-of-type {
  margin-top: 18px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  margin: 20px 0;
}
.check-label input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  flex: none;
  accent-color: #2463eb;
}
.check-label small {
  display: block;
  font-size: 10px;
  color: #889ab3;
  line-height: 1.7;
  margin-top: 5px;
}
.preview {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #f3f6fc;
  border: 1px solid #e5edf8;
  border-radius: 8px;
  margin-bottom: 14px;
}
.host-status {
  font-size: 11px;
  color: #7f95b1;
  margin: 14px 0 0;
}
.host-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.host-actions > * {
  flex: 1;
}
.desktop-chat {
  height: 132px;
  overflow: auto;
  padding: 7px 0;
}
.request-card {
  padding: 23px;
  background: #f1f6ff;
  border: 1px solid #bcd2f6;
  border-radius: 10px;
  margin: 18px 0;
}
.request-card h3 {
  color: #396eb9;
  margin-bottom: 8px;
}
.receiver-setup {
  width: 440px;
  max-width: calc(100vw - 40px);
  margin: 70px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 40px #173c6b08;
}
.receiver-setup > .brand {
  margin-bottom: 39px;
}
.receiver-setup .primary {
  width: 100%;
  margin-top: 8px;
}
.app-footer {
  text-align: center;
  font-size: 10px;
  color: #8a9cb5;
  line-height: 1.9;
  margin-top: 26px;
}
.desktop-second-card {
  margin-top: 20px;
}
@media (max-width: 1050px) {
  .sidebar {
    width: 205px;
    padding: 27px 17px;
  }
  .main {
    margin-left: 205px;
  }
  .page {
    padding: 33px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .stats > div {
    display: block;
    padding: 18px;
  }
  .stats small {
    display: block;
    margin-top: 7px;
  }
  .login-layout {
    gap: 55px;
    padding: 0 40px;
  }
  .login-form {
    padding: 30px 26px;
  }
  .session-toolbar {
    gap: 10px;
  }
  .session-panel {
    width: 250px;
  }
}
@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 24px 42px;
    max-width: 520px;
    min-height: 100vh;
  }
  .login-story {
    min-height: 0;
    padding: 0;
  }
  .login-story > .brand {
    margin-bottom: 36px;
  }
  .login-story h1 {
    font-size: 39px;
    letter-spacing: -1.6px;
    margin: 14px 0;
  }
  .login-story .eyebrow {
    font-size: 9px;
  }
  .login-story > div > p:not(.eyebrow) {
    font-size: 12px;
    max-width: none;
    margin: 0;
  }
  .connection-art,
  .login-story > .subtle {
    display: none;
  }
  .login-form-wrap {
    padding: 0;
  }
  .login-form {
    max-width: none;
    padding: 27px 24px 20px;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .sidebar {
    width: 180px;
    padding: 23px 12px;
  }
  .sidebar .brand {
    font-size: 20px;
    gap: 8px;
  }
  .sidebar .brand-icon {
    width: 29px;
    height: 29px;
  }
  .workspace-tag {
    font-size: 10px;
    padding: 12px 8px;
  }
  .main {
    margin-left: 180px;
  }
  .topbar {
    height: 62px;
    padding: 0 20px;
  }
  .private-pill {
    display: none;
  }
  .page {
    padding: 27px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .primary {
    font-size: 11px;
  }
  .stats {
    gap: 9px;
    margin: 24px 0;
  }
  .stats > div {
    padding: 14px 10px;
  }
  .stats span {
    font-size: 27px;
  }
  .stats small {
    font-size: 9px;
    line-height: 1.5;
  }
  .list-toolbar {
    flex-wrap: wrap;
  }
  .search-wrap {
    width: 100%;
  }
  .search-wrap input {
    flex: 1;
    min-width: 0;
  }
  .device-card {
    padding: 16px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .device-status {
    margin-left: auto;
  }
  .device-card .primary {
    margin-left: auto;
  }
  .device-info {
    min-width: 120px;
  }
  .device-glyph {
    width: 40px;
    height: 37px;
    font-size: 21px;
  }
  .empty {
    padding: 42px 17px;
  }
  .empty h2 {
    font-size: 17px;
  }
  .empty p {
    font-size: 11px;
  }
  .empty p br {
    display: none;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .download-card {
    padding: 24px;
  }
  .desktop-page {
    padding: 24px 20px;
  }
  .desktop-grid {
    grid-template-columns: 1fr;
  }
  .desktop-header {
    gap: 12px;
  }
  .desktop-header .brand {
    font-size: 21px;
  }
  .role-label {
    font-size: 8px;
  }
  .session-toolbar {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 9px;
  }
  .session-name {
    padding-left: 9px;
  }
  .session-badge {
    display: none;
  }
  .toolbar-button,
  .session-toolbar .danger-button {
    font-size: 10px;
    padding: 8px 9px;
  }
  .session-panel {
    width: 220px;
  }
  .session-footer {
    font-size: 8px;
    padding: 8px 12px;
  }
  .session-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 540px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 19px 20px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 17px;
  }
  .sidebar > .brand {
    padding: 0;
  }
  .workspace-tag {
    display: none;
  }
  .sidebar nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 4px;
    grid-row: 2;
  }
  .nav-item {
    font-size: 11px;
    justify-content: center;
    padding: 10px 7px;
    margin: 0;
    gap: 7px;
  }
  .nav-item span {
    font-size: 15px;
    width: 15px;
  }
  .sidebar-bottom {
    margin: 0;
    padding: 0;
    font-size: 0;
    text-align: right;
    grid-column: 2;
    grid-row: 1;
  }
  .sidebar-bottom .connection-dot {
    display: none;
  }
  .sidebar-bottom .text-button {
    margin: 0;
    padding: 0;
    font-size: 11px;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 51px;
    font-size: 10px;
  }
  .topbar .avatar {
    width: 26px;
    height: 26px;
  }
  .page {
    padding: 28px 20px;
  }
  .page-heading {
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading p.muted {
    font-size: 10px;
    max-width: 205px;
  }
  .page-heading .primary {
    font-size: 10px;
    padding: 11px 12px;
    gap: 5px;
    max-width: 115px;
    white-space: normal;
  }
  .stats > div {
    padding: 15px 12px;
  }
  .stats span {
    font-size: 29px;
  }
  .stats small {
    font-size: 9px;
  }
  .device-info {
    min-width: 140px;
  }
  .activity-row {
    padding: 16px;
    gap: 14px;
    font-size: 11px;
  }
  .download-card {
    padding: 24px;
  }
  .session-body {
    flex-direction: column;
  }
  .session-panel {
    width: 100%;
    height: 215px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .panel-heading {
    padding: 10px 14px;
  }
  .chat-messages {
    padding: 10px 14px;
  }
  .chat-compose {
    padding: 8px 12px;
  }
  .session-panel .transfer-panel {
    display: none;
  }
  .session-name {
    flex: 1;
    min-width: 120px;
  }
  .toolbar-spacer {
    display: none;
  }
  .session-toolbar .brand.compact {
    font-size: 15px;
  }
  .session-toolbar .brand-icon {
    width: 24px;
    height: 24px;
  }
  .session-toolbar .danger-button {
    margin-left: auto;
  }
  .session-overlay h2 {
    font-size: 19px;
  }
  .session-overlay p {
    font-size: 11px;
  }
  .desktop-header {
    align-items: flex-start;
  }
  .role-label {
    font-size: 7px;
    max-width: 115px;
    text-align: center;
  }
  .card {
    padding: 23px;
  }
  .app-footer {
    font-size: 9px;
  }
  .receiver-setup {
    margin-top: 35px;
    padding: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
