:root{--bg:#f4f5f1;--surface:#fff;--text:#182b28;--muted:#50605c;--line:#cbd3cf;--accent:#116544;--soft:#e5efe9;--danger:#a12e20;--focus:#1454ad;color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:root[data-theme=dark]{--bg:#14201e;--surface:#1c2d29;--text:#eef4ef;--muted:#b5c5bd;--line:#51675e;--accent:#91d5b0;--soft:#263f32;--danger:#ffb0a2;--focus:#a8cbff;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}header,main,footer{max-width:1240px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid var(--line)}h1{font-size:clamp(1.6rem,3vw,2.4rem);font-weight:650;letter-spacing:-.035em;margin:6px 0 12px}h2{font-size:1.05rem;margin:0 0 8px;font-weight:650}p{margin:0;line-height:1.6}.eyebrow{font-size:.8rem;font-weight:700}.muted{color:var(--muted)}.small{font-size:.85rem}button,select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:5px;min-height:44px;padding:10px 14px}button{cursor:pointer}button:hover{background:var(--soft)}button:disabled{cursor:default;color:var(--muted)}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}label{display:flex;gap:8px;align-items:center;font-size:.9rem}.actions{display:flex;flex-wrap:wrap;gap:10px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.toolbar p{color:var(--muted);font-size:.9rem}#error{border-left:4px solid var(--danger);padding:12px 16px;background:var(--surface);color:var(--danger);margin-bottom:24px}.locations{display:grid;grid-template-columns:1fr;gap:14px}.location{background:var(--surface);border:1px solid var(--line);padding:22px;border-radius:6px}.location-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.location h2{margin:0}.state{font-size:.82rem;color:var(--muted)}.state.live{color:var(--accent)}.reading{font-size:clamp(2rem,4vw,3rem);font-variant-numeric:tabular-nums;letter-spacing:-.06em;margin:20px 0 5px}.reading span{font-size:1.1rem;letter-spacing:0;color:var(--muted)}.location-bottom{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.85rem;margin-top:18px}.history{margin:28px 0;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:22px}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px;flex-wrap:wrap}#chart{min-height:220px}#chart svg{width:100%;height:auto;display:block}#chart .empty{padding:68px 20px}.clouds{display:grid;grid-template-columns:1fr;gap:20px;padding:0 0 28px;margin-bottom:28px;border-bottom:1px solid var(--line)}.clouds>div{min-width:0}.clouds p{font-size:.95rem}.clouds .small{margin-top:8px;font-size:.85rem}.matched{color:var(--accent)}.problem{color:var(--danger)}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:6px;background:var(--surface)}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:.9rem}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:600;background:var(--bg)}tr:last-child td{border-bottom:0}.empty{text-align:center;color:var(--muted);padding:30px 20px}footer{font-size:.8rem;line-height:1.8;color:var(--muted);padding-top:6px;padding-bottom:30px}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:24px;width:min(620px,calc(100% - 32px));max-height:85dvh}dialog::backdrop{background:#0008}dl{margin:0 0 24px}dt{color:var(--muted);font-size:.85rem;margin-top:16px}dd{margin:4px 0 0;overflow-wrap:anywhere;line-height:1.5}dd.hash{font-family:ui-monospace,monospace;font-size:.85rem}
@media(min-width:600px){.locations{grid-template-columns:repeat(2,1fr)}.location:last-child{grid-column:1/-1}.clouds{grid-template-columns:1fr 1fr}.clouds>div:last-child{grid-column:1/-1}}
@media(min-width:960px){.locations{grid-template-columns:repeat(3,1fr)}.location:last-child{grid-column:auto}.clouds{grid-template-columns:1fr 1fr 1.6fr}.clouds>div:last-child{grid-column:auto}header,main,footer{padding-left:36px;padding-right:36px}}
@media(max-width:599px){header,main,footer{padding:20px 16px}header{flex-wrap:wrap}.toolbar{align-items:flex-start;flex-direction:column}.history{padding:18px 14px}.section-head .actions{width:100%}label{justify-content:space-between;width:100%}select{flex:1;max-width:210px}.location{padding:20px}footer{padding-top:0}.table-wrap:focus-visible{outline-offset:1px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
