*{box-sizing:border-box}
body{margin:0;background:#f7f8f2;color:#183746;font:16px/1.65 system-ui,sans-serif}
a{color:#286b5b;text-underline-offset:4px}
header,main,footer{max-width:1160px;margin:auto;padding:24px}
header,footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
header{border-bottom:1px solid #d8e3d2}
footer{border-top:1px solid #d8e3d2;font-size:13px;margin-top:32px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font-weight:750;font-size:23px}
.brand img{width:34px}.brand small{font-size:11px;letter-spacing:2px;color:#607b6a}
nav{display:flex;gap:20px;font-size:13px;flex-wrap:wrap}
.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;background:white;padding:10px;z-index:2}
.eyebrow{letter-spacing:1.8px;color:#537567;font-size:11px;font-weight:700;margin:12px 0 8px}
h1{font-size:clamp(29px,4.4vw,48px);line-height:1.15;margin:10px 0 12px}
h2{font-size:18px;margin:0}.lead{color:#45675f;max-width:730px}
.lab{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,305px);grid-template-areas:"scene controls" "plot controls";gap:18px;align-items:start;margin-top:24px}
.scene{grid-area:scene}.controls{grid-area:controls}.plot{grid-area:plot}
.panel{background:#fffef9;border:1px solid #d8e3d2;border-radius:13px;min-width:0;padding:19px}
.panel-title{display:flex;gap:8px 16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.badge{border-radius:20px;background:#edf3e9;color:#426853;font-size:11px;padding:3px 9px}
svg{width:100%;height:auto;display:block}svg text{font:17px system-ui,sans-serif;fill:#4c6c62}
#scene{background:#f3f7ef;border-radius:9px;margin-top:14px}
.gridline{fill:none;stroke:#dfe9db}.centerline,.arc{stroke:#8ba99d;stroke-dasharray:5 6;fill:none}.axis{fill:none;stroke:#6f8e83}
.curve,.reference{fill:none;stroke:#167b66;stroke-width:3}.reference{stroke:#a87835;stroke-dasharray:7 5}.cursor{stroke:#77978c;stroke-width:1}
.readings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0 0}
.estimates{grid-template-columns:repeat(2,minmax(0,1fr))}
.readings div{border-top:1px solid #dde7d9;padding-top:7px}
dt{font-size:11px;color:#506b61}dd{margin:3px 0 0;font-size:clamp(16px,2.2vw,22px);font-weight:680;font-variant-numeric:tabular-nums}
.controls>label:not(.check){display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:14px;font-weight:650;margin-top:18px}
.controls label output{white-space:nowrap;color:#286c57;font-variant-numeric:tabular-nums}
input[type=range]{width:100%;height:44px;margin:0;accent-color:#227b64}
.presets,.actions{display:grid;gap:8px;margin-top:9px}.presets{grid-template-columns:repeat(2,minmax(0,1fr))}.actions{grid-template-columns:1fr 1fr;margin-top:14px}
button{min-height:44px;border:1px solid #bad0bf;border-radius:7px;background:#edf4ea;color:#1c5548;font:inherit;font-size:13px;padding:6px 9px;cursor:pointer}
button.primary{background:#215e50;color:#fff;border-color:#215e50}
button:disabled{opacity:.55;cursor:default}
.check{display:flex;gap:8px;align-items:center;min-height:44px;font-size:13px}
.check input{width:18px;height:18px;accent-color:#227b64}
.hint,.legend,.state{font-size:13px;color:#4f6e63;margin:8px 0 0}.state{min-height:2.7em}
.legend{display:flex;gap:8px 16px;flex-wrap:wrap}.legend span::before{content:"";display:inline-block;width:16px;border-top:3px solid #167b66;margin-right:6px;vertical-align:middle}.legend .reference-key::before{border-top:3px dashed #a87835}
.investigation{margin-top:24px;padding:5px 16px;border-left:3px solid #9fbfa9}
:focus-visible{outline:3px solid #328e75;outline-offset:3px}[hidden]{display:none!important}
@media(max-width:760px){header,main,footer{padding:16px}.lab{grid-template-columns:minmax(0,1fr);grid-template-areas:"scene" "controls" "plot";gap:13px}.panel{padding:14px}.brand small{display:none}.lead{font-size:15px}nav{gap:13px}.readings{gap:6px}dt{font-size:10px}}
