:root {
  /* Paleta Base Inteligente (projects/controle_votos_pb/brand-dna.yaml)
     Regra: nunca texto branco sobre --accent #2DA3FA (2.72:1 reprova) */
  /* (text-size-adjust definido no html abaixo) */
  --azul: #1D2733;        /* navy — base da marca: header, CTA primário */
  --azul-claro: #0578CC;  /* azul-texto derivado do accent p/ texto sobre branco (4.60:1 AA) */
  --accent: #2DA3FA;      /* azul oficial — foco, decoração, marcas gráficas */
  --verde: #16a34a;
  --amarelo: #eab308;
  --laranja: #f97316;
  --vermelho: #dc2626;
  --cinza: #64748b;
  --fundo: #f1f5f9;
  --card: #ffffff;
  --borda: #e2e8f0;
  --texto: #0f172a;
  --texto-suave: #64748b;
  --sombra: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --raio: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Proíbe o "font boosting" do Chrome Android (inflação heurística e
   DESPROPORCIONAL do texto — cabeçalho gigante no S26). O ajuste de fonte
   de acessibilidade do usuário continua respeitado; só a inflação automática
   por bloco é desligada. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--azul-claro); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
/* Upload de foto (perfil do líder / edição admin) */
.foto-upload { text-align: center; margin-bottom: 18px; }
.foto-grande { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; border: 2px solid var(--borda); background: #f1f5f9; }
.foto-grande .av-foto { width: 100%; height: 100%; object-fit: cover; }
.foto-grande .av-inicial { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 38px; }
/* Código: fica inteiro se couber; só quebra (na palavra) se exceder sozinho a linha —
   nunca letra a letra. A quebra normal acontece entre um <code> e outro (vírgula/espaço). */
code { overflow-wrap: break-word; background: #e2e8f0; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
/* Texto comum: quebra palavras muito longas (e-mail, URL) em vez de estourar o card */
h2, h3, p, td, .desc, .alerta, .comp-item, .kpi-label { overflow-wrap: break-word; }

.hidden { display: none !important; }

/* ---------------- Login / cadastro ---------------- */
.tela-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--azul);
  padding: 20px;
}
.card-auth {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
}
.card-auth h1 { font-size: 22px; margin-bottom: 4px; color: var(--azul); }
.card-auth .logo-login { display: block; max-width: 220px; width: 60%; margin: 0 auto 18px; }
.card-auth .sub { color: var(--texto-suave); font-size: 14px; margin-bottom: 24px; }

.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.campo.required label::after { content: " *"; color: #dc2626; font-weight: 700; }
.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 163, 250, .18);
}
/* minmax(0,1fr): item de grid tem min-width:auto — conteúdo rígido (ex.: gráficos
   com fonte ampliada) alargaria a coluna além do viewport (lição 2026-07-13) */
