:root {
  --bg: #f7f6f2; --surface: #ffffff; --text: #1d1d1b; --muted: #6b6a66; --line: #e4e2dc;
  --green: #4f9a3a; --yellow: #d9a514; --orange: #e0702b; --red: #c9372c; --gray: #c9c7c1;
  --banner-ok: #4f9a3a; --banner-warn: #d9a514; --banner-bad: #c9372c; --banner-none: #8a8984; --on-banner: #ffffff; --on-banner-warn: #1d1d1b;
  --link: #2f6fb0; color-scheme: light dark;
  --state-ok: #2f6b22; --state-warn: #7a5c00; --state-partial: #a3461a; --state-major: #a52a20;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171716; --surface: #21211f; --text: #ecebe7; --muted: #a3a29d; --line: #34332f; --gray: #4a4945; --link: #8ab4f8; color-scheme: dark;
    --state-ok: #7cc464; --state-warn: #e6be4a; --state-partial: #f0965a; --state-major: #f07a70;
  }
}
:root[data-theme="dark"] {
  --bg: #171716; --surface: #21211f; --text: #ecebe7; --muted: #a3a29d; --line: #34332f; --gray: #4a4945; --link: #8ab4f8; color-scheme: dark;
  --state-ok: #7cc464; --state-warn: #e6be4a; --state-partial: #f0965a; --state-major: #f07a70;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
a { color: var(--link); }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; }
.top h1 { font-size: 26px; margin: 0 0 24px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.banner { color: var(--on-banner); background: var(--banner-none); padding: 14px 16px; border-radius: 8px; font-weight: 600; margin-bottom: 24px; overflow-wrap: anywhere; }
.banner.operational { background: var(--banner-ok); }
.banner.degraded { background: var(--banner-warn); color: var(--on-banner-warn); }
.banner.partial_outage, .banner.major_outage { background: var(--banner-bad); }
.banner .detail { display: block; font-weight: 400; margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 24px; }
.meta { color: var(--muted); font-size: 13px; text-align: right; margin: 0 0 8px; }
.comp { padding: 14px 0; border-top: 1px solid var(--line); }
.comp:first-child { border-top: 0; }
.comp-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.state { font-size: 13px; font-weight: 500; }
.state.operational { color: var(--state-ok); }
.state.degraded { color: var(--state-warn); }
.state.partial_outage { color: var(--state-partial); }
.state.major_outage { color: var(--state-major); }
.state.no_data { color: var(--muted); }
.bars { display: flex; gap: 2px; height: 34px; margin: 8px 0 4px; }
.bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--gray); }
.bar.green { background: var(--green); } .bar.yellow { background: var(--yellow); }
.bar.orange { background: var(--orange); } .bar.red { background: var(--red); }
.scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.scale .ago-30 { display: none; }
.incident { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.incident:first-child { border-top: 0; }
.incident h3 { font-size: 15px; margin: 0; }
.incident p { margin: 2px 0; }
.muted { color: var(--muted); }
.report-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.report-form input, .report-form button { font: inherit; padding: 4px 8px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 4px; border-top: 1px solid var(--line); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.foot { color: var(--muted); font-size: 13px; }
.note { font-size: 13px; margin: 12px 0 0; }
@media (max-width: 600px) {
  .bars.days .bar:nth-child(-n+60) { display: none; }
  .scale .ago-90 { display: none; }
  .scale .ago-30 { display: inline; }
}
