
:root {
  color-scheme: light;
  --bg: #f6f7f9; --card: #ffffff; --text: #1c1f25; --muted: #5d6471; --line: #e2e5ea;
  --link: #be185d; --brand: #ec4899;
  --ok: #26a65b; --minor: #e9a400; --major: #ec6a1f; --critical: #df3b47; --none: #c9ced6;
  --band: linear-gradient(120deg, #ec4899 0%, #a855f7 60%, #6366f1 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1015; --card: #161a21; --text: #e9ebef; --muted: #9ca3af; --line: #272c36;
    --link: #f472b6; --none: #39404b;
  }
}
* { 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); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
header.top nav { display: flex; gap: 20px; font-size: 15px; }
header.top nav a { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand svg { height: 40px; width: auto; display: block; }
.brand .word { fill: var(--text); }
.brand span { font-size: 15px; color: var(--muted); font-weight: 500; border-left: 1px solid var(--line); padding-left: 10px; }
.band { height: 96px; background: var(--band); }
main.wrap { margin-top: -56px; padding-bottom: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.overall { display: flex; align-items: center; gap: 12px; padding: 18px 22px; color: #fff; font-size: 20px; font-weight: 600; border: 0; }
.overall.ok { background: var(--ok); }
.overall.minor { background: var(--minor); }
.overall.major { background: var(--major); }
.overall.critical { background: var(--critical); }
.overall .icon circle { fill: rgba(255,255,255,.25); }
.incident { overflow: hidden; margin-bottom: 20px; }
.incident > h2 { margin: 0; padding: 14px 22px; font-size: 20px; color: #fff; }
.incident > h2 a { color: #fff; }
.incident.minor > h2 { background: var(--minor); }
.incident.major > h2 { background: var(--major); }
.incident.critical > h2 { background: var(--critical); }
.updates { list-style: none; margin: 0; padding: 6px 22px 10px; }
.updates li { padding: 12px 0; border-top: 1px solid var(--line); }
.updates li:first-child { border-top: 0; }
.updates time, .muted { color: var(--muted); font-size: 14px; }
.affects { margin: 0; padding: 0 22px 16px; color: var(--muted); font-size: 14px; }
h2.section { font-size: 22px; margin: 36px 0 6px; }
.section-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.components { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.component { padding: 18px 22px 16px; border-top: 1px solid var(--line); }
.component:nth-child(-n+2) { border-top: 0; }
.component:nth-child(odd) { border-right: 1px solid var(--line); }
.component:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.component .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.component h3 { margin: 0; font-size: 17px; font-weight: 600; }
.help { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: 50%; font-size: 11px; color: var(--muted); cursor: help; vertical-align: 2px; }
.icon { width: 24px; height: 24px; flex: none; }
.icon circle { fill: var(--ok); }
.icon.c-minor circle { fill: var(--minor); }
.icon.c-major circle { fill: var(--major); }
.icon.c-critical circle { fill: var(--critical); }
.bars { display: flex; gap: 2px; height: 34px; }
.bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--none); position: relative; }
.bar.ok { background: var(--ok); }
.bar.minor { background: var(--minor); }
.bar.major { background: var(--major); }
.bar.critical { background: var(--critical); }
.bar:hover { opacity: .75; }
.tip { display: none; position: absolute; z-index: 5; top: 42px; left: 50%; transform: translateX(-50%);
  width: 220px; padding: 10px 12px; background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 13px; line-height: 1.45; }
.bar:hover .tip { display: block; }
.bar:nth-child(-n+12) .tip { left: 0; transform: none; }
.bar:nth-last-child(-n+12) .tip { left: auto; right: 0; transform: none; }
.tip b { display: block; margin-bottom: 4px; }
.tip ul { margin: 6px 0 0; padding-left: 16px; }
.legend { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.legend .rule { flex: 1; height: 1px; background: var(--line); }
.days-30 { display: none; }
.state { margin-top: 6px; font-size: 14px; color: var(--muted); }
.state.minor { color: var(--minor); }
.state.major { color: var(--major); }
.state.critical { color: var(--critical); }
.past .day { margin-top: 26px; }
.past .day h3 { font-size: 17px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.past .entry { margin: 14px 0 22px; }
.past .entry > a { font-weight: 600; font-size: 17px; }
.past .entry.minor > a { color: var(--minor); }
.past .entry.major > a { color: var(--major); }
.past .entry.critical > a { color: var(--critical); }
.past .entry .updates { padding: 0; }
.past .entry .updates li { border: 0; padding: 6px 0; }
.page { padding: 26px 26px 18px; }
.page h1 { margin: 0 0 6px; font-size: 26px; }
.page h1.minor { color: var(--minor); }
.page h1.major { color: var(--major); }
.page h1.critical { color: var(--critical); }
.page .updates { padding: 10px 0 0; }
.page .affects { padding: 0 0 14px; }
.month { margin-top: 26px; }
.month h2 { font-size: 19px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.month ul { list-style: none; margin: 0; padding: 0; }
.month li { padding: 10px 0; border-bottom: 1px solid var(--line); }
footer.bottom { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) {
  .components { grid-template-columns: 1fr; }
  .component { border-right: 0 !important; border-top: 1px solid var(--line) !important; }
  .component:first-child { border-top: 0 !important; }
  .bar:nth-child(-n+60) { display: none; }
  .bar:nth-child(-n+64) .tip { left: 0; transform: none; }
  .days-90 { display: none; }
  .days-30 { display: inline; }
  header.top nav { gap: 14px; }
  .brand span { display: none; }
  .overall, .incident > h2 { font-size: 18px; }
}