.linha-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.linha-2 > .card { min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--azul); color: #fff; border: none;
  padding: 11px 18px; border-radius: 8px; font-size: 15px; font-weight: 600;
  transition: filter .15s;
}
.btn:hover { filter: brightness(.94); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-bloco { width: 100%; }
.btn-sec { background: #fff; color: var(--azul-claro); border: 1px solid var(--borda); }
.btn-sec:hover { background: #f8fafc; }
.btn-perigo { background: var(--vermelho); }
.btn-mini { padding: 6px 10px; font-size: 13px; border-radius: 6px; }

/* ---------------- Bloco de convite (ação nº1 do líder) ---------------- */
.bloco-convite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* minmax(0,…): filho pode encolher c/ fonte ampliada */
  gap: 12px;
  margin: 4px 0 22px;
}
.btn-convite {
  min-height: 56px;            /* alvo de toque ≥44px com folga */
  padding: 14px 18px;
  font-size: 16px;             /* 16px evita zoom automático no iOS */
  border-radius: 10px;
  gap: 10px;
  box-shadow: var(--sombra);
  transition: transform .12s cubic-bezier(0.4, 0, 0.2, 1), filter .15s;
}
.btn-convite:active { transform: translateY(1px); }
.btn-convite-lider   { background: var(--azul); color: #fff; }
.btn-convite-eleitor { background: #25D366; color: #1D2733; } /* NUNCA texto branco (1.98:1) */

/* ---------------- Busca de cidade (autocomplete) ---------------- */
.busca-cidade { position: relative; }
.busca-cidade > input { font-size: 16px; }   /* herda .campo input; override anti-zoom iOS */
.busca-cidade .lista {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 320px; overflow-y: auto;   /* ~6-7 cidades visíveis (item ~47px) */
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
  z-index: 120;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .15s cubic-bezier(0.16, 1, 0.3, 1), transform .15s cubic-bezier(0.16, 1, 0.3, 1);
}
.busca-cidade .lista.aberta { opacity: 1; transform: translateY(0); pointer-events: auto; }
.busca-cidade .item {
  padding: 12px 14px;
  font-size: 15px;
  color: var(--texto);
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background .1s linear;
}
.busca-cidade .item:last-child { border-bottom: none; }
.busca-cidade .item:hover,
.busca-cidade .item.ativo { background: #e8f4fe; color: #1D2733; } /* navy sobre #e8f4fe = 13.52:1 */
.busca-cidade .vazio { padding: 12px 14px; font-size: 14px; color: var(--texto-suave); font-style: italic; }

.msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.msg-erro { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.msg-ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ---------------- App shell ---------------- */
.app { display: none; min-height: 100vh; }
.topo {
  background: var(--azul);
  color: #fff;
  padding: 0 20px;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
/* Métricas clicáveis — afford de navegação (decisão Luiz 2026-07-19) */
.clicavel { cursor: pointer; transition: transform .15s cubic-bezier(.4,0,.2,1), box-shadow .15s cubic-bezier(.4,0,.2,1); }
.clicavel:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(29,39,51,.12); }
.clicavel:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 2px; }

/* VPB-1.6 — contagem regressiva da eleição */
.contagem-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 5px 14px;
  font-size: 13px; color: #cbd5e1; white-space: nowrap; flex-shrink: 0;
}
.contagem-pill b { font-size: 18px; font-weight: 800; color: #fbbf24; letter-spacing: .5px; }
.contagem-faixa {
  background: var(--azul); color: #cbd5e1; font-size: 13px; text-align: center;
  padding: 6px 10px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.contagem-faixa b { color: #fbbf24; font-weight: 800; }
@media (max-width: 900px) { .contagem-pill { display: none !important; } }
@media (min-width: 901px) { .contagem-faixa { display: none !important; } }

.topo .marca { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.topo .marca-icone { height: 32px; width: 32px; border-radius: 6px; display: block; }
.topo .marca small { font-weight: 400; opacity: .7; font-size: 12px; }
/* .usuario encolhe (nome com reticências) em QUALQUER largura — com a fonte do
   sistema ampliada (Android/iOS), "Administrador + Sair" empurravam a página
   além da tela (corte reportado no S26). */
.topo .usuario { display: flex; align-items: center; gap: 12px; font-size: 14px; min-width: 0; flex-shrink: 1; }
.topo .usuario span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo .usuario button { background: rgba(255, 255, 255, .15); color: #fff; border: none; padding: 7px 12px; border-radius: 6px; font-size: 13px; flex-shrink: 0; }
.topo > div:first-child { min-width: 0; }
.topo .marca { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.layout { display: flex; }
.menu {
  width: 220px; background: var(--card); border-right: 1px solid var(--borda);
  min-height: calc(100vh - 58px); padding: 16px 12px; flex-shrink: 0;
}
.menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; color: #334155; font-size: 14px; font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap; /* item de menu em 1 linha sempre (fonte ampliada não quebra) */
}
.menu a:hover { background: #f1f5f9; }
.menu a.ativo { background: #e8f4fe; color: var(--azul); }
.menu a .ic { width: 18px; text-align: center; }

/* min-width:0 — sem isso o flex item não encolhe abaixo do min-content e a
   página inteira alarga quando o sistema amplia a fonte (corte no Android). */
.conteudo { flex: 1; padding: 24px; max-width: 1200px; min-width: 0; }
.conteudo h2 { font-size: 22px; margin-bottom: 4px; }
.conteudo .desc { color: var(--texto-suave); margin-bottom: 20px; font-size: 14px; }

/* ---------------- Cards / KPIs ---------------- */
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px 18px; box-shadow: var(--sombra); }
.kpi .rot { font-size: 13px; color: var(--texto-suave); margin-bottom: 6px; }
.kpi .val { font-size: 28px; font-weight: 700; }
.kpi .val small { font-size: 14px; font-weight: 500; color: var(--texto-suave); }
.kpi.azul .val { color: var(--azul-claro); }
.kpi.verde .val { color: var(--verde); }
.kpi.laranja .val { color: var(--laranja); }
.kpi .kpi-acao { font-size: 12px; color: var(--texto-suave); margin-top: 6px; }
.kpi-link { cursor: pointer; transition: transform .15s cubic-bezier(.4, 0, .2, 1), box-shadow .15s cubic-bezier(.4, 0, .2, 1); }
.kpi-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(29, 39, 51, .14); }
.kpi-link:active { transform: translateY(0); }
.kpi-link .kpi-acao { color: var(--azul-claro); font-weight: 600; }
/* Mobile: KPIs em 2 colunas compactas (evita a torre de cards de 1 por linha) */
@media (max-width: 640px) {
  .grid-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid-kpi .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 5º card ocupa a linha toda */
  .kpi { padding: 12px 14px; }
  .kpi .val { font-size: 24px; }
}

.card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); margin-bottom: 20px; }
.card h3 { font-size: 16px; margin-bottom: 14px; }

/* Barra de progresso */
.progresso { background: #e2e8f0; border-radius: 999px; height: 22px; overflow: hidden; position: relative; }
.progresso > span { display: block; height: 100%; background: linear-gradient(90deg, #16a34a, #22c55e); transition: width .5s; }
.progresso.grande { height: 28px; }
.progresso-rotulo { text-align: center; font-size: 13px; margin-top: 6px; color: var(--texto-suave); }

/* ---------------- Tabelas ---------------- */
.tabela-wrap { overflow-x: auto; border-radius: var(--raio); border: 1px solid var(--borda); }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--borda); white-space: nowrap; }
th { background: #f8fafc; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--texto-suave); }
tbody tr:hover { background: #f8fafc; }
td.num, th.num { text-align: right; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-sim { background: #dcfce7; color: #15803d; }
.badge-nao { background: #fee2e2; color: #b91c1c; }
.badge-indeciso { background: #fef9c3; color: #a16207; }
.badge-ativo { background: #dcfce7; color: #15803d; }
.badge-bloqueado { background: #fee2e2; color: #b91c1c; }
.badge-admin { background: #e0e7ff; color: #3730a3; }
.badge-material { background: #fef3c7; color: #92400e; }
.badge-sev-critica { background: #fee2e2; color: #b91c1c; }
.badge-sev-alerta { background: #fef9c3; color: #a16207; }
.badge-sev-info { background: #e8f4fe; color: #1d2733; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.pill .ponto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------------- Barra de ações / filtros ---------------- */
.barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.barra > * { min-width: 0; max-width: 100%; } /* fonte ampliada não estoura a linha */
/* Árvore da rede: nós podem encolher com fonte ampliada (não empurram a página) */
.no-rede, .no-header, .no-stats, .no-stats > div, .risco-card { min-width: 0; }
.no-header { overflow: hidden; } /* cinto: nada vaza do card do nó */
@media (max-width: 640px) {
  /* Cidade desce p/ baixo do nome (fonte ampliada não estoura a linha) */
  .no-nome span { display: block; margin-left: 0 !important; }
}
.barra input, .barra select { padding: 8px 10px; border: 1px solid var(--borda); border-radius: 8px; font-size: 14px; background: #fff; }
.barra .cresce { flex: 1; min-width: 160px; }
.espaco { flex: 1; }

/* ---------------- Alertas ---------------- */
.alerta { padding: 12px 14px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.alerta-sucesso { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alerta-info { background: #e8f4fe; color: #1d2733; border: 1px solid #a9d8fc; }
.alerta-aviso { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* ---------------- Mapa ---------------- */
.mapa-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
#mapa-svg { width: 100%; height: auto; background: #f8fafc; border-radius: var(--raio); border: 1px solid var(--borda); }
#mapa-svg path { stroke: #fff; stroke-width: .5; cursor: pointer; transition: opacity .15s; }
#mapa-svg path:hover { opacity: .75; stroke: #0f172a; stroke-width: 1; }
.legenda { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; height: fit-content; box-shadow: var(--sombra); }
.legenda h4 { font-size: 14px; margin-bottom: 12px; }
.legenda .item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.legenda .cx { width: 16px; height: 16px; border-radius: 4px; }
.detalhe-mun { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--borda); }
.detalhe-mun.vazio { color: var(--texto-suave); font-size: 13px; }
.detalhe-mun h4 { font-size: 15px; margin-bottom: 8px; }
.detalhe-mun .lin { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }

/* ---------------- Grade de municípios ---------------- */
.grade-mun { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mun-chip { padding: 10px 12px; border-radius: 8px; color: #fff; font-size: 13px; cursor: pointer; box-shadow: var(--sombra); }
.mun-chip .n { font-weight: 600; display: block; }
.mun-chip .p { font-size: 12px; opacity: .9; }

/* ---------------- Modal ---------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal h3 { margin-bottom: 16px; font-size: 18px; }
.modal .rodape { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
/* Autocomplete de cidade DENTRO de modal: em fluxo quando aberto (não absoluto),
   senão o overflow do modal cortava a lista (mostrava só ~2 cidades). Assim o
   modal acomoda/rola e mostra ~6. Fora de modal segue como dropdown absoluto. */
.modal .busca-cidade .lista { position: static; box-shadow: none; margin-top: 6px; }
.modal .busca-cidade .lista:not(.aberta) { display: none; }

.otp-modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; z-index: 200; padding: 20px; }
.otp-modal { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.otp-modal h3 { margin-bottom: 6px; font-size: 18px; }
/* Mobile: ancora o modal no topo e deixa o fundo rolar — com o teclado aberto os
   botoes (Enviar/Confirmar) nao ficam mais escondidos atras do teclado. */
@media (max-width: 640px) {
  .otp-modal-bg { place-items: start center; overflow-y: auto; }
  .otp-modal { max-height: none; }
}

.acoes-linha { display: flex; gap: 6px; }

.vazio-estado { text-align: center; padding: 40px; color: var(--texto-suave); }

.spinner { text-align: center; padding: 30px; color: var(--texto-suave); }

/* Ranking pos */
.pos { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #e2e8f0; color: #334155; font-weight: 700; font-size: 12px; align-items: center; justify-content: center; }
.pos.ouro { background: #fde68a; color: #92400e; }
.pos.prata { background: #e2e8f0; color: #475569; }
.pos.bronze { background: #fed7aa; color: #9a3412; }

/* ---------------- Responsivo ---------------- */
.menu-toggle { display: none; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 20px; padding: 4px 10px; border-radius: 6px; }
@media (max-width: 860px) {
  /* Drawer: largura acompanha o conteúdo (fonte ampliada → drawer mais largo,
     itens seguem em 1 linha), com teto de 85vw e rolagem própria */
  .menu { position: fixed; left: 0; top: 58px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 20px rgba(0,0,0,.15); width: max-content; min-width: 220px; max-width: 85vw; overflow-y: auto; max-height: calc(100vh - 58px); }
  .menu a { overflow: hidden; text-overflow: ellipsis; }
  .menu.aberto { transform: translateX(0); }
  .menu-toggle { display: block; }
  .conteudo { padding: 16px; }
  .mapa-wrap { grid-template-columns: 1fr; }
  .linha-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Dashboard: no celular a meta/KPIs/gráfico vêm ANTES do ranking */
  .dash-main { order: 1; }
  .dash-ranking { order: 2; }
}
@media (max-width: 640px) {
  .bloco-convite { grid-template-columns: 1fr; } /* botões empilham */
  .btn-convite { min-height: 52px; }             /* ainda ≥44px */
  /* Header: esconde o papel (o nome do usuário já basta) — evita aperto no mobile */
  .topo .marca small { display: none; }
  .topo .marca { font-size: 15px; }
  /* Colunas secundárias (ex.: categoria/entradas/saídas do estoque) somem no
     mobile — o card fica curto; o detalhe vive no desktop e no CSV */
  .oculta-mobile { display: none !important; }
  /* Tabelas densas viram cards empilhados (usa data-label injetado via JS) */
  .tabela-wrap { border: none; overflow: visible; }
  .tabela-wrap table, .tabela-wrap tbody, .tabela-wrap tr, .tabela-wrap td { display: block; width: 100%; }
  .tabela-wrap thead { display: none; }
  .tabela-wrap tr { background: var(--card); border: 1px solid var(--borda); border-radius: 8px; margin-bottom: 10px; box-shadow: var(--sombra); overflow: hidden; }
  .tabela-wrap td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border: none; border-top: 1px solid #f1f5f9; white-space: normal; text-align: right; }
  .tabela-wrap td::before { content: attr(data-label); font-weight: 600; color: var(--texto-suave); font-size: 12px; text-align: left; flex-shrink: 0; }
  .tabela-wrap td:first-child { background: #f8fafc; font-weight: 700; font-size: 15px; border-top: none; }
  .tabela-wrap td:first-child::before { display: none; } /* a 1ª célula (nome) não precisa de rótulo */
  .tabela-wrap td:empty { display: none; }
  /* Rede: nome ocupa a linha toda → as 5 métricas caem para a linha de baixo (não cortam) */
  .no-nome { min-width: 100% !important; }
  .no-stats { width: 100%; justify-content: flex-start !important; gap: 8px 16px !important; margin-top: 6px; }
  /* Alertas: bloco (não flex) no mobile → texto longo com <code> quebra certo, sem estourar */
  .alerta { display: block; }
  .alerta code { display: inline-block; max-width: 100%; }
}
@media (max-width: 400px) {
  .conteudo { padding: 12px; }
  .btn-convite { font-size: 15px; padding: 13px 14px; } /* não abaixo de 15px */
  .topo .usuario span { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .busca-cidade .lista { max-height: 300px; }    /* ~6 cidades no mobile (era 200px = 4) */
}

/* ===== Painel do líder — hero de meta (espelha o dash-hero do admin) ===== */
.lider-hero { background: linear-gradient(135deg, #1D2733 0%, #26323f 100%); color: #fff; }
.lider-hero .hero-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lider-hero .hero-label { font-size: 13px; opacity: .75; }
.lider-hero .hero-num { font-size: 36px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.lider-hero .hero-de { font-size: 16px; font-weight: 500; opacity: .6; }
.lider-hero .hero-pct { font-size: 28px; font-weight: 800; flex-shrink: 0; }
.lider-hero .hero-barra { height: 14px; background: rgba(255,255,255,.15); border-radius: 7px; overflow: hidden; margin: 14px 0 8px; }
.lider-hero .hero-barra > div { height: 100%; border-radius: 7px; min-width: 4px; transition: width .6s cubic-bezier(0.16,1,0.3,1); }
.lider-hero .hero-faltam { font-size: 12px; opacity: .8; }
.lider-hero .hero-faltam strong { color: #2DA3FA; }
.lider-hero .hero-detalhe { font-size: 12px; opacity: .85; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.12); }
.lider-hero .hero-cta { margin-top: 12px; width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: rgba(45,163,250,.18); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s cubic-bezier(.4,0,.2,1); }
.lider-hero .hero-cta:hover { background: rgba(45,163,250,.32); }

/* Últimos cadastros */
.ultimos-lista { display: flex; flex-direction: column; gap: 8px; }
.ultimo-item { display: flex; align-items: center; gap: 6px 10px; padding: 8px 12px; border: 1px solid var(--borda); border-radius: 8px; min-width: 0; flex-wrap: wrap; }
.ultimo-nome { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ultimo-meta { font-size: 12px; color: var(--texto-suave); min-width: 0; } /* encolhe/quebra c/ fonte ampliada (font boost 2x) */
.chip-decisao { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.chip-sim { background: #dcfce7; color: #166534; }
.chip-indeciso { background: #fef9c3; color: #854d0e; }
.chip-nao { background: #fee2e2; color: #991b1b; }

/* Fila de trabalho do líder (VPB-1.1) — toggle "Trabalhado" na lista */
.toggle-estagio { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.toggle-estagio input { width: 16px; height: 16px; accent-color: var(--azul-claro, #2DA3FA); cursor: pointer; }

/* Dashboard do admin: 3 ações no bloco de convite (Luiz 2026-07-16) */
.bloco-convite-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .bloco-convite-3 { grid-template-columns: 1fr; } }

/* Avatar de inicial/foto — global (era local do dashboard; campeonato do líder
   e aniversariantes também usam) */
.av-inicial { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; }
.av-wrap .av-foto { width: 100%; height: 100%; object-fit: cover; }
