* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1000px 480px at 8% -12%, rgba(198, 255, 61, 0.09) 0%, transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(42, 53, 88, 0.55) 0%, transparent 50%),
    var(--bg);
  font-family: var(--font);
}

.page {
  min-height: 100dvh;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 20px 36px;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 24px;
}
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.api-link {
  color: var(--muted);
  text-decoration: none;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
}
.api-link:hover { color: var(--text); }

.banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-chat);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  margin-bottom: 22px;
}
.banner[data-overall="operational"] { box-shadow: 0 0 0 1px rgba(198, 255, 61, 0.25), var(--shadow); }
.banner[data-overall="partial_outage"],
.banner[data-overall="major_outage"] { box-shadow: 0 0 0 1px rgba(255, 180, 180, 0.35), var(--shadow); }
.banner-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.04em; margin: 0 0 8px; }
.subhead { color: var(--muted); margin: 0; line-height: 1.5; }

.services { display: flex; flex-direction: column; gap: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 16px 18px 14px;
}
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.03em; }
.meta { margin: 4px 0 0; color: var(--muted); font-size: 0.8rem; }
.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-dim);
  color: var(--accent);
}
.pill.down { background: rgba(255, 180, 180, 0.14); color: var(--danger); }
.pill.unknown { background: rgba(180, 189, 214, 0.12); color: var(--muted); }

.bar {
  display: flex;
  gap: 1px;
  margin: 14px 0 8px;
  height: 28px;
  align-items: flex-end;
}
.tick {
  flex: 1;
  min-width: 0;
  height: 40%;
  border-radius: 1px;
  background: #2a3558;
}
.tick.has { height: 100%; background: var(--accent); }
.tick.mid { height: 70%; background: #e8d26a; }
.tick.bad { height: 100%; background: #ff8a8a; }

.legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.75rem; }

.incidents { margin-top: 28px; }
.incidents h2 { margin: 0 0 12px; font-size: 1.05rem; }
.incidents ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.incidents li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 30, 60, 0.65);
  padding: 12px 14px;
}
.incidents li.open { border-color: rgba(255, 180, 180, 0.35); }
.incidents p { margin: 0; }
.incidents .when { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.empty { color: var(--muted); margin: 0; }

footer { margin-top: auto; padding-top: 28px; }
.caps-note, .brand-footer-main {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  text-align: center;
}
.brand-footer-main { margin: 8px 0 0; }

@media (max-width: 640px) {
  .bar { height: 22px; }
}
