/* Tokens for light and dark; no third-party fonts. */
:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1b1f24;
  --muted: #59636e;
  --border: #d5dae0;
  --link: #0b5cad;
  --accent-0: #0b6bcb;
  --accent-1: #b35900;
  --on-accent: #ffffff;
  --notice: #fff4e5;
  --focus: #0b5cad;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #1a1f25;
    --text: #e7eaee;
    --muted: #a3acb6;
    --border: #2e353d;
    --link: #79b8ff;
    --accent-0: #5aa7ff;
    --accent-1: #ffa94d;
    --on-accent: #0b1220;
    --notice: #3a2a12;
    --focus: #79b8ff;
  }
}

* { 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, sans-serif;
}
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface);
}
.brand { font-weight: 600; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 1rem; }
.page { max-width: 64rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.cards { list-style: none; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.card { display: flex; flex-direction: column; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); }
.notice { margin-top: 1.5rem; padding: 0.75rem 1rem; border-radius: 0.5rem; background: var(--notice); }

.panel { margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); }
.latest { margin: 0 0 0.5rem; }
.latest .key { color: var(--muted); margin-left: 0.5rem; }
.too-few { font-weight: 600; color: var(--muted); }
.figure { margin: 0; }
.chart { display: block; width: 100%; max-width: 40rem; height: auto; }
.chart .axis { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 15px; }
.chart .bar-label { fill: var(--muted); font-size: 13px; }
.chart .line { fill: none; stroke-width: 2.5; }
.chart .line.series-0 { stroke: var(--accent-0); }
.chart .line.series-1 { stroke: var(--accent-1); }
.chart .dot.series-0, .chart .bar.series-0 { fill: var(--accent-0); }
.chart .dot.series-1, .chart .bar.series-1 { fill: var(--accent-1); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--muted); }
.swatch::before { content: ""; display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.35rem; border-radius: 2px; vertical-align: -0.05rem; }
.swatch.series-0::before { background: var(--accent-0); }
.swatch.series-1::before { background: var(--accent-1); }

.weeks { margin-top: 0.75rem; }
.weeks table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.weeks th, .weeks td { text-align: left; padding: 0.25rem 0.5rem; border-bottom: 1px solid var(--border); }
.weeks td { font-variant-numeric: tabular-nums; }
.none { color: var(--muted); }

.values { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.values div { display: flex; gap: 0.5rem; }
.values dt { color: var(--muted); }
.values dd { margin: 0; font-weight: 600; }
.evidence { padding-left: 1.25rem; }
.evidence li { overflow-wrap: anywhere; }

.button {
  font: inherit; padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid var(--border);
  background: var(--accent-0); color: var(--on-accent); cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: wait; }
.error h1 { font-size: 2rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.link-button { font: inherit; padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; cursor: pointer; }
.signin { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
a.button { display: inline-block; text-decoration: none; }
.identity-form { display: grid; gap: 0.75rem; max-width: 28rem; margin-bottom: 1rem; }
.identity-form fieldset { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.identity-form label { display: block; margin-bottom: -0.5rem; }
.identity-form label.choice { display: inline-flex; align-items: center; gap: 0.35rem; }
.identity-form input:not([type="radio"]) { font: inherit; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg); color: var(--text); }
.identities { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.identities th, .identities td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
