:root {
  --bg: #0b0d10;
  --fg: #e8edf2;
  --muted: #8b97a5;
  --accent: #c8d3e0;
  --card: #14181d;
  --line: #232a32;
  --well: #0f1216;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { height: 100%; }
body { min-height: 100%; display: flex; flex-direction: column; margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; }
.column { max-width: 44rem; margin-left: auto; margin-right: auto; width: 100%; }
.bar { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.brand { color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.5rem; }
.brand .mark { width: 0.7rem; height: 0.7rem; border-radius: 999px; background: var(--accent); display: inline-block; box-shadow: -0.35rem 0 0 color-mix(in srgb, var(--accent) 45%, transparent); margin-left: 0.35rem; }
main { padding: 1rem; flex: 1; }
footer { padding: 1rem; font-size: 0.875rem; }
h1 { font-size: 1.4rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.muted { color: var(--muted); font-size: 0.875rem; }
.label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-bottom: 0.25rem; }
.notice { background: var(--well); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.8rem; }
button { font: inherit; color: var(--fg); background: var(--well); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.9rem; cursor: pointer; }
button:hover { border-color: var(--muted); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
button.quiet { background: transparent; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; flex: 1; min-width: 0; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
input, select { font: inherit; color: var(--fg); background: var(--well); border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; width: 100%; color-scheme: dark; }
.roles, .results { list-style: none; margin: 0; padding: 0; }
.roles li, .results li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.roles li:last-child, .results li:last-child { border-bottom: 0; }
.role-head { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.question { touch-action: pan-y; user-select: none; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.5rem 0 0.75rem; }
.choice { text-align: left; padding: 1rem; min-height: 7rem; line-height: 1.4; border-radius: 12px; }
.choice:hover { background: color-mix(in srgb, var(--accent) 10%, var(--well)); }
.evidence { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.5rem; }
.evidence .field { margin-bottom: 0; }
@media (max-width: 34rem) {
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 0; }
  .evidence { flex-direction: column; align-items: stretch; }
}
