@charset "UTF-8";

:root {
  color-scheme: dark;
  font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e8f2f6;
  background: #091318;
  font-synthesis: none;
  --accent: #c5e6ed;
  --brand: #387f8f;
  --muted: #9aabaf;
  --border: rgba(174, 210, 224, .14);
  --panel: rgba(22, 43, 54, .52);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, section:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 5px;
}
a { color: inherit; text-decoration: none; }
button { border: 0; }
[hidden] { display: none !important; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

/* Ambient light sits behind the frosted surfaces. Only transforms animate. */
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; background: linear-gradient(135deg, #111b1d, #0a1214 48%, #101d20); }
.ambient-light { position: absolute; border-radius: 50%; filter: blur(85px); will-change: transform; }
.light-one { width: 620px; height: 620px; top: -330px; left: 6%; background: #53848f; opacity: .2; animation: drift-one 26s ease-in-out infinite alternate; }
.light-two { width: 640px; height: 640px; top: 28%; right: -360px; background: #2a7282; opacity: .19; animation: drift-two 30s ease-in-out infinite alternate; }
.light-three { width: 460px; height: 460px; bottom: -310px; left: 30%; background: #5399a9; opacity: .12; animation: drift-one 33s ease-in-out infinite alternate-reverse; }
.grain { position: absolute; inset: 0; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.75' filter='url(%23n)'/%3E%3C/svg%3E"); }

.workspace { max-width: 1540px; padding: 22px 40px 24px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 26px; min-height: 104px; }
.brand-logo { display: block; width: 184px; flex-shrink: 0; }
.brand-logo img { display: block; width: 100%; height: auto; }
.workspace-name { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 12px; }
.workspace-name > span { height: 18px; width: 1px; background: var(--border); }
.connection-chip { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 100px; color: #b9c6c9; background: #cce6ec04; font-size: 11px; white-space: nowrap; }
.status-dot { height: 6px; width: 6px; border-radius: 50%; background: #87999d; box-shadow: 0 0 0 3px #87aab20b; transition: background .3s, box-shadow .3s; }
body:is([data-call-state=listening], [data-call-state=thinking], [data-call-state=speaking], [data-call-state=muted]) .status-dot { background: #aadfeb; box-shadow: 0 0 0 3px #b0e3ef14, 0 0 12px #97d6e455; }
body:is([data-call-state=connecting], [data-call-state=loading], [data-call-state=reconnecting]) .status-dot { background: #95d3e1; animation: dot-pulse 1.5s ease-in-out infinite; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 31px 0 28px; }
.eyebrow { font-size: 9px; letter-spacing: .2em; font-weight: 600; color: #9eb7bd; margin: 0 0 11px; }
h1 { font-size: clamp(30px, 3vw, 43px); line-height: 1.08; letter-spacing: -.058em; font-weight: 450; margin: 0; }
h1 > span { color: #abd5de; }
.page-description { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 12px 0 0; }
.session-clock { display: flex; align-items: center; gap: 15px; padding: 10px 3px 10px 22px; border-left: 1px solid var(--border); margin-right: 3px; }
.session-clock > .icon { color: #a5bdc3; width: 23px; height: 23px; }
.session-clock div { display: flex; flex-direction: column; gap: 5px; }
.session-clock span { font-size: 10px; color: var(--muted); }
.session-clock strong { font-size: 23px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: .03em; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(340px, 1fr); gap: 18px; }
.glass-card { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); box-shadow: 0 16px 55px #00000015, inset 0 1px 0 #e4faff05; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); isolation: isolate; }
.glass-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(460px circle at var(--pointer-x, 50%) var(--pointer-y, 0%), #cee9ef09, transparent 65%); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: -1; }
.glass-card::after { content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, #cbecf333, transparent); pointer-events: none; }
@media (hover: hover) { .glass-card:hover::before { opacity: 1; } }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 23px 25px; }
.panel-title { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: #d0dde0; margin: 0; }
.tiny-cross { font-size: 17px; color: #b4e3ed; }
.language-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c3dee414; border-radius: 100px; padding: 6px 9px; color: #bdcbce; font-size: 9px; letter-spacing: .02em; }
.language-pill .icon { width: 12px; height: 12px; opacity: .8; }
.language-pill > span { opacity: .4; }
.call { overflow: hidden; min-height: 507px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 32%, #5c828a0b, transparent 64%), var(--panel); }
.voice-stage { --input-energy: 0; --caller-energy: 0; --agent-energy: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: 303px; padding: 0 22px 18px; text-align: center; }
.orb-scene { position: relative; width: 284px; height: 280px; display: grid; place-items: center; margin-top: -10px; }
.orb-control { position: relative; z-index: 1; width: 280px; height: 280px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: #d3edf5; transform: perspective(650px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .22s ease-out; }
.orb-control:focus-visible { outline: 2px solid #8ac8d8; outline-offset: -15px; }
.orb-control:active:not(:disabled) { transform: perspective(650px) scale(.97); }
#orb { display: block; width: 280px; height: 280px; position: relative; flex-shrink: 0; }
.orb-core { position: absolute; inset: 0; display: block; transform: scale(calc(1 + var(--agent-energy) * .085)); transition: transform .1s ease-out; }
.orb-action { position: absolute; left: 50%; bottom: 9px; transform: translate(-50%, 5px); border: 1px solid #93cfdf30; border-radius: 100px; background: #0c202de8; padding: 7px 12px; box-shadow: 0 4px 20px #0002; font-size: 10px; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.orb-control:is(:hover, :focus-visible):not(:disabled) .orb-action { opacity: 1; transform: translate(-50%, 0); }
.orb-hover-light { position: absolute; inset: 32px; border-radius: 50%; background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 35%), #8cd3e51a, transparent 65%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.orb-control:hover:not(:disabled) .orb-hover-light { opacity: 1; }
.orb-muted-icon { position: absolute; right: 45px; bottom: 47px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #8cbaca50; border-radius: 50%; color: #bfdbe5; background: #102733ee; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.orb-muted-icon .icon { width: 14px; height: 14px; }
#orb[data-mic-muted=true] .orb-muted-icon { opacity: 1; transform: scale(1); }
#orb[data-mic-muted=true] .input-ring { opacity: .18; border-style: dashed; }
.orb-guide { margin: 10px 0 0; font-size: 9px; color: #8eafbd; line-height: 1.7; }
.orb-guide > span { padding: 0 7px; opacity: .6; }
@media (hover: none) { .orb-control:not(:disabled) .orb-action { opacity: 1; transform: translate(-50%, 0); } }
.orb-canvas, .orb-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.orb-canvas.is-ready + .orb-fallback { display: none; }
.orb-aura { display: block; position: absolute; inset: 42px; background: radial-gradient(circle, #387f8f24, transparent 72%); border-radius: 50%; filter: blur(22px); opacity: .35; animation: aura-breathe 8s ease-in-out infinite; }
.input-ring { position: absolute; inset: 24px; border-radius: 50%; border: 1px solid #80bacb50; transform: scale(calc(1.03 + var(--caller-energy) * .1)); opacity: calc(.06 + var(--caller-energy) * .75); box-shadow: 0 0 18px #6bb7cd0c; transition: transform .15s ease-out, opacity .2s; }
.processing-ring { position: absolute; inset: 20px; border-radius: 50%; border: 1px solid transparent; border-top-color: #b2e1ec; border-right-color: #8cc3d633; opacity: 0; }
#orb[data-agent-state=thinking]:not([data-audio-active=true]) .processing-ring { opacity: .6; animation: rotate-slow 3s linear infinite; }
#orb[data-state=reconnecting] .processing-ring { opacity: .8; border-top-color: #e5c695; border-right-color: #e5c69530; border-style: dashed; animation: rotate-slow 5s linear infinite; }
#orb[data-state=connecting] .processing-ring { opacity: .5; animation: rotate-slow 4s linear infinite; }
#orb[data-user-speaking=true] .input-ring { border-color: #a2deee; }
#orb[data-interrupted=true] .input-ring { animation: interruption-ring .4s ease-out; }
.stage-shadow { position: absolute; width: 120px; height: 15px; bottom: 7px; border-radius: 50%; background: #000; filter: blur(17px); opacity: .2; }
#orb[data-audio-active=true] .orb-aura { animation: none; opacity: calc(.13 + var(--agent-energy) * .25); transform: scale(calc(1 + var(--agent-energy) * .25)); }
.waveform { height: 25px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: -3px 0 10px; color: #add3dc; }
.waveform i { --bar: 10px; display: block; width: 2px; height: 3px; border-radius: 5px; background: currentColor; opacity: .28; transition: height .25s, opacity .25s; }
.waveform i:nth-child(3n) { --bar: 20px; animation-delay: -.35s !important; }
.waveform i:nth-child(4n) { --bar: 13px; animation-delay: -.7s !important; }
.waveform i:nth-child(5n) { --bar: 25px; animation-delay: -.15s !important; }
.waveform i:is(:first-child, :last-child) { opacity: .08; }
body:is([data-call-state=speaking], [data-call-state=muted]) .waveform i { height: calc(3px + var(--agent-energy) * var(--bar)); opacity: calc(.28 + var(--agent-energy) * .6); }
body[data-call-state=thinking] .waveform i { animation: thinking-wave 1.5s ease-in-out infinite; }
body[data-call-state=listening] .waveform i { height: calc(3px + var(--caller-energy) * var(--bar)); opacity: calc(.3 + var(--caller-energy) * .5); }
#status { font-size: 20px; line-height: 1.55; font-weight: 450; letter-spacing: -.035em; margin: 0; overflow-wrap: anywhere; }
.visual-hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 6px 0 0; }
.call-actions { padding: 0 24px 22px; }
.controls { display: flex; justify-content: center; align-items: center; gap: 8px; }
.controls button, .enable-sound { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; transition: transform .2s, background .2s, box-shadow .2s, opacity .2s; }
.controls .secondary { padding: 0 13px; background: #c8dde206; color: #c5d5d8; border: 1px solid #d1e5ea18; }
.controls .secondary .icon { width: 16px; height: 16px; }
.controls .secondary:hover:not(:disabled) { background: #c8dde212; transform: translateY(-2px); }
.end-button { color: #e3b6a7; background: #a86e5a0e; border: 1px solid #c699851f; padding: 0 12px; }
.end-button .icon { width: 17px; height: 17px; }
.end-button:hover:not(:disabled) { background: #bd786326; transform: translateY(-2px); }
.controls button:disabled { opacity: .3; }
.mic-off { display: none; }
#mute-microphone[aria-pressed=true] { background: #6cc4d818; color: #a2ddea; border-color: #6ccbe03d; }
#mute-microphone[aria-pressed=true] .mic-on { display: none; }
#mute-microphone[aria-pressed=true] .mic-off { display: block; }
.controls button:active:not(:disabled) { transform: scale(.97); }
.enable-sound { color: #a9e2ef; background: #4ca3b61a; border: 1px solid #7bc6d738; padding: 10px 14px; width: 100%; margin-top: 10px; }
.enable-sound .icon { width: 16px; }
#error { font-size: 12px; color: #f0b5a5; margin: 12px 0 0; line-height: 1.7; text-align: center; overflow-wrap: anywhere; }
#error:empty { display: none; }
.topic-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 21px; color: var(--muted); font-size: 9px; }
.topic-row > span:first-child { margin-right: 5px; opacity: .9; }
.topic { border: 1px solid #bddbe212; border-radius: 100px; padding: 5px 9px; color: #b5c7cb; background: #bddbe203; }

.conversation { display: flex; flex-direction: column; height: 100%; max-height: 650px; min-height: 507px; overflow: hidden; }
.conversation > .panel-top { border-bottom: 1px solid #d2e6eb09; padding-bottom: 21px; }
.panel-subtitle { color: var(--muted); font-size: 10px; margin: 7px 0 0; }
.transcript-badge { display: inline-flex; align-items: center; gap: 6px; color: #acc0c4; font-size: 9px; border: 1px solid #c7e4eb15; border-radius: 100px; padding: 6px 8px; }
.transcript-badge > span:first-child { height: 4px; width: 4px; border-radius: 50%; background: #80999f; }
body:is([data-call-state=listening], [data-call-state=thinking], [data-call-state=speaking], [data-call-state=muted]) .transcript-badge > span:first-child { background: #9dd1dd; box-shadow: 0 0 8px #9dd1dd60; }
.transcript-feed { flex: 1; overflow-y: auto; min-height: 0; padding: 8px 23px; scrollbar-width: thin; scrollbar-color: #8daeb625 transparent; overscroll-behavior: contain; }
.empty { height: 100%; min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 4px 32px; }
.empty-illustration { height: 100px; width: 100px; position: relative; display: grid; place-items: center; margin-bottom: 19px; }
.empty-illustration > .icon { width: 34px; height: 34px; color: #a6c0c6; stroke-width: 1; transform: rotate(-7deg); }
.empty-illustration > span { position: absolute; width: 72px; height: 72px; border-radius: 24px; background: linear-gradient(140deg, #b7e3ed0b, #b5d7df03); border: 1px solid #c4e5ed14; transform: rotate(-9deg); box-shadow: 0 0 40px #91c1cc05; }
.empty-illustration::before, .empty-illustration::after { content: ''; position: absolute; width: 3px; height: 3px; background: #9ac0c9; border-radius: 50%; opacity: .6; }
.empty-illustration::before { left: 3px; top: 20px; }
.empty-illustration::after { right: 9px; bottom: 18px; width: 2px; height: 2px; }
.empty-illustration > i { position: absolute; inset: -4px; border: 1px dashed #9bc4cd12; border-radius: 50%; animation: rotate-slow 65s linear infinite; }
.empty h3 { font-size: 15px; font-weight: 450; letter-spacing: -.035em; color: #c0d3d7; margin: 0 0 11px; }
.empty p { font-size: 11px; color: #8fa1a5; line-height: 1.85; margin: 0; }
.empty-arabic { font-size: 12px; color: #a0b6bb; opacity: .8; margin-top: 18px; }
.turn { position: relative; margin: 16px 0 21px; padding-left: 43px; animation: message-in .35s ease-out both; }
.turn::before { position: absolute; left: 0; top: -2px; width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.turn.agent::before { content: ''; width: 34px; height: 29px; background: url('/static/assets/garandal-logo-transparent.png') center / contain no-repeat; }
.turn.caller::before { content: 'Y'; background: #c9e2e80c; color: #b1c0c3; border: 1px solid #cadbdf0e; font-weight: 400; }
.turn small { font-size: 10px; font-weight: 500; color: #bad3d9; letter-spacing: -.01em; }
.turn.caller small { color: #a6b6b9; }
.turn p { font-size: 13px; line-height: 1.9; color: #c4d3d6; margin: 7px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.turn.caller p { color: #a7b8bc; }
.turn p[data-interrupted=true]::after { content: ' · interrupted'; color: #8da8ae; font-size: 10px; }
.call-boundary { margin: 25px 0 18px; padding: 12px 0; border-top: 1px solid #cadbdf24; color: #a0b6bb; font-size: 10px; line-height: 1.7; text-align: center; }
#partial { font-size: 12px; color: #b4d5dc; line-height: 1.8; margin: 0 23px 8px; padding: 8px 12px; background: #a7dae609; border-left: 2px solid #9acdd950; border-radius: 0 8px 8px 0; }
#partial { max-height: 140px; overflow-y: auto; }
#partial:empty { display: none; }
.transcript-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 23px; border-top: 1px solid #d2e6eb0b; font-size: 9px; color: #8ea2a6; }
.text-button { display: inline-flex; align-items: center; gap: 5px; background: none; color: #aec6cb; font-size: 10px; padding: 4px 2px; min-height: 27px; }
.text-button .icon { width: 12px; height: 12px; }
.text-button:disabled { opacity: .3; }

/* Audio input: quiet glass surfaces with a shared control baseline. */
.device-panel { grid-column: 1 / -1; padding: 26px 28px 24px; background: radial-gradient(ellipse at 0 0, #387f8f1c, transparent 58%), linear-gradient(120deg, #152b36a6, #10222c99); }
.device-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 21px; border-bottom: 1px solid #b7dfeb0e; }
.device-heading > div { min-width: 0; }
.device-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #8bc6d526; border-radius: 15px; background: linear-gradient(145deg, #70bed01c, #387f8f0a); color: #a6d9e5; box-shadow: inset 0 1px 0 #d8f7ff0b, 0 5px 16px #0000000a; flex-shrink: 0; }
.device-icon .icon { width: 20px; height: 20px; }
.device-heading h2 { font-size: 15px; font-weight: 500; margin: 0 0 5px; color: #dfedf2; letter-spacing: -.025em; }
.device-heading p { margin: 0; font-size: 11px; color: #96aeb9; line-height: 1.6; }
.audio-input-badge { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 7px 10px; border: 1px solid #8cc5d51a; border-radius: 100px; color: #9fbec9; background: #8bc8db05; font-size: 9px; white-space: nowrap; }
.audio-input-badge .icon { width: 13px; height: 13px; color: #8bbcca; }
.microphone-controls { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); align-items: start; gap: 28px; margin-top: 20px; }
.microphone-controls label { display: flex; min-height: 18px; align-items: center; justify-content: space-between; gap: 10px; color: #c1d3dc; font-size: 11px; margin: 0; }
.microphone-controls label > span[lang] { color: #8faebc; font-size: 11px; }
.device-select, .input-monitor { min-width: 0; display: grid; grid-template-rows: auto 56px auto; gap: 10px; }
.select-field { position: relative; min-width: 0; height: 56px; }
.select-field > .icon { position: absolute; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #91becd; pointer-events: none; }
.select-mic { left: 17px; }
.select-chevron { right: 17px; opacity: .8; transition: opacity .2s; }
.device-select select { display: block; appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 56px; text-overflow: ellipsis; color: #d9e9ef; background: linear-gradient(110deg, #84bcd00a, #84bcd002), #08192366; border: 1px solid #a2cee321; border-radius: 14px; padding: 0 45px; font-size: 13px; cursor: pointer; box-shadow: inset 0 1px 0 #ccecf608, 0 3px 10px #00000008; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.device-select select:hover:not(:disabled) { border-color: #91c8dc50; background-color: #142e3c80; }
.device-select select:focus-visible { outline: 2px solid #87c7d6; outline-offset: 0; border-color: transparent; box-shadow: 0 0 0 6px #61acc310, inset 0 1px 0 #ccecf60b; }
.device-select select:disabled { opacity: .5; cursor: wait; }
.device-select option { color: #d9e9ef; background: #142731; }
.microphone-controls .device-status, .meter-caption { display: block; color: #8eaab8; line-height: 1.7; font-size: 10px; margin: 0; }
.input-level-label { color: #7493a1; font-size: 8px; letter-spacing: .13em; }
.input-level-track { min-width: 0; height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 17px; border: 1px solid #a2cee31a; border-radius: 14px; background: linear-gradient(110deg, #77bdd00a, #08192340); box-shadow: inset 0 1px 0 #ccecf606; }
.input-monitor meter { display: block; flex: 1; min-width: 0; width: 100%; height: 22px; appearance: none; -webkit-appearance: none; margin: 0; background: #8cc6d524; border: 0; border-radius: 0; overflow: hidden; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px); mask-image: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px); }
.input-monitor meter::-webkit-meter-bar { background: transparent; border: none; border-radius: 0; height: 100%; }
.input-monitor meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--brand), #8fd7e8); border-radius: 0; transition: width .14s ease-out; }
.input-monitor meter::-moz-meter-bar { background: linear-gradient(90deg, var(--brand), #8fd7e8); border-radius: 0; }
.level-readout { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 3px; min-width: 38px; flex-shrink: 0; color: #c4e3ed; font-size: 19px; font-weight: 450; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.level-unit { color: #789ba9; font-size: 10px; letter-spacing: 0; }
.call-actions .device-status { text-align: center; }
.device-status { color: #98adb2; line-height: 1.7; font-size: 10px; margin: 13px 0 0; overflow-wrap: anywhere; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 23px 3px 0; font-size: 8px; line-height: 1.8; color: #869a9f; }
.footer-brand { display: flex; align-items: center; gap: 7px; }
.footer-brand > span { width: 4px; height: 4px; border-radius: 50%; background: #7fa5ae; }
#audio-output { position: absolute; width: 0; height: 0; overflow: hidden; }

.reveal { animation: panel-in .65s cubic-bezier(.22, .8, .25, 1) both; }
.page-heading { animation-delay: .05s; }
.call { animation-delay: .12s; }
.conversation { animation-delay: .2s; }
.device-panel { animation-delay: .27s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift-one { to { transform: translate(80px, 60px) scale(1.08); } }
@keyframes drift-two { to { transform: translate(-60px, -80px) scale(.95); } }
@keyframes rotate-slow { to { transform: rotate(360deg); } }
@keyframes aura-breathe { 0%, 100% { transform: scale(.95); opacity: .1; } 50% { transform: scale(1.1); opacity: .2; } }
@keyframes interruption-ring { from { box-shadow: 0 0 0 10px #9bd3e32c; } to { box-shadow: 0 0 0 0 #9bd3e300; } }
@keyframes thinking-wave { 0%, 100% { opacity: .2; } 50% { opacity: .75; } }
@keyframes dot-pulse { 50% { opacity: .45; } }
.page-hidden *, .page-hidden *::before, .page-hidden *::after { animation-play-state: paused !important; }

@media (max-width: 1240px) {
  .workspace { padding: 24px 26px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(315px, 1fr); gap: 15px; }
  .call-actions { padding-left: 18px; padding-right: 18px; }
  .controls { gap: 6px; flex-wrap: wrap; }
  .controls .secondary { padding: 0 9px; }
  .controls .end-button { padding: 0 9px; }
}
@media (max-width: 1040px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .call { grid-column: 1 / -1; grid-row: 1; min-height: 480px; }
  .conversation { grid-column: 1 / -1; grid-row: 3; height: 500px; min-height: 0; }
  .device-panel { grid-column: 1 / -1; grid-row: 2; }
  .controls { flex-wrap: nowrap; }
  .empty { min-height: 290px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 15px; }
  .workspace { margin: 0; padding: 16px 17px 28px; }
  .topbar { min-height: 86px; gap: 12px; }
  .brand-logo { width: 148px; }
  .workspace-name { display: none; }
  .connection-chip { font-size: 9px; padding: 7px 9px; }
  .page-heading { margin: 33px 0 24px; gap: 14px; align-items: flex-start; }
  .eyebrow { font-size: 8px; letter-spacing: .16em; }
  h1 { font-size: 32px; line-height: 1.13; max-width: 240px; }
  .page-description { font-size: 11px; max-width: 235px; margin-top: 10px; }
  .session-clock { padding: 0 0 0 12px; gap: 0; margin-top: 24px; flex-shrink: 0; }
  .session-clock > .icon { display: none; }
  .session-clock span { font-size: 8px; }
  .session-clock strong { font-size: 19px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .call { grid-column: 1; grid-row: 1; min-height: 538px; }
  .device-panel { grid-column: 1 / -1; grid-row: 2; }
  .conversation { grid-column: 1; grid-row: 3; height: 540px; }
  .glass-card { border-radius: 21px; }
  .panel-top { padding: 20px; }
  .voice-stage { padding: 0 16px 22px; }
  .orb-scene { width: 270px; height: 280px; }
  .orb-control { width: 270px; height: 270px; }
  #orb { width: 270px; height: 270px; }
  #status { font-size: 19px; }
  .call-actions { padding: 0 19px 21px; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .controls button { min-height: 44px; font-size: 11px; }
  .topic-row { font-size: 8px; margin-top: 18px; gap: 5px; }
  .topic-row > span:first-child { width: 100%; text-align: center; margin: 0 0 3px; }
  .topic { padding: 5px 9px; }
  .device-panel { padding: 22px 20px 20px; }
  .device-heading { gap: 12px; padding-bottom: 18px; }
  .device-heading h2 { font-size: 14px; }
  .device-heading p { max-width: 210px; }
  .audio-input-badge { display: none; }
  .microphone-controls { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 18px; }
  .device-select select { font-size: 16px; }
  .text-button { min-height: 40px; }
  .workspace-footer { padding-top: 25px; gap: 8px; font-size: 8px; }
  .workspace-footer > span:last-child { max-width: 310px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ambient-light { will-change: auto; }
  .orb-control, .orb-core, .input-ring { transform: none !important; }
  .orb-aura { transform: none !important; }
}
@supports not (backdrop-filter: blur(1px)) { .glass-card { background: #172427; } }
