:root{color-scheme:dark;--bg:#11151a;--panel:#1b2128;--panel-alt:#202832;--line:#343e49;--text:#e4e9ef;--muted:#9ba8b6;--blue:#73bdff;--yellow:#e8bd60;--red:#fa8184;--green:#8ecab3;--mono:Consolas,"Courier New",monospace}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 "Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.42;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.2;font-weight:600;letter-spacing:-.5px}h2{font-size:15px;font-weight:600}h3{font-size:19px;letter-spacing:.5px}.muted{color:var(--muted);font-size:12px}.number{color:var(--blue);font-family:var(--mono);font-variant-numeric:tabular-nums}.label,.eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--muted);font-weight:600}.eyebrow{margin-bottom:10px}.subtitle{margin-top:10px;color:var(--muted)}.warning-text{color:var(--yellow)}
.masthead{height:80px;padding:0 38px;display:flex;align-items:center;gap:50px;background:#191f26;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand strong{display:block;font-size:17px;letter-spacing:2.5px;line-height:1.25}.brand small{display:block;font-size:9px;letter-spacing:2.2px;color:var(--muted);margin-top:4px}.masthead nav{display:flex;align-self:stretch;gap:30px}.masthead nav a{display:flex;align-items:center;border-bottom:2px solid transparent;color:var(--muted);font-size:13px}.masthead nav a:hover{color:var(--text)}.masthead nav a[aria-current]{color:var(--blue);border-color:var(--blue)}.local-state{margin-left:auto;display:flex;gap:9px;align-items:center;font-size:12px}.local-state small{display:block;color:var(--muted);font:11px var(--mono);margin-top:3px}.dot{width:6px;height:6px;display:inline-block;background:var(--green);border-radius:50%}.source-strip{min-height:44px;background:#2d281d;border-bottom:1px solid #57492e;display:flex;align-items:center;gap:16px;padding:9px 38px;color:var(--yellow);font-size:12px}.source-strip strong{font-weight:600}.source-strip>span:last-child{margin-left:auto;color:#c3b89c}.source-tag{font:10px var(--mono);letter-spacing:1px;padding:2px 7px;border:1px solid #78633c;background:#3a3121}.source-strip.hydras{background:#182938;border-color:#354b5c;color:var(--blue)}.source-strip.hydras .source-tag{background:#20384c;border-color:#456784}.source-strip.hydras>span:last-child{color:#a7becf}
main{max-width:1600px;min-height:calc(100vh - 183px);padding:32px 38px 44px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.page-heading.compact{margin-bottom:22px}.heading-actions{display:flex;gap:18px;align-items:center}.button{min-height:37px;background:#29333f;border:1px solid #485767;color:#e4e9ef;border-radius:2px;padding:8px 15px;font-size:12px;white-space:nowrap}.button:hover:not(:disabled){background:#344253;border-color:#6c849e}.button.primary{background:#275a7f;border-color:#437d9e;color:#f3f8fc}.button.primary:hover{background:#326f99}.button.small{min-height:30px;padding:5px 11px}.summary-strip{display:grid;grid-template-columns:1.2fr .75fr .75fr 1.7fr;border:1px solid var(--line);background:var(--panel);margin-bottom:32px}.summary-strip>div{padding:17px 24px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px}.summary-strip>div:last-child{border:0}.summary-strip strong{font:20px var(--mono);font-weight:400}.summary-strip>div:last-child strong{font:13px "Segoe UI",Arial,sans-serif;line-height:26px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.station-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.panel,.station-card{background:var(--panel);border:1px solid var(--line);border-radius:2px}.station-card{border-top:2px solid #4c6e87;overflow:hidden;display:flex;flex-direction:column}.station-card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px;border-bottom:1px solid var(--line);background:#202730}.station-card-header p{font:10px var(--mono);color:var(--muted);margin-top:4px}.badge{display:inline-block;padding:2px 7px;border:1px solid #55503d;background:#332f23;color:var(--yellow);font-size:10px;white-space:nowrap;letter-spacing:.3px}.badge.valid{background:#20332e;color:var(--green);border-color:#3d594f}.badge.invalid{background:#39272b;color:var(--red);border-color:#6c4147}.badge.neutral{background:#2a3139;color:#b8c4d0;border-color:#475361}.channel-metric{padding:15px 20px;border-bottom:1px solid #303943;display:grid;grid-template-columns:1fr auto;gap:7px 12px;align-items:center}.channel-name{font-size:12px;font-weight:500}.channel-id{font:10px var(--mono);color:var(--muted);margin-right:6px}.metric-value{font:27px/1.25 var(--mono);color:var(--blue);grid-row:span 2;white-space:nowrap}.metric-value small{font:11px "Segoe UI",sans-serif;color:var(--muted);margin-left:7px}.metric-meta{font-size:10px;color:var(--muted)}.channel-metric .badge{font-size:9px;padding:0 5px}.station-card-footer{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;margin-top:auto}.station-link{color:var(--blue);font-size:12px}.station-link:hover{text-decoration:underline}.reading-note{display:flex;align-items:flex-start;gap:16px;padding:20px 22px;margin-top:28px}.reading-note h2{font-size:13px;margin-bottom:6px}.reading-note p{font-size:12px;color:#afbac6}.reading-note p+p{margin-top:4px}.note-symbol{width:22px;height:22px;border:1px solid #647689;color:#a3bad0;text-align:center;font:15px Georgia,serif;flex-shrink:0}.empty{padding:34px 24px;text-align:center;color:var(--muted);grid-column:1/-1}.notice{border:1px solid #415b6e;border-left:3px solid var(--blue);background:#1d2c39;padding:13px 17px;margin:0 0 22px;font-size:12px;line-height:1.6}.notice.error{background:#332126;border-color:#6b3c44;border-left-color:var(--red);color:#ffb3b5}.notice.warning{background:#302a1e;border-color:#584b31;border-left-color:var(--yellow);color:#d9c69e}.notice strong{color:var(--yellow)}
.breadcrumb{display:flex;gap:10px;font-size:11px;color:var(--muted);margin-bottom:20px}.breadcrumb a{color:var(--blue)}.station-tabs{display:flex;gap:0;margin-bottom:22px;border-bottom:1px solid var(--line)}.station-tabs a{padding:10px 24px;color:var(--muted);font-size:12px;border:1px solid transparent;border-bottom:0}.station-tabs a[aria-current]{background:var(--panel);color:var(--blue);border-color:var(--line);box-shadow:0 1px var(--panel)}.panel-heading{padding:15px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);font-weight:500;background:#1e262f}th,td{padding:12px 20px;text-align:left;border-bottom:1px solid #303943}td{font-variant-numeric:tabular-nums}tr:last-child td{border-bottom:0}.numeric{text-align:right}.table-link{background:none;border:0;color:var(--blue);padding:0;font:inherit;text-align:left}.table-link:hover{text-decoration:underline}tr.selected{background:#23313e}td.numeric{font:16px var(--mono);color:var(--blue)}.history-panel{margin-top:24px}.history-controls{display:flex;align-items:end;gap:15px;padding:20px;flex-wrap:wrap;border-bottom:1px solid var(--line)}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#bfccd8}label small{color:var(--muted);font-size:11px}input,select{border:1px solid #4a5765;background:#151b22;color:var(--text);min-height:37px;border-radius:2px;padding:7px 10px;font-size:12px}select{min-width:205px}.plot-heading{padding:18px 20px 0;display:flex;justify-content:space-between;gap:20px;font-size:12px}.plot{height:260px;padding:0 15px}.plot svg{height:100%;width:100%;overflow:visible}.plot svg text{fill:#94a4b5;font:11px "Segoe UI",sans-serif}.plot svg .grid-line{stroke:#303d49;stroke-width:1}.plot svg .series{fill:none;stroke:var(--blue);stroke-width:2;vector-effect:non-scaling-stroke}.plot svg .point{fill:var(--blue)}.plot-note{display:flex;justify-content:space-between;padding:0 20px 18px;font-size:11px;color:var(--muted)}.line-key{display:inline-block;width:16px;height:2px;background:var(--blue);vertical-align:middle;margin-right:8px}.history-panel>.notice{margin:0 20px 20px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-top:1px solid var(--line)}.pagination button+button{margin-left:8px}
.settings-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:24px;margin-bottom:24px}.settings-form{padding:22px}.settings-form label+label{margin-top:20px}.form-actions{display:flex;gap:10px;margin:20px 0 12px}.settings-form .notice{margin:16px 0 0}.resolved-path{font-size:11px;color:var(--muted);margin-top:15px}.resolved-path code{display:block;margin-top:4px;color:#c2cdd7;overflow-wrap:anywhere}.diagnostics{margin:0;padding:7px 20px}.diagnostics>div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #303943;font-size:12px}.diagnostics>div:last-child{border:0}.diagnostics dt{color:var(--muted)}.diagnostics dd{margin:0;text-align:right}.scan-summary{padding:18px 20px;font-size:12px}.scan-summary code{display:block;overflow-wrap:anywhere;color:var(--muted);margin-top:5px}.panel-footnote{padding:15px 20px;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}details{border-top:1px solid var(--line)}summary{cursor:pointer;padding:12px 20px;font-size:12px;background:#202831}details .notice{margin:15px 20px}footer{display:flex;gap:24px;justify-content:space-between;align-items:center;min-height:59px;padding:15px 38px;border-top:1px solid var(--line);color:#81909f;font-size:10px;letter-spacing:.3px}footer>span:first-child{white-space:nowrap;font:10px var(--mono)}.skip-link{position:absolute;top:-100px;background:#204e70;padding:10px;color:white;z-index:10}.skip-link:focus{top:0}
@media(min-width:1700px){.masthead,.source-strip,footer{padding-left:calc((100vw - 1524px)/2);padding-right:calc((100vw - 1524px)/2)}}
@media(max-width:1100px){.masthead{gap:28px;padding:0 24px}.source-strip{padding-left:24px;padding-right:24px}main{padding:25px 24px 36px}.station-grid{gap:12px}.station-card-header,.channel-metric,.station-card-footer{padding-left:14px;padding-right:14px}.metric-value{font-size:23px}.summary-strip>div{padding:15px 18px}.heading-actions{flex-direction:column;align-items:flex-end;gap:8px}.settings-grid{gap:16px}.diagnostics>div{font-size:11px}footer{padding-left:24px;padding-right:24px}}
@media(max-width:820px){.local-state{display:none}.masthead{height:72px;gap:24px}.masthead nav{gap:20px}.source-strip{gap:10px;flex-wrap:wrap}.source-strip>span:last-child{display:none}.station-grid{grid-template-columns:1fr}.channel-metric{grid-template-columns:1fr auto;padding:14px 20px}.station-card-header,.station-card-footer{padding-left:20px;padding-right:20px}.summary-strip{grid-template-columns:repeat(2,1fr)}.summary-strip>div:nth-child(2){border-right:0}.summary-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.settings-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}h1{font-size:25px}.heading-actions .muted{display:none}.panel-heading{align-items:flex-start}.panel-heading>.muted{text-align:right;max-width:45%}.section-heading>.muted{font-size:10px}.plot-heading{flex-direction:column;gap:6px}.plot-note{gap:15px}.plot{height:220px}footer{flex-wrap:wrap;gap:8px 20px}footer>span:nth-child(2){display:none}}
@media(max-width:480px){main{padding:22px 16px 28px}.masthead{padding:0 16px;gap:20px}.brand{gap:8px}.brand strong{font-size:14px;letter-spacing:1.5px}.brand small{font-size:8px;letter-spacing:1px}.brand img{width:29px;height:29px}.masthead nav{gap:16px}.masthead nav a{font-size:11px}.source-strip{padding:9px 16px;font-size:11px}.source-tag{display:none}.page-heading{gap:10px}.summary-strip>div{padding:14px}.summary-strip .label{font-size:9px;letter-spacing:.6px}.summary-strip>div:last-child strong{font-size:11px;line-height:18px}.history-controls{gap:12px}.history-controls label:first-child{width:100%}.history-controls label:not(:first-child){flex:1}.history-controls input{width:100%;min-width:0}.history-controls button{width:100%}.station-tabs a{padding:10px 20px}.form-actions{flex-direction:column}.pagination{align-items:flex-start;gap:12px;flex-direction:column}.section-heading{gap:12px}.section-heading>.muted{text-align:right}.plot-note{font-size:10px}.diagnostics>div{gap:10px}}
.login-main{display:grid;place-items:start center;padding-top:70px}.login-panel{width:min(100%,480px)}.login-panel h1{font-size:24px}.login-content{padding:24px}.login-content>p{font-size:13px;color:var(--muted);margin-bottom:24px}.login-content form{display:grid;gap:20px;margin-bottom:24px}.login-content .notice{margin-top:20px}.login-content>p:last-child{margin-bottom:0}.masthead #logout{flex-shrink:0}@media(max-width:820px){.masthead{gap:16px}.masthead #logout{margin-left:auto}}@media(max-width:480px){.masthead nav{gap:10px}.masthead{flex-wrap:wrap;height:auto;min-height:90px;padding-top:12px;padding-bottom:12px}.masthead nav{order:3;width:100%;gap:24px}.masthead nav a{padding:5px 0}.login-main{padding-top:36px}}
.reset-form{border-top:1px solid var(--line)}.users-grid{grid-template-columns:1fr 1fr}@media(max-width:1100px){.masthead{gap:20px}.masthead nav{gap:18px}.local-state{font-size:11px}}@media(max-width:950px){.local-state{display:none}.masthead #logout{margin-left:auto}}@media(max-width:820px){.users-grid{grid-template-columns:1fr}.masthead{flex-wrap:wrap;height:auto;padding-top:12px;padding-bottom:12px}.masthead nav{order:3;width:100%;gap:20px;flex-wrap:wrap}.masthead nav a{padding:5px 0}}
.date-field{display:flex;flex-direction:column;gap:7px}.date-control{display:flex;position:relative;max-width:190px}.date-control input[type=text]{width:145px;min-width:0}.date-control .calendar-button{width:38px;padding:7px;flex-shrink:0}.calendar-picker{position:absolute;right:0;bottom:0;width:1px;height:1px;min-height:0;padding:0;opacity:0;pointer-events:none}#sync-time{font-size:11px;margin-bottom:16px}@media(max-width:480px){.history-controls .date-field{flex:1;min-width:140px}.history-controls .date-control{width:100%}.history-controls .calendar-button{width:38px}.history-controls .calendar-picker{width:1px}}

/* Existing station work area: compact controls, aligned scales, no new screen. */
body[data-page=station] main,body[data-page=overview] main{padding-top:16px}
body[data-page=station] .page-heading,body[data-page=overview] .page-heading{margin-bottom:12px}
body[data-page=station] h1,body[data-page=overview] h1{font-size:25px}
body[data-page=station] .masthead,body[data-page=overview] .masthead{min-height:60px;height:auto;padding-top:10px;padding-bottom:10px}
body[data-page=station] .source-strip,body[data-page=overview] .source-strip{min-height:30px;padding-top:4px;padding-bottom:4px}
body[data-page=station] #sync-time,body[data-page=overview] #sync-time{margin-bottom:8px}
body[data-page=station] .station-tabs{overflow-x:auto;margin-bottom:10px}
body[data-page=station] .station-tabs a{white-space:nowrap;padding:8px 12px}
body[data-page=station] .history-panel{margin-top:0}
body[data-page=station] .history-controls{padding:12px 16px;gap:12px}
body[data-page=overview] .channel-metric{padding-top:9px;padding-bottom:9px}
.work-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 16px}
.work-toolbar>div{display:flex;flex-wrap:wrap;gap:6px}.work-toolbar strong{font:13px var(--mono)}
.work-hint{font-size:12px;color:var(--muted);margin:8px 16px;min-height:18px}
.series-legend{display:flex;flex-direction:column;gap:6px;padding:10px 16px;border-bottom:1px solid var(--line)}
.legend-entry{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.legend-entry>button{padding:2px 8px;min-height:24px}
.series-channel{min-width:200px;max-width:100%;min-height:30px;padding:4px 8px}.series-state{margin-left:auto}
#series-message:empty{display:none}
body[data-page=station] .latest-details,body[data-page=station] #history-details{margin-left:0;padding-left:0;border-left:0;text-indent:0}
body[data-page=station] .latest-details>summary,body[data-page=station] #history-details>summary{margin:0;padding:10px 16px;text-indent:0;list-style-position:inside}
body[data-page=station] .latest-details>.table-scroll,body[data-page=station] #history-details>.table-scroll{margin:0 16px;padding:0;border-left:0;text-indent:0}
body[data-page=station] .latest-details>.table-scroll>table,body[data-page=station] #history-details>.table-scroll>table{margin:0}
body[data-page=station] .latest-details>.pagination,body[data-page=station] #history-details>.pagination{margin-left:16px;margin-right:16px;padding-left:0;padding-right:0}
.series-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;color:var(--text);cursor:pointer}
.series-toggle input{min-height:0;width:16px;height:16px;margin:0}.series-toggle input:not(:checked)~span{opacity:.45}
.explorer-plots{padding:0 8px}.explorer-series>svg{display:block;width:100%;height:auto;border-bottom:1px solid var(--line);user-select:none;touch-action:none}
.zoom-surface{cursor:crosshair}.work-maxima{font-size:12px;padding:8px 16px}.work-maxima p{margin-bottom:6px}
.latest-details{margin-top:16px}.compare-controls summary{padding:8px 16px}
#chart-hover{overflow-wrap:anywhere}#print-sheet{display:none}
@media print{
  @page{size:A4 landscape;margin:12mm}
  body{background:white!important;color:#172b3a!important}
  body[data-page=station]>:not(main),body[data-page=station] main>:not(#print-sheet){display:none!important}
  body[data-page=station] main{display:block;padding:0;margin:0;max-width:none;min-height:0}
  #print-sheet{display:block!important;color:#172b3a}
  #print-sheet h1{font-size:20px;margin-bottom:6px}#print-sheet p{font-size:12px;margin-bottom:6px}
  #print-sheet section{break-inside:avoid;margin-top:10px}#print-sheet svg{display:block;width:100%;height:auto}
}
