:root {
  color-scheme: dark;
  --void: #080a0d;
  --shell: #11141a;
  --surface: #161a21;
  --surface-raised: #1b2029;
  --line: #292e39;
  --line-soft: #222731;
  --ink: #f0f3f9;
  --ink-soft: #cbd2df;
  --muted: #747d8e;
  --quiet: #505866;
  --ice: #bdcdf9;
  --ice-strong: #9db4f3;
  --danger: #e88080;
  --success: #91abf5;
  --radius-shell: 27px;
  --radius-panel: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--void); scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, rgba(116, 139, 197, .08), transparent 38%),
    var(--void);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { color: #111827; background: var(--ice); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.foreground-banner {
  position: fixed;
  z-index: 100;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 10px 15px;
  color: #c8cfdb;
  border: 1px solid rgba(143, 157, 187, .22);
  border-radius: 999px;
  background: rgba(20, 24, 31, .82);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .34);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  font-size: 11px;
  transform: translate(-50%, -150%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
.foreground-banner.visible { transform: translate(-50%, 0); opacity: 1; }
.foreground-banner > span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--ice); box-shadow: 0 0 13px rgba(157, 180, 243, .75); }

.app-shell { min-height: 100vh; padding: 18px; }
.voice-console {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #262b35;
  border-radius: var(--radius-shell);
  background: #13161c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.console-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-right: 1px solid #252a34;
  background: #101319;
}
.rail-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #182034;
  border-radius: 11px;
  background: #dfe6f9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 8px 24px rgba(120, 145, 209, .08);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -.08em;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rail-logo:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 10px 30px rgba(120,145,209,.14); }
