:root {
  color-scheme: dark;
  --bg: #0f1012;
  --panel: #18191c;
  --line: #2b2d31;
  --hair: #232529;
  --ink: #ececec;
  --muted: #9b9da1;
  --accent: #ff8c1a;
  --ok: #00ff00;
  --bad: #ff4444;
  --warn: #ffaa00;
  --tx: #0096ff;
}

* { box-sizing: border-box; border-radius: 0 !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

.masthead { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 26px; padding-bottom: 18px; }
.id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
h1 { margin: 0; font-size: 1.9rem; font-weight: 400; letter-spacing: .16em; color: var(--accent); }
.sub { color: var(--muted); font-size: .9rem; }
code { font: 400 .85em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.sum { font-size: .9rem; color: var(--muted); }
.sum.ok { color: var(--ok); }
.sum.bad { color: var(--bad); }
.sum.warn { color: var(--warn); }

.banner { margin-top: 18px; padding: 8px 12px; border: 1px solid var(--warn); color: var(--warn); font-size: .9rem; }

.layout { display: grid; gap: 20px; grid-template-columns: minmax(280px, 5fr) 7fr; grid-template-areas: "st rep" "link rep"; align-items: start; margin: 22px 0; }
.p-st { grid-area: st; }
.p-rep { grid-area: rep; }
.p-link { grid-area: link; }

.panel { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 16px 20px 18px; }
h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-size: 1.5rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h3 { margin: 18px 0 6px; font-size: .72rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.block > h3:first-child { margin-top: 0; }

.stations { list-style: none; margin: 0; padding: 0; }
.stations li { display: grid; grid-template-columns: 12px 1fr auto; column-gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--hair); }
.stations li:first-child { border-top: 0; }
.sq { width: 9px; height: 9px; background: var(--muted); align-self: center; }
.sq.ok { background: var(--ok); }
.sq.bad { background: var(--bad); }
.who { display: flex; flex-direction: column; }
.call { font-weight: 400; letter-spacing: .06em; }
.role { color: var(--muted); font-size: .85rem; }
.state { text-align: right; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.state b { display: block; font-weight: 400; color: var(--ink); font-size: .9rem; }

.rows { margin: 0; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-top: 1px solid var(--hair); }
.rows > div:first-child { border-top: 0; }
.rows dt { color: var(--muted); font-size: .9rem; }
.rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rows .v { font-size: 1.15rem; font-weight: 400; }
.rows .u { font-size: .8rem; color: var(--muted); margin-left: 3px; }
.rows .r { display: block; font-size: .75rem; color: var(--muted); }

.split { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.supply .hero { padding: 4px 0 12px; }
.hero .label { display: block; color: var(--muted); font-size: .9rem; }
.hero .v { font-size: 3rem; font-weight: 300; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero .u { font-size: 1rem; color: var(--muted); margin-left: 5px; }
.hero .r { display: block; font-size: .75rem; color: var(--muted); }
.na { color: var(--muted); }

.note { margin: 16px 0 0; font-size: .78rem; color: var(--muted); }

.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; padding-top: 6px; padding-bottom: 30px; color: var(--muted); font-size: .8rem; }
.foot .ver { text-align: center; }
.foot .sig { text-align: right; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; grid-template-areas: "st" "rep" "link"; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  h1 { font-size: 1.6rem; }
  .hero .v { font-size: 2.6rem; }
}

.rows .big .v { font-size: 2.2rem; font-weight: 300; line-height: 1.15; }
.rows .big .u { font-size: 1rem; }
.rows .big dt { align-self: center; }
.rows .v.lv-ok { color: var(--ok); }
.rows .v.lv-warn { color: var(--warn); }
.rows .v.lv-bad { color: var(--bad); }
.rows .v.lv-tx { color: var(--tx); }

body.stale .layout { filter: grayscale(1); opacity: .35; transition: opacity .3s; }
body.stale .layout * { color: var(--muted) !important; }
body.stale .sum { color: var(--bad); }
.role .city { color: #fff; }
.temps { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.temps .lv-ok { color: var(--ok); }
.temps .lv-warn { color: var(--warn); }
.temps .lv-bad { color: var(--bad); }
@media (max-width: 520px) {
  .foot { grid-template-columns: 1fr; }
  .foot .ver, .foot .sig { text-align: left; }
}
