:root {
    --voter-ink: #251e20;
    --voter-muted: #665b60;
    --voter-red: #b81024;
    --voter-border: #e8dce0;
    --voter-surface: #fff;
    --voter-dark: #21191c;
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #f8f5f6; color: var(--voter-ink); line-height: 1.55; }
a { color: var(--voter-red); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #cb3448; outline-offset: 3px; }
form { margin: 0; }
button, input { font: inherit; }
h1, h2 { line-height: 1.18; margin: 0 0 .8rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.85rem, 5vw, 2.65rem); font-weight: 760; letter-spacing: -.045em; }
h2 { font-size: 1.24rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--voter-muted); }
.voter-skip { position: absolute; z-index: 3; padding: .7rem 1rem; background: #fff; transform: translateY(-150%); }
.voter-skip:focus { transform: none; }
.voter-header { background: white; border-bottom: 1px solid var(--voter-border); }
.voter-header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: .7rem;
    max-width: 1160px; padding: .9rem clamp(1rem, 5vw, 2.6rem); margin: auto;
}
.voter-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--voter-ink); font-weight: 780; line-height: 1.15; text-decoration: none; }
.voter-brand small { display: block; margin-top: .2rem; color: var(--voter-muted); font-size: .72rem; font-weight: 550; }
.voter-brand img { display: block; flex: none; object-fit: contain; }
.voter-main { width: min(100%, 1040px); margin: 0 auto; padding: clamp(1.15rem, 5vw, 3rem); }
.voter-main-auth { width: min(100%, 1000px); padding-block: clamp(1.2rem, 7vw, 5rem); }
.voter-auth {
    display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.22fr);
    border: 1px solid var(--voter-border); border-radius: 20px; overflow: hidden;
    box-shadow: 0 16px 48px #32121814; background: white;
}
.voter-auth-aside { padding: clamp(1.35rem, 5vw, 3rem); background: linear-gradient(155deg, #2a1a20, var(--voter-dark)); color: white; border-top: 4px solid #f50919; }
.voter-auth-aside h2 { max-width: 14ch; font-size: clamp(1.6rem, 4vw, 2.35rem); letter-spacing: -.04em; }
.voter-eyebrow { color: var(--voter-red); font-weight: 720; margin-bottom: .6rem; font-size: .82rem; }
.voter-auth-aside .voter-eyebrow { color: #ffbec6; }
.voter-auth-content { min-width: 0; padding: clamp(1.3rem, 5vw, 3rem); }
.voter-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .65rem; }
.voter-steps li { display: flex; align-items: center; gap: .55rem; font-size: .87rem; color: #eedde2; }
.voter-steps li span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid #95717d; }
.voter-steps [aria-current="step"] { color: white; font-weight: 700; }
.voter-steps [aria-current="step"] span { background: var(--voter-red); border-color: #fa9da9; }
.voter-auth-content label { display: block; margin: 1rem 0 .35rem; font-weight: 690; }
.voter-auth-content input {
    width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid #b6a5ad; border-radius: 9px;
    color: inherit; background: #fffdfd;
}
.voter-auth-content #otp { max-width: 20rem; font-variant-numeric: tabular-nums; letter-spacing: .3em; font-size: 1.35rem; }
.voter-field-help { margin: .55rem 0 0; color: var(--voter-muted); font-size: .87rem; }
.voter-field-help:last-child { margin-top: 1rem; }
.voter-button {
    display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
    padding: .55rem 1rem; background: var(--voter-red); border: 1px solid var(--voter-red);
    border-radius: 9px; color: #fff; font-weight: 690; line-height: 1.25; text-decoration: none; text-align: center; cursor: pointer;
}
.voter-button:hover { background: #960f20; border-color: #960f20; }
.voter-button.secondary { background: white; border-color: #bfaeb6; color: var(--voter-ink); }
.voter-button.secondary:hover { background: #fff0f3; }
.voter-button:disabled { opacity: .65; cursor: default; }
.voter-button.full { width: 100%; margin-top: 1rem; }
.voter-notice, .alert { padding: .8rem .9rem; margin: 0 0 1rem; border-radius: 9px; border: 1px solid #ead1d6; background: #fff1f4; }
.voter-notice[data-status="warning"] { background: #fff8e5; border-color: #ecd8a9; }
.voter-notice[data-status="info"] { background: #f0eff4; border-color: #dfdce6; }
.alert-success { border-color: #bde0cf; background: #eaf8f0; }
.voter-card, .voter-position, .voter-submit {
    min-width: 0; margin: 0 0 1rem; padding: clamp(1rem, 4vw, 1.7rem);
    background: var(--voter-surface); border: 1px solid var(--voter-border);
    border-radius: 14px; box-shadow: 0 4px 14px #32121808;
}
.voter-card p:last-child, .voter-submit p { margin-bottom: 0; }
.voter-hero { border-top: 3px solid #f50919; background: linear-gradient(110deg, white 50%, #fff0f2); }
.voter-election-list { margin: 0; padding: 0; list-style: none; }
.voter-election-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem 1rem; padding: .8rem 0; border-top: 1px solid var(--voter-border); overflow-wrap: anywhere; }
.voter-election-list li:last-child { padding-bottom: 0; }
.voter-badge { background: #f4ebee; color: #654953; padding: .25rem .65rem; border-radius: 99px; font-size: .82rem; font-weight: 660; }
.voter-badge-submitted { background: #eaf8f0; color: #15523a; }
.voter-back { margin-bottom: 1rem; }
.voter-position legend { padding: 0 .5rem; font-size: 1.15rem; font-weight: 750; max-width: 100%; overflow-wrap: anywhere; }
.voter-choice { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .6rem; padding: .8rem; border: 1px solid var(--voter-border); border-radius: 10px; cursor: pointer; }
.voter-choice:last-child { margin-bottom: 0; }
.voter-choice:hover, .voter-choice:has(input:checked) { border-color: #cb6371; background: #fff1f4; }
.voter-choice input { accent-color: var(--voter-red); margin: .25rem 0 0; width: 1.13rem; height: 1.13rem; flex: none; }
.voter-candidate { min-width: 0; overflow-wrap: anywhere; }
.voter-candidate small { display: block; color: var(--voter-muted); }
.voter-candidate .candidate-slogan { font-weight: 700; }
.candidate-portrait { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; flex: none; }
.voter-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.voter-table { width: 100%; border-collapse: collapse; }
.voter-table th, .voter-table td { padding: .6rem; text-align: left; border-bottom: 1px solid var(--voter-border); overflow-wrap: anywhere; }
.voter-table th { background: #faeff2; }
.voter-table th:last-child, .voter-table td:last-child { text-align: right; }
@media (max-width: 650px) {
    .voter-auth { grid-template-columns: minmax(0, 1fr); }
    .voter-auth-aside { padding-block: 1rem; }
    .voter-auth-aside h2 { max-width: none; font-size: 1.14rem; margin-bottom: .45rem; }
    .voter-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; margin-top: .55rem; }
    .voter-steps li { font-size: .75rem; }
    .voter-steps li span { flex: none; width: 1.4rem; height: 1.4rem; }
}