.rail-menu { display: grid; gap: 9px; }
.rail-item {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #687080;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 590;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}
.rail-item:hover { color: #b8c1d2; transform: translateY(-1px); }
.rail-item.active { color: #dce4f8; border-color: #2c3340; background: #202530; }
.console-rail > small {
  color: #4f5664;
  writing-mode: vertical-rl;
  font: 500 7px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: .2em;
}

.console-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 25px 31px 22px; }
.console-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-copy strong { display: block; color: #f1f3f8; font-size: 13px; font-weight: 650; letter-spacing: -.025em; }
.brand-copy span { display: block; margin-top: 3px; color: #5f6776; font: 500 8px/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .16em; }
.service-state { display: flex; align-items: center; gap: 10px; color: #737c8d; font-size: 9px; }
.service-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 13px rgba(117, 150, 244, .6); }
.service-state strong { color: #dce2ef; font-weight: 560; }

.console-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 292px minmax(390px, 1fr) 282px;
  gap: clamp(20px, 2.1vw, 32px);
  align-items: center;
  padding: 24px 0 18px;
}
.session-column { min-width: 0; }
.eyebrow { margin: 0; color: #697182; font: 500 8px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .16em; }
.lobby-panel h1,
.active-room-panel h2 {
  margin: 17px 0 17px;
  color: #f0f2f7;
  font-size: clamp(42px, 3.5vw, 52px);
  line-height: .95;
  font-weight: 620;
  letter-spacing: -.075em;
}
.lobby-panel h1 span,
.active-room-panel h2 span { color: #707787; }
.hero-copy { max-width: 278px; margin: 0; color: #7d8594; font-size: 11px; line-height: 1.78; }

.mode-picker { margin-top: 23px; }
.mode-picker-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: #7a8291; font-size: 8px; }
.mode-picker-title > span { letter-spacing: .12em; }
.mode-picker-title small { color: #515968; font-size: 8px; }
.mode-segment { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #292f3a; border-radius: 13px; background: #101319; }
.mode-segment button {
  min-height: 47px;
  padding: 8px 10px;
  color: #626b7b;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: color .24s ease, background .24s ease, border-color .24s ease, transform .2s ease;
}
.mode-segment button:hover { color: #aab4c7; }
.mode-segment button[aria-pressed="true"] { color: #dce4f7; border-color: #303746; background: #20252f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.mode-segment button strong { display: block; font-size: 10px; font-weight: 620; }
.mode-segment button small { display: block; margin-top: 4px; color: #596273; font: 500 7px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .08em; }
.mode-picker > p { min-height: 28px; margin: 8px 2px 0; color: #555e6d; font-size: 8px; line-height: 1.6; }

.room-card { margin-top: 14px; padding: 14px 15px; border: 1px solid #2b313c; border-radius: 14px; background: #181b22; box-shadow: inset 0 1px 0 rgba(255,255,255,.018); }
.room-card-head, .room-card-row, .room-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.room-card label { color: #626a79; font: 500 7px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .15em; }
.room-card-head small { max-width: 145px; overflow: hidden; color: #818999; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.room-card-row { margin-top: 10px; }
.room-card-row > strong { overflow: hidden; color: #c0c7d5; font: 520 14px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.room-card-row button { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: #7a8495; border: 1px solid #303744; border-radius: 9px; background: #1d2129; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.room-card-row button:not(:disabled):hover { color: var(--ice); border-color: #47536b; transform: translateY(-1px); }
.room-card-row button:disabled { opacity: .35; }
.copy-icon { position: relative; display: block; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 2px; }
.copy-icon::after { content: ""; position: absolute; width: 7px; height: 7px; top: -4px; right: -4px; border: 1px solid currentColor; border-radius: 2px; background: inherit; }
.room-card-meta { margin-top: 10px; padding-top: 9px; border-top: 1px solid #252b34; }
.room-card-meta span { color: #555e6d; font-size: 7px; letter-spacing: .08em; }
.room-card-meta b { margin-left: 5px; color: #858e9f; font-weight: 560; }

.primary-button,
.secondary-button {
  width: 100%;
  border-radius: 13px;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, opacity .2s ease;
}
.primary-button {
  height: 49px;
  margin-top: 10px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #121827;
  border: 0;
  background: var(--ice);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 25px rgba(112, 139, 207, .08);
  font-size: 11px;
  font-weight: 690;
}
.primary-button i { font-size: 18px; font-style: normal; font-weight: 400; transition: transform .2s ease; }
.primary-button:not(:disabled):hover { transform: translateY(-1px); background: #c7d5fb; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 32px rgba(112,139,207,.14); }
.primary-button:not(:disabled):hover i { transform: translateX(3px); }
.primary-button:active { transform: translateY(0) scale(.99); }
.primary-button:disabled { opacity: .58; }
.primary-button.is-loading i { animation: loading-shift .9s ease-in-out infinite alternate; }
@keyframes loading-shift { to { transform: translateX(5px); } }

.join-divider { display: flex; align-items: center; gap: 10px; margin: 13px 0 9px; color: #4f5765; font-size: 7px; letter-spacing: .1em; }
.join-divider::before, .join-divider::after { content: ""; height: 1px; flex: 1; background: #272c35; }
.join-form label { display: block; margin-bottom: 6px; color: #626a79; font-size: 8px; }
.join-form > div { display: grid; grid-template-columns: minmax(0, 1fr) 52px; overflow: hidden; border: 1px solid #2b313c; border-radius: 11px; background: #15181e; transition: border-color .2s ease, box-shadow .2s ease; }
.join-form > div:focus-within { border-color: #52607b; box-shadow: 0 0 0 3px rgba(126, 153, 221, .07); }
.join-form input { min-width: 0; height: 40px; padding: 0 12px; color: #cbd3e1; border: 0; outline: 0; background: transparent; font-size: 9px; }
.join-form input::placeholder { color: #454d5a; }
.join-form button { color: #9da9be; border: 0; border-left: 1px solid #292f38; background: #1c2028; font-size: 9px; transition: color .2s ease, background .2s ease; }
.join-form button:hover { color: var(--ice); background: #222833; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin: 10px 2px 0; color: #555d6b; font-size: 8px; }
.privacy-note i { width: 4px; height: 4px; border-radius: 50%; background: #69778f; }

.active-heading { display: flex; justify-content: space-between; align-items: center; }
.status-badge { padding: 5px 8px; border: 1px solid #313746; border-radius: 999px; color: #8c96a8; background: #1a1e26; font-size: 8px; font-weight: 560; }
.status-badge-live { color: #c8d5f5; border-color: #445373; background: #1a2232; }
.status-badge-repairing { color: #d9c8a6; border-color: #504634; background: #252119; }
.active-route { padding: 12px 14px; border: 1px solid #2a303a; border-radius: 12px; background: #171a21; }
.active-route small, .active-route strong { display: block; }
.active-route small { color: #5b6474; font-size: 7px; letter-spacing: .11em; }
.active-route strong { margin-top: 5px; color: #b7c1d5; font-size: 10px; font-weight: 590; }
.room-code { width: 100%; margin-top: 9px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8d97a8; border: 1px solid #2a303a; border-radius: 12px; background: #181c23; text-align: left; transition: border-color .2s ease, background .2s ease; }
.room-code:hover { border-color: #3c465a; background: #1c212a; }
.room-code > span:first-child { min-width: 0; }
.room-code small, .room-code strong { display: block; }
.room-code small { color: #586171; font-size: 7px; }
.room-code strong { margin-top: 5px; overflow: hidden; color: #bfc7d5; font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.room-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.room-facts > div { padding: 10px 12px; border: 1px solid #282e38; border-radius: 11px; background: #161920; }
.room-facts span, .room-facts strong { display: block; }
.room-facts span { color: #565f6e; font-size: 7px; }
.room-facts strong { margin-top: 5px; color: #aab3c3; font-size: 9px; font-weight: 570; }
.invite-field { margin-top: 8px; padding: 10px 12px; border: 1px solid #282e38; border-radius: 11px; background: #161920; }
.invite-field span { display: block; color: #565f6e; font-size: 7px; }
.invite-field output { display: block; margin-top: 5px; overflow: hidden; color: #8994a7; font: 500 7px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.participant-list { margin-top: 9px; overflow: hidden; border: 1px solid #282e38; border-radius: 12px; background: #161920; }
.participant-row { display: grid; grid-template-columns: 29px 1fr 7px; align-items: center; gap: 10px; padding: 10px 12px; }
.participant-row + .participant-row { border-top: 1px solid #282e38; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #343d4c; border-radius: 9px; color: #afbdd8; background: #202632; font-size: 9px; }
.avatar.remote { color: #8f98a8; background: #1d2128; }
.participant-row strong, .participant-row small { display: block; }
.participant-row strong { color: #b8c0cf; font-size: 9px; font-weight: 570; }
.participant-row small { margin-top: 3px; color: #5e6776; font-size: 7px; }
.level-dot { width: 6px; height: 6px; border-radius: 50%; background: #93acf0; box-shadow: 0 0 10px rgba(117,150,244,.55); }
.level-dot.muted { background: #4d5562; box-shadow: none; }
.secondary-button { height: 40px; margin-top: 9px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; color: #aeb8ca; border: 1px solid #303746; background: #1b2028; font-size: 9px; }
.secondary-button:hover { color: var(--ice); border-color: #46536b; background: #202630; transform: translateY(-1px); }

.stage-column { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage-caption { color: #555e6d; font: 500 7px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .16em; }
.stage-caption b { color: #778295; font-weight: 560; }
.audio-field { position: relative; width: 100%; min-height: 490px; display: grid; place-items: center; isolation: isolate; }
.axis { position: absolute; z-index: -2; background: #242934; }
.axis-horizontal { width: 84%; height: 1px; }
.axis-vertical { width: 1px; height: 82%; }
.orbit { position: absolute; border-radius: 50%; transition: border-color .45s ease, box-shadow .45s ease, background .45s ease; }
.orbit.outer { width: min(31vw, 408px); aspect-ratio: 1; border: 1px solid #303642; background: #14171d; box-shadow: 0 0 0 30px #15181f, 0 0 0 31px rgba(50, 57, 70, .38); }
.orbit.dashed { width: min(25vw, 326px); aspect-ratio: 1; border: 1px dashed #303641; }
.orbit.core { width: min(18.5vw, 244px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #303744; background: radial-gradient(circle at 50% 42%, #202838 0, #181c24 63%, #15181e 100%); box-shadow: inset 0 0 48px rgba(111, 139, 212, .05); }
.orbit-dot { position: absolute; z-index: 3; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #7b8494; transition: background .35s ease, box-shadow .35s ease; }
#waveform { position: absolute; z-index: 2; width: 76%; height: 86px; }
.channel { position: absolute; top: 49%; color: #596274; font: 500 7px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; }
.channel.left { left: -47%; }
.channel.right { right: -47%; }
.field-readout { position: absolute; z-index: 4; bottom: 17%; left: 50%; width: 170px; text-align: center; transform: translateX(-50%); }
.field-readout strong { display: block; color: #b6c1d7; font: 520 19px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: -.04em; }
.field-readout small { display: block; margin-top: 7px; overflow: hidden; color: #667083; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.codec-readout { position: absolute; bottom: 8.5%; color: #596274; font: 500 7px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; }
.audio-field[data-state="connected"] .orbit.outer { border-color: #405071; box-shadow: 0 0 0 30px #151a22, 0 0 0 31px rgba(99, 125, 188, .25), 0 0 60px rgba(102, 132, 206, .05); }
.audio-field[data-state="connected"] .orbit.dashed { border-color: #43516b; animation: orbit-turn 24s linear infinite; }
.audio-field[data-state="connected"] .orbit-dot { background: #aebff0; box-shadow: 0 0 14px #7695ed; animation: field-breathe 2.8s ease-in-out infinite; }
.audio-field[data-state="repairing"] .orbit.dashed { border-color: #6d614c; animation: orbit-turn 6s linear infinite; }
.audio-field[data-state="repairing"] .orbit-dot { background: #d3bb8e; box-shadow: 0 0 13px rgba(211,187,142,.52); animation: field-breathe 1.1s ease-in-out infinite; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes field-breathe { 50% { transform: scale(1.4); opacity: .7; } }

.control-dock { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -34px; padding: 5px; border: 1px solid #292f3a; border-radius: 15px; background: rgba(20, 24, 31, .88); box-shadow: 0 16px 44px rgba(0,0,0,.22); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.control-button { min-width: 70px; height: 48px; padding: 6px 11px; display: grid; place-items: center; gap: 4px; color: #747e8f; border: 1px solid transparent; border-radius: 11px; background: transparent; transition: color .22s ease, border-color .22s ease, background .22s ease, transform .2s ease; }
.control-button small { font-size: 7px; }
.control-button:not(:disabled):hover { color: #c6cfdf; border-color: #303746; background: #1d222b; transform: translateY(-1px); }
.control-button[aria-pressed="true"] { color: #dbe4f8; border-color: #3e4b63; background: #222936; }
.control-button.end:not(:disabled):hover { color: #f1b2b2; border-color: #523a40; background: #291d21; }
.control-button:disabled { opacity: .28; }
.mic-icon, .shield-icon, .phone-icon { position: relative; width: 15px; height: 15px; display: block; }
.mic-icon::before { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px; border: 1px solid currentColor; border-radius: 4px; }
.mic-icon::after { content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 6px; border: 1px solid currentColor; border-top: 0; border-radius: 0 0 7px 7px; box-shadow: 0 3px 0 -2px currentColor; }
.shield-icon::before { content: ""; position: absolute; inset: 1px 2px; border: 1px solid currentColor; border-radius: 7px 7px 9px 9px; clip-path: polygon(50% 0,100% 18%,90% 72%,50% 100%,10% 72%,0 18%); }
.phone-icon::before { content: ""; position: absolute; left: 1px; top: 5px; width: 13px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 10px 10px 0 0; transform: rotate(180deg); }

.inspector-column { display: grid; gap: 9px; min-width: 0; }
.inspector-panel { padding: 16px; border: 1px solid #292e38; border-radius: var(--radius-panel); background: #171a21; box-shadow: inset 0 1px 0 rgba(255,255,255,.016); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.panel-heading strong, .panel-heading small { display: block; }
.panel-heading strong { color: #d0d6e2; font-size: 9px; font-weight: 620; letter-spacing: .06em; }
.panel-heading small { margin-top: 4px; color: #555e6e; font: 500 7px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .1em; }
.panel-heading > span { display: flex; align-items: center; gap: 6px; color: #5d6675; }
.panel-heading > span i { width: 5px; height: 5px; border-radius: 50%; background: #69778f; }
.panel-heading > span b { font-size: 7px; font-weight: 500; }
.metric { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; }
.metric + .metric { border-top: 1px solid #272c35; }
.metric > span { color: #717a8b; font-size: 8px; }
.metric > span small { display: block; margin-top: 4px; color: #4f5867; font-size: 7px; }
.metric > strong { max-width: 120px; overflow: hidden; color: #cbd3e2; font: 560 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.refresh-button { width: 29px; height: 29px; display: grid; place-items: center; color: #717a8b; border: 1px solid #2d333e; border-radius: 9px; background: #1c2028; transition: color .2s ease, border-color .2s ease, transform .25s ease; }
.refresh-button:hover { color: var(--ice); border-color: #45516a; transform: rotate(25deg); }
.refresh-button span { width: 11px; height: 11px; border: 1px solid currentColor; border-left-color: transparent; border-radius: 50%; }
.device-group + .device-group { margin-top: 9px; }
.device-group label { display: block; margin-bottom: 6px; color: #596272; font: 500 7px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .08em; }
.device-group select { width: 100%; height: 38px; padding: 0 31px 0 11px; overflow: hidden; color: #aeb7c7; border: 1px solid #2b313b; border-radius: 10px; outline: 0; background: #1c2028; font-size: 8px; text-overflow: ellipsis; transition: border-color .2s ease, box-shadow .2s ease; }
.device-group select:focus { border-color: #4f5c75; box-shadow: 0 0 0 3px rgba(126,153,221,.07); }
.device-group select:disabled { color: #5a6270; opacity: 1; }
.raw-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #272c35; }
.raw-state > span { color: #828b9b; font-size: 8px; }
.raw-state small { display: block; max-width: 155px; margin-top: 4px; color: #505866; font-size: 7px; line-height: 1.45; }
.raw-state strong { padding: 5px 7px; color: #b9c8ed; border: 1px solid #39445a; border-radius: 999px; background: #1d2431; font-size: 7px; font-weight: 560; white-space: nowrap; }
.codec-panel { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid #292e38; border-radius: var(--radius-panel); background: #292e38; }
.codec-panel > div { min-width: 0; padding: 13px 10px; background: #171a21; }
.codec-panel span, .codec-panel strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codec-panel span { color: #596171; font-size: 7px; }
.codec-panel strong { margin-top: 7px; color: #bec7d6; font-size: 9px; font-weight: 580; }

.console-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding-top: 15px; color: #515866; border-top: 1px solid #262b34; font: 500 7px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .1em; }
.client-download-link { padding: 7px 11px; color: #8290aa; border: 1px solid #2b323e; border-radius: 999px; background: #171b22; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.client-download-link:hover { color: var(--ice); border-color: #46536b; transform: translateY(-1px); }
.client-download-link b { color: #596578; font-weight: 500; }
.footer-legal { justify-self: end; text-align: right; }
.footer-legal a:hover { color: #8491a8; }

.modal-backdrop { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4, 6, 9, .62); backdrop-filter: blur(24px) saturate(90%); -webkit-backdrop-filter: blur(24px) saturate(90%); animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; } }
.permission-card { position: relative; width: min(430px, 100%); padding: 28px; border: 1px solid rgba(119, 132, 160, .28); border-radius: 24px; background: rgba(21, 25, 32, .95); box-shadow: 0 30px 100px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.035); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; color: #7c8594; border: 1px solid #303641; border-radius: 50%; background: #1b1f26; font-size: 17px; }
.permission-art { position: relative; width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid #374154; border-radius: 18px; background: #202632; }
.permission-mic { width: 10px; height: 20px; border: 2px solid #aebfe9; border-radius: 7px; }
.permission-art i { position: absolute; left: 37px; width: 5px; height: 1px; background: #6e7b95; }
.permission-art i:nth-of-type(1) { top: 19px; width: 7px; }
.permission-art i:nth-of-type(2) { top: 28px; width: 11px; }
.permission-art i:nth-of-type(3) { top: 37px; width: 6px; }
.permission-card h2 { margin: 10px 0 8px; font-size: 27px; font-weight: 620; letter-spacing: -.05em; }
.permission-card > p { margin: 0; color: #7c8595; font-size: 11px; line-height: 1.7; }
.permission-card ol { margin: 20px 0 0; padding: 0; list-style: none; }
.permission-card li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; padding: 10px 0; }
.permission-card li + li { border-top: 1px solid #292f38; }
.permission-card li > span { width: 24px; height: 24px; display: grid; place-items: center; color: #a9b9df; border: 1px solid #39445a; border-radius: 8px; font-size: 8px; }
.permission-card li strong, .permission-card li small { display: block; }
.permission-card li strong { color: #bdc6d5; font-size: 10px; font-weight: 580; }
.permission-card li small { margin-top: 3px; color: #5d6574; font-size: 8px; }

.toast { position: fixed; z-index: 150; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); max-width: min(360px, calc(100vw - 44px)); padding: 12px 15px; color: #cdd5e2; border: 1px solid #343c4b; border-radius: 13px; background: rgba(27, 32, 41, .94); box-shadow: 0 18px 48px rgba(0,0,0,.38); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-size: 10px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .25s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.error { color: #f0b9b9; border-color: #563a40; background: rgba(43, 27, 31, .95); }
#remoteAudio { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--ice-strong); outline-offset: 2px; }

@media (max-width: 1220px) {
  .console-grid { grid-template-columns: 280px minmax(350px, 1fr); align-items: start; }
  .inspector-column { grid-column: 1 / -1; grid-template-columns: 1.1fr 1fr .8fr; align-items: stretch; }
  .codec-panel { align-content: stretch; }
  .audio-field { min-height: 500px; }
  .orbit.outer { width: min(42vw, 390px); }
  .orbit.dashed { width: min(34vw, 312px); }
  .orbit.core { width: min(25vw, 232px); }
}

@media (max-width: 820px) {
  .app-shell { padding: 10px; }
  .voice-console { min-height: calc(100vh - 20px); grid-template-columns: 58px minmax(0,1fr); border-radius: 22px; }
  .console-rail { padding: 17px 0; }
  .rail-logo { width: 33px; height: 33px; }
  .rail-item { width: 34px; height: 38px; }
  .console-main { padding: 21px 20px 18px; }
  .console-grid { grid-template-columns: 1fr; padding-top: 34px; }
  .session-column { max-width: 460px; margin-inline: auto; width: 100%; }
  .stage-column { margin-top: 8px; }
  .audio-field { min-height: 440px; }
  .orbit.outer { width: min(66vw, 360px); }
  .orbit.dashed { width: min(54vw, 288px); }
  .orbit.core { width: min(39vw, 216px); }
  .inspector-column { grid-column: auto; grid-template-columns: 1fr; max-width: 560px; width: 100%; margin-inline: auto; }
  .console-footer { grid-template-columns: 1fr auto; }
  .console-footer > span:first-child { display: none; }
}

@media (max-width: 560px) {
  .app-shell { padding: 0; }
  .voice-console { display: block; min-height: 100vh; border: 0; border-radius: 0; }
  .console-rail { height: 58px; padding: 0 16px; flex-direction: row; border-right: 0; border-bottom: 1px solid #252a34; }
  .rail-menu { display: flex; gap: 6px; }
  .rail-item { width: 34px; height: 34px; }
  .console-rail > small { display: none; }
  .console-main { padding: 17px 16px calc(18px + env(safe-area-inset-bottom)); }
  .console-header { align-items: flex-start; }
  .service-state { display: grid; grid-template-columns: 6px auto; gap: 3px 7px; justify-items: start; }
  .service-state strong { grid-column: 2; }
  .brand-copy span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .console-grid { gap: 34px; padding: 40px 0 24px; }
  .lobby-panel h1, .active-room-panel h2 { font-size: 47px; }
  .mode-segment button { min-height: 51px; }
  .audio-field { min-height: 370px; }
  .orbit.outer { width: min(78vw, 322px); box-shadow: 0 0 0 20px #15181f, 0 0 0 21px rgba(50,57,70,.38); }
  .orbit.dashed { width: min(64vw, 262px); }
  .orbit.core { width: min(46vw, 190px); }
  .audio-field[data-state="connected"] .orbit.outer { box-shadow: 0 0 0 20px #151a22, 0 0 0 21px rgba(99,125,188,.25); }
  .channel.left { left: -38%; }
  .channel.right { right: -38%; }
  .codec-readout { bottom: 5%; }
  .control-dock { margin-top: -20px; width: 100%; }
  .control-button { min-width: 0; flex: 1; }
  .console-footer { grid-template-columns: 1fr; justify-items: center; gap: 10px; text-align: center; }
  .footer-legal { justify-self: center; text-align: center; }
  .toast { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); }
  .permission-card { padding: 24px 20px; border-radius: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
