:root { color-scheme: light; --ink: #172b3a; --muted: #526372; --blue: #185abd; --border: #cbd5df; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fa; color: var(--ink); font: 17px/1.65 system-ui, -apple-system, "Microsoft JhengHei", sans-serif; }
a { color: #154f9e; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #9a5700; outline-offset: 4px; }
.site-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px max(20px, calc((100% - 960px) / 2)); background: #fff; border-bottom: 1px solid var(--border); }
.brand { color: var(--ink); font-weight: 750; text-decoration: none; }
.brand span { display: inline-block; font-weight: 400; margin-left: 8px; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.page { width: min(100% - 40px, 840px); margin: 36px auto; }
.page.narrow { max-width: 560px; }
h1, h2, p { margin-top: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.65rem, 4vw, 2rem); line-height: 1.4; margin-bottom: 12px; }
h2, legend { font-size: 1.2rem; line-height: 1.5; font-weight: 700; margin-bottom: 12px; }
p { margin-bottom: 16px; }
.page-heading { margin-bottom: 28px; }
.eyebrow { color: #275d4a; font-weight: 700; margin-bottom: 8px; }
.muted, .list-summary, .page-footer { color: var(--muted); }
.panel { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 28px; margin-bottom: 20px; }
.topic-list, .record-list { list-style: none; margin: 0; padding: 0; }
.topic-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topic-info { min-width: 0; }
.topic-card h2 { margin: 12px 0 8px; }
.topic-card h2 a { color: var(--ink); }
.topic-card p { margin-bottom: 0; font-size: 15px; }
.badge { display: inline-block; font-size: 14px; font-weight: 650; background: #eaf1fc; color: #174b91; padding: 3px 10px; border-radius: 4px; }
.badge.done { background: #e8f3ed; color: #236046; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid var(--blue); border-radius: 6px; padding: 10px 22px; background: var(--blue); color: #fff; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center; }
.topic-card > .button { flex-shrink: 0; }
.button:hover { background: #12478f; border-color: #12478f; }
.button.secondary { background: white; color: #154f9e; border-color: #91a6bd; }
.button.secondary:hover { background: #edf3fa; }
.button:disabled { background: #e1e6ec; border-color: #b4bfcb; color: #526372; cursor: not-allowed; }
.back-link { display: inline-block; padding: 8px 0; margin-bottom: 20px; }
.notice { padding: 20px; background: #fff8e8; border: 1px solid #b68b32; border-radius: 6px; margin-bottom: 24px; overflow-wrap: anywhere; }
.notice.success { background: #edf8f1; border-color: #7aaa8e; }
.notice.error { background: #fff1f0; border-color: #ba5046; color: #8a231b; }
.multiline { white-space: pre-wrap; margin-bottom: 0; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.options { display: grid; gap: 12px; }
.vote-option { display: flex; align-items: center; gap: 16px; min-height: 64px; border: 2px solid var(--border); border-radius: 6px; padding: 16px; cursor: pointer; }
.vote-option:hover { background: #f5f8fd; border-color: #8399b2; }
.vote-option:has(input:checked) { background: #edf4ff; border-color: var(--blue); }
.vote-option:focus-within { outline: 3px solid #9a5700; outline-offset: 3px; }
.vote-option input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
.option-text { overflow-wrap: anywhere; min-width: 0; }
.submit-area { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
#selectionSummary { font-weight: 650; }
.record-option { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; overflow-wrap: anywhere; }
.record-option > span { min-width: 0; }
.record-option .badge { flex-shrink: 0; }
.record-option.chosen { border-color: #6d9a7c; background: #edf8f1; }
.record-list { margin-bottom: 24px; }
.page-footer { text-align: center; font-size: 15px; margin: 32px 0; }
.empty-state { padding: 36px 28px; }
.field-label { display: block; font-weight: 700; margin-bottom: 8px; }
.text-input { width: 100%; min-height: 54px; padding: 10px 14px; border: 1px solid #738496; border-radius: 6px; background: white; color: var(--ink); }
.verification-input { max-width: 260px; font-size: 24px; letter-spacing: 10px; }
.field-help { margin-top: 8px; font-size: 15px; }
.identity { padding: 16px; background: #f5f7fa; margin-bottom: 24px; border-radius: 6px; overflow-wrap: anywhere; }
.identity p { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.skip-link { position: absolute; left: 16px; top: -100px; background: white; padding: 12px; z-index: 10; }
.skip-link:focus { top: 8px; }
@media (max-width: 600px) {
    .site-header { padding: 12px 16px; gap: 4px 16px; }
    .brand { font-size: 16px; }
    .page { width: calc(100% - 32px); margin: 24px auto; }
    .panel { padding: 20px; }
    .topic-card { align-items: stretch; flex-direction: column; gap: 20px; }
    .button, .actions { width: 100%; }
    .actions { flex-direction: column; }
    .record-option { align-items: flex-start; flex-direction: column; }
}