:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e6edf6;
  background: #0b111a;
  --muted: #9fadc1;
  --faint: #778ba5;
  --line: #243247;
  --panel: #111b29;
  --green: #7ce6bc;
  --red: #ff9b9c;
  --amber: #ffcb82;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
.wrap { width: min(100% - 3.5rem, 78rem); margin-inline: auto; }

.topbar { border-bottom: 1px solid var(--line); background: #0e1724; }
.topbar-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; gap: .65rem; align-items: center; font-weight: 720; font-size: 1.1rem; }
.brand-mark { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: .48rem; background: var(--green); color: #102b24; font-weight: 800; }
.freshness { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .875rem; }
.freshness::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.freshness[data-state="current"] { color: var(--green); }
.freshness[data-state="late"], .freshness[data-state="offline"] { color: var(--amber); }

.intro { padding-block: 2.75rem 1.85rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; }
.intro p { margin-top: .65rem; color: var(--muted); }
.intro .timestamp { margin-top: .5rem; color: var(--faint); font-size: .875rem; }

.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0 0 2rem; }
.summary div { padding: .95rem 1.1rem; border: 1px solid var(--line); background: var(--panel); border-radius: .75rem; }
.summary dt { color: var(--muted); font-size: .875rem; }
.summary dd { margin: .2rem 0 0; font-size: 1.85rem; letter-spacing: -.035em; font-weight: 720; }
.summary dd, .numeric, .allocation { font-variant-numeric: tabular-nums; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.1rem; padding: 1rem 1.15rem; }
h2 { font-size: 1.15rem; letter-spacing: -.015em; }
input { font: inherit; font-size: .9rem; color: inherit; background: #0c1420; border: 1px solid #35445b; padding: .52rem .75rem; border-radius: .45rem; width: min(15rem, 100%); }
input::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -2px; }
table { width: 100%; border-collapse: collapse; min-width: 45rem; text-align: left; }
thead { background: #142133; color: var(--muted); }
th, td { padding: .69rem 1.15rem; vertical-align: middle; }
thead th { font-size: .875rem; font-weight: 620; }
tbody th { width: 33%; font-weight: 620; }
tbody td { font-size: .9rem; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: #152237; }
.secondary { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.allocation { white-space: nowrap; }
.track { display: block; width: 5.5rem; height: .25rem; margin-top: .35rem; border-radius: .2rem; background: #35465d; overflow: hidden; }
.track span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.signal { font-weight: 650; }
.numeric { text-align: right; white-space: nowrap; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.warning { color: var(--amber); }
.message { padding: 1rem 1.15rem 1.2rem; color: var(--muted); }
footer { padding: 1.1rem 0 2.2rem; max-width: 58rem; font-size: .875rem; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 44rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .topbar-inner { min-height: 3.65rem; }
  .intro { padding-top: 2rem; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.25rem; }
  .summary div { padding: .8rem .85rem; }
  .panel-heading, .message { padding-inline: .8rem; }
  th, td { padding-inline: .8rem; }
}
