:root{color-scheme:dark;--navy:#071925;--navy2:#0d2738;--panel:#102e41;--line:rgba(255,255,255,.12);--muted:#9db0bd;--text:#f7fbfd;--accent:#48d6a0;--white:#fff}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--navy);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text)}body{overflow-x:hidden}.ee-tv-app{min-height:100vh;display:grid;grid-template-rows:auto auto auto 1fr auto;background:radial-gradient(circle at 25% 10%,rgba(72,214,160,.09),transparent 32%),linear-gradient(135deg,#071925,#0a2130 58%,#06151f)}.ee-tv-topbar{height:70px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;padding:0 24px;border-bottom:1px solid var(--line);background:rgba(4,16,24,.88);backdrop-filter:blur(14px);position:relative;z-index:20}.ee-tv-brand{display:flex;align-items:baseline;gap:9px}.ee-tv-brand span{font-size:12px;font-weight:950;letter-spacing:.18em;color:var(--accent)}.ee-tv-brand strong{font-size:18px}.ee-tv-tabs{display:flex;justify-content:center;gap:6px}.ee-tv-tabs a,.ee-tv-actions a{color:#c3d1d9;text-decoration:none;font-weight:800;font-size:13px;padding:9px 13px;border-radius:999px}.ee-tv-tabs a.is-active{background:#fff;color:#0b2637}.ee-tv-actions{display:flex;justify-content:flex-end;gap:5px}.ee-tv-actions a{border:1px solid var(--line)}.ee-tv-actions .ee-tv-back{background:var(--accent);border-color:var(--accent);color:#06201a}.ee-tv-toolbar{min-height:64px;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:11px 24px;border-bottom:1px solid var(--line)}.ee-tv-toolbar>div:first-child{display:grid;gap:2px}.ee-tv-toolbar strong{font-size:20px}.ee-tv-toolbar span{font-size:11px;color:var(--muted)}.ee-tv-filters{display:flex;gap:8px}.ee-tv-filters label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.ee-tv-filters select{min-height:38px;border:1px solid var(--line);border-radius:10px;background:#102d40;color:#fff;padding:0 10px}.ee-tv-live-tag{display:flex!important;align-items:center;gap:8px!important;border:1px solid rgba(72,214,160,.25);border-radius:999px;padding:8px 12px;background:rgba(72,214,160,.07)}.ee-tv-live-tag i{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 6px rgba(72,214,160,.1)}.ee-tv-warning{padding:8px 24px;background:#78350f;color:#ffedd5;font-size:12px}.ee-tv-main{min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(380px,.75fr);gap:14px;padding:14px 18px 12px}.ee-tv-map-card,.ee-tv-side{min-height:0;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,rgba(18,48,67,.96),rgba(8,28,41,.96));box-shadow:0 22px 60px rgba(0,0,0,.22)}.ee-tv-map-card{position:relative;display:grid;grid-template-rows:1fr auto;overflow:hidden}.ee-tv-map{min-height:620px;display:grid;place-items:center;padding:18px}.ee-tv-map svg{display:block;width:min(100%,780px)!important;height:auto!important;max-height:68vh;filter:drop-shadow(0 18px 24px rgba(0,0,0,.28))}.ee-tv-map .state .shape,.ee-tv-map .state .icon_state{cursor:pointer}.ee-tv-map .state:hover .shape,.ee-tv-map .state:focus .shape{filter:brightness(1.12) saturate(1.08)}.ee-tv-map .label_icon_state{font-family:Arial,sans-serif!important;font-weight:950!important;text-shadow:0 1px 2px rgba(0,0,0,.28)}.ee-tv-map-badge circle{filter:drop-shadow(0 2px 3px rgba(0,0,0,.45))}.ee-tv-map-legend{display:flex;align-items:center;gap:10px;padding:11px 16px;border-top:1px solid var(--line);background:rgba(3,15,23,.5)}.ee-tv-map-legend strong{font-size:12px;white-space:nowrap}.ee-tv-map-legend span{font-size:10px;color:var(--muted);line-height:1.4}.ee-tv-side{overflow:auto}.ee-tv-empty{height:100%;min-height:620px;display:grid;align-content:center;justify-items:center;text-align:center;padding:40px}.ee-tv-empty>span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:900;color:var(--accent)}.ee-tv-empty h1{font-size:34px;margin:8px 0 9px}.ee-tv-empty p{max-width:430px;color:var(--muted);line-height:1.55}.ee-tv-empty button{margin-top:10px;border:0;border-radius:12px;background:var(--accent);color:#06201a;padding:11px 15px;font-weight:900;cursor:pointer}.ee-tv-state-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px;background:rgba(7,25,37,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.ee-tv-state-head>div{display:flex;align-items:center;gap:11px}.ee-tv-state-head>div>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff;color:#0a2738;font-weight:950;font-size:17px}.ee-tv-state-head small{font-size:9px;color:var(--accent);font-weight:900;text-transform:uppercase;letter-spacing:.08em}.ee-tv-state-head h1{margin:2px 0 0;font-size:25px}.ee-tv-state-head>a{color:#cde8dc;text-decoration:none;font-size:10px;font-weight:850}.ee-tv-result-section{padding:15px 16px;border-bottom:1px solid var(--line)}.ee-tv-result-section>header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.ee-tv-result-section>header>div{display:grid;gap:2px}.ee-tv-result-section>header span{font-weight:900;font-size:15px}.ee-tv-result-section>header small{font-size:9px;color:var(--muted);line-height:1.3}.ee-tv-result-section>header em{font-style:normal;font-size:10px;color:var(--accent);font-weight:900}.ee-tv-bars{display:grid;gap:8px}.ee-tv-bars article{display:grid;grid-template-columns:24px 35px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px;border:1px solid rgba(255,255,255,.08);border-left:4px solid var(--series,#64748b);border-radius:12px;background:rgba(255,255,255,.035)}.ee-tv-bars article.is-leader{background:rgba(255,255,255,.07)}.ee-tv-rank{font-size:11px;font-weight:900;color:#9fb0bb;text-align:center}.ee-tv-bars article>img,.ee-tv-party-fallback{width:34px;height:34px;object-fit:contain;border-radius:9px;padding:3px;background:#fff;display:grid;place-items:center;color:#173b57;font-size:7px;font-weight:900}.ee-tv-candidate{min-width:0;display:grid;gap:5px}.ee-tv-candidate>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.ee-tv-candidate strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ee-tv-candidate small{font-size:9px;color:var(--muted)}.ee-tv-track{height:6px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}.ee-tv-track i{display:block;height:100%;border-radius:inherit;background:var(--series,#64748b)}.ee-tv-votes{font-size:8px!important}.ee-tv-bars article>b{font-size:17px}.ee-tv-no-data{padding:18px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted);font-size:11px}.ee-tv-national-mini{background:rgba(72,214,160,.035)}.ee-tv-side-links{display:flex;gap:7px;flex-wrap:wrap;padding:13px 16px}.ee-tv-side-links a{color:#d7ede3;text-decoration:none;border:1px solid var(--line);border-radius:999px;padding:8px 10px;font-size:9px;font-weight:850}.ee-tv-footer{min-height:36px;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:6px 24px;color:#78909d;font-size:9px;border-top:1px solid var(--line)}.ee-tv-map-loading,.ee-tv-map-error{color:var(--muted);font-weight:800}.ee-tv-map-error{padding:30px;text-align:center}
@media(max-width:1050px){.ee-tv-topbar{grid-template-columns:1fr auto}.ee-tv-tabs{order:3;grid-column:1/-1;padding-bottom:8px}.ee-tv-topbar{height:auto;padding-top:10px}.ee-tv-actions a:first-child{display:none}.ee-tv-main{grid-template-columns:1fr}.ee-tv-map{min-height:480px}.ee-tv-side{max-height:none}.ee-tv-empty{min-height:300px}.ee-tv-map svg{max-height:520px}}
@media(max-width:680px){.ee-tv-topbar,.ee-tv-toolbar{padding-left:12px;padding-right:12px}.ee-tv-brand strong{font-size:15px}.ee-tv-actions .ee-tv-back{font-size:10px;padding:8px}.ee-tv-toolbar{align-items:flex-start;flex-direction:column}.ee-tv-filters{width:100%;overflow:auto}.ee-tv-filters label{min-width:160px;display:grid}.ee-tv-main{padding:9px;gap:9px}.ee-tv-map-card,.ee-tv-side{border-radius:14px}.ee-tv-map{min-height:380px;padding:6px}.ee-tv-map svg{max-height:400px}.ee-tv-footer{display:block;padding:9px 12px}.ee-tv-state-head h1{font-size:20px}.ee-tv-bars article{grid-template-columns:21px 31px minmax(0,1fr) auto}.ee-tv-bars article>img,.ee-tv-party-fallback{width:30px;height:30px}.ee-tv-bars article>b{font-size:14px}}

/* 1.9.1 — presidente, termômetro, representatividade e filtros analíticos */
.ee-tv-offices{display:flex;gap:5px;align-items:center}.ee-tv-offices button{border:1px solid var(--line);border-radius:999px;background:#102d40;color:#c8d8e1;padding:9px 13px;font-size:11px;font-weight:900;cursor:pointer}.ee-tv-offices button.is-active{background:#fff;color:#0b2637;border-color:#fff}.ee-tv-analysis-filters{display:flex;align-items:end;gap:8px;padding:9px 18px;border-bottom:1px solid var(--line);background:rgba(8,28,41,.7);overflow:auto}.ee-tv-analysis-filters label{display:grid;gap:4px;min-width:145px;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.ee-tv-analysis-filters select{min-height:36px;border:1px solid var(--line);border-radius:10px;background:#102d40;color:#fff;padding:0 9px}.ee-tv-analysis-filters button{min-height:36px;border:1px solid var(--line);border-radius:10px;background:transparent;color:#c8d8e1;padding:0 12px;font-size:10px;font-weight:850;cursor:pointer}.ee-tv-perspective{display:flex;gap:8px;padding:10px 18px;border-bottom:1px solid var(--line);overflow:auto;background:rgba(4,16,24,.45)}.ee-tv-insight-card,.ee-tv-party-card{flex:0 0 auto;min-width:150px;min-height:76px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035);padding:10px}.ee-tv-insight-card{display:grid;gap:3px;border-top:3px solid var(--insight,var(--accent))}.ee-tv-insight-card span,.ee-tv-party-card span{font-size:9px;color:var(--muted);font-weight:850;text-transform:uppercase;letter-spacing:.04em}.ee-tv-insight-card strong{font-size:20px}.ee-tv-insight-card small,.ee-tv-party-card small{font-size:9px;color:var(--muted)}.ee-tv-party-card{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:center;border-left:4px solid var(--party,#64748b)}.ee-tv-party-card>img,.ee-tv-party-card>.ee-tv-party-fallback{width:34px;height:34px;object-fit:contain;border-radius:9px;padding:3px;background:#fff;color:#173b57;display:grid;place-items:center;font-size:7px;font-weight:900}.ee-tv-party-card>div{display:grid;gap:1px}.ee-tv-party-card strong{font-size:17px}.ee-tv-thermo{display:inline-flex!important;align-items:center;gap:5px;margin-top:4px;color:#d7e7ee!important}.ee-tv-thermo:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--thermo,#64748b);box-shadow:0 0 0 4px color-mix(in srgb,var(--thermo,#64748b) 18%,transparent)}.ee-tv-50-marker{display:inline-grid;place-items:center;margin-left:5px;padding:2px 5px;border-radius:999px;background:#0f766e;color:#fff!important;font-style:normal!important;font-size:8px!important;font-weight:950!important;line-height:1.2;vertical-align:middle}.ee-tv-state-head>button{border:1px solid var(--line);border-radius:999px;background:var(--accent);color:#06201a;padding:8px 11px;font-size:9px;font-weight:900;cursor:pointer}.ee-tv-map .shape,.ee-tv-map .icon_state{transition:fill .2s ease,stroke .2s ease,opacity .2s ease}.ee-tv-map-badge rect{filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
@media(max-width:1180px){.ee-tv-toolbar{flex-wrap:wrap}.ee-tv-offices{order:3;width:100%}.ee-tv-analysis-filters{padding-left:12px;padding-right:12px}.ee-tv-perspective{padding-left:12px;padding-right:12px}}
@media(max-width:680px){.ee-tv-offices{overflow:auto}.ee-tv-offices button{white-space:nowrap}.ee-tv-analysis-filters label{min-width:135px}.ee-tv-perspective{gap:6px}.ee-tv-insight-card,.ee-tv-party-card{min-width:140px}.ee-tv-perspective{scroll-snap-type:x proximity}.ee-tv-perspective>*{scroll-snap-align:start}}

/* 2.0.0 — temas, layouts, embeds e variações de apresentação */
.ee-tv-body{--navy:var(--bg,#071923);background:var(--bg,#071923);color:var(--text,#f4f7f8)}
.ee-tv-body .ee-tv-app{background:radial-gradient(circle at 25% 10%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 32%),linear-gradient(135deg,var(--bg),color-mix(in srgb,var(--panel) 62%,var(--bg)) 58%,var(--bg));color:var(--text)}
.ee-tv-body .ee-tv-map-card,.ee-tv-body .ee-tv-side{background:linear-gradient(180deg,color-mix(in srgb,var(--panel) 94%,#000),color-mix(in srgb,var(--bg) 82%,#000))}
.ee-tv-body .ee-tv-filters select,.ee-tv-body .ee-tv-analysis-filters select,.ee-tv-body .ee-tv-offices button{background:color-mix(in srgb,var(--panel) 86%,var(--bg));color:var(--text)}
.ee-layout-resultado-esquerda .ee-tv-main{grid-template-columns:minmax(380px,.75fr) minmax(0,1.45fr)}.ee-layout-resultado-esquerda .ee-tv-side{order:1}.ee-layout-resultado-esquerda .ee-tv-map-card{order:2}
.ee-layout-mapa-topo .ee-tv-main{grid-template-columns:1fr}.ee-layout-mapa-topo .ee-tv-map-card{min-height:560px}.ee-layout-mapa-topo .ee-tv-side{max-height:none}.ee-layout-mapa-topo .ee-tv-map{min-height:520px}.ee-layout-mapa-topo .ee-tv-map svg{max-height:540px}
.ee-filters-nao .ee-tv-analysis-filters,.ee-filters-nao .ee-tv-filters{display:none!important}.ee-filters-compacto .ee-tv-analysis-filters{padding-top:5px;padding-bottom:5px}.ee-filters-compacto .ee-tv-analysis-filters label{min-width:112px}.ee-filters-compacto .ee-tv-analysis-filters select,.ee-filters-compacto .ee-tv-analysis-filters button{min-height:30px;font-size:9px}
.ee-candidates-compacto .ee-tv-bars{gap:4px}.ee-candidates-compacto .ee-tv-bars article{padding:6px 8px;border-radius:8px;grid-template-columns:20px 26px minmax(0,1fr) auto}.ee-candidates-compacto .ee-tv-bars article>img,.ee-candidates-compacto .ee-tv-party-fallback{width:25px;height:25px}.ee-candidates-compacto .ee-tv-track{height:4px}.ee-candidates-compacto .ee-tv-votes{display:none}
.ee-candidates-cards .ee-tv-bars{grid-template-columns:repeat(2,minmax(0,1fr))}.ee-candidates-cards .ee-tv-bars article{grid-template-columns:24px 34px minmax(0,1fr);position:relative;align-items:start}.ee-candidates-cards .ee-tv-bars article>b{grid-column:3;font-size:21px}.ee-candidates-cards .ee-tv-track{height:8px}
.ee-font-humanista{font-family:"Trebuchet MS",Verdana,system-ui,sans-serif}.ee-font-serifada{font-family:Georgia,"Times New Roman",serif}.ee-font-serifada .ee-tv-filters,.ee-font-serifada .ee-tv-analysis-filters,.ee-font-serifada .ee-tv-footer{font-family:system-ui,sans-serif}.ee-font-compacta{font-family:"Arial Narrow",Arial,sans-serif}.ee-font-compacta .ee-tv-bars article strong{font-stretch:condensed}
.ee-style-claro{color-scheme:light;--line:rgba(15,38,55,.13);--muted:#64748b}.ee-style-claro .ee-tv-app{background:linear-gradient(145deg,var(--bg),#fff)}.ee-style-claro .ee-tv-topbar,.ee-style-claro .ee-tv-toolbar,.ee-style-claro .ee-tv-analysis-filters,.ee-style-claro .ee-tv-perspective{background:rgba(255,255,255,.78);color:var(--text)}.ee-style-claro .ee-tv-map-card,.ee-style-claro .ee-tv-side{background:#fff;color:var(--text);box-shadow:0 18px 45px rgba(15,38,55,.1)}.ee-style-claro .ee-tv-bars article,.ee-style-claro .ee-tv-insight-card,.ee-style-claro .ee-tv-party-card{background:#f8faf9}.ee-style-claro .ee-tv-bars article small,.ee-style-claro .ee-tv-toolbar span,.ee-style-claro .ee-tv-result-section>header small{color:#64748b}
.ee-style-editorial .ee-tv-map-card,.ee-style-editorial .ee-tv-side{border-radius:8px}.ee-style-editorial .ee-tv-insight-card,.ee-style-editorial .ee-tv-party-card,.ee-style-editorial .ee-tv-bars article{border-radius:6px}.ee-style-editorial .ee-tv-topbar{border-bottom-width:3px;border-bottom-color:var(--accent)}
.ee-style-contraste{--line:rgba(255,255,255,.32);--muted:#e2e8f0}.ee-style-contraste .ee-tv-map-card,.ee-style-contraste .ee-tv-side,.ee-style-contraste .ee-tv-topbar{box-shadow:none}.ee-style-contraste .ee-tv-bars article{border-width:2px}.ee-style-contraste .ee-tv-track{height:9px}
.ee-is-embed .ee-tv-topbar{display:none}.ee-is-embed .ee-tv-app{min-height:0}.ee-is-embed .ee-tv-main{min-height:520px}.ee-is-embed .ee-tv-footer{padding-bottom:10px}.ee-is-embed .ee-tv-toolbar{padding-top:9px;padding-bottom:9px}
@media(max-width:1050px){.ee-layout-resultado-esquerda .ee-tv-main{grid-template-columns:1fr}.ee-layout-resultado-esquerda .ee-tv-side{order:2}.ee-layout-resultado-esquerda .ee-tv-map-card{order:1}.ee-candidates-cards .ee-tv-bars{grid-template-columns:1fr}}

/* 2.0.1 — mapa como elemento central + mobile ampliado */
.ee-tv-main{
  grid-template-columns:minmax(0,2.15fr) minmax(360px,.85fr);
  gap:16px;
  padding:16px 20px 14px;
}
.ee-tv-map-card{
  border-color:color-mix(in srgb,var(--accent) 34%,var(--line));
  box-shadow:0 24px 70px rgba(0,0,0,.28),0 0 0 1px color-mix(in srgb,var(--accent) 10%,transparent) inset;
}
.ee-tv-map{
  min-height:720px;
  padding:20px 22px;
}
.ee-tv-map svg{
  width:min(100%,980px)!important;
  max-height:78vh;
}
.ee-tv-map .label_icon_state{
  font-size:12px!important;
  paint-order:stroke;
  stroke:rgba(0,0,0,.18);
  stroke-width:.55px;
}
.ee-tv-map-legend{
  min-height:56px;
  padding:13px 18px;
}
.ee-tv-map-legend strong{font-size:14px}
.ee-tv-map-legend span{font-size:12px;line-height:1.45}
.ee-tv-side{min-width:0}
.ee-tv-toolbar strong{font-size:23px}
.ee-tv-toolbar span{font-size:12px}
.ee-tv-filters label{font-size:11px}
.ee-tv-filters select{min-height:42px;font-size:13px}
.ee-tv-offices button{font-size:12px;padding:10px 15px}
.ee-tv-analysis-filters label{font-size:10px}
.ee-tv-analysis-filters select{min-height:40px;font-size:12px}
.ee-tv-analysis-filters button{min-height:40px;font-size:11px}
.ee-tv-state-head{padding:17px 18px}
.ee-tv-state-head>div>span{width:54px;height:54px;font-size:19px}
.ee-tv-state-head small{font-size:10px}
.ee-tv-state-head h1{font-size:29px}
.ee-tv-state-actions{display:flex;align-items:center;gap:7px}
.ee-tv-state-actions a,.ee-tv-state-actions button{
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:#d7ede3;
  text-decoration:none;
  padding:8px 10px;
  font:inherit;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
}
.ee-tv-state-actions [data-ee-tv-back-map]{display:none}
.ee-tv-result-section{padding:17px 18px}
.ee-tv-result-section>header span{font-size:17px}
.ee-tv-result-section>header small{font-size:10px}
.ee-tv-result-section>header em{font-size:11px}
.ee-tv-bars{gap:10px}
.ee-tv-bars article{
  grid-template-columns:27px 40px minmax(0,1fr) auto;
  gap:9px;
  padding:11px;
}
.ee-tv-rank{font-size:12px}
.ee-tv-bars article>img,.ee-tv-party-fallback{width:39px;height:39px}
.ee-tv-candidate strong{font-size:15px}
.ee-tv-candidate small{font-size:10px}
.ee-tv-track{height:8px}
.ee-tv-votes{font-size:9px!important}
.ee-tv-bars article>b{font-size:20px}
.ee-tv-no-data{font-size:12px}
.ee-tv-side-links a{font-size:10px;padding:9px 11px}
.ee-tv-perspective{padding:12px 20px;gap:10px}
.ee-tv-insight-card,.ee-tv-party-card{min-width:165px;min-height:84px;padding:11px}
.ee-tv-insight-card strong{font-size:22px}
.ee-tv-party-card strong{font-size:18px}
.ee-tv-insight-card small,.ee-tv-party-card small{font-size:10px}
.ee-tv-footer{font-size:10px;min-height:40px}
.ee-layout-resultado-esquerda .ee-tv-main{
  grid-template-columns:minmax(360px,.85fr) minmax(0,2.15fr);
}
.ee-layout-mapa-topo .ee-tv-map-card{min-height:760px}
.ee-layout-mapa-topo .ee-tv-map{min-height:700px}
.ee-layout-mapa-topo .ee-tv-map svg{width:min(100%,1040px)!important;max-height:76vh}
.ee-is-embed .ee-tv-main{min-height:680px}

@media(max-width:1180px){
  .ee-tv-main{grid-template-columns:minmax(0,1.75fr) minmax(340px,.85fr)}
  .ee-tv-map{min-height:640px}
  .ee-tv-map svg{width:min(100%,880px)!important;max-height:650px}
}

@media(max-width:1050px){
  .ee-tv-main,.ee-layout-resultado-esquerda .ee-tv-main{grid-template-columns:1fr}
  .ee-tv-map-card{order:1}
  .ee-tv-side{order:2}
  .ee-tv-map{min-height:590px;padding:14px}
  .ee-tv-map svg{width:min(100%,860px)!important;max-height:590px}
  .ee-tv-state-actions [data-ee-tv-back-map]{display:inline-flex}
  .ee-tv-side{scroll-margin-top:10px}
  .ee-tv-map-card{scroll-margin-top:10px}
}

@media(max-width:680px){
  .ee-tv-app{grid-template-rows:auto auto auto auto 1fr auto}
  .ee-tv-topbar{padding:11px 13px 9px;gap:10px}
  .ee-tv-brand span{font-size:11px}
  .ee-tv-brand strong{font-size:18px}
  .ee-tv-tabs{gap:5px;width:100%;overflow:auto}
  .ee-tv-tabs a,.ee-tv-actions a{font-size:12px;padding:9px 11px}
  .ee-tv-toolbar{padding:13px;gap:12px}
  .ee-tv-toolbar strong{font-size:22px;line-height:1.15}
  .ee-tv-toolbar span{font-size:12px}
  .ee-tv-offices{width:100%;gap:7px}
  .ee-tv-offices button{font-size:13px;min-height:42px;padding:9px 14px}
  .ee-tv-filters{gap:8px}
  .ee-tv-filters label{min-width:170px;font-size:11px}
  .ee-tv-filters select{min-height:44px;font-size:14px}
  .ee-tv-analysis-filters{padding:10px 12px;gap:8px}
  .ee-tv-analysis-filters label{min-width:150px;font-size:10px}
  .ee-tv-analysis-filters select,.ee-tv-analysis-filters button{min-height:44px;font-size:13px}
  .ee-tv-perspective{padding:11px 12px}
  .ee-tv-insight-card,.ee-tv-party-card{min-width:170px;min-height:90px}
  .ee-tv-main{padding:10px;gap:11px}
  .ee-tv-map-card,.ee-tv-side{border-radius:16px}
  .ee-tv-map{min-height:500px;padding:8px 6px 4px}
  .ee-tv-map svg{width:100%!important;max-width:100%!important;max-height:520px}
  .ee-tv-map .label_icon_state{font-size:13px!important;stroke-width:.65px}
  .ee-tv-map-legend{display:grid;gap:5px;padding:13px 14px}
  .ee-tv-map-legend strong{font-size:14px}
  .ee-tv-map-legend span{font-size:12px}
  .ee-tv-state-head{padding:14px 13px;align-items:flex-start}
  .ee-tv-state-head>div:first-child{gap:10px}
  .ee-tv-state-head>div>span{width:52px;height:52px;font-size:19px}
  .ee-tv-state-head h1{font-size:24px;line-height:1.08}
  .ee-tv-state-head small{font-size:10px}
  .ee-tv-state-actions{display:grid;justify-items:end;gap:6px}
  .ee-tv-state-actions a,.ee-tv-state-actions button{font-size:10px;padding:7px 9px}
  .ee-tv-result-section{padding:15px 13px}
  .ee-tv-result-section>header{align-items:flex-start}
  .ee-tv-result-section>header span{font-size:18px}
  .ee-tv-result-section>header small{font-size:11px;line-height:1.45}
  .ee-tv-bars{gap:9px}
  .ee-tv-bars article{
    grid-template-columns:24px 38px minmax(0,1fr) auto;
    gap:8px;
    padding:11px 9px;
  }
  .ee-tv-rank{font-size:12px}
  .ee-tv-bars article>img,.ee-tv-party-fallback{width:37px;height:37px}
  .ee-tv-candidate strong{font-size:15px;white-space:normal;line-height:1.15}
  .ee-tv-candidate small{font-size:11px}
  .ee-tv-track{height:9px}
  .ee-tv-votes{display:block!important;font-size:10px!important}
  .ee-tv-bars article>b{font-size:19px}
  .ee-tv-50-marker{font-size:9px!important;padding:3px 6px}
  .ee-tv-side-links{padding:13px}
  .ee-tv-side-links a{font-size:11px;padding:9px 10px}
  .ee-tv-footer{font-size:11px;line-height:1.45;padding:11px 13px}
  .ee-is-embed .ee-tv-main{min-height:0}
}

@media(max-width:420px){
  .ee-tv-map{min-height:455px}
  .ee-tv-map svg{max-height:475px}
  .ee-tv-bars article{grid-template-columns:22px 34px minmax(0,1fr) auto}
  .ee-tv-bars article>img,.ee-tv-party-fallback{width:33px;height:33px}
  .ee-tv-candidate strong{font-size:14px}
  .ee-tv-bars article>b{font-size:18px}
}

/* 2.0.2 — mapa/resultados como foco + interação robusta + app responsivo */
html,body{height:100%}
.ee-tv-app{
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
  grid-template-rows:auto auto auto auto minmax(0,1fr) auto;
}
.ee-tv-topbar{
  height:46px;
  min-height:46px;
  padding:0 14px;
  gap:10px;
}
.ee-tv-brand{gap:7px}
.ee-tv-brand span{font-size:9px;letter-spacing:.14em}
.ee-tv-brand strong{font-size:15px}
.ee-tv-tabs{gap:4px}
.ee-tv-tabs a,.ee-tv-actions a,.ee-tv-actions button{
  font-size:10px;
  padding:6px 9px;
  min-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.ee-tv-actions{align-items:center}
.ee-tv-actions button{
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:#c3d1d9;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.ee-tv-actions button:hover{border-color:var(--accent);color:var(--text)}
.ee-tv-toolbar{
  min-height:48px;
  padding:5px 14px;
  gap:10px;
}
.ee-tv-toolbar>div:first-child{gap:0}
.ee-tv-toolbar strong{font-size:17px}
.ee-tv-toolbar span{font-size:9px}
.ee-tv-offices{gap:4px}
.ee-tv-offices button{font-size:10px;min-height:32px;padding:6px 10px}
.ee-tv-filters{gap:5px}
.ee-tv-filters label{font-size:8px;gap:4px}
.ee-tv-filters select{min-height:32px;font-size:10px;padding:0 8px;border-radius:8px}
.ee-tv-live-tag{padding:6px 9px!important;font-size:10px!important}
.ee-tv-analysis-filters{
  min-height:42px;
  padding:5px 14px;
  gap:6px;
}
.ee-tv-analysis-filters label{min-width:122px;font-size:8px;gap:2px}
.ee-tv-analysis-filters select,.ee-tv-analysis-filters button{min-height:31px;font-size:10px;border-radius:8px}
.ee-tv-perspective{padding:5px 14px;gap:6px;min-height:0}
.ee-tv-insight-card,.ee-tv-party-card{min-width:138px;min-height:56px;padding:7px 8px;border-radius:11px}
.ee-tv-insight-card strong{font-size:16px}
.ee-tv-party-card strong{font-size:15px}
.ee-tv-insight-card small,.ee-tv-party-card small,.ee-tv-insight-card span,.ee-tv-party-card span{font-size:8px}
.ee-tv-party-card img,.ee-tv-perspective .ee-tv-party-fallback{width:28px;height:28px}
.ee-tv-warning{padding:5px 14px;font-size:10px}
.ee-tv-main{
  height:100%;
  min-height:0;
  overflow:hidden;
  grid-template-columns:minmax(0,2.25fr) minmax(350px,.75fr);
  gap:10px;
  padding:8px 12px 9px;
}
.ee-tv-map-card,.ee-tv-side{height:100%;min-height:0}
.ee-tv-map-card{border-radius:16px}
.ee-tv-map{
  height:100%;
  min-height:0;
  padding:8px 10px;
}
.ee-tv-map svg{
  width:min(100%,1080px)!important;
  max-height:calc(100dvh - 205px);
}
.ee-tv-map .state,.ee-tv-map [id^="state_"]{touch-action:manipulation}
.ee-tv-map .state:focus-visible .shape,.ee-tv-map [id^="state_"]:focus-visible .shape{outline:none;filter:brightness(1.16) saturate(1.12)}
.ee-tv-map-legend{min-height:38px;padding:7px 11px;gap:8px}
.ee-tv-map-legend strong{font-size:11px}
.ee-tv-map-legend span{font-size:9px;line-height:1.3}
.ee-tv-side{overflow:auto;overscroll-behavior:contain;border-radius:16px;scrollbar-width:thin}
.ee-tv-state-head{padding:10px 12px}
.ee-tv-state-head>div>span{width:43px;height:43px;font-size:16px;border-radius:11px}
.ee-tv-state-head small{font-size:8px}
.ee-tv-state-head h1{font-size:22px}
.ee-tv-state-actions a,.ee-tv-state-actions button{padding:6px 8px;font-size:9px}
.ee-tv-result-section{padding:11px 12px}
.ee-tv-result-section>header{margin-bottom:7px}
.ee-tv-result-section>header span{font-size:14px}
.ee-tv-result-section>header small{font-size:8px}
.ee-tv-bars{gap:6px}
.ee-tv-bars article{grid-template-columns:23px 34px minmax(0,1fr) auto;gap:7px;padding:8px}
.ee-tv-bars article>img,.ee-tv-party-fallback{width:33px;height:33px}
.ee-tv-candidate strong{font-size:13px}
.ee-tv-candidate small{font-size:9px}
.ee-tv-bars article>b{font-size:17px}
.ee-tv-track{height:6px}
.ee-tv-side-links{padding:9px 12px}
.ee-tv-footer{min-height:26px;padding:4px 14px;font-size:8px}
.ee-layout-resultado-esquerda .ee-tv-main{grid-template-columns:minmax(350px,.75fr) minmax(0,2.25fr)}
.ee-layout-mapa-topo .ee-tv-main{overflow:auto}
.ee-layout-mapa-topo .ee-tv-map-card{height:min(72dvh,820px);min-height:560px}
.ee-layout-mapa-topo .ee-tv-map{min-height:0}
.ee-layout-mapa-topo .ee-tv-map svg{max-height:min(68dvh,760px)}
.ee-is-embed .ee-tv-app{height:100dvh;min-height:650px}
.ee-is-embed .ee-tv-main{min-height:0}
.ee-tv-app:fullscreen{width:100vw;height:100vh;height:100dvh;background:var(--bg,#071923)}

@media(max-width:1180px) and (min-width:1051px){
  .ee-tv-main{grid-template-columns:minmax(0,1.9fr) minmax(330px,.8fr)}
  .ee-tv-map svg{max-height:calc(100dvh - 215px)}
}

@media(max-width:1050px){
  html,body{height:auto;min-height:100%}
  body{overflow-y:auto}
  .ee-tv-app,.ee-is-embed .ee-tv-app{
    height:auto;
    min-height:100dvh;
    overflow:visible;
    grid-template-rows:auto;
  }
  .ee-tv-topbar{position:sticky;top:0;z-index:30;height:auto;min-height:44px;padding:6px 9px;gap:6px}
  .ee-tv-brand strong{font-size:14px}
  .ee-tv-brand span{font-size:8px}
  .ee-tv-tabs{padding-bottom:0}
  .ee-tv-tabs a,.ee-tv-actions a,.ee-tv-actions button{font-size:10px;padding:6px 8px;min-height:30px}
  .ee-tv-toolbar{padding:7px 9px;gap:7px}
  .ee-tv-toolbar strong{font-size:17px}
  .ee-tv-toolbar span{font-size:9px}
  .ee-tv-offices{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .ee-tv-offices button{min-height:36px;font-size:11px;padding:6px 8px}
  .ee-tv-filters{width:100%;overflow-x:auto;display:flex;flex-wrap:nowrap;padding-bottom:1px}
  .ee-tv-filters label{min-width:138px;font-size:8px}
  .ee-tv-filters select{width:100%;min-height:36px;font-size:11px}
  .ee-tv-analysis-filters{padding:6px 9px;gap:6px;overflow-x:auto;align-items:end}
  .ee-tv-analysis-filters label{min-width:132px;font-size:8px}
  .ee-tv-analysis-filters select,.ee-tv-analysis-filters button{min-height:36px;font-size:11px}
  .ee-tv-perspective{padding:6px 9px}
  .ee-tv-insight-card,.ee-tv-party-card{min-width:150px;min-height:62px}
  .ee-tv-main,.ee-layout-resultado-esquerda .ee-tv-main{
    height:auto;
    min-height:0;
    overflow:visible;
    grid-template-columns:1fr;
    padding:8px;
    gap:9px;
  }
  .ee-tv-map-card{order:1;height:auto;min-height:0;scroll-margin-top:54px}
  .ee-tv-side{order:2;height:auto;max-height:none;overflow:visible;scroll-margin-top:54px}
  .ee-tv-map{height:auto;min-height:clamp(500px,68dvh,660px);padding:6px}
  .ee-tv-map svg{width:100%!important;max-width:920px!important;max-height:clamp(490px,67dvh,650px)}
  .ee-tv-map-legend{padding:9px 11px}
  .ee-tv-map-legend strong{font-size:12px}
  .ee-tv-map-legend span{font-size:10px}
  .ee-tv-state-actions [data-ee-tv-back-map]{display:inline-flex}
  .ee-tv-footer{font-size:9px;line-height:1.35;padding:7px 9px}
}

@media(max-width:680px){
  .ee-tv-topbar{grid-template-columns:minmax(0,1fr) auto;padding:5px 8px}
  .ee-tv-brand{display:grid;gap:0}
  .ee-tv-brand strong{font-size:13px}
  .ee-tv-tabs{grid-column:1/-1;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:4px}
  .ee-tv-tabs a{text-align:center;padding:6px 8px}
  .ee-tv-actions{gap:4px}
  .ee-tv-actions a,.ee-tv-actions button{font-size:9px;padding:5px 7px;min-height:28px}
  .ee-tv-actions a:not(.ee-tv-back){display:none}
  .ee-tv-toolbar{display:grid;grid-template-columns:1fr;align-items:stretch;padding:6px 8px}
  .ee-tv-toolbar>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .ee-tv-toolbar strong{font-size:16px}
  .ee-tv-toolbar span{font-size:9px;white-space:nowrap}
  .ee-tv-offices button{min-height:38px;font-size:12px}
  .ee-tv-filters label{min-width:128px}
  .ee-tv-filters select{min-height:38px;font-size:12px}
  .ee-tv-analysis-filters{padding:5px 8px}
  .ee-tv-analysis-filters label{min-width:126px}
  .ee-tv-analysis-filters select,.ee-tv-analysis-filters button{min-height:38px;font-size:12px}
  .ee-tv-insight-card,.ee-tv-party-card{min-width:145px;min-height:60px;padding:7px}
  .ee-tv-main{padding:7px}
  .ee-tv-map-card,.ee-tv-side{border-radius:13px}
  .ee-tv-map{min-height:clamp(480px,66dvh,610px);padding:4px 2px}
  .ee-tv-map svg{max-height:clamp(470px,65dvh,600px)}
  .ee-tv-map .label_icon_state{font-size:14px!important;stroke-width:.7px}
  .ee-tv-state-head{padding:12px 10px}
  .ee-tv-state-head>div>span{width:46px;height:46px;font-size:17px}
  .ee-tv-state-head h1{font-size:22px}
  .ee-tv-result-section{padding:13px 10px}
  .ee-tv-result-section>header span{font-size:17px}
  .ee-tv-result-section>header small{font-size:10px;line-height:1.35}
  .ee-tv-bars{gap:8px}
  .ee-tv-bars article{grid-template-columns:23px 38px minmax(0,1fr) auto;gap:8px;padding:10px 8px}
  .ee-tv-bars article>img,.ee-tv-party-fallback{width:37px;height:37px}
  .ee-tv-candidate strong{font-size:15px;white-space:normal;line-height:1.12}
  .ee-tv-candidate small{font-size:10px}
  .ee-tv-track{height:8px}
  .ee-tv-votes{font-size:9px!important}
  .ee-tv-bars article>b{font-size:19px}
  .ee-tv-state-actions{gap:5px}
  .ee-tv-state-actions a,.ee-tv-state-actions button{font-size:9px;padding:6px 7px}
  .ee-tv-side-links a{font-size:10px}
}

@media(max-width:420px){
  .ee-tv-map{min-height:470px}
  .ee-tv-map svg{max-height:480px}
  .ee-tv-bars article{grid-template-columns:21px 34px minmax(0,1fr) auto}
  .ee-tv-candidate strong{font-size:14px}
  .ee-tv-bars article>b{font-size:18px}
}

/* 2.0.3 — marcações oficiais do TSE e cenários de pesquisa */
.ee-tv-result-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-top:4px;padding:3px 7px;border-radius:999px;border:1px solid transparent;font-style:normal;font-size:8px;font-weight:950;line-height:1.2;letter-spacing:.035em;text-transform:uppercase;white-space:normal}
.ee-tv-result-badge.is-elected{background:#d1fae5;border-color:#6ee7b7;color:#065f46}
.ee-tv-result-badge.is-runoff{background:#ffedd5;border-color:#fdba74;color:#9a3412}
.ee-tv-result-badge.is-substitute{background:#e2e8f0;border-color:#cbd5e1;color:#475569}
.ee-tv-result-badge.is-qp{background:#dbeafe;border-color:#93c5fd;color:#1e40af}
.ee-tv-result-badge.is-average{background:#ede9fe;border-color:#c4b5fd;color:#5b21b6}
.ee-tv-result-badge.is-defined{background:#ccfbf1;border-color:#5eead4;color:#115e59}
.ee-tv-result-badge.is-poll-seat,.ee-tv-result-badge.is-poll-first{background:#e0f2fe;border-color:#7dd3fc;color:#075985}
.ee-tv-result-badge.is-poll-runoff{background:#fef3c7;border-color:#fcd34d;color:#92400e}
.ee-tv-result-note{display:block;margin:7px 1px 0;color:var(--text,#f4f7f8);opacity:.68;font-size:8px;line-height:1.35}
@media(max-width:680px){.ee-tv-result-badge{font-size:9px;padding:4px 7px}.ee-tv-result-note{font-size:9px;line-height:1.4}}

/* 2.1.2 — cargos proporcionais no painel de apuração */
.ee-tv-offices{flex-wrap:wrap}
.ee-tv-offices button[data-ee-tv-office="deputado-federal"],
.ee-tv-offices button[data-ee-tv-office="deputado-estadual"]{padding-left:11px;padding-right:11px}
.ee-tv-result-section .ee-tv-bars{align-content:start}
.ee-tv-result-section .ee-tv-bars article:has(.ee-tv-result-badge.is-elected){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 42%,transparent)}
.ee-tv-result-section .ee-tv-bars article:has(.ee-tv-result-badge.is-elected) .ee-tv-rank{color:var(--accent)}
@media(max-width:1050px){
  .ee-tv-offices{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}
  .ee-tv-offices button{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:680px){
  .ee-tv-offices{gap:6px}
  .ee-tv-offices button{font-size:11px;min-height:38px;padding:7px 11px}
  .ee-tv-result-section{padding:13px 12px}
  .ee-tv-bars{gap:9px}
  .ee-tv-bars article{padding:10px 8px}
  .ee-tv-candidate strong{font-size:14px}
  .ee-tv-bars article>b{font-size:16px}
}

/* 2.1.3 — busca de candidatos proporcionais e quociente eleitoral */
.ee-tv-qe-strip{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 8px;padding:7px 9px;border:1px solid color-mix(in srgb,var(--text,#fff) 12%,transparent);border-radius:10px;background:color-mix(in srgb,var(--surface,#102733) 88%,#fff 12%);font-size:9px}.ee-tv-qe-strip span{opacity:.76}.ee-tv-qe-strip strong{margin-left:3px;font-size:11px;opacity:1}.ee-tv-qe-strip small{margin-left:auto;opacity:.58;text-transform:uppercase;font-size:7px;font-weight:800;letter-spacing:.04em}
.ee-tv-deputy-find{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:0 0 8px}.ee-tv-deputy-find input{width:100%;min-height:34px;border:1px solid color-mix(in srgb,var(--text,#fff) 18%,transparent);border-radius:9px;background:color-mix(in srgb,var(--surface,#102733) 90%,#fff 10%);color:var(--text,#fff);padding:6px 9px;font-size:11px;outline:none}.ee-tv-deputy-find input::placeholder{color:var(--text,#fff);opacity:.52}.ee-tv-deputy-find input:focus{border-color:var(--accent,#60a5fa);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#60a5fa) 24%,transparent)}.ee-tv-deputy-find button{min-height:34px;border:1px solid color-mix(in srgb,var(--text,#fff) 14%,transparent);border-radius:9px;background:transparent;color:var(--text,#fff);padding:5px 9px;font-size:9px;font-weight:800;cursor:pointer}
@media(max-width:680px){.ee-tv-qe-strip{font-size:10px;padding:8px 9px}.ee-tv-qe-strip strong{font-size:12px}.ee-tv-qe-strip small{width:100%;margin-left:0;font-size:8px}.ee-tv-deputy-find input{min-height:42px;font-size:14px}.ee-tv-deputy-find button{min-height:42px;font-size:10px}}
