/* Visual redesign 2026-10-22 (b: FTX palette): navy ground, off-white type, FTX cyan accent, clay for money, mono caps labels, square
   hairline panels and fine grain, matching the on-stream third layer. Selectors and states are unchanged.
   Faces come from site-fonts.css (inlined WOFF2). Reason: the static servers only serve .html/.js/.css/.svg. */
:root {
  --font-sans: "SBF Sans", "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SBF Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  --font-display: "SBF Cond", "Barlow Condensed", "Arial Narrow", "SBF Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ink: #0b111a;
  --surface: #0f1620f2;
  --raise: #141c27;
  --tile: #111823;
  --line: #1f2a37;
  --line-strong: #33414f;
  --paper: #ece8e0;
  --soft: #c4c0b8;
  --muted: #8f9cab;
  --dim: #56636f;
  --clay: #d97757;
  --clay-soft: #d977571f;
  --ftx: #5fcade;
  --ftx-deep: #02a6c2;
  --ftx-soft: #5fcade1f;
  --amber: #d9b46a;
  --danger: #ef7a68;
  --accent: var(--ftx);
  --accent2: #8fdcea;
  --accent-soft: var(--ftx-soft);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .91 0 0 0 0 .88 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: var(--font-sans);
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--grain), radial-gradient(ellipse 80% 50% at 50% -10%, #13233a, transparent 70%), var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, textarea, input, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.icon-definitions { display: none; }
.app-shell { max-width: 1640px; margin: 0 auto; padding: 0 48px; }
.topbar { height: 72px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: .2em; }
.brand-mark { width: 4px; height: 24px; display: block; background: var(--accent); border-radius: 0; }
.brand-mark svg { display: none; }
.brand-divider { color: var(--dim); margin: 0 10px; font-weight: 300; letter-spacing: 0; }
.brand-caption { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .24em; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.connection-pill { border: 1px solid var(--line-strong); padding: 6px 10px; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; display: inline-block; flex-shrink: 0; border-radius: 50%; background: var(--dim); }
.connection-pill[data-state="online"] { color: var(--paper); border-color: #1f5560; background: var(--accent-soft); }
.connection-pill[data-state="online"] .status-dot, .status-dot.active { background: var(--accent); box-shadow: 0 0 8px #5fcade66; }
.connection-pill[data-state="test"] { color: var(--amber); border-color: #5a4c30; background: #d9b46a14; }
.connection-pill[data-state="test"] .status-dot, .status-dot.test { background: var(--amber); }
.connection-pill[data-state="error"] { color: var(--danger); border-color: #5e3530; }
.connection-pill[data-state="error"] .status-dot { background: var(--danger); }
.connection-pill[data-state="connecting"] .status-dot { animation: pulse 1.7s infinite; background: var(--soft); }
.topbar-date { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.icon-button { border: 1px solid transparent; background: transparent; color: var(--muted); width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 2px; padding: 6px; }
.icon-button:hover { color: var(--paper); border-color: var(--line-strong); background: var(--raise); }
.icon-button:disabled { opacity: .35; }
.page-heading { padding: 34px 0 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; font-weight: 500; color: var(--muted); text-transform: uppercase; }
.eyebrow > span { width: 3px; height: 12px; background: var(--accent); }
h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 3.2vw, 52px); letter-spacing: .02em; line-height: 1; margin: 14px 0 12px; }
.heading-period { color: var(--accent); margin-left: 2px; }
.page-heading p { font-size: 13px; margin: 0; color: var(--muted); letter-spacing: .01em; }
.session-label { display: flex; flex-direction: column; text-align: right; gap: 8px; padding-bottom: 2px; }
.small-label { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
#session-label { font-family: var(--font-mono); font-size: 11px; color: var(--soft); font-variant-numeric: tabular-nums; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 20px; align-items: stretch; }
.stage-panel, .chat-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.panel-heading { min-height: 52px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; color: var(--paper); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.panel-title svg { width: 16px; height: 16px; color: var(--accent); }
.panel-title h2 { font: inherit; margin: 0; }
.source-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--line-strong); padding: 4px 7px; border-radius: 2px; }
.source-tag.test { color: var(--amber); border-color: #5a4c30; }
.identity-disclosure { font-family: var(--font-mono); color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; margin: -4px 20px 12px; }
.video-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #05090e; margin: 0 12px; border: 1px solid var(--line); border-radius: 0; isolation: isolate; }
.video-stage:fullscreen { aspect-ratio: auto; margin: 0; border: none; border-radius: 0; width: 100vw; height: 100vh; }
video { display: block; width: 100%; height: 100%; object-fit: contain; background: #05090e; }
.video-stage[data-state="offline"] video, .video-stage[data-state="waiting"] video { opacity: .2; }
.stage-topline { position: absolute; z-index: 2; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; pointer-events: none; }
.live-badge { background: #0b111ad9; color: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; padding: 5px 8px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.live-badge > span:first-child { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.7s infinite; }
.live-badge.test { color: var(--amber); border-color: #5a4c30; }
.live-badge.test > span:first-child { background: var(--amber); animation: none; }
.resolution-badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--soft); background: #0b111ad9; border: 1px solid var(--line-strong); padding: 5px 7px; border-radius: 2px; }
.test-banner { position: absolute; top: 52px; left: 18px; max-width: calc(100% - 36px); z-index: 2; font-family: var(--font-mono); font-size: 10px; line-height: 1.6; padding: 6px 10px; border-radius: 2px; background: #0b111ae6; color: var(--amber); border: 1px solid #5a4c30; }
.stage-overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 45px 26px; text-align: center; background: var(--grain), radial-gradient(ellipse at 50% 35%, #12223a, transparent 70%), #080d14eb; }
.stage-overlay::before { content: ""; position: absolute; inset: 22% 30%; z-index: -1; pointer-events: none; background:
  linear-gradient(var(--accent), var(--accent)) left top / 14px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) left top / 1px 14px no-repeat,
  linear-gradient(var(--accent), var(--accent)) right top / 14px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) right top / 1px 14px no-repeat,
  linear-gradient(var(--accent), var(--accent)) left bottom / 14px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) left bottom / 1px 14px no-repeat,
  linear-gradient(var(--accent), var(--accent)) right bottom / 14px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) right bottom / 1px 14px no-repeat;
  border: 1px solid #ece8e01a; }
.stage-reticle { display: flex; align-items: center; gap: 18px; color: var(--soft); margin-bottom: 20px; }
.stage-reticle svg { width: 28px; height: 28px; stroke-width: 1.2; }
.stage-reticle > span { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #ece8e055); }
.stage-reticle > span:last-child { transform: rotate(180deg); }
.stage-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; color: var(--accent); }
.stage-overlay h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(22px, 2.2vw, 34px); font-weight: 900; letter-spacing: .03em; margin: 12px 0 10px; color: var(--paper); }
.stage-overlay p { max-width: 360px; margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.stage-overlay .secondary-button { margin-top: 18px; }
.stage-bottomline { position: absolute; bottom: 16px; left: 18px; right: 18px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 15px; pointer-events: none; }
.stage-corner-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.stage-clock { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--paper); letter-spacing: .1em; padding: 5px 8px; background: #0b111ac7; border: 1px solid var(--line); border-radius: 2px; }
.stage-text-button { pointer-events: auto; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--paper); border-radius: 2px; padding: 6px 10px; font-size: 10px; }
.stage-text-button > span { margin-left: 8px; color: var(--accent); }
.video-controls { display: flex; align-items: center; gap: 16px; height: 58px; margin: 0 20px; }
.audio-button { display: flex; align-items: center; gap: 8px; color: var(--paper); background: var(--raise); border: 1px solid var(--line-strong); border-radius: 2px; padding: 7px 11px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.audio-button:hover { border-color: var(--soft); }
.audio-button svg { width: 14px; height: 14px; }
.audio-button[aria-pressed="true"] { color: var(--accent); border-color: #1f5560; }
.playback-summary { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }
.playback-summary .status-dot { width: 5px; height: 5px; }
.video-controls > .icon-button { width: 30px; height: 30px; }
.video-controls > .icon-button svg { width: 16px; height: 16px; }
.telemetry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding: 18px 0; }
.telemetry-grid > div { padding: 0 22px; }
.telemetry-grid > div + div { border-left: 1px solid var(--line); }
.telemetry-grid strong { display: block; font-family: var(--font-mono); font-size: 15px; margin: 10px 0 6px; font-weight: 600; color: var(--paper); letter-spacing: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.telemetry-grid strong > span { font-size: 10px; color: var(--muted); font-weight: 500; }
.metric-note { color: var(--dim); font-size: 10px; line-height: 1.5; display: block; }
.chat-panel { display: flex; flex-direction: column; min-height: 500px; }
.chat-panel .panel-heading { border-bottom: 1px solid var(--line); }
.chat-count { font-family: var(--font-mono); color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.chat-context { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); background: #ece8e006; padding: 10px 20px; border-bottom: 1px solid var(--line); min-height: 36px; }
.context-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.voice-status { font-family: var(--font-mono); font-size: 10px; color: var(--muted); line-height: 1.6; padding: 9px 20px 0; overflow-wrap: anywhere; }
.messages { flex: 1; min-height: 180px; max-height: 450px; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.chat-empty { display: flex; height: 100%; min-height: 180px; flex-direction: column; justify-content: center; align-items: flex-start; }
.empty-chat-icon { display: grid; place-items: center; color: var(--accent); background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; width: 38px; height: 38px; margin-bottom: 18px; }
.empty-chat-icon svg { height: 18px; width: 18px; }
.chat-empty h3 { margin: 0 0 10px; font-family: var(--font-display); text-transform: uppercase; font-size: 20px; font-weight: 900; letter-spacing: .03em; color: var(--paper); }
.chat-empty p { font-size: 12px; line-height: 1.8; margin: 0; color: var(--muted); max-width: 290px; }
.empty-divider { width: 24px; height: 2px; background: var(--accent); margin: 20px 0 12px; }
.chat-empty > span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.message { margin-bottom: 20px; }
.message:last-child { margin-bottom: 0; }
.message-header { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.message-avatar { width: 18px; height: 18px; border-radius: 2px; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--line-strong); color: var(--soft); font-size: 8px; }
.message[data-role="assistant"] .message-avatar { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.message-header time { margin-left: auto; font-size: 9px; color: var(--dim); font-variant-numeric: tabular-nums; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; font-size: 13px; padding: 10px 12px; margin: 0; background: var(--raise); border: 1px solid var(--line); border-radius: 0; color: var(--paper); }
.message[data-role="assistant"] .message-text { background: transparent; border-color: var(--line-strong); border-left: 2px solid var(--accent); }
.message[data-role="system"] .message-text { background: transparent; border-style: dashed; color: var(--muted); font-size: 11px; }
.message-status { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; color: var(--muted); margin-top: 6px; text-align: right; }
.message[data-status="error"] .message-status { color: var(--danger); }
.message[data-status="running"] .message-status { color: var(--accent); }
.composer-area { margin-top: auto; padding: 0 15px 14px; }
.composer-notice { min-height: 25px; padding: 5px 5px 8px; font-family: var(--font-mono); font-size: 10px; color: var(--amber); line-height: 1.5; }
.composer { background: #080d14; border: 1px solid var(--line-strong); border-radius: 2px; transition: border-color .2s; }
.composer:focus-within { border-color: var(--soft); box-shadow: 0 0 0 1px #ece8e014; }
.composer textarea { display: block; width: 100%; resize: none; min-height: 77px; max-height: 180px; border: none; outline: none; padding: 13px 13px 5px; background: transparent; color: var(--paper); font-size: 13px; line-height: 1.7; }
.composer textarea::placeholder { color: var(--dim); }
.composer textarea:disabled { opacity: .6; }
.composer-footer { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px 8px 13px; }
.composer-footer > span { font-family: var(--font-mono); font-size: 9px; color: var(--dim); font-variant-numeric: tabular-nums; }
.send-button { display: flex; align-items: center; gap: 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--paper); padding: 8px 12px; border-radius: 2px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: background .2s, opacity .2s; }
.send-button svg { width: 13px; height: 13px; stroke-width: 1.8; color: var(--accent); }
.send-button:hover:not(:disabled) { background: #fffaf1; }
.send-button:disabled { opacity: .35; }
.composer-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; margin: 12px 3px 0; font-size: 10px; color: var(--dim); }
.help-divider { margin: 0 4px; }
.interrupt-button { display: flex; align-items: center; gap: 5px; color: var(--soft); background: none; border: none; padding: 0; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.interrupt-button svg { width: 10px; height: 10px; }
.interrupt-button:disabled { color: var(--dim); }
.interrupt-button:hover:not(:disabled) { color: var(--accent); }
.diagnostics { margin-top: 20px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.diagnostics summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; padding: 15px 19px; list-style: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.diagnostics summary::-webkit-details-marker { display: none; }
.diagnostics summary > span:first-child { display: flex; align-items: center; gap: 9px; }
.diagnostics summary svg { width: 14px; height: 14px; color: var(--accent); }
#diagnostic-summary { color: var(--muted); font-size: 9px; text-align: right; }
.chevron { display: inline-block; margin-left: 20px; transition: transform .2s; }
.diagnostics[open] .chevron { transform: rotate(180deg); }
.diagnostic-content { border-top: 1px solid var(--line); padding: 17px 20px; }
.diagnostic-content dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; gap: 17px 23px; }
.diagnostic-content dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.diagnostic-content dd { margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--soft); overflow-wrap: anywhere; }
.diagnostic-log { font-family: var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; line-height: 1.8; background: #080d14; color: var(--muted); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; max-height: 150px; overflow-y: auto; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--raise); color: var(--paper); border-radius: 2px; padding: 9px 13px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.secondary-button:hover { border-color: var(--soft); background: #18212d; }
.secondary-button svg { width: 13px; height: 13px; }
.diagnostic-content > .secondary-button { margin: 13px 8px 0 0; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.page-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.footer-dot { height: 5px; width: 5px; background: var(--accent); border-radius: 50%; }
dialog { width: min(430px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 2px; background: var(--grain), var(--raise); color: var(--paper); padding: 30px; box-shadow: 0 30px 100px #000a; }
dialog::backdrop { background: #05090ed9; backdrop-filter: blur(6px); }
.login-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--accent); border-radius: 2px; margin-bottom: 24px; background: transparent; }
dialog h2 { margin: 12px 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 900; font-size: 30px; letter-spacing: .02em; line-height: 1.05; }
dialog p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 22px; }
dialog label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
dialog input { width: 100%; background: #080d14; border: 1px solid var(--line-strong); border-radius: 2px; outline: none; padding: 12px; font-size: 14px; color: var(--paper); }
dialog input:focus { border-color: var(--soft); }
dialog input::placeholder { color: var(--dim); font-size: 12px; }
dialog .form-error { min-height: 20px; margin: 8px 0 18px; color: var(--danger); font-size: 11px; }
.login-actions { display: flex; justify-content: flex-end; gap: 10px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--paper); border-radius: 2px; padding: 10px 14px; background: var(--paper); color: var(--ink); }
.primary-button > span { color: var(--accent); }
.primary-button:hover:not(:disabled) { background: #fffaf1; }
.primary-button:disabled { opacity: .5; }
.toast { position: fixed; bottom: 27px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: min(90vw, 520px); background: var(--paper); color: var(--ink); border: 1px solid var(--paper); border-left: 3px solid var(--accent); border-radius: 2px; padding: 12px 18px; box-shadow: 0 6px 40px #0007; font-size: 12px; line-height: 1.7; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.noscript-notice { position: fixed; bottom: 20px; left: 20px; right: 20px; padding: 15px; background: var(--raise); border: 1px solid var(--accent); color: var(--paper); z-index: 30; font-size: 13px; }
@keyframes pulse { 50% { opacity: .35; } }
@media (min-width: 1550px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 405px; }
  .messages { max-height: 530px; }
}
@media (max-width: 1100px) {
  .app-shell { padding: 0 28px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
  .telemetry-grid > div { padding: 0 15px; }
  .telemetry-grid strong { font-size: 13px; }
  .chat-panel { min-height: 470px; }
  .stage-overlay { padding: 35px 20px; }
  .stage-reticle { margin-bottom: 15px; }
  .stage-overlay h2 { margin: 10px 0; }
}
@media (max-width: 850px) {
  .workspace { grid-template-columns: 1fr; gap: 18px; }
  .chat-panel { min-height: 440px; }
  .messages { min-height: 190px; max-height: 370px; }
  .chat-empty { align-items: center; text-align: center; }
  .composer-area { padding: 0 19px 18px; }
  .composer textarea { min-height: 88px; font-size: 16px; }
  .stage-overlay h2 { font-size: 28px; }
  .page-heading { padding-top: 28px; }
}
@media (max-width: 540px) {
  .app-shell { padding: 0 14px; }
  .topbar { height: 60px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-mark { height: 20px; }
  .brand-divider { margin: 0 7px; }
  .brand-caption { font-size: 8px; letter-spacing: .16em; }
  .topbar-right { gap: 5px; }
  .connection-pill { font-size: 9px; padding: 5px 7px; letter-spacing: .08em; }
  .topbar-date { display: none; }
  .page-heading { padding: 22px 0; align-items: center; }
  .eyebrow { font-size: 9px; letter-spacing: .18em; }
  h1 { font-size: 34px; margin: 10px 0; }
  .page-heading p { font-size: 12px; }
  .session-label { display: none; }
  .panel-heading { min-height: 46px; padding: 0 14px; }
  .panel-title { font-size: 10px; letter-spacing: .12em; }
  .source-tag { font-size: 8px; }
  .identity-disclosure { margin: -2px 14px 10px; font-size: 8px; }
  .video-stage { margin: 0 8px; min-height: 200px; }
  .stage-overlay { padding: 24px 18px 40px; }
  .stage-overlay::before { display: none; }
  .stage-reticle { display: none; }
  .stage-kicker { font-size: 8px; letter-spacing: .18em; }
  .stage-overlay h2 { font-size: 19px; margin: 7px 0 5px; }
  .stage-overlay p { font-size: 10px; line-height: 1.6; max-width: 260px; }
  .stage-topline { top: 10px; left: 10px; right: 10px; }
  .stage-bottomline { left: 10px; right: 10px; bottom: 10px; }
  .stage-corner-label { font-size: 8px; letter-spacing: .12em; }
  .test-banner { top: 42px; left: 10px; max-width: calc(100% - 20px); font-size: 9px; padding: 4px 7px; }
  .video-controls { height: 54px; margin: 0 12px; gap: 9px; }
  .audio-button { font-size: 9px; letter-spacing: .08em; }
  .playback-summary { font-size: 9px; }
  .telemetry-grid { padding: 15px 0; }
  .telemetry-grid > div { padding: 0 11px; }
  .telemetry-grid strong { font-size: 12px; }
  .small-label { font-size: 8px; letter-spacing: .12em; }
  .metric-note { font-size: 9px; }
  .telemetry-grid strong > span { font-size: 8px; }
  .diagnostics summary { padding: 14px 12px; font-size: 9px; letter-spacing: .08em; }
  #diagnostic-summary { font-size: 8px; }
  .chevron { margin-left: 7px; }
  .diagnostic-content { padding: 15px 13px; }
  .diagnostic-content dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-footer { font-size: 8px; letter-spacing: .1em; padding: 20px 0; }
  .page-footer > span:last-child { max-width: 160px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.autonomous-talk { margin: 12px 20px 8px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--raise); }
.autonomous-talk-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.autonomous-talk button { padding: 9px 10px; flex-shrink: 0; border: 1px solid var(--paper); border-radius: 2px; background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.autonomous-talk button[data-state="enabled"] { background: transparent; color: var(--accent); border-color: var(--accent); }
.autonomous-talk button:disabled { opacity: .5; cursor: default; }
.autonomous-talk button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.autonomous-talk-state { color: var(--paper); font-size: 11px; line-height: 1.6; }
.autonomous-talk-detail { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
@media (max-width: 540px) { .autonomous-talk { margin: 10px 14px 6px; } }
