:root{color-scheme:dark;--base:#050a16;--panel:#0a1427;--line:#25344b;--low:#7c91ae;--text:#edf5ff;--ice:#78e9ed;--amber:#f6bc72;--violet:#a799f5;--radius:12px}
*{box-sizing:border-box}html{background:var(--base);scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 30% -18%,#1a294b 0%,transparent 42%),var(--base);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:13px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid #8be9ec;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}a{color:#88e8ec}a:hover{color:#fff}.app{max-width:1600px;margin:auto;padding:0 28px}.topbar{height:62px;border-bottom:1px solid rgba(145,184,215,.18);display:flex;align-items:center;justify-content:space-between}.brandmark,.topbar-right{display:flex;align-items:center;gap:15px}.brand-icon{color:var(--ice);font-size:24px;line-height:1}.brand-title{font-size:10px;font-weight:800;letter-spacing:.23em}.brand-dot{color:#5c6b88;margin:0 6px}.seed-tag,.chapter-tag{border:1px solid #2a3855;border-radius:4px;color:#91a7c3;letter-spacing:.12em;font-size:9px;padding:8px 10px;font-weight:750}.chapter-tag{color:var(--ice);border-color:#245c69}.story-head{padding:27px 0 25px}.eyebrow{display:flex;align-items:center;gap:11px;color:#8ab7c9;letter-spacing:.18em;font-size:9px;font-weight:800}.pulse-dot{width:7px;height:7px;border-radius:100%;background:#7fe4dc;box-shadow:0 0 13px #52f3ee}.eyebrow-rule{height:1px;width:34px;background:#62788e}.story-head h1{margin:7px 0 5px;letter-spacing:-.058em;font-size:clamp(34px,3.7vw,54px);font-weight:620;line-height:1.08}.story-head h1 em{font-weight:420;color:var(--ice);font-style:normal}.story-head p{color:#a0b1c9;font-size:12px;margin:10px 0 0;letter-spacing:.018em}.story-head p strong{font-weight:560;color:#e3f4fc}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:16px;align-items:start}.scene-shell{min-width:0}.viewport{height:clamp(385px,47.5vw,580px);max-height:calc(100vh - 255px);min-height:340px;position:relative;overflow:hidden;border:1px solid #293b52;border-radius:10px;background:radial-gradient(ellipse at 55% 35%,#173b56 0,#0a1a32 36%,#050f22 75%,#050c1b);isolation:isolate}#stage{width:100%;height:100%;display:block;touch-action:none;cursor:grab}#stage:active{cursor:grabbing}.scene-gradient{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(3,11,25,.37),transparent 23%,transparent 80%,rgba(2,10,23,.25)),linear-gradient(0deg,rgba(3,10,22,.85),transparent 20%,transparent 88%,rgba(4,12,28,.35));z-index:1}.scene-top-left,.scene-top-right{position:absolute;top:19px;z-index:2;font-size:9px;letter-spacing:.13em;font-weight:760;display:flex;flex-direction:column;gap:8px}.scene-top-left{left:20px}.scene-top-right{right:20px;align-items:flex-end;color:#7395b3}.scene-kicker{color:#8ce8e9}.stage-type{color:#95a8be}.scene-top-right #playstate{color:#a8f3dc;font-size:9px}.scene-left-guide{position:absolute;left:18px;top:44%;z-index:2;color:#567997;font-weight:700;letter-spacing:.24em;font-size:8px;writing-mode:vertical-rl;display:flex;align-items:center;gap:10px}.line-guide{width:1px;height:35px;background:linear-gradient(#4cd2df,transparent)}.scale-tag{position:absolute;bottom:67px;right:18px;z-index:2;font-size:8px;letter-spacing:.12em;color:#c3d4e7;border:1px solid #3d5873;border-radius:3px;background:#0d2139ad;padding:7px 9px;font-weight:700}.scale-tag span{color:#77a5c8}.camera-tools{position:absolute;top:67px;right:17px;z-index:3;display:flex;flex-direction:column;gap:5px}.camera-tools button{background:#08192bbd;color:#c8e2f3;border:1px solid #35526b;border-radius:5px;min-width:72px;padding:7px;text-align:left;font-size:12px;backdrop-filter:blur(6px)}.camera-tools button:hover,.camera-tools button.selected{color:#80edee;border-color:#57adc0;background:#133348d9}.camera-tools button span{font-size:10px;letter-spacing:.015em;margin-left:6px}.camera-tools #camera-reset{text-align:center;min-width:0}.legend{position:absolute;bottom:17px;left:18px;display:flex;flex-wrap:wrap;z-index:2;gap:16px;font-size:8px;color:#a6c1d8;letter-spacing:.13em;font-weight:700}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:6px;height:6px;border-radius:50%;display:inline-block}.legend .sapphire{background:#83ecf3;box-shadow:0 0 10px #66d4ef}.legend .amber{background:#f4b76b;box-shadow:0 0 10px #ff9f50}.legend .violet{background:#a39aff;box-shadow:0 0 10px #a39aff}.transport{height:65px;background:#0a1526;border:1px solid #25354b;border-top:0;border-radius:0 0 10px 10px;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.transport-left,.transport-right{display:flex;align-items:center;gap:10px}.big-play{background:#76e8e9;color:#061a24;width:38px;height:38px;border:0;border-radius:6px;font-weight:900;font-size:15px}.big-play:hover{background:#b8fbfc}.transport-small{width:33px;height:34px;border:1px solid #31445d;color:#afc9da;background:#12243a;border-radius:5px;font-size:15px}.transport-small:hover{border-color:#62becd}.time-unit{display:flex;flex-direction:column;margin-left:12px;gap:2px}.mini-label{font-size:8px;font-weight:750;color:#66839e;letter-spacing:.13em}.time-unit>span:last-child{font-size:16px;letter-spacing:.02em;font-variant-numeric:tabular-nums}.time-unit small{color:#6f93aa;font-size:11px}.transport-right label{letter-spacing:.12em;font-size:9px;color:#7996b1;font-weight:700}.transport-right span{font-size:10px;color:#d6f3f7;min-width:36px;text-align:right;font-variant-numeric:tabular-nums}input[type=range]{-webkit-appearance:none;appearance:none;background:linear-gradient(90deg,#4897a9,#18334b);height:3px;width:100%;border-radius:5px;cursor:pointer;accent-color:#8af5ea}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;border:2px solid #082132;background:#86f0ec;box-shadow:0 0 0 1px #72c4d3}input[type=range]::-moz-range-thumb{width:11px;height:11px;background:#86f0ec;border-radius:50%;border:2px solid #082132}.transport-right input{width:76px}.signalstrip{margin-top:12px;padding:16px 20px;border:1px solid #293a50;border-radius:8px;background:linear-gradient(100deg,#112136,#08182c);display:flex;justify-content:space-between;align-items:center;gap:25px}.strip-label{font-size:8px;font-weight:800;color:#78c9ce;letter-spacing:.16em;display:block;margin-bottom:5px}.signalstrip strong{font-size:12px;font-weight:590}.signalstrip p{font-size:11px;color:#849cb8;margin:0;max-width:260px;line-height:1.6}.dashboard{background:#0b1527;border:1px solid #25364a;border-radius:10px;max-height:calc(100vh - 220px);min-height:520px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#2b465e #071327}.dashboard::-webkit-scrollbar{width:7px}.dashboard::-webkit-scrollbar-thumb{background:#2b455c;border-radius:7px}.panel-section{padding:17px 17px;border-bottom:1px solid #243449}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:#c5dbe8;font-weight:790;letter-spacing:.13em;margin-bottom:15px}.reading-dot{color:#8fe4ba;font-size:8px;font-weight:750;white-space:nowrap}.tiny-note{color:#6b8199;font-size:8px;white-space:nowrap}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.metric{background:linear-gradient(135deg,#14253a,#111d31);border:1px solid #273c52;border-radius:7px;padding:14px 12px 12px;min-width:0}.metric>span{color:#8ca6bd;font-size:8px;letter-spacing:.085em;display:block;font-weight:800;white-space:nowrap}.metric strong{color:#eafaff;font-size:30px;font-weight:520;display:block;margin:7px 0 0;letter-spacing:-.055em;font-variant-numeric:tabular-nums}.metric:nth-child(2) strong{color:#82e7ef}.metric:nth-child(3) strong{color:#e4d9ff}.metric:nth-child(4) strong{color:#ffcc88}.metric small{font-size:9px;color:#718ba8}.presets{display:flex;gap:6px}.preset{flex:1;min-width:0;background:#101f33;color:#a7b8cd;border:1px solid #34465d;border-radius:5px;padding:10px 3px;font-size:9px;font-weight:800;letter-spacing:.05em}.preset b{font-size:8px;color:#75899f;margin-right:3px}.preset.active{background:#1a4652;border-color:#63d6dc;color:#b1fcfc}.preset.active b{color:#94e6e7}.controls-head{padding-bottom:7px}.controls-grid{display:grid;grid-template-columns:1fr;gap:16px}.control{min-width:0}.control-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:12px}.control-label label{font-size:11px;color:#cfdae7}.control-label output{font-size:11px;color:#87e9e7;font-variant-numeric:tabular-nums}.control input{display:block}.control small{display:block;margin-top:7px;color:#657e98;font-size:8px;letter-spacing:.08em}.switches .section-head{margin-bottom:9px}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:8px 0}.toggle-row label{color:#a2b5c7;font-size:10px;display:flex;align-items:center;gap:6px;white-space:nowrap}.toggle-row input{accent-color:#67dbe2;width:13px;height:13px}select{background:#172941;border:1px solid #355069;color:#bce7ec;border-radius:4px;padding:3px;font-size:10px}.biology{border-bottom:1px solid #29384a;padding:0 17px}.biology>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:18px 0;font-size:10px;letter-spacing:.12em;font-weight:800;color:#cff9f8}.biology>summary::-webkit-details-marker{display:none}.biology-icon{font-size:16px;margin-right:6px;color:#89e7e5}.accordion-plus{font-size:17px;color:#a6becb;transition:transform .2s}.biology[open] .accordion-plus{transform:rotate(45deg)}.science-content{font-size:11px;color:#9fb3c8;line-height:1.7;padding-bottom:16px}.science-content h3{font-size:11px;color:#e0ecf7;letter-spacing:.03em;margin:19px 0 7px}.science-content p{margin:4px 0 10px}.science-content strong{color:#d2e9f7}.formula{background:#122a3f;border:1px solid #304658;padding:9px 10px;margin:8px 0;color:#8cdbed;font-size:12px;border-radius:5px;font-family:ui-serif,Georgia,serif;font-style:italic}.validation .section-head{margin-bottom:7px}.textbook{color:#ffd6a4;font-size:8px;border:1px solid #846341;padding:4px;border-radius:3px}.validation-title{color:#b1c5d7;font-size:10px;margin-bottom:12px}.validation-row{display:flex;justify-content:space-between;margin:8px 0;color:#98aec0;font-size:11px}.validation-row b{color:#e2f5f7;font-weight:700;font-variant-numeric:tabular-nums}.validation-row.final-compare{border-top:1px solid #2c3b50;padding-top:11px}.validation-row.final-compare b{color:#84efd6}.validation p{color:#7089a4;font-size:10px;line-height:1.65;margin:12px 0 0}.secondary-metrics{padding-bottom:20px}.secondary-metrics>div:not(.section-head){display:flex;justify-content:space-between;color:#96aac1;font-size:11px;padding:6px 0}.secondary-metrics b{color:#d7e9f8;font-variant-numeric:tabular-nums;font-weight:600}.footer{padding:19px 0 24px;display:flex;gap:12px;justify-content:space-between;color:#647d96;font-size:8px;letter-spacing:.06em;line-height:1.6}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 330px}.app{padding:0 16px}.viewport{height:480px}.dashboard{max-height:none}.signalstrip{flex-wrap:wrap;gap:8px}}
@media(max-width:760px){.app{padding:0 12px}.topbar{height:55px}.brand-title{font-size:9px;letter-spacing:.12em}.brandmark{gap:7px}.topbar-right{gap:4px}.seed-tag,.chapter-tag{font-size:7px;letter-spacing:.02em;padding:6px}.story-head{padding:25px 3px 20px}.story-head h1{font-size:40px}.story-head p{line-height:1.6}.eyebrow{font-size:8px;letter-spacing:.08em;gap:7px}.eyebrow-rule{width:16px}.workspace{grid-template-columns:1fr;gap:12px}.viewport{height:490px;max-height:none;min-height:360px}.scene-left-guide{display:none}.dashboard{max-height:none;min-height:0;overflow:visible}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{padding:12px 9px}.metric>span{font-size:7px;white-space:normal;min-height:18px}.metric strong{font-size:24px}.metric small{font-size:8px}.controls-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.panel-section{padding:16px}.signalstrip{padding:14px}.footer{flex-direction:column;gap:6px;text-align:center}}
@media(max-width:450px){.topbar-right .chapter-tag{display:none}.story-head h1{font-size:37px}.story-head p{font-size:11px}.viewport{height:390px;min-height:390px}.scene-top-left,.scene-top-right{font-size:8px;top:14px}.scene-top-left{left:13px}.scene-top-right{right:13px}.stage-type{font-size:7px}.camera-tools{right:10px;top:59px}.camera-tools button{min-width:44px;padding:6px;font-size:13px;text-align:center}.camera-tools button span{display:none}.scale-tag{right:10px;bottom:54px;font-size:7px}.legend{gap:9px;left:11px;bottom:14px;font-size:7px;max-width:310px}.transport{padding:0 8px}.transport-left,.transport-right{gap:5px}.time-unit{margin-left:5px}.transport-right input{width:54px}.transport-right label{font-size:8px}.metric-grid{grid-template-columns:repeat(2,1fr)}.metric{padding:14px 12px}.metric strong{font-size:29px}.metric>span{min-height:auto;font-size:8px}.metric small{font-size:9px}.controls-grid{grid-template-columns:1fr}.control-label label{font-size:11px}.signalstrip p{font-size:10px}}
html.embed .topbar,html.embed .story-head,html.embed .footer,html.embed .signalstrip{display:none}html.embed .app{padding:8px;max-width:none}html.embed .workspace{margin:0}html.embed .viewport{height:calc(100vh - 90px);max-height:none}html.embed .dashboard{max-height:calc(100vh - 16px)}
@media(max-width:760px){html.embed .viewport{height:55vh;min-height:300px}html.embed .dashboard{max-height:none}}
@media(prefers-reduced-motion:reduce){.accordion-plus{transition:none}}
