:root {
  color-scheme: light;
  --ink: #222d30;
  --muted: #536368;
  --line: #d7e0e1;
  --accent: #096f70;
  --good: #267442;
  --bad: #aa303d;
  --unknown: #697a80;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, summary { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #196aab; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #f7faf9; }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand svg { color: var(--accent); width: 28px; height: 28px; }
.app-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.app-link svg { width: 16px; height: 16px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 36px 0 24px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 750; margin: 0 0 5px; }
h1, h2, h3, p, dt, dd { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 680; }
h2 { margin: 0; font-size: 19px; line-height: 1.45; }
h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.refresh { flex-shrink: 0; width: 180px; text-align: right; }
.refresh button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #97aeb0; border-radius: 4px; background: #fff; color: var(--accent); }
.refresh button:hover { background: #edf6f5; }
.refresh svg { width: 20px; height: 20px; }
.refresh p { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.overview { padding: 20px; background: #f4f8f7; border-block: 1px solid var(--line); border-left: 4px solid var(--unknown); }
.overview[data-status="operational"] { border-left-color: var(--good); }
.overview[data-status="failed"] { border-left-color: var(--bad); }
.overview p { margin: 8px 0 0; max-width: 95ch; color: var(--muted); font-size: 14px; }
.section { padding-top: 28px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.evidence-note { color: var(--muted); font-size: 13px; margin: 10px 0 20px; max-width: 105ch; }
.service { border-top: 1px solid var(--line); padding: 20px 0; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.state { display: inline-flex; align-items: center; gap: 7px; max-width: 45%; text-align: right; font-size: 13px; font-weight: 650; }
.state::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; border: 1px solid currentColor; border-radius: 3px; font-size: 12px; line-height: 1; }
.state.operational { color: var(--good); }
.state.operational::before { content: "+"; }
.state.failed { color: var(--bad); }
.state.failed::before { content: "!"; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 14px 0 10px; }
.metrics > div { min-width: 0; }
.metrics dt { font-size: 12px; color: var(--muted); }
.metrics dd { margin: 3px 0 0; font-size: 20px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; }
.counts { margin: 8px 0 12px; font-size: 12px; color: var(--muted); }
.history { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 5px; }
.day { position: relative; height: 34px; width: 100%; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 2px; background: var(--unknown); color: #fff; font-size: 13px; font-weight: 700; }
.day:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.day:focus-visible { outline: 3px solid #196aab; outline-offset: 3px; z-index: 1; }
.operational.day, .operational.key { background: var(--good); }
.partial.day, .partial.key { background: #236d81; border-bottom: 5px solid #91b7c2; }
.failed.day, .failed.key { background: var(--bad); }
.unknown.day, .unknown.key { background: var(--unknown); }
.history-dates { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 5px; }
.service details { font-size: 13px; color: var(--muted); margin-top: 10px; }
summary { width: fit-content; min-height: 28px; padding-block: 3px; }
details p { margin: 6px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.legend > span { display: flex; align-items: center; gap: 7px; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 2px; flex-shrink: 0; }
.measurement-note { padding-block: 32px; }
.measurement-note p { max-width: 105ch; font-size: 13px; color: var(--muted); margin: 10px 0; }
.error { padding: 12px 16px; color: #8d2231; background: #fff3f4; border-left: 3px solid var(--bad); font-size: 14px; }
.footer { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 12px; }
.footer strong { color: var(--ink); }
.footer span:last-child { margin-left: auto; }
dialog { width: 520px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); padding: 24px; border: 1px solid #98aeb1; border-radius: 6px; background: #fff; color: var(--ink); overflow: auto; }
dialog::backdrop { background: rgb(20 30 34 / 45%); }
dialog p { font-size: 14px; }
dialog button { display: block; margin-left: auto; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 4px; color: #fff; background: var(--accent); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px; background: #fff; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) { .history { grid-template-columns: repeat(15, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand { font-size: 20px; }
  .app-link { font-size: 12px; }
  .page-heading { align-items: flex-start; gap: 12px; padding-top: 28px; }
  h1 { font-size: 26px; }
  .refresh { width: 88px; }
  .refresh p { font-size: 11px; }
  .overview { padding: 16px 12px; }
  .overview h2 { font-size: 17px; }
  .history { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
  .day { height: 40px; }
  .metrics { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .metrics > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 14px; }
  .metrics dd { text-align: right; margin: 0; font-size: 18px; }
  .state { font-size: 12px; }
  .footer span:last-child { margin-left: 0; }
}
