:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --border: #e2e5ea;
  --text: #1b1f24;
  --muted: #5b6470;
  --link: #1d5fd1;
  --ok: #1e8e4f;
  --minor: #c79a00;
  --partial: #d4691a;
  --major: #d1342f;
  --none: #c4c9d1;
  --on-color: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --border: #2a3039;
    --text: #e7eaee;
    --muted: #9aa4b1;
    --link: #7fb0ff;
    --ok: #2fb36a;
    --minor: #e0b52a;
    --partial: #ec8a3c;
    --major: #ef5b55;
    --none: #3a414c;
    --on-color: #0f1216;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 2; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1rem; margin: 0; }

.top { border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #3b6cf6, #8b5cf6); display: inline-block; }
.btn {
  display: inline-block; background: var(--text); color: var(--bg); border: 0; border-radius: 8px;
  padding: 8px 14px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.notice { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--minor); padding: 10px 14px; border-radius: 8px; margin-top: 20px; }

.overall { margin-top: 24px; border-radius: 10px; padding: 16px 20px; color: var(--on-color); background: var(--none); }
.overall h1 { font-size: 1.35rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.overall p { margin: 4px 0 0; opacity: 0.95; }
.overall .dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; display: inline-block; }
.overall.s-operational { background: var(--ok); }
.overall.s-degraded { background: var(--minor); }
.overall.s-partial_outage { background: var(--partial); }
.overall.s-major_outage { background: var(--major); }
.overall.s-unknown { background: var(--none); color: var(--text); }

.incident-banner { margin-top: 20px; border: 1px solid var(--border); border-left: 6px solid var(--partial); border-radius: 10px; padding: 12px 16px; background: var(--surface); }
.incident-banner h2 { margin: 0 0 6px; }
.incident-banner p { margin: 4px 0; }
.i-major, .i-critical { border-left-color: var(--major); }
.i-minor { border-left-color: var(--minor); }
.i-none { border-left-color: var(--link); }

.group h2 { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.components { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.component { padding: 14px 16px; border-top: 1px solid var(--border); }
.component:first-child { border-top: 0; }
.c-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.c-head p { margin: 2px 0 0; }
.c-meta { margin: 6px 0 8px; }
.c-meta .muted { display: block; overflow-wrap: anywhere; }

.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 0.875rem; font-weight: 600; }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--none); display: inline-block; }
.pill.s-operational { color: var(--ok); } .pill.s-operational .dot { background: var(--ok); }
.pill.s-degraded { color: var(--minor); } .pill.s-degraded .dot { background: var(--minor); }
.pill.s-partial_outage { color: var(--partial); } .pill.s-partial_outage .dot { background: var(--partial); }
.pill.s-major_outage { color: var(--major); } .pill.s-major_outage .dot { background: var(--major); }
.pill.s-unknown { color: var(--muted); }

.bars { display: flex; gap: 2px; height: 32px; }
.bars > span { flex: 1; border-radius: 2px; min-width: 2px; background: var(--none); }
.bars > span:hover { opacity: 0.7; }
.b-ok { background: var(--ok) !important; }
.b-minor { background: var(--minor) !important; }
.b-partial { background: var(--partial) !important; }
.b-major { background: var(--major) !important; }
.bars-legend { display: flex; justify-content: space-between; margin-top: 4px; }
.d30 { display: none; }
@media (max-width: 600px) {
  .bars > span:nth-child(-n+60) { display: none; }
  .d90 { display: none; } .d30 { display: inline; }
  .c-head { flex-direction: column; gap: 4px; }
}

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.tile p { margin: 0; }
.tile-v { font-size: 1.5rem; font-weight: 700; }
.tile-k { font-weight: 600; }

.incidents { list-style: none; padding: 0; margin: 0; }
.incidents > li { border-top: 1px solid var(--border); padding: 12px 0; }
.incidents > li:first-child { border-top: 0; }
.incidents p { margin: 4px 0; }
summary { cursor: pointer; font-size: 0.875rem; }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; }
.timeline li { border-left: 2px solid var(--border); padding: 0 0 12px 14px; }
.tl-status { font-weight: 700; }
.tl-resolved { color: var(--ok); } .tl-investigating { color: var(--major); } .tl-identified { color: var(--partial); } .tl-monitoring { color: var(--minor); }
.tl-body { margin: 2px 0; white-space: pre-line; }

.subscribe { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px 16px 12px; margin-top: 2rem; }
.sub-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.sub-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-form input[type=email] { flex: 1 1 240px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--bg); color: var(--text); }
.hp { display: none; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.facts dt { font-weight: 600; } .facts dd { margin: 0; }
.message { margin-top: 32px; }
.foot { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 12px; padding-bottom: 24px; font-size: 0.875rem; color: var(--muted); }
