:root {
  --bg: #0b0d10;
  --surface: #12161c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaed;
  --muted: rgba(232, 234, 237, 0.55);
  --accent: #3d9eff;
  --good: #2fbf71;
  --warn: #f59f00;
  --bad: #ff6b6b;
  --mono: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.header {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.muted {
  color: var(--muted);
}

.banner {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

.banner-label {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.banner-detail {
  font-size: 0.9rem;
}

.banner.state-operational {
  border-left: 4px solid var(--good);
}

.banner.state-degraded {
  border-left: 4px solid var(--warn);
}

.banner.state-major_outage {
  border-left: 4px solid var(--bad);
}

.banner.state-unknown {
  border-left: 4px solid var(--muted);
}

.updated {
  margin: 0.75rem 0 1rem;
  font-size: 0.85rem;
  font-family: var(--mono);
}

.error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.state-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.state-pill.operational {
  background: rgba(47, 191, 113, 0.15);
  color: var(--good);
}

.state-pill.degraded {
  background: rgba(245, 159, 0, 0.15);
  color: var(--warn);
}

.state-pill.major_outage {
  background: rgba(255, 107, 107, 0.15);
  color: var(--bad);
}

.state-pill.unknown {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.footer {
  margin-top: 2rem;
  font-size: 0.85rem;
}

.footer a {
  color: var(--accent);
}

.page > h1 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}
