:root{color-scheme:dark;--bg:#0d1210;--panel:#151c18;--panel2:#19221c;--line:#2b3930;--muted:#8e9a8f;--text:#e8eee6;--green:#a8c77d;--green2:#6f9a55;--amber:#d8ad69;--blue:#62b6d2;--gap:8px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #b4d58c;outline-offset:3px}#app{height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 25% 5%,#1b2820 0,#0d1210 52%)}.topbar{height:68px;flex:0 0 68px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #27342c;background:rgba(12,17,14,.9);z-index:4}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-mark{width:34px;height:34px;border:1px solid #53694c;border-radius:10px;display:grid;place-items:center;color:#c3d99a;font-size:26px;line-height:1;background:#1b291f}.eyebrow,.section-kicker{font-size:9px;letter-spacing:1.55px;color:#8e9d8d;font-weight:800}.brand-lockup h1{font-size:15px;line-height:1.15;margin:4px 0 0;font-weight:650;letter-spacing:.15px}.brand-lockup h1 span{color:#71806f;font-weight:400}.topbar-right{display:flex;align-items:center;gap:18px}.live-indicator{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:1px;font-weight:800;color:#b8c6b4}.live-indicator i{width:7px;height:7px;border-radius:50%;background:#7b8c77;box-shadow:0 0 0 3px #273329}.live-indicator.running i{background:#a8cf73;box-shadow:0 0 0 3px #2d432b,0 0 12px #9dcc70}.model-tag{font-size:9px;letter-spacing:1px;color:#829084;border-left:1px solid #344037;padding-left:18px}.model-tag b{color:#b5ca8d}.workspace{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:12px;padding:12px}.stage{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #2a372e;border-radius:14px;background:linear-gradient(145deg,#1c2a21,#151b17 65%,#0c110e);box-shadow:0 14px 48px #0005}.stage #scene-host{position:absolute;inset:0}.stage canvas{display:block;width:100%;height:100%;touch-action:none}.stage-wash{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(6,12,9,.25),transparent 26%,transparent 72%,rgba(6,12,9,.42))}.scene-label{position:absolute;z-index:2;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #46544988;border-radius:6px;background:#111a15b8;backdrop-filter:blur(8px);font-size:9px;letter-spacing:1px;font-weight:800;color:#d2dbce;pointer-events:none}.label-up{top:18px;left:18px}.label-bands{top:18px;right:18px}.label-down{left:18px;bottom:82px;color:#d5c5a1}.label-down span{color:#e0b977;font-size:14px}.label-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.label-dot.rain{background:#71b9d6;box-shadow:0 0 8px #71b9d6}.label-dot.plant{background:#b3cd83;box-shadow:0 0 8px #b3cd83}.scene-hint{position:absolute;top:58px;left:18px;color:#9caa9c;font-size:8px;letter-spacing:1px;pointer-events:none}.scene-hint span{margin:0 4px;color:#65766a}.mouse-icon{font-size:12px}.stage-footer{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;justify-content:space-between;align-items:flex-end;padding:18px 18px 16px;pointer-events:none}.stage-caption{display:flex;flex-direction:column;gap:5px;max-width:75%}.caption-kicker{font-size:8px;letter-spacing:1.5px;color:#9db18e;font-weight:800}.stage-caption strong{font-size:12px;font-weight:600;color:#e2e8dc;text-shadow:0 2px 8px #000}.stage-tools{display:flex;gap:7px;pointer-events:auto}.icon-button{height:34px;min-width:36px;border:1px solid #52604f;background:#142018d9;color:#d7e0d1;border-radius:7px;padding:0 10px;font-size:15px;backdrop-filter:blur(8px);transition:background .2s,border-color .2s}.icon-button:hover{background:#27382b;border-color:#8ea37c}.icon-button small{font-size:8px;letter-spacing:1px}.webgl-error{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;text-align:center;background:#101712e8;color:#e6eee3;padding:24px}.webgl-error[hidden]{display:none}.webgl-error span{max-width:360px;color:#aab6a8;font-size:12px;line-height:1.5}.sidebar{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px;scrollbar-width:thin;scrollbar-color:#465448 transparent}.panel{background:linear-gradient(145deg,#19221c,#141b17);border:1px solid #2b3930;border-radius:11px;padding:14px;box-shadow:0 8px 26px #0002}.intro-panel{padding:16px 16px 14px}.intro-panel h2{font-size:25px;line-height:1.02;letter-spacing:-.8px;margin:10px 0 10px;font-weight:720}.intro-panel h2 em{font-family:Georgia,serif;font-weight:400;color:#b4ce8a}.intro-panel p{font-size:11px;line-height:1.55;color:#aeb9ad;margin:0;max-width:320px}.cause-chain{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #2b392f}.cause-chain div{display:flex;flex-direction:column;gap:3px}.cause-chain span{font-size:8px;letter-spacing:1px;color:#7f9380}.cause-chain b{font-size:10px;color:#dce6d8}.cause-chain i{font-style:normal;color:#829a71;font-size:12px;margin:0 2px 8px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.panel-heading h3{font-size:13px;margin:4px 0 0;font-weight:650}.scale-pill,.textbook-tag{font-size:8px;letter-spacing:1px;font-weight:800;color:#a8c58a;border:1px solid #526749;border-radius:4px;padding:4px 6px}.readout-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.readout{background:#101713;border:1px solid #29372e;border-radius:7px;padding:9px 10px;min-height:64px;display:flex;flex-direction:column;gap:3px}.readout span{font-size:9px;color:#aab7a8}.readout strong{font-size:19px;letter-spacing:-.4px;line-height:1.05;font-weight:650;color:#e3eddb;font-variant-numeric:tabular-nums}.readout small{font-size:8px;color:#758579}.profile-wrap{margin-top:12px;border-top:1px solid #2b3930;padding-top:9px}.profile-head{display:flex;justify-content:space-between;color:#829285;font-size:8px;letter-spacing:.9px;font-weight:800;margin-bottom:5px}.profile-head b{color:#b6cd8e}.profile-wrap svg{display:block;width:100%;height:48px;overflow:visible}.profile-grid{fill:none;stroke:#2a382f;stroke-width:.8;stroke-dasharray:2 4}.profile-area{fill:#8cae68;fill-opacity:.14}.profile-line{fill:none;stroke:#b8d28d;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.text-button{border:0;background:transparent;color:#a8c58a;font-size:9px;letter-spacing:1px;font-weight:800;padding:6px}.text-button:hover{color:#e2edcf}.preset-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:14px}.preset{display:grid;grid-template-columns:16px 1fr;grid-template-rows:auto auto;align-items:center;text-align:left;gap:1px 6px;padding:8px 7px;border:1px solid #2d3b31;border-radius:7px;background:#111813;color:#cbd6c7;min-width:0}.preset.active{border-color:#7e9b69;background:#202c21;box-shadow:inset 0 0 0 1px #78965a33}.preset-swatch{grid-row:1/3;width:13px;height:26px;border-radius:3px;background:repeating-linear-gradient(90deg,#a7bf7c 0 3px,#514a34 3px 6px)}.preset-swatch.arid{background:repeating-linear-gradient(90deg,#87925e 0 2px,#56452e 2px 7px)}.preset-swatch.wet{background:repeating-linear-gradient(90deg,#a7c987 0 5px,#626d42 5px 7px)}.preset b{font-size:9px;font-weight:700;white-space:nowrap}.preset small{font-size:8px;color:#829184}.slider-control{margin:12px 0 10px}.slider-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.slider-label label{font-size:10px;color:#d5dfd2}.slider-label output{font-size:10px;color:#c4d9a2;font-weight:700;font-variant-numeric:tabular-nums}.info{display:inline-grid;place-items:center;width:12px;height:12px;margin-left:3px;border:1px solid #586958;border-radius:50%;font-size:8px;color:#95a58e;font-style:normal}.slider-control input[type=range]{width:100%;height:4px;appearance:none;border-radius:99px;background:linear-gradient(90deg,#79985e,#b2c78a);display:block;margin:0;cursor:pointer}.slider-control input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:#d5e2b9;border:2px solid #526d45;box-shadow:0 1px 5px #0008}.slider-control input[type=range]::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#d5e2b9;border:2px solid #526d45}.range-ends{display:flex;justify-content:space-between;margin-top:5px;color:#718175;font-size:7px;letter-spacing:1px}.speed-control{padding-top:10px;border-top:1px solid #2a382f}.transport-row{display:flex;align-items:center;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid #2b3930}.play-button,.transport-button{height:34px;border-radius:6px;font-size:9px;font-weight:800;letter-spacing:1px}.play-button{flex:1;display:flex;justify-content:center;align-items:center;gap:8px;background:#a8c77d;border:1px solid #b7d68a;color:#142016}.play-button:hover{background:#bad893}.transport-button{padding:0 12px;border:1px solid #435443;background:#202b23;color:#d4dfd0}.transport-button:hover{background:#2a3a2d}.sim-clock{margin-left:auto;display:flex;flex-direction:column;gap:2px;text-align:right}.sim-clock small{font-size:7px;letter-spacing:1px;color:#7f9082}.sim-clock strong{font-size:13px;font-variant-numeric:tabular-nums;color:#d8e2d2}.science-panel{padding:0}.science-panel summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:13px 14px;cursor:pointer}.science-panel summary::-webkit-details-marker{display:none}.science-panel summary>span:first-child{display:flex;flex-direction:column;gap:3px}.science-panel summary b{font-size:13px}.chevron{color:#a6bb8b;font-size:18px;transition:transform .2s}.science-panel[open] .chevron{transform:rotate(180deg)}.science-content{padding:0 14px 14px}.science-lead{font-size:10px;line-height:1.5;color:#aeb9ad;margin:0 0 10px}.equation-block{display:flex;flex-direction:column;gap:7px;background:#101713;border:1px solid #2c3a30;border-radius:7px;padding:9px}.equation-block div{display:flex;flex-direction:column;gap:4px}.equation-block span{font-size:7px;letter-spacing:1.1px;color:#82967e;font-weight:800}.equation-block code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;color:#d4e4c5;white-space:normal;line-height:1.45}.equation-block sub{font-size:7px}.variable-list{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;margin:10px 0 12px}.variable-list div{display:flex;gap:7px;align-items:baseline}.variable-list dt{font-size:9px;font-family:Georgia,serif;color:#c1d99d;min-width:18px}.variable-list dd{font-size:8px;color:#89988b;margin:0}.validation-card{background:#111914;border:1px solid #344536;border-radius:7px;padding:10px;margin-top:8px}.validation-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.validation-head>span:first-child{font-size:7px;letter-spacing:1.1px;font-weight:800;color:#91a48d}.validation-card>b{font-size:10px;font-weight:650}.validation-values{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:9px 0}.validation-values div{display:flex;flex-direction:column;gap:3px}.validation-values small{font-size:7px;color:#819183;letter-spacing:.7px}.validation-values strong{font-size:11px;color:#cce1b0;font-variant-numeric:tabular-nums}.validation-card p,.limitations{font-size:8px;line-height:1.5;color:#859386;margin:0}.limitations{margin-top:10px}.limitations b{color:#bdcbb8}.footnote-panel{padding:11px 13px}.legend-row{display:flex;flex-wrap:wrap;gap:10px;font-size:7px;letter-spacing:.6px;color:#93a091;font-weight:800}.legend-row span{display:flex;align-items:center;gap:4px}.legend-row i{width:7px;height:7px;border-radius:2px;display:inline-block}.legend-plant{background:#9fbd73}.legend-water{background:#5ba9c9}.legend-soil{background:#886a4b}.footnote-panel p{font-size:8px;color:#879487;line-height:1.45;margin:9px 0 6px}.keyboard-note{font-size:7px;color:#68796d;letter-spacing:.2px}.keyboard-note b{color:#a3b68d;margin:0 2px}.embed .topbar{display:none}.embed .workspace{padding:0;gap:0;grid-template-columns:minmax(0,1fr) 340px}.embed .stage{border-radius:0;border:0}.embed .sidebar{border-left:1px solid #2b3930;border-radius:0;padding:10px}.embed .stage-footer{padding-bottom:14px}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 330px}.panel{padding:12px}.intro-panel{padding:14px}.intro-panel h2{font-size:22px}.model-tag{display:none}}
@media(max-width:760px){html,body{overflow:auto}.topbar{height:58px;flex-basis:58px;padding:0 13px}.brand-mark{width:30px;height:30px}.brand-lockup h1{font-size:13px}.eyebrow{font-size:8px}.topbar-right{gap:8px}.workspace{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(300px,43dvh) auto;gap:8px;padding:8px}.stage{min-height:300px;border-radius:10px}.sidebar{overflow:visible;padding:0 0 12px}.scene-label{font-size:7px;padding:6px 7px}.label-up{top:10px;left:10px}.label-bands{top:42px;left:10px;right:auto}.label-down{left:10px;bottom:60px}.scene-hint{top:73px;left:10px;font-size:7px}.stage-footer{padding:12px 10px 10px}.stage-caption strong{font-size:10px}.stage-tools{gap:5px}.icon-button{height:30px;min-width:32px;padding:0 7px}.intro-panel h2{font-size:24px}.panel{padding:13px}.embed .workspace{grid-template-columns:1fr;grid-template-rows:minmax(290px,48dvh) auto;padding:0;gap:0}.embed .sidebar{border-left:0;border-top:1px solid #2b3930;padding:8px}.embed .stage{border-radius:0;min-height:290px}.embed .label-bands{top:42px}}
@media(max-width:390px){.topbar{padding:0 10px}.brand-lockup{gap:8px}.brand-lockup h1{font-size:12px}.live-indicator{font-size:8px}.workspace{padding:6px;gap:6px;grid-template-rows:minmax(285px,42dvh) auto}.scene-label{font-size:6.5px}.readout strong{font-size:18px}.preset{padding:7px 5px;gap:1px 4px}.preset b{font-size:8px}.preset small{font-size:7px}.panel{padding:11px}.intro-panel{padding:13px}.embed .workspace{grid-template-rows:minmax(270px,46dvh) auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
