:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203c39;background:#f5f6f3;font-size:16px;line-height:1.6;--green:#126659;--green-dark:#0b5146;--border:#dce4df;--muted:#526b64;--soft:#eff6f2}
*{box-sizing:border-box}
body{margin:0}
main.shell{max-width:860px;margin:0 auto;padding:38px 28px 32px}
.shell.narrow{max-width:620px}
h1{font-size:clamp(1.85rem,5vw,2.7rem);font-weight:650;letter-spacing:-.035em;line-height:1.18;margin:10px 0 14px;overflow-wrap:anywhere}
h2{font-size:1.4rem;letter-spacing:-.02em;line-height:1.3;margin:0 0 12px}
h3{font-size:1.1rem;margin:0}
p{margin:10px 0 18px}
a{color:var(--green);text-underline-offset:3px}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border:1px solid var(--green);border-radius:12px;background:var(--green);color:white;font:inherit;font-size:.95rem;font-weight:650;padding:12px 20px;text-decoration:none;cursor:pointer;line-height:1.4;transition:background .15s}
button:hover,.button:hover{background:var(--green-dark);color:white}
button:disabled{opacity:.55;cursor:not-allowed}
.secondary{background:white;color:var(--green-dark);border-color:#b8cdc3}
.secondary:hover{background:var(--soft);color:var(--green-dark)}
.card{border:1px solid var(--border);border-radius:20px;background:white;padding:30px;margin:24px 0;min-width:0;box-shadow:0 3px 12px #153a2c04}
.card p:last-child{margin-bottom:0}
.ballot-field,fieldset{border:0;border-top:1px solid var(--border);padding:26px 0 0;margin:26px 0;min-width:0}
legend{font-size:1.2rem;font-weight:650;padding:0 14px 0 0}
label{display:block;margin:12px 0 6px;font-weight:550}
input:not([type=radio]):not([type=checkbox]){display:block;width:100%;min-width:0;border:1px solid #9fb9b2;border-radius:10px;font:inherit;background:white;padding:13px;margin:6px 0}
input[type=checkbox],input[type=radio]{flex-shrink:0;width:22px;height:22px;accent-color:var(--green);margin:0;cursor:pointer}
.input-action{display:flex;gap:8px;align-items:center}
.input-action button{flex-shrink:0;font-size:.85rem;padding:10px 14px}
.input-action input{letter-spacing:.02em}
.list-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#lists label{margin:0;display:flex;align-items:center;gap:12px;border:1px solid #bdcec4;border-radius:14px;padding:18px;cursor:pointer;min-height:86px}
#lists label:has(:checked){background:#eff8f2;border:2px solid var(--green);padding:17px}
#lists label:focus-within,#candidates label:focus-within{outline:3px solid #bd810b;outline-offset:3px}
.list-copy{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.list-copy strong{font-size:1.03rem}
.list-copy small{font-weight:400;margin-top:3px}
.blank-option{grid-column:1/-1;background:#fafbf9}
#candidates label{display:flex;gap:12px;align-items:center;margin:10px 0;border:1px solid var(--border);border-radius:12px;padding:15px;cursor:pointer}
#candidates .candidate-name{flex:1;min-width:0;overflow-wrap:anywhere}
#candidates .candidate-state{font-size:.75rem;border-radius:6px;background:#edf5ef;color:#215849;padding:3px 7px}
#candidates label:has(:checked){border-color:#cfaa9c;background:#fff7f3}
#candidates label:has(:checked) .candidate-name{text-decoration:line-through;color:#894832}
#candidates label:has(:checked) .candidate-state{color:#894832;background:#f7e7df}
.card-bottom{border-top:1px solid var(--border);padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.card-bottom p{font-size:.85rem;margin:0;max-width:290px}
.card-bottom button{flex-shrink:0}
.access-box{background:#f5f8f5;border-radius:14px;padding:18px}
.access-box label:first-child{margin-top:0}
.review-ballot{border:1px solid var(--border);border-radius:14px;padding:8px 20px;margin:24px 0}
.review-ballot p{border-bottom:1px solid #e6ede9;padding:12px 0;margin:0;overflow-wrap:anywhere}
.review-ballot p:last-child{border-bottom:0}
.review-ballot .review-list{font-size:1.1rem;font-weight:650}
.review-struck{color:#87432d}
.brand{display:inline-flex;align-items:center;gap:10px;color:#163f36;font-size:1.3rem;font-weight:750;text-decoration:none;letter-spacing:-.04em}
.brand-mark{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:var(--green);color:white;font-size:1.2rem}
.site-header{border-bottom:1px solid var(--border);background:#ffffffdc}
.header-inner{max-width:1050px;margin:auto;padding:20px 28px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.header-inner form{margin:0}
.header-inner button{min-height:40px;font-size:.8rem;padding:8px 12px}
.text-link{font-size:.92rem;font-weight:600}
.eyebrow{text-transform:uppercase;font-size:.7rem;letter-spacing:.14em;color:var(--green);font-weight:700;margin:0 0 12px}
.lead{font-size:1.05rem;color:var(--muted);margin:0 0 8px}
.muted,small{color:var(--muted);font-size:.87rem}
small{display:block}
.topbar,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.notice,#status:not(:empty){background:#fff8e9;border:1px solid #e4d4b4;border-radius:12px;padding:18px;overflow-wrap:anywhere}
.notice{font-size:.95rem}
#status[data-tone=success]{background:#eff8f2;border-color:#bcd9c7}
#status[data-tone=error]{background:#fff4ee;border-color:#e0bdad}
.success{color:var(--green-dark);font-weight:600}
.success-note{color:var(--green-dark);font-size:.9rem;font-weight:550;border-left:3px solid var(--green);padding-left:12px;margin-top:0}
.privacy-note{font-size:.9rem;color:var(--muted);padding:4px 0 12px}
.progress{display:flex;list-style:none;gap:8px;padding:0;margin:28px 0 32px}
.progress li{flex:1;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem;border-bottom:2px solid var(--border);padding:0 0 14px}
.progress li span{width:26px;height:26px;flex-shrink:0;border:1px solid #bccfc4;border-radius:50%;display:grid;place-items:center;font-size:.72rem}
.progress li[aria-current]{color:var(--green-dark);font-weight:700;border-color:var(--green)}
.progress li[aria-current] span{background:var(--green);border-color:var(--green);color:white}
.help{font-size:.87rem;color:var(--muted);margin-top:16px}
.help summary{cursor:pointer;color:var(--green-dark);padding:6px 0;min-height:36px}
.help p{margin:8px 0}
.technical-details{padding-top:14px}
.receipt-card{text-align:center}
.receipt-symbol{display:grid;place-items:center;margin:0 auto 16px;width:52px;height:52px;border-radius:50%;background:#e6f4e9;color:var(--green-dark);font-size:1.6rem}
.receipt-card[data-recorded=false] .receipt-symbol{background:#fff1d2;color:#845d13}
.tracker-box{background:#f4f7f3;border:1px solid var(--border);border-radius:12px;margin:20px 0;padding:16px}
.tracker-box #tracking-label{font-size:.78rem;font-weight:650;color:var(--muted);margin:0 0 10px}
.tracker-box code{display:block;overflow-wrap:anywhere;font-size:1rem;user-select:all;line-height:1.7}
.receipt-actions{justify-content:center}
.receipt-card .text-link{display:inline-block;margin-top:10px}
.elector-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:.78rem;margin-top:30px;border-top:1px solid var(--border);padding-top:20px}
.elector-footer p{margin:0}
.demo-badge,.badge{display:inline-block;padding:4px 9px;border:1px solid var(--border);border-radius:6px;font-size:.75rem;font-weight:550;background:white}
.badge.open{color:var(--green-dark);background:#eff8f2;border-color:#c4dcca}
.badge.recorded{color:#425a50;background:#eef1ed}
.election-card{display:flex;align-items:center;justify-content:space-between;gap:20px}
.election-card h2{margin:5px 0 8px}
.election-card .eyebrow{margin:0}
.election-card p{margin:0 0 10px}
.election-card .button{flex-shrink:0}
.intro-card{background:#eaf2eb;border:1px solid #d5e2d7;border-radius:14px;padding:18px 22px;margin:22px 0;color:#335c4f}
.intro-card p{margin:0}
.form-heading{margin:32px 0}
.field-note{margin:6px 0 20px}
.full-width{width:100%}
.skip-link{position:absolute;top:-100px;left:15px;background:white;padding:12px;z-index:10}
.skip-link:focus{top:10px}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,code:focus-visible{outline:3px solid #bd810b;outline-offset:3px}
[hidden]{display:none!important}
@media(max-width:600px){main.shell{padding:26px 18px}
.header-inner{padding:16px 18px}
.card{padding:22px 18px;border-radius:16px}
.list-options{grid-template-columns:1fr}
.progress{gap:6px;margin:24px 0}
.progress li{font-size:.72rem;gap:5px}
.progress li span{width:22px;height:22px}
.card-bottom,.election-card{flex-direction:column;align-items:stretch;gap:14px}
.card-bottom p{max-width:none}
.actions{flex-direction:column;align-items:stretch}
.actions button,.actions .button,.card-bottom button,.election-card .button{width:100%;text-align:center}
.actions #back{order:2}
.receipt-actions{gap:10px}
.access-box{padding:14px}
.receipt-card>.button{width:100%}
#candidates label{padding:12px}
.input-action button{min-width:78px}
.election-heading #instance{font-size:.75rem}
.brand{font-size:1.2rem}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}
}
