:root{color-scheme:dark;--bg:#070d17;--panel:#0d1725;--panel2:#101f2c;--line:#203445;--ink:#e7f2f7;--muted:#8ca5b2;--subtle:#5f7b8a;--lime:#76f9bd;--amber:#ffd48a;--violet:#b89bff;--pad:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #a2ffda;outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed}.app{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 58% 27%,#112c38 0,#09131e 47%,#070d17 85%)}
.masthead{height:76px;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 24px;border-bottom:1px solid #213344;background:linear-gradient(90deg,#0b1825,#0b1721ee);flex-shrink:0}.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand-mark{width:39px;height:39px;border:1px solid #34736e;border-radius:11px;background:linear-gradient(145deg,#163d3b,#0c2027);display:grid;place-items:center;box-shadow:0 0 25px #0b786655;color:#77f8bc;font-size:27px;flex-shrink:0}.eyebrow,.tiny,.overline,.metric-title,.groupname,.section-title,.scene-tag,.timeline-label,.phase-top,.specimen,.online,.status-bar,.livechip{font-size:10px;font-weight:750;letter-spacing:1.5px}.eyebrow{color:#85d5bd}.slash{padding:0 6px;color:#3d666b}.edition{color:#667b89;padding-left:8px}.brandname{font-size:20px;line-height:1.3;font-weight:760;letter-spacing:-.7px;margin-top:3px;white-space:nowrap}.subtitle{font-size:13px;color:#90a8b6;font-weight:450;margin-left:11px;letter-spacing:0}.header-actions{display:flex;align-items:center;gap:18px;color:#a6b9c5;white-space:nowrap}.online{color:#9eeac8;display:flex;align-items:center;gap:7px}.pulse,.green-dot{background:var(--lime);height:7px;width:7px;border-radius:50%;box-shadow:0 0 9px #79efba}.specimen span{color:#435765;margin:0 6px}.ghost{border:1px solid #294253;color:#bcd7df;background:#122332;border-radius:8px}.icon-only{width:33px;height:33px;font-size:18px}.workspace{flex:1;display:grid;grid-template-columns:255px minmax(360px,1fr) 275px;min-height:0;min-width:0}.left-panel,.right-panel{background:#0a1521e8;border-right:1px solid #243744;min-width:0;display:flex;flex-direction:column}.right-panel{border-right:0;border-left:1px solid #243744}.panel-heading{padding:21px 17px 13px;display:flex;justify-content:space-between;align-items:center;gap:8px}.tiny{color:#7893a5;font-size:9px}.panel-heading h2{font-size:19px;letter-spacing:-.6px;margin:6px 0 0;font-weight:650}.control-count{font-size:10px;color:#84a2b1;border:1px solid #304754;border-radius:5px;padding:5px 7px}.presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 13px 18px}.preset{background:#142433;border:1px solid #283e4c;color:#93aebb;border-radius:7px;padding:9px 3px;font-size:10px;font-weight:650}.preset.active{background:#173c3b;border-color:#3a8e78;color:#a7ffda;box-shadow:inset 0 0 0 1px #234b42}.controls-scroll{padding:2px 15px 15px;overflow:auto;flex:1;scrollbar-color:#335061 transparent;scrollbar-width:thin}.groupname{color:#6d899a;font-size:9px;margin:5px 0 19px}.control{margin-bottom:18px}.control-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:7px}.control-label label{color:#d6e5ed;font-size:12px;font-weight:640}.control-label output{font-size:11px;color:#7ef5c2;font-weight:780;white-space:nowrap}.control-hint{margin-top:5px;color:#7891a0;font-size:10px;line-height:1.35}input[type=range]{appearance:none;-webkit-appearance:none;background:linear-gradient(90deg,#54dfad 0%,#285e62 45%,#253947 45%,#253947 100%);height:5px;border-radius:4px;width:100%;display:block;cursor:pointer;--pct:45%}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;background:#a3ffda;width:13px;height:13px;border:2px solid #18483e;border-radius:50%;box-shadow:0 0 0 3px #1e4039}input[type=range]::-moz-range-thumb{background:#a3ffda;width:11px;height:11px;border:2px solid #18483e;border-radius:50%}.panel-bottom{padding:13px 16px 17px;display:flex;align-items:flex-start;gap:9px;border-top:1px solid #1d3341;background:#0d1b29}.panel-bottom .small-icon{width:25px;height:25px;flex:none;border:1px solid #315b57;background:#183f3c;display:grid;place-items:center;border-radius:7px;color:var(--lime);font-size:16px}.panel-bottom p{font-size:11px;line-height:1.5;color:#96adba;margin:0}
.scene-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:#08131d}.stage{position:relative;flex:1;min-height:390px;overflow:hidden;background:radial-gradient(circle at 50% 39%,#14404b 0%,#0b2430 33%,#091724 65%,#08131d 100%)}#viewport{position:absolute;inset:0}#viewport canvas{display:block;width:100%;height:100%;touch-action:none}.stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 57%,transparent 28%,#06121b55 86%),linear-gradient(180deg,#09151b66,transparent 25%,transparent 72%,#08131bb3)}.viewport-top,.stage-title,.orientation-key,.stage-controls,.compass{position:absolute;z-index:2}.viewport-top{top:16px;left:17px;right:17px;display:flex;justify-content:space-between;align-items:center;gap:8px}.scene-tag{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #385b604f;background:#0a1c2ba8;color:#b5d4d5;border-radius:7px;letter-spacing:.9px;font-size:9px}.scene-tag b{font-size:8px;color:#78aaa6;font-weight:600}.view-controls{display:flex;gap:4px}.view-controls button{background:#0a1e2dcf;border:1px solid #335263;color:#bdd4dd;border-radius:5px;padding:8px 9px;font-size:9px;font-weight:800;letter-spacing:.6px;min-width:30px}.view-controls button.selected{background:#1c4845;color:#a9ffe0;border-color:#3c9b89}.stage-title{left:24px;top:70px;pointer-events:none;max-width:370px}.overline{color:#7facaa;font-size:9px}.stage-title h1{font-size:clamp(20px,2.5vw,35px);letter-spacing:-1.2px;line-height:1.1;margin:8px 0;font-weight:750;text-shadow:0 2px 12px #05131be0}.stage-title em{font-style:normal;color:#88f7c6}.mini-desc{color:#9bafb9;font-size:11px;line-height:1.55;max-width:290px}.orientation-key{bottom:89px;left:21px;display:flex;flex-direction:column;gap:8px;font-size:10px;color:#a4bdc6;background:#07182491;padding:11px 13px;border:1px solid #2c465045;border-radius:9px}.orientation-key div{display:flex;align-items:center;gap:8px}.keyline{display:inline-block;width:13px;height:3px;border-radius:2px;background:#76f9bd;vertical-align:middle}.keyline.amber{background:var(--amber)}.keyline.violet{background:var(--violet)}.stage-controls{left:16px;right:16px;bottom:15px;display:flex;align-items:center;gap:8px;background:#071521ed;border:1px solid #2e4a55;border-radius:11px;padding:9px 11px;box-shadow:0 8px 25px #0006}.square{width:33px;height:33px;border:1px solid #35515c;background:#142c39;color:#c4efe2;font-size:17px;border-radius:7px;flex-shrink:0}.square:first-child{color:var(--lime);background:#17433f;border-color:#3a8e80}.timeline{flex:1;min-width:0;margin:0 6px}.timeline-label{display:flex;justify-content:space-between;color:#a1bac4;font-size:9px;letter-spacing:.75px;gap:6px;white-space:nowrap}.timeline-label b{color:#e2f4f2}.track{height:5px;border-radius:8px;background:#294451;margin-top:10px;position:relative}.track #trackFill{height:100%;width:0%;background:linear-gradient(90deg,#3aa79f,#9efdc3);border-radius:8px}.track #trackPin{height:11px;width:11px;background:#d2ffe0;border:2px solid #267d68;border-radius:50%;position:absolute;left:0%;top:-3px}.speed-control{display:flex;align-items:center;gap:5px;color:#7b9aa4;font-size:9px;font-weight:800}.speed-control select{background:#172c38;border:1px solid #31505d;color:#e6f5f0;border-radius:6px;padding:8px 3px;font-size:10px;max-width:57px}.compass{right:25px;bottom:100px;display:flex;flex-direction:column;gap:4px;color:#648d9f;font-size:9px;align-items:center}.compass b{font-size:20px;color:#89a8ae;font-weight:300;line-height:15px}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid #213b48;min-height:116px;background:#0b1a27}.metric{padding:18px 15px;border-right:1px solid #233945;min-width:0}.metric:last-child{border-right:0}.metric-title{color:#b2cbd4;font-size:9px;letter-spacing:.8px;display:flex;align-items:center;gap:7px;justify-content:space-between;white-space:nowrap}.metric-title span{font-size:7px;color:#678993;letter-spacing:0;border:1px solid #34505b;padding:3px 4px;border-radius:3px}.value{margin-top:8px;white-space:nowrap}.value strong{font-size:clamp(19px,2.2vw,28px);font-weight:700;letter-spacing:-1px;color:#dffbf0}.value small{font-size:11px;margin-left:4px;color:#81d5b6}.metric-sub{font-size:10px;color:#778e9b;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.right-heading{padding-bottom:18px}.livechip{font-size:9px;color:#86e4bd;background:#14352f;border:1px solid #285b4f;border-radius:5px;padding:5px}.phase-card{padding:13px;border-radius:9px;background:linear-gradient(145deg,#142d36,#11232e);border:1px solid #31505a;margin:0 12px 18px}.phase-top{display:flex;justify-content:space-between;color:#9ab9c2;font-size:9px;letter-spacing:.9px}.phase-top span:last-child{color:#7be6b9}.phase-illustration{height:111px;display:flex;align-items:center;justify-content:center}.phase-illustration svg{width:100%;height:100%}.phase-card>b{font-size:13px;font-weight:650}.phase-card>p{font-size:11px;color:#96afbd;line-height:1.45;margin:6px 0 2px}.right-section{padding:15px 15px 17px;border-top:1px solid #223642}.section-title{display:flex;justify-content:space-between;color:#b4cbd0;font-size:9px;letter-spacing:.7px;gap:6px}.section-title span:last-child{color:#5a948f;font-size:8px;white-space:nowrap}#history{width:100%;height:122px;margin:10px 0 0}.chart-caption{display:flex;gap:14px;align-items:center;color:#8eabb5;font-size:9px}.chart-caption span{white-space:nowrap}.chart-caption .keyline{width:10px}.force-readout{display:flex;align-items:center;gap:7px;margin-top:14px;padding:9px 10px;border:1px solid #30565a;background:#13313a;border-radius:6px}.force-readout span{font-size:11px;color:#9bbec5;margin-right:auto}.force-readout b{font-size:15px;color:#8cf5c8}.force-readout small{font-size:8px;color:#8eaaaf;max-width:56px;line-height:1.3}.right-section.check{padding-bottom:16px}.proof-name{color:#b7cad5;margin:15px 0 10px;font-size:11px}.proof-grid{display:grid;gap:8px}.proof-grid div,.comparison{display:flex;justify-content:space-between;align-items:center;gap:10px}.proof-grid span,.comparison span{font-size:10px;color:#8ca9b3}.proof-grid b{font-size:12px;color:#e4f8ef;font-weight:630}.comparison{margin-top:11px;padding-top:9px;border-top:1px dashed #35505a}.comparison b{font-size:14px;color:#7df1b8}.passed{margin-top:12px;display:inline-block;padding:5px 8px;border:1px solid #2d715e;border-radius:5px;background:#164036;color:#9bfbd0;font-size:9px;font-weight:800;letter-spacing:.5px}.right-footer{display:flex;gap:11px;margin:auto 13px 14px;background:#142a34;border:1px solid #294c56;padding:12px;border-radius:8px}.footer-mark{font-size:26px;color:#88f5c7}.right-footer b{font-size:12px}.right-footer p{font-size:10px;color:#8fa9b3;line-height:1.4;margin:5px 0}.right-footer button{background:transparent;color:#8df6c2;border:none;padding:5px 0;font-size:11px;font-weight:650}.right-footer button span{padding-left:4px}
.status-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #233945;padding:10px 17px;min-height:43px;background:#091520;font-size:9px;color:#7f9aa9;letter-spacing:.5px}.status-bar strong{color:#b7d8da}.status-bar i{font-style:normal;margin:0 8px;color:#365d5b}.status-bar>span:last-child{display:flex;gap:5px;flex-wrap:wrap}.status-bar button{border:1px solid #284550;background:#122734;color:#92c4b4;border-radius:5px;padding:5px 7px;font-size:9px;white-space:nowrap}.status-bar button.off{color:#657987;background:#0d1d27}.modal{position:fixed;inset:0;z-index:10;display:flex;justify-content:flex-end}.modal[hidden]{display:none}.modal-scrim{position:absolute;inset:0;background:#030b12c9;backdrop-filter:blur(4px)}.biology-sheet{position:relative;width:min(630px,100%);height:100%;display:flex;flex-direction:column;background:#0c1c29;border-left:1px solid #3b6268;box-shadow:-30px 0 70px #000a}.sheet-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #294451;padding:27px 27px 20px}.sheet-header h2{font-size:24px;letter-spacing:-1px;margin:7px 0 0}.sheet-header h2 em{font-size:16px;font-weight:400;color:#97b6bc}.close{border:1px solid #35515d;background:#1b3442;color:#dcf2f3;font-size:23px;width:35px;height:35px;border-radius:8px}.sheet-scroll{overflow:auto;padding:22px 29px 40px;line-height:1.65;color:#aec5ce;font-size:13px}.factstrip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:21px}.factstrip div{background:#15313b;border:1px solid #2f515c;border-radius:8px;padding:12px}.factstrip small{display:block;font-size:9px;letter-spacing:1px;color:#82a8b2}.factstrip strong{font-size:12px;color:#e7f5ee;display:block;margin-top:6px}.sheet-scroll h3{font-size:15px;color:#eefbf4;margin:25px 0 8px}.sheet-scroll p{margin:0 0 13px}.sheet-scroll b{color:#ccebd9}.equations{background:#071721;border:1px solid #30505b;padding:15px 17px;border-radius:9px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#a9ecd4;line-height:2}.sheet-scroll li{padding:3px 0}.sheet-scroll a{color:#8bffd0}.disclaimer{font-size:11px;color:#9caeaf;border-top:1px solid #35535c;margin-top:23px;padding-top:16px}
body.embed .masthead,body.embed .left-panel,body.embed .right-panel,body.embed .status-bar{display:none}body.embed .workspace{grid-template-columns:1fr;min-height:100vh}body.embed .stage{min-height:calc(100vh - 112px)}body.embed .metrics-grid{min-height:112px}
@media(min-width:1500px){.workspace{grid-template-columns:280px minmax(500px,1fr) 300px}.stage-title h1{font-size:37px}}
@media(max-width:1100px){.workspace{grid-template-columns:230px minmax(325px,1fr) 245px}.masthead{padding-left:14px;padding-right:14px}.subtitle{display:none}.metric{padding:14px 9px}.metric-title{font-size:8px}.metric-title span{display:none}.value strong{font-size:22px}.panel-heading{padding-left:13px;padding-right:13px}.phase-card{margin-left:9px;margin-right:9px}.right-section{padding-left:10px;padding-right:10px}.right-footer{margin-left:9px;margin-right:9px}.orientation-key{bottom:88px}}
@media(max-width:850px){.workspace{display:flex;flex-wrap:wrap}.scene-panel{order:0;width:100%}.stage{height:480px;min-height:480px;flex:none}.left-panel,.right-panel{order:1;width:50%;border-top:1px solid #2b4654}.left-panel{height:450px}.right-panel{min-height:450px}.controls-scroll{max-height:335px}.right-section{padding:15px}.right-footer{margin-top:8px}.status-bar{flex-wrap:wrap}.header-actions .specimen{display:none}}
@media(max-width:560px){.masthead{height:66px;padding:10px 12px}.brand-mark{width:34px;height:34px}.brand{gap:9px}.eyebrow{font-size:8px;letter-spacing:.5px}.edition,.online{display:none}.brandname{font-size:15px;white-space:normal}.header-actions{gap:4px}.workspace{display:flex;flex-direction:column}.stage{height:430px;min-height:430px}.stage-title{top:61px;left:14px}.stage-title h1{font-size:24px}.mini-desc{font-size:10px;max-width:245px}.viewport-top{top:10px;left:10px;right:10px}.scene-tag{font-size:7px;padding:7px 8px}.scene-tag b{display:none}.view-controls button{font-size:8px;padding:7px 5px}.orientation-key{bottom:87px;left:10px;gap:5px;padding:8px 9px;font-size:9px}.compass{display:none}.stage-controls{left:7px;right:7px;bottom:9px;gap:4px;padding:7px}.square{width:28px;height:31px;font-size:15px}.timeline{margin:0 2px}.timeline-label{font-size:7px;letter-spacing:0}.timeline-label span{max-width:105px;overflow:hidden;text-overflow:ellipsis}.speed-control{gap:2px}.speed-control span{display:none}.speed-control select{font-size:9px;padding:7px 2px}.metrics-grid{min-height:150px;grid-template-columns:repeat(2,1fr)}.metric{padding:10px 13px;border-bottom:1px solid #233945}.metric:nth-child(2){border-right:0}.metric-title{font-size:8px}.metric-title span{display:block;font-size:7px}.value{margin-top:4px}.value strong{font-size:23px}.metric-sub{font-size:9px;margin-top:0}.left-panel,.right-panel{order:1;width:100%;height:auto;min-height:initial}.left-panel{padding-bottom:0}.controls-scroll{display:block;max-height:none;overflow:visible;padding:4px 17px}.presets{margin:0 17px 17px}.control{margin-bottom:18px}.right-panel{border-left:0}.panel-bottom{display:none}.phase-card{margin:0 15px 12px}.phase-illustration{height:83px}.right-section{padding:15px 17px}.right-footer{margin:10px 15px 18px}.status-bar{gap:6px;justify-content:center;padding:9px 9px 13px;font-size:8px}.status-bar>span:first-child{flex:1 1 auto}.status-bar>span:nth-child(2){flex:1 1 auto;text-align:right}.status-bar>span:last-child{justify-content:center;width:100%;flex-wrap:wrap}.status-bar button{padding:6px}.sheet-header{padding:18px}.sheet-scroll{padding:15px 18px}.factstrip{gap:5px}.factstrip div{padding:8px}.factstrip strong{font-size:10px}.sheet-header h2{font-size:21px}body.embed .stage{height:calc(100vh - 150px);min-height:380px}body.embed .metrics-grid{height:150px}}
@media(prefers-reduced-motion:reduce){.pulse{box-shadow:none}}
/* Fixed-height desktop instrument, with individual scrollable instrument rails. */
@media(min-width:851px){
  .app{height:100vh;min-height:580px;overflow:hidden}
  .workspace{flex:1;min-height:0;height:calc(100% - 119px);overflow:hidden}
  .left-panel{min-height:0;overflow:hidden}
  .right-panel{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#355966 transparent}
  .scene-panel{min-height:0;height:100%}
  .stage{min-height:310px}
  .status-bar{flex-shrink:0}
}
