:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17342e;background:#f6f7f2;font-size:16px}*{box-sizing:border-box}body{margin:0}main{max-width:1050px;margin:auto;padding:32px 24px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #ccd6cd;padding-bottom:24px;margin-bottom:48px}.brand{font-size:24px;font-weight:850;letter-spacing:2px;text-decoration:none}.brand span{display:block;font-size:14px;font-weight:500;letter-spacing:0;margin-top:4px}a{color:inherit}.tag{font-size:14px;border:1px solid #ccd6cd;border-radius:30px;padding:8px 14px}h1{font-size:clamp(30px,5vw,48px);line-height:1.12;letter-spacing:-1.5px;margin:0 0 20px}h2{font-size:21px;margin:0 0 16px}p{line-height:1.6;max-width:760px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:32px}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}output{white-space:nowrap;font-weight:700;font-size:14px}.list{display:grid;gap:8px}.candidate{display:flex;align-items:center;gap:12px;padding:16px;background:white;border:1px solid #d5ddd6;border-radius:8px;min-height:58px;overflow-wrap:anywhere}.candidate:has(input:checked){background:#e4efdc;border-color:#3f674c}.candidate input{width:22px;height:22px;accent-color:#315c42;flex-shrink:0}.candidate:has(input:disabled){opacity:.6}.submit-panel,.control{background:#e9ede3;border-radius:10px;padding:24px;margin-top:32px;display:flex;align-items:center;gap:32px;justify-content:space-between}.submit-panel>label{flex:1;min-width:200px}.submit-panel>div{flex:1}label{display:block;font-weight:600}input:not([type=checkbox]),textarea,select{display:block;width:100%;font:inherit;color:inherit;background:white;border:1px solid #a3b3a6;border-radius:6px;padding:12px;margin:8px 0 16px}button{font:inherit;font-weight:650;border:1px solid transparent;background:#224f3d;color:white;border-radius:6px;padding:12px 18px;cursor:pointer}button:hover{background:#173b2c}button:disabled{opacity:.5;cursor:default}.secondary{color:#224f3d;background:white;border-color:#a3b3a6}.secondary:hover{background:#edf1e8}.small{font-size:14px;color:#506158}.actions{display:flex;gap:12px;flex-wrap:wrap}#message:empty{display:none}#message{padding:14px 18px;background:#e9ede3;border-radius:6px}#login{max-width:400px}pre{white-space:pre-wrap;max-height:240px;overflow:auto;background:white;padding:16px}footer{margin-top:64px;padding-top:20px;border-top:1px solid #ccd6cd;color:#506158;font-size:14px;display:flex;justify-content:space-between;gap:16px}dialog{max-width:560px;width:calc(100% - 32px);max-height:85vh;overflow:auto;border:1px solid #ccd6cd;border-radius:12px;padding:28px;color:inherit}dialog::backdrop{background:#122b24aa}.results .candidate{justify-content:space-between}.candidate span{flex:1}.candidate button{font-size:14px;padding:6px 10px}#submit-error{color:#962f29}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a46e24;outline-offset:3px}[hidden]{display:none!important}@media(max-width:640px){main{padding:24px 16px}header{margin-bottom:32px}.tag{display:none}.columns{grid-template-columns:1fr;gap:28px}.submit-panel,.control{flex-direction:column;align-items:stretch;gap:12px}.submit-panel button{width:100%}.brand{font-size:22px}}

.brand img{display:block;width:175px;max-height:75px;object-fit:contain;object-position:left}.brand span{margin-top:8px}.qr{display:block;width:190px;height:190px;background:white;margin:16px 0}.submit-panel>p{flex:1}.submit-panel>button{flex-shrink:0}

.settings{margin-top:32px}.settings fieldset{min-width:0;border:1px solid #ccd6cd;border-radius:8px;padding:20px}.settings legend{font-weight:700}.settings .columns{margin:20px 0}.check-label{margin-bottom:18px}.check-label input{width:20px;height:20px;vertical-align:middle;accent-color:#315c42}.columns:has(>section[hidden]){grid-template-columns:1fr}#settings-note{min-height:1.6em}

[data-election-title]{overflow-wrap:anywhere}header .brand{min-width:0}header>a:not(.brand),header .tag{flex-shrink:0}#title-form{max-width:640px}
