:root {
  --bg: #f6f7f8; --surface: #ffffff; --fg: #1d2329; --muted: #5d6874; --line: #dde2e7;
  --ok: #1f7a45; --ok-bg: #e5f4ea; --warn: #8a5a00; --warn-bg: #fdf1d8;
  --bad: #b3261e; --bad-bg: #fbe6e4; --mt: #4a4fb0; --mt-bg: #ebecfa; --link: #0b5cad;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121517; --surface: #1a1f22; --fg: #e5e9ec; --muted: #9aa5ae; --line: #2c3338;
    --ok: #7ccf98; --ok-bg: #173323; --warn: #f0c060; --warn-bg: #3a2f14;
    --bad: #f4928a; --bad-bg: #3d1d1b; --mt: #a9adf2; --mt-bg: #26284a; --link: #8cc0f5;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px; line-height: 1.75;
}
a { color: var(--link); }
p, ul, ol { margin: 0; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 40px; padding-bottom: 32px; display: grid; gap: 36px; }
section { display: grid; gap: 12px; }
h1 { font-size: 1.6rem; line-height: 1.35; margin: 0; }
h2 { font-size: 1.15rem; margin: 0; }
.head { display: grid; gap: 8px; }
.lead, .note, .empty { color: var(--muted); }
.note { font-size: .85rem; }

.banner { border-radius: 10px; padding: 16px 20px; display: grid; gap: 4px; border: 1px solid transparent; }
.banner__title { font-weight: 700; font-size: 1.05rem; }
.banner__meta { font-size: .85rem; color: var(--muted); }
.banner--operational { background: var(--ok-bg); border-color: var(--ok); }
.banner--degraded { background: var(--warn-bg); border-color: var(--warn); }
.banner--outage { background: var(--bad-bg); border-color: var(--bad); }
.banner--maintenance { background: var(--mt-bg); border-color: var(--mt); }

.services, .events, .legend, .updates { list-style: none; padding: 0; }
.services { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.service { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.service + .service { border-top: 1px solid var(--line); }
.service__text { min-width: 0; }
.service__name { font-weight: 700; }
.service__desc { color: var(--muted); font-size: .9rem; }

.chip { flex: none; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.chip--operational { color: var(--ok); background: var(--ok-bg); }
.chip--degraded { color: var(--warn); background: var(--warn-bg); }
.chip--outage { color: var(--bad); background: var(--bad-bg); }
.chip--maintenance { color: var(--mt); background: var(--mt-bg); }

.legend { display: grid; gap: 2px; font-size: .85rem; color: var(--muted); }
.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .5em; vertical-align: .05em; }
.dot--operational { background: var(--ok); }
.dot--degraded { background: var(--warn); }
.dot--outage { background: var(--bad); }
.dot--maintenance { background: var(--mt); }

.events { display: grid; gap: 12px; }
.event { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; display: grid; gap: 6px; }
.event__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.event__when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.event__title { font-weight: 700; }
.updates { display: grid; gap: 4px; font-size: .92rem; }
.updates time { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: .5em; }

.contact { font-weight: 700; overflow-wrap: anywhere; }
.foot { padding-top: 8px; padding-bottom: 32px; color: var(--muted); font-size: .85rem; }
