:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --inset: #f0f4fa;
  --text: #1c2430;
  --muted: #586273;
  --line: rgba(27, 62, 114, 0.14);
  --brand: #1b3e72;
  --accent: #19a9f2;
  --focus: #ffc857;
  --operational: #1f9d61;
  --degraded: #c27700;
  --outage: #d93636;
  --maintenance: #2f6fd6;
  --unknown: #c9d2df;
  --operational-soft: #e2f4ea;
  --degraded-soft: #fff1d6;
  --outage-soft: #fde5e5;
  --maintenance-soft: #e3ecfc;
  --unknown-soft: #eaeef4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07162d;
    --surface: #0d2444;
    --inset: #112c52;
    --text: #e9eef5;
    --muted: #a8b4c5;
    --line: rgba(255, 255, 255, 0.12);
    --brand: #ffffff;
    --operational: #34c37f;
    --degraded: #f3a73a;
    --outage: #f06363;
    --maintenance: #6b9cf0;
    --unknown: #33476a;
    --operational-soft: rgba(52, 195, 127, 0.16);
    --degraded-soft: rgba(243, 167, 58, 0.16);
    --outage-soft: rgba(240, 99, 99, 0.16);
    --maintenance-soft: rgba(107, 156, 240, 0.16);
    --unknown-soft: rgba(255, 255, 255, 0.06);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.55 "Manrope", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Onest", "Manrope", Arial, sans-serif; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(960px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; padding: 10px 14px; border-radius: 8px; background: var(--surface); color: var(--text); z-index: 10; }
.skip-link:focus { top: 12px; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand svg { width: 104px; height: auto; display: block; }
.brand-label { font: 600 16px/1 "Onest", "Manrope", Arial, sans-serif; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.top-link { font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.top-link:hover { color: var(--text); text-decoration: underline; }
main { padding: 28px 0 40px; display: grid; gap: 20px; }
.banner { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.banner h1 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; }
.banner p { margin-top: 6px; color: var(--muted); }
.updated { white-space: nowrap; }
.updated::before { content: "· "; }
.banner-dot { flex: none; width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: var(--unknown); box-shadow: 0 0 0 6px var(--unknown-soft); }
.banner.is-operational .banner-dot { background: var(--operational); box-shadow: 0 0 0 6px var(--operational-soft); }
.banner.is-degraded .banner-dot { background: var(--degraded); box-shadow: 0 0 0 6px var(--degraded-soft); }
.banner.is-outage .banner-dot { background: var(--outage); box-shadow: 0 0 0 6px var(--outage-soft); }
.banner.is-maintenance .banner-dot { background: var(--maintenance); box-shadow: 0 0 0 6px var(--maintenance-soft); }
.stale { padding: 12px 16px; border-radius: 12px; background: var(--degraded-soft); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { padding: 16px 18px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); }
.tile-value { font: 700 22px/1.2 "Onest", "Manrope", Arial, sans-serif; }
.tile-label { margin-top: 2px; font-size: 13px; color: var(--muted); }
.services { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.services-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 18px 24px 14px; border-bottom: 1px solid var(--line); }
.services-head h2 { font-size: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--unknown); }
.service-list { list-style: none; margin: 0; padding: 0; }
.service { padding: 20px 24px; display: grid; gap: 12px; }
.service + .service { border-top: 1px solid var(--line); }
.service-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service h3 { font-size: 17px; font-weight: 600; }
.service-desc { margin-top: 2px; font-size: 14px; color: var(--muted); }
.pill { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--text); background: var(--unknown-soft); }
.pill.is-operational { background: var(--operational-soft); }
.pill.is-degraded { background: var(--degraded-soft); }
.pill.is-outage { background: var(--outage-soft); }
.pill.is-maintenance { background: var(--maintenance-soft); }
.pill::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--unknown); vertical-align: 1px; }
.pill.is-operational::before, .bar.is-operational, .swatch.is-operational { background: var(--operational); }
.pill.is-degraded::before, .bar.is-degraded, .swatch.is-degraded { background: var(--degraded); }
.pill.is-outage::before, .bar.is-outage, .swatch.is-outage { background: var(--outage); }
.pill.is-maintenance::before, .bar.is-maintenance { background: var(--maintenance); }
.history { position: relative; }
.bars { display: flex; gap: 2px; height: 30px; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 3px; background: var(--unknown); cursor: pointer; transition: opacity 120ms ease; }
.bars:hover .bar { opacity: 0.55; }
.bars .bar:hover, .bars .bar.is-current { opacity: 1; }
.bar.is-current { box-shadow: inset 0 0 0 2px var(--text); }
.bar-detail { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 8px 12px; border-radius: 10px; background: var(--brand); color: var(--bg); font-size: 13px; z-index: 1; }
.bar-detail:empty { display: none; }
.bar-scale { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: -4px; font-size: 13px; color: var(--muted); }
.bar-scale > :last-child { text-align: right; }
.scale-mid { color: var(--text); font-weight: 600; }
.days-short { display: none; }
.checks summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.checks summary::marker { content: ""; }
.checks summary > span:first-child::before { content: "▸ "; }
.checks[open] summary > span:first-child::before { content: "▾ "; }
.last-check { font-weight: 500; }
.checks ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.check { padding: 12px 14px; border-radius: 12px; background: var(--inset); }
.check-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.check-name { font-weight: 700; }
.check-desc { margin-top: 2px; font-size: 13px; color: var(--muted); }
.check-stats { margin-top: 4px; font-size: 13px; }
.notices { display: grid; gap: 12px; }
.notices > h2 { font-size: 18px; }
.notice { padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); border-left: 6px solid var(--unknown); background: var(--surface); }
.notice.is-degraded { border-left-color: var(--degraded); }
.notice.is-outage { border-left-color: var(--outage); }
.notice.is-maintenance { border-left-color: var(--maintenance); }
.notice.is-resolved { border-left-color: var(--operational); }
.notice-kind { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.notice h3 { margin-top: 4px; font-size: 18px; }
.notice-meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.updates { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.updates li { padding-left: 14px; border-left: 2px solid var(--line); }
.update-head { font-size: 14px; color: var(--muted); }
.update-head strong { color: var(--text); }
.foot { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .top-inner { padding: 12px 0; }
  .brand svg { width: 88px; }
  .brand-label { font-size: 14px; padding-left: 10px; }
  .top-link { font-size: 13px; }
  .banner { padding: 16px; border-radius: 14px; }
  .summary { grid-template-columns: 1fr; gap: 8px; }
  .tile { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; }
  .tile-value { font-size: 18px; order: 2; }
  .services { border-radius: 14px; }
  .services-head, .service { padding-inline: 16px; }
  .bar:nth-child(-n+45) { display: none; }
  .days-long { display: none; }
  .days-short { display: inline; }
  .bar-scale { grid-template-columns: 1fr 1fr; }
  .scale-mid { grid-column: 1 / -1; grid-row: 2; }
  .checks summary { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
