:root {
  --bg: #fbfaf7;
  --fg: #1d2421;
  --muted: #5f6b66;
  --line: #dfe3df;
  --accent: #1f6f5c;
  --accent-fg: #fff;
  --panel: #fff;
  --ok: #1f6f5c;
  --bad: #a33a2b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615;
    --fg: #e5ebe8;
    --muted: #9aa7a1;
    --line: #2a3330;
    --accent: #5cc4a5;
    --accent-fg: #0d1211;
    --panel: #1a201e;
    --ok: #5cc4a5;
    --bad: #f08a7a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
main, .top, footer { max-width: 920px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 48px; }
.top {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
  padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--fg); letter-spacing: -0.01em; }
.top .search { flex: 1 1 220px; }
.top nav { display: flex; gap: 14px; font-size: 0.95rem; }
input, select, button { font: inherit; color: inherit; }
input, select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
button {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-fg); cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 28px 0 8px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
h1.key { font-size: 1.6rem; }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }
.crumbs { margin: 20px 0 0; font-size: 0.9rem; color: var(--muted); }
.hero h1 { font-size: 2.2rem; }
.big-search { display: flex; gap: 8px; margin: 18px 0 10px; }
.big-search input { font-size: 1.1rem; padding: 10px 12px; }
.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0;
  padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
meter { width: 90px; height: 10px; vertical-align: middle; margin-left: 6px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.list li .muted { margin-left: 8px; font-size: 0.9rem; }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.claims { display: block; overflow-x: auto; }
.vote { white-space: nowrap; }
.vote button { padding: 3px 9px; font-size: 0.85rem; background: transparent; color: var(--accent); }
.state { font-size: 0.85rem; }
.state-accepted { color: var(--ok); font-weight: 600; }
.state-rejected { color: var(--bad); }
.correction { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.correction label { display: grid; gap: 4px; font-size: 0.9rem; color: var(--muted); }
.status { min-height: 1.5em; font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
footer { padding-top: 18px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) {
  h1, .hero h1 { font-size: 1.5rem; }
  .correction { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
