:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d1f23;
  --muted: #5d6470;
  --line: #e4e1da;
  --accent: #1f4e79;
  --accent-soft: #e8eef5;
  --ok: #2f6f4f;
  --ok-soft: #e6f2ec;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --bad: #9b2c2c;
  --bad-soft: #f8e6e6;
  --neutral-soft: #eceae4;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a; --surface: #1d2024; --ink: #e8e6e1; --muted: #a2a8b2; --line: #30343a;
    --accent: #8db4dc; --accent-soft: #1f2a36; --ok: #7cc39c; --ok-soft: #1b2b23;
    --warn: #e0b45c; --warn-soft: #2e2716; --bad: #e08c8c; --bad-soft: #301d1d; --neutral-soft: #2a2d31;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.mark { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 14px; }
nav a:hover { color: var(--accent); }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 40px 0 8px; }
.intro p { color: var(--muted); max-width: 680px; }
.engine { font-size: 13px; color: var(--muted) !important; margin: 6px 0 0; }
.engine::before { content: "⏳ "; }
.notice { background: var(--accent-soft); color: var(--ink) !important; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
form#ask { display: flex; gap: 10px; margin: 24px 0 12px; }
#q { flex: 1; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
#q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; font-weight: 500; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
button.ghost { background: transparent; color: var(--accent); margin-top: 8px; }
button:disabled { opacity: .6; cursor: wait; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.examples button { background: var(--surface); color: var(--ink); border-color: var(--line); font-size: 13px; padding: 6px 10px; font-weight: 400; text-align: left; }
.examples button:hover { border-color: var(--accent); }
#result { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; margin-bottom: 36px; }
.meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.status { font-weight: 600; padding: 2px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .02em; }
.status.verified { background: var(--ok-soft); color: var(--ok); }
.status.partially_verified { background: var(--warn-soft); color: var(--warn); }
.status.insufficient_evidence, .status.refused { background: var(--bad-soft); color: var(--bad); }
.status.ambiguous { background: var(--neutral-soft); color: var(--muted); }
.answer { font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.answer p { margin: 0 0 10px; }
.answer ul { margin: 6px 0 0; padding-left: 20px; }
.answer li { margin-bottom: 8px; }
sup.cite { font-family: var(--sans); font-size: 11px; color: var(--accent); cursor: pointer; margin-left: 1px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.options button { background: var(--surface); color: var(--accent); font-size: 14px; padding: 6px 12px; }
.panels { margin-top: 18px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 14px; }
#sources { padding-left: 22px; font-size: 14px; }
#sources li { margin: 8px 0; }
#sources li.flash { background: var(--accent-soft); }
#sources a { color: var(--accent); }
.snippet { display: block; color: var(--muted); font-family: var(--serif); font-size: 14px; margin-top: 2px; }
.calc { font-size: 14px; margin: 10px 0; }
.calc code { background: var(--neutral-soft); padding: 1px 6px; border-radius: 4px; }
#checks { list-style: none; padding: 0; font-size: 14px; }
#checks li { margin: 6px 0; }
#checks .pass::before { content: "✓ "; color: var(--ok); font-weight: 600; }
#checks .fail::before { content: "✗ "; color: var(--bad); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: 14px; width: 100%; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.scope { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.scope h2 { font-family: var(--serif); color: var(--ink); font-size: 20px; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 30px; }
.sr { position: absolute; left: -9999px; }
@media (max-width: 600px) {
  .intro h1 { font-size: 27px; }
  form#ask { flex-direction: column; }
  #result { padding: 16px; }
  nav a { margin-left: 12px; }
}
