:root{font-family:system-ui,-apple-system,sans-serif;color:#183631;background:#f3f6f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{background:#133d35;color:white;padding:22px max(24px,calc((100vw - 1240px)/2));display:flex;justify-content:space-between;gap:20px}header a{color:white;text-decoration:none}.brand{font-weight:750}.brand span{font-weight:400;margin-left:16px;color:#bcd6ca}main{max-width:1240px;margin:auto;padding:34px 24px}.heading,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}h1{font-size:42px;letter-spacing:-1.5px;margin:5px 0}h2{font-size:22px;margin:0}p{line-height:1.5;color:#52665f;margin:8px 0}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.5px;color:#477268}button{background:white;border:1px solid #afc2b7;border-radius:7px;padding:10px 16px;font:inherit;color:#183631;cursor:pointer}button:hover{background:#e8f2eb}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #367aa4;outline-offset:3px}.overview{margin:24px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#dce6de;border:1px solid #dce6de;border-radius:12px;overflow:hidden}.overview>div{padding:22px;background:white}.overview strong{font-size:21px}.overview p:last-child{font-size:13px}.map-panel{background:white;border:1px solid #dce6de;border-radius:12px;padding:22px;margin-bottom:30px}.section-heading p{font-size:13px}.controls{display:flex;gap:6px}#map{width:100%;height:420px;background:#edf3ea;border-radius:8px;margin-top:16px;overflow:hidden}.river{fill:none;stroke:#7ca8b7;stroke-width:2;vector-effect:non-scaling-stroke}.river.main-river{stroke:#397f98;stroke-width:3}.marker{cursor:pointer}.marker circle{stroke:white;stroke-width:2}.marker text{fill:white;font-weight:750;text-anchor:middle;dominant-baseline:central}.sensors{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}.sensor{background:white;border:1px solid #dce6de;border-radius:12px;padding:22px}.sensor h3{margin:6px 0;font-size:21px}.badge{display:inline-block;font-size:12px;font-weight:650;padding:5px 9px;border-radius:20px;background:#e4efe7;color:#256143}.badge.warning{background:#fff0d9;color:#8a5200}.badge.missing{background:#edf0ee;color:#52665f}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0}.metrics strong{display:block;font-size:23px;white-space:nowrap}.metrics span{font-size:11px;color:#52665f}.small{font-size:12px}.timing-warning{font-size:13px;color:#8a5200;border-left:3px solid #e0ae54;padding-left:12px}.sensor button{font-size:12px;margin-top:12px}details{margin-top:20px;border-top:1px solid #e5ece7;padding-top:14px;font-size:13px}summary{cursor:pointer;font-weight:650}dt{color:#52665f;margin-top:10px}dd{margin:2px 0;overflow-wrap:anywhere}#error{background:#fff0d9;border:1px solid #e0ae54;padding:14px;border-radius:8px}footer{margin-top:30px;font-size:12px;color:#63776f}@media(max-width:900px){.overview,.sensors{grid-template-columns:1fr}.brand span{display:none}.section-heading{align-items:flex-start;flex-wrap:wrap}#map{height:360px}h1{font-size:34px}.metrics{max-width:360px}}
select{font:inherit;padding:8px;border:1px solid #afc2b7;border-radius:6px;background:white;color:#183631}.history-panel{margin-top:30px}.history-panel .controls{flex-wrap:wrap;font-size:13px}#trend{width:100%;height:260px}.trend-line{fill:none;stroke:#397f98;stroke-width:2;vector-effect:non-scaling-stroke}.chart-label{font:12px system-ui;fill:#52665f}
.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px;margin:18px 0}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #dce6de}th{font-size:11px;color:#52665f}tr.deviation{background:#fff0d9}
#events-results>details{border:1px solid #dce6de;border-radius:10px;padding:16px;margin:18px 0;background:#fff}#events-results>details>details{border:1px solid #dce6de;border-radius:8px;padding:12px 14px;margin:12px 0;background:#f8faf8}#events-results summary{display:list-item;line-height:1.5;padding:4px 0;min-height:30px}#events-results section{margin:18px 0;padding:14px;background:#f3f6f4;border-radius:8px}#events-results h3,#events-results h4{margin:14px 0 8px}#events-results li{margin:8px 0;line-height:1.5}.badge.maintenance{background:#edf0ee;color:#52665f}
#snapshot-results label{display:block;margin:14px 0}#snapshot-results textarea{display:block;width:100%;margin-top:8px;font:inherit;padding:10px;border:1px solid #afc2b7;border-radius:6px}#snapshot-results button{margin:8px 8px 8px 0}
