:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16202c;
  --muted: #5b6776;
  --border: #dde2e8;
  --live: #1f8a4c;
  --delayed: #b7791f;
  --down: #c53030;
  --unknown: #7a8594;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --surface: #171e26;
    --text: #e6ebf0;
    --muted: #9aa6b2;
    --border: #2a333d;
    --live: #48bb78;
    --delayed: #ecc94b;
    --down: #fc8181;
    --unknown: #8896a5;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: inherit; }

.top, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 24px;
}

.brand { font-weight: 700; text-decoration: none; }
.product { color: var(--muted); }

h1 { font-size: 1.35rem; margin: 0 0 4px; }
h2 { font-size: 1.05rem; margin: 32px 0 12px; }

.overall {
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--unknown);
}

.overall--live { border-left-color: var(--live); }
.overall--delayed { border-left-color: var(--delayed); }
.overall--down { border-left-color: var(--down); }

.components, .incidents {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.components li, .incidents li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.components li:first-child, .incidents li:first-child { border-top: 0; }

.incidents li { flex-direction: column; gap: 2px; }

.state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--unknown);
}

.dot--live { background: var(--live); }
.dot--delayed { background: var(--delayed); }
.dot--down { background: var(--down); }

.legend { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; }
.legend .dot { margin-left: 6px; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

footer { padding-top: 32px; padding-bottom: 40px; }

.noscript { text-align: center; padding: 16px; }
