/* Identidade editorial Estadômetro. As cores de partidos continuam exclusivas dos dados partidários. */
:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-grad: linear-gradient(155deg, #f8fafc 0%, #edf3f7 100%);
  --surface: #fff;
  --surface-2: #f1f5f8;
  --panel: #fff;
  --nav-bg: rgba(255, 255, 255, .97);
  --line: #d9e2e9;
  --fg: #081523;
  --muted: #526676;
  --faint: #657a89;
  --accent: #08784f;
  --accent-dim: #09a66b;
  --accent-soft: rgba(9, 166, 107, .10);
  --accent-glow: rgba(9, 166, 107, .30);
  --accent-2: #185ead;
  --accent-2-soft: rgba(24, 94, 173, .08);
  --accent-2-line: rgba(24, 94, 173, .30);
  --land: rgba(8, 21, 35, .085);
  --land-hover: rgba(9, 166, 107, .18);
  --land-active: rgba(9, 166, 107, .24);
  --geo-line: #91a8b8;
  --mun-line: rgba(8, 21, 35, .18);
  --shadow: 0 12px 36px rgba(8, 21, 35, .09);
  --scrim-1: rgba(247, 249, 252, .40);
  --scrim-2: rgba(247, 249, 252, .90);
  --on-accent: #fff;
  --seat-a: #a8c5bc;
  --seat-b: #668f84;
  --logo-bg: #fff;
  --logo-fg: #081523;
  --display: "Source Serif 4", Georgia, serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1d2e;
    --bg-grad: linear-gradient(155deg, #163348 0%, #0b1d2e 72%);
    --surface: #112a3b;
    --surface-2: #19374a;
    --panel: #112a3b;
    --nav-bg: rgba(11, 29, 46, .97);
    --line: #2e4b5f;
    --fg: #f5f8fc;
    --muted: #b9cbd7;
    --faint: #94adbd;
    --accent: #39d69b;
    --accent-dim: #09a66b;
    --accent-soft: rgba(57, 214, 155, .13);
    --accent-glow: rgba(57, 214, 155, .25);
    --accent-2: #92c6ff;
    --accent-2-soft: rgba(146, 198, 255, .12);
    --accent-2-line: rgba(146, 198, 255, .34);
    --land: rgba(245, 248, 252, .055);
    --land-hover: rgba(57, 214, 155, .18);
    --land-active: rgba(57, 214, 155, .27);
    --geo-line: #476679;
    --mun-line: rgba(185, 203, 215, .23);
    --shadow: 0 18px 45px rgba(1, 11, 21, .36);
    --scrim-1: rgba(11, 29, 46, .44);
    --scrim-2: rgba(11, 29, 46, .93);
    --on-accent: #081523;
    --seat-a: #395e67;
    --seat-b: #729ba1;
    --logo-bg: #fff;
    --logo-fg: #081523;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1d2e;
  --bg-grad: linear-gradient(155deg, #163348 0%, #0b1d2e 72%);
  --surface: #112a3b;
  --surface-2: #19374a;
  --panel: #112a3b;
  --nav-bg: rgba(11, 29, 46, .97);
  --line: #2e4b5f;
  --fg: #f5f8fc;
  --muted: #b9cbd7;
  --faint: #94adbd;
  --accent: #39d69b;
  --accent-dim: #09a66b;
  --accent-soft: rgba(57, 214, 155, .13);
  --accent-glow: rgba(57, 214, 155, .25);
  --accent-2: #92c6ff;
  --accent-2-soft: rgba(146, 198, 255, .12);
  --accent-2-line: rgba(146, 198, 255, .34);
  --land: rgba(245, 248, 252, .055);
  --land-hover: rgba(57, 214, 155, .18);
  --land-active: rgba(57, 214, 155, .27);
  --geo-line: #476679;
  --mun-line: rgba(185, 203, 215, .23);
  --shadow: 0 18px 45px rgba(1, 11, 21, .36);
  --scrim-1: rgba(11, 29, 46, .44);
  --scrim-2: rgba(11, 29, 46, .93);
  --on-accent: #081523;
  --seat-a: #395e67;
  --seat-b: #729ba1;
  --logo-bg: #fff;
  --logo-fg: #081523;
}

body { font-size: 14px; letter-spacing: -.01em; }
button, input { letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(9, 166, 107, .28); }
.app { background-image: var(--bg-grad); }

/* Masthead de veículo editorial, sem simular atualizações em tempo real. */
.ui { grid-template-rows: 22px auto minmax(0, 1fr) auto; gap: 10px; padding-top: calc(9px + env(safe-area-inset-top, 0px)); }
.edicao-barra { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 0 5px; color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: .10em; text-transform: uppercase; white-space: nowrap; }
.edicao-barra span:nth-child(2) { color: var(--fg); font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: none; }
.edicao-barra i { display: inline-block; width: 4px; height: 4px; margin: 0 6px 2px; border-radius: 50%; background: #09a66b; }
.topo { gap: 8px; padding: 7px 11px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid #09a66b; border-radius: 5px; box-shadow: var(--shadow); }
.marca { gap: 8px; padding: 0 12px 0 2px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.marca img { display: block; width: 190px; height: 39px; object-fit: contain; flex: none; }
.marca .marca-escuro { display: none; }
:root[data-theme="dark"] .marca-claro { display: none; }
:root[data-theme="dark"] .marca-escuro { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marca-claro { display: none; }
  :root:not([data-theme="light"]) .marca-escuro { display: block; }
}
.chip-proto { border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 9px; letter-spacing: .07em; padding: 4px 5px; }
.visoes { align-self: stretch; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.visoes button { position: relative; border-radius: 0; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.visoes button[aria-selected="true"] { background: transparent; color: var(--fg); }
.visoes button[aria-selected="true"]::after { content: ""; position: absolute; height: 3px; left: 12px; right: 12px; bottom: -8px; background: #09a66b; }
.visoes button:hover { color: var(--fg); }
.fixar { height: 39px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; box-shadow: none; }
.fixar:hover, .tema:hover { background: var(--surface-2); color: var(--fg); }
.busca { height: 40px; max-width: 380px; border-radius: 4px; background: var(--surface-2); box-shadow: none; }
.busca:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.status { gap: 8px; padding: 0 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.vivo { color: var(--accent); font-size: 10px; letter-spacing: .045em; }
.vivo i { width: 7px; height: 7px; animation: none; box-shadow: none; }
.tema { width: 40px; height: 40px; border: 0; border-radius: 4px; box-shadow: none; }

/* Mapa: leitura rápida do que aconteceu, depois contexto e fonte. */
.meio { gap: 16px; }
.painel { width: 380px; border-radius: 6px; }
.painel-cab { gap: 8px; padding: 13px 19px 10px; }
.painel-cab h2 { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.esquerdo .painel-cab::before { content: "RADAR LEGISLATIVO / BRASIL"; color: var(--accent); font: 600 10px/1.3 var(--mono); letter-spacing: .075em; }
.painel-cab .dica { padding: 0 0 0 11px; border: 0; border-left: 2px solid var(--accent-2); border-radius: 0; background: transparent; font-size: 12px; line-height: 1.55; }
.kpis { gap: 0; border-block: 1px solid var(--line); }
.kpi { display: grid; gap: 4px; padding: 9px 9px 10px 0; border-radius: 0; background: transparent; }
.kpi + .kpi { padding-left: 15px; border-left: 1px solid var(--line); }
.kpi b { font: 600 31px/1 var(--mono); letter-spacing: -.06em; }
.kpi span { font-size: 11px; line-height: 1.35; }
.esquerdo .arrec-mini { padding: 9px 12px; border-radius: 4px; background: #081523; color: #f5f8fc; }
.esquerdo .arrec-mini::before { content: ""; width: 30px; height: 3px; background: #f7bf2f; }
.esquerdo .arrec-mini small { color: #d4e1e9; line-height: 1.45; }
.esquerdo .arrec-mini b { font-size: 18px; line-height: 1.25; color: #f7bf2f; overflow-wrap: anywhere; }
.esquerdo .arrec-mini span { color: #bacbd4; font-size: 10px; }
.abas-mini { gap: 0; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.abas-mini button { position: relative; padding: 8px 3px; border-radius: 0; font-size: 12px; font-weight: 600; }
.abas-mini button[aria-selected="true"] { background: transparent; color: var(--fg); box-shadow: inset 0 -2px 0 #09a66b; }
.lista { padding: 7px 10px 9px; gap: 0; }
.item { position: relative; gap: 6px; padding: 12px 9px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.item:hover, .item.sel { background: var(--surface-2); border-color: var(--line); }
.item.sel::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: #09a66b; }
.item-topo { font-size: 10px; font-weight: 600; }
.item p { font-size: 13px; font-weight: 600; line-height: 1.45; }
.autor-mini { font-size: 11px; }
#listaProjetos .item:first-child { padding: 15px 12px 17px; border-left: 3px solid #f7bf2f; background: var(--surface-2); }
#listaProjetos .item:first-child p { font: 600 16px/1.28 var(--display); letter-spacing: -.025em; -webkit-line-clamp: 3; }
#listaProjetos .item:first-child .item-topo { letter-spacing: .05em; text-transform: uppercase; }
.painel-rod { padding: 10px 19px 13px; font-size: 11px; line-height: 1.45; }
.ficha { width: 390px; }
.ficha .painel-cab h2 { font-size: 24px; }
.ementa { font-size: 15px; line-height: 1.6; }
.meta div { font-size: 12px; }
.ferramentas { gap: 0; padding: 3px; border-radius: 6px; }
.ferr { min-width: 68px; border-radius: 3px; font-size: 11px; }
.ferr svg { width: 19px; height: 19px; }
.ferr:hover, .ferr[aria-expanded="true"], .ferr[aria-pressed="true"] { color: var(--accent); }

/* Páginas: manchetes editoriais, números técnicos e cartões sem ruído visual. */
.pc { max-width: 1310px; gap: 20px; padding-top: calc(122px + env(safe-area-inset-top, 0px)); }
.pc-cab, .sc-cab, .pp-cab { padding: 5px 0 18px; border-bottom: 1px solid var(--line); }
.pc-cab h1, .sc-cab h1, .pp-cab h1 { font-size: clamp(34px, 3.5vw, 50px); line-height: 1.09; letter-spacing: -.04em; }
.pc-cab p, .sc-cab p, .pp-cab p { margin-top: 10px; font-size: 13px; line-height: 1.55; }
.sc-cab > div:first-child::before { content: "MONITORAMENTO / CÂMARA DOS DEPUTADOS"; display: block; margin-bottom: 9px; color: var(--accent); font: 600 10px var(--mono); letter-spacing: .07em; }
.sc-grade, .pp-poderes, .pp-congresso { border-radius: 6px; }
.sc-w[data-span="3"] { grid-column: span 4; }
.sc-w { padding: 23px 24px 25px; gap: 17px; }
.sc-w-cab { align-items: baseline; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.sc-w-cab h2, .pc-cartao h2, .pp-congresso h2 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.sc-meta { font-size: 11px; }
.sc-arrec-v b, .sc-arrec-v small, .sc-g b, .sc-nums b, .pc-kpi b, .kpi b, .medidor > b, .pol-nums b, .num b, .pp-total-soma b, .arrec-valor { font-family: var(--mono); letter-spacing: -.06em; }
.sc-arrec-v b { font-size: clamp(32px, 3.5vw, 53px); }
.sc-w[data-widget="arrec"] { background: #081523; color: #f5f8fc; }
.sc-w[data-widget="arrec"] .sc-w-cab { border-color: #345164; }
.sc-w[data-widget="arrec"] .sc-meta, .sc-w[data-widget="arrec"] .sc-fonte, .sc-w[data-widget="arrec"] .sc-arrec-linhas span, .sc-w[data-widget="arrec"] .sc-arrec-v small { color: #bfd0da; }
.sc-w[data-widget="arrec"] .sc-arrec-v b { color: #f7bf2f; }
.sc-w[data-widget="arrec"] .sc-arrec-linhas div { border-color: #345164; }
.sc-w[data-widget="arrec"] .sc-link { color: #9acbff; }
.sc-w[data-widget="arrec"] .vivo { color: #74e6ae; }
.sc-w[data-widget="arrec"] .vivo i { background: #74e6ae; }
.sc-w[data-widget="arrec"] .sc-ctl button { color: #f5f8fc; background: #19374a; border-color: #345164; }
.sc-w[data-widget="arrec"] .sc-arrec-v b { font-size: clamp(20px, 2vw, 28px); }
.sc-g { grid-template-columns: minmax(104px, .28fr) minmax(0, 1fr); column-gap: 12px; }
.sc-g b.sc-txt { font-size: 15px; overflow-wrap: anywhere; }
.sc-cidade .sc-w-cab { border-bottom: 0; }
.sc-vela h3, .cidade-card h3 { text-transform: none; letter-spacing: -.025em; }
.pc-kpi, .pc-cartao, .pol-cartao, .medidor, .part-card, .ap-ficha { border-radius: 6px; }
.pc-kpi { padding: 19px 20px; border-top: 3px solid #09a66b; }
.pc-kpi b { font-size: 34px; }
.pc-cartao { padding: 20px; }
.pc-cartao h2 { font-size: 21px; }
.rank { font-size: 13px; }
.tl-item { border-radius: 4px; }
.arrec { background: #081523; color: #f5f8fc; border-color: #081523; }
.arrec-valor { color: #f7bf2f; }
.arrec-esq small, .arrec-esq > span, .arrec-dir dt, .arrec-nota { color: #bfd0da; }
.arrec-dir div { border-color: #345164; }
.arrec .vivo { color: #74e6ae; }
.arrec .vivo i { background: #74e6ae; }
.btn { border-radius: 4px; padding: 10px 13px; font-size: 13px; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn.primario { background: #08784f; border-color: #08784f; color: #fff; }
.btn.primario:hover { background: #066a45; }
.chip, .tag, .selo { border-radius: 3px; }
.pol-band { background: #081523; border-top-width: 4px; }
.pol-band .btn.primario { background: #09a66b; border-color: #09a66b; color: #081523; }
.pol-band .btn.primario[aria-pressed="true"] { color: #74e6ae; }
.pol-anel .valor { stroke: #f7bf2f; }
.pol-nome h1, .gov-cab h1, .ap-topo h1, .pol-sec-cab h2, .secao h2, .ap-secao > h2, .part-intro h1, .part-hero h1 { letter-spacing: -.04em; line-height: 1.1; }
.hero h1 { font-size: clamp(47px, 7vw, 94px); line-height: 1.05; text-transform: none; letter-spacing: -.045em; }
.hero-tags { gap: 6px; }
.numeros { gap: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.num { padding: 0 15px; border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; }
.num b { font-size: clamp(25px, 3vw, 42px); }
.num small { letter-spacing: .07em; }
.secao h2, .pol-sec-cab h2 { font-size: clamp(27px, 3vw, 39px); }
.abas-perfil a { border-radius: 3px; }
.part-card:hover, .pp-partido:hover, .pessoa-link:hover { border-color: var(--accent-2-line); }
.ap-topo { margin-bottom: 8px; padding: 5px 0 5px 20px; border-left: 4px solid #09a66b; }
.ap-tema, .ap-cargo, .ap-niveis { border-radius: 6px; }
.ap-tema { border-top: 3px solid var(--line); padding: 18px; }
.ap-tema:hover { border-color: var(--accent-2-line); border-top-color: #09a66b; }
.ap-cargo[aria-pressed="true"] { box-shadow: inset 0 -3px 0 #09a66b; }

@media (max-width: 1500px) {
  .fixar .txt, .status .txt-longo { display: none; }
}
@media (max-width: 1320px) {
  .visoes button svg { display: none; }
}
@media (max-width: 1000px) {
  .marca img { width: 162px; height: 35px; }
  .marca { padding-right: 8px; }
  .visoes button { padding-inline: 9px; }
  .visoes button[aria-selected="true"]::after { left: 9px; right: 9px; }
  .status { display: none; }
  .edicao-barra span:nth-child(2) { display: none; }
  .sc-w[data-span="3"] { grid-column: span 6; }
}
@media (max-width: 830px) {
  .marca .chip-proto { display: none; }
}
@media (min-width: 721px) and (max-width: 850px) {
  .busca-enviar { display: none; }
}
@media (max-width: 720px) {
  .ui { display: block; padding: 0; }
  .edicao-barra { display: none; }
  .topo { left: 0; right: 0; gap: 5px; padding-top: calc(7px + env(safe-area-inset-top, 0px)); padding-bottom: 7px; border: 0; border-top: 3px solid #09a66b; border-bottom: 1px solid var(--line); border-radius: 0; }
  .marca { padding: 0; border: 0; }
  .marca img { width: 170px; height: 38px; }
  .marca .chip-proto { display: inline-block; }
  .topo .tema { margin-left: auto; }
  .fixar { display: inline-flex; margin-left: auto; }
  .pc { gap: 15px; padding-top: calc(82px + env(safe-area-inset-top, 0px)); }
  .pc-cab, .sc-cab, .pp-cab { padding-bottom: 15px; }
  .pc-cab h1, .sc-cab h1, .pp-cab h1 { font-size: 34px; }
  .sc-cab > div:first-child::before { font-size: 9px; }
  .sc-w { padding: 17px 17px 19px; }
  .sc-w[data-span="3"] { grid-column: span 12; }
  .sc-w-cab h2 { font-size: 18px; }
  .sc-arrec-v b { font-size: clamp(27px, 7.7vw, 37px); }
  .painel { width: auto; border-radius: 10px 10px 0 0; }
  .painel.esquerdo { max-height: 177px; }
  .painel.esquerdo.expandido { max-height: 72%; }
  .painel-cab { padding-top: 3px; gap: 7px; }
  .esquerdo .painel-cab::before { display: none; }
  .painel-cab h2 { font-size: 22px; }
  .painel-cab h2 .vivo { margin-left: auto; font-size: 9px; }
  .kpi { padding-top: 8px; padding-bottom: 8px; }
  .kpi b { font-size: 22px; }
  .kpi span { font-size: 10px; }
  .ferramentas { bottom: calc(62px + 188px + env(safe-area-inset-bottom, 0px)); border-radius: 5px; }
  .ferr { min-width: 0; }
  .abas-celular { box-shadow: 0 -8px 25px rgba(8, 21, 35, .08); }
  .abas-celular button { position: relative; font-size: 10px; font-weight: 600; }
  .abas-celular button[aria-current="page"] { color: var(--accent); }
  .abas-celular button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px; background: #09a66b; }
  .hero h1 { font-size: clamp(40px, 10vw, 62px); text-align: left; margin-top: 4px; }
  .hero-tags { justify-content: flex-start; }
  .numeros { gap: 8px; padding-top: 12px; }
  .num { border: 1px solid var(--line); padding: 12px; }
  .num:first-child { border-left: 1px solid var(--line); }
  .num b { font-size: 25px; }
}
@media (max-width: 380px) {
  .marca img { width: 144px; height: 34px; }
  .marca .chip-proto { display: none; }
  .painel-cab h2 .vivo { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .visoes button, .item, .ferr, .btn { transition: none; }
}

/* Três leituras do mesmo território. A malha municipal continua sendo a cópia do IBGE. */
#mapa { background: #dae5df; transition: background-color 220ms ease-out; }
.mapa-graticula { fill: none; stroke: rgba(34, 79, 80, .16); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.mapa-imagem { pointer-events: none; }
.app[data-map-style="atlas"] .uf { fill: #bbd0c3; stroke: #598077; stroke-width: 1.1; }
.app[data-map-style="atlas"] .uf:hover { fill: #a4c6b3; }
.app[data-map-style="atlas"] .uf.ativo { fill: #a5c9b7; }
.app[data-map-style="atlas"] .uf-contorno { stroke: #08784f; stroke-width: 2.3; }
.app[data-map-style="atlas"] .mun { stroke: rgba(20, 69, 61, .48); stroke-width: .85; }
.app[data-map-style="atlas"] .rotulo { fill: #081523; stroke: #dce9df; }
.app[data-map-style="atlas"] .rotulo.uf-sigla { fill: #214d49; }
.app[data-map-style="atlas"] .ponto { stroke: #f1f6ec; stroke-width: 1.5; }
.app[data-map-style="noite"] #mapa { background: #081523; }
.app[data-map-style="noite"] .mapa-graticula { stroke: rgba(118, 182, 180, .17); }
.app[data-map-style="noite"] .uf { fill: #173445; stroke: #649193; stroke-width: 1.05; }
.app[data-map-style="noite"] .uf:hover { fill: #235464; }
.app[data-map-style="noite"] .uf.ativo { fill: #256052; }
.app[data-map-style="noite"] .uf-contorno { stroke: #70edba; stroke-width: 2.3; }
.app[data-map-style="noite"] .mun { stroke: rgba(177, 230, 218, .55); stroke-width: .8; }
.app[data-map-style="noite"] .rotulo { fill: #fff; stroke: #081523; }
.app[data-map-style="noite"] .rotulo.uf-sigla { fill: #d1e4df; }
.app[data-map-style="noite"] .ponto { fill: #f7bf2f; stroke: #081523; stroke-width: 1.4; }
.app[data-map-style="satelite"] #mapa { background: #061827; }
.app[data-map-style="satelite"] .mapa-graticula { display: none; }
.app[data-map-style="satelite"] .uf { fill: rgba(6, 24, 36, .08); stroke: rgba(255, 255, 255, .82); stroke-width: 1.35; }
.app[data-map-style="satelite"] .uf:hover { fill: rgba(255, 255, 255, .11); }
.app[data-map-style="satelite"] .uf.ativo { fill: rgba(9, 166, 107, .12); }
.app[data-map-style="satelite"] .uf-contorno { stroke: #f7bf2f; stroke-width: 2.5; }
.app[data-map-style="satelite"] .mun { stroke: rgba(255, 255, 255, .57); stroke-width: .85; }
.app[data-map-style="satelite"] .mun:hover { fill: rgba(247, 191, 47, .18); stroke: #ffe086; }
.app[data-map-style="satelite"] .mun.selecionada { fill: rgba(247, 191, 47, .25); stroke: #ffe086; }
.app[data-map-style="satelite"] .rotulo { fill: #fff; stroke: #07131e; stroke-width: 3; }
.app[data-map-style="satelite"] .rotulo.uf-sigla { fill: #fff; }
.app[data-map-style="satelite"] .ponto { fill: #78efac; stroke: #07131e; stroke-width: 1.7; }
.app[data-map-style="satelite"].mapa-sem-imagem .uf { fill: #173445; }
.app[data-map-style="satelite"].mapa-sem-imagem #mapa { background: #081523; }
.app.modo-painel .mapa-direcao, .app.modo-painel .mapa-credito { display: none; }
.app.mapa-foco .esquerdo { display: none; }

/* Console cartográfico: uma escolha explícita de lente, sempre com origem visível. */
.mapa-direcao { position: absolute; z-index: 1; top: calc(140px + env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); width: 260px; padding: 14px; color: #f5f8fc; background: #081523; border: 1px solid #3b6267; box-shadow: 0 18px 40px rgba(3, 15, 25, .22); pointer-events: auto; }
.mapa-direcao-topo, .mapa-direcao-rod { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 10px/1.35 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.mapa-direcao-topo { padding-bottom: 13px; border-bottom: 1px solid #38505d; color: #70d7ab; }
.mapa-direcao-topo span:last-child { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d9e7e7; }
.mapa-direcao-titulo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; }
.mapa-direcao h2 { margin: 0; font: 600 23px/1.1 var(--display); letter-spacing: -.03em; }
.mapa-direcao-titulo button { border: 1px solid #3d5863; background: #112b3a; color: #e2f0ee; font: 500 10px/1 var(--mono); padding: 7px; }
.mapa-direcao-titulo button:hover, .mapa-direcao-titulo button[aria-pressed="true"] { border-color: #70d7ab; color: #70d7ab; }
.mapa-direcao > p { margin: 9px 0 15px; color: #b8cbd4; font-size: 11px; line-height: 1.5; }
.mapa-estilos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #38505d; }
.mapa-estilos button { display: grid; justify-items: start; align-content: start; gap: 8px; min-width: 0; min-height: 94px; padding: 7px; border: 0; border-right: 1px solid #38505d; border-bottom: 3px solid transparent; background: #102739; color: #e6f1f1; text-align: left; }
.mapa-estilos button:last-child { border-right: 0; }
.mapa-estilos button:hover { background: #1d3b49; }
.mapa-estilos button[aria-pressed="true"] { border-bottom-color: #f7bf2f; background: #214437; }
.mapa-estilos b { display: block; font: 600 12px/1.1 var(--body); }
.mapa-estilos small { display: block; margin-top: 3px; color: #c1d2d6; font: 500 9px/1.2 var(--mono); }
.mapa-amostra { display: block; width: 100%; height: 25px; border: 1px solid rgba(255, 255, 255, .2); }
.amostra-atlas { background: repeating-linear-gradient(126deg, transparent 0 15px, rgba(38, 93, 75, .4) 15px 16px), #aec9b8; }
.amostra-satelite { background: url("https://gibs.earthdata.nasa.gov/wmts/epsg3857/best/BlueMarble_NextGeneration/default/2004-01-01/GoogleMapsCompatible_Level8/2/2/1.jpeg") center / cover, #31594a; }
.amostra-noite { background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(117, 218, 187, .22) 18px 19px), #102a38; }
.mapa-direcao-rod { padding-top: 12px; color: #bbd0d3; text-transform: none; letter-spacing: 0; }
.mapa-direcao-rod span:last-child { color: #7ecaa9; }
.mapa-credito { position: absolute; z-index: 1; left: 415px; bottom: 92px; max-width: min(600px, calc(100% - 450px)); padding: 6px 9px; background: #081523; color: #d5e4e8; border-left: 2px solid #f7bf2f; font: 500 10px/1.5 var(--mono); pointer-events: auto; }
.mapa-credito a { color: #a4e5c5; text-underline-offset: 2px; }
.app.mapa-foco .mapa-credito { left: 24px; max-width: calc(100% - 380px); }
@media (min-width: 721px) {
  .app:has(.ficha:not([hidden])) .mapa-direcao { top: calc(112px + env(safe-area-inset-top, 0px)); right: auto; left: max(414px, calc((100% - 490px) / 2)); width: 290px; padding: 7px; }
  .app:has(.ficha:not([hidden])) .mapa-direcao-topo, .app:has(.ficha:not([hidden])) .mapa-direcao-titulo, .app:has(.ficha:not([hidden])) .mapa-direcao > p, .app:has(.ficha:not([hidden])) .mapa-direcao-rod { display: none; }
  .app:has(.ficha:not([hidden])) .mapa-estilos button { display: flex; align-items: center; min-height: 40px; gap: 6px; padding: 5px 7px; }
  .app:has(.ficha:not([hidden])) .mapa-amostra { width: 18px; height: 18px; flex: none; }
  .app:has(.ficha:not([hidden])) .mapa-estilos small { display: none; }
  .app:has(.ficha-estado:not([hidden])) .abrir-uf { display: none !important; }
  .app:has(.ficha-estado:not([hidden])) #voltarBr { top: calc(117px + env(safe-area-inset-top, 0px)); right: 420px; left: auto; transform: none; }
}
@media (min-width: 721px) and (max-width: 1200px) {
  .mapa-direcao { max-width: 260px; }
  .mapa-direcao > p, .mapa-direcao-rod { display: none; }
  .mapa-estilos { margin-top: 11px; }
  .app:has(.ficha-estado:not([hidden])) #voltarBr { top: calc(168px + env(safe-area-inset-top, 0px)); right: auto; left: 414px; }
}
@media (max-width: 720px) {
  .mapa-direcao { top: calc(67px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; width: auto; padding: 8px 9px 9px; border-color: #3b6267; box-shadow: 0 8px 24px rgba(3, 15, 25, .22); }
  .mapa-direcao-topo { padding-bottom: 6px; font-size: 9px; }
  .mapa-direcao-titulo { position: absolute; top: 4px; right: 8px; padding: 0; }
  .mapa-direcao-titulo h2, .mapa-direcao > p, .mapa-direcao-rod { display: none; }
  .mapa-direcao-titulo button { padding: 4px 5px; font-size: 9px; }
  .mapa-direcao-topo span:last-child { margin-right: 78px; }
  .mapa-estilos { margin-top: 6px; }
  .mapa-estilos button { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 5px 7px; }
  .mapa-estilos small { display: none; }
  .mapa-amostra { width: 18px; height: 18px; flex: none; }
  .mapa-credito { left: 12px; bottom: calc(304px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 92px); font-size: 9px; }
  .app.mapa-foco .mapa-credito { left: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 24px); }
}
@media (max-width: 380px) {
  .mapa-direcao { left: 8px; right: 8px; }
  .mapa-estilos button { gap: 5px; padding-inline: 5px; }
  .mapa-estilos b { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { #mapa { transition: none; } }
