:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --text: #1b211d;
  --muted: #667069;
  --line: #d9ddd7;
  --green: #16794a;
  --amber: #b66910;
  --red: #bd2c2c;
  --shadow: 0 12px 36px rgba(25, 38, 29, .08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101512;
  --surface: #17201b;
  --text: #ecf2ed;
  --muted: #9ba9a0;
  --line: #2d3b32;
  --green: #53d18e;
  --amber: #f1aa4b;
  --red: #ff7676;
  --shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 40px; }
header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(2.1rem, 7vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.lede { max-width: 560px; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
#theme { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.2rem; }
.summary { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.summary div { display: grid; gap: 2px; }
.summary span:last-child { color: var(--muted); font-size: .9rem; }
.status-dot { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 16%, transparent); }
.status-dot.degraded { background: var(--amber); box-shadow: 0 0 0 6px color-mix(in srgb, var(--amber) 16%, transparent); }
.status-dot.outage, .status-dot.unknown { background: var(--red); box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 16%, transparent); }
.status-dot.loading { animation: pulse 1s ease-in-out infinite alternate; }
section + section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
h2 { margin: 0; font-size: 1.15rem; }
.section-head span { color: var(--muted); font-size: .82rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.card .status-dot { width: 9px; height: 9px; box-shadow: none; }
.card-copy { display: grid; min-width: 0; gap: 2px; }
.card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.card small { color: var(--muted); text-transform: capitalize; }
.latency { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer a { color: inherit; }
@keyframes pulse { to { opacity: .35; } }
@media (max-width: 620px) {
  main { width: min(100% - 22px, 1080px); padding-top: 32px; }
  header { margin-bottom: 28px; }
  .lede { font-size: .95rem; }
  .summary { margin-bottom: 36px; padding: 18px; }
  .grid { grid-template-columns: 1fr; }
  .section-head span { display: none; }
}

