:root{color-scheme:dark;--bg:#07121d;--surface:#0d1d2d;--surface2:#132537;--line:#284052;--mint:#64e3d1;--gold:#f0bb76;--ink:#e3f1f2;--muted:#91adbc;--red:#f58699}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 40% -20%,#183649 0%,var(--bg) 49%,#07101b 90%);color:var(--ink);font-family:Inter,'Avenir Next','Segoe UI',system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--mint);outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed}h1,h2,h3,p{margin-top:0}.app{max-width:1940px;margin:auto;padding:0 24px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:104px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:16px}.brandmark{height:55px;width:55px;display:grid;place-items:center;border:1px solid #498f94;background:conic-gradient(from 200deg,#153a4a,#163039,#101c2d,#306260,#153a4a);box-shadow:0 0 28px #36c5b128;clip-path:polygon(23% 0,78% 0,100% 50%,76% 100%,22% 100%,0 50%)}.brandmark span{font-family:Georgia,serif;font-size:28px;color:var(--mint)}.eyebrow{font-size:10px;color:var(--mint);font-weight:800;letter-spacing:.17em;text-transform:uppercase;line-height:1.8}.brand .eyebrow{color:#88aebb}h1{font-size:23px;font-weight:780;letter-spacing:.02em;margin:3px 0}h1 span{font-weight:350;color:#a6c0cb;font-size:17px}.topmeta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid var(--line);color:var(--muted);font-size:10px;letter-spacing:.06em;white-space:nowrap}.led,.live-dot{height:7px;width:7px;border-radius:50%;background:var(--mint);display:inline-block;box-shadow:0 0 12px var(--mint)}.button,.view-actions button{background:#1b3448;border:1px solid #395369;color:#dcebf0;padding:10px 13px;border-radius:5px;transition:background .2s,border-color .2s}.button:hover,.view-actions button:hover{background:#28526a;border-color:#6c95a0}.button.primary{background:#a6e4d9;border-color:#a6e4d9;color:#0c2630;font-weight:800}.button.primary:hover{background:#d1fff5}.button.subtle{background:transparent}.button.play{background:#28505a;color:#b1fff0;border-color:#438683;font-weight:750}.button.full{width:100%}.modes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:17px 0}.mode{display:flex;align-items:center;gap:12px;min-height:69px;padding:13px;text-align:left;background:linear-gradient(145deg,#14283a,#0d1b2a);border:1px solid #294156;border-top:2px solid transparent;color:#a6bbc8;border-radius:4px}.mode:hover{border-color:#558d96}.mode.active{border-color:#4dbbb0;border-top:2px solid var(--mint);background:linear-gradient(140deg,#1e454d,#102737);color:#e8fffa}.mode .number{font-family:Georgia,serif;font-size:27px;color:#609394}.mode.active .number{color:#b7ffee}.mode .mode-info{font-weight:760;font-size:12px}.mode small{display:block;color:#8caeb9;font-size:10px;font-weight:450;line-height:1.45;margin-top:3px}.layout{display:grid;grid-template-columns:minmax(244px,290px) minmax(0,1fr) minmax(240px,278px);gap:14px;align-items:stretch}.surface{border:1px solid #2c4356;background:linear-gradient(145deg,#102437 0%,#0d1a29 65%,#0b1725 100%);border-radius:5px;overflow:hidden}.controls,.instruments{padding:19px 16px;min-width:0}.section-head{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:16px}.section-head strong{display:block;font-size:17px;line-height:1.25;margin:6px 0}.section-head p{font-size:12px;line-height:1.6;color:var(--muted);margin:5px 0 0}.field-group{border-bottom:1px solid #244052;padding:3px 0 15px;margin-bottom:14px}.group-title{color:var(--gold);font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;margin-bottom:13px}.controls label{display:flex;justify-content:space-between;gap:6px;font-size:12px;color:#bcd0d9;margin:12px 0 6px;align-items:baseline}.controls output{font-variant-numeric:tabular-nums;color:#f3d3a1;font-weight:750;font-size:12px}input[type=range]{width:100%;margin:0;accent-color:#76e7dc;height:16px;cursor:pointer}.endpoints{display:flex;justify-content:space-between;color:#678b9c;font-size:10px}select{background:#152d3d;border:1px solid #355366;color:#eaf4f9;padding:10px 9px;border-radius:4px;width:100%}.controls .full{margin-top:9px}.laboratory{min-width:0;display:grid;grid-template-rows:auto auto;gap:14px}.viewport{display:flex;flex-direction:column;min-width:0;position:relative;min-height:525px;background:#091624}.viewport-top{position:absolute;top:14px;left:17px;right:14px;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;gap:12px}.viewport-top>*{pointer-events:auto}.viewport-title{font-size:14px;font-weight:800;letter-spacing:.08em;margin-top:3px}.view-actions{display:flex;gap:6px}.view-actions button{font-size:11px;padding:9px 10px;background:#162a3cd9}#scene{width:100%;height:400px;flex:1;min-height:390px;display:block;touch-action:none;cursor:move}.scene-note{position:absolute;bottom:78px;left:17px;right:17px;display:flex;justify-content:space-between;gap:8px;color:#a3bdca;font-size:10px;pointer-events:none}.key{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:5px}.key.cyan{background:var(--mint)}.transport{background:#122738;display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid #35516b;padding:10px 14px;flex-wrap:wrap}.transport-left,.transport-right{display:flex;align-items:center;gap:9px}.transport-right{font-size:11px;color:#9eb9c7;white-space:nowrap}.transport-right #clock{font-variant-numeric:tabular-nums;color:#f6d1a0}.transport .button{padding:9px 11px}.speedbox{display:flex;align-items:center;gap:7px;margin-left:6px;color:var(--muted);font-size:10px}.speedbox select{width:75px;padding:8px 6px}.graphs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.graph{padding:14px;min-width:0}.graph-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.graph-heading strong{font-size:13px}.graph-hint{color:#7fa3b3;font-size:9px;text-align:right;max-width:125px}.graph canvas{width:100%;height:220px;display:block;margin-top:11px;cursor:crosshair;touch-action:manipulation}.hero-reading{background:linear-gradient(120deg,#173e43,#102733);border:1px solid #3c6969;padding:14px;margin-top:8px}.hero-reading>span{color:#a4d8d5;font-size:10px;letter-spacing:.14em;font-weight:800}.big-reading{display:flex;align-items:baseline;gap:5px;margin:8px 0;font-variant-numeric:tabular-nums}.big-reading strong{font-size:45px;color:#d3fff8;font-weight:470;letter-spacing:-.06em}.big-reading em{font-style:normal;font-size:28px;color:var(--mint)}.reading-sub{display:flex;flex-direction:column;gap:3px;color:#a0bbbd;font-size:11px}.reading-sub b{color:#f3d1a0}.readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.readings>div{min-width:0;min-height:75px;padding:10px;background:#12293b;border:1px solid #244356}.readings span{display:block;color:#94aebb;font-size:10px;min-height:24px}.readings strong{display:inline-block;font-size:20px;font-weight:620;font-variant-numeric:tabular-nums;letter-spacing:-.03em;margin-top:5px}.readings small{margin-left:3px;color:#c2b698;font-size:10px}.rack-actions{display:grid;gap:8px}.notebook{border-top:1px solid var(--line);margin-top:17px;padding-top:12px}.notebook-head{display:flex;justify-content:space-between;align-items:center;font-size:12px}.notebook-head button{background:none;color:#b7c7c7;border:0;font-size:10px;text-decoration:underline}.notes{max-height:210px;overflow:auto;margin-top:10px}.notes .empty{font-size:11px;color:#698ba0;line-height:1.7}.note{padding:10px 0;border-bottom:1px solid #24384c;font-size:11px}.note b{color:var(--mint)}.note .time{float:right;color:#92aabb}.note p{color:#a7beca;margin:5px 0 0;font-variant-numeric:tabular-nums}.lower{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:14px;margin-top:16px}.challenges,.manual{padding:20px}.section-head.inline{display:flex;justify-content:space-between;gap:8px;align-items:center}.section-head.inline>div:last-child{min-width:118px}.tiny{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.challenge-summary{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}.meter{width:60%;font-size:11px;color:var(--muted)}.bar{height:5px;background:#2b4658;margin-top:8px;border-radius:4px;overflow:hidden}.bar i{width:0%;height:100%;display:block;background:var(--mint);transition:width .2s}.challenge-items{display:grid;gap:10px;max-height:920px;overflow:auto}.challenge{border:1px solid #2a4657;border-left:3px solid #456579;padding:12px;background:#102538;border-radius:4px}.challenge.correct{border-left-color:var(--mint);background:#123b3e}.challenge .ctop{display:flex;justify-content:space-between;gap:9px;align-items:center}.challenge .ctop b{font-size:12px;color:#e5ecee}.challenge .kind{color:#9cbbc9;font-size:9px;letter-spacing:.09em}.challenge p{font-size:12px;line-height:1.6;color:#bfd1d8;margin:9px 0}.challenge input[type=number]{width:140px;max-width:52%;padding:9px;background:#091c2d;color:#f6f5e9;border:1px solid #426173;border-radius:3px}.challenge .answer-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.challenge .answer-row button{font-size:11px;padding:8px 10px}.challenge .radio{display:block;margin:4px 0;padding:4px;color:#d4dede;font-size:12px}.challenge .radio input{accent-color:var(--mint)}.challenge .feedback{margin:9px 0 0;padding:8px 10px;border:1px solid #3e5d65;color:#f1d4a8;font-size:11px;line-height:1.5}.challenge.correct .feedback{color:#b8f8e2}.challenge .hint{background:none;border:0;color:#9dd8d1;text-decoration:underline;padding:0;font-size:11px}.manual-content{max-height:1130px;overflow:auto;padding-right:7px}.manual h2{font-size:12px;text-transform:uppercase;letter-spacing:.075em;color:var(--gold);margin:18px 0 7px}.manual p{font-size:12px;line-height:1.79;color:#b4cad3;margin:0 0 11px}.manual b{color:#dce7e9}.manual em{color:#e6c999}footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);margin:19px 0 5px;padding:20px 0 27px;color:#7794a3;font-size:10px;letter-spacing:.1em}
@media (max-width:1300px){.layout{grid-template-columns:minmax(220px,264px) minmax(0,1fr)}.instruments{grid-column:1 / -1;display:grid;grid-template-columns:1.3fr 1.5fr 1fr;gap:10px;align-items:start}.instruments .section-head{grid-column:1/-1;margin-bottom:0}.instruments .hero-reading{margin:0}.instruments .readings{margin:0}.instruments .rack-actions,.instruments .notebook{grid-column:3}.instruments .notebook{margin-top:10px}.notes{max-height:130px}.graph canvas{height:190px}}
@media (max-width:920px){.app{padding:0 14px}.topbar{align-items:flex-start;padding:17px 0;min-height:0}.topmeta{justify-content:end}.topmeta .chip:nth-child(2){display:none}.modes{grid-template-columns:repeat(5,minmax(142px,1fr));overflow:auto}.mode{padding:8px;min-height:60px}.mode .number{font-size:22px}.layout{grid-template-columns:1fr}.controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.controls>.section-head{grid-column:1/-1;margin:0}.field-group{margin:0}.instruments{grid-column:auto}.lower{grid-template-columns:1fr}.manual-content{max-height:700px}}
@media (max-width:620px){h1{font-size:19px}h1 span{display:block;font-size:13px;margin-top:3px}.brandmark{height:45px;width:45px}.topmeta .chip{display:none}.topbar .button{font-size:10px;padding:8px}.modes{margin:10px 0}.controls{grid-template-columns:1fr}.field-group{border-bottom:1px solid var(--line)}.viewport{min-height:400px}#scene{height:320px;min-height:320px}.viewport-top{left:10px;right:8px;top:10px}.view-actions{flex-wrap:wrap;justify-content:end;max-width:160px}.view-actions button{font-size:9px;padding:7px 6px}.viewport-title{font-size:12px}.scene-note{bottom:78px;font-size:9px;flex-direction:column}.transport-right #status{display:none}.graphs{grid-template-columns:1fr}.graph canvas{height:210px}.instruments{display:block}.instruments .hero-reading{margin-top:10px}.instruments .readings{margin:10px 0}.instruments .rack-actions,.instruments .notebook{margin-top:10px}.section-head.inline{align-items:flex-start}.challenge-summary{flex-direction:column;align-items:stretch}.meter{width:100%}.brand .eyebrow{font-size:8px}}
