:root {
  --bg: #f0efec;
  --card: #ffffff;
  --ink: #16150f;
  --muted: #6b675d;
  --line: #e2e0d8;
  --accent: #ffcc00;
  --ok: #16a34a;
  --warn: #d97706;
  --down: #dc2626;
  --nodata: #dedcd3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 20px 80px;
}
header {
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  outline: none;
}
.brand:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dot-accent {
  color: var(--accent);
}
.subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.banner {
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.banner .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
}
.banner h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.banner small {
  color: var(--muted);
  font-size: 13px;
}
.op-bg {
  background: var(--ok);
}
.de-bg {
  background: var(--warn);
}
.dn-bg {
  background: var(--down);
}
.op {
  color: var(--ok);
}
.de {
  color: var(--warn);
}
.dn {
  color: var(--down);
}

.group-title,
.section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 10px;
}
.section-title {
  margin-top: 34px;
}

.svc {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.svc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.svc-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.svc-head .name {
  font-weight: 500;
  font-size: 15px;
}
.svc-head .meta {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.svc-head .lat {
  font-variant-numeric: tabular-nums;
}

.bars {
  display: flex;
  gap: 2px;
  height: 32px;
  align-items: stretch;
  margin-top: 14px;
}
.bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: var(--nodata);
}
.bar.operational {
  background: var(--ok);
}
.bar.degraded {
  background: var(--warn);
}
.bar.down {
  background: var(--down);
}
.bars-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}
.bars-legend .pct {
  color: var(--ink);
  font-weight: 600;
}

.incident {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 12px;
  background: var(--card);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.incident.critical {
  border-left-color: var(--down);
}
.incident.major {
  border-left-color: var(--warn);
}
.incident.minor {
  border-left-color: var(--accent);
}
.incident h4 {
  margin: 0 0 4px;
  font-size: 15px;
}
.incident .when {
  font-size: 12px;
  color: var(--muted);
}
.incident .update {
  font-size: 13px;
  margin-top: 8px;
}
.incident .update b {
  text-transform: capitalize;
}
.incident-active {
  background: var(--down);
  color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.incident-active.major {
  background: var(--warn);
}
.incident-active.minor {
  background: #1e1d19;
}
.incident-active h4 {
  margin: 0 0 4px;
  font-size: 16px;
}
.incident-active .update {
  opacity: 0.92;
  font-size: 13px;
}
.muted-note {
  color: var(--muted);
  font-size: 13px;
}

footer {
  margin-top: 36px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
footer a {
  color: var(--muted);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
}
@media (max-width: 480px) {
  .bars {
    gap: 1px;
  }
}
