:root {
  color-scheme: light dark;
  --up: #15803d;
  --down: #b91c1c;
  --unmeasured: #9ca3af;
  --text: #111827;
  --muted: #4b5563;
  --bg: #ffffff;
  --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f3f4f6;
    --muted: #9ca3af;
    --bg: #111827;
    --border: #374151;
  }
}

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

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

h1 { margin: 0 0 4px; font-size: 1.75rem; }
h2 { margin: 32px 0 12px; font-size: 1.125rem; }
.note, .muted { color: var(--muted); font-size: 0.875rem; margin: 4px 0; }

.current {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.overall { margin: 0; font-size: 1.25rem; font-weight: 600; }
.overall::before { content: "●"; margin-right: 8px; }
.overall-operational::before { color: var(--up); }
.overall-disruption::before { color: var(--down); }
.overall-unknown::before { color: var(--unmeasured); }

.chart {
  display: flex;
  gap: 2px;
  height: 56px;
  align-items: stretch;
}

.day {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 2px;
  border-radius: 2px;
  overflow: hidden;
}

.day span { display: block; }
.up { background: var(--up); }
.down { background: var(--down); }
.unmeasured { background: var(--unmeasured); }

.axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

.legend {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
  font-size: 0.875rem;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}

.totals { font-weight: 500; }
