:root {
  color-scheme: dark;
  --bg: #08080a;
  --panel: #131316;
  --panel-2: #1b1b1f;
  --line: #26262b;
  --text-primary: #f4f3f0;
  --text-secondary: #c3c2b7;
  --text-muted: #8a8983;
  --brand: #cd1943;
  --series-1: #3987e5;
  --series-2: #199e70;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --gold: #f2c14e;
  --silver: #c9ced6;
  --bronze: #d08a55;
  font-size: clamp(10px, 0.78vw, 22px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text-primary); overflow: hidden; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(205, 25, 67, 0.10), transparent 60%), var(--bg);
}

.topbar { display: flex; align-items: center; gap: 1.4rem; padding: 0.9rem 1.6rem 0.8rem; position: relative; }
.topbar::after { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--brand), rgba(205, 25, 67, 0.15) 40%, transparent); }
.topbar .logo { height: 2.9rem; display: block; }
.brand { font-weight: 800; font-size: 1.9rem; letter-spacing: 0.02em; line-height: 1; }
.brand span { color: var(--text-muted); font-weight: 600; }
.subtitle { color: var(--text-secondary); font-size: 1.15rem; }
.topbar .spacer { flex: 1; }
.status { color: var(--text-muted); font-size: 1rem; display: flex; align-items: center; gap: 0.45rem; }
.status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--good); box-shadow: 0 0 0.6rem var(--good); animation: pulse 2s infinite; }
.status.stale { color: var(--warning); }
.status.stale::before { background: var(--warning); box-shadow: 0 0 0.6rem var(--warning); }
@keyframes pulse { 50% { opacity: 0.35; } }
.clock { font-size: 2.3rem; font-weight: 800; letter-spacing: 0.02em; }

.panel { background: linear-gradient(180deg, #16161a, var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.panel h2 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 0.65rem; display: flex; gap: 0.7rem; align-items: baseline; white-space: nowrap; }
.panel h2::before { content: ""; width: 0.25rem; height: 0.9rem; background: var(--brand); border-radius: 2px; align-self: center; }
.panel h2 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0.3rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid #1f1f23; white-space: nowrap; }
th.n, td.n { text-align: right; }
td.muted, .muted { color: var(--text-muted); }
.up { color: var(--good); }
.down { color: var(--serious); }
.empty { color: var(--text-muted); font-size: 1.05rem; padding: 0.6rem 0.4rem; }
.chip { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.08rem 0.45rem; border-radius: 4px; background: var(--panel-2); color: var(--text-secondary); border: 1px solid var(--line); }
svg text { font-family: inherit; }
