:root {
  --bg: #f6f5f1; --card: #fff; --ink: #1c1b18; --muted: #6b675e; --line: #e4e1d8; --accent: #1f4d3d;
  --low: #2f6b4f; --low-bg: #e3f1e9; --elev: #8a5a00; --elev-bg: #fbefd2; --high: #9b2c2c; --high-bg: #f9dede;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 980px; margin: 0 auto; padding: 24px 20px 60px; }
main.wide { max-width: 1280px; }
h1 { font-size: 22px; margin: 0; } h2 { font-size: 15px; margin: 0 0 12px; letter-spacing: .01em; } h3 { font-size: 14px; margin: 0 0 6px; }
p { margin: 0 0 10px; } a { color: inherit; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.brand { font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.01em; } .brand span { color: var(--accent); } .brand.big { font-size: 30px; margin-bottom: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.card.narrow { max-width: 380px; margin: 12vh auto; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .cols .card { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
label.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; }
input, textarea, select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
label.inline select { width: auto; margin: 0; } input[type=file] { border: 0; padding: 0 0 14px; font-size: 13px; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 9px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.danger { color: var(--high); border-color: #e7c4c4; } button.link { border: 0; background: none; color: var(--muted); padding: 0; }
.banner { background: var(--elev-bg); color: #5c3d00; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.error { background: var(--high-bg); color: var(--high); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
code { background: #efede6; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.list { list-style: none; margin: 0; padding: 0; } .list li + li { border-top: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; text-decoration: none; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #efede6; color: var(--muted); white-space: nowrap; }
.pill.live, .pill.demonstrated, .pill.verify { background: var(--low-bg); color: var(--low); }
.pill.warn, .pill.partly, .pill.depth { background: var(--elev-bg); color: var(--elev); }
.pill.not_covered { background: var(--high-bg); color: var(--high); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.bar-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .bar-actions form { margin: 0; }
.livegrid { display: grid; grid-template-columns: minmax(340px, 5fr) 6fr; gap: 16px; align-items: start; }
.livegrid .card { margin: 0; } #guide h2 + div, #guide ul { margin-bottom: 22px; }
.followups { margin: 0; padding-left: 20px; } .followups li { margin-bottom: 12px; font-size: 16px; line-height: 1.45; }
.level { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.level.low { background: var(--low-bg); color: var(--low); } .level.elevated { background: var(--elev-bg); color: var(--elev); } .level.high { background: var(--high-bg); color: var(--high); }
.evidence { list-style: none; margin: 0 0 12px; padding: 0; } .evidence li { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin-bottom: 12px; }
blockquote { margin: 6px 0 0; color: var(--muted); font-style: italic; }
.transcript { max-height: 68vh; overflow-y: auto; } .turn { margin: 0 0 12px; } .turn .who { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.turn.cand { border-left: 3px solid var(--accent); padding-left: 10px; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); } th { font-size: 12px; color: var(--muted); border-top: 0; }
.qa { padding: 12px 0; border-top: 1px solid var(--line); } .qa:first-of-type { border-top: 0; } .qa .q { font-weight: 600; } .qa .q span { color: var(--accent); margin-right: 8px; } .qa .a { margin: 0; }
.seekable { cursor: pointer; } .seekable:hover { background: #faf9f5; }
audio { width: 100%; margin-bottom: 8px; }
@media (max-width: 860px) { .cols, .livegrid { grid-template-columns: 1fr; } }
