:root {
  color-scheme: light dark;
  --ink: #10243e;
  --paper: #f3f6f8;
  --sheet: #fff;
  --line: #cbd5df;
  --muted: #52657b;
  --good: #12654b;
  --good-bg: #dcf5e9;
  --warn: #7a5100;
  --warn-bg: #fff0bd;
  --bad: #982f39;
  --bad-bg: #ffe2e4;
  --action: #1458d6;
  font:
    100% / 1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 70rem;
  margin: auto;
  padding: 1rem;
}
header {
  border-bottom: 3px solid var(--ink);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1.1rem;
}
section {
  padding: 1rem;
  margin-top: 1.75rem;
  background: var(--sheet);
  border: 1px solid var(--line);
}
p {
  margin: 0.6rem 0;
  overflow-wrap: anywhere;
}
.banner {
  border-left: 4px solid currentColor;
}
.state-operational,
.cell-operational {
  color: var(--good);
  background: var(--good-bg);
}
.state-degraded,
.state-maintenance,
.cell-degraded,
.cell-maintenance {
  color: var(--warn);
  background: var(--warn-bg);
}
.state-major_outage,
.state-partial_outage,
.cell-outage {
  color: var(--bad);
  background: var(--bad-bg);
}
.state-unknown,
.cell-no_data {
  color: var(--muted);
  background: var(--paper);
}
.history {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  list-style: none;
  padding: 0;
}
.cell {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  cursor: help;
}
.cell-degraded,
.cell-outage {
  border-bottom: 4px double currentColor;
}
.cell-maintenance {
  border-style: dashed;
}
.cell-no_data {
  border-style: dotted;
}
.cell:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 1px;
}
.marker {
  font-weight: 750;
  font-size: 1.1rem;
}
.cell-label {
  display: none;
}
.cell:hover .cell-label,
.cell:focus .cell-label,
.tooltip {
  display: block;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  pointer-events: none;
}
.enhanced .cell-label,
[hidden] {
  display: none !important;
}
.history-key {
  color: var(--muted);
  font-size: 0.875rem;
}
.events {
  padding-left: 1.25rem;
}
.events > li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f6f8;
    --paper: #10243e;
    --sheet: #162e49;
    --line: #52657b;
    --muted: #cbd5df;
    --good: #dcf5e9;
    --good-bg: #124534;
    --warn: #fff0bd;
    --warn-bg: #513800;
    --bad: #ffe2e4;
    --bad-bg: #63232b;
    --action: #8db6ff;
  }
}
