:root{color-scheme:dark;--text:#e7eff8;--muted:#8c9caf;--line:#334358;--accent:#8aeee2;--red:#ff405f}*{box-sizing:border-box}body{margin:0;background:linear-gradient(125deg,#263344 0%,#182434 55%,#202938 100%);color:var(--text);font:14px/1.45 'Segoe UI',Arial,sans-serif;height:100dvh;overflow:hidden}main{height:100%;padding:22px 30px 10px;display:flex;flex-direction:column;transition:width .25s;width:100%}body.panel-open main{width:75%}header{margin-bottom:19px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--accent);font-weight:650}h1{font-size:clamp(19px,1.8vw,29px);font-weight:550;letter-spacing:-.7px;margin:7px 0}h1 span{animation:shimmer 60s infinite;animation-delay:calc(var(--i)*.055s)}@keyframes shimmer{0%,2%,100%{color:var(--text);text-shadow:none}0.65%{color:#88fff0;text-shadow:0 0 16px #7df5e5}}.subtitle{color:var(--muted);font-size:12px}.pipeline{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr) 30px minmax(0,1fr);align-items:center}.module{background:linear-gradient(140deg,#30405488,#202d4099);border:1px solid #43536988;border-radius:12px;padding:15px 17px 12px;min-height:204px;display:flex;flex-direction:column;transition:.2s}.module.active{border-color:var(--accent);box-shadow:0 0 0 1px #80e9df20,0 4px 24px #72ffdf0b}.module.done .step{color:var(--accent)}.module.failed{border-color:var(--red)}.step{font-size:19px;color:#afbdce;display:flex;align-items:center;gap:10px}.step span{font-size:9px;letter-spacing:1.4px;color:var(--muted)}h2{font-size:16px;font-weight:550;margin:8px 0 13px}.buttons{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}button{background:#344459;border:1px solid #4a5d73;border-radius:6px;color:var(--text);padding:7px 11px;cursor:pointer;font:inherit;font-size:12px;transition:.15s}button:hover{background:#445974;border-color:#87d6d2}button.primary{background:#9ae6de;color:#172d35;border-color:#a7f4eb;font-weight:600}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.arrow{color:#7e9caf;font-size:25px;text-align:center}.progress{height:3px;background:#101d2c;border-radius:4px;margin-top:auto;overflow:hidden}.progress div{height:100%;width:0;background:var(--accent);transition:width .2s}.module small{font-size:10px;color:var(--muted);margin-top:7px}.module p{font-size:12px;color:var(--muted);margin:0 0 12px}.legend{font-size:10px;display:flex;gap:6px;align-items:center;margin-bottom:12px;color:#b9c8d7}.legend i{width:14px;height:2px;background:#d0fff7}.legend .fault{background:var(--red);margin-left:7px}.toolbar{display:flex;align-items:center;gap:12px;padding:13px 0 9px;min-height:46px;font-size:12px}.toolbar>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hint{margin-left:auto;color:var(--muted);font-size:10px}.plots{min-height:0;flex:1;display:grid;grid-template-rows:2fr 1fr;gap:10px}.plot{display:flex;flex-direction:column;min-height:0;background:#000;border:1px solid #3b4a5c;border-radius:9px;overflow:hidden}.plot-heading{padding:8px 12px;letter-spacing:1.5px;font-size:9px;color:#e4ecf4;background:#192332;border-bottom:1px solid #2d3b4e;display:flex;justify-content:space-between}.plot-heading span{color:var(--muted);letter-spacing:0}.viewport{position:relative;flex:1;min-height:0;overflow-y:scroll;overflow-x:hidden;background:#000}.spacer{width:1px;pointer-events:none}.viewport canvas{position:sticky;left:0;bottom:0;display:block;margin-top:-1px;touch-action:none;cursor:grab}.viewport canvas:active{cursor:grabbing}.empty{position:absolute;inset:0;display:grid;align-content:center;text-align:center;color:#8191a7;pointer-events:none;font-size:14px}.empty small{font-size:11px;margin-top:8px}.viewport.loaded .empty{display:none}footer{display:flex;justify-content:space-between;padding-top:8px;color:var(--muted);font-size:10px}#notice{color:#ffb4c0;font-size:12px;max-height:55px;overflow:auto}#notice:not(:empty){padding-bottom:8px}aside{position:fixed;right:0;top:0;height:100%;width:25%;background:linear-gradient(160deg,#243347,#192434);border-left:1px solid #425269;transform:translateX(100%);transition:transform .25s;display:flex;flex-direction:column;padding:24px 20px}.panel-open aside{transform:none}.report-header{border-bottom:1px solid #435065;padding-bottom:18px}.report-header h2{font-size:20px;margin-bottom:5px}#reportStatus{font-size:11px;color:var(--muted)}pre{font:12px/1.8 'Segoe UI',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;flex:1;margin-top:18px}#panelToggle{position:fixed;right:0;top:18px;z-index:2;border-radius:6px 0 0 6px;background:#3d5267;padding:7px}.panel-open #panelToggle{right:25%}#panelToggle span{writing-mode:vertical-rl;font-size:10px;margin-top:6px;display:block}dialog{border:1px solid #52657d;border-radius:14px;background:#243246;color:var(--text);padding:24px;width:min(640px,92vw);max-height:85vh;box-shadow:0 30px 90px #0008}dialog::backdrop{background:#07121bbb;backdrop-filter:blur(5px)}.dialog-title{display:flex;justify-content:space-between;align-items:start}.dialog-title h2{font-size:19px}.dialog-title button{font-size:21px;padding:0 8px}dialog p{font-size:12px;color:#a9b8c9}.parameter{display:block;margin:17px 0}.parameter b{font-size:11px;display:block;font-weight:500;letter-spacing:.3px}.parameter span{font-size:11px;color:#a6b7c9;display:block;margin:4px 0 6px}input[type=number]{width:100%;padding:9px;background:#162335;color:#e5eff8;border:1px solid #52657d;border-radius:5px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}table{width:100%;border-collapse:collapse;font-size:12px}td{border-bottom:1px solid #435268;padding:9px 4px;overflow-wrap:anywhere}td:first-child{width:40%;color:#a8bacd}#records{display:grid;gap:8px;margin-bottom:20px}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-thumb{background:#415269;border:2px solid #172230;border-radius:5px}::-webkit-scrollbar-track{background:#172230}@media(max-width:1000px){main{padding:14px}body.panel-open main{width:70%}aside{width:30%;padding:18px 12px}.panel-open #panelToggle{right:30%}.module{padding:10px;min-height:213px}h2{font-size:13px}.hint{display:none}.step span{letter-spacing:0;font-size:8px}}@media(max-width:700px){body{height:auto;overflow:auto}main,body.panel-open main{width:100%;min-height:100dvh}.pipeline{grid-template-columns:1fr}.arrow{transform:rotate(90deg);font-size:20px}.module{min-height:180px}.plots{height:650px;flex:none}.panel-open aside{width:85%;z-index:3}.panel-open #panelToggle{right:85%;z-index:4}header{padding-right:20px}}@media(prefers-reduced-motion:reduce){*,h1 span{animation:none!important;transition:none!important}}

/* Expanded workspace and simplified module headings. */
body{height:auto;min-height:100dvh;overflow-x:hidden;overflow-y:auto;background-attachment:fixed}
main{height:auto;min-height:100dvh}
.plots{height:auto;flex:none;grid-template-rows:var(--analog-panel-height,72px) var(--digital-panel-height,72px)}
.pipeline{align-items:stretch}
.arrow{align-self:center}
.module{min-height:180px}
.step{gap:10px;align-items:baseline;margin-bottom:17px}
.step .step-number{font-size:19px;color:var(--accent);letter-spacing:0;flex:none}
.step h2{font-size:15px;margin:0;color:var(--text);line-height:1.3}
.report-important{color:var(--red);font-weight:400}
.progress div{transition:none}
@media(max-width:1000px){.step h2{font-size:13px}.module{min-height:190px}}
@media(max-width:700px){.plots{height:auto}.module{min-height:155px}}

/* Canvas covers only the on-screen slice; spacer owns scroll geometry. */
.viewport canvas{position:absolute;top:0;left:0;bottom:auto;margin:0}

/* Mobile uses page scrolling for signal rows; desktop keeps its own scrollbars. */
@media (max-width:700px), (pointer:coarse){
 .viewport{overflow-y:hidden;touch-action:pan-y}
 .viewport canvas{touch-action:pan-y}
}
