:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #202824;
  background: #f5f6f4;
  line-height: 1.5;
  font-synthesis: none;
  --muted: #525e57;
  --border: #dce1db;
  --accent: #225640;
}

* { box-sizing: border-box; }
body { margin: 0; padding: clamp(1rem, 8vh, 5rem) 1rem; }
.panel { max-width: 29rem; margin: 0 auto; padding: clamp(1.25rem, 5vw, 2rem); background: white; border: 1px solid var(--border); border-radius: 12px; }
.panel-wide { max-width: 36rem; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
h2 { margin-top: 1.5rem; font-size: 1rem; }
h1 + form, h1 + p, .facts, .section { margin-top: 1.5rem; }
form { display: grid; gap: .55rem; }
label, legend { font-weight: 600; }
input, textarea, button { font: inherit; }
input:not([type=radio]), textarea { width: 100%; padding: .65rem .75rem; color: inherit; border: 1px solid #9daaa0; border-radius: 6px; background: white; }
input + label, textarea + label { margin-top: .55rem; }
textarea { resize: vertical; }
button { justify-self: start; padding: .64rem 1rem; margin-top: .45rem; background: var(--accent); color: white; border: 1px solid transparent; border-radius: 6px; font-weight: 600; cursor: pointer; }
button:hover { background: #194432; }
button.quiet { padding: 0; margin: 0; color: var(--accent); background: transparent; border: 0; text-decoration: underline; }
a { color: var(--accent); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid #31845b; outline-offset: 3px; }
.entry-code { text-transform: uppercase; letter-spacing: .12em; }
.session-code { font-family: ui-monospace, monospace; font-size: 1.4rem; letter-spacing: .13em; }
.hint, .facts span, .rows li > a + span { color: var(--muted); font-size: .9rem; font-weight: 400; }
.error { color: #9f221e; font-weight: 600; margin-bottom: .25rem; }
.facts { display: flex; flex-wrap: wrap; gap: .8rem 2rem; padding: .9rem 1rem; background: #f4f6f3; border-radius: 6px; }
.facts > div { display: grid; align-content: space-between; gap: .2rem; }
.rows { list-style: none; padding: 0; margin: 1rem 0 0; }
.rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.rows li > a + span { white-space: nowrap; }
.results { width: 100%; margin-top: .45rem; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.results th, .results td { padding: .55rem .25rem; border-bottom: 1px solid var(--border); text-align: right; }
.results tr > :first-child { padding-left: 0; text-align: left; overflow-wrap: anywhere; }
.results thead th { color: var(--muted); font-size: .9rem; }
.results thead th:nth-child(n+2) { width: 4.6rem; }
.results tbody th { font-weight: 400; }
.results td { white-space: nowrap; }
.footer { padding-top: 1.1rem; margin-top: 1.4rem; border-top: 1px solid var(--border); font-size: .9rem; }
fieldset { display: grid; gap: .55rem; margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: .65rem; }
.choice { display: flex; align-items: center; gap: .7rem; padding: .7rem; border: 1px solid var(--border); border-radius: 6px; font-weight: 400; cursor: pointer; overflow-wrap: anywhere; }
.choice:has(input:checked) { border-color: var(--accent); background: #f0f6f1; }
.choice input { flex: none; margin: 0; accent-color: var(--accent); }
