:root{--bg:#07111b;--panel:#0e1a28;--panel2:#102334;--line:#234052;--teal:#5ee4d7;--gold:#ffc177;--white:#e8f3f8;--muted:#8ea8bb;--red:#fb997e;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;font-size:13px}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--gold);outline-offset:2px}button:disabled{opacity:.45;cursor:default}select,input[type=number],input[type=text]{background:#0b1b2b;border:1px solid #2b4a59;color:#ecfaff;border-radius:6px;padding:9px;width:100%}input[type=range]{accent-color:var(--teal);width:100%;cursor:pointer}b,strong{font-weight:700}.hidden{display:none!important}
.appbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #2b4153;background:#091520;position:relative;z-index:3;gap:14px}.brand{display:flex;align-items:center;gap:13px;min-width:256px}.brandglyph{width:36px;height:36px;border:1px solid #5ee4d7;border-radius:50%;position:relative;box-shadow:0 0 24px #4fe0cc30;display:grid;place-items:center}.brandglyph:before{content:"";width:22px;height:22px;border:2px solid #6bdecf;border-radius:50%;position:absolute}.brandglyph span{width:10px;height:10px;border:2px solid var(--gold);border-radius:50%;position:absolute;transform:translateX(8px)}.brandcopy strong{display:block;font-size:16px;letter-spacing:.20em;font-weight:850}.brandcopy small{font-size:9px;letter-spacing:.14em;color:#96b3c4}.appbar-middle{color:#7e9eac;font-size:10px;letter-spacing:.14em;display:flex;align-items:center;gap:15px}.separator{height:14px;border-left:1px solid #31505e}.signal{color:var(--teal)}.signal i,.statusdot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6cefc6;box-shadow:0 0 13px #51e7ca;margin-right:7px}.top-actions{display:flex;gap:7px}.ghost-btn,.small-btn{background:#132437;color:#bdd7e0;border:1px solid #2b4758;border-radius:5px;padding:8px 11px;font-size:10px;letter-spacing:.07em;font-weight:720}.ghost-btn:hover,.small-btn:hover{background:#1a3445;border-color:#4e8d91}.ghost-btn span{font-size:13px}
.workspace{display:grid;grid-template-columns:278px minmax(420px,1fr) 278px;min-height:calc(100vh - 68px)}.leftside,.rightside{padding:21px 17px;background:#0b1723;min-width:0}.leftside{border-right:1px solid #234051}.rightside{border-left:1px solid #234051}.section-kicker{font-size:10px;letter-spacing:.14em;color:#91b5c1;font-weight:750}.mode-list{display:grid;gap:5px;margin-top:13px}.mode{width:100%;padding:10px 12px;background:#101f2d;border:1px solid transparent;color:#b0c4d3;border-radius:5px;display:flex;align-items:center;gap:12px;text-align:left;transition:.16s}.mode:hover{background:#172b39}.mode.active{background:#173444;border-color:#489b9d;box-shadow:inset 3px 0 var(--teal)}.mode-number{font-family:ui-monospace,monospace;color:#6f929e;font-size:11px}.mode.active .mode-number{color:var(--teal)}.mode b{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:11px}.mode small{display:block;font-size:10px;color:#7796a6;margin-top:3px}.side-section{margin-top:20px;padding-top:18px;border-top:1px solid #29404d}.section-row{display:flex;justify-content:space-between}.pill-label{font:10px ui-monospace,monospace;color:var(--gold)}.small-copy{font-size:12px;line-height:1.6;color:#94acbc;margin:12px 0}.field{margin-top:15px}.field label{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#a9c6d0;font-size:10px;letter-spacing:.075em;font-weight:700;margin:0 0 7px}.field label output{color:#ffc177;font-family:ui-monospace,Consolas,monospace;letter-spacing:0;font-size:11px;text-align:right}.field select{color:#e5f4fb;letter-spacing:0}.field-help{font-size:10px;color:#7b9aab;margin-top:5px;line-height:1.4}.legend-section p{font-size:11px;line-height:1.7;color:#87a5b2}.legend-section b{color:#e8bd85}.simple-link{background:transparent;border:0;padding:9px 0;color:var(--teal);font-size:10px;letter-spacing:.08em;font-weight:800}
.center{padding:18px 18px 28px;min-width:0;background:radial-gradient(ellipse at 35% 5%,#122839 0,#091622 53%,#08121d 100%)}.scene-card{overflow:hidden;border-radius:10px;border:1px solid #315062;box-shadow:0 12px 40px #0004;background:#0d1c2a}.scene-top{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:linear-gradient(90deg,#152f3c,#0f1f2c)}.scene-top h1{font-weight:630;font-size:19px;margin:5px 0 0;letter-spacing:-.025em}.scene-side{color:#a8c9d5;font-size:10px;letter-spacing:.07em}.scene-viewport{height:clamp(280px,40vh,510px);position:relative;overflow:hidden;background:radial-gradient(ellipse at center,#102a38,#071623)}.scene-viewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.scene-viewport canvas:active{cursor:grabbing}.view-badge{position:absolute;top:14px;left:14px;background:#09202bbf;border:1px solid #31516380;color:#b4ccda;border-radius:3px;padding:7px 9px;font:9px ui-monospace,monospace;letter-spacing:.09em;pointer-events:none}.compass{position:absolute;top:14px;right:18px;color:#779cab;font:10px ui-monospace;pointer-events:none}.compass span{color:var(--gold);padding:0 6px}.scene-overlay{position:absolute;bottom:17px;left:18px;background:#091725db;border:1px solid #3d6270;padding:12px 16px;min-width:240px;pointer-events:none;box-shadow:0 6px 20px #0004}.scene-overlay span{display:block;font-size:9px;letter-spacing:.12em;color:#93aab8}.scene-overlay strong{display:block;font:24px ui-monospace,Consolas,monospace;letter-spacing:-.045em;color:#dbfefa;margin-top:7px}.scene-overlay small{display:block;color:var(--gold);letter-spacing:.1em;font-size:9px;margin-top:5px}.stage-tools{position:absolute;bottom:16px;right:15px;display:flex;gap:3px}.stage-tools button{width:30px;height:30px;background:#0a2230d9;color:#cceef6;border:1px solid #365568;border-radius:3px}.transport{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#112535;border-top:1px solid #254653}.primary-btn{border:1px solid #79ebd4;background:#62e4d3;color:#072632;font-weight:850;font-size:10px;padding:10px 13px;border-radius:4px;letter-spacing:.07em}.primary-btn:hover{background:#a2f4df}.burn-btn{border:1px solid #a9783e;background:#3e2c23;color:#ffce8c;border-radius:4px;padding:10px 13px;font-size:10px;font-weight:800;letter-spacing:.05em}.burn-btn:hover{background:#57402a}.speed-label{margin-left:auto;font-size:9px;letter-spacing:.08em;color:#a1bcc9;white-space:nowrap}.speed-label output{display:block;color:var(--gold);font-family:ui-monospace;margin-top:2px;text-align:right}.transport input{max-width:84px}.readout{font:11px ui-monospace;color:#a4c4d1;min-width:79px;text-align:right}
.chartgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.plot-card{border:1px solid #2a495b;background:#102131;border-radius:6px;overflow:hidden;min-width:0}.plot-head{padding:10px 12px;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #213e4d}.plot-note{color:#809eae;font-size:9px;white-space:nowrap}.plot-card canvas{width:100%;height:190px;display:block;cursor:crosshair}.below{margin-top:15px;border:1px solid #2b4756;border-radius:7px;background:#0f2131;padding:16px}.below-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.tabbar{display:flex;border-radius:4px;background:#091a26;padding:3px;gap:3px}.tabbar button{background:transparent;color:#8caab6;border:none;border-radius:3px;padding:8px 10px;font-size:9px;letter-spacing:.07em;font-weight:700}.tabbar button.active{background:#294956;color:#e5fff9}.tab-panel p{color:#afc3cd;line-height:1.65;font-size:12px;margin:14px 0 9px}.mini-rows{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#7499a7;font-size:10px;letter-spacing:.04em}.challenge-top{display:flex;align-items:center;gap:11px;padding:12px 0}.challenge-top label{font-size:10px;color:#9ebabd}.challenge-top select{max-width:165px;padding:6px}.challenge-top span{margin-left:auto;font-size:10px;color:var(--teal);font-weight:750}.challenge-pills{display:flex;flex-wrap:wrap;gap:5px}.challenge-pills button{width:31px;height:28px;border:1px solid #345161;background:#142a3a;color:#a9c5d2;border-radius:3px;font:11px ui-monospace}.challenge-pills button.active{color:#0d2830;background:#7cdad3;border-color:#a5fff4}.challenge-pills button.passed{border-color:#84d6a5;color:#a3eabc}.challenge-pills button.active.passed{color:#163b34}#challenge-body{padding:13px 0 0}#challenge-body h3{font-size:15px;font-weight:600;margin:0 0 5px}#challenge-body p{margin:4px 0 10px}.challenge-answers{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.challenge-answers input{max-width:140px}.challenge-answers label{display:block;width:100%;padding:8px;border:1px solid #2e5261;border-radius:4px;font-size:12px}.challenge-feedback{padding:10px;background:#123341;border:1px solid #355968;margin-top:9px;color:#b2e7dc}.challenge-feedback.bad{background:#352620;border-color:#805046;color:#ffd2bd}.challenge-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.challenge-help{color:#e8bd7d;font-size:11px;line-height:1.5;margin-top:7px}
.rightside .section-kicker{display:block}.telemetry-head{display:flex;gap:9px;align-items:center;padding:17px 0 14px;border-bottom:1px solid #244354}.telemetry-head .statusdot{margin-top:3px}.telemetry-head b{font-weight:640;font-size:12px}.telemetry-head small{display:block;margin-top:3px;color:#7e99a9}.hero-metric{padding:22px 0;border-bottom:1px solid #294958}.hero-metric>div{color:#8cb9c6;font-size:10px;letter-spacing:.1em}.hero-metric strong{display:block;color:#a4ffea;font:40px ui-monospace,Consolas,monospace;letter-spacing:-.06em;margin:8px 0}.hero-metric span{font-size:9px;color:#799aa9}.meter-list{padding:3px 0}.meter{display:flex;justify-content:space-between;gap:9px;align-items:center;padding:12px 0;border-bottom:1px solid #263d4c}.meter span{font-size:11px;color:#92b0bd}.meter b{font:12px ui-monospace,Consolas,monospace;color:#e1eef4;white-space:nowrap}.instrument-card{margin-top:22px;border:1px solid #395665;background:linear-gradient(140deg,#163040,#11212f);padding:15px;border-radius:5px}.gap-readout{display:flex;align-items:center;gap:11px;margin:15px 0 8px}.gap-readout>span:first-child{font:36px ui-monospace,monospace;color:#e6f7f3;letter-spacing:-.06em}.gap-readout>span:last-child{font-size:9px;letter-spacing:.12em;color:#93aeb9;line-height:1.55}.coupling-track{background:linear-gradient(90deg,#4a9f98,#ffc177,#b0655c);height:5px;position:relative;border-radius:4px;margin:10px 0}.coupling-track span{height:14px;width:3px;background:#fff;position:absolute;top:-5px;left:30%;box-shadow:0 0 5px #fff8}.status-foot{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:9px;color:#a4bec7}.status-foot>span:first-child{color:var(--gold)}.notebook{margin-top:25px}.notebook-head{display:flex;justify-content:space-between;align-items:center}.notebook-head span:last-child{font:10px ui-monospace;color:#87a9b8}.notebook-scroll{max-height:190px;overflow:auto;margin-top:9px}.notebook table{width:100%;border-collapse:collapse;font:10px ui-monospace,monospace}.notebook th{text-align:left;color:#8cb5bf;background:#142a3a;padding:8px 4px}.notebook td{border-bottom:1px solid #273f4d;padding:8px 4px;color:#bccfdc}.notebook .empty{text-align:center;color:#6f8998;padding:20px 3px}.notebook-actions{display:flex;justify-content:space-between;margin-top:8px}.right-foot{border-top:1px solid #294455;margin-top:25px;padding-top:12px;font:9px ui-monospace;color:#83a2af;line-height:1.8}.right-foot>span:first-child{float:right;color:#a4cabf}.tiny-fine{display:block;font:9px system-ui;color:#6d8999;margin-top:12px}.mobile-footer{display:none}
dialog{width:min(850px,calc(100vw - 28px));max-height:calc(100vh - 40px);border:1px solid #4b7788;background:#0c1b29;color:#e9faff;border-radius:8px;padding:0;box-shadow:0 25px 100px #000d}dialog::backdrop{background:#020a11df;backdrop-filter:blur(5px)}.guide-top{display:flex;justify-content:space-between;padding:25px 30px 20px;border-bottom:1px solid #315160;gap:20px}.guide-top h2{font-size:27px;font-weight:650;letter-spacing:-.04em;margin:7px 0}.guide-top p{color:#9cb8c6}.guide-top button{align-self:flex-start;white-space:nowrap}.guide-body{padding:10px 30px;overflow-y:auto;max-height:calc(100vh - 265px);display:grid;gap:1px}.guide-body section{border-bottom:1px solid #1f3848;padding:10px 0}.guide-body h3{color:var(--teal);font-size:14px;letter-spacing:.01em}.guide-body p{line-height:1.73;color:#b7cbd6;font-size:13px}.guide-bottom{padding:13px 30px;display:flex;justify-content:space-between;align-items:center;color:#789aa8;font-size:10px;letter-spacing:.07em}
@media(max-width:1230px){.workspace{grid-template-columns:250px minmax(360px,1fr)}.rightside{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px;border-left:none;border-top:1px solid #284959}.rightside>.section-kicker,.telemetry-head,.right-foot{grid-column:1/-1}.hero-metric{border-bottom:0}.meter-list{grid-column:2}.instrument-card{grid-column:3;margin-top:0}.notebook{grid-column:1/-1;margin-top:0}.appbar-middle{display:none}}
@media(max-width:780px){.workspace{display:block}.leftside,.rightside{border:0;padding:15px}.mode-list{display:flex;gap:6px;overflow:auto;padding-bottom:5px}.mode{min-width:130px}.leftside .side-section{margin-top:13px;padding-top:13px}.legend-section{display:none}#controls{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.center{padding:12px}.scene-top{height:66px;padding:0 13px}.scene-top h1{font-size:16px}.scene-viewport{height:350px}.chartgrid{grid-template-columns:1fr}.plot-card canvas{height:210px}.rightside{display:block}.meter-list{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.instrument-card,.notebook{margin-top:20px}.top-actions{gap:3px}.top-actions button{font-size:0;padding:7px}.top-actions button:first-child{font-size:10px}.top-actions button:first-child span{font-size:13px}.top-actions button:nth-child(2)::before{content:"↧";font-size:15px}.top-actions button:nth-child(3)::before{content:"↺";font-size:15px}.brand{min-width:auto}.brandcopy strong{font-size:13px}.brandcopy small{font-size:8px}.appbar{padding:0 12px}.transport{gap:6px}.transport input{max-width:65px}}
@media(max-width:430px){.scene-viewport{height:330px}.scene-overlay{min-width:0;left:9px;bottom:9px;padding:9px}.scene-overlay strong{font-size:19px}.scene-side{display:none}.stage-tools{right:7px;bottom:10px}.stage-tools button{height:26px;width:25px}.transport{flex-wrap:wrap}.speed-label{margin-left:0}.readout{margin-left:auto}#controls{grid-template-columns:1fr 1fr}.field label{font-size:9px}.below-heading{align-items:flex-start;flex-direction:column}.guide-top,.guide-bottom{padding-left:15px;padding-right:15px}.guide-body{padding:10px 15px}.guide-bottom>span{display:none}}
