:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --text: #17211d;
  --muted: #607068;
  --border: #dfe8e3;
  --green: #157347;
  --green-bg: #e8f6ef;
  --amber: #9a6200;
  --amber-bg: #fff5d9;
  --red: #b42318;
  --red-bg: #fdecea;
  --blue: #315d7d;
  --blue-bg: #eaf2f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
.shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 64px; }
.page-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
.subtitle { color: var(--muted); margin: 10px 0 0; }
.home-link { text-decoration: none; border: 1px solid var(--border); background: var(--surface); padding: 10px 14px; border-radius: 10px; white-space: nowrap; }
.overall { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 10px 30px rgba(30, 62, 48, .06); }
.overall-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--green); box-shadow: 0 0 0 6px var(--green-bg); }
.overall-title { margin: 0; font-weight: 800; font-size: 1.15rem; }
.overall-copy { margin: 4px 0 0; color: var(--muted); }
.overall-major_outage .overall-dot { background: var(--red); box-shadow: 0 0 0 6px var(--red-bg); }
.overall-degraded .overall-dot, .overall-maintenance .overall-dot { background: var(--amber); box-shadow: 0 0 0 6px var(--amber-bg); }
.overall-unknown .overall-dot { background: var(--blue); box-shadow: 0 0 0 6px var(--blue-bg); }
.notice { margin-top: 16px; padding: 12px 14px; border-radius: 10px; color: #704b00; background: var(--amber-bg); border: 1px solid #f0d795; }
section { margin-top: 30px; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.component-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.component-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.component-row:last-child { border-bottom: 0; }
.component-name { font-weight: 650; }
.pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 10px; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.pill-operational { color: var(--green); background: var(--green-bg); }
.pill-degraded, .pill-maintenance { color: var(--amber); background: var(--amber-bg); }
.pill-major_outage { color: var(--red); background: var(--red-bg); }
.pill-unknown { color: var(--blue); background: var(--blue-bg); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.event-list { display: grid; gap: 12px; }
.event-card, .empty-state { margin: 0; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.event-card h3 { margin: 6px 0 8px; font-size: 1rem; }
.event-meta { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.event-message { margin: 0; color: #35433d; line-height: 1.55; }
.empty-state { color: var(--muted); }
footer { margin-top: 36px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .82rem; }
footer p { margin: 0; }
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 900px); padding-top: 28px; }
  .page-header { flex-direction: column; }
  .component-row { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}
