/* @no-workspace Splot browser styles, loaded by public/index.html. */
@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: 130 9% 7%;
  --paper: 60 14% 95%;
  --citron: 68 92% 65%;
  --mint: 154 62% 68%;
  --coral: 8 94% 72%;
  --background: hsl(var(--ink));
  --foreground: hsl(var(--paper));
  --muted: hsl(var(--paper) / .56);
  --faint: hsl(var(--paper) / .32);
  --line: hsl(var(--paper) / .13);
  --hover: hsl(var(--paper) / .09);
  --panel: hsl(var(--ink) / .96);
  --accent: hsl(var(--citron));
  --positive: hsl(var(--mint));
  --negative: hsl(var(--coral));
  --font: "Manrope", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius: 6px;
  --edge: 36px;
  --transport-height: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; height: 100%; background: var(--background); color: var(--foreground); }
body { font: 14px/1.5 var(--font); letter-spacing: 0; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button, input, select, textarea { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); }
button:disabled { cursor: not-allowed; opacity: .4; }
button, a, input, select, textarea { touch-action: manipulation; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
svg { flex: 0 0 auto; width: 20px; height: 20px; stroke-width: 1.6; }
button svg, button i { pointer-events: none; }
input[type="range"] { accent-color: var(--accent); cursor: pointer; height: 20px; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: hsl(var(--paper) / .24); }
input[type="range"]::-webkit-slider-thumb { margin-top: -6px; }
.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; }
.player { position: relative; isolation: isolate; width: 100%; height: 100%; height: 100dvh; min-height: 360px; overflow: hidden; background: var(--background); }
.player-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--background); }
video.player-media, canvas.player-media { object-fit: contain; }
.poster { z-index: 1; object-position: 50% 43%; }
.screen-shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, hsl(var(--ink) / .53) 0%, hsl(var(--ink) / .06) 22%, hsl(var(--ink) / .16) 53%, hsl(var(--ink) / .83) 100%); transition: opacity .6s ease; }
.chrome { transition: opacity .35s ease, transform .35s ease; }
.topbar { position: absolute; z-index: 8; inset: max(24px, env(safe-area-inset-top)) var(--edge) auto; height: 44px; display: flex; align-items: center; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; font-size: 28px; font-weight: 800; line-height: 1; }
.brand > svg { width: 27px; height: 27px; stroke-width: 1.6; }
.brand-period { color: var(--accent); }
.session-status { display: flex; gap: 8px; align-items: center; min-width: 0; font: 11px/1.4 var(--mono); color: hsl(var(--paper) / .76); }
#status { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; flex: 0 0 auto; background: var(--positive); }
.status-dot.error, .status-dot[data-state="error"] { background: var(--negative); }
.status-dot.connecting, .status-dot[data-state="connecting"] { background: var(--accent); animation: status-pulse 1.4s infinite; }
.top-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.engine-label { margin-right: 15px; color: hsl(var(--paper) / .62); font: 10px/1 var(--mono); white-space: nowrap; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border-radius: var(--radius); background: transparent; color: var(--foreground); transition: background .2s, color .2s; }
.icon-button:hover, .icon-button[aria-expanded="true"] { background: var(--hover); color: var(--accent); }
.icon-button:active { background: hsl(var(--paper) / .17); }
.arrival { position: absolute; z-index: 4; top: 17%; bottom: 29%; left: var(--edge); right: var(--edge); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: arrive .9s both; }
.session-index { display: flex; align-items: center; gap: 14px; font: 10px/1.5 var(--mono); color: hsl(var(--paper) / .69); }
.hairline { width: 22px; height: 1px; background: hsl(var(--paper) / .36); }
.arrival h1 { font-size: 44px; line-height: 1.18; font-weight: 500; margin: 20px 0 28px; text-shadow: 0 2px 32px hsl(var(--ink) / .55); }
.begin-button { display: grid; place-items: center; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; color: var(--background); background: var(--accent); box-shadow: 0 5px 38px hsl(var(--ink) / .2); transition: transform .25s, background .25s, box-shadow .25s; }
.begin-button svg { width: 30px; height: 30px; stroke-width: 1.5; }
.begin-button:hover { transform: scale(1.055); background: hsl(var(--citron) / .92); box-shadow: 0 6px 40px hsl(var(--ink) / .35); }
.begin-button:active { transform: scale(.96); }
.begin-label { font-size: 13px; font-weight: 700; margin-top: 13px; }
.preview-button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; margin-top: 8px; border-radius: var(--radius); color: hsl(var(--paper) / .62); background: transparent; font-size: 11px; }
.preview-button svg { width: 11px; height: 11px; }
.preview-button:hover { color: var(--foreground); background: hsl(var(--ink) / .2); }
.scene-dock { position: absolute; z-index: 5; width: min(856px, calc(100% - var(--edge) * 2)); bottom: calc(var(--transport-height) + 28px); left: 50%; transform: translateX(-50%); animation: arrive 1s .15s both; }
.scene-dock-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; font: 9px/1.4 var(--mono); color: hsl(var(--paper) / .62); }
.scene-counter { color: hsl(var(--paper) / .36); }
.scene-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.scene-button { position: relative; width: 100%; height: 102px; border-radius: var(--radius); padding: 0; overflow: hidden; text-align: left; background: var(--background); outline: 1px solid hsl(var(--paper) / .21); outline-offset: 0; transition: outline-color .2s, transform .2s; }
.scene-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, hsl(var(--ink) / .05), hsl(var(--ink) / .1) 20%, hsl(var(--ink) / .88)); }
.scene-button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s, opacity .3s; }
.scene-button:hover img { transform: scale(1.06); opacity: 1; }
.scene-button:hover { outline-color: hsl(var(--paper) / .55); }
.scene-button.is-selected, .scene-button[aria-pressed="true"] { outline: 1.5px solid var(--accent); }
.scene-number { position: absolute; z-index: 1; top: 10px; left: 12px; color: hsl(var(--paper) / .7); font: 9px/1 var(--mono); }
.scene-copy { position: absolute; z-index: 1; left: 12px; bottom: 11px; right: 27px; display: flex; flex-direction: column; gap: 3px; }
.scene-name { font-size: 12px; line-height: 1.25; font-weight: 700; }
.scene-detail { color: hsl(var(--paper) / .6); font-size: 9px; line-height: 1.2; }
.scene-check { position: absolute; z-index: 1; top: 9px; right: 9px; display: none; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: var(--background); }
.scene-check svg { width: 11px; height: 11px; stroke-width: 2.5; }
.scene-button.is-selected .scene-check, .scene-button[aria-pressed="true"] .scene-check { display: grid; }
.transport { position: absolute; z-index: 8; inset: auto var(--edge) max(15px, env(safe-area-inset-bottom)); min-height: 55px; }
.transport-line { position: relative; height: 1px; margin-bottom: 12px; background: hsl(var(--paper) / .2); }
#stream-progress { display: block; width: 0; height: 2px; background: var(--accent); transition: width .3s linear; }
.transport-row, .transport-group { display: flex; align-items: center; }
.transport-row { justify-content: space-between; gap: 12px; }
.transport-group { min-width: 0; gap: 4px; }
.play-button { margin-left: -8px; }
.play-button svg { width: 20px; height: 20px; fill: currentColor; stroke-width: 1; }
.mic-button { color: var(--accent); }
.volume-control { display: flex; align-items: center; }
#volume { width: 62px; margin: 0 8px 0 0; }
.control-divider { width: 1px; height: 14px; background: var(--line); margin: 0 13px 0 9px; }
.time-readout, .stream-label, .telemetry { font: 10px/1 var(--mono); white-space: nowrap; }
.time-readout { color: hsl(var(--paper) / .8); min-width: 36px; }
.stream-label { color: var(--faint); margin-left: 14px; }
.telemetry { color: hsl(var(--paper) / .57); margin-right: 16px; display: flex; align-items: center; gap: 5px; }
.telemetry-dot { margin: 0 5px; color: var(--faint); }
.record-button svg { width: 16px; height: 16px; }
.record-button[aria-pressed="true"], body.is-recording .record-button { color: var(--negative); }
.record-button[aria-pressed="true"] svg, body.is-recording .record-button svg { fill: currentColor; animation: status-pulse 1.5s infinite; }
body.is-listening .mic-button, .mic-button[aria-pressed="true"] { background: hsl(var(--mint) / .15); color: var(--positive); }
body.is-listening .begin-button { background: var(--positive); }
body.is-playing .arrival, body.is-playing .scene-dock { display: none; }
body.is-playing .screen-shade { background: linear-gradient(180deg, hsl(var(--ink) / .55), transparent 18%, transparent 76%, hsl(var(--ink) / .65)); }
body.is-playing .stream-label { color: var(--positive); }
body.controls-hidden .chrome { opacity: 0; pointer-events: none; }
body.controls-hidden .chrome:focus-within { opacity: 1; pointer-events: auto; }
body.controls-hidden .screen-shade { opacity: 0; }
.transcript-wrap { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--transport-height) + 28px); width: min(760px, calc(100% - var(--edge) * 2)); transform: translateX(-50%); text-align: center; pointer-events: none; }
.transcript-caption { display: flex; align-items: center; justify-content: center; gap: 10px; font: 10px/1.4 var(--mono); color: var(--positive); text-shadow: 0 1px 8px var(--background); }
.voice-bars { display: flex; align-items: center; gap: 3px; height: 17px; }
.voice-bars span { width: 2px; height: 4px; border-radius: 2px; background: currentColor; }
.voice-bars span:nth-child(2), .voice-bars span:nth-child(4) { height: 9px; }
.voice-bars span:nth-child(3) { height: 15px; }
body.is-listening .voice-bars span { animation: voice-wave .8s ease-in-out infinite alternate; }
body.is-listening .voice-bars span:nth-child(2n) { animation-delay: -.4s; }
body.is-listening .voice-bars span:nth-child(3) { animation-delay: -.2s; }
#transcript { margin: 12px 0 0; font-size: 23px; font-weight: 500; line-height: 1.5; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 2px 8px var(--background), 0 4px 24px var(--background); max-height: 180px; overflow: hidden; }
.prompt-form { position: absolute; z-index: 9; bottom: calc(var(--transport-height) + 20px); left: 50%; transform: translateX(-50%); width: min(620px, calc(100% - var(--edge) * 2)); display: flex; gap: 8px; align-items: center; padding: 7px 8px 7px 17px; border: 1px solid hsl(var(--paper) / .2); border-radius: var(--radius); background: hsl(var(--ink) / .88); backdrop-filter: blur(18px); box-shadow: 0 8px 40px hsl(var(--ink) / .3); }
.prompt-form input { border: 0; outline: none; min-width: 0; width: 100%; background: transparent; color: var(--foreground); font-size: 13px; }
.prompt-form input::placeholder { color: var(--muted); }
.prompt-form:focus-within { border-color: var(--accent); }
.send-button { width: 34px; height: 34px; flex-basis: 34px; background: var(--accent); color: var(--background); }
.send-button:hover { background: var(--positive); color: var(--background); }
body:has(.prompt-form:not([hidden])) .transcript-wrap { bottom: calc(var(--transport-height) + 92px); }
body:has(.prompt-form:not([hidden])) .scene-dock, body:has(#transcript-wrap:not([hidden])) .scene-dock { display: none; }
.loading { position: absolute; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - var(--edge) * 2); display: flex; align-items: center; flex-direction: column; gap: 16px; color: var(--foreground); text-align: center; text-shadow: 0 2px 12px var(--background); }
.loading-spinner { width: 34px; height: 34px; border: 1.5px solid hsl(var(--paper) / .24); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
#loading-title { font-size: 16px; font-weight: 600; }
.loading-detail { font: 10px/1.5 var(--mono); color: hsl(var(--paper) / .7); margin-top: -7px; }
body:has(#loading:not([hidden])) .arrival { display: none; }
body:has(#loading:not([hidden])) .scene-dock { opacity: .4; pointer-events: none; }
.panel-backdrop { position: absolute; z-index: 19; inset: 0; background: hsl(var(--ink) / .38); }
.drawer { position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(410px, 100%); background: var(--panel); color: var(--foreground); border-left: 1px solid var(--line); box-shadow: -20px 0 80px hsl(var(--ink) / .3); backdrop-filter: blur(28px); animation: drawer-enter .28s ease-out; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(28px, env(safe-area-inset-top)) 24px 25px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.eyebrow { color: var(--muted); font: 9px/1 var(--mono); }
.drawer-header h2 { margin: 7px 0 0; font-size: 24px; font-weight: 500; line-height: 1.3; }
.drawer-header .icon-button { margin-right: -8px; }
.drawer-scroll { padding: 0 24px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; flex: 1; scrollbar-width: thin; scrollbar-color: hsl(var(--paper) / .2) transparent; }
.settings-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.settings-section:last-child { border-bottom: 0; }
.settings-section h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 13px; font-weight: 700; }
.settings-section h3 svg { width: 17px; height: 17px; color: var(--accent); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span:first-child { font-size: 11px; line-height: 1.45; color: hsl(var(--paper) / .63); }
.field select, .field input:not([type="range"]), .field textarea { width: 100%; min-width: 0; min-height: 40px; padding: 10px 11px; border: 1px solid hsl(var(--paper) / .13); border-radius: 4px; background: hsl(var(--paper) / .035); color: var(--foreground); font-size: 12px; line-height: 1.4; }
.field select { padding-right: 23px; }
.field select option { background: var(--background); color: var(--foreground); }
.field textarea { resize: vertical; min-height: 80px; max-height: 180px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.settings-section > .field + .field-grid, .settings-section > .field-grid + .field, .settings-section > .field + .field { margin-top: 15px; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 18px; margin-bottom: 24px; cursor: pointer; }
.toggle-field > span:first-child { max-width: 245px; font-size: 12px; color: hsl(var(--paper) / .75); line-height: 1.5; }
.toggle-field input { position: absolute; right: 0; opacity: 0; width: 34px; height: 20px; cursor: pointer; margin: 0; }
.toggle-track { display: block; flex: 0 0 34px; width: 34px; height: 20px; border-radius: 12px; background: hsl(var(--paper) / .2); transition: background .2s; }
.toggle-track::after { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--foreground); margin: 3px; transition: transform .2s, background .2s; }
.toggle-field input:checked + .toggle-track { background: var(--accent); }
.toggle-field input:checked + .toggle-track::after { transform: translateX(14px); background: var(--background); }
.toggle-field input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 4px; }
.range-field > span:first-child { display: flex; align-items: center; justify-content: space-between; }
.range-field output { color: var(--foreground); font: 11px/1 var(--mono); }
.range-endpoints { display: flex; justify-content: space-between; color: var(--faint); font: 9px/1 var(--mono); margin-top: -4px; }
.upload-field { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px; border: 1px dashed hsl(var(--paper) / .24); border-radius: 4px; color: hsl(var(--paper) / .66); cursor: pointer; font-size: 12px; }
.upload-field svg { width: 17px; height: 17px; }
.upload-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-field:hover, .upload-field:focus-within { border-color: var(--accent); color: var(--accent); }
#image-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-preview-wrap { position: relative; margin-top: 12px; }
.image-preview-wrap img { display: block; width: 100%; max-height: 160px; object-fit: cover; border-radius: 4px; }
.image-preview-wrap .icon-button { position: absolute; right: 6px; top: 6px; background: hsl(var(--ink) / .7); color: var(--foreground); }
.advanced-settings summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: 11px; color: var(--muted); }
.advanced-settings summary::-webkit-details-marker { display: none; }
.advanced-settings summary svg { width: 15px; height: 15px; }
.advanced-settings[open] summary { margin-bottom: 18px; }
.advanced-settings[open] summary svg { transform: rotate(180deg); }
.drawer-footer { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 18px 24px max(18px, env(safe-area-inset-bottom)); flex: 0 0 auto; font: 9px/1.5 var(--mono); color: var(--muted); }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li, .history-item { padding: 20px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history-list time, .history-time { display: block; font: 10px/1.4 var(--mono); color: var(--muted); margin-bottom: 8px; }
.history-list p, .history-prompt { font-size: 13px; line-height: 1.65; margin: 6px 0; }
.history-list img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 4px; margin-top: 10px; }
.history-list button { background: transparent; color: var(--foreground); text-align: left; }
.history-restore { display: block; width: 100%; padding: 0; }
.history-restore:disabled { opacity: 1; }
.history-text { display: block; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.history-restore small { display: block; margin-top: 8px; color: var(--muted); font: 9px/1.5 var(--mono); }
.history-restore:not(:disabled):hover .history-text { color: var(--accent); }
.history-empty { padding: 80px 8px; text-align: center; color: var(--muted); }
.history-empty svg { width: 28px; height: 28px; color: var(--faint); }
.history-empty p { font-size: 12px; }
.history-footer { padding-top: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.text-button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; color: var(--muted); background: transparent; font-size: 11px; }
.text-button svg { width: 14px; height: 14px; }
.text-button:hover { color: var(--negative); }
.toast { position: absolute; z-index: 30; left: 50%; transform: translateX(-50%); top: 88px; width: max-content; max-width: calc(100% - 40px); padding: 11px 16px; border: 1px solid hsl(var(--paper) / .18); border-radius: var(--radius); background: hsl(var(--ink) / .94); color: var(--foreground); font-size: 12px; text-align: center; box-shadow: 0 8px 32px hsl(var(--ink) / .3); animation: toast-enter .2s ease-out; }
.toast.error, .toast[data-type="error"] { border-color: hsl(var(--coral) / .4); color: var(--negative); }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-enter { from { transform: translateX(35px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-enter { from { opacity: 0; margin-top: -8px; } to { opacity: 1; margin-top: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes status-pulse { 50% { opacity: .4; } }
@keyframes voice-wave { to { transform: scaleY(.35); } }

@media (min-height: 950px) and (min-width: 769px) {
  .arrival { top: 21%; bottom: 31%; }
  .arrival h1 { margin: 25px 0 35px; font-size: 48px; }
  .scene-dock { bottom: calc(var(--transport-height) + 48px); }
  .scene-button { height: 116px; }
}
@media (max-width: 900px) {
  :root { --edge: 24px; }
  .poster { object-position: 87% 43%; }
  .topbar { gap: 24px; }
  .engine-label { display: none; }
  .scene-list { gap: 10px; }
  .scene-button { height: 94px; }
  .scene-detail { font-size: 8px; }
  .telemetry { margin-right: 4px; }
}
@media (max-width: 600px) {
  :root { --edge: 20px; --transport-height: 78px; }
  .topbar { top: max(19px, env(safe-area-inset-top)); gap: 16px; height: 40px; }
  .brand { font-size: 25px; gap: 7px; }
  .brand > svg { width: 23px; height: 23px; }
  .session-status { font-size: 9px; gap: 6px; }
  #status { max-width: 110px; }
  .top-actions { gap: 0; }
  .top-actions .icon-button { width: 35px; flex-basis: 35px; height: 38px; }
  .top-actions svg { width: 18px; height: 18px; }
  .arrival { top: 14%; bottom: 29%; }
  .arrival h1 { font-size: 34px; line-height: 1.2; margin: 19px 0 26px; }
  .begin-button { width: 78px; height: 78px; }
  .begin-button svg { width: 28px; height: 28px; }
  .begin-label { margin-top: 12px; font-size: 12px; }
  .preview-button { font-size: 10px; margin-top: 5px; }
  .scene-dock { width: 100%; bottom: calc(var(--transport-height) + 25px); }
  .scene-dock-heading { margin: 0 var(--edge) 11px; }
  .scene-list { display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--edge) 4px; scroll-padding: var(--edge); scroll-snap-type: x proximity; scrollbar-width: none; }
  .scene-list::-webkit-scrollbar { display: none; }
  .scene-button { flex: 0 0 148px; width: 148px; height: 94px; scroll-snap-align: start; }
  .scene-detail { font-size: 8px; }
  .transport { bottom: max(13px, env(safe-area-inset-bottom)); }
  .transport-line { margin-bottom: 9px; }
  .transport-group { gap: 0; }
  .transport-row { gap: 2px; }
  .transport .icon-button { width: 35px; height: 38px; flex-basis: 35px; }
  .transport .icon-button svg { width: 18px; height: 18px; }
  .transport .record-button svg { width: 15px; height: 15px; }
  #volume { position: absolute; bottom: 57px; left: 70px; width: 90px; padding: 12px 8px; height: 30px; border-radius: 4px; background: hsl(var(--ink) / .8); opacity: 0; pointer-events: none; }
  .volume-control:hover #volume, .volume-control:focus-within #volume, .volume-control.is-open #volume { opacity: 1; pointer-events: auto; }
  .control-divider, .stream-label, .telemetry { display: none; }
  .time-readout { font-size: 9px; margin-left: 5px; min-width: 33px; }
  .transport-secondary { margin-right: -7px; }
  .transcript-wrap { bottom: calc(var(--transport-height) + 25px); }
  #transcript { font-size: 19px; max-height: 168px; }
  .prompt-form { bottom: calc(var(--transport-height) + 16px); }
  .prompt-form input { font-size: 16px; }
  .drawer { width: min(390px, 100%); }
  .drawer-header { padding-left: 22px; padding-right: 22px; }
  .drawer-scroll { padding: 0 22px; }
  .toast { top: 74px; font-size: 11px; }
}
@media (max-width: 360px) {
  :root { --edge: 16px; }
  .topbar { gap: 12px; }
  .brand { font-size: 23px; }
  .brand > svg { width: 21px; height: 21px; }
  #status { max-width: 82px; }
  .top-actions .icon-button { width: 31px; flex-basis: 31px; }
  .arrival h1 { font-size: 30px; }
  .transport .icon-button { width: 32px; flex-basis: 32px; }
  .time-readout { margin-left: 2px; font-size: 8px; min-width: 29px; }
  .drawer-header, .drawer-footer { padding-left: 18px; padding-right: 18px; }
  .drawer-scroll { padding: 0 18px; }
  .field-grid { gap: 12px 8px; }
  .field select { font-size: 11px; padding-left: 8px; }
}
@media (max-height: 690px) {
  .arrival { top: 14%; bottom: 32%; }
  .arrival h1 { font-size: 33px; margin: 12px 0 19px; }
  .begin-button { width: 64px; height: 64px; }
  .begin-button svg { width: 25px; height: 25px; }
  .begin-label { margin-top: 8px; }
  .preview-button { padding-top: 5px; padding-bottom: 5px; }
  .scene-dock { bottom: calc(var(--transport-height) + 14px); }
  .scene-button { height: 80px; }
  .scene-dock-heading { margin-bottom: 8px; }
}
@media (max-height: 540px) and (min-width: 601px) {
  :root { --transport-height: 68px; }
  .topbar { top: 13px; }
  .arrival { left: 8%; right: 48%; top: 21%; bottom: 20%; }
  .arrival h1 { font-size: 29px; margin-bottom: 16px; }
  .arrival .session-index { display: none; }
  .begin-button { width: 57px; height: 57px; }
  .begin-label { font-size: 11px; }
  .preview-button { font-size: 9px; }
  .scene-dock { left: auto; right: 5%; top: 24%; bottom: auto; transform: none; width: 37%; }
  .scene-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .scene-button { height: 83px; }
  .scene-detail { display: none; }
  .scene-copy { right: 12px; }
  .transport { bottom: 9px; }
  .transport-line { margin-bottom: 5px; }
}
@media (max-height: 570px) and (max-width: 600px) {
  .arrival { top: 15%; bottom: 36%; }
  .arrival .session-index { display: none; }
  .arrival h1 { font-size: 27px; margin: 7px 0 13px; }
  .begin-button { width: 55px; height: 55px; }
  .begin-label { margin-top: 7px; font-size: 10px; }
  .preview-button { margin-top: 2px; font-size: 9px; }
  .scene-button { height: 65px; }
  .scene-detail, .scene-number { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
