:root{color-scheme:dark;--bg:#0d1718;--panel:#142322;--line:#2e4140;--ink:#e5e9d7;--muted:#9aaea6;--accent:#d8e59a;--cyan:#67cbd2;--amber:#e8b46e;font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,select,input{font:inherit}button,select{color:var(--ink);background:#203230;border:1px solid #425552;border-radius:5px;padding:8px 11px;cursor:pointer}button:hover,select:hover{border-color:var(--accent);background:#2a4039}button:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button.active,button[aria-pressed=true]{background:var(--accent);color:#14231e;border-color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}header{height:85px;display:flex;align-items:center;gap:24px;padding:0 24px;border-bottom:1px solid var(--line);background:#101e1d}.brand{display:flex;align-items:center;gap:10px;min-width:205px}.seal{height:38px;width:38px;border:1px solid #b9c993;color:var(--accent);display:grid;place-items:center;font-size:23px;border-radius:50%}.brand b{font-size:14px;letter-spacing:.04em}.brand small{display:block;font-size:9px;letter-spacing:.18em;color:var(--muted);margin-top:3px}.headtitle{border-left:1px solid var(--line);padding-left:23px;flex:1}.headtitle h1{font-size:25px;font-weight:550;letter-spacing:-.035em;margin:0}.headtitle p{margin:1px 0;color:var(--muted);font-size:12px}.headright{display:flex;gap:15px;align-items:center}.live{font-size:10px;letter-spacing:.15em;color:#b9d8a3;white-space:nowrap}.live i,.marker i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#b4dc89;box-shadow:0 0 10px #b4dc8977;margin-right:5px}#full{font-size:19px;padding:5px 10px}main{max-width:1800px;margin:auto;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}.stage{position:relative;height:clamp(440px,60vh,700px);border:1px solid #304843;border-radius:9px;overflow:hidden;background:#1b3330;isolation:isolate}.stage canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.stageTop{position:absolute;left:20px;top:20px;pointer-events:none;text-shadow:0 2px 8px #0b1817}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:700;color:#a7bdb1}.stageTitle{font-family:Georgia,serif;font-size:clamp(23px,3vw,37px);letter-spacing:-.035em;color:#f0edd4;margin-top:5px}.stageSub{font-size:12px;color:#c0cfc0}.viewtools{position:absolute;right:14px;top:15px;display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:48%}.viewtools button{background:#142522dd;padding:6px 9px;font-size:11px}.viewtools button.active{background:#d7e29b;color:#17251d}.stagebottom{position:absolute;left:17px;right:14px;bottom:12px;display:flex;justify-content:space-between;align-items:center;pointer-events:none;color:#bac9bb;font-size:11px}.zoom{pointer-events:auto;display:flex;gap:5px}.zoom button{font-size:18px;line-height:1;padding:7px 12px}.scenelegend{position:absolute;left:17px;bottom:47px;display:flex;gap:13px;flex-wrap:wrap;background:#10221fce;border:1px solid #47615a80;padding:8px 10px;border-radius:5px;font-size:10px;color:#d1ddd0;pointer-events:none}.scenelegend i,.charthead i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px}.blue,.lineA{background:#67cbd2}.green,.lineB{background:#b8d485}.amber{background:#e8b46e}.marker{position:absolute;transform:translate(-50%,-50%);font-size:10px;font-weight:700;letter-spacing:.06em;white-space:nowrap;z-index:2;padding:5px 8px;background:#162926e8;border:1px solid #a8be97;color:#eff5d7;box-shadow:0 3px 8px #0005}.marker span{font-weight:500;color:#c0c9b4}.marker i{width:6px;height:6px}.marker.off i{background:#8d9a94;box-shadow:none}.marker.drain{border-color:#d4a46b}.marker.drain i{background:#d4a46b}.control,.telemetry,.fieldnotes{border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:17px}.control{min-height:clamp(440px,60vh,700px);display:flex;flex-direction:column}.sectionhead,.telehead{display:flex;justify-content:space-between;align-items:center;gap:8px}h2{font-size:18px;font-weight:580;margin:3px 0 0;letter-spacing:-.02em}#clock{font-size:10px;font-variant-numeric:tabular-nums;color:var(--accent);white-space:nowrap}.transport{display:flex;gap:6px;margin:14px 0 12px}.transport button{flex:1;font-size:12px;padding:8px 6px}.transport label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.transport select{padding:7px 5px}.tabs{display:flex;border-bottom:1px solid var(--line);gap:5px;margin-bottom:13px}.tabs button{flex:1;background:none;border:none;border-radius:0;padding:7px 3px 9px;color:var(--muted);font-size:12px;border-bottom:2px solid transparent}.tabs button.active{color:var(--accent);border-color:var(--accent)}.panel[hidden]{display:none}.subhead{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.12em;font-weight:700;color:#a8b9a8;margin:12px 0 8px}.state{color:var(--accent)}.param{margin:9px 0 12px}.param label{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;color:#dce4d4}.param output{font-variant-numeric:tabular-nums;font-weight:650;color:var(--accent)}.param input{width:100%;height:15px;margin:3px 0 0;accent-color:#b4cf91;cursor:pointer}.param small{font-size:10px;color:var(--muted)}.switches{display:flex;gap:7px}.switches button{flex:1;font-size:11px;display:flex;justify-content:space-between;gap:4px;padding:8px}.switches b{font-weight:650}.telemetry{min-height:245px}.telehead #status{font-size:11px;color:var(--accent);text-align:right}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}.metric{border-left:1px solid #40514a;padding-left:10px;min-width:0}.metric small{display:block;color:var(--muted);font-size:10px;letter-spacing:.04em}.metric strong{display:block;font-size:clamp(17px,2.4vw,27px);line-height:1.2;font-weight:550;letter-spacing:-.04em;font-variant-numeric:tabular-nums;white-space:nowrap;margin:4px 0}.metric strong span{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}.meter{height:3px;background:#35443e;margin:4px 0 5px;overflow:hidden;border-radius:4px}.meter i{display:block;height:100%;background:var(--cyan);width:0}.metric:nth-child(2) .meter i{background:#b8d485}.chartwrap{padding-top:9px;border-top:1px solid var(--line)}.charthead{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;letter-spacing:.08em}#chart{width:100%;height:105px;display:block;margin-top:2px}.balance{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.fieldnotes{min-height:245px}.fieldnotes p,.panel p{font-size:12px;color:#bbc9bd;line-height:1.65}.depthkey{display:grid;gap:5px;margin:14px 0}.depthkey span{font-size:11px;color:#d1dba8;display:flex;justify-content:space-between;border-bottom:1px solid #30423d;padding-bottom:4px}.depthkey b{font-weight:400;color:var(--muted)}.footerline{font-size:9px;color:#859d91;letter-spacing:.09em;margin-top:12px}.trial{width:100%;text-align:left;display:block;margin:9px 0;padding:12px;background:#1b302c}.trial b{display:block;font-size:13px;color:var(--accent);margin-bottom:3px}.trial span{font-size:11px;color:#c2d2c2;display:block;line-height:1.5}.trialstatus{margin-top:14px;border-left:3px solid var(--accent);padding:10px 12px;background:#23342a;font-size:12px;color:#d8e5bc}.panel h3{font-size:14px;margin:13px 0 3px;color:var(--accent)}.panel a{color:var(--accent);font-size:12px}#error{position:absolute;inset:30% 10% auto;padding:20px;background:#172521;border:1px solid var(--amber);z-index:4}#error[hidden]{display:none}@media(max-width:1000px){main{grid-template-columns:minmax(0,1fr) 310px}.stage{height:560px}.control{min-height:560px}.viewtools{top:auto;bottom:78px;max-width:90%}}@media(max-width:740px){header{height:auto;min-height:76px;padding:12px;gap:10px}.brand{min-width:0}.brand b{font-size:11px}.brand small{display:none}.seal{width:29px;height:29px;font-size:18px}.headtitle{padding-left:10px}.headtitle h1{font-size:19px}.headtitle p{font-size:10px}.live{display:none}main{display:flex;flex-direction:column;padding:8px;gap:9px}.stage,.control,.telemetry,.fieldnotes{width:100%}.stage{height:460px}.control{min-height:0;order:2}.telemetry{order:1}.fieldnotes{order:3}.stageTop{top:12px;left:12px}.stageSub{font-size:10px}.scenelegend{gap:7px;font-size:9px;left:9px;bottom:45px}.stagebottom{left:9px;right:9px;font-size:10px}.metrics{gap:5px}.metric{padding-left:6px}.metric small{font-size:9px}.viewtools{right:8px;bottom:78px}.marker{font-size:9px;padding:4px 6px}.control,.telemetry,.fieldnotes{padding:13px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(min-width:1001px){.stage{height:clamp(580px,65vh,720px)}.control{min-height:clamp(580px,65vh,720px)}.param{margin:5px 0 7px}.param small{display:block;line-height:1.05}.subhead{margin:9px 0 5px}.transport{margin:10px 0 8px}.tabs{margin-bottom:7px}.control{padding:15px}.control .param input{margin:1px 0 0;height:13px}.stageTitle{font-size:34px}}

#pumpState{font-size:9px;letter-spacing:.1em;padding:3px 6px;line-height:1.1;border-radius:3px}#pumpState[aria-pressed=false]{color:#aab9ad}body.expanded .stage{position:fixed;inset:0;z-index:20;width:100vw;height:100dvh;border-radius:0}body.expanded header #full{position:fixed;right:15px;top:72px;z-index:21;background:#1e332e}body.expanded .viewtools{right:15px;top:15px;bottom:auto}