/* Sebybox Transcription Studio. Original, self-contained visual system. */
:root {
  color-scheme: dark;
  --bg: #0a1013; --panel: #111b20; --panel-top: #152229; --line: #26373e;
  --line-soft: #203037; --text: #e6efee; --muted: #91a7ad; --faint: #6d868e;
  --accent: #88edd2; --accent-deep: #174c44; --gold: #e5c385; --red: #ffafa9;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 16px; --transcript-size: 17px;
  font-family: var(--font); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; min-width: 320px; }
body::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at 65% -15%, #19474330, transparent 60%), radial-gradient(ellipse at 3% 65%, #13324024, transparent 55%); }
button,input,select { font: inherit; }
button,a,input,select { -webkit-tap-highlight-color: transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
[hidden] { display:none !important; }
svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
h1,h2,h3,p,dl { margin:0; }
.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; }
.skip { position:fixed; top:-100px; left:24px; z-index:100; color:var(--bg); background:var(--accent); padding:10px 20px; border-radius:6px; }
.skip:focus { top:10px; }
.shell { max-width:1600px; margin:0 auto; padding:0 42px; }
.topbar { height:150px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { display:flex; align-items:center; gap:20px; }
.brand-mark { display:grid; place-items:center; width:140px; height:148px; }
.brand-mark img { display:block; width:auto; height:136px; object-fit:contain; }
.brand-name { font-size:14px; font-weight:760; letter-spacing:2px; }
.brand-by { color:var(--muted); font-size:11px; font-weight:500; letter-spacing:.5px; }
.brand-product { color:#c2d6d7; font-size:12px; font-weight:500; letter-spacing:2.1px; }
.brand-subtitle { color:var(--faint); letter-spacing:2.2px; font-size:9px; margin-top:4px; }
.topbar-right { display:flex; align-items:center; gap:25px; }
.host-label { font-family:var(--mono); font-size:11px; color:var(--muted); }
.host-label span { padding:0 9px; color:#3f5359; }
.connection-pill { display:flex; align-items:center; gap:9px; font-size:10px; letter-spacing:1.4px; border:1px solid var(--line); background:#12211f; padding:8px 12px; border-radius:99px; color:var(--accent); white-space:nowrap; }
.connection-pill i,.telemetry-label i,.state-badge i,.footer-dot { width:5px; height:5px; border-radius:50%; background:currentColor; display:inline-block; }
.connection-pill.offline { color:var(--gold); background:#241f18; }
.intro { display:flex; justify-content:space-between; align-items:center; gap:25px; padding:38px 0 31px; }
.eyebrow { font-family:var(--mono); font-size:10px; letter-spacing:1.6px; color:var(--accent); display:flex; align-items:center; gap:9px; }
.small-line { height:1px; width:24px; background:var(--accent); opacity:.75; }
h1 { font-size:36px; font-weight:540; letter-spacing:-1.3px; line-height:1.2; margin:8px 0 8px; }
h1>span { color:var(--accent); }
.intro p { font-size:13px; color:var(--muted); }
.engine-spec { display:flex; align-items:center; gap:14px; color:#718e90; }
.engine-spec>svg { width:27px; height:27px; stroke-width:1.3; }
.engine-spec b { font-size:10px; font-weight:550; letter-spacing:1.8px; color:#bbd0d0; display:block; }
.engine-spec span { display:flex; align-items:center; gap:9px; font-size:9px; font-family:var(--mono); margin-top:6px; letter-spacing:.4px; }
.engine-spec i { width:3px; height:3px; background:var(--faint); border-radius:50%; }
.dashboard { display:grid; grid-template-columns:minmax(0,1fr) 335px; gap:22px; align-items:start; }
.main-column,.side-column { display:grid; gap:20px; min-width:0; }
.panel { background:linear-gradient(140deg,#14212860,transparent 55%),var(--panel); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:0 8px 30px #00000012,inset 0 1px 0 #ffffff03; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.panel-heading h2 { font-size:15px; font-weight:560; display:flex; gap:12px; align-items:center; }
.section-number { font-family:var(--mono); font-size:10px; letter-spacing:1.2px; color:var(--muted); font-weight:400; }
.subtle-tag { font-family:var(--mono); color:var(--faint); font-size:9px; letter-spacing:1px; }
.source-panel { padding:23px 26px 20px; }
.source-modes { display:inline-flex; margin:-3px 0 14px; }
#source-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; }
.source-submit { align-self:stretch; }
.source-entry { display:flex; align-items:center; background:#0c1519; border:1px solid #32464d; border-radius:10px; padding:7px; gap:12px; transition:border-color .2s; }
.source-entry:focus-within { border-color:#5cbb9f; box-shadow:0 0 0 3px #6eedcc09; }
.source-link { margin-left:9px; color:var(--faint); width:17px; height:17px; }
.source-entry input { width:100%; min-width:0; border:0; background:transparent; outline:none; color:var(--text); font-size:13px; padding:8px 0; }
.source-entry input::placeholder { color:#718990; opacity:1; }
.source-entry input:focus-visible { outline:none; }
.file-picker { flex:0 0 auto; color:#06261f; background:var(--accent); border:1px solid #9cf7df; border-radius:6px; padding:8px 13px; font-size:12px; font-weight:650; cursor:pointer; }
.file-picker:hover { background:#b0f5e2; }
.native-file-input { position:absolute; width:1px !important; height:1px; padding:0 !important; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.native-file-input:focus-visible + #local-file-detail { outline:2px solid var(--accent); outline-offset:4px; }
#local-file-detail { margin-left:auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:11px; }
.local-support { margin:7px 2px 0; color:var(--faint); font-size:10px; }
.button { min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:0 17px; border-radius:7px; border:1px solid transparent; font-weight:600; font-size:12px; line-height:1.25; text-decoration:none; transition:background .18s,border-color .18s,transform .18s; white-space:nowrap; }
.button svg { width:16px; height:16px; }
.button-primary { color:#06261f; background:var(--accent); border-color:#9cf7df; box-shadow:0 2px 12px #74e6c612; }
.button-primary:not(:disabled):not([aria-disabled="true"]):hover { background:#b0f5e2; transform:translateY(-1px); }
.button-primary:disabled,.button-primary[aria-disabled="true"] { color:#879a98; background:#233733; border-color:#314b44; box-shadow:none; }
.button-outline { background:#18372f; color:var(--accent); border-color:#396859; }
.button-outline:not(:disabled):hover { background:#21493f; border-color:var(--accent); }
.button-quiet { color:#b5c9cf; background:#17272d; border-color:#31444b; }
.button-quiet:not(:disabled):hover { background:#243a42; }
.button-outline:disabled,.button-quiet:disabled { opacity:.38; }
.source-notes { display:flex; align-items:center; gap:15px; color:var(--faint); font-size:10px; margin-top:12px; flex-wrap:wrap; }
.source-notes>span { display:flex; align-items:center; gap:5px; }
.source-notes svg { width:11px; height:11px; }
.source-notes .source-helper { margin-left:auto; color:var(--muted); }
.job-panel { padding:25px 26px 0; position:relative; }
.job-panel::before { content:""; position:absolute; top:0; left:25px; right:25px; height:1px; background:linear-gradient(90deg,transparent,#64dcb855,transparent); }
.job-topline { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.job-topline .eyebrow { color:var(--faint); font-size:9px; }
.state-badge { display:inline-flex; align-items:center; gap:7px; border:1px solid #31463e; border-radius:5px; color:var(--accent); padding:4px 7px; font-size:9px; font-family:var(--mono); letter-spacing:.7px; background:#182d26; white-space:nowrap; }
.state-badge[data-state="UNLOADED"],.state-badge[data-state="IDLE"],.state-badge[data-state="UNAVAILABLE"] { color:var(--muted); background:#18272c; border-color:var(--line); }
.state-badge[data-state="ERROR"] { color:var(--red); border-color:#76453e; background:#372321; }
.job-title { font-size:23px; font-weight:550; letter-spacing:-.5px; line-height:1.32; max-width:94%; margin:15px 0 11px; }
.job-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:10px; color:var(--muted); font-family:var(--mono); }
.job-meta span+span::before { content:"/"; color:#456067; margin-right:10px; }
.pipeline { display:flex; align-items:center; margin:25px 0 28px; }
.step { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--faint); white-space:nowrap; }
.step-node { display:grid; place-items:center; width:21px; height:21px; border:1px solid #385057; border-radius:50%; font-family:var(--mono); font-size:9px; }
.step-line { height:1px; background:#2b3c43; flex:1; margin:0 12px; }
.step.done { color:var(--muted); }
.step.done .step-node { color:var(--accent); border-color:#386658; background:#1a352c; }
.step.active { color:var(--accent); }
.step.active .step-node { border-color:var(--accent); background:#275043; box-shadow:0 0 0 4px #84ebca0b; }
.progress-label { display:flex; justify-content:space-between; gap:16px; align-items:end; }
.progress-label b { font-weight:550; font-size:13px; }
.progress-label span { display:block; font-size:10px; color:var(--faint); margin-top:5px; }
.progress-label strong { font-family:var(--mono); font-size:27px; font-weight:450; letter-spacing:-1px; color:var(--accent); }
.progress-track { height:8px; background:#23353b; border-radius:10px; margin:13px 0 25px; overflow:hidden; position:relative; }
#progress-fill { height:100%; width:0; border-radius:10px; background:linear-gradient(90deg,#35aa93,#8bf2d3); transition:width .45s ease; box-shadow:0 0 14px #74e0bd30; }
.progress-track.indeterminate #progress-fill { width:28%; animation:indeterminate 1.6s ease-in-out infinite; }
@keyframes indeterminate { from { transform:translateX(-130%); } to { transform:translateX(465%); } }
.job-stats { display:grid; grid-template-columns:1.3fr 1fr 1.2fr 1.1fr; padding:19px 0 24px; border-top:1px solid var(--line-soft); gap:16px; }
.job-stats>div+div { border-left:1px solid var(--line-soft); padding-left:19px; }
.job-stats span { display:block; color:var(--faint); font-family:var(--mono); font-size:8px; letter-spacing:.8px; margin-bottom:8px; }
.job-stats b { display:block; font-size:25px; font-family:var(--mono); font-weight:450; line-height:1.25; letter-spacing:-.8px; font-variant-numeric:tabular-nums; }
.job-stats small { display:block; font-size:9px; color:var(--muted); margin-top:6px; }
.speed-stat b { color:var(--accent); }
.alert { padding:13px 16px; border:1px solid #6b5440; background:#33291e; color:#f2d4a3; font-size:12px; border-radius:8px; }
.connection-alert { margin-bottom:20px; }
.job-alert { margin-bottom:22px; color:var(--red); background:#312020; border-color:#604037; }
.completion { border-top:1px solid #2a4941; margin:0 -26px; padding:19px 26px; background:#102a2370; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.completion>div { display:flex; gap:13px; align-items:center; }
.completion>div>svg { border:1px solid #3e7765; color:var(--accent); padding:6px; width:30px; height:30px; border-radius:50%; }
.completion b { display:block; font-weight:550; font-size:13px; }
.completion span { display:block; font-size:10px; color:var(--muted); margin-top:3px; }
.transcript-panel { min-width:0; }
.transcript-heading { padding:19px 24px 0; margin-bottom:13px; }
.live-word { font-size:8px; font-family:var(--mono); letter-spacing:1px; padding:3px 6px; border-radius:4px; background:#1d302a; color:var(--accent); font-weight:400; }
.transcript-tools { display:flex; align-items:center; gap:3px; }
.icon-button { width:28px; height:28px; display:grid; place-content:center; background:transparent; color:var(--muted); border:1px solid transparent; border-radius:5px; font-size:13px; position:relative; }
.icon-button .tiny { font-size:10px; position:absolute; right:0; top:0; }
.icon-button:hover { background:#24353c; color:var(--text); }
.icon-button svg { width:16px; height:16px; }
.transcript-toolbar { padding:0 24px 13px; border-bottom:1px solid var(--line-soft); display:flex; justify-content:space-between; gap:12px; }
.segmented-control { display:flex; background:#0c171b; padding:3px; border-radius:6px; border:1px solid #203139; }
.segmented-control button { padding:5px 11px; border-radius:4px; border:0; background:transparent; color:var(--muted); font-size:10px; }
.segmented-control button.active { background:#29403f; color:var(--accent); }
.transcript-actions { display:flex; align-items:center; gap:16px; }
.text-button { display:inline-flex; align-items:center; gap:6px; border:0; background:transparent; color:var(--muted); padding:5px 0; font-size:10px; }
.text-button:hover { color:var(--text); }
.text-button:disabled { opacity:.4; }
.text-button svg { width:13px; height:13px; }
.follow.active { color:var(--accent); }
.follow-dot { height:4px; width:4px; background:currentColor; border-radius:50%; }
.transcript-scroll { height:362px; overflow:auto; scrollbar-width:thin; scrollbar-color:#38514f transparent; overscroll-behavior:contain; position:relative; }
.transcript-content { font-size:var(--transcript-size); line-height:1.88; color:#c9dcdf; padding:24px 28px 32px; word-break:break-word; }
.transcript-content:empty { display:none; }
.transcript-content p { margin:0 0 20px; }
.transcript-content p:last-child { margin-bottom:0; }
.transcript-content .segment-row { display:grid; grid-template-columns:59px 1fr; gap:14px; padding:10px 0; border-bottom:1px solid #23323a; font-size:calc(var(--transcript-size) - 1px); }
.segment-row time { color:var(--faint); font:10px/2.8 var(--mono); }
.fresh-segment { animation:segment-reveal 1.2s ease-out; }
@keyframes segment-reveal { from { color:#93f2d5; background:#5effc60c; } to { color:inherit; background:transparent; } }
.transcript-empty { height:100%; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; color:var(--muted); padding:35px; }
.empty-mark { width:64px; height:64px; border:1px solid #2b4b43; background:#152b26; border-radius:18px; display:grid; place-items:center; color:#578c7c; margin-bottom:18px; }
.empty-mark svg { width:35px; height:35px; }
.transcript-empty h3 { color:#adc6c5; font-size:17px; font-weight:500; margin-bottom:10px; }
.transcript-empty p { font-size:12px; color:var(--faint); line-height:1.8; }
.transcript-bottom { display:flex; justify-content:space-between; align-items:center; gap:10px; border-top:1px solid var(--line-soft); padding:11px 24px; font-size:9px; font-family:var(--mono); color:var(--muted); }
.transcript-bottom .text-button { padding:0; }
.divider { color:#4b676d; padding:0 8px; }
.transcript-panel.focused { position:fixed; inset:30px max(30px,calc((100vw - 1450px)/2)); z-index:20; box-shadow:0 0 0 200vmax #030809e8; display:flex; flex-direction:column; }
.transcript-panel.focused .transcript-scroll { height:auto; flex:1; }
body.transcript-focused { overflow:hidden; }
.model-panel,.gpu-panel,.statistics-panel,.activity-panel { padding:21px; }
.model-panel .panel-heading { margin-bottom:22px; }
.engine-name { display:flex; gap:12px; align-items:center; }
.chip-tile { width:39px; height:39px; border:1px solid #385848; color:#9fdbc5; background:#1b322a; display:grid; place-items:center; border-radius:9px; }
.chip-tile svg { width:22px; height:22px; }
.engine-name h3 { font-size:14px; font-weight:550; }
.engine-name p { font-size:10px; color:var(--muted); margin-top:4px; }
.engine-name p span { color:#4c6b65; padding:0 4px; }
.model-controls { display:grid; grid-template-columns:1.4fr 1fr; gap:8px; margin:20px 0 12px; }
.model-controls .button { font-size:11px; padding:0 10px; min-height:37px; }
.model-note { font-size:10px; color:var(--muted); line-height:1.6; min-height:34px; padding-bottom:12px; border-bottom:1px solid var(--line-soft); margin-bottom:10px; }
.memory-admission { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:10px; margin:8px 0; }
.memory-admission span { color:var(--muted); }
.memory-admission b { font:11px var(--mono); color:var(--text); }
.memory-admission b.warning { color:var(--gold); }
.model-footnote { font-size:9px; color:var(--faint); margin-top:12px; }
.gpu-panel .panel-heading { margin-bottom:15px; }
.telemetry-label { display:flex; gap:6px; align-items:center; font-family:var(--mono); font-size:8px; letter-spacing:1px; color:var(--accent); }
.gpu-panel h3 { font-size:13px; font-weight:500; color:#bfd2d2; }
.gpu-hero { display:flex; justify-content:space-between; align-items:center; margin:16px 0 8px; }
.metric-label { font:8px var(--mono); color:var(--faint); letter-spacing:1.2px; }
.hero-number { display:flex; align-items:baseline; gap:7px; }
.hero-number b { font:54px/1.3 var(--mono); letter-spacing:-3px; font-weight:400; }
.hero-number>span { font:18px var(--mono); color:var(--faint); }
.gpu-ring { width:72px; height:72px; color:#648f83; stroke-width:1.4; }
.ring-track { stroke:#29413f; stroke-width:4; }
.ring-value { stroke:var(--accent); stroke-width:4; stroke-dasharray:263.894; stroke-dashoffset:263.894; transform:rotate(-90deg); transform-origin:50% 50%; transition:stroke-dashoffset .5s; }
.chart-wrap { margin-bottom:20px; }
#gpu-chart { width:100%; height:54px; stroke-width:1; overflow:visible; }
.chart-grid { stroke:#283e43; stroke-dasharray:2 5; }
.chart-line { stroke:var(--accent); stroke-width:1.5; vector-effect:non-scaling-stroke; }
.chart-area { stroke:none; fill:#67d9b610; }
.chart-labels { display:flex; justify-content:space-between; font:8px var(--mono); color:var(--faint); margin-top:4px; }
.vram-heading { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:10px; color:var(--muted); }
.vram-heading b { font:13px var(--mono); color:var(--text); }
.vram-heading small { color:var(--faint); font-size:10px; }
.vram-track { height:5px; border-radius:9px; background:#2a383d; margin:10px 0 20px; overflow:hidden; }
#vram-fill { height:100%; width:0; background:var(--gold); border-radius:9px; transition:width .5s; }
.gpu-grid { display:grid; grid-template-columns:1.08fr 1.1fr 1fr; gap:8px; }
.gpu-grid span { display:block; font:7px var(--mono); letter-spacing:.3px; color:var(--faint); margin-bottom:6px; }
.gpu-grid b { font:21px var(--mono); font-weight:400; letter-spacing:-1px; }
.gpu-grid small { color:var(--muted); font-size:9px; padding-left:3px; }
.gpu-caption { margin-top:18px; border-top:1px solid var(--line-soft); padding-top:12px; font-size:9px; color:var(--faint); line-height:1.7; }
.heading-icon { width:15px; height:15px; color:var(--faint); }
.statistics-panel .panel-heading { margin-bottom:13px; }
.statistics>div { display:flex; justify-content:space-between; gap:10px; margin-top:13px; font-size:11px; }
.statistics dt { color:var(--muted); }
.statistics dd { margin:0; font:11px var(--mono); color:var(--text); }
.activity { display:flex; flex-direction:column; gap:13px; }
.activity-row { display:grid; grid-template-columns:7px 1fr; column-gap:9px; }
.activity-dot { width:4px; height:4px; background:#4f8f7c; border-radius:50%; margin-top:6px; }
.activity-row:last-child .activity-dot { background:var(--accent); }
.activity-row b { font-size:10px; font-weight:400; display:block; color:#b5c9cc; }
.activity-row time { font:8px var(--mono); color:var(--faint); display:block; margin-top:3px; }
.muted { color:var(--faint); font-size:10px; }
.footer { padding:22px 0 27px; display:flex; align-items:center; justify-content:space-between; gap:15px; font:8px var(--mono); letter-spacing:.7px; color:var(--faint); }
.footer>span:first-child { display:flex; align-items:center; }
.footer-dot { color:#699e8d; margin-right:9px; }
.toast { position:fixed; bottom:25px; left:50%; transform:translateX(-50%); z-index:60; padding:12px 22px; border:1px solid #467866; background:#14352c; border-radius:8px; color:var(--text); font-size:12px; box-shadow:0 10px 40px #0008; max-width:90vw; }
.demo-ribbon { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding:10px 30px; color:#dbd2b2; background:#2a2920; border-bottom:1px solid #4d4933; font-size:10px; }
.demo-ribbon>div:first-child { display:flex; gap:15px; flex-wrap:wrap; }
.demo-ribbon b { font-family:var(--mono); font-weight:500; font-size:9px; letter-spacing:1px; }
.demo-ribbon span { color:#a6a28e; }
.demo-controls { display:flex; align-items:center; gap:9px; }
.demo-controls select,.demo-controls button { font-size:10px; padding:4px 8px; color:#e6ddbe; background:#353326; border:1px solid #646048; border-radius:4px; }
body.offline .gpu-panel { opacity:.65; }
@media (min-width:1750px) {
 .shell { max-width:1680px; padding:0 48px; }
 .dashboard { grid-template-columns:minmax(0,1fr) 360px; gap:24px; }
 .transcript-scroll { height:393px; }
 .intro { padding:42px 0 36px; }
 .source-panel { padding:25px 28px 22px; }
 .job-panel { padding:28px 28px 0; }
 .job-title { font-size:26px; }
 .pipeline { margin:28px 0 31px; }
 .job-stats { padding:22px 0 26px; }
 .model-panel,.gpu-panel,.statistics-panel,.activity-panel { padding:23px; }
}
@media (max-width:1150px) {
 .shell { padding:0 25px; }
 .dashboard { grid-template-columns:minmax(0,1fr) 285px; gap:16px; }
 .topbar-right .host-label { display:none; }
 .source-panel,.job-panel { padding-left:20px; padding-right:20px; }
 .source-notes .source-helper { flex-basis:100%; margin-left:0; }
 .job-stats { gap:10px; }
 .job-stats>div+div { padding-left:12px; }
 .job-stats b { font-size:21px; }
 .job-stats small { font-size:8px; }
 .step { font-size:10px; gap:5px; }
 .step-line { margin:0 8px; }
 .gpu-grid b { font-size:19px; }
 .model-panel,.gpu-panel,.statistics-panel,.activity-panel { padding:18px; }
 .transcript-heading { flex-wrap:wrap; }
 .transcript-bottom #transcript-note { display:none; }
}
@media (max-width:860px) {
 .dashboard { grid-template-columns:1fr; }
 .main-column,.side-column { display:contents; }
 .source-panel { order:1; }
 .model-panel { order:2; }
 .job-panel { order:3; }
 .transcript-panel { order:4; }
 .gpu-panel { order:5; }
 .statistics-panel { order:6; }
 .activity-panel { order:7; }
 .engine-spec { display:none; }
 .intro { padding:28px 0; }
 .source-notes .source-helper { flex-basis:auto; margin-left:auto; }
 .transcript-scroll { height:390px; }
 .model-panel { align-self:start; }
 .footer { flex-wrap:wrap; }
}
@media (max-width:560px) {
 .shell { padding:0 16px; }
 .topbar { height:96px; gap:10px; }
 .brand { gap:10px; }
 .brand-mark { width:78px; height:84px; }
 .brand-mark img { width:auto; height:76px; }
 .brand-name { font-size:11px; letter-spacing:1.4px; }
 .brand-product { display:block; font-size:8px; letter-spacing:1.5px; margin-top:3px; }
 .brand-subtitle { display:none; }
 .connection-pill { font-size:8px; padding:7px 8px; letter-spacing:.4px; gap:6px; }
 h1 { font-size:29px; }
 .intro p { max-width:300px; font-size:12px; }
 .source-panel,.job-panel { padding-left:16px; padding-right:16px; }
 #source-form { grid-template-columns:1fr; }
 .source-entry { flex-wrap:wrap; gap:6px; padding:8px; }
 .source-link { margin-left:3px; width:14px; }
 .source-entry input { width:calc(100% - 25px); font-size:12px; }
 .source-entry .button { width:100%; margin-top:4px; }
 #local-file-detail { width:100%; margin-left:0; }
 .source-notes { gap:10px; }
 .source-notes .source-helper { flex-basis:100%; margin-left:0; }
 .panel-heading h2 { font-size:14px; }
 .panel-heading .subtle-tag { font-size:8px; }
 .job-title { font-size:20px; }
 .job-meta { font-size:9px; gap:6px; }
 .step { flex-direction:column; font-size:8px; }
 .step-line { margin-top:-13px; }
 .job-stats { grid-template-columns:repeat(2,1fr); gap:19px 15px; }
 .job-stats>div+div { padding-left:0; border-left:0; }
 .job-stats>div:nth-child(even) { border-left:1px solid var(--line-soft); padding-left:20px; }
 .job-stats b { font-size:24px; }
 .job-stats span { font-size:8px; }
 .job-stats small { font-size:9px; }
 .progress-label strong { font-size:23px; }
 .progress-label span { font-size:9px; }
 .side-column { grid-template-columns:1fr; }
 .model-panel,.gpu-panel,.statistics-panel,.activity-panel { padding:20px; }
 .transcript-heading { padding:16px 16px 0; gap:6px; }
 .transcript-heading h2 { gap:8px; }
 .live-word { font-size:7px; }
 .transcript-toolbar { padding:0 16px 12px; gap:8px; }
 .transcript-actions { gap:12px; }
 .text-button { font-size:9px; }
 .transcript-scroll { height:350px; }
 .transcript-content { padding:20px; font-size:calc(var(--transcript-size) - 1px); }
 .transcript-bottom { padding:10px 16px; }
 .completion { margin:0 -16px; padding:16px; flex-wrap:wrap; }
 .completion .button { width:100%; }
 .transcript-panel.focused { inset:12px; }
 .demo-ribbon { padding:10px 16px; }
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
 .progress-track.indeterminate #progress-fill { width:35%; margin:auto; }
}

/* --- manual brand spacing refinement --- */
.brand {
  align-items: center;
  gap: 10px !important; /* about half the current visual spacing */
}

.brand > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 136px; /* matches current enlarged desktop logo height */
}

.brand-name {
  margin: 0;
  line-height: 1.02;
}

.brand-subtitle {
  margin-top: 4px;
  line-height: 1.1;
}

/* mobile/tablet refinement */
@media (max-width: 900px) {
  .brand {
    gap: 8px !important;
  }

  .brand > div:last-child {
    min-height: 76px;
  }

  .brand-subtitle {
    margin-top: 2px;
  }
}

/* --- final brand alignment refinement --- */
.brand {
  align-items: center;
  gap: 0 !important;
}

.brand > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 136px;
  margin-left: 0;
}

@media (max-width: 900px) {
  .brand {
    gap: 0 !important;
  }

  .brand > div:last-child {
    min-height: 76px;
  }
}

/* --- final precise brand geometry --- */

.brand {
  align-items: center;
  gap: 4px !important;
}

/*
  Logo is 753x897 after crop.
  At 136px high its natural rendered width is ~114px.
  Make the layout box match the artwork instead of reserving 140px.
*/
.brand-mark {
  width: 116px !important;
  height: 136px !important;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: auto !important;
  height: 136px !important;
  object-fit: contain;
}

.brand > div:last-child {
  min-height: auto !important;
  margin-left: 0 !important;
  transform: translateY(-8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* narrower layouts */
@media (max-width: 900px) {
  .brand {
    gap: 4px !important;
  }

  .brand-mark {
    width: 65px !important;
    height: 76px !important;
  }

  .brand-mark img {
    width: auto !important;
    height: 76px !important;
  }

  .brand > div:last-child {
    min-height: auto !important;
    transform: translateY(-4px);
  }
}

/* --- Watchtower: engine getting-started guidance --- */
.model-getting-started {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}

.model-getting-started b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--accent);
}

.model-getting-started strong {
  color: var(--text);
  font-weight: 600;
}

.model-getting-started + .model-controls {
  margin-top: 12px;
}


/* --- Watchtower: improve engine helper readability --- */
.model-getting-started {
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 14px;
}

.model-getting-started b {
  font-size: 9px;
  margin-bottom: 4px;
}

.model-note {
  font-size: 11px;
  line-height: 1.65;
}

.model-footnote {
  font-size: 10px;
  line-height: 1.5;
}
