:root {
  --bg: #f7f8fa;
  --fg: #16181d;
  --muted: #5c6370;
  --card: #ffffff;
  --line: #e2e5ea;
  --operational: #1f9d55;
  --maintenance: #3b6fd6;
  --degraded: #d4a017;
  --partial_outage: #e07a1f;
  --major_outage: #d1342f;
  --no_data: #cfd4dc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --fg: #e8eaee;
    --muted: #9aa2ae;
    --card: #1a1d23;
    --line: #2b3039;
    --no_data: #3a404b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top, main, .foot { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.top h1 { font-size: 20px; margin: 24px 0 16px; }
.overall {
  border-radius: 8px;
  padding: 16px 20px;
  color: #fff;
  background: var(--no_data);
  margin-bottom: 12px;
}
.overall h2 { margin: 0; font-size: 18px; }
.overall p { margin: 6px 0 0; }
.overall.operational { background: var(--operational); }
.overall.maintenance { background: var(--maintenance); }
.overall.degraded { background: var(--degraded); }
.overall.partial_outage { background: var(--partial_outage); }
.overall.major_outage { background: var(--major_outage); }
.overall.not_reported, .overall.unreadable { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.paused { color: var(--muted); margin: 0 0 16px; }
.components, .updates { list-style: none; margin: 0; padding: 0; }
.components { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.component { padding: 14px 16px; border-top: 1px solid var(--line); }
.component:first-child { border-top: 0; }
.component-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.state.operational { color: var(--operational); }
.state.maintenance { color: var(--maintenance); }
.state.degraded { color: var(--degraded); }
.state.partial_outage { color: var(--partial_outage); }
.state.major_outage { color: var(--major_outage); }
.state.not_reported { color: var(--muted); }
.note { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.updated { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.bars { display: flex; gap: 2px; height: 28px; }
.bar { flex: 1; border-radius: 2px; background: var(--no_data); }
.bar.operational { background: var(--operational); }
.bar.maintenance { background: var(--maintenance); }
.bar.degraded { background: var(--degraded); }
.bar.partial_outage { background: var(--partial_outage); }
.bar.major_outage { background: var(--major_outage); }
.bar-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }
.scale-short { display: none; }
.open-incidents, .past-incidents { margin: 20px 0; }
.open-incidents h2, .past-incidents h2 { font-size: 16px; margin: 0 0 8px; }
.incident { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.incident.open { border-left: 4px solid var(--major_outage); }
.incident h3 { margin: 0 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.incident-affects, .incident-when { margin: 0; color: var(--muted); font-size: 13px; }
.update { margin-top: 8px; }
.update-at { color: var(--muted); font-size: 12px; }
.update-text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.month { font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.foot { color: var(--muted); font-size: 13px; padding-top: 8px; padding-bottom: 32px; }
.foot a { color: inherit; }
/* A phone keeps the last 30 days of bars, each still coloured by its state. */
@media (max-width: 600px) {
  .bar:nth-child(-n + 60) { display: none; }
  .scale-long { display: none; }
  .scale-short { display: inline; }
}
