:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: #18212f;
  --muted: #637083;
  --border: #e4e8ed;
  --surface: #fff;
  --background: #fafbfc;
  --tooltip-shadow: #0002;
  --healthy: #18764a;
  --healthy-bg: #effaf3;
  --failing: #b42318;
  --failing-bg: #fff3f1;
  --unknown: #6a7381;
  --unknown-bg: #f1f3f6;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 800px; margin: 0 auto; padding: 52px 24px 32px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.wordmark { color: inherit; text-decoration: none; font-size: 26px; font-weight: 750; letter-spacing: -1px; }
.header-label { font-size: 14px; color: var(--muted); }
section + section { margin-top: 48px; }
.banner { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--status-bg); }
[data-status="healthy"] { --status-color: var(--healthy); --status-bg: var(--healthy-bg); }
[data-status="failing"] { --status-color: var(--failing); --status-bg: var(--failing-bg); }
[data-status="unknown"] { --status-color: var(--unknown); --status-bg: var(--unknown-bg); }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--status-color); flex-shrink: 0; }
.banner > .status-dot { width: 12px; height: 12px; }
h1 { font-size: 20px; line-height: 1.35; margin: 0; font-weight: 650; }
.banner p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 30px 0 12px; }
h2 { margin: 0; font-size: 15px; font-weight: 650; }
.checked-at { font-size: 12px; color: var(--muted); }
ul { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; font-size: 14px; }
li + li { border-top: 1px solid var(--border); }
.component-status { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--status-color); text-align: right; }
.coverage { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }
#announcement { border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-top: 24px; line-height: 1.6; background: var(--surface); white-space: pre-wrap; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) {
  main { padding: 28px 16px; }
  .page-header { margin-bottom: 32px; }
  .banner { padding: 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  li { padding: 17px 16px; }
  h1 { font-size: 18px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --text: #e4e8ef; --muted: #a0a9b8; --border: #303845;
    --surface: #19202b; --background: #111720;
    --tooltip-shadow: #0006;
    --healthy: #79d5a1; --healthy-bg: #142b23;
    --failing: #ffaaa0; --failing-bg: #321f21;
    --unknown: #b5bdca; --unknown-bg: #202733;
  }
}
li { display: block; }
.component-current { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.history-strip { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; margin-top: 18px; }
.history-day { appearance: none; border: 0; border-radius: 2px; padding: 0; height: 28px; min-width: 0; background: var(--status-color); cursor: pointer; }
.history-day[data-status="unknown"] { background: var(--border); }
.history-day[data-status="partial"] { background: repeating-linear-gradient(135deg, var(--healthy) 0 3px, var(--border) 3px 6px); }
.history-day:hover, .history-day:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; position: relative; z-index: 1; }
.history-range { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.history-legend { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 14px; }
@media (max-width: 520px) { .history-strip { gap: 1px; } .history-day { height: 24px; } }

.history { position: relative; display: flow-root; }
.history-tooltip {
  position: absolute; top: 10px; transform: translateY(-100%); z-index: 2;
  width: max-content; max-width: 100%; padding: 7px 10px; border-radius: 6px;
  background: var(--text); color: var(--surface); font-size: 12px; line-height: 1.4;
  pointer-events: none; box-shadow: 0 2px 8px var(--tooltip-shadow);
}
