:root {
  --fg: #1d2330; --muted: #5d6675; --bg: #fbfbfa; --line: #dfe2e6; --accent: #1f4e8c;
  --note-bg: #fff6dc; --alert: #a3261c; --ok: #1d6b3a;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5; color: var(--fg); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e8eb; --muted: #9aa3af; --bg: #15181d; --line: #2c323b; --accent: #8db4ec; --note-bg: #3a3218; --alert: #f08a80; --ok: #7fd19c; }
}
body { margin: 0; }
main { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
a { color: var(--accent); }
.site-header { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 1rem; align-items: center; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.stack { display: flex; flex-direction: column; gap: .5rem; max-width: 32rem; }
.row { display: flex; gap: .5rem; align-items: center; margin-bottom: .75rem; }
input, select, button { font: inherit; padding: .4rem .6rem; }
input[type=submit], button { cursor: pointer; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
form.button_to { display: inline; }
.hint, .muted { color: var(--muted); font-size: .92rem; }
.note { background: var(--note-bg); padding: .6rem .8rem; border-radius: 6px; }
.flash { padding: .5rem .8rem; border-radius: 6px; border: 1px solid var(--line); }
.flash-alert { color: var(--alert); }
.flash-notice { color: var(--ok); }
.choice { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .25rem 1rem; border: 0; padding: 0; }
.checklist legend { font-weight: 600; margin-bottom: .25rem; }
.step-nav { display: flex; gap: 1rem; align-items: center; margin-top: .75rem; }
.progress, .stages { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; padding: 0; font-size: .85rem; color: var(--muted); }
.progress li, .stages li { padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 999px; }
.progress .done { color: var(--fg); }
.progress .current, .stages .current { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }
.badge { font-size: .75rem; font-weight: 500; border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem; color: var(--muted); }
.items { list-style: none; padding: 0; }
.items li { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.items li.seen { opacity: .7; }
.stage { font-size: .8rem; color: var(--muted); margin-left: .5rem; }
.why { margin: .2rem 0; font-size: .9rem; color: var(--muted); }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.summary dt { font-weight: 600; }
.summary dd { margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--line); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.committees { list-style: none; padding: 0; }
.committees li.sub { padding-left: 1.25rem; }
.vote { border-top: 1px solid var(--line); padding-top: .5rem; }
.vote h3 { margin-bottom: .2rem; }
