:root {
  --bg: #f6f7f9; --card: #fff; --text: #1c2024; --muted: #6b7280; --line: #e3e6ea;
  --ok: #1f8a4c; --warn: #b7791f; --bad: #c0352b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171a; --card: #1e2125; --text: #e6e8eb; --muted: #9aa1aa; --line: #30343a;
          --ok: #5fd08f; --warn: #e0b050; --bad: #ff7a6e; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 15px/1.6 -apple-system, "PingFang SC", "Segoe UI", system-ui, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 32px 16px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 15px; color: var(--muted); font-weight: 500; margin: 24px 0 8px; }
.overall { padding: 16px; border-radius: 10px; font-weight: 600; background: var(--card); border: 1px solid var(--line); }
.overall.operational { border-left: 6px solid var(--ok); }
.overall.degraded { border-left: 6px solid var(--warn); }
.overall.outage, .overall.error { border-left: 6px solid var(--bad); }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-top: 12px; }
.notice.critical { border-left: 6px solid var(--bad); }
.notice.maintenance { border-left: 6px solid var(--warn); }
.notice h3 { margin: 0 0 4px; font-size: 15px; }
.notice p { margin: 0; white-space: pre-wrap; }
.notice .when { color: var(--muted); font-size: 13px; margin-top: 6px; }
.regions { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.regions li { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.regions li:last-child { border-bottom: 0; }
.dot::before { content: "●"; margin-right: 6px; }
.dot.operational { color: var(--ok); } .dot.degraded { color: var(--warn); } .dot.outage { color: var(--bad); }
.muted { color: var(--muted); } .small { font-size: 13px; }
