:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172b3c;background:#f2f6f8}*{box-sizing:border-box}body{margin:0}.shell{max-width:1180px;margin:auto;padding:28px 24px 60px}.top{display:flex;justify-content:space-between;align-items:center;padding-bottom:26px;border-bottom:1px solid #d6e2e9}.brand{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:750;line-height:1.15}.brand small{font-size:13px;font-weight:500;color:#617487}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#0d4265;color:#fff;font-size:18px}.date{font-size:13px;color:#617487}.home{padding-top:76px;max-width:780px;margin:auto}.eyebrow{text-transform:uppercase;letter-spacing:.14em;color:#137c9b;font-size:12px;font-weight:800;margin:0 0 12px}h1{font-size:clamp(30px,4vw,48px);line-height:1.12;letter-spacing:-.04em;margin:0 0 32px}.choices{display:grid;gap:16px}.choice{display:flex;align-items:center;gap:20px;width:100%;padding:26px;text-align:left;background:#fff;border:1px solid #d6e2e9;border-radius:18px;box-shadow:0 8px 24px #16415b0b;color:inherit;cursor:pointer}.choice:hover,.choice:focus-visible{border-color:#137c9b;box-shadow:0 10px 30px #16415b20}.choice-icon{display:grid;place-items:center;flex:none;width:62px;height:62px;border-radius:16px;background:#dff1f6;color:#0d5873;font-weight:850;font-size:20px}.choice strong{display:block;font-size:22px;margin-bottom:5px}.choice small{font-size:15px;color:#617487}.chevron{margin-left:auto;font-size:34px;color:#0d5873}.hidden{display:none!important}.app{padding-top:35px}.page-head{display:flex;align-items:flex-start;gap:26px}.page-head h1{margin:0 0 28px}.back{border:0;background:none;color:#0d5873;font-size:15px;font-weight:700;cursor:pointer;padding:4px 0}.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;background:#fff;border:1px solid #d6e2e9;border-radius:18px;padding:20px;margin-bottom:28px}.filters label{font-size:14px;font-weight:700;color:#3a5366}.filters select,.filters input{display:block;width:100%;margin-top:8px;min-height:44px;padding:10px 12px;border:1px solid #c6d7e0;border-radius:10px;background:#f9fcfd;color:#172b3c;font:inherit;font-weight:500}.filters select:focus,.filters input:focus{outline:2px solid #4ba9c0;outline-offset:1px}.results-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 14px}.results-head h2{font-size:24px;margin:0 0 4px}.results-head p{color:#617487;margin:0;font-size:14px}.results-head strong{color:#0d5873;font-size:15px}.results{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.result{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border:1px solid #d6e2e9;border-radius:12px;padding:17px 18px;min-height:80px}.result-button{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer}.result-button:hover,.result-button:focus-visible{border-color:#137c9b;background:#f9fcfd}.result-name{font-weight:700;overflow-wrap:anywhere}.result-meta{font-size:13px;color:#617487;margin-top:4px}.votes{white-space:nowrap;color:#0d5873;font-size:20px;font-weight:800}.votes small{display:block;text-align:right;color:#617487;font-size:12px;font-weight:500}.status{background:#fff;border:1px solid #d6e2e9;border-radius:12px;padding:22px;color:#536c7e}.footnote{font-size:13px;line-height:1.5;color:#617487;margin-top:26px}.footnote a{color:#0d5873}@media(max-width:800px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.results{grid-template-columns:1fr}.home{padding-top:48px}}@media(max-width:540px){.shell{padding:18px 16px 40px}.date{display:none}.choice{padding:18px;gap:14px}.choice-icon{width:50px;height:50px}.choice strong{font-size:18px}.choice small{font-size:13px}.filters{grid-template-columns:1fr}.page-head{display:block}.back{margin-bottom:20px}.result{padding:14px}.votes{font-size:17px}}

