:root{--navy:#071c3b;--blue:#0b3970;--yellow:#f4c542;--ink:#10233d;--muted:#66758a;--line:#dce4ee;--paper:#f3f6fa}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}.top{height:76px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100% - 1180px)/2),24px)}.brand{display:flex;align-items:center;gap:12px}.mark{width:42px;height:42px;border-radius:10px;background:var(--yellow);color:var(--navy);font-weight:900;display:grid;place-items:center;font-size:18px}.brand b{display:block;font-size:13px;letter-spacing:1px}.brand small{display:block;color:#b9c9dc;font-size:10px;letter-spacing:1.4px;margin-top:4px}.live{font-size:10px;letter-spacing:1px;color:#dce8f5}.live i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#48d597;margin-right:8px}main{max-width:1180px;margin:0 auto;padding:28px 24px}.hero{background:linear-gradient(115deg,#071c3b,#104a83);border-radius:18px;color:white;padding:36px 42px;display:flex;align-items:center;justify-content:space-between;min-height:230px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:330px;height:330px;border:1px solid #ffffff20;border-radius:50%;right:100px;top:-130px;box-shadow:0 0 0 35px #ffffff08,0 0 0 70px #ffffff05}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--yellow);font-weight:bold}.hero h1{font-size:42px;line-height:1.02;margin:12px 0}.hero h1 span{color:var(--yellow)}.sub{color:#d0ddec;max-width:530px;font-size:14px;line-height:1.6}.hero-side{z-index:1;display:flex;align-items:center;gap:14px;background:#ffffff12;padding:15px 18px;border:1px solid #ffffff24;border-radius:12px}.seal{border:2px solid var(--yellow);border-radius:50%;width:56px;height:56px;display:grid;place-items:center;color:var(--yellow);font-weight:900}.hero-side b,.hero-side small{display:block;font-size:11px}.hero-side small{color:#c5d4e6;margin-top:6px}.tabs{display:flex;gap:6px;margin:22px 0;border-bottom:1px solid var(--line)}.tabs button{background:none;border:0;padding:13px 18px;color:#64748b;font-weight:bold;font-size:11px;letter-spacing:.7px;cursor:pointer;border-bottom:3px solid transparent}.tabs button.active{color:var(--blue);border-color:var(--yellow)}.view{display:none}.view.active{display:block}.toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:16px;border-radius:12px}.toolbar label,.admin-grid label{display:flex;flex-direction:column;gap:7px;color:#627187;font-size:10px;font-weight:bold;letter-spacing:.7px;flex:1;min-width:170px}select,input{height:40px;border:1px solid var(--line);border-radius:7px;padding:0 10px;background:white;color:var(--ink);font-size:13px}.primary{background:var(--blue)!important;color:white!important;border:0!important}.toolbar button,.admin-actions button{height:40px;padding:0 18px;border:1px solid var(--line);border-radius:7px;font-weight:bold;font-size:10px;letter-spacing:.5px;cursor:pointer}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0}.stats article,.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:19px}.stats small,.panel-head small{display:block;font-size:10px;letter-spacing:1px;color:#6a7a90;font-weight:bold}.stats strong{display:block;font-size:26px;margin:10px 0 5px;color:var(--navy)}.stats span{font-size:11px;color:var(--muted)}.panel{padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px}.panel h2{margin:6px 0 0;font-size:20px}.tag{background:#edf3f9;color:var(--blue);padding:7px 10px;border-radius:5px;font-size:9px;font-weight:bold;letter-spacing:.7px}.empty{padding:48px 20px;text-align:center;color:#748398;font-size:13px}.candidate{display:grid;grid-template-columns:45px 52px 1fr 110px 70px;gap:12px;align-items:center;padding:14px 4px;border-bottom:1px solid #edf1f5}.candidate .number{font-weight:900;color:var(--blue);font-size:18px}.candidate-person{width:52px;height:52px;position:relative}.candidate-photo,.candidate-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid #e1e8f0}.candidate-avatar{display:grid;place-items:center;background:#edf3f9;color:var(--blue);font-weight:900;font-size:13px}.candidate-info{min-width:0}.candidate b{display:block;font-size:14px}.candidate small{color:var(--muted);font-size:10px}.candidate strong{text-align:right;font-size:16px}.bar{height:5px;background:#e9eef5;border-radius:9px;overflow:hidden;margin-top:8px}.bar i{display:block;height:100%;background:var(--blue)}.percent{text-align:right;font-weight:bold;color:var(--blue)}.disclaimer,.hint{font-size:10px;color:#78869a;line-height:1.6;margin:14px 2px}.transmission{background:#dfe6ef;padding:20px;border-radius:12px}.broadcast{aspect-ratio:16/9;background:linear-gradient(125deg,#061a37,#0d3b70);color:white;padding:3.2%;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.broadcast-head,.broadcast-foot{display:flex;justify-content:space-between;align-items:center}.broadcast-head>span{color:var(--yellow);font-weight:bold;letter-spacing:2px}.broadcast-title{text-align:center}.broadcast-title small{color:var(--yellow);letter-spacing:2px;font-weight:bold}.broadcast-title h2{font-size:clamp(24px,4vw,54px);margin:10px 0}.broadcast-title p{letter-spacing:3px;color:#c5d7eb}.tv-empty{text-align:center;padding:4%;color:#d5e1ee;font-size:clamp(13px,1.5vw,20px)}.tv-candidate{display:grid;grid-template-columns:5% 1fr 15% 12%;gap:10px;align-items:center;padding:1.2% 2%;border-bottom:1px solid #ffffff24;font-size:clamp(12px,1.6vw,22px)}.tv-candidate .bar{background:#ffffff25}.tv-candidate .bar i{background:var(--yellow)}.broadcast-foot{font-size:clamp(8px,.8vw,12px);letter-spacing:1px;color:#c2d3e7}.admin-panel p{color:var(--muted);font-size:12px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.wide{grid-column:1/-1}.admin-actions{display:flex;gap:10px;flex-wrap:wrap}.admin-actions button{background:#f6f8fb}pre{white-space:pre-wrap;background:#071c3b;color:#dce9f7;padding:16px;border-radius:8px;font-size:11px;min-height:50px}.warning{background:#fff8df;border-left:4px solid var(--yellow);padding:13px;font-size:11px;line-height:1.5;color:#6c5818}footer{max-width:1180px;margin:0 auto;padding:18px 24px 30px;color:#8794a5;font-size:9px;letter-spacing:1px;display:flex;justify-content:space-between}@media(max-width:700px){.hero{padding:25px;display:block}.hero-side{margin-top:20px;width:max-content}.hero h1{font-size:34px}.stats{grid-template-columns:1fr}.toolbar label{min-width:100%}.admin-grid{grid-template-columns:1fr}.wide{grid-column:auto}.candidate{grid-template-columns:32px 42px 1fr 75px 48px}.candidate-person,.candidate-photo,.candidate-avatar{width:42px;height:42px}.candidate strong{font-size:12px}.top{padding:0 16px}.live{display:none}main{padding:18px 12px}.broadcast{min-height:360px;aspect-ratio:auto}.broadcast-head .brand b{font-size:9px}footer{display:block}footer span{display:block;margin-top:8px}}

.search-toolbar{align-items:flex-end}
.search-toolbar label{min-width:220px}
.search-toolbar input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:12px 14px;border:1px solid #d8dee9;border-radius:8px;background:#fff;font:inherit;color:#172033}
.candidate-search-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}
.search-candidate{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid #e1e6ef;border-radius:12px;background:#fff}
.search-photo-wrap{width:72px;height:72px}
.search-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;border:2px solid #e6b800;background:#f4f6fa}
.search-candidate h3{margin:0 0 5px;font-size:17px}
.search-candidate p{margin:0 0 4px;font-size:14px}
.search-candidate small{display:block;color:#697386}
.search-candidate>strong{font-size:15px;text-align:right}
@media(max-width:700px){.search-candidate{grid-template-columns:60px 1fr}.search-photo-wrap,.search-photo{width:60px;height:60px}.search-candidate>strong{grid-column:2;text-align:left}.search-toolbar label{min-width:100%}}

.map-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:end;background:#fff;border:1px solid var(--line);padding:18px;border-radius:12px;margin-bottom:14px}.map-toolbar h2{margin:5px 0;font-size:20px}.map-toolbar p{margin:0;color:var(--muted);font-size:12px}.map-toolbar label{min-width:280px;display:flex;flex-direction:column;gap:7px;color:#627187;font-size:10px;font-weight:bold}.map-layout{display:grid;grid-template-columns:1.5fr .8fr;gap:14px}.map-card,.map-results{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.brazil-map{min-height:520px;display:grid;place-items:center}.brazil-map svg{width:100%;height:auto}.map-state{fill:#dce8f5;stroke:#fff;stroke-width:1.5;cursor:pointer}.map-state:hover{fill:#f4c542}.map-state.selected{fill:#0b3970;stroke:#f4c542;stroke-width:2.5}.map-selected{padding:15px;background:#f3f6fa;border-radius:10px;margin-bottom:12px}.map-selected small{display:block;color:#6a7a90;font-size:9px;font-weight:bold}.map-selected strong{display:block;color:var(--navy);font-size:26px;margin:5px 0}.map-selected span{font-size:12px;color:var(--muted)}.map-cities{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:470px;overflow:auto}.map-city{border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px;text-align:left;cursor:pointer}.map-city b{display:block;font-size:12px;color:var(--ink)}.map-city small{display:block;color:var(--muted);font-size:9px}@media(max-width:900px){.map-layout{grid-template-columns:1fr}.map-toolbar{display:block}.map-toolbar label{margin-top:12px;min-width:100%}.map-cities{grid-template-columns:1fr}}
.election-badge,.tv-election-badge{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:4px;font-size:9px;font-weight:900;letter-spacing:.5px;vertical-align:middle}
.election-badge.elected,.tv-election-badge.elected{background:#d9f4e5;color:#126b3a}
.election-badge.not-elected,.tv-election-badge.not-elected{background:#eef1f5;color:#687589}
.candidate-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;min-width:0}
.candidate-heading>b{min-width:0;overflow-wrap:anywhere}
.candidate-heading .election-badge{margin:0;flex:0 0 auto;white-space:nowrap}
.broadcast{overflow:hidden}
#tvCandidates{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;margin:1.5% 0;padding-right:8px;scrollbar-width:thin;scrollbar-color:#f4c542 #ffffff18}
#tvCandidates::-webkit-scrollbar{width:9px}
#tvCandidates::-webkit-scrollbar-track{background:#ffffff18;border-radius:8px}
#tvCandidates::-webkit-scrollbar-thumb{background:#f4c542;border-radius:8px}
.tv-candidate small{display:block;font-size:clamp(8px,.8vw,12px);color:#c4d5e8;margin-top:3px}
.tv-candidate .bar{margin-top:7px}
.tv-candidate{flex-shrink:0}
@media(max-width:700px){#tvCandidates{max-height:260px}.tv-election-badge{font-size:7px;padding:2px 4px}}

/* Identidade visual por número de candidatura: 13 = vermelho, 22 = verde. */
.candidate.candidate-red,
.search-candidate.candidate-red{border-left:4px solid #d71920;background:linear-gradient(90deg,#fff5f5 0,#fff 34%)}
.candidate.candidate-green,
.search-candidate.candidate-green{border-left:4px solid #159447;background:linear-gradient(90deg,#f3fbf6 0,#fff 34%)}
.candidate.candidate-red .number,
.candidate.candidate-red .percent,
.search-candidate.candidate-red h3{color:#d71920}
.candidate.candidate-green .number,
.candidate.candidate-green .percent,
.search-candidate.candidate-green h3{color:#159447}
.candidate.candidate-red .bar i,
.tv-candidate.candidate-red .bar i{background:#d71920}
.candidate.candidate-green .bar i,
.tv-candidate.candidate-green .bar i{background:#159447}
.tv-candidate.candidate-red{border-left:4px solid #d71920;background:linear-gradient(90deg,#8b1118 0,#ffffff00 45%)}
.tv-candidate.candidate-green{border-left:4px solid #159447;background:linear-gradient(90deg,#0b6331 0,#ffffff00 45%)}
.tv-candidate.candidate-red>b:first-child,
.tv-candidate.candidate-green>b:first-child{color:#fff}


/* =========================================================
   REDESIGN 2026 — Central de Apuração São Francisco FM
   Camada visual responsiva, sem alterar a lógica da aplicação.
   ========================================================= */
:root{
  --navy:#071a35;--blue:#124b86;--yellow:#f5c542;--ink:#14243a;
  --muted:#68788d;--line:#e2e9f1;--paper:#f4f7fb;--surface:#fff;
  --shadow:0 12px 34px rgba(13,39,72,.07);--radius:16px;
}
html{scroll-behavior:smooth}
body{background:radial-gradient(ellipse at 12% 0%,#e7eff9 0,transparent 34%),var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.45}
.top{height:78px;background:rgba(7,26,53,.97);padding:0 max(calc((100% - 1320px)/2),clamp(16px,4vw,48px));box-shadow:0 4px 20px #071a3520;position:relative;z-index:5}
.mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#ffdc69,var(--yellow));box-shadow:0 5px 14px #0003;font-size:17px}
.brand b{font-size:12px;letter-spacing:1.15px}.brand small{font-size:9px;letter-spacing:1.35px}
.live{border:1px solid #ffffff24;border-radius:999px;padding:9px 14px;background:#ffffff0d;font-size:9px;font-weight:800}
.live i{box-shadow:0 0 0 4px #48d59722;animation:livePulse 1.8s infinite}
@keyframes livePulse{50%{box-shadow:0 0 0 7px #48d59708}}
main{max-width:1320px;padding:30px clamp(14px,3vw,38px) 24px}
.hero{min-height:250px;padding:clamp(26px,4vw,48px);border-radius:22px;background:linear-gradient(115deg,#061832 0%,#0c3768 60%,#14528c 100%);box-shadow:0 18px 45px #0a2b501c}
.hero:before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;right:-80px;bottom:-300px;background:radial-gradient(circle,#f5c54225,transparent 68%)}
.hero:after{right:120px;top:-170px;width:390px;height:390px;border-color:#ffffff18;box-shadow:0 0 0 42px #ffffff07,0 0 0 84px #ffffff04}
.eyebrow{font-size:10px;letter-spacing:2.3px}
.hero h1{font-size:clamp(36px,4.2vw,54px);letter-spacing:-1.8px;margin:13px 0 10px}
.sub{font-size:14px;max-width:570px;color:#d5e2f0}
.hero-side{background:#ffffff12;backdrop-filter:blur(8px);border-radius:14px;padding:16px 19px;box-shadow:0 8px 28px #0002}
.seal{width:60px;height:60px;border-color:#f5c542;color:#ffda69;font-size:15px}
.hero-side b{font-size:10px;letter-spacing:.6px}.hero-side small{font-size:10px}
.tabs{display:flex;gap:5px;margin:22px 0 18px;padding:6px;background:#e9eff6;border:1px solid #dce5ef;border-radius:14px;overflow-x:auto;scrollbar-width:thin;position:sticky;top:8px;z-index:4;box-shadow:0 5px 18px #102c4b0b}
.tabs button{white-space:nowrap;flex:0 0 auto;border:0;border-radius:9px;padding:12px 15px;font-size:10px;letter-spacing:.55px;color:#607187;transition:background .18s,color .18s,box-shadow .18s}
.tabs button:hover{background:#fff;color:var(--blue)}
.tabs button.active{background:#fff;color:var(--blue);border:0;box-shadow:0 3px 10px #12365b16}
.view.active{animation:viewIn .22s ease-out}
@keyframes viewIn{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:none}}
.toolbar,.map-toolbar{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:17px;box-shadow:var(--shadow);gap:14px}
.toolbar label,.admin-grid label,.map-toolbar label{font-size:9px;letter-spacing:.8px;color:#62748a}
select,input{height:44px;border:1px solid #d8e1ec;border-radius:10px;padding:0 13px;background:#fbfcfe;color:var(--ink);font:500 13px inherit;outline:none;transition:border .15s,box-shadow .15s,background .15s}
select:focus,input:focus{border-color:#3d79b5;box-shadow:0 0 0 3px #2d70ad1a;background:#fff}
.toolbar button,.admin-actions button{height:44px;border-radius:10px;padding:0 20px;font-size:10px;letter-spacing:.7px;transition:transform .15s,box-shadow .15s,background .15s}
.toolbar button:hover,.admin-actions button:hover{transform:translateY(-1px);box-shadow:0 6px 14px #12365b1c}
.primary{background:linear-gradient(135deg,#174f88,#0b3565)!important;box-shadow:0 5px 12px #0b397022}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}
.stats article,.panel,.map-card,.map-results{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}
.stats article{padding:20px;min-height:118px;position:relative;overflow:hidden}
.stats article:after{content:"";position:absolute;width:75px;height:75px;right:-32px;bottom:-36px;border-radius:50%;background:#eaf1f9}
.stats small,.panel-head small{font-size:9px;letter-spacing:1.15px;color:#74849a}
.stats strong{font-size:clamp(22px,2.2vw,29px);letter-spacing:-.7px;margin:11px 0 4px}
.stats span{font-size:10px;line-height:1.45;display:block}
.panel{padding:22px;margin-top:15px}
.panel-head{padding-bottom:16px;border-color:#edf1f6}
.panel h2{font-size:19px;letter-spacing:-.35px}
.tag{border:1px solid #dce8f5;background:#f0f5fb;color:#1c568d;border-radius:999px;padding:7px 11px;font-size:8px;letter-spacing:.8px}
.empty{padding:54px 20px;color:#74849a}
.candidate{grid-template-columns:42px 48px minmax(0,1fr) minmax(85px,110px) 64px;gap:13px;padding:16px 10px;border-bottom:1px solid #edf1f5;border-radius:9px;transition:background .15s}
.candidate:hover{background:#f8fafd}
.candidate .number{font-size:15px;color:#6a7f98}
.candidate-person,.candidate-photo,.candidate-avatar{width:48px;height:48px}
.candidate-photo,.candidate-avatar{border:2px solid #e6edf5}
.candidate b{font-size:13px;line-height:1.4}
.candidate small{font-size:10px;display:block;margin-top:3px}
.candidate strong{font-size:15px;font-variant-numeric:tabular-nums}
.percent{font-size:12px;font-variant-numeric:tabular-nums}
.bar{height:6px;background:#edf2f7;margin-top:9px}
.bar i{background:linear-gradient(90deg,#174f88,#4d8ec8);border-radius:8px}
.disclaimer{padding:13px 15px;border-left:3px solid var(--yellow);background:#fff;border-radius:0 10px 10px 0;color:#66788e;font-size:10px}
footer{max-width:1320px;padding:20px clamp(14px,3vw,38px) 30px;border-top:1px solid #e3eaf2;font-size:9px}
.map-toolbar h2{font-size:19px;letter-spacing:-.4px}.map-layout{gap:15px}.map-card,.map-results{padding:18px}
.map-selected{background:linear-gradient(135deg,#edf4fb,#f7f9fc);border:1px solid #e3ebf4;border-radius:12px}
.map-city{border-color:#e5ebf2;border-radius:10px;padding:11px;transition:border .15s,background .15s}
.map-city:hover{border-color:#9bb9d7;background:#f5f9fd}
.candidate-search-grid{gap:14px}
.search-candidate{border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 14px #102c4b08;transition:transform .15s,box-shadow .15s}
.search-candidate:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.search-photo{border-color:#e2eaf3}
.transmission{border-radius:18px;background:#e7edf5;padding:clamp(10px,2vw,20px)}
.broadcast{border-radius:14px;box-shadow:0 16px 36px #061a3740}
.admin-panel{margin-top:16px}.admin-grid input{width:100%}
.warning{border-radius:0 10px 10px 0;margin-top:15px}
pre{border-radius:12px;line-height:1.55}
button{font-family:inherit}
button:focus-visible{outline:3px solid #e7b92f;outline-offset:2px}
@media(max-width:900px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{gap:22px}.hero-side{flex-shrink:0}}
@media(max-width:700px){
 .top{height:68px;padding:0 14px}.mark{width:39px;height:39px}.brand b{font-size:10px}.brand small{font-size:8px}
 main{padding:16px 12px 20px}.hero{min-height:0;padding:25px 22px;border-radius:17px}.hero h1{font-size:38px}.hero-side{width:100%;margin-top:20px}
 .tabs{top:0;margin:14px -2px 15px;border-radius:11px;padding:5px}.tabs button{padding:11px 12px;font-size:9px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stats article{padding:14px;min-height:105px}.stats strong{font-size:22px}
 .toolbar{padding:13px;gap:11px}.toolbar label{min-width:100%}.toolbar button{width:100%}
 .panel{padding:15px}.panel h2{font-size:17px}.candidate{grid-template-columns:27px 38px minmax(0,1fr) 66px;gap:8px;padding:13px 3px}
 .candidate-person,.candidate-photo,.candidate-avatar{width:38px;height:38px}.candidate b{font-size:11px}.candidate small{font-size:9px}.candidate strong{font-size:11px}.candidate .percent{grid-column:4;font-size:10px}
 .map-toolbar{padding:14px}.map-layout{grid-template-columns:1fr}.brazil-map{min-height:280px}.map-cities{grid-template-columns:1fr 1fr}
 .search-candidate{grid-template-columns:52px minmax(0,1fr);padding:11px}.search-photo-wrap,.search-photo{width:52px;height:52px}
 .transmission{padding:8px}.broadcast{min-height:340px;border-radius:9px;padding:16px}.broadcast-head .brand b{font-size:8px}
 footer{padding:18px 14px 25px}
}
@media(max-width:390px){.stats{grid-template-columns:1fr}.map-cities{grid-template-columns:1fr}.candidate{grid-template-columns:24px 34px minmax(0,1fr) 60px}.candidate-person,.candidate-photo,.candidate-avatar{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* Filtros eleitorais e consolidação regional */
.region-summary{padding:14px 16px;margin:0 0 10px;background:#f5f8fc;border:1px solid #e3eaf2;border-radius:10px;font-size:11px;color:#63758a}.state-result-block{margin-top:16px;padding:14px;border:1px solid #e6edf4;border-radius:12px;background:#fbfcfe}.state-result-block h3{margin:0 0 8px;color:#123f70;font-size:13px}.filter-note{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#fff8df;color:#6c5818;font-size:10px}

/* Resultado com rolagem e pesquisa contextual */
.result-search{min-width:220px}
#candidateListBr,#candidateListUf,#candidateListRegion,#candidateListMun,#candidateListExterior{max-height:620px;overflow-y:auto;overflow-x:hidden;padding-right:8px;scrollbar-width:thin;scrollbar-color:#174f88 #edf2f7}
#candidateListBr::-webkit-scrollbar,#candidateListUf::-webkit-scrollbar,#candidateListRegion::-webkit-scrollbar,#candidateListMun::-webkit-scrollbar,#candidateListExterior::-webkit-scrollbar{width:9px}
#candidateListBr::-webkit-scrollbar-track,#candidateListUf::-webkit-scrollbar-track,#candidateListRegion::-webkit-scrollbar-track,#candidateListMun::-webkit-scrollbar-track,#candidateListExterior::-webkit-scrollbar-track{background:#edf2f7;border-radius:8px}
#candidateListBr::-webkit-scrollbar-thumb,#candidateListUf::-webkit-scrollbar-thumb,#candidateListRegion::-webkit-scrollbar-thumb,#candidateListMun::-webkit-scrollbar-thumb,#candidateListExterior::-webkit-scrollbar-thumb{background:#174f88;border-radius:8px}
.result-search{box-sizing:border-box;width:100%}
@media(max-width:700px){.result-search{min-width:100%}#candidateListBr,#candidateListUf,#candidateListRegion,#candidateListMun,#candidateListExterior{max-height:520px;padding-right:5px}}


/* =========================================================
   REDESIGN V2 — Central de Apuração São Francisco FM
   Camada visual não destrutiva: preserva IDs e contratos JS.
   ========================================================= */
:root{
  --navy:#06172f;
  --navy-2:#0a2850;
  --blue:#0e4d91;
  --blue-2:#1769bd;
  --yellow:#f5c542;
  --green:#22a06b;
  --red:#d64b55;
  --ink:#10243f;
  --muted:#6b7b90;
  --line:#dbe4ef;
  --paper:#eef3f8;
  --card:#fff;
  --shadow:0 10px 30px rgba(10,35,65,.07);
  --shadow-sm:0 4px 14px rgba(10,35,65,.06);
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 90% 0%,rgba(23,105,189,.07),transparent 30%),
    linear-gradient(180deg,#f7f9fc 0%,var(--paper) 100%);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  min-height:100vh;
}
body:before{
  content:"";
  position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:linear-gradient(rgba(10,40,80,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(10,40,80,.025) 1px,transparent 1px);
  background-size:32px 32px;
}
.top{
  height:72px;
  padding:0 max(calc((100% - 1240px)/2),20px);
  background:rgba(6,23,47,.96);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.08);
  position:sticky;top:0;z-index:50;
}
.brand{gap:11px}
.mark{
  width:40px;height:40px;border-radius:11px;
  box-shadow:0 5px 16px rgba(245,197,66,.18);
}
.brand b{font-size:12px;letter-spacing:1.15px}
.brand small{font-size:9px;letter-spacing:1.5px}
.live{display:flex;align-items:center;gap:18px}
.live label{
  display:flex;align-items:center;gap:7px;
  font-weight:800;letter-spacing:.8px;
}
.live select{
  height:34px!important;min-width:170px!important;
  background:#102f57;color:#fff;border:1px solid rgba(255,255,255,.18);
  border-radius:9px;font-weight:700;
}
main{max-width:1240px;padding:24px 20px 40px}
.hero{
  min-height:218px;border-radius:24px;padding:34px 38px;
  background:
    radial-gradient(circle at 84% 20%,rgba(245,197,66,.16),transparent 20%),
    linear-gradient(120deg,#06172f 0%,#0b3567 58%,#10549a 100%);
  box-shadow:0 18px 45px rgba(6,23,47,.17);
}
.hero h1{font-size:clamp(34px,4vw,50px);letter-spacing:-1.8px}
.hero .sub{font-size:13px;max-width:610px}
.hero-side{
  min-width:245px;border-radius:15px;
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.seal{width:58px;height:58px}
.tabs{
  position:sticky;top:72px;z-index:30;
  margin:18px -2px 22px;padding:5px;
  border:1px solid var(--line);border-radius:14px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  box-shadow:var(--shadow-sm);
  overflow-x:auto;scrollbar-width:none;
}
.tabs::-webkit-scrollbar{display:none}
.tabs button{
  white-space:nowrap;border-radius:9px;padding:11px 15px;
  border:0!important;font-size:10px;transition:.18s ease;
}
.tabs button:hover{background:#edf4fb;color:var(--blue)}
.tabs button.active{
  color:#fff;background:var(--blue);
  box-shadow:0 4px 12px rgba(14,77,145,.22);
}
.view{animation:fadeIn .18s ease}
@keyframes fadeIn{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.toolbar{
  align-items:end;gap:10px;padding:13px;
  border-radius:15px;background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-sm);
}
.toolbar label{min-width:155px;font-size:9px;letter-spacing:.85px}
.toolbar label:first-child{min-width:235px;flex:1.5}
select,input{
  height:42px;border-radius:10px;
  border-color:#d5e0eb;
  box-shadow:inset 0 1px 2px rgba(16,36,63,.025);
  transition:border-color .15s,box-shadow .15s,transform .15s;
}
select:focus,input:focus{
  outline:none;border-color:#4b8bca;
  box-shadow:0 0 0 3px rgba(23,105,189,.1);
}
.toolbar button{height:42px;border-radius:10px}
.primary{
  background:linear-gradient(135deg,var(--blue),var(--blue-2))!important;
  box-shadow:0 5px 14px rgba(14,77,145,.18);
}
.stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;margin:13px 0;
}
.stats article{
  min-height:105px;padding:16px 17px;border:1px solid var(--line);
  border-radius:15px;background:rgba(255,255,255,.95);
  box-shadow:var(--shadow-sm);
  position:relative;overflow:hidden;
}
.stats article:after{
  content:"";position:absolute;right:-18px;bottom:-22px;
  width:70px;height:70px;border-radius:50%;
  background:rgba(23,105,189,.055);
}
.stats small{font-size:9px;letter-spacing:1px;color:#728399;font-weight:800}
.stats strong{display:block;font-size:25px;letter-spacing:-.6px;margin:8px 0 4px}
.stats span{font-size:10px;color:var(--muted)}
.panel{
  margin-top:13px;border:1px solid var(--line);border-radius:17px;
  background:rgba(255,255,255,.97);box-shadow:var(--shadow);
  overflow:hidden;
}
.panel-head{
  padding:17px 18px;border-bottom:1px solid #e7edf4;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:linear-gradient(180deg,#fff,#fbfcfe);
}
.panel-head small{font-size:9px;letter-spacing:1.1px;color:#74859a;font-weight:800}
.panel-head h2{font-size:17px;letter-spacing:-.25px;margin-top:4px}
.tag{
  white-space:nowrap;padding:7px 9px;border-radius:8px;
  background:#edf6f0;color:#16724c;font-size:8px;font-weight:900;letter-spacing:.7px;
}
#candidateListBr,#candidateListUf,#candidateListRegion,#candidateListMun,#candidateListExterior{
  max-height:640px;padding:6px 12px 12px;
  scrollbar-width:thin;scrollbar-color:#7b96b4 #edf2f7;
}
.candidate{
  border-bottom:1px solid #edf1f5!important;
  padding:14px 8px!important;
  transition:background .15s,transform .15s;
}
.candidate:hover{background:#f7faff;transform:translateX(2px)}
.state-result-block{
  margin:9px 2px;padding:11px;border:1px solid #e3eaf2;
  border-radius:13px;background:#fbfcfe;
}
.state-result-block h3{
  display:flex;align-items:center;justify-content:space-between;
  padding:2px 4px 9px;font-size:12px;
}
.result-search{background:#fbfdff}
.map-toolbar{
  padding:18px;border:1px solid var(--line);border-radius:15px;
  background:#fff;box-shadow:var(--shadow-sm);
}
.map-layout{gap:14px}
.map-card,.map-results{
  border:1px solid var(--line);border-radius:17px;background:#fff;
  box-shadow:var(--shadow-sm);
}
.map-results{overflow:hidden}
.map-selected{padding:18px;background:linear-gradient(135deg,#071c3b,#0d4c8f);color:#fff}
.map-selected small{color:#b8cce2}
.map-selected strong{font-size:26px;margin-top:6px}
.map-selected span{color:#d3dfec}
.map-cities{max-height:540px;overflow:auto;padding:10px}
.map-city{
  border:1px solid #e6edf4!important;border-radius:10px!important;
  margin-bottom:7px!important;background:#fbfcfe!important;
}
.candidate-search-grid{padding:14px}
.search-candidate{
  border:1px solid #e3eaf2!important;border-radius:13px!important;
  box-shadow:none!important;transition:.15s;
}
.search-candidate:hover{box-shadow:var(--shadow-sm)!important;transform:translateY(-1px)}
.disclaimer{
  margin:18px 0 0;padding:12px 14px;border-radius:11px;
  background:#f8fbfe;border:1px solid #e0e9f2;
  color:#718198;font-size:10px;line-height:1.55;
}
footer{
  max-width:1240px;margin:0 auto;padding:0 20px 28px;
  color:#77869a;font-size:10px;
}
.transmission .broadcast{
  border-radius:20px!important;box-shadow:0 18px 50px rgba(6,23,47,.2);
}
button{font-family:inherit}
@media(max-width:900px){
  .top{height:auto;min-height:68px;padding:10px 14px}
  .live{gap:8px}.live span{display:none}
  .tabs{top:68px}
  .hero{padding:28px 24px}.hero-side{min-width:210px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  main{padding:14px 12px 30px}
  .brand small{display:none}
  .brand b{font-size:10px}
  .mark{width:36px;height:36px}
  .live label{font-size:8px}
  .live select{min-width:132px!important;height:32px!important;font-size:10px}
  .hero{min-height:auto;padding:23px 20px;border-radius:18px}
  .hero h1{font-size:35px}
  .hero-side{margin-top:20px;min-width:0;width:100%}
  .hero{display:block}
  .stats{grid-template-columns:1fr 1fr;gap:8px}
  .stats article{min-height:95px;padding:13px}
  .stats strong{font-size:21px}
  .toolbar{padding:10px}
  .toolbar label,.toolbar label:first-child{min-width:100%;flex:auto}
  .toolbar button{width:100%}
  .panel-head{align-items:flex-start}
  .tag{font-size:7px}
  #candidateListBr,#candidateListUf,#candidateListRegion,#candidateListMun,#candidateListExterior{max-height:520px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}.view{animation:none}*{transition:none!important}
}

/* Dashboard operacional v2 */
.opsbar{max-width:1240px;margin:14px auto 10px;padding:10px 12px;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-sm);position:sticky;top:74px;z-index:18;backdrop-filter:blur(12px)}
.ops-item{display:flex;align-items:center;gap:9px;padding:7px 10px;border-right:1px solid var(--line);min-width:150px}.ops-item small{display:block;font-size:8px;letter-spacing:.11em;color:#7b8da3;font-weight:800}.ops-item strong{display:block;margin-top:2px;font-size:11px;color:var(--navy)}.ops-dot{width:8px;height:8px;border-radius:50%;background:#2aa876;box-shadow:0 0 0 4px rgba(42,168,118,.12)}.ops-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}.ops-actions button{border:1px solid #dbe5ef;background:#f7faff;color:#24415f;border-radius:9px;padding:8px 10px;font-size:9px;font-weight:800;letter-spacing:.05em;cursor:pointer}.ops-actions button:hover{background:#edf5fd;border-color:#c7d9ea}.tabs{border:1px solid #dce6f0!important;box-shadow:var(--shadow-sm);background:rgba(255,255,255,.96)!important}.tabs button{font-weight:800}.view{scroll-margin-top:140px}.hero{box-shadow:0 18px 45px rgba(7,28,59,.13)!important}.stats article{transition:transform .15s,box-shadow .15s}.stats article:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
@media(max-width:900px){.opsbar{top:68px;margin:10px 0;overflow:auto;flex-wrap:nowrap}.ops-item{min-width:130px}.ops-actions{min-width:max-content;margin-left:0}.tabs{top:122px}}
@media(max-width:640px){.opsbar{gap:4px;padding:7px}.ops-item{min-width:112px;padding:6px}.ops-item:nth-child(2){display:none}.ops-actions button{padding:7px 8px;font-size:8px}.tabs{top:112px}}


/* ===== DASHBOARD V3 ===== */
body{background:#eef2f7}
.top{height:68px;position:sticky;top:0;z-index:50;box-shadow:0 2px 12px #071c3b18}
main{max-width:1440px;padding:20px 24px 28px;display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:16px}
.hero{grid-column:1/-1;grid-row:1;min-height:155px;padding:25px 30px;border-radius:14px;box-shadow:0 8px 28px #071c3b18}
.hero h1{font-size:34px;margin:8px 0}.hero .sub{margin:0;max-width:650px}
.hero:after{right:170px;top:-190px}
.hero-side{padding:11px 15px}
.opsbar{grid-column:1/-1;grid-row:2;margin:0!important;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px!important;box-shadow:0 3px 14px #071c3b0b;display:flex!important;align-items:center;gap:18px}
.ops-item{min-width:145px;padding:4px 12px;border-right:1px solid var(--line)}
.ops-item strong{font-size:12px}.ops-actions{margin-left:auto;display:flex;gap:6px}.ops-actions button{border:1px solid var(--line);background:#f7f9fc;color:var(--blue);border-radius:7px;padding:9px 12px;font-size:9px;font-weight:800;cursor:pointer}
.tabs{grid-column:1;grid-row:3;margin:0;border:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px;display:flex;flex-direction:column;gap:3px;align-self:start;position:sticky;top:84px;box-shadow:0 3px 14px #071c3b0b}
.tabs button{width:100%;text-align:left;border:0!important;border-radius:7px;padding:12px 13px;color:#68778b;background:transparent;position:relative}
.tabs button:hover{background:#f1f5f9;color:var(--blue)}
.tabs button.active{background:#eaf1f8;color:var(--blue);border:0!important}
.tabs button.active:before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:var(--yellow)}
.view{grid-column:2;grid-row:3;min-width:0}
.view.active{display:block}
.toolbar{border-radius:10px;padding:12px;box-shadow:0 2px 10px #071c3b08}
.stats{margin:12px 0;grid-template-columns:repeat(4,minmax(0,1fr))}
.stats article{border-radius:10px;padding:16px;box-shadow:0 2px 10px #071c3b08;position:relative;overflow:hidden}
.stats article:after{content:"";position:absolute;right:-18px;bottom:-24px;width:75px;height:75px;border-radius:50%;background:#edf3f9}
.stats strong{font-size:24px;position:relative;z-index:1}
.panel{border-radius:10px;box-shadow:0 2px 12px #071c3b08;padding:18px}
.panel-head{padding-bottom:12px}.panel h2{font-size:18px}
.candidate{grid-template-columns:42px 48px minmax(0,1fr) 115px 65px;padding:13px 5px}
.candidate:hover{background:#f8fafc}
.disclaimer{grid-column:2}
footer{max-width:1440px}

@media(max-width:900px){
 main{display:block;padding:14px}
 .hero{margin-bottom:12px}.opsbar{margin-bottom:12px!important;overflow:auto;flex-wrap:nowrap}
 .ops-actions{display:none}.tabs{position:static;display:flex;flex-direction:row;overflow-x:auto;margin-bottom:12px;white-space:nowrap}.tabs button{width:auto;min-width:max-content;text-align:center}.tabs button.active:before{display:none}
 .view{width:100%}.stats{grid-template-columns:repeat(2,1fr)}
 .disclaimer{display:block}
}
@media(max-width:600px){
 .top{height:60px}.hero{min-height:145px;padding:20px}.hero h1{font-size:30px}.hero-side{display:none}
 .opsbar{padding:8px!important;gap:4px}.ops-item{min-width:120px}
 .stats{grid-template-columns:1fr}.candidate{grid-template-columns:32px 42px minmax(0,1fr) 72px}.candidate .percent{display:none}
}


/* Ajuste de leitura: votos e porcentagem com separação visual */
.candidate-votes{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  min-width:150px;
  padding-left:18px;
  white-space:nowrap;
}
.candidate-votes strong{
  min-width:82px;
  text-align:right;
  font-size:16px;
  line-height:1.2;
  letter-spacing:.1px;
}
.candidate-votes span{
  min-width:52px;
  text-align:right;
  font-size:13px;
  font-weight:700;
  color:var(--blue);
  line-height:1.2;
}
@media (max-width:640px){
  .candidate-votes{gap:10px;min-width:128px;padding-left:10px}
  .candidate-votes strong{min-width:68px;font-size:14px}
  .candidate-votes span{min-width:45px;font-size:12px}
}

/* Correções de resultados e fotos */
.tv-candidate{display:grid;grid-template-columns:32px 48px minmax(0,1fr) auto;align-items:center;gap:12px}.tv-candidate-photo,.tv-candidate-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.45)}.tv-candidate-avatar{display:grid;place-items:center;background:#edf3f9;color:var(--blue);font-weight:900;font-size:12px}.map-candidates{margin-bottom:16px}.map-candidates-title{font-size:11px;font-weight:900;color:var(--blue);letter-spacing:.08em;margin-bottom:8px}.map-candidates .candidate{margin-bottom:6px}.election-badge.second-round{background:#fff3cd;color:#7a5a00;border:1px solid #f0d77a}
@media(max-width:640px){.tv-candidate{grid-template-columns:24px 42px minmax(0,1fr) auto;gap:8px}.tv-candidate-photo,.tv-candidate-avatar{width:38px;height:38px}}

/* Mapa eleitoral por liderança no turno selecionado */
.brazil-map .map-state{fill:#dfe6ee;stroke:#fff;stroke-width:1.2;cursor:pointer;transition:fill .2s,filter .2s,transform .2s}
.brazil-map .map-state.map-data{fill:var(--map-fill,#dfe6ee)}
.brazil-map .map-state:hover{filter:brightness(.94);stroke:#10233d;stroke-width:1.8}
.brazil-map .map-state.selected{stroke:#10233d;stroke-width:3;filter:brightness(.96)}
.map-legend{display:flex;flex-wrap:wrap;gap:8px 14px;padding:14px 16px;border-top:1px solid var(--line);background:#fff}
.map-legend-title{width:100%;font-size:10px;font-weight:900;letter-spacing:1px;color:var(--muted);text-transform:uppercase}
.map-legend-item{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--ink)}
.map-legend-item i{width:12px;height:12px;border-radius:3px;display:inline-block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.map-legend-item b{font-size:12px}
.map-legend-item small{color:var(--muted)}
@media(max-width:760px){.map-legend{gap:8px}.map-legend-item{width:100%}}


/* MAPA DE APURAÇÃO — experiência de mapa jornalístico */
.map-stage{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(360px,.9fr);gap:14px;align-items:start}
.map-main-card,.map-results{border:1px solid #d9e2ec;border-radius:12px;background:#fff;box-shadow:0 3px 14px rgba(7,28,59,.08);overflow:hidden}
.map-main-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid #e8edf3}
.map-main-head small,.map-city-head small{display:block;font-size:9px;letter-spacing:1px;font-weight:900;color:#738399}
.map-main-head h2{font-size:18px;margin-top:4px;color:#122b49}
.map-source-badge{font-size:8px;font-weight:900;letter-spacing:.7px;padding:7px 9px;border-radius:6px;background:#edf4fa;color:#22557f}
.map-selected{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;background:#082653;color:#fff}
.map-selected small{display:block;color:#b9cbe0;font-size:8px;font-weight:800;letter-spacing:1px}
.map-selected strong{display:block;font-size:26px;line-height:1;margin:7px 0 3px}
.map-selected span{display:block;color:#d3deea;font-size:11px}
.map-location-dot{font-size:17px;color:#f5c542!important}
.map-uf-candidates{padding:13px 15px 8px;border-bottom:1px solid #e8edf3}
.map-result-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:9px}
.map-result-title span{font-size:8px;letter-spacing:1px;color:#728399;font-weight:900}
.map-result-title b{font-size:11px;color:#173b63}
.map-progress{padding:9px 0 11px}
.map-progress>div:first-child{display:flex;justify-content:space-between;align-items:center}
.map-progress small{font-size:8px;color:#7a899b;font-weight:800;letter-spacing:.5px}
.map-progress strong{font-size:11px;color:#174f88}
.map-progress-track{height:5px;margin-top:7px;border-radius:9px;background:#e9eef4;overflow:hidden}
.map-progress-track i{display:block;height:100%;border-radius:9px;background:#174f88}
.map-candidate-list{max-height:315px;overflow:auto}
.map-candidate-list .candidate{grid-template-columns:28px 38px minmax(0,1fr) 92px;padding:10px 2px!important;gap:7px}
.map-candidate-list .candidate-person,.map-candidate-list .candidate-photo,.map-candidate-list .candidate-avatar{width:36px;height:36px}
.map-candidate-list .candidate b{font-size:10px}
.map-candidate-list .candidate small{font-size:8px}
.map-candidate-list .candidate-votes{min-width:88px;gap:7px;padding-left:5px}
.map-candidate-list .candidate-votes strong{min-width:50px;font-size:11px}
.map-candidate-list .candidate-votes span{min-width:35px;font-size:10px}
.map-total-note{padding:9px 0 2px;color:#7a899b;font-size:8px}
.map-city-head{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:14px 15px 10px}
.map-city-head b{display:block;margin-top:4px;font-size:12px;color:#173b63}
.map-city-head input{width:160px;height:34px;font-size:10px}
.map-cities{max-height:430px;overflow:auto;padding:0 10px 10px}
.map-city{display:grid!important;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:9px;width:100%;padding:10px 10px!important;margin:0 0 5px!important;text-align:left;background:#fbfcfe!important;border:1px solid #e5ebf2!important;border-radius:7px!important}
.map-city:hover{background:#f3f7fb!important;border-color:#cddae7!important}
.map-city-name{font-size:11px;font-weight:800;color:#1b3d62}
.map-city small{font-size:8px;color:#8997a8}
.map-city-arrow{font-size:18px;color:#7990a8;text-align:right}
.map-searchbar{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;padding:12px;margin:10px 0;border:1px solid #dce5ee;border-radius:10px;background:#fff;box-shadow:0 2px 10px rgba(7,28,59,.05)}
.map-searchbar label{font-size:8px;font-weight:900;letter-spacing:.8px;color:#6f8095}
.map-searchbar select{width:100%;height:38px;margin-top:5px;font-size:10px}
.map-searchbar button{height:38px;margin-top:13px}
.brazil-map{min-height:500px;padding:14px;background:linear-gradient(180deg,#f8fafc,#eef3f7)}
.brazil-map svg{display:block;width:100%;height:auto;min-height:470px}
.brazil-map .map-state{stroke:#fff;stroke-width:1.2}
.brazil-map .map-state:hover{filter:brightness(.93);stroke:#17324f;stroke-width:2}
.map-legend{border-top:1px solid #e1e8ef}
@media(max-width:1050px){.map-stage{grid-template-columns:1fr}.map-results{display:grid;grid-template-columns:1fr 1fr}.map-selected{grid-column:1/-1}.map-uf-candidates{border-right:1px solid #e8edf3}.map-city-head{grid-column:2;grid-row:2}.map-cities{grid-column:2;grid-row:3;max-height:360px}.map-main-card{grid-row:1}.map-results{grid-row:2}}
@media(max-width:700px){.map-searchbar{grid-template-columns:1fr}.map-searchbar button{width:100%;margin-top:0}.map-results{display:block}.map-uf-candidates{border-right:0}.map-city-head{display:block}.map-city-head input{width:100%;margin-top:8px}.map-cities{max-height:350px}.brazil-map{min-height:300px}.brazil-map svg{min-height:290px}.map-candidate-list{max-height:360px}}

.ops-dot.offline{background:#d9534f;box-shadow:0 0 0 4px rgba(217,83,79,.14)}


/* Painel pré-2º turno: candidatos classificados, sem contagens de votos */
.runoff-note{margin:8px 4px 12px;padding:12px 14px;border:1px solid #d9e6f2;border-radius:10px;background:#f2f7fc;color:#36516f;font-size:12px;line-height:1.5}
.runoff-candidate .candidate-votes strong{min-width:auto;color:#176b4b;font-size:11px;letter-spacing:.04em}
.runoff-candidate .candidate-votes span{min-width:auto;color:#47627f;font-size:10px}
.runoff-search{grid-template-columns:72px minmax(0,1fr)}
.runoff-search .search-info span{display:block;margin-top:7px;color:#176b4b;font-size:10px;font-weight:900;letter-spacing:.05em}
.runoff-tv-candidate strong{font-size:12px;letter-spacing:.06em}
@media(max-width:700px){.runoff-candidate .candidate-votes{min-width:108px}.runoff-candidate .candidate-votes strong{font-size:10px}}
@media(max-width:480px){
  .candidate,.map-candidate-list .candidate{grid-template-columns:26px 36px minmax(0,1fr)!important;align-items:start;gap:6px 8px!important;padding:11px 3px!important}
  .candidate-person,.candidate-photo,.candidate-avatar{width:36px!important;height:36px!important}
  .candidate-info{grid-column:3;min-width:0}
  .candidate-heading{align-items:flex-start;gap:3px 6px}
  .candidate-votes{grid-column:3!important;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;min-width:0!important;padding-left:0!important;gap:4px 10px;white-space:normal}
  .candidate-votes strong,.candidate-votes span{min-width:0!important;text-align:left!important;overflow-wrap:anywhere}
  .candidate-votes strong{font-size:12px!important}
  .candidate-votes span{font-size:10px!important}
}
@media(max-width:240px){
  .candidate,.map-candidate-list .candidate{grid-template-columns:20px 28px minmax(0,1fr)!important;gap:5px!important;padding:9px 2px!important}
  .candidate-person,.candidate-photo,.candidate-avatar{width:28px!important;height:28px!important}
  .candidate .number{font-size:12px}
  .candidate-heading .election-badge{max-width:100%;font-size:7px;letter-spacing:0;padding:2px 3px;white-space:normal;overflow-wrap:anywhere}
}
