:root {
  color-scheme: light dark;
  --bg: #faf8fb;
  --surface: #fff;
  --ink: #241a28;
  --muted: #63586a;
  --line: #e5dce8;
  --accent: #96196e;
  --good: #167040;
  --warn: #875019;
  --error: #a3304d;
  font: 16px/1.55 Inter, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140f18;
    --surface: #1e1723;
    --ink: #f6edf8;
    --muted: #c4b5c9;
    --line: #3b3042;
    --accent: #ffa5e3;
    --good: #84e6b4;
    --warn: #f4ca88;
    --error: #ffa0ad;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.status-page { max-width: 760px; margin-inline: auto; padding: 22px 20px 44px; }
.page-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 800; }
.brand span { color: var(--accent); }
.support { font-size: .92rem; }
h1 { margin: 52px 0 20px; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.12; letter-spacing: -.035em; }
.overview, .components { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.overview { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding: 14px 18px; }
.overview p { margin: 0; font-weight: 700; }
.overview button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.components { margin: 14px 0; }
.components div { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 18px; flex-wrap: wrap; padding: 12px 18px; }
.components div + div { border-top: 1px solid var(--line); }
dt { font-weight: 600; }
dd { margin: 0; color: var(--muted); font-size: .92rem; }
dd::before { content: ""; display: inline-block; width: .52em; height: .52em; margin-inline-end: .45em; border-radius: 50%; background: currentColor; vertical-align: .12em; }
[data-state="reachable"] { color: var(--good); }
[data-state="degraded"] { color: var(--warn); }
[data-state="unavailable"] { color: var(--error); }
.details { margin: 8px 0; color: var(--muted); font-size: .9rem; }
.details:empty { display: none; }
footer { margin-top: 24px; }
