/*
 * DeepScope / Phase 2E — mobile-first product refinement.
 * Liquid-glass materials only on navigation, controls and overlays;
 * content stays calm and legible. The existing orb art and app behavior
 * remain intact. All rules live in this layer to allow easy rollback.
 */

:root {
  --ds-spring: cubic-bezier(.22,1,.36,1);
  --ds-press: cubic-bezier(.2,.85,.25,1);
  --ds-glass-shine: rgba(255,255,255,.86);
  --ds-glass-shadow: 0 18px 52px rgba(53,42,91,.11), 0 3px 12px rgba(53,42,91,.035);
  --ds-mobile-ink: #292539;
}
:root[data-theme="dark"] {
  --ds-glass-shine: rgba(255,255,255,.17);
  --ds-glass-shadow: 0 18px 52px rgba(0,0,0,.42),0 3px 12px rgba(0,0,0,.2);
  --ds-mobile-ink: #f4effd;
}
html { scroll-behavior: auto; }
body { -webkit-font-smoothing: antialiased; }
button, a, select, input, textarea, summary {
  touch-action: manipulation;
}
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.primary-button, .secondary-button, .icon-button,
.agent-actions button, .nav-item {
  transition: transform .25s var(--ds-spring), box-shadow .3s ease,
    background-color .25s ease, border-color .25s ease, color .25s ease;
}
.primary-button {
  font-weight: 620;
  letter-spacing: -.01em;
  background: linear-gradient(148deg, color-mix(in srgb,var(--button),white 4%),var(--button));
  box-shadow: 0 7px 18px rgba(46,34,71,.12), inset 0 1px 0 rgba(255,255,255,.12);
}
.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.icon-button:active:not(:disabled),
.agent-actions button:active:not(:disabled),
.nav-item:active,
.livekit-pilot button:active:not(:disabled) {
  transform: scale(.965);
  transition-duration: .13s;
}
.surface, .metric, .call-history > li, .agents-list li {
  box-shadow: 0 9px 38px rgba(53,42,91,.035), 0 1px 2px rgba(53,42,91,.025);
}
.glass {
  background: linear-gradient(150deg,
    color-mix(in srgb,var(--glass),white 10%),
    color-mix(in srgb,var(--glass),transparent 4%));
  border-color: color-mix(in srgb,var(--glass-border),transparent 10%);
  box-shadow: var(--ds-glass-shadow), inset 0 1px 0 var(--ds-glass-shine);
}
:root[data-theme="dark"] .glass {
  background: linear-gradient(148deg,rgba(55,50,75,.80),rgba(33,30,46,.74));
}
@media (hover:hover) and (pointer:fine) {
  .secondary-button:hover:not(:disabled), .icon-button:hover:not(:disabled) {
    transform: translateY(-1px);
  }
  .agents-list li:hover, .call-history>li:hover {
    border-color: color-mix(in srgb,var(--accent),transparent 78%);
  }
}
/* Tablet-first content: the sidebar remains a deliberate, compact rail. */
@media (min-width:721px) and (max-width:1100px) {
  .content-view { padding-inline: clamp(20px,3.4vw,36px); }
  .topbar { padding-inline:clamp(20px,3.4vw,36px); }
  .studio-view { padding-inline:20px; }
}
@media (max-width:720px) {
  :root{
    --ds-gutter: clamp(16px,4.5vw,25px);
    --ds-nav-height: 70px;
    --ds-nav-offset: calc(10px + env(safe-area-inset-bottom,0px));
    --radius:22px;
    --shadow: 0 12px 34px rgba(53,42,91,.055), 0 1px 2px rgba(53,42,91,.025);
  }
  body {
    min-width:320px;
    overflow-x:clip;
    background:
      radial-gradient(ellipse 90% 42% at 50% 9%,rgba(164,131,234,.09),transparent 75%),
      radial-gradient(ellipse 80% 32% at 100% 80%,rgba(177,158,237,.045),transparent 80%),
      var(--bg);
  }
  .app-shell { min-height:100dvh;min-width:0;overflow-x:clip; }
  .main-area{
    min-width:0;margin:0;
    padding-bottom:calc(var(--ds-nav-height) + var(--ds-nav-offset) + 24px);
  }
  .sidebar { display:contents; }
  .sidebar>.brand {
    position:fixed;
    z-index:31;
    top:calc(15px + env(safe-area-inset-top,0px));
    left:var(--ds-gutter);
    max-width:45%;
    margin:0;
    white-space:nowrap;
    filter:drop-shadow(0 1px 0 rgba(255,255,255,.3));
  }
  .sidebar>.brand .brand-mark {
    display:grid;
    width:33px;height:33px;
    border-radius:12px;
    background:linear-gradient(135deg,#3b334f,#211d32);
    box-shadow:0 6px 12px rgba(45,33,78,.15),inset 0 1px 0 rgba(255,255,255,.24);
  }
  .sidebar>.brand strong{font-size:19px;letter-spacing:-.95px}
  .sidebar>.brand strong span{font-size:10px;letter-spacing:-.2px}
  :root[data-theme="dark"] .sidebar>.brand .brand-mark{
    color:#faf6ff;
    background:linear-gradient(135deg,#554373,#332745);
    box-shadow:0 7px 17px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.15);
  }
  .topbar {
    height:calc(67px + env(safe-area-inset-top,0px));
    position:sticky;
    top:0;z-index:29;
    min-width:0;
    padding:env(safe-area-inset-top,0px) var(--ds-gutter) 0;
    display:flex;
    align-items:center;justify-content:flex-end;gap:8px;
    background:linear-gradient(180deg,
      color-mix(in srgb,var(--bg),transparent 6%) 0%,
      color-mix(in srgb,var(--bg),transparent 22%) 100%);
    border-bottom:1px solid color-mix(in srgb,var(--line),transparent 35%);
    -webkit-backdrop-filter:blur(24px) saturate(160%);
    backdrop-filter:blur(24px) saturate(160%);
  }
  .topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;max-width:60%}
  .workspace-picker{
    width:clamp(80px,24vw,135px);max-width:135px;min-width:0;
    height:43px;font-size:12px;
    padding:0 17px 0 10px;
    border:1px solid color-mix(in srgb,var(--line),transparent 20%);
    border-radius:13px;
    background:color-mix(in srgb,var(--surface),transparent 14%);
    color:var(--ink);
    text-overflow:ellipsis;
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
  }
  .topbar .icon-button {
    width:42px;height:42px;min-width:42px;
    border-radius:14px;
    border:1px solid color-mix(in srgb,var(--line),transparent 20%);
    background:linear-gradient(145deg,var(--glass),color-mix(in srgb,var(--glass),transparent 10%));
    box-shadow:inset 0 1px 0 var(--ds-glass-shine);
    font-size:19px;
  }

  /* Four deliberate destinations. Secondary routes live in a floating sheet. */
  .sidebar nav, .app-shell[data-operator="true"] .sidebar nav {
    position:fixed;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    z-index:40;
    width:min(430px,calc(100% - 22px));
    min-width:0;
    height:var(--ds-nav-height);
    left:50%;right:auto;
    bottom:var(--ds-nav-offset);
    margin:0;
    padding:6px;
    gap:3px;
    border-radius:25px;
    transform:translate3d(-50%,0,0);
    background:linear-gradient(140deg,
      color-mix(in srgb,var(--glass),white 15%),
      color-mix(in srgb,var(--glass),transparent 5%));
    border:1px solid color-mix(in srgb,var(--glass-border),transparent 6%);
    box-shadow:0 18px 55px rgba(49,37,84,.16),0 4px 12px rgba(49,37,84,.06),
      inset 0 1px 0 var(--ds-glass-shine);
    -webkit-backdrop-filter:blur(34px) saturate(175%);
    backdrop-filter:blur(34px) saturate(175%);
    isolation:isolate;
  }
  .sidebar nav::before {
    content:'';position:absolute;inset:1px;z-index:-1;pointer-events:none;
    border-radius:24px;
    background:linear-gradient(115deg,rgba(255,255,255,.15),transparent 54%);
  }
  .sidebar nav > a.nav-item[data-nav="phones"],
  .sidebar nav > a.nav-item[data-nav="settings"],
  .sidebar nav > a.nav-item[data-nav="billing"],
  .sidebar nav > a.nav-item[data-nav="operator"]{display:none}
  .sidebar nav .nav-item,#mobile-more {
    min-width:0;min-height:56px;
    display:flex;
    flex-direction:column;align-items:center;justify-content:center;
    gap:5px;padding:7px 2px;
    border-radius:19px;
    border:1px solid transparent;
    font-size:10px;line-height:1.15;font-weight:540;
    letter-spacing:-.01em;
    color:var(--secondary);
    background:transparent;
    white-space:nowrap;
    transition:transform .25s var(--ds-spring),background .25s ease,
      color .25s ease,box-shadow .25s ease;
  }
  .sidebar nav .nav-item svg,
  #mobile-more svg {width:21px;height:21px;stroke-width:1.75;flex:none}
  .sidebar nav .nav-item.active,
  #mobile-more.active,
  #mobile-more[aria-expanded="true"]{
    color:var(--accent);
    background:linear-gradient(145deg,
      color-mix(in srgb,var(--soft),white 12%),
      color-mix(in srgb,var(--soft),transparent 15%));
    border-color:color-mix(in srgb,var(--glass-border),transparent 20%);
    box-shadow:inset 0 1px 0 var(--ds-glass-shine),0 2px 8px rgba(57,42,93,.04);
  }
  .sidebar nav .nav-item:active,#mobile-more:active {transform:scale(.93)}
  .mobile-menu{
    display:grid;
    position:fixed;
    z-index:41;
    right:max(12px,env(safe-area-inset-right,0px));
    bottom:calc(var(--ds-nav-height) + var(--ds-nav-offset) + 12px);
    width:min(292px,calc(100vw - 24px));
    min-width:0;
    padding:9px;
    border-radius:25px;
    border:1px solid var(--glass-border);
    background:linear-gradient(145deg,
      color-mix(in srgb,var(--glass),white 9%),
      color-mix(in srgb,var(--glass),transparent 3%));
    box-shadow:0 28px 80px rgba(36,27,67,.20),0 4px 18px rgba(36,27,67,.06),
      inset 0 1px 0 var(--ds-glass-shine);
    -webkit-backdrop-filter:blur(34px) saturate(175%);
    backdrop-filter:blur(34px) saturate(175%);
    transform-origin:85% 100%;
    overflow:hidden;
  }
  .mobile-menu a{
    display:flex;align-items:center;min-height:50px;
    padding:13px 16px;line-height:1.35;
    text-decoration:none;color:var(--ink);
    font-size:13px;font-weight:550;
    border-radius:17px;
    transition:background .2s ease,transform .2s var(--ds-spring);
  }
  .mobile-menu a + a {border-top:1px solid color-mix(in srgb,var(--line),transparent 30%)}
  .mobile-menu a.active{background:var(--soft);color:var(--accent)}
  .mobile-menu a:active{transform:scale(.98)}
  .sidebar-bottom,.workspace-label{display:none}

  /* Comfortable, editorial information hierarchy without wasted width. */
  .content-view {
    width:100%;max-width:700px;
    padding:0 var(--ds-gutter) 32px;
    margin:31px auto 0;
    min-width:0;
  }
  .page-heading {
    display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;
    margin-bottom:26px;
  }
  .page-heading > div {flex:1 1 180px;min-width:0}
  .page-heading h1{
    font-size:clamp(28px,7.5vw,35px);
    line-height:1.18;letter-spacing:-1.25px;
    margin:9px 0 8px;
    font-weight:650;
    overflow-wrap:anywhere;
  }
  .page-heading p{font-size:12px;line-height:1.65}
  .page-heading > .primary-button,
  .page-heading > .secondary-button{
    min-height:44px;max-width:100%;border-radius:15px;
    padding:11px 15px;font-size:12px;
  }
  .eyebrow {letter-spacing:1.45px;font-weight:700}
  .surface, .metric, .call-history>li, .agents-list li {
    border-radius:23px;
    border-color:color-mix(in srgb,var(--line),transparent 6%);
    background:color-mix(in srgb,var(--surface),var(--solid) 22%);
  }
  .agents-list{grid-template-columns:minmax(0,1fr);gap:13px}
  .agents-list li{
    grid-template-columns:45px minmax(0,1fr);
    min-width:0;min-height:0;
    padding:21px;column-gap:14px;row-gap:16px;
  }
  .agents-list strong{font-size:16px}
  .agents-list small{font-size:11px;line-height:1.65}
  .agent-avatar{width:45px;height:45px;border-radius:15px}
  .agent-actions{gap:9px;padding-top:13px;flex-wrap:wrap;min-width:0}
  .agent-actions button{min-height:44px}
  .empty-state{padding:45px 20px;border-radius:23px}
  .history-toolbar {min-width:0;max-width:100%;padding:10px 13px;border-radius:17px}
  .history-toolbar select{max-width:65%;font-size:12px}
  .call-history{margin-top:18px;gap:11px}
  .call-history>li{min-width:0;padding:17px}
  .call-history summary{min-width:0;gap:10px;align-items:center}
  .call-history summary strong{overflow-wrap:anywhere}
  .call-result{flex-shrink:0;max-width:42%;font-size:10px!important;text-align:center}
  .call-history dl{grid-template-columns:minmax(95px,.8fr) minmax(0,1fr);gap:10px}
  .transcript-bubble{max-width:95%;overflow-wrap:anywhere;padding:13px 15px}
  .metric-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .metric{min-width:0;padding:20px 17px}
  .metric>strong{font-size:clamp(22px,6vw,29px);overflow-wrap:anywhere}
  .billing-offers,.phone-resource,.phone-search,.phone-explanation{padding:21px}
  .billing-offers .actions{grid-template-columns:minmax(0,1fr);gap:12px}
  .billing-plan{min-width:0}
  .operator-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .operator-row dl,.cost-content .operator-row dl{
    grid-template-columns:minmax(0,1fr);gap:4px;
  }
  .operator-row dd,.cost-content .operator-row dd{margin:0 0 10px}
  .operator-tabs{display:flex;width:100%;overflow-x:auto;gap:4px;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .operator-tabs::-webkit-scrollbar{display:none}
  .operator-tabs button{flex:1 0 auto;min-width:0;padding:12px 13px}
  .cost-chart,.phone-card,.cost-exports{max-width:100%;min-width:0}
  .cost-content .cost-chart,.cost-chart details{overflow-x:auto}
  .phone-resource-grid{grid-template-columns:minmax(0,1fr)}
  .phone-search input{max-width:100%}

  /* Let the voice conversation breathe. No constrained desktop centering. */
  .studio-view {
    width:100%;max-width:640px;margin:0 auto;
    min-width:0;overflow:clip;
    min-height:0;
    padding:23px var(--ds-gutter) 22px;
    justify-content:flex-start;gap:0;
  }
  .studio-selection{
    min-height:40px;margin:2px auto 22px;
    max-width:min(300px,100%);
    border-radius:100px;
    padding:0 15px;
    box-shadow:0 7px 20px rgba(64,43,98,.045),inset 0 1px 0 var(--ds-glass-shine);
  }
  .studio-selection select{min-width:0;max-width:min(235px,65vw);font-size:12px}
  .studio-intro h1{
    font-size:clamp(31px,8.5vw,39px);
    font-weight:570;letter-spacing:-1.35px;line-height:1.16;
  }
  .studio-intro p{font-size:11px;line-height:1.6;margin-top:11px}
  .stage-orb{
    flex:none;
    width:100%;max-width:100%;
    height:clamp(218px,34svh,295px);
    margin:4px auto 0;
    overflow:visible;
  }
  .stage-orb .orb-shell {
    width:min(76vw,335px);
    height:auto;aspect-ratio:1;
    max-width:100%;
    flex-shrink:0;
  }
  .voice-controls{
    width:min(100%,460px);max-width:100%;
    position:relative;z-index:2;
    gap:11px;margin:0 auto;
  }
  .call-actions{width:100%;gap:9px;justify-content:center}
  .call-actions .start-button,.livekit-pilot [data-role="start"]{
    min-height:52px;min-width:min(100%,190px);
    border-radius:100px;
    padding:14px 27px;font-size:13px;
    font-weight:660;letter-spacing:-.01em;
    box-shadow:0 8px 23px rgba(41,33,65,.15),inset 0 1px 0 rgba(255,255,255,.14);
  }
  .call-actions .text-button{min-height:46px;max-width:100%;border-radius:100px}
  .connection-label{font-size:11px;line-height:1.65;max-width:100%}
  .studio-extras{max-width:100%;gap:5px}
  #studio[data-voice-transport="livekit"] .studio-intro{display:block}
  #studio[data-voice-transport="livekit"] .studio-selection{margin-bottom:12px}
  #studio[data-voice-transport="livekit"] .stage-orb{height:clamp(200px,30svh,260px)}
  .privacy-details,.voice-transcript{min-width:0;max-width:100%}
  .livekit-pilot{
    width:100%;max-width:100%;
    min-width:0;
    margin:19px auto 0;padding:18px 16px;
    border-radius:23px;
    background:color-mix(in srgb,var(--surface),var(--solid) 18%);
    border:1px solid var(--line);
    box-shadow:0 12px 32px rgba(42,28,80,.045);
  }
  .livekit-pilot h2{font-size:16px;letter-spacing:-.4px}
  .livekit-pilot-controls{gap:8px;margin:13px 0}
  .livekit-pilot-controls button{min-height:44px;padding:10px 14px;
    border-radius:14px;max-width:100%;white-space:normal}
  .livekit-live-panel{min-width:0;width:100%;max-width:100%;
    padding:15px;margin:16px 0 13px;border-radius:19px;
    background:color-mix(in srgb,var(--solid),transparent 9%)}
  .livekit-live-heading strong{font-size:14px}
  .livekit-live-header-actions{gap:7px}
  .livekit-live-header-actions button{border-radius:13px;min-height:44px;padding:8px 10px}
  .livekit-live-feed{max-height:min(350px,42dvh);scrollbar-gutter:stable}
  .livekit-live-bubble{max-width:95%;padding:12px 14px}
  .livekit-pilot-history{padding:15px 0 0}
  .livekit-pilot-history-item{max-width:100%;border-radius:17px}
  .livekit-pilot-history-item .transcript-bubble{max-width:96%;min-width:0;
    border-radius:15px;padding:12px 14px}
  .livekit-live-diagnostic-grid{gap:8px}
  .livekit-live-diagnostic{padding:12px}
  .livekit-orb-status{font-size:11px}
  #studio[data-livekit-pilot="active"] .stage-orb .livekit-orb-status{
    bottom:3px;max-width:calc(100% - 16px);
    padding:8px 13px;border-radius:100px;
  }

  /* Editorial login instead of a compressed desktop split. */
  .login-page{
    max-width:500px;
    padding:calc(83px + env(safe-area-inset-top,0px)) var(--ds-gutter)
      calc(26px + env(safe-area-inset-bottom,0px));
    align-items:center;gap:20px;
  }
  .login-art{max-width:100%}
  .login-art>.brand{left:0;top:-65px}
  .login-intro h1{font-size:clamp(29px,8vw,37px);letter-spacing:-1.15px}
  .login-intro p{font-size:11px;line-height:1.55}
  .login-orb{height:150px;margin-top:0}
  .login-orb .orb-shell{width:210px;height:210px}
  .login-card{
    width:100%;max-width:460px;
    padding:clamp(22px,5.5vw,32px);
    border-radius:28px;
    box-shadow:0 22px 66px rgba(50,38,79,.095),inset 0 1px 0 var(--ds-glass-shine);
  }
  .login-card h2{font-size:clamp(24px,6.4vw,29px);line-height:1.2}
  .login-card input{min-height:52px;border-radius:15px}
  .login-card .primary-button{min-height:52px}
  .login-theme{top:calc(17px + env(safe-area-inset-top,0px));right:var(--ds-gutter)}

  /* Native-feeling mobile bottom sheets with keyboard-safe scrolling. */
  dialog.agent-dialog {
    box-sizing:border-box;
    position:fixed;
    inset:auto 0 0 0;
    width:100%;max-width:620px;
    height:auto;
    max-height:calc(100dvh - env(safe-area-inset-top,0px) - 14px);
    min-width:0;
    margin:0 auto;
    padding:0 22px calc(20px + env(safe-area-inset-bottom,0px));
    border:1px solid var(--glass-border);
    border-bottom:0;
    border-radius:29px 29px 0 0;
    background:color-mix(in srgb,var(--solid),var(--glass) 8%);
    box-shadow:0 -24px 90px rgba(31,23,51,.2);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  dialog.agent-dialog::before {
    content:'';
    position:sticky;top:0;
    display:block;width:38px;height:5px;
    margin:11px auto 7px;
    border-radius:100px;
    background:color-mix(in srgb,var(--muted),transparent 55%);
    z-index:2;
  }
  dialog.agent-dialog .agent-dialog-header{
    position:sticky;top:0;
    z-index:3;min-height:60px;
    margin:0 -22px 6px;
    padding:5px 22px 7px;
    border-bottom:1px solid color-mix(in srgb,var(--line),transparent 35%);
    background:color-mix(in srgb,var(--solid),transparent 4%);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
  }
  dialog.agent-dialog h2{font-size:clamp(24px,6vw,29px);margin:14px 0 18px}
  dialog.agent-dialog label{font-size:12px}
  dialog.agent-dialog .agent-step{min-width:0}
  #agent-dialog .wizard-footer{
    position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom,0px));
    z-index:3;
    min-width:0;
    margin:20px -22px calc(-20px - env(safe-area-inset-bottom,0px));
    padding:15px 22px calc(16px + env(safe-area-inset-bottom,0px));
    border-top:1px solid var(--line);
    background:color-mix(in srgb,var(--solid),transparent 3%);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
  }
  #agent-dialog .wizard-footer button{min-height:48px;border-radius:15px}
  #agent-dialog .wizard-footer .primary-button{min-width:130px}
  #agent-dialog input,#agent-dialog textarea,#agent-dialog select,
  #transfer-dialog input,#transfer-dialog textarea {
    font-size:16px!important;
    border-radius:14px;
  }
  .conversation-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
  #knowledge-list li{min-width:0;flex-wrap:wrap}
  #knowledge-list li .document-actions{justify-content:flex-end;width:100%}
  #knowledge-dialog #knowledge-upload{overflow-wrap:anywhere}
  .document-preview{
    width:100%;max-width:700px;
    height:calc(100dvh - env(safe-area-inset-top,0px) - 12px);
    max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px);
    margin:auto auto 0;
    border-radius:28px 28px 0 0;
    padding:20px var(--ds-gutter) calc(16px + env(safe-area-inset-bottom,0px));
  }
  .document-preview-footer{padding-bottom:env(safe-area-inset-bottom,0px)}
  .toast{
    left:50%;width:max-content;
    max-width:calc(100vw - 2 * var(--ds-gutter));
    bottom:calc(var(--ds-nav-height) + var(--ds-nav-offset) + 13px);
    border:1px solid var(--glass-border);
    border-radius:17px;
    padding:13px 17px;
    background:color-mix(in srgb,var(--solid),var(--glass) 12%);
    box-shadow:0 12px 38px rgba(32,22,57,.12);
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
    overflow-wrap:anywhere;
  }
}
@media(max-width:390px){
  .sidebar>.brand strong span{display:none}
  .sidebar>.brand strong{font-size:18px}
  .topbar-actions{gap:5px}
  .workspace-picker{width:80px;max-width:80px;padding-inline:9px}
  .topbar .icon-button{width:39px;height:39px;min-width:39px}
  .sidebar nav .nav-item,#mobile-more{font-size:9px}
  .studio-view{padding-top:17px}
  .studio-selection{margin-bottom:17px}
  .stage-orb{height:clamp(202px,32svh,260px)}
  .stage-orb .orb-shell{width:min(76vw,292px)}
  .conversation-options{grid-template-columns:minmax(0,1fr);gap:0}
  .agent-actions{gap:7px}
  .agent-actions button{padding:10px 11px}
}
@media(max-width:720px) and (max-height:700px){
  .studio-view{padding-top:15px}
  .studio-intro h1{font-size:29px}
  .stage-orb{height:clamp(195px,31svh,250px)}
  .stage-orb .orb-shell{width:min(70vw,275px)}
  .studio-selection{margin-bottom:13px}
}
@media(prefers-reduced-transparency:reduce){
  .glass,.topbar,.sidebar nav,.mobile-menu,.workspace-picker,
  .livekit-live-panel,dialog.agent-dialog,dialog.agent-dialog .agent-dialog-header,
  #agent-dialog .wizard-footer,.toast{
    background:var(--solid)!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .topbar,.sidebar nav,.mobile-menu,dialog.agent-dialog{
    background:var(--solid)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .primary-button,.secondary-button,.icon-button,.nav-item,.mobile-menu a,
  .agent-actions button,.agents-list li,.call-history>li{
    animation:none!important;transition:none!important;transform:none!important;
  }
}


