:root{color-scheme:dark;--bg:#071118;--panel:#0d1b24;--panel2:#10232b;--line:rgba(167,211,206,.13);--text:#e7f2eb;--muted:#7e9a9c;--bright:#a8efd2;--accent:#88d8b4;--amber:#ffc17d;--cyan:#79e5e8;--pink:#dfa7e1;--unit:8px;font-family:Inter,"Segoe UI",Arial,Helvetica,sans-serif;font-synthesis:none;font-weight:400}
*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;background:var(--bg);color:var(--text)}button,input{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--bright);outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}body{overflow:hidden}#app{height:100dvh;min-height:575px;display:flex;flex-direction:column;overflow:hidden}
.topbar{height:70px;min-height:70px;background:linear-gradient(90deg,#0b1820 0%,#0b1a23 55%,#0b1920 100%);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:16px}.brand{font-weight:800;letter-spacing:2px;font-size:13px;display:flex;gap:11px;align-items:center;white-space:nowrap}.brand-mark{width:30px;height:30px;border:1px solid #70dfb4;border-radius:7px;color:#9af0c6;display:grid;place-items:center;font-size:24px;box-shadow:0 0 18px #2e876333}.muted{color:#547a7c;font-weight:500}.topbar-center{font-size:10px;font-weight:800;letter-spacing:2.2px;color:#a6c4c3;display:flex;gap:11px;align-items:center}.live-dot,.status-dot{display:inline-block;width:6px;height:6px;background:#9ef4c6;border-radius:100%;box-shadow:0 0 0 4px #9af0c522,0 0 14px #7bffb8}.edition{color:#557477}.top-actions{display:flex;align-items:center;gap:15px}.chip{padding:8px 10px;font-size:9px;letter-spacing:1.1px;font-weight:800;border:1px solid #28423e;color:#97b7ae;border-radius:4px}.top-info{background:none;border:none;letter-spacing:1.5px;font-size:10px;color:#b1e5d3;font-weight:800;padding:12px 6px}.top-info span{padding-left:6px}
.dashboard{flex:1;display:grid;min-height:0;grid-template-columns:minmax(252px,274px) minmax(0,1fr) minmax(252px,284px);width:100%;background:#071118}.panel{background:#0b1921;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#345457 transparent}.controls{padding:26px 21px 18px 25px;border-right:1px solid var(--line)}.telemetry{border-left:1px solid var(--line);padding:26px 21px 18px}.panel-eyebrow{color:#91a9a9;font-size:9px;letter-spacing:2px;font-weight:800;display:flex;justify-content:space-between;gap:8px}.accent{color:#7ccea8}.controls h1{font-size:26px;letter-spacing:-1.1px;font-weight:820;line-height:1.05;margin:15px 0 11px}.controls h1 em{font-style:normal;color:var(--bright)}.subtitle{font-size:11.5px;line-height:1.7;color:#92aeb0;margin:0;max-width:250px}.divider{height:1px;background:var(--line);margin:21px 0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 20px}.section-head h2{font-size:10px;letter-spacing:1.5px;font-weight:800;margin:0;color:#d0e0de}.section-dim{font:700 9px/1.5 ui-monospace,"Consolas",monospace;letter-spacing:1px;color:#587d81}.second{margin-top:22px}.control-list{display:flex;flex-direction:column;gap:17px}.control-title{display:flex;align-items:baseline;justify-content:space-between;gap:4px;font-size:11px}.control-title label{color:#a8c2c1}.control-title output{font:700 11px ui-monospace,Consolas,monospace;color:#aaf0cd;white-space:nowrap}input[type=range]{display:block;appearance:none;-webkit-appearance:none;width:100%;background:transparent;margin:11px 0 0;height:14px;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:10px;background:linear-gradient(90deg,#4ea78e var(--fill,50%),#2b4650 var(--fill,50%))}input[type=range]::-moz-range-track{height:3px;background:#355357;border-radius:10px}input[type=range]::-webkit-slider-thumb{appearance:none;background:#c2ffe2;border:3px solid #327b6e;width:14px;height:14px;border-radius:50%;margin-top:-5.5px;box-shadow:0 0 12px #5df0ac44}input[type=range]::-moz-range-thumb{background:#c2ffe2;border:3px solid #327b6e;width:10px;height:10px;border-radius:50%}.range-notes{display:flex;justify-content:space-between;font-size:9px;color:#57777a;margin-top:1px}.preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.preset{min-height:58px;padding:8px 3px;background:#112731;border:1px solid #254047;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px;color:#b2c5c5}.preset.active,.preset:hover{border-color:#6dd5a9;background:#173c3b;color:#d5ffe7}.preset-icon{font-size:20px;color:#9ee5c3;line-height:1}.sidebar-foot{margin-top:25px;color:#607b7e;font-size:8px;letter-spacing:1.3px;font-weight:800;display:flex;justify-content:space-between;gap:8px}
.viewer{display:flex;flex-direction:column;min-width:0;min-height:0;background:#08141c;position:relative}.stage{flex:1;min-height:300px;position:relative;overflow:hidden;background:radial-gradient(circle at 54% 45%,#14333a 0,#07131b 61%,#060c14 100%)}#scene-canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#06131988 0%,transparent 24%,transparent 75%,#07151c70 100%),radial-gradient(ellipse at 50% 46%,transparent 40%,#03091170 100%)}#loading{position:absolute;z-index:4;top:48%;left:50%;transform:translate(-50%,-50%);padding:15px 20px;background:#0b1e26dd;border:1px solid #39665d;border-radius:5px;color:#c1e4d9;font-size:11px;letter-spacing:.5px;display:flex;align-items:center;gap:11px;white-space:nowrap}.spinner{height:15px;width:15px;border:2px solid #315a52;border-top-color:#b9eedd;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.stage-head{position:absolute;z-index:2;top:21px;left:22px;right:22px;display:flex;justify-content:space-between;pointer-events:none}.mono{font:700 9px/1.5 ui-monospace,Consolas,monospace;letter-spacing:1.4px}.dot-label{color:#c5e6d8}.status-dot{width:5px;height:5px;margin-right:7px}.stage-index{color:#637b81}.stage-label{position:absolute;z-index:2;color:#d8f6e9;pointer-events:none;font-size:10px;letter-spacing:1px;font-weight:800;text-shadow:0 2px 12px #000;line-height:1.4;display:flex;gap:9px;align-items:flex-start}.stage-label small{font-size:9px;letter-spacing:.1px;color:#8baab1;font-weight:500}.label-line{display:inline-block;width:21px;height:1px;background:#b1eacf;margin-top:7px}.moss-label{top:27%;left:7%}.cell-label{top:18%;right:5%}.soil-label{top:63%;left:5%}.stage-bottom{position:absolute;z-index:2;bottom:22px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:flex-end;gap:15px;pointer-events:none}.legend{display:flex;flex-wrap:wrap;gap:10px 15px;color:#9fc0bc;font:600 10px/1.2 ui-monospace,Consolas,monospace}.legend span{white-space:nowrap}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:100%;margin-right:6px;box-shadow:0 0 7px currentColor}.ch4{background:#f8af63;color:#f8af63}.o2{background:#69e0e8;color:#69e0e8}.co2{background:#e6a7e7;color:#e6a7e7}.active{background:#e6f5a9;color:#e6f5a9}.water{background:#4cb4dc;color:#4cb4dc}.view-hint{font:700 8px/1.5 ui-monospace,Consolas,monospace;color:#65858a;white-space:nowrap}.stage-tools{position:absolute;z-index:3;right:16px;top:53%;display:flex;flex-direction:column;gap:6px}.stage-tools button{height:32px;width:32px;background:#102731bb;border:1px solid #34504d;border-radius:5px;color:#b8e8dc;font-size:19px}.stage-tools button:hover{background:#2b5c51}.timeline{border-top:1px solid #28403d;background:#0c1a23;min-height:76px;display:flex;align-items:center;padding:12px 18px;gap:16px}.transport{display:flex;gap:5px;align-items:center}.transport button{border:1px solid #30504b;border-radius:5px;height:35px;min-width:34px;background:#0f2930;font-size:16px;color:#bbebdc}.transport .transport-primary{background:#74d2ab;color:#092720;border-color:#74d2ab;font-weight:900;font-size:17px}.timeline-label{display:flex;flex-direction:column;gap:4px;min-width:115px}.timeline-kicker{font-size:8px;letter-spacing:1px;color:#71908f;font-weight:700}#elapsed{font:700 12px ui-monospace,Consolas,monospace;color:#dbf9e9}.speed-controls{display:flex;gap:3px;margin-left:auto}.speed-controls button,.quality button{font:700 10px ui-monospace,Consolas,monospace;border:1px solid transparent;background:#0e242c;padding:8px;color:#789b9e;border-radius:3px}.speed-controls button.selected,.quality button.selected{border-color:#569f85;color:#b2f6d6;background:#1a3e3c}.icon-button{font-size:21px;background:none;border:1px solid #355953;color:#b5d6ca;border-radius:4px;width:33px;height:35px}.viewer-footer{height:27px;min-height:27px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 18px;background:#0b1820;border-top:1px solid #24373a;font:700 8px ui-monospace,Consolas,monospace;letter-spacing:1px;color:#577f82}
.reading-hero{margin:22px 0 17px;padding:16px 15px;background:linear-gradient(135deg,#153333,#0c232c 75%);border:1px solid #2d544b;border-radius:7px}.kicker{font-size:9px;letter-spacing:1.6px;color:#a0d0be;font-weight:800}.big-metric{display:flex;align-items:baseline;gap:5px;margin:10px 0}#met-emission{font-size:33px;font-weight:760;letter-spacing:-1px;color:#e5fff0;font-variant-numeric:tabular-nums}.metric-unit{font-size:10px;color:#95b4ad}.metric-sub{font-size:9px;color:#719594}.mini-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mini{min-height:96px;padding:13px 10px;background:#10232c;border:1px solid #233940;border-radius:5px;display:flex;flex-direction:column;gap:6px}.mini>span{font-size:8px;line-height:1.35;letter-spacing:.75px;color:#98afb2;font-weight:700}.mini strong{font:750 21px ui-monospace,Consolas,monospace;color:#d6f6e5}.mini small{font-size:8px;line-height:1.4;color:#62888a}.chart-wrap{height:177px;width:100%;background:#0b2029;border:1px solid #213b3e;border-radius:5px;overflow:hidden}#profile-chart{display:block;height:100%;width:100%}.chart-note{font-size:9px;line-height:1.45;color:#6c9293;margin:8px 0 0}.toggles{display:grid;grid-template-columns:1fr 1fr;gap:13px 5px}.toggles label{display:flex;align-items:center;gap:6px;font-size:10px;color:#9cb8b5;cursor:pointer;white-space:nowrap}.toggles input{accent-color:#6ed0ab;height:13px;width:13px;margin:0}.toggle-swatch{display:inline-block;height:6px;width:6px;border-radius:50%}.quality{display:flex;align-items:center;justify-content:space-between;margin-top:22px;color:#8eabae;letter-spacing:1px;font-size:9px;font-weight:800;gap:6px}.science-entry{width:100%;margin-top:18px;display:flex;justify-content:space-between;background:#14382f;border:1px solid #43856b;border-radius:4px;padding:13px;color:#b1ffdb;font-size:10px;letter-spacing:1.4px;font-weight:800}.reference-note{margin-top:18px;color:#749a94;font-size:9px;line-height:1.7}.reference-bullet{color:#96f1c3;margin-right:6px}#validation-status{color:#d3efdc}
.biology-backdrop{position:fixed;z-index:18;inset:0;background:#030c11bc;backdrop-filter:blur(6px)}.biology-sheet{position:fixed;z-index:19;top:5vh;left:50%;transform:translateX(-50%);width:min(1020px,94vw);max-height:90vh;overflow:auto;background:#0e2028;border:1px solid #42695f;box-shadow:0 20px 85px #000c;border-radius:8px;padding:28px 36px 26px;color:#d8e7e1;scrollbar-color:#456c69 transparent}.biology-sheet[hidden],.biology-backdrop[hidden]{display:none}.sheet-top{display:flex;justify-content:space-between;font:700 10px ui-monospace,Consolas,monospace;letter-spacing:2px;color:#8dbaae}.sheet-top button{background:#14373c;border:1px solid #2c5754;border-radius:5px;font-size:14px;width:29px;height:29px}.biology-sheet h2{font-size:28px;line-height:1.1;letter-spacing:-1px;margin:16px 0 13px}.biology-sheet h2 em{font-style:normal;color:#9ce4bd}.sheet-lead{max-width:850px;font-size:14px;line-height:1.75;color:#bfd5cb}.science-cols{display:grid;grid-template-columns:1fr 1fr;gap:40px}.science-cols h3{font-size:11px;letter-spacing:1.6px;color:#a3eac8;margin:19px 0 9px}.science-cols p{font-size:12px;color:#9db8b4;line-height:1.75;margin:6px 0}.science-cols a{color:#a2e5c6;line-height:2}.equation{color:#f1efdd;font:500 13px/1.8 ui-monospace,Consolas,monospace;padding:10px 12px;border-left:2px solid #72caa6;background:#173039;border-radius:3px;margin-bottom:8px;overflow-wrap:anywhere}.small-eq{font-size:11px}.formula{color:#d5efdf;font-family:Consolas,monospace}.validation-box{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin:15px 0}.validation-box div{background:#142e33;padding:12px 9px;border-radius:5px;border:1px solid #2b4d4b;display:flex;gap:8px;flex-direction:column}.validation-box span{color:#8bb2ac;font-size:8px;letter-spacing:.5px}.validation-box b{font:700 14px ui-monospace,Consolas,monospace;color:#d6f7e3}.legal{color:#758e8d;font-size:10px;border-top:1px solid #2d4748;padding-top:14px;margin-top:24px}
body.embed #topbar{display:none}body.embed .dashboard{grid-template-columns:0 minmax(0,1fr) 0}body.embed .panel{display:none}body.embed #app{min-height:0}body.embed .viewer-footer{display:none}
@media(max-width:1150px){.dashboard{grid-template-columns:244px minmax(0,1fr) 252px}.controls{padding:22px 14px}.telemetry{padding:22px 13px}.controls h1{font-size:23px}.timeline{gap:8px;padding:8px}.speed-controls button{padding:7px 5px}.view-hint{display:none}.stage-label{font-size:9px}}
@media(max-width:850px){body{overflow:auto}#app{height:auto;min-height:100dvh;overflow:visible}.topbar{height:62px;min-height:62px;padding:0 17px}.topbar-center,.chip{display:none}.dashboard{display:flex;flex-direction:column}.viewer{order:0;min-height:485px}.stage{height:min(62vh,540px);min-height:365px;flex:none}.controls{order:1;border-right:none;border-top:1px solid var(--line);padding:24px}.telemetry{order:2;border-left:none;border-top:1px solid var(--line);padding:24px}.panel{overflow:visible}.control-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:26px}.panel-eyebrow{max-width:800px}.controls h1{font-size:28px}.subtitle{max-width:650px}.mini-metrics{grid-template-columns:repeat(4,1fr)}.chart-wrap{height:190px}.toggles{grid-template-columns:repeat(3,minmax(0,1fr))}.viewer-footer{height:30px}.stage-label{font-size:9px}.stage-tools{top:33%}.science-cols{gap:20px}}
@media(max-width:520px){.topbar{padding:0 12px}.brand{font-size:10px;letter-spacing:1px;gap:6px}.brand-mark{width:26px;height:26px;font-size:19px}.top-info{font-size:9px;letter-spacing:.3px}.dashboard{min-width:0}.viewer{min-height:0}.stage{height:390px;min-height:390px}.stage-head{top:16px;left:13px;right:13px}.moss-label{left:3%;top:25%}.cell-label{right:3%;top:18%}.soil-label{left:4%;top:64%}.stage-label{font-size:8px;letter-spacing:.3px}.stage-label small{font-size:7px}.label-line{width:11px}.stage-tools{right:10px;top:43%}.stage-tools button{width:29px;height:29px}.stage-bottom{left:12px;right:12px;bottom:13px}.legend{gap:6px 12px;font-size:8px}.timeline{min-height:68px;padding:8px;gap:7px}.transport button{height:32px;min-width:29px}.timeline-label{min-width:93px}.timeline-kicker{font-size:7px}.speed-controls{gap:0}.speed-controls button{font-size:9px;padding:7px 4px}.icon-button{width:29px;height:32px}.viewer-footer{padding:0 9px;font-size:7px}.controls,.telemetry{padding:20px 17px}.control-list{grid-template-columns:1fr 1fr;gap:20px 16px}.control-title{font-size:10px}.control-title output{font-size:10px}.mini-metrics{grid-template-columns:1fr 1fr}.mini{min-height:86px}.chart-wrap{height:185px}.toggles{grid-template-columns:1fr 1fr}.biology-sheet{top:1.5vh;max-height:97vh;width:97vw;padding:20px 15px}.biology-sheet h2{font-size:23px}.science-cols{grid-template-columns:1fr;gap:4px}.validation-box{grid-template-columns:1fr 1fr 1fr}.validation-box span{font-size:7px}.validation-box b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}*{scroll-behavior:auto!important}}
#loading[hidden]{display:none}
