.stage-home{display:none;position:fixed;inset:0;background:#030405;overflow:hidden}
body.stage-mode>.sidebar,body.stage-mode>.shell{display:none}
body.stage-mode>.stage-home{display:block}
.stage-home canvas{display:block;width:100%;height:100%}
.stage-brand{position:absolute;top:28px;left:32px;color:#bfc3c9;font-size:16px;font-weight:500;letter-spacing:3px;text-shadow:0 1px 8px #000}
.stage-controls{position:absolute;right:32px;bottom:max(36px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px}
.stage-controls .button{min-height:40px;padding:10px 20px;font-size:12px;background:#080a0e}
.stage-controls .button.light{background:#e8e9eb}
.stage-controls .button.subtle{color:#79808a;border-color:transparent}
.stage-status{position:absolute;bottom:100px;right:32px;text-align:right;font-size:10px;color:#707782;letter-spacing:1px}
.back-stage{gap:7px}
.source-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;padding:20px}
.source-tools p{font-size:12px;color:#808995;line-height:1.8;margin:0}
.workspace-empty{padding:48px 24px;max-width:600px;margin:10vh auto;text-align:center}
.workspace-empty h2{font-size:24px;font-weight:400}
.workspace-empty p{color:#838c99;font-size:12px;line-height:1.9;margin-bottom:24px}
.help-intro{padding:28px;line-height:1.9;color:#8e98a5}
.help-intro h2{font-size:23px;font-weight:400;color:#e0e4e9;margin:0 0 16px}
.help-intro p{font-size:12px;margin:12px 0}
.help-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:28px 0;padding:24px 0;border-block:1px solid var(--line)}
.help-steps strong{font-size:13px;color:#c8cfd9;font-weight:400}
.help-steps span{display:block;font-size:11px;margin-top:9px}
.ingest-dialog .ingest-top{height:78px;padding:0 32px;border:0;background:transparent}
.ingest-dialog .ingest-top .brand>span,.ingest-dialog .ingest-side,.ingest-dialog .ingest-bottom,.ingest-dialog #ingest-live-label,.ingest-dialog .ingest-file>.eyebrow{display:none}
.ingest-dialog .ingest-top .brand{font-size:16px;gap:0}
.ingest-dialog .ingest-top .brand>svg{display:none}
.ingest-dialog .ingest-top .brand strong{font-size:16px;font-weight:500;letter-spacing:3px}
.ingest-dialog .ingest-top-actions{gap:10px}
.ingest-dialog .ingest-top-actions .button{font-size:11px;padding:9px 14px;min-height:36px;background:#080a0eb3}
.ingest-dialog .ingest-file{top:auto;bottom:38px;left:auto;right:32px;width:min(480px,calc(100% - 40px));max-width:none;text-align:right}
.ingest-dialog .ingest-file h2{font-size:12px;color:#929aa6;font-weight:400;letter-spacing:0;margin:12px 0 7px}
.ingest-dialog .ingest-file p{font-size:11px;line-height:1.7;margin:0;color:#78818e}
.ingest-mini-progress{font:18px var(--font-ui);color:#d5dae1}
body:has(.ingest-dialog[open])>.toast{display:none}
.stage-home,.ingest-dialog{--deck-height:clamp(106.667px,12vh,136px)}
.stage-home>canvas,.ingest-dialog>canvas{height:100%}
.stage-controls{bottom:calc(var(--deck-height) + 48px)}
.stage-status{bottom:calc(var(--deck-height) + 104px)}
.ingest-dialog .ingest-file{bottom:calc(var(--deck-height) + 44px)}
.analysis-deck{position:absolute;left:16px;right:16px;bottom:16px;height:var(--deck-height);border:1px solid #ffffff1b;background:transparent;overflow:auto;scrollbar-width:thin;scrollbar-color:#424851 transparent;color:#c4c8d0;font:9px var(--font-ui);text-shadow:0 1px 3px #000,0 0 5px #000;z-index:1}
.deck-grid{display:grid;grid-template-columns:.9fr 1.1fr 1.2fr;grid-template-rows:minmax(0,1fr);height:100%;min-width:960px}
.deck-card{min-width:0;min-height:0;overflow:hidden;padding:7px 12px;border-right:1px solid #ffffff24;background:transparent}
.deck-card:last-child{border-right:0}
.deck-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px;height:14px}
.deck-card h3{margin:0;color:#e2e5eb;font-size:10px;font-weight:500;white-space:nowrap}
.deck-card header>button{color:#8d96a3;font-size:12px;width:18px;height:18px;flex-shrink:0}
.deck-card button:hover{color:#fff;background:#ffffff08}
.deck-card button:focus-visible{outline:1px solid #cbd1d9;outline-offset:1px}
.deck-card svg{display:block;width:100%;min-height:0;stroke:none}
.deck-caption{display:flex;align-items:center;justify-content:space-between;gap:7px;color:#8994a5;font-size:8px;line-height:1.25;margin-top:2px;white-space:nowrap}
.deck-empty{color:#8993a2;font-size:9px;line-height:1.4;padding:8px 0}
.deck-volume{display:grid;grid-template-columns:1fr 1.1fr;gap:18px;align-items:center;height:calc(100% - 18px)}
.deck-volume-total{display:flex;flex-direction:column;align-items:flex-start;padding:0;text-align:left;font:inherit}
.deck-volume-total b{font-size:24px;line-height:1.25;font-weight:400;color:#e6ebf3}
.deck-volume-total span{font-size:9px;line-height:1.5;color:#a2adbc}
.deck-volume-meta{display:grid;gap:5px}
.deck-volume-meta>span{display:flex;justify-content:space-between;gap:8px;color:#a2adbc}
.deck-volume-meta b{font-weight:400;color:#d4dce7;white-space:nowrap}
.deck-trend-row{display:grid;grid-template-columns:66px minmax(30px,1fr);gap:6px;align-items:center;height:calc((100% - 30px)/3);min-height:0;border-bottom:1px solid #ffffff0b}
.deck-trend-row>span{font-size:9px;color:#a6b1bf}
.deck-trend-row>svg{height:100%;min-height:0;width:100%;padding:2px 0}
[data-deck-stream]{height:calc(100% - 18px);display:flex;flex-direction:column;justify-content:space-between;gap:3px}
.deck-stream-window{overflow:hidden;max-height:calc(100% - 16px);flex-shrink:0}
.deck-stream-track{transform:translateY(0);transition:transform .3s linear;will-change:transform}
.deck-stream-track.is-advancing{transform:translateY(-18px)}
.deck-stream-row{height:18px;display:grid;grid-template-columns:63px minmax(60px,1fr) 68px 83px;align-items:center;gap:7px;width:100%;padding:0;text-align:left;font:inherit;color:#aeb9c7;white-space:nowrap}
.deck-stream-row>span{overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.deck-stream-row .stream-quantity,.deck-stream-row .stream-amount{text-align:right;color:#d4dde9}
.deck-stream-event{height:18px;font-size:9px;line-height:18px;color:#b7c1cf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.deck-stream-source{overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
[data-stream-toggle]{font:inherit;padding:0 2px;color:#d0d9e6;flex-shrink:0}
@media(prefers-reduced-motion:reduce){.deck-stream-track{transition:none}}
@media(max-width:700px){
  .stage-home,.ingest-dialog{--deck-height:117.333px}
  .analysis-deck{left:12px;right:12px;bottom:12px}
  .deck-grid{min-width:960px}
  .stage-brand{top:22px;left:22px;font-size:14px}
  .stage-controls{right:20px;gap:7px;bottom:calc(var(--deck-height) + 40px)}
  .stage-controls .button{font-size:11px;padding:10px 13px;min-height:40px}
  .stage-status{right:20px;bottom:calc(var(--deck-height) + 98px);font-size:9px}
  .back-stage span{display:none}
  .back-stage{padding:5px!important;font-size:17px!important}
  .topbar .breadcrumb{display:none}
  .source-tools{align-items:flex-start;flex-direction:column}
  .help-intro{padding:20px}
  .help-steps{grid-template-columns:1fr;gap:18px}
  .ingest-dialog .ingest-top{height:68px;padding:0 20px}
  .ingest-dialog .ingest-top-actions .button{font-size:10px;padding:8px 10px}
  .ingest-dialog .ingest-file{right:20px;bottom:calc(var(--deck-height) + 36px)}
}
