:root {
  --bg: #f5f4ef; --card: #ffffff; --text: #1f1e1d; --muted: #6f6b62; --border: #e1ddd1; --accent: #c96442;
  --good: #3f8f4a; --ok: #a46d0b; --slow: #c2413a; --bad: #9c978c; --grid: #ece9df;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1f1e1d; --card: #262624; --text: #eceae4; --muted: #a8a49a; --border: #3b3a37; --accent: #d97757;
    --good: #78c27f; --ok: #e3b456; --slow: #ec7a70; --bad: #7b776e; --grid: #2e2d2b; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 920px; margin: 0 auto; padding: 32px 16px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.live { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); white-space: nowrap; }
.live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--bad); vertical-align: 1px; }
.live.on { color: var(--good); } .live.on::before { background: var(--good); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -.02em; line-height: 1.1; margin: 48px 0 10px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 58ch; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; --tone: var(--bad); }
.card[data-tone="good"] { --tone: var(--good); } .card[data-tone="ok"] { --tone: var(--ok); } .card[data-tone="slow"] { --tone: var(--slow); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head h2 { font-size: 15px; margin: 0; flex: 1; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: none; }
.ip { font: 13px ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; color: var(--muted); }
.rtt { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.rtt .val { font-size: 52px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.rtt .unit { color: var(--muted); font-size: 16px; }
.spark { width: 100%; height: 56px; display: block; margin: 8px 0 14px; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 14px; border-radius: 6px; }
.spark .line { fill: none; stroke: var(--tone); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: var(--tone); opacity: .12; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.stats div { min-width: 0; }
.stats dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stats dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.note { color: var(--muted); font-size: 13.5px; margin: 24px 0 0; }
footer { margin-top: 40px; color: var(--muted); font-size: 13px; }
