:root {
  color-scheme:light dark;
  --bg:#fff; --ink:#142d40; --muted:#526574; --rule:#b7c4cd; --grid:#dce5ea; --wash:#f1f5f7;
  --temp:#af5025; --dew:#147873; --humidity:#7152a1; --pressure:#236b9d; --rain:#246db2; --solar:#936000; --wind:#207565;
  font:15px/1.4 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}
@media(prefers-color-scheme:dark){:root{
  --bg:#0e1926; --ink:#edf4f8; --muted:#adc0ce; --rule:#3d5163; --grid:#293c4f; --wash:#1d3042;
  --temp:#ffaf81; --dew:#68d5c6; --humidity:#c7aff5; --pressure:#8cc5ff; --rain:#79bcff; --solar:#e9c674; --wind:#78cfb6;
}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}
weather-station,weather-plot{display:block}main{max-width:1660px;margin:auto;padding:10px clamp(14px,2vw,30px) clamp(14px,2vw,30px)}
header,.row,.values,.time,.history,footer{display:flex;align-items:center}
header,.row,.time,footer{justify-content:space-between}header{padding-bottom:6px;border-bottom:1px solid var(--rule)}
h1{margin:0;font-size:clamp(20px,2vw,26px);letter-spacing:-.055em;line-height:1.06}
.time,footer{color:var(--muted)}
button{font:inherit;color:var(--ink);background:transparent;cursor:pointer;border:1px solid var(--rule);border-radius:5px;padding:5px 10px}
button:disabled{opacity:.55;cursor:default}.units{display:flex;gap:2px;border:1px solid var(--rule);border-radius:7px;padding:3px}
.units button{font-size:13px;border:0}.units [aria-pressed=true]{color:var(--bg);background:var(--ink)}
.time{gap:6px;flex-wrap:wrap;font-size:13px;margin:7px 0}.time strong{color:var(--ink)}
.charts{touch-action:pan-y;cursor:grab;user-select:none}.charts:active{cursor:grabbing}
weather-plot{border-top:1px solid var(--rule);padding:7px 0 4px}
.row{gap:8px;min-height:28px}h2{font-size:15px;margin:0;letter-spacing:-.015em}
.values{gap:15px;flex-wrap:wrap}.key{font-size:12px;color:var(--muted);white-space:nowrap}.key b{font-size:16px;margin-left:3px;color:var(--ink);font-variant-numeric:tabular-nums}
.swatch{display:inline-block;width:14px;border-top:2px solid var(--trace);vertical-align:middle;margin-right:5px}
svg.chart{display:block;width:100%;height:clamp(83px,11vh,150px)}.multi svg.chart{height:clamp(100px,13.5vh,180px)}
.axis-text{font:10px ui-monospace,SFMono-Regular,monospace}.axis{display:flex;justify-content:space-between;margin:1px 38px 10px;color:var(--muted);font:11px ui-monospace,monospace}
.history{gap:12px}.history input{flex:1;min-width:0;accent-color:var(--pressure);cursor:ew-resize}
.history button,.history span{font-size:13px}.history span{color:var(--muted)}footer{gap:8px;flex-wrap:wrap;margin-top:16px;font-size:12px}a{color:inherit}
.notice{font-size:13px;color:var(--muted)}button:focus-visible,input:focus-visible,.charts:focus-visible{outline:2px solid var(--pressure);outline-offset:2px}
@media(max-width:650px){main{padding:8px 10px 14px}.units button{font-size:12px;padding:5px 7px}
.time{font-size:11px}.row{flex-wrap:wrap;gap:2px}.multi h2{width:100%}.values{gap:9px}.key{font-size:11px}.key b{font-size:13px}.swatch{width:9px;margin-right:3px}h2{font-size:14px}
svg.chart{height:clamp(64px,10vh,100px)}.multi svg.chart{height:clamp(88px,13vh,130px)}.axis{font-size:10px;margin-inline:30px}.axis span:nth-child(even){display:none}.history{gap:7px}.history button{font-size:12px}footer{font-size:11px}}
main{--plot-margin:38px}
.days{display:flex;margin-inline:var(--plot-margin);font-size:12px;color:var(--ink)}
.days span{min-width:0;overflow:hidden;white-space:nowrap;line-height:23px;padding-left:5px;background:var(--wash)}
.days span+span{border-left:1.5px solid var(--muted)}
.days span:nth-child(even){background:var(--bg)}
.charts{position:relative;cursor:crosshair}
.midnight{stroke:var(--muted);stroke-width:1.4}
.inspection-line{stroke:var(--ink);stroke-width:1.2;stroke-dasharray:4 2}
.intersection{stroke:var(--bg);stroke-width:1.4}
.inspection{position:absolute;z-index:1;pointer-events:none;background:var(--bg);border:1px solid var(--rule);border-radius:6px;padding:10px 12px;box-shadow:0 3px 14px #10233522;font-size:12px}
.inspection dl,.inspection p{margin:7px 0 0}.inspection dl div{display:flex;justify-content:space-between;gap:8px;line-height:1.65}.inspection dt{color:var(--muted)}.inspection dt i{display:inline-block;width:8px;height:2px;margin:0 5px 3px 0}.inspection dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:650px){main{--plot-margin:31px}}
.inspection dd{text-align:right}
