:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ed;
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e4e1da;
  --accent: #2f5d8a;
  --accent-soft: #e8eef5;
  --yes: #1e7a4f;
  --yes-soft: #e3f3ea;
  --no: #8a8f98;
  --no-soft: #eeeff1;
  --warn-soft: #fbefd9;
  --warn-ink: #7a4b00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a; --surface: #1d2024; --surface-2: #23272c; --ink: #e8e6e3; --muted: #a0a4aa;
    --line: #30343a; --accent: #8db4dc; --accent-soft: #22303f; --yes: #6fd3a0; --yes-soft: #1b3328;
    --no: #9aa0a8; --no-soft: #2a2e33; --warn-soft: #3a2e17; --warn-ink: #f0c67a;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a; --surface: #1d2024; --surface-2: #23272c; --ink: #e8e6e3; --muted: #a0a4aa;
  --line: #30343a; --accent: #8db4dc; --accent-soft: #22303f; --yes: #6fd3a0; --yes-soft: #1b3328;
  --no: #9aa0a8; --no-soft: #2a2e33; --warn-soft: #3a2e17; --warn-ink: #f0c67a;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Inter", system-ui, sans-serif; }
main, .hero, footer { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }

.hero { text-align: center; padding-top: 56px; padding-bottom: 20px; }
.hero h1 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.2; margin: 8px auto 12px; max-width: 900px; }
.venue { color: var(--muted); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.authors { margin: 0 0 4px; font-weight: 500; }
.affil { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: .9rem; font-weight: 500; text-decoration: none; }
.btn.disabled { opacity: .45; }

section { padding: 28px 0 12px; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }
h2 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.6rem; margin: 0 0 10px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 22px 0 6px; }
section > p, .notes { max-width: 860px; }
.summary { font-size: 1.05rem; margin: 0 auto; }
.lede { color: var(--muted); margin-top: 0; }
.notes { padding-left: 20px; }
.notes li { margin-bottom: 6px; }
.limit { background: var(--surface-2); border-radius: 8px; padding: 12px 16px; margin-top: 16px; }

.fig { margin: 8px 0 12px; background: #fff; border-radius: 10px; padding: 12px; border: 1px solid var(--line); }
.fig img { width: 100%; height: auto; display: block; }
.fig figcaption { color: #5f6368; font-size: .85rem; margin-top: 6px; }

.pick { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); margin: 0 0 12px; }
.pick.hand { background: var(--warn-soft); color: var(--warn-ink); }

/* sample cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 16px 8px 52px; margin-bottom: 16px; }
.rowno { position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
.prompt { margin-bottom: 12px; max-width: 720px; }
.prompt audio { max-width: 360px; }
.q { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 1.05rem; margin: 4px 0 0; }
.group { margin-bottom: 10px; }
.gname { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tile { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.tile.ours { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lab { font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
audio { width: 100%; height: 36px; display: block; }
.said { font-size: .82rem; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.note { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }

/* detection marks */
.mark { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: .8rem;
  font-weight: 600; }
.mark .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mark.yes { color: var(--yes); } .mark.yes .dot { background: var(--yes); }
.mark.no { color: var(--no); } .mark.no .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--no); }
.mark .z { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.mark.inline { display: inline-flex; padding: 0 8px; border-radius: 999px; }
.mark.inline.yes { background: var(--yes-soft); } .mark.inline.no { background: var(--no-soft); }

/* robustness tables */
.scroll { overflow-x: auto; margin-bottom: 8px; }
table.robust { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; }
table.robust th { text-align: left; font-size: .85rem; color: var(--muted); padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
table.robust th.cond { color: var(--ink); vertical-align: top; padding-top: 18px; }
table.robust td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 220px; }
table.robust tr:last-child td, table.robust tr:last-child th { border-bottom: 0; }
table.robust .tile .lab { display: none; }

code { font-size: .9em; background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
footer { color: var(--muted); font-size: .85rem; padding-top: 20px; padding-bottom: 48px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .card { padding-left: 16px; padding-top: 48px; }
  .prompt audio { max-width: none; }
}
