:root {
  color-scheme: light;
  font: 16px/1.55 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  scroll-padding: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--ground); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button, select, summary { cursor: pointer; touch-action: manipulation; }
button:disabled, select:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.skip { position: absolute; z-index: 3; left: 16px; top: 8px; padding: 8px 16px; background: white; color: #172432; transform: translateY(-160%); }
.skip:focus { transform: none; }
.frame { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top .frame, footer .frame, .toolbar, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.top .frame { min-height: 66px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; }
.mark { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: var(--mark); color: var(--mark-text); font: 700 17px/1 ui-monospace, monospace; }
.small { font-size: 14px; color: var(--muted); }
.section-title h2 { font-size: clamp(24px, 3vw, 32px); }
.section-title p { margin-top: 6px; }
footer { border-top: 1px solid var(--line); }
footer .frame { padding-block: 18px; }
.btn { min-height: 44px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink); background: var(--ground); font-weight: 680; transition: background-color .16s, color .16s; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-text); }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn:disabled { background: var(--soft); border-color: var(--line); color: var(--muted); opacity: .8; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field :is(select, input) { min-height: 44px; min-width: 0; max-width: 100%; padding: 8px 12px; background: var(--ground); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; }
.field :is(select, input):hover { border-color: var(--ring); }
.form-error { color: var(--error); margin: 8px 0 0; font-size: 14px; font-weight: 650; }
.status { min-height: 1.55em; overflow-wrap: anywhere; }
.mono { font-family: "SF Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .frame { width: calc(100% - 48px); } }
@media (max-width: 640px) { .frame { width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

:root {
  --ground: #fbfaf6;
  --ink: #242a33;
  --muted: #505b67;
  --line: #cbc9c4;
  --soft: #eeeae2;
  --ring: #8e3b18;
  --error: #922a1e;
  --mark: #272d35;
  --mark-text: #fff;
  --action: #95401c;
  --action-text: #fff;
  --action-hover: #713012;
}
.hero { background: #ede8dc; border-bottom: 1px solid var(--line); }
.hero .frame { padding-block: 40px 32px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.065em; }
.hero p { margin-top: 8px; color: var(--muted); }
.board { padding-block: 28px 38px; }
.board-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1.4fr); gap: 18px; align-items: start; }
.card { min-width: 0; border: 1px solid var(--line); background: #fff; padding: 22px; border-radius: 14px; }
fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
legend { font-size: 25px; padding: 0; margin-bottom: 14px; line-height: 1.25; font-weight: 750; }
.options { display: grid; gap: 10px; }
.option { background: var(--ground); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.option:hover { background: var(--soft); }
.option:has(input:checked) { border-color: var(--ring); background: #fbefe6; }
.option:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.option input { accent-color: var(--action); width: 18px; height: 18px; margin: 0; }
.option :is(b, small) { display: block; overflow-wrap: anywhere; }
.vote-actions { margin-top: 12px; }
.vote-actions .status { color: var(--muted); }
.tally h2 { font-size: 20px; }
.total-line { margin-top: 12px; display: flex; gap: 8px; align-items: baseline; }
#total { font-size: 46px; font-weight: 750; line-height: 1; }
.results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; font-size: 14px; }
.result-row strong { overflow-wrap: anywhere; }
.result-row progress { grid-column: 1 / -1; height: 8px; width: 100%; appearance: none; overflow: hidden; border: 0; border-radius: 20px; background: var(--soft); }
.result-row progress::-webkit-progress-bar { background: var(--soft); }
.result-row progress::-webkit-progress-value { background: var(--action); border-radius: 20px; }
.result-row progress::-moz-progress-bar { background: var(--action); border-radius: 20px; }
.load-panel { margin-bottom: 12px; }
.load-panel p { margin-block: 4px 10px; }
@media (max-width: 740px) { .board-layout { grid-template-columns: minmax(0, 1fr); } .card { padding: 16px; } }