/* Resultado compacto e destaque para situações de eleição confirmadas pelo TSE. */
.result{min-height:68px;padding:12px 16px}
.result-main{flex:1;min-width:0}
.votes{display:inline-flex;align-items:baseline;gap:4px;line-height:1;flex:0 0 auto}
.votes small{display:inline;font-size:11px;font-weight:500;color:#617487}
.votes strong{font-size:20px;font-weight:800}
.result.elected{background:#fff1df;border-color:#e9a957}
.result-button.elected:hover,.result-button.elected:focus-visible{background:#ffe7c7;border-color:#cc7b21}
.elected-badge{display:inline-block;margin-left:10px;padding:3px 7px;border-radius:5px;background:#ffd396;color:#7b3900;font-size:11px;font-weight:800;vertical-align:middle}
#candidate-view.elected .results-head{background:#fff1df;border:1px solid #e9a957;border-radius:12px;padding:14px 16px}
@media(max-width:540px){.result{padding:12px}.votes strong{font-size:18px}}
.rank{display:inline-grid;place-items:center;flex:0 0 auto;min-width:34px;height:34px;padding:0 6px;border-radius:9px;background:#e7f0f5;color:#0d5873;font-size:14px;font-weight:800;line-height:1}
.result.elected .rank{background:#ffd396;color:#7b3900}
@media(max-width:540px){.rank{min-width:29px;height:29px;font-size:13px}.result{gap:10px}}
.detail-search{max-width:420px;margin:0 0 16px}
.detail-search label{display:block;margin-bottom:7px;color:#3a5366;font-size:14px;font-weight:700}
.detail-search input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #c6d7e0;border-radius:10px;background:#fff;color:#172b3c;font:inherit}
.detail-search input:focus{outline:2px solid #4ba9c0;outline-offset:1px}
#candidate-status{margin-bottom:12px}


.section-info{display:flex;align-items:center;gap:16px;margin:0 0 14px;padding:16px 18px;background:#fff;border:1px solid #d6e2e9;border-radius:12px;color:#172b3c;font-size:14px;line-height:1.4}
.section-info strong{color:#172b3c;font-size:15px}
.section-address{margin-top:5px;color:#536c7e;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.local-card{background:#fff;border:1px solid #d6e2e9;border-radius:12px;overflow:hidden}
.local-head{display:flex;align-items:center;gap:16px;padding:16px 18px}
.local-head .result-name{font-size:16px}
.section-list{border-top:1px solid #e0e9ee;background:#f9fcfd}
.section-row{display:flex;align-items:center;gap:12px;min-height:42px;padding:7px 18px 7px 68px;border-top:1px solid #e8eef2;font-size:14px}
.section-row:first-child{border-top:0}
.section-row .votes strong{font-size:16px}
.section-rank{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:6px;background:#e7f0f5;color:#0d5873;font-size:12px;font-weight:800}
@media(max-width:540px){.local-head{gap:10px;padding:12px}.section-row{padding:7px 12px 7px 44px;gap:8px}.section-row .votes strong{font-size:15px}}
#local-wrap:not(.hidden){grid-column:span 2}
@media(max-width:540px){#local-wrap:not(.hidden){grid-column:span 1}}
.section-numbers{margin-top:5px;color:#0d5873;font-size:14px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
@media(max-width:540px){.section-info{gap:10px;padding:12px}}
.local-neighborhood{display:inline;font-size:12px;font-weight:400;color:#536c7e;white-space:nowrap}
.detail-search-row{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 16px}
.detail-search-row .detail-search{flex:0 1 420px;max-width:none;margin:0}
.search-votes-total{color:#0d5873;font-size:15px;text-align:right;padding-bottom:12px}
@media(max-width:540px){.detail-search-row{align-items:stretch;flex-direction:column;gap:8px}.detail-search-row .detail-search{flex:auto}.search-votes-total{text-align:left;padding-bottom:0}}
.brand-logo{display:block;width:260px;max-width:55vw;height:auto;object-fit:contain;object-position:left center}
.brand-home{display:block;padding:0;border:0;background:transparent;cursor:pointer}.brand-home:focus-visible{outline:2px solid #137c9b;outline-offset:5px;border-radius:4px}
.top-actions{display:flex;align-items:center;gap:18px}
.install-app{border:1px solid #0d4265;border-radius:9px;background:#0d4265;color:#fff;padding:9px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.install-app:hover,.install-app:focus-visible{background:#0d5873}
.install-hint{margin:20px 0 0;color:#536c7e;font-size:13px;line-height:1.5}
@media(max-width:540px){.brand-logo{width:190px}.top-actions{gap:8px}.install-app{font-size:12px;padding:8px 9px}}
.site-credit{margin-top:56px;padding:24px 0 8px;border-top:1px solid #d6e2e9;text-align:center;color:#536c7e;font-size:17px}
.site-credit-name{margin-left:4px;color:#0d4265;font-family:"Segoe Script","Brush Script MT","Snell Roundhand",cursive;font-size:26px;line-height:1.4}
@media(max-width:540px){.site-credit{margin-top:38px;font-size:15px}.site-credit-name{font-size:23px}}
.report-intro{margin:0 0 22px;color:#536c7e;line-height:1.5}
.report-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:780px;margin-bottom:24px}
.report-controls label,.report-password-dialog label{font-size:14px;font-weight:700;color:#3a5366}
.report-controls select,.report-controls input,.report-password-dialog input{display:block;width:100%;min-height:44px;margin-top:7px;padding:10px 12px;border:1px solid #c6d7e0;border-radius:10px;background:#fff;color:#172b3c;font:inherit}
.report-picker-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 10px}
.report-picker-head h2{font-size:22px;margin:0}.report-picker-head span{color:#0d5873;font-size:14px;font-weight:700}
.report-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:400px;overflow:auto;padding:2px}
.report-candidate{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 13px;border:1px solid #d6e2e9;border-radius:10px;background:#fff;cursor:pointer}
.report-candidate:has(input:checked){border-color:#137c9b;background:#e7f4f8}.report-candidate:has(input:disabled){opacity:.55;cursor:not-allowed}
.report-candidate input{accent-color:#0d5873;width:18px;height:18px;flex:none}.report-candidate-name{flex:1;min-width:0;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.report-candidate-name small{display:block;margin-top:2px;color:#617487;font-size:12px;font-weight:400}.report-candidate strong{flex:none;color:#0d5873;font-size:13px;white-space:nowrap}
.report-selection-message{min-height:20px;margin:9px 0;color:#536c7e;font-size:13px}.report-submit{border:0;border-radius:10px;padding:12px 18px;background:#0d4265;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.report-submit:disabled{opacity:.45;cursor:not-allowed}.report-results{margin-top:34px}.report-table-wrap{overflow-x:auto;border:1px solid #d6e2e9;border-radius:12px;background:#fff}
.report-table{width:100%;min-width:780px;border-collapse:collapse;text-align:right;font-size:14px}.report-table th,.report-table td{padding:13px 12px;border-bottom:1px solid #e1e9ee;vertical-align:middle}
.report-table thead{background:#e7f0f5;color:#0d4265}.report-table thead th{font-size:13px;line-height:1.35}.report-table thead small,.report-table tbody small{display:block;margin-top:3px;font-size:11px;font-weight:400;color:#617487}
.report-table th:first-child{text-align:left;min-width:230px}.report-table tbody th{font-weight:400}.report-local-name{font-weight:700}.report-table td{font-variant-numeric:tabular-nums;white-space:nowrap}
.report-total-cell,.report-table tfoot{color:#0d5873;font-weight:800}.report-table tfoot{background:#fff1df}.report-table tfoot th,.report-table tfoot td{border-bottom:0}
.report-password-dialog{width:min(420px,calc(100vw - 32px));border:1px solid #d6e2e9;border-radius:16px;padding:25px;background:#fff;color:#172b3c;box-shadow:0 18px 55px #082c4050}
.report-password-dialog::backdrop{background:#102b3c99}.report-password-dialog h2{margin:0 0 8px}.report-password-dialog p{color:#536c7e;margin:0 0 18px}
.report-password-dialog .report-password-error{color:#a03420;margin:8px 0 0;font-size:13px}.report-password-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
.report-password-actions button{border:1px solid #c6d7e0;border-radius:9px;padding:9px 14px;background:#fff;color:#0d4265;font:inherit;font-weight:700;cursor:pointer}
.report-password-actions button[type=submit]{background:#0d4265;border-color:#0d4265;color:#fff}
.report-password-entry{display:flex;align-items:end;gap:8px}.report-password-dialog .report-password-entry input{flex:1;min-width:0}.report-password-entry button{min-height:44px;padding:9px 12px;border:1px solid #c6d7e0;border-radius:9px;background:#fff;color:#0d5873;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.report-password-dialog .report-remember{display:flex;align-items:center;gap:9px;margin-top:14px;font-size:13px;cursor:pointer}.report-password-dialog .report-remember input{flex:none;width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:#0d4265;cursor:pointer}
@media(max-width:650px){.report-controls,.report-candidates{grid-template-columns:1fr}.report-candidates{max-height:370px}.report-candidate{padding:10px}.report-picker-head h2{font-size:19px}}
.report-table-wrap{max-height:920px;overflow:auto;overscroll-behavior:contain}
.report-table thead th{position:sticky;top:0;z-index:1;background:#e7f0f5;box-shadow:0 1px 0 #d6e2e9}
@media(max-width:650px){.report-table-wrap{max-height:75vh}}
.admin-open{border:1px solid #c6d7e0;border-radius:9px;background:#fff;color:#0d4265;padding:9px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.admin-open:hover,.admin-open:focus-visible{border-color:#137c9b;background:#e7f4f8}
.top{gap:16px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.brand{min-width:0}
.admin-dialog{position:relative}.admin-dialog label{display:block;margin-top:14px}.admin-dialog .admin-error{margin:10px 0 0;color:#a03420;font-size:13px}
.admin-close{position:absolute;top:12px;right:14px;border:0;background:none;color:#536c7e;font-size:27px;line-height:1;cursor:pointer}
.admin-visit-count{display:block;margin:10px 0;color:#0d5873;font-size:44px;line-height:1.1;font-variant-numeric:tabular-nums}
.admin-dialog .admin-count-note{margin:12px 0 0;font-size:13px;line-height:1.45}
@media(max-width:650px){.top{flex-wrap:wrap}.top-actions{gap:8px}.admin-open{padding:8px 10px;font-size:12px}}
.report-search-field label{display:block;font-size:14px;font-weight:700;color:#3a5366}
.report-search-input-row{display:flex;align-items:center;gap:8px;margin-top:7px}
.report-search-input-row input[type="search"]{flex:1;min-width:0;margin-top:0}
.report-search-clear{flex:none;border:1px solid #c6d7e0;border-radius:9px;background:#fff;color:#0d5873;padding:10px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.report-search-clear:hover,.report-search-clear:focus-visible{border-color:#137c9b;background:#e7f4f8}
.report-local-search{max-width:560px}
.report-local-search:has(#report-coordination-label:not(.hidden)){max-width:740px}
.detail-search .report-coordination{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:44px;margin:0;padding:9px 13px;border:1px solid #c6d7e0;border-radius:9px;background:#fff;color:#0d5873;font-size:13px;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}
.detail-search .report-coordination:has(input:checked){background:#0d4265;border-color:#0d4265;color:#fff}
.detail-search .report-coordination input[type="checkbox"]{box-sizing:border-box;display:block;flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:0;padding:0;border-radius:3px;accent-color:#0d4265;cursor:pointer}
.detail-search .report-coordination:has(input:checked) input[type="checkbox"]{accent-color:#fff}
.report-coordination:has(input:focus-visible){outline:2px solid #4ba9c0;outline-offset:2px}
@media(max-width:650px){.report-local-search .report-search-input-row{flex-wrap:wrap}.report-local-search .report-search-input-row input[type="search"]{flex-basis:100%}}
@media(max-width:540px){.report-search-clear{padding:10px 8px;font-size:12px}}
.admin-page .page-head{margin-bottom:20px}.admin-page .back{display:inline-block;text-decoration:none}
.admin-page-login{max-width:430px;padding:24px;border:1px solid #d6e2e9;border-radius:16px;background:#fff}
.admin-page-login h2{margin:0 0 8px}.admin-page-login p{margin:0 0 18px;color:#536c7e}
.admin-page-login label{display:block;margin:12px 0 6px;color:#3a5366;font-size:14px;font-weight:700}
.admin-page-login input{display:block;width:100%;min-height:44px;padding:10px 12px;border:1px solid #c6d7e0;border-radius:10px;font:inherit}
.admin-page-login .admin-error{margin:10px 0;color:#a03420;font-size:13px}.admin-page-login .report-submit{margin-top:18px}
.admin-page-intro{margin:0 0 20px;color:#536c7e}.admin-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.admin-metric{padding:24px;border:1px solid #d6e2e9;border-radius:16px;background:#fff}.admin-metric h2{margin:0;color:#172b3c;font-size:18px}
.admin-metric strong{display:block;margin:18px 0 12px;color:#0d5873;font-size:clamp(36px,5vw,56px);line-height:1;font-variant-numeric:tabular-nums}
.admin-metric p{margin:0;color:#617487;font-size:13px;line-height:1.5}.admin-metrics-note{margin:18px 0;color:#617487;font-size:13px;line-height:1.5}
.admin-dashboard-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
@media(max-width:650px){.admin-metrics{grid-template-columns:1fr}.admin-metric{padding:20px}}
.vote-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:0 0 24px}.summary-card{background:#fff;border:1px solid #d6e2e9;border-radius:12px;padding:14px 16px}.summary-card span{display:block;color:#617487;font-size:13px}.summary-card strong{display:block;color:#0d4265;font-size:23px;margin-top:5px}
.summary-card small{display:block;color:#536c7e;font-size:12px;margin-top:5px;line-height:1.3}
