:root {
  --fundo: #040a17;
  --vidro: rgba(15, 32, 64, .56);
  --vidro-forte: rgba(10, 23, 48, .92);
  --campo: rgba(8, 19, 41, .85);
  --linha: rgba(112, 156, 235, .2);
  --texto: #eef3ff;
  --suave: #93a8cc;
  --ouro: #dcae45;
  --ouro-claro: #ffd978;
  --eletrico: #3f7dff;
  --verde: #3ee6a0;
  --vermelho: #ff7385;
  --amarelo: #ffc552;
  --azul: #72adff;
  --titulo: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --corte: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: radial-gradient(1200px 700px at 85% -10%, rgba(63, 125, 255, .22), transparent 60%), radial-gradient(900px 600px at -5% 105%, rgba(220, 174, 69, .13), transparent 60%), var(--fundo); background-attachment: fixed; min-height: 100%; }
body { font-family: "Segoe UI", system-ui, sans-serif; color: var(--texto); font-size: 14px; }
#fundo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
button, input, select, textarea { font: inherit; }
h1, h3 { font-family: var(--titulo); }
h1 { font-size: 26px; letter-spacing: 1px; text-transform: uppercase; }
h3 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
svg.icone { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- marca e entrada ---------- */
.marca { display: flex; flex: none; }
/* Medidas fixas: o menu não se desloca enquanto a imagem carrega. */
.marca img { height: 60px; aspect-ratio: 480 / 110; filter: drop-shadow(0 0 8px rgba(63, 125, 255, .35)); transition: filter .3s, transform .3s; }
@media (max-width: 560px) { .marca img { height: 46px; } }
.marca:hover img { filter: drop-shadow(0 0 12px rgba(255, 217, 120, .55)); transform: scale(1.03); }
.logo-entrada { width: 360px; max-width: 100%; height: auto; justify-self: center; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(63, 125, 255, .35)); }
.entrada { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.moldura { width: 100%; max-width: 400px; padding: 1px; clip-path: var(--corte); background: linear-gradient(140deg, var(--ouro), rgba(63, 125, 255, .25) 45%, var(--eletrico)); animation: surgir .6s both; }
.moldura form { clip-path: var(--corte); background: var(--vidro-forte); padding: 32px; display: grid; gap: 15px; }

/* ---------- barra superior ---------- */
.topo { position: sticky; top: 12px; z-index: 20; margin: 12px auto 0; width: min(1500px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 14px; border: 1px solid var(--linha); border-radius: 18px; background: rgba(7, 18, 40, .74); backdrop-filter: blur(18px); box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.topo::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--ouro), transparent); opacity: .6; }
.navegacao { position: relative; display: flex; gap: 2px; }
.navegacao a { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 11px; color: var(--suave); text-decoration: none; font-size: 13px; white-space: nowrap; transition: color .25s, transform .2s; }
.navegacao a:hover { color: var(--texto); transform: translateY(-2px); }
.navegacao a.ativo { color: var(--ouro-claro); }
.navegacao a svg { transition: transform .35s; }
.navegacao a:hover svg, .navegacao a.ativo svg { transform: scale(1.18); }
.menu-suspenso { position: fixed; z-index: 30; display: grid; gap: 2px; min-width: 210px; padding: 7px; border: 1px solid rgba(255, 217, 120, .4); border-radius: 14px; background: rgba(7, 18, 40, .97); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 22px rgba(63, 125, 255, .22); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.menu-suspenso.aberto { visibility: visible; opacity: 1; transform: none; }
.menu-suspenso a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--suave); text-decoration: none; font-size: 13px; white-space: nowrap; }
.menu-suspenso a:hover, .menu-suspenso a:focus-visible { color: var(--texto); background: rgba(63, 125, 255, .18); }
.menu-suspenso a.ativo { color: var(--ouro-claro); }
.marcador { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 11px; background: linear-gradient(180deg, rgba(220, 174, 69, .22), rgba(63, 125, 255, .14)); border: 1px solid rgba(255, 217, 120, .45); box-shadow: 0 0 20px rgba(220, 174, 69, .3); transition: transform .45s cubic-bezier(.3, 1.35, .5, 1), width .45s cubic-bezier(.3, 1.35, .5, 1); }
.marcador::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -1px; height: 2px; background: var(--ouro-claro); box-shadow: 0 0 10px var(--ouro-claro); }
.ferramentas { display: flex; align-items: center; gap: 8px; }
.atalho { display: flex; align-items: center; gap: 8px; }
kbd { font: 11px var(--titulo); border: 1px solid var(--linha); border-radius: 5px; padding: 1px 5px; color: var(--suave); }
.conta { position: relative; }
.conta summary { list-style: none; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--titulo); border: 1px solid var(--ouro); color: var(--ouro-claro); box-shadow: 0 0 14px rgba(220, 174, 69, .3); }
.conta summary::-webkit-details-marker { display: none; }
.conta div { position: absolute; right: 0; top: 50px; width: 220px; display: grid; gap: 8px; padding: 14px; background: var(--vidro-forte); border: 1px solid var(--linha); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); animation: surgir .25s both; }
.conta small { color: var(--suave); }

main { width: min(1500px, calc(100% - 24px)); margin: 0 auto; padding: 26px 0 60px; min-width: 0; }
main.entrando > * { animation: surgir .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes surgir { from { opacity: 0; transform: translate(var(--dx, 0), 16px) scale(.985); filter: blur(6px); } }
.varredura { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 40; pointer-events: none; background: linear-gradient(90deg, transparent, var(--eletrico), var(--ouro-claro)); transform-origin: left; animation: varrer .6s ease-out forwards; }
@keyframes varrer { from { transform: scaleX(0); } 70% { transform: scaleX(1); opacity: 1; } to { opacity: 0; } }

.cabecalho { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cabecalho h1 { display: flex; align-items: center; gap: 12px; }
.cabecalho h1::before { content: ""; width: 5px; height: 26px; background: linear-gradient(var(--ouro-claro), var(--eletrico)); box-shadow: 0 0 12px var(--ouro); transform: skewX(-14deg); }
.cabecalho p { color: var(--suave); font-size: 13px; margin-top: 2px; }
.acoes { display: flex; gap: 7px; flex-wrap: wrap; }
td .acoes { flex-wrap: nowrap; }

/* ---------- controles ---------- */
.botao { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--ouro-claro), var(--ouro)); color: #06122a; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; transition: transform .18s, box-shadow .25s; }
.botao::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34px; left: -60px; background: rgba(255, 255, 255, .55); transform: skewX(-20deg); transition: left .45s; }
.botao:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(220, 174, 69, .45); }
.botao:hover::after { left: calc(100% + 30px); }
.botao:active { transform: scale(.97); }
.botao.leve { background: rgba(63, 125, 255, .08); color: var(--suave); border: 1px solid var(--linha); }
.botao.leve:hover { color: var(--texto); border-color: var(--eletrico); box-shadow: 0 0 18px rgba(63, 125, 255, .35); }
.botao.leve::after { background: rgba(114, 173, 255, .2); }
.botao.perigo { background: transparent; color: var(--vermelho); border: 1px solid rgba(255, 115, 133, .4); }
.botao.perigo:hover { box-shadow: 0 0 16px rgba(255, 115, 133, .35); }
.botao.mini { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
input, select, textarea { background: var(--campo); color: var(--texto); border: 1px solid var(--linha); border-radius: 10px; padding: 9px 12px; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(220, 174, 69, .18), 0 0 18px rgba(220, 174, 69, .22); }
.botao:focus-visible, a:focus-visible, summary:focus-visible, .etapa:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 2px; }
label { display: grid; gap: 6px; font-size: 12px; color: var(--suave); font-weight: 600; }

/* ---------- superfícies com brilho que segue o cursor ---------- */
.indicador, .cartao, .lead, .estagio { position: relative; border: 1px solid var(--linha); background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), rgba(114, 173, 255, .17), transparent 70%), var(--vidro); backdrop-filter: blur(10px); transition: transform .25s, border-color .25s, box-shadow .25s; }
.indicador:hover, .lead:hover, a.estagio:hover { transform: translateY(-4px); border-color: rgba(255, 217, 120, .55); box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 20px rgba(220, 174, 69, .16); }

.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 13px; margin-bottom: 18px; }
.indicador { clip-path: var(--corte); padding: 16px 18px; color: inherit; text-decoration: none; display: block; }
.indicador::before { content: ""; position: absolute; top: 0; left: 14px; width: 46px; height: 2px; background: var(--ouro-claro); box-shadow: 0 0 10px var(--ouro); transition: width .35s; }
.indicador:hover::before { width: calc(100% - 14px); }
.indicador span { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--suave); }
.indicador strong { display: block; font: 600 32px var(--titulo); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.indicador small { color: var(--suave); }

/* ---------- painel ---------- */
.destaque { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }
.destaque .cartao { clip-path: var(--corte); padding: 26px; }
.destaque .valor { font: 600 clamp(34px, 5.4vw, 66px) var(--titulo); line-height: 1.15; background: linear-gradient(90deg, #fff, var(--ouro-claro) 55%, var(--ouro)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.destaque p { color: var(--suave); }
.destaque .rotulo { letter-spacing: 2px; text-transform: uppercase; font-size: 11px; color: var(--azul); }
.medidor { display: flex; align-items: center; gap: 22px; }
.medidor svg { width: 138px; height: 138px; flex: none; }
.medidor circle { fill: none; stroke-width: 9; }
.medidor .trilho { stroke: rgba(114, 173, 255, .15); stroke-dasharray: 3 5; }
.medidor .arco { stroke: var(--ouro-claro); stroke-linecap: round; filter: drop-shadow(0 0 7px var(--ouro)); transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.medidor text { fill: var(--texto); font: 600 27px var(--titulo); text-anchor: middle; dominant-baseline: central; }

.funil { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin-bottom: 10px; }
.estagio { border-radius: 12px; padding: 12px 8px; display: grid; gap: 8px; justify-items: center; text-align: center; color: inherit; text-decoration: none; }
.estagio b { font: 600 24px var(--titulo); }
.estagio small { color: var(--suave); min-height: 32px; }
.coluna-grafico { height: 80px; width: 22px; display: flex; align-items: flex-end; background: rgba(114, 173, 255, .08); border-radius: 5px; overflow: hidden; }
.coluna-grafico div { width: 100%; background: linear-gradient(var(--ouro-claro), var(--eletrico)); box-shadow: 0 0 12px var(--eletrico); transform-origin: bottom; animation: crescer 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes crescer { from { transform: scaleY(0); } }

.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.cartao { border-radius: 16px; padding: 20px; }
.cartao h3 { margin-bottom: 12px; color: var(--ouro-claro); }
.item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linha); transition: padding .2s; }
.item:hover { padding-left: 6px; }
.item:last-child { border-bottom: 0; }
.item small { display: block; color: var(--suave); }
.vazio { color: var(--suave); padding: 20px; text-align: center; }
.roteiro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; color: var(--suave); font-size: 12px; }
.roteiro span { border: 1px dashed var(--linha); border-radius: 20px; padding: 4px 12px; }

.filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filtros > * { flex: 1 1 150px; max-width: 230px; }

.tabela { border: 1px solid var(--linha); background: var(--vidro); backdrop-filter: blur(10px); border-radius: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
th { font: 600 11px var(--titulo); letter-spacing: 1.5px; text-transform: uppercase; color: var(--azul); background: rgba(63, 125, 255, .07); }
tbody tr { transition: background .2s, box-shadow .2s; }
tbody tr:hover { background: rgba(63, 125, 255, .1); box-shadow: inset 3px 0 0 var(--ouro-claro); }
tbody tr:last-child td { border-bottom: 0; }

.etiqueta { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; color: var(--suave); background: rgba(147, 168, 204, .08); }
.etiqueta::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.etiqueta.verde { color: var(--verde); }
.etiqueta.vermelho { color: var(--vermelho); }
.etiqueta.amarelo { color: var(--amarelo); }
.etiqueta.azul { color: var(--azul); }
.atrasado { color: var(--vermelho); font-weight: 600; }

.kanban { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 14px; align-items: flex-start; }
.coluna { flex: 0 0 240px; border: 1px solid var(--linha); border-top: 2px solid var(--eletrico); border-radius: 14px; background: rgba(8, 19, 41, .55); padding: 9px; display: grid; gap: 9px; min-height: 150px; align-content: start; transition: border-color .2s, box-shadow .2s; }
.coluna.alvo { border-color: var(--ouro-claro); box-shadow: 0 0 26px rgba(220, 174, 69, .35); }
.coluna header { display: flex; justify-content: space-between; font: 600 12px var(--titulo); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ouro-claro); padding: 4px; }
.lead { border-radius: 11px; padding: 11px; cursor: grab; display: grid; gap: 6px; }
.lead p { font-size: 12px; color: var(--suave); }
.lead select { padding: 4px 6px; font-size: 12px; }

.barra { height: 6px; background: rgba(114, 173, 255, .13); border-radius: 4px; overflow: hidden; margin: 5px 0 14px; }
.barra div { height: 100%; background: linear-gradient(90deg, var(--eletrico), var(--ouro-claro)); box-shadow: 0 0 10px var(--ouro); }
.etapa { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 8px; color: var(--suave); padding: 6px 4px; text-align: left; cursor: pointer; transition: background .2s, padding .2s; }
.etapa:hover { background: rgba(63, 125, 255, .12); padding-left: 10px; }
.etapa b { width: 20px; text-align: center; }
.etapa.e1 { color: var(--texto); }
.etapa.e1 b { color: var(--amarelo); }
.etapa.e2 b { color: var(--verde); text-shadow: 0 0 8px var(--verde); }

/* ---------- janelas e busca rápida ---------- */
dialog { margin: auto; width: min(660px, calc(100vw - 24px)); max-height: 90vh; overflow-y: auto; background: var(--vidro-forte); color: var(--texto); border: 1px solid rgba(255, 217, 120, .4); border-radius: 18px; padding: 24px; box-shadow: 0 0 60px rgba(63, 125, 255, .3); }
dialog[open] { animation: surgir .35s cubic-bezier(.2, .8, .2, 1); }
dialog::backdrop { background: rgba(2, 7, 18, .7); backdrop-filter: blur(5px); }
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 18px 0; }
.formulario .largo { grid-column: 1 / -1; }
.marcaveis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
label.marcavel { display: flex; align-items: center; gap: 8px; color: var(--texto); cursor: pointer; }
label.marcavel input { width: auto; accent-color: var(--ouro); }
.erro { color: var(--vermelho); font-size: 13px; min-height: 1em; }
dialog.busca { width: min(520px, calc(100vw - 24px)); margin-top: 12vh; padding: 14px; }
.busca ul { list-style: none; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.busca li button { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: 1px solid transparent; border-radius: 10px; color: var(--suave); padding: 10px 12px; cursor: pointer; text-align: left; }
.busca li button.marcado { color: var(--ouro-claro); border-color: rgba(255, 217, 120, .4); background: rgba(63, 125, 255, .14); }
.busca .dica { margin-top: 10px; font-size: 11px; color: var(--suave); }

#avisos { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; }
.aviso { background: var(--vidro-forte); border: 1px solid var(--ouro); border-radius: 10px; padding: 11px 17px; max-width: 360px; box-shadow: 0 0 22px rgba(220, 174, 69, .3); animation: surgir .3s both; --dx: 40px; }
.aviso.falha { border-color: var(--vermelho); box-shadow: 0 0 22px rgba(255, 115, 133, .3); }

/* ---------- setup e lembretes ---------- */
.pendencia { display: block; margin-bottom: 14px; text-decoration: none; color: inherit; border-color: var(--ouro); }
small.observacao { display: block; color: var(--suave); width: 280px; white-space: normal; }
dialog.lembretes { width: min(560px, calc(100vw - 24px)); }
dialog.lembretes[open] { display: grid; gap: 14px; }
.secao-lembrete h2 { font-size: 14px; color: var(--suave); margin-bottom: 6px; }
.secao-lembrete.lembrete-contrato h2 { color: var(--ouro-claro); }
.secao-lembrete ul { list-style: none; display: grid; gap: 7px; }
.secao-lembrete li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--linha); border-radius: 10px; padding: 9px 12px; }
.secao-lembrete li div { display: grid; min-width: 0; overflow-wrap: anywhere; }
.secao-lembrete li small { color: var(--suave); }
.secao-lembrete li small.atrasado { color: var(--vermelho); }

/* ---------- submenu, gráficos e formulários de gestão ---------- */
.subnav { width: min(1500px, calc(100% - 24px)); margin: 14px auto 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.subnav:empty { display: none; }
.subnav a { display: flex; align-items: center; gap: 7px; padding: 6px 15px; border: 1px solid var(--linha); border-radius: 30px; color: var(--suave); background: var(--vidro); text-decoration: none; font-size: 12px; white-space: nowrap; transition: color .25s, border-color .25s, box-shadow .25s, transform .2s; }
.subnav a:hover { color: var(--texto); border-color: var(--eletrico); transform: translateY(-2px); }
.subnav a.ativo { color: var(--ouro-claro); border-color: var(--ouro); box-shadow: 0 0 16px rgba(220, 174, 69, .3); }
.cabecalho input.mes { width: auto; }
a.botao { text-decoration: none; display: inline-block; }
.legenda { display: flex; gap: 16px; font-size: 12px; color: var(--suave); margin-bottom: 10px; }
.legenda span { display: flex; align-items: center; gap: 6px; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; }
.s1 { background: #3f7dff; }
.s2 { background: #b98a1f; }
.s3 { background: #2fbf9a; }
.indicador.recebido .parte { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin: 4px 0; }
.indicador.recebido em { font-style: normal; font-size: 12px; color: var(--suave); }
.indicador.recebido .parte strong { font-size: 21px; margin: 0; }

/* ---------- mapa de atuação ---------- */
.cartao.mapa { display: grid; justify-items: center; gap: 10px; margin-bottom: 14px; }
.cartao.mapa > .quadro-mapa { justify-self: stretch; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: flex-start; }
.tela-do-mapa { position: relative; flex: 1 1 420px; max-width: 660px; display: grid; justify-items: center; }
.tela-do-mapa svg { width: 100%; height: auto; max-height: 62vh; overflow: hidden; }
.tela-do-mapa .voltar { position: absolute; top: 0; left: 0; display: none; z-index: 1; }
.quadro-mapa.aberto .voltar { display: inline-block; }
.mapa .uf { fill: transparent; stroke: rgba(114, 173, 255, .55); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: opacity .6s, fill .6s, stroke .6s; }
.quadro-mapa.aberto .uf { opacity: .22; }
.quadro-mapa.aberto .uf.escolhido { opacity: 1; fill: rgba(63, 125, 255, .12); stroke: #72adff; stroke-width: 1.8; }
.mapa .uf.atendido { fill: rgba(255, 201, 71, .34); stroke: #ffc947; stroke-width: 1.8; filter: drop-shadow(0 0 6px rgba(255, 201, 71, .55)); }
.quadro-mapa.aberto .uf.atendido { opacity: .5; }
.quadro-mapa.aberto .uf.escolhido.atendido { opacity: 1; fill: rgba(255, 201, 71, .22); stroke: #ffd978; stroke-width: 2.2; }
.mapa .divisas { fill: none; stroke: rgba(114, 173, 255, .22); stroke-width: .6; vector-effect: non-scaling-stroke; animation: surgir .8s both; }
.mapa .com-cliente { fill: rgba(255, 201, 71, .8); stroke: #ffc947; stroke-width: 9; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 5px var(--ouro)); pointer-events: none; transition: fill .6s; }
.quadro-mapa.aberto .com-cliente { fill: rgba(255, 201, 71, .55); stroke-width: 4; }
.mapa .municipio { fill: rgba(255, 217, 120, .35); stroke: var(--ouro-claro); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mapa .marca-cidade { cursor: pointer; transition: opacity .4s; outline: none; }
.mapa .marca-cidade.fora { opacity: 0; pointer-events: none; }
.mapa .marca-cidade .alvo { fill: transparent; }
.mapa .marca-cidade .alfinete { fill: var(--ouro-claro); filter: drop-shadow(0 0 6px var(--ouro)); transition: transform .2s; }
.mapa .marca-cidade:hover .alfinete, .mapa .marca-cidade:focus-visible .alfinete, .mapa .marca-cidade.escolhida .alfinete { transform: scale(1.25); }
.mapa .marca-cidade:focus-visible .alfinete { stroke: #fff; stroke-width: 2; }
.mapa .marca-cidade .miolo { fill: #050d1e; pointer-events: none; }
.mapa .marca-cidade circle.onda { fill: none; stroke: var(--ouro-claro); stroke-width: 1.5; animation: onda-no-mapa 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.mapa .marca-cidade text { display: none; fill: var(--texto); font-size: 13px; paint-order: stroke; stroke: #050d1e; stroke-width: 3px; }
.quadro-mapa.aberto .marca-cidade.escolhida text { display: block; }
.ficha-da-cidade { display: none; flex: 0 1 300px; min-width: 240px; align-content: start; gap: 8px; border: 1px solid rgba(255, 217, 120, .4); border-radius: 14px; padding: 16px; background: rgba(8, 19, 41, .75); }
.quadro-mapa.aberto .ficha-da-cidade { display: grid; animation: surgir .5s .35s both; --dx: 30px; }
.ficha-da-cidade small, .ficha-da-cidade p { color: var(--suave); font-size: 12px; }
.ficha-da-cidade h3 { margin: 0; }
.ficha-da-cidade h4 { margin-top: 6px; font-size: 12px; color: var(--ouro-claro); }
.ficha-da-cidade ul { list-style: none; display: grid; gap: 4px; max-height: 130px; overflow-y: auto; font-size: 13px; }
.numero-de-lojas { display: flex; align-items: baseline; gap: 8px; }
.numero-de-lojas strong { font: 600 40px var(--titulo); }
@keyframes onda-no-mapa { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
/* Dentro da cidade: um marcador por bairro e depois um por loja, afastados para não se sobrepor */
.mapa .marca-cidade.ponto text { display: block; text-anchor: middle; }
.mapa .marca-cidade.ponto.escolhida text { fill: var(--ouro-claro); font-weight: 700; }
.ficha-da-cidade .escolhas { display: flex; flex-wrap: wrap; gap: 6px; }
.ficha-da-cidade .escolhas .ativa { border-color: var(--ouro-claro); color: var(--ouro-claro); }
dialog.ficha.larga { width: min(1100px, 94vw); max-width: 94vw; }
@media (prefers-reduced-motion: reduce) { .mapa .marca-cidade circle.onda { animation: none; opacity: .5; } }
.titulo-de-secao { margin: 18px 0 8px; color: var(--ouro-claro); font-size: 15px; }
.grafico { display: flex; gap: 8px; height: 170px; margin-bottom: 14px; }
.grupo-mes { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 6px; text-align: center; color: var(--suave); }
.colunas { display: flex; align-items: flex-end; justify-content: center; gap: 2px; min-height: 0; border-bottom: 1px solid var(--linha); }
.serie { width: 38%; max-width: 22px; border-radius: 4px 4px 0 0; transform-origin: bottom; animation: crescer .9s cubic-bezier(.2, .8, .2, 1) both; transition: filter .2s; }
.serie:hover, .serie:focus-visible { filter: brightness(1.35); outline: 0; }
.cartao .tabela { border-radius: 10px; }
.cartao th, .cartao td { padding: 7px 10px; font-size: 12px; }
.nota { color: var(--suave); font-size: 12px; margin-top: 10px; }

/* ---------- avaliações ---------- */
.lista-avaliacoes { display: grid; gap: 12px; }
.avaliacao { border-left: 3px solid var(--vermelho); display: grid; gap: 10px; }
.avaliacao.boa { border-left-color: var(--verde); }
.topo-avaliacao { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topo-avaliacao input { width: 17px; height: 17px; accent-color: var(--ouro); }
.topo-avaliacao small { color: var(--suave); }
.topo-avaliacao .prazo { color: var(--amarelo); }
.estrelas { color: var(--ouro-claro); letter-spacing: 2px; }
.estrelas i { color: var(--linha); font-style: normal; }
.comentario { overflow-wrap: anywhere; }
.resposta { display: grid; gap: 4px; }
.resposta .origem, .publicada small { color: var(--azul); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.resposta .item { border: 0; align-items: center; flex-wrap: wrap; }
.resposta .item:hover { padding-left: 0; }
.publicada { border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; }
.aguarda { color: var(--amarelo); font-size: 12px; }
.periodo { align-items: end; }
.periodo .nota { flex: 2 1 260px; max-width: none; margin: 0 0 8px; }
.lista-avaliacoes { margin-top: 14px; }
.paginacao { display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--suave); flex-wrap: wrap; }
.botao:disabled { opacity: .45; cursor: default; }
dialog.detalhes[open], dialog.ficha[open] { display: grid; gap: 10px; }
.teste-ia { margin-bottom: 14px; }
.comparacao .comentario { margin-bottom: 12px; }
.comparacao .botao { margin-top: 12px; }
.orientacao { margin-bottom: 14px; border-color: var(--amarelo); color: var(--amarelo); }

/* ---------- lojas iFood ---------- */
label[hidden] { display: none; }
.operacao { margin-bottom: 10px; }
.operacao ~ small { display: block; color: var(--suave); }
.operacao ~ .acoes { margin-top: 12px; }
.turnos ~ .acoes { margin-top: 12px; }
.operacao p { margin-top: 6px; }
.pendencias { margin: 6px 0 0 18px; color: var(--amarelo); font-size: 12px; }
.turnos { display: grid; gap: 10px; }
.turno { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 560px) { .turno { grid-template-columns: 1fr 1fr; } }
.cartao.bloco { margin-top: 14px; }
.bloco form { margin-top: 12px; }
.abas { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--linha); margin-bottom: 16px; }
.abas button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--suave); font: inherit; padding: 9px 15px; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s; }
.abas button:hover { color: var(--texto); }
.abas button.ativa { color: var(--ouro-claro); border-bottom-color: var(--ouro); }
.abas.sub { margin: 0 0 14px; border-bottom: 0; gap: 8px; }
.abas.sub button { border: 1px solid var(--linha); border-radius: 30px; padding: 5px 14px; font-size: 12px; background: var(--vidro); }
.abas.sub button.ativa { border-color: var(--ouro); box-shadow: 0 0 14px rgba(220, 174, 69, .25); }
.barra-da-aba .acoes label { display: grid; gap: 3px; font-size: 11px; color: var(--suave); }
.barra-da-aba { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.barra-da-aba .nota { margin: 0; flex: 1 1 260px; }
.barra-da-aba select, .cabecalho .acoes select { width: auto; max-width: 100%; }
.cartoes .cartao > .acoes { margin-top: 12px; }
.indicadores ~ .cartao.bloco { margin-top: 14px; }

/* ---------- contratos ---------- */
dialog.contrato { width: min(780px, calc(100vw - 24px)); }
dialog.contrato[open] { display: grid; gap: 12px; }
dialog.contrato textarea { font-size: 13px; line-height: 1.5; }
.contrato-texto { background: var(--campo); border: 1px solid var(--linha); border-radius: 10px; padding: 16px; max-height: 40vh; overflow-y: auto; display: grid; gap: 10px; }
.contrato-texto p { white-space: pre-wrap; overflow-wrap: anywhere; }
.contrato-texto h2 { font-size: 15px; }
.contrato-texto h3 { font-size: 13px; color: var(--ouro-claro); }
.marcadores { display: flex; flex-wrap: wrap; gap: 6px; }
main details > summary { cursor: pointer; color: var(--azul); margin: 14px 0 10px; }
.documentos { margin-bottom: 24px; }
.documentos h3 { margin-bottom: 10px; }

.relatorio { display: grid; gap: 12px; }
.relatorio h3 { color: var(--ouro-claro); margin-bottom: 6px; }
dialog.contrato details summary { cursor: pointer; color: var(--azul); }
.relatorio .formulario { margin: 0; align-items: end; }
input.marcar { width: 17px; height: 17px; accent-color: var(--ouro); }

.bloco > .acoes { margin-bottom: 10px; }
.bloco details { margin-top: 12px; }
.bloco summary { cursor: pointer; color: var(--azul); }
.bloco details .contrato-texto { margin: 10px 0; }
td small { display: block; color: var(--suave); }

/* ---------- pagamento (Asaas) ---------- */
dialog.pagamento { width: min(460px, calc(100vw - 24px)); }
dialog.pagamento[open] { display: grid; gap: 14px; }
.pix { display: grid; gap: 12px; }
.pix img { justify-self: center; background: #fff; padding: 10px; border-radius: 12px; }
.copiavel { display: grid; gap: 6px; justify-items: start; }
.copiavel label { width: 100%; }
.copiavel textarea { font: 12px Consolas, monospace; resize: none; word-break: break-all; }
.teste { color: var(--amarelo); border: 1px dashed var(--amarelo); border-radius: 8px; padding: 7px 12px; }
.cartao.asaas { margin-top: 14px; }
.cartao.asaas .acoes { margin-top: 12px; }

/* ---------- WhatsApp (conversas) ---------- */
.conversas { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 260px); min-height: 460px; border: 1px solid var(--linha); border-radius: 16px; overflow: hidden; background: var(--vidro); }
.painel-lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--linha); background: rgba(8, 19, 41, .55); }
.busca-conversas { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--linha); }
.lista-conversas { overflow-y: auto; flex: 1; }
.conversa { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--linha); color: var(--texto); text-align: left; cursor: pointer; transition: background .15s; }
.conversa:hover { background: rgba(63, 125, 255, .1); }
.conversa.ativa { background: rgba(63, 125, 255, .18); box-shadow: inset 3px 0 0 var(--ouro); }
.conversa .resumo { flex: 1; min-width: 0; display: grid; gap: 2px; }
.conversa .resumo b, .conversa .resumo small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversa .resumo small { color: var(--suave); }
.conversa.nova .resumo b { color: var(--ouro-claro); }
.meta-conversa { display: grid; justify-items: end; gap: 4px; color: var(--suave); }
.contagem { font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 2px 6px; border-radius: 999px; background: var(--verde); color: #04201a; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #06122a; background: linear-gradient(135deg, var(--ouro-claro), var(--azul)); }
.fio { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fio-vazio { margin: auto; text-align: center; color: var(--suave); display: grid; gap: 6px; padding: 20px; }
.fio-vazio b { font-family: var(--titulo); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ouro-claro); }
.topo-do-fio { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linha); background: rgba(8, 19, 41, .7); flex-wrap: wrap; }
.topo-do-fio .identidade { flex: 1; min-width: 140px; display: grid; }
.topo-do-fio .identidade small { color: var(--suave); }
.voltar { display: none; background: transparent; border: 0; color: var(--texto); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 6px; }
.mensagens { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; background: radial-gradient(600px 300px at 80% 0%, rgba(63, 125, 255, .08), transparent 70%); }
.dia-do-fio { align-self: center; margin: 8px 0; }
.dia-do-fio span { font-size: 11px; color: var(--suave); background: var(--campo); border: 1px solid var(--linha); border-radius: 999px; padding: 3px 12px; }
.bolha { max-width: min(560px, 82%); padding: 7px 10px 5px; border-radius: 12px; border: 1px solid var(--linha); display: grid; gap: 2px; }
.bolha p { white-space: pre-wrap; overflow-wrap: anywhere; }
.bolha.recebida { align-self: flex-start; background: var(--vidro-forte); border-top-left-radius: 3px; }
.bolha.enviada { align-self: flex-end; background: rgba(63, 125, 255, .28); border-color: rgba(114, 173, 255, .4); border-top-right-radius: 3px; }
.bolha .autor { color: var(--ouro-claro); font-size: 11px; }
.erro-da-bolha { color: var(--vermelho); font-size: 11px; }
.rodape-da-bolha { justify-self: end; display: inline-flex; gap: 5px; align-items: center; font-size: 10.5px; color: var(--suave); }
.tique { font-style: normal; letter-spacing: -2px; font-weight: 700; }
.tique.lida { color: var(--azul); }
.tique.falhou, .tique.incerta { color: var(--vermelho); letter-spacing: 0; }
.compor { border-top: 1px solid var(--linha); padding: 10px 14px; background: rgba(8, 19, 41, .7); display: grid; gap: 6px; }
.campo-de-texto { display: flex; gap: 8px; align-items: flex-end; }
.campo-de-texto textarea { resize: none; max-height: 140px; }
.campo-de-texto .anexar { flex: none; padding: 9px 14px; font-size: 18px; line-height: 1; }
.lista-de-lojas { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; margin: 12px 0; }
.linha-de-loja { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--linha); border-radius: 8px; cursor: pointer; }
.linha-de-loja input { width: auto; }
.linha-de-loja small { margin-left: auto; color: var(--suave); }
.anexo { display: block; }
.anexo-imagem { display: block; max-width: 100%; max-height: 280px; border-radius: 8px; background: var(--campo); }
.anexo-video { max-width: 100%; max-height: 280px; border-radius: 8px; }
.anexo-audio { max-width: 100%; height: 36px; }
.anexo-arquivo { color: var(--ouro-claro); overflow-wrap: anywhere; }
.janela-fechada { display: grid; gap: 8px; color: var(--amarelo); }
.janela-fechada .acoes { align-items: center; }
/* Com a barra de navegação no rodapé (telas menores), sobra menos altura. */
@media (max-width: 1240px) { .conversas { height: calc(100vh - 340px); min-height: 380px; } }
@media (max-width: 800px) {
  .conversas { grid-template-columns: 1fr; }
  .conversas .fio { display: none; }
  .conversas.com-fio .fio { display: flex; }
  .conversas.com-fio .painel-lista { display: none; }
  .voltar { display: block; }
}

/* ---------- impressão / PDF ---------- */
@media print {
  html, body { background: #fff !important; color: #111 !important; }
  #fundo, .topo, .subnav, #avisos, .cabecalho .acoes, .varredura { display: none !important; }
  *, *::before, *::after { animation: none !important; box-shadow: none !important; backdrop-filter: none !important; }
  main { width: 100%; padding: 0; }
  .cartoes { grid-template-columns: 1fr 1fr; }
  .cartao, .indicador, .tabela { background: #fff !important; border: 1px solid #bbb !important; clip-path: none !important; break-inside: avoid; }
  .cartao h3, .indicador strong, .indicador span, .indicador small, th, td, .item, .item small, .cabecalho p, .legenda, .grupo-mes, .nota { color: #111 !important; }
  .serie, .barra div, .legenda i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Dashboard: 12 blocos em duas fileiras de 6. */
.indicadores.doze { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.indicadores.doze .indicador small { overflow-wrap: anywhere; }
.indicador.livre { border-style: dashed; opacity: .6; }
.indicador.alerta { border-color: var(--vermelho); }
@media (max-width: 1100px) { .indicadores.doze { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .indicadores.doze { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.destaque .vgv { color: inherit; text-decoration: none; display: grid; align-content: start; gap: 12px; }
.blocos-vgv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.bloco-vgv { border: 1px solid var(--linha); border-radius: 12px; padding: 12px; }
.bloco-vgv small { color: var(--suave); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; }
.bloco-vgv strong { display: block; font: 600 clamp(20px, 2.1vw, 28px) var(--titulo); color: var(--ouro-claro); font-variant-numeric: tabular-nums; margin: 4px 0; }
.bloco-vgv p { font-size: 12px; margin: 2px 0 0; }

/* Funil do onboarding (deitado) e comparação de tipos de contrato. */
.topo-funil { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip-funil { font: 600 11px var(--titulo); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ouro-claro); border: 1px solid rgba(255, 217, 120, .4); border-radius: 999px; padding: 5px 12px; box-shadow: 0 0 14px rgba(220, 174, 69, .18) inset; }
.rolagem-funil { overflow-x: auto; }
.palco-funil { min-width: 700px; background: linear-gradient(rgba(114, 173, 255, .05) 1px, transparent 1px) 0 0 / 100% 22px; border-radius: 12px; }
.palco-funil svg { display: block; width: 100%; height: 210px; }
.palco-funil .grade { stroke: rgba(114, 173, 255, .12); stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.palco-funil .corpo { opacity: .82; stroke: #a9cdff; stroke-width: 1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 9px rgba(63, 125, 255, .75)); transition: opacity .2s; }
.palco-funil .trecho:hover .corpo { opacity: 1; }
.palco-funil .borda { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--azul)); }
.palco-funil .fluxo { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 14; opacity: .75; vector-effect: non-scaling-stroke; animation: correr-funil 1.4s linear infinite; pointer-events: none; }
@keyframes correr-funil { to { stroke-dashoffset: -34; } }
.etapas-funil { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.etapas-funil a { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 10px 6px; text-align: center; color: inherit; text-decoration: none; border-left: 1px dashed var(--linha); }
.etapas-funil a:first-child { border-left: 0; }
.etapas-funil a:hover { background: rgba(114, 173, 255, .1); }
.etapas-funil strong { font: 600 26px var(--titulo); font-variant-numeric: tabular-nums; }
.etapas-funil b { font-size: 12px; color: var(--ouro-claro); }
.etapas-funil small { color: var(--suave); font-size: 11px; }
.funil-onboarding, .tipos-de-contrato { margin-bottom: 18px; }
.degrau { display: grid; grid-template-columns: minmax(110px, 220px) 1fr auto; gap: 4px 12px; align-items: center; padding: 5px 0; color: inherit; text-decoration: none; font-size: 13px; }
.degrau .trilha { display: flex; justify-content: center; min-width: 0; }
.degrau .trilha.esquerda { justify-content: flex-start; }
.degrau .faixa { height: 18px; border-radius: 4px; min-width: 2px; }
.degrau b { font-variant-numeric: tabular-nums; }
.degrau small { grid-column: 2 / -1; color: var(--suave); }

/* Clientes em risco e desempenho das lojas. */
.total-risco { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; margin-bottom: 4px; }
.total-risco strong { font: 600 46px var(--titulo); line-height: 1; }
.total-risco.ruim strong { color: var(--vermelho); }
.quadro-risco > .botao { margin-top: 10px; display: inline-block; text-decoration: none; }
.lojas-em-desempenho { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 14px; }
.desempenho-da-loja.risco { border-color: rgba(255, 107, 107, .55); }
.desempenho-da-loja .variacao { font-variant-numeric: tabular-nums; }
.grafico-da-loja svg { display: block; width: 100%; height: 150px; }
.grafico-da-loja .grade { stroke: rgba(114, 173, 255, .12); vector-effect: non-scaling-stroke; }
.grafico-da-loja .base { stroke: var(--linha); vector-effect: non-scaling-stroke; }
.grafico-da-loja .linha-atual, .grafico-da-loja .linha-anterior { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.grafico-da-loja .linha-atual { stroke: #3f7dff; }
.grafico-da-loja .linha-anterior { stroke: #b98a1f; stroke-dasharray: 6 4; }
.grafico-da-loja .linha-atual.ponto { fill: #3f7dff; }
.grafico-da-loja .linha-anterior.ponto { fill: #b98a1f; }
.grafico-da-loja .faixa-do-dia { fill: transparent; }
.grafico-da-loja .faixa-do-dia:hover { fill: rgba(114, 173, 255, .1); }
.grafico-da-loja .eixo { display: flex; justify-content: space-between; color: var(--suave); }

/* Telas menores: a navegação vira uma barra flutuante no rodapé. */
@media (max-width: 1240px) {
  .topo { backdrop-filter: none; background: rgba(7, 18, 40, .95); }
  .navegacao { position: fixed; left: 10px; right: 10px; bottom: 10px; overflow-x: auto; scrollbar-width: none;padding: 7px; border: 1px solid var(--linha); border-radius: 18px; background: rgba(7, 18, 40, .97); box-shadow: 0 10px 34px rgba(0, 0, 0, .55); }
  .navegacao a { flex: 1 0 auto; flex-direction: column; gap: 3px; font-size: 11px; padding: 7px 11px; }
  .marcador { top: 7px; bottom: 7px; }
  main { padding-bottom: 110px; }
  #avisos { bottom: 100px; }
}
@media (max-width: 800px) {
  .destaque { grid-template-columns: 1fr; }
  .formulario { grid-template-columns: 1fr; }
  .atalho kbd, .atalho span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Jurídico: subcategorias e leitor de contrato */
.subabas { display: flex; gap: 8px; margin-bottom: 14px; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: rgba(255, 217, 120, .07); }
.nome-clicavel { background: none; border: 0; padding: 0; color: var(--texto); font: inherit; font-weight: 700; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: rgba(255, 217, 120, .6); text-underline-offset: 3px; }
dialog.leitor-de-contrato { width: min(1000px, 96vw); max-width: 96vw; }
dialog.leitor-de-contrato .leitor { display: grid; align-items: center; height: 70vh; margin: 10px 0; }
dialog.leitor-de-contrato iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }

/* ---------- vendas, metas e mapa de conquista ---------- */
.alerta-de-tarefas { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 14px; text-decoration: none; color: var(--texto); border-color: var(--vermelho); box-shadow: 0 0 22px rgba(255, 115, 133, .28); }
.alerta-de-tarefas b { color: var(--vermelho); font-size: 15px; }
.com-atraso { border-color: var(--vermelho); }
.progresso-das-metas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-bottom: 14px; }
.meta { margin-bottom: 14px; }
.meta:last-child { margin-bottom: 0; }
.linha-da-meta { display: flex; justify-content: space-between; gap: 10px; }
.linha-da-meta b { font-family: var(--titulo); color: var(--ouro-claro); font-variant-numeric: tabular-nums; }
.meta small { color: var(--suave); }
.trilho-da-meta { height: 12px; margin: 5px 0 4px; border-radius: 7px; overflow: hidden; background: rgba(63, 125, 255, .18); border: 1px solid rgba(114, 173, 255, .3); }
.trilho-da-meta div { height: 100%; border-radius: 7px; background: linear-gradient(90deg, #a8791f, var(--ouro-claro)); box-shadow: 0 0 12px var(--ouro); transform-origin: left; animation: carregar 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.meta.batida .linha-da-meta b { color: var(--verde); }
.meta-na-tabela { min-width: 170px; max-width: 230px; white-space: normal; }
.miudo { display: block; color: var(--suave); }
.miudo.atrasado { color: var(--vermelho); }
@keyframes carregar { from { transform: scaleX(0); } }
.bonus-do-mes { margin-bottom: 14px; border-color: var(--ouro); box-shadow: 0 0 24px rgba(220, 174, 69, .22); }
.bonus-do-mes .rotulo { letter-spacing: 2px; text-transform: uppercase; font-size: 11px; color: var(--azul); }
.bonus-do-mes strong { display: block; font: 600 34px var(--titulo); color: var(--ouro-claro); }
.texto-do-bonus { margin-top: 6px; white-space: pre-line; }
.alternar { display: flex; gap: 8px; align-items: center; margin-top: 22px; }
.alternar select { width: auto; }
.botao.leve.ativa { border-color: var(--ouro-claro); color: var(--ouro-claro); box-shadow: 0 0 14px rgba(220, 174, 69, .35); }
.funil-de-vendas .faixa { display: grid; grid-template-columns: 140px 1fr 44px; align-items: center; gap: 12px; padding: 5px 0; color: inherit; text-decoration: none; }
.funil-de-vendas .faixa b { text-align: right; font-family: var(--titulo); font-size: 16px; }
.trilho-da-faixa { display: flex; justify-content: center; height: 22px; border-radius: 5px; background: rgba(63, 125, 255, .09); }
.trilho-da-faixa div { height: 100%; min-width: 2px; border-radius: 5px; background: linear-gradient(90deg, var(--eletrico), var(--ouro-claro), var(--eletrico)); box-shadow: 0 0 12px rgba(63, 125, 255, .55); animation: carregar 1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: center; }
.funil-de-metas { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 14px; margin-bottom: 18px; }
.palco-das-metas, .ficha-da-meta { border: 1px solid rgba(114, 173, 255, .28); border-radius: 16px; padding: 18px; background: radial-gradient(500px 260px at 50% 0, rgba(63, 125, 255, .2), transparent 70%), var(--vidro); }
.palco-das-metas { background-image: linear-gradient(rgba(114, 173, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 173, 255, .06) 1px, transparent 1px); background-size: 28px 28px; }
.palco-das-metas svg { display: block; width: 100%; max-height: 640px; margin: 0 auto; overflow: visible; }
.camada { cursor: pointer; outline: none; }
.camada .contorno { fill: none; stroke: rgba(114, 173, 255, .75); stroke-width: 1.4; transition: stroke .2s, filter .2s; }
.camada:hover .contorno, .camada:focus-visible .contorno, .camada.escolhida .contorno { stroke: var(--ouro-claro); stroke-width: 2.4; filter: drop-shadow(0 0 7px var(--ouro)); }
.camada .enchimento { transform-box: fill-box; transform-origin: left; animation: carregar 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.camada.batida .contorno { stroke: var(--ouro-claro); filter: drop-shadow(0 0 5px var(--ouro)); }
.camada text { text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(4, 10, 23, .75); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.nome-da-camada { font: 600 14px var(--titulo); letter-spacing: 2px; }
.numero-da-camada { font: 600 15px var(--titulo); }
.ficha-da-meta { align-self: start; }
.ficha-da-meta small { color: var(--suave); display: block; }
.ficha-da-meta h3 { color: var(--ouro-claro); margin: 4px 0; }
.ficha-da-meta h4 { margin: 16px 0 4px; color: var(--azul); }
.percentual-da-meta { display: block; font: 600 46px var(--titulo); color: var(--ouro-claro); text-shadow: 0 0 18px rgba(220, 174, 69, .45); }
.ficha-da-meta .botao { margin-top: 12px; }
.placar { display: grid; gap: 6px; margin-bottom: 14px; }
.placar strong { font: 600 34px var(--titulo); color: var(--ouro-claro); }
.placar span { color: var(--suave); }
.territorio { cursor: pointer; outline: none; }
.territorio path { fill: rgba(30, 66, 140, .55); stroke: rgba(114, 173, 255, .8); stroke-width: 1; stroke-dasharray: 4 3; transition: fill .2s, filter .2s; }
.territorio.conquistado path { fill: #c99a34; stroke: var(--ouro-claro); stroke-dasharray: none; filter: drop-shadow(0 0 7px rgba(220, 174, 69, .75)); }
.territorio:hover path, .territorio:focus-visible path { fill: rgba(63, 125, 255, .8); }
.territorio.conquistado:hover path, .territorio.conquistado:focus-visible path { fill: var(--ouro-claro); }
.territorio.escolhido path { stroke: #fff; stroke-width: 2.4; stroke-dasharray: none; }
.sigla { font: 600 11px var(--titulo); text-anchor: middle; fill: #dce8ff; paint-order: stroke; stroke: rgba(4, 10, 23, .8); stroke-width: 3px; pointer-events: none; }
.sigla.conquistado { fill: var(--ouro-claro); }
.escolhas-de-estado { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.escolhas-de-estado.conquistados .botao { border-color: var(--ouro); color: var(--ouro-claro); }
@media (max-width: 800px) {
  .funil-de-metas { grid-template-columns: 1fr; }
  .funil-de-vendas .faixa { grid-template-columns: 100px 1fr 34px; }
  .nome-da-camada { font-size: 17px; }
  .numero-da-camada { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .trilho-da-meta div, .trilho-da-faixa div, .camada .enchimento { animation: none; } }

/* ---------- ajuda: "?" ao lado dos campos e caixas ---------- */
i.ajuda.ajuda { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; border: 1px solid rgba(255, 217, 120, .6); background: rgba(220, 174, 69, .12); color: var(--ouro-claro); font: 700 11px/1 "Segoe UI", system-ui, sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; text-shadow: none; -webkit-text-fill-color: currentColor; vertical-align: middle; cursor: help; flex: none; position: relative; user-select: none; }
i.ajuda.ajuda::after { content: ""; position: absolute; inset: -7px; } /* área de toque maior no celular */
i.ajuda.ajuda:hover, i.ajuda.ajuda:focus-visible { background: var(--ouro-claro); color: #06122a; outline: 0; }
.ajuda-janela { position: fixed; inset: auto; margin: 0; z-index: 60; width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 10px 12px; border: 1px solid rgba(255, 217, 120, .55); border-radius: 12px; background: #0a1730; color: var(--texto); font: 400 13px/1.45 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-transform: none; text-align: left; box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 18px rgba(63, 125, 255, .25); overflow: visible; pointer-events: none; }
/* ---------- jogo da conquista ---------- */
.arena { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 13px; margin-bottom: 18px; align-items: stretch; }
.arena .cartao, .ranking { display: grid; gap: 12px; align-content: start; }
.ranking { margin-bottom: 18px; }
.retrato { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ouro); background: rgba(63, 125, 255, .18); color: var(--ouro-claro); font: 700 15px var(--titulo); box-shadow: 0 0 14px rgba(220, 174, 69, .35); }
.retrato img { width: 100%; height: 100%; object-fit: cover; }
.retrato.grande { width: 96px; height: 96px; font-size: 30px; border-width: 3px; }
.nivel { display: inline-block; justify-self: start; padding: 2px 9px; border-radius: 20px; font: 700 11px var(--titulo); letter-spacing: 1px; text-transform: uppercase; color: #06122a; background: linear-gradient(120deg, var(--ouro-claro), var(--ouro)); }
.topo-do-perfil { display: flex; align-items: center; gap: 16px; }
.topo-do-perfil > div { display: grid; gap: 5px; min-width: 0; }
.topo-do-perfil strong { font: 600 24px var(--titulo); overflow-wrap: anywhere; }
.meta-de-5-anos { border-top: 1px solid var(--linha); padding-top: 10px; }
.meta-de-5-anos span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--azul); }
.meta-de-5-anos p { margin-top: 4px; overflow-wrap: anywhere; }
.quadro-do-bau { justify-items: stretch; text-align: center; }
.quadro-do-bau > .bau { width: 170px; justify-self: center; animation: chamar 2.8s ease-in-out infinite; }
.quadro-do-bau.aberto { border-color: rgba(255, 217, 120, .75); box-shadow: 0 0 34px rgba(220, 174, 69, .3); }
.premio { font: 600 36px var(--titulo); color: var(--ouro-claro); text-shadow: 0 0 18px rgba(220, 174, 69, .6); }
.bau .madeira { fill: #6b3f1d; stroke: #3a210e; stroke-width: 2; }
.bau .ferragem { fill: none; stroke: var(--ouro); stroke-width: 5; stroke-linejoin: round; }
.bau .fecho { fill: var(--ouro-claro); stroke: #7a561a; stroke-width: 2; }
.bau .moeda-desenhada { fill: var(--ouro-claro); stroke: #a87b22; stroke-width: 2; }
.bau.aberto .moedas-do-bau { animation: brilhar 1.6s ease-in-out infinite; }
.posicao { font: 700 22px var(--titulo); text-align: center; }
.quem { display: grid; gap: 3px; min-width: 0; }
.quem strong { overflow-wrap: anywhere; }
.hoje-batida { font-size: 11px; color: var(--ouro-claro); }
.barras { display: grid; gap: 6px; }
.pessoa-do-jogo { display: flex; align-items: center; gap: 10px; }
.festa { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 16px; display: grid; place-items: center; overflow: hidden; z-index: 70; background: rgba(2, 7, 18, .72); color: var(--texto); cursor: pointer; }
.cartaz { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; width: min(420px, 100%); padding: 26px 22px; text-align: center; border: 2px solid var(--ouro-claro); border-radius: 22px; background: linear-gradient(160deg, #14295a, #081329); box-shadow: 0 0 70px rgba(220, 174, 69, .55); animation: estourar .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.cartaz .trofeu { font-size: 46px; line-height: 1; }
.cartaz h2 { font: 700 27px var(--titulo); text-transform: uppercase; color: var(--ouro-claro); overflow-wrap: anywhere; }
.cartaz strong { font: 700 22px var(--titulo); }
.cartaz small { color: var(--suave); }
.chuva-de-moedas { position: absolute; inset: 0; pointer-events: none; }
.chuva-de-moedas i { position: absolute; top: -40px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 800; color: #8a6116; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--ouro-claro) 40%, #b9862a); box-shadow: 0 0 10px rgba(255, 217, 120, .7); animation: cair linear infinite; }
@keyframes cair { from { transform: translateY(0) rotateY(0); } to { transform: translateY(calc(100vh + 80px)) rotateY(900deg); } }
@keyframes estourar { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes entrar-no-ranking { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes chamar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes brilhar { 0%, 100% { filter: drop-shadow(0 0 3px var(--ouro)); } 50% { filter: drop-shadow(0 0 14px var(--ouro-claro)); } }
@media (prefers-reduced-motion: reduce) {
  .chuva-de-moedas { display: none; }
}
/* Primeiro acesso: criar a própria senha */
dialog.primeiro-acesso { width: min(480px, calc(100vw - 24px)); text-align: center; }
dialog.primeiro-acesso[open], dialog.primeiro-acesso form { display: grid; gap: 14px; }
dialog.primeiro-acesso .formulario { text-align: left; }
dialog.primeiro-acesso .acoes { justify-content: center; }

/* ---------- mapa de conquista: arena de game ---------- */
.game { position: relative; isolation: isolate; overflow: hidden; padding: clamp(12px, 2.6vw, 30px); border: 1px solid rgba(114, 173, 255, .35); border-radius: 26px; background: radial-gradient(900px 520px at 50% 120px, rgba(36, 122, 214, .55), transparent 70%), linear-gradient(180deg, #0c3d7e, #08264f 40%, #051533); box-shadow: inset 0 0 90px rgba(2, 10, 28, .7), 0 20px 60px rgba(0, 0, 0, .35); }
.enfeites { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.enfeites i { position: absolute; width: 18px; height: 18px; border: 3px solid rgba(114, 173, 255, .28); border-radius: 4px; transform: rotate(18deg); animation: flutuar 7s ease-in-out infinite; }
.enfeites i:nth-child(3n) { border-radius: 50%; width: 22px; height: 22px; border: 0; background: radial-gradient(circle at 35% 30%, #4fa8f0, #0e4a8c); opacity: .65; }
.enfeites i:nth-child(1) { left: 4%; top: 3%; }
.enfeites i:nth-child(2) { right: 6%; top: 6%; animation-delay: -2s; }
.enfeites i:nth-child(3) { left: 9%; top: 24%; animation-delay: -4s; }
.enfeites i:nth-child(4) { right: 3%; top: 21%; animation-delay: -1s; }
.enfeites i:nth-child(5) { left: 2%; top: 45%; animation-delay: -3s; }
.enfeites i:nth-child(6) { right: 8%; top: 41%; animation-delay: -5s; }
.enfeites i:nth-child(7) { left: 18%; top: 62%; animation-delay: -2.5s; }
.enfeites i:nth-child(8) { right: 15%; top: 66%; animation-delay: -6s; }
.enfeites i:nth-child(9) { left: 5%; top: 78%; animation-delay: -1.5s; }
.enfeites i:nth-child(10) { right: 4%; top: 84%; animation-delay: -3.5s; }
.enfeites i:nth-child(11) { left: 44%; top: 93%; animation-delay: -4.5s; }
.enfeites i:nth-child(12) { right: 30%; top: 2%; animation-delay: -.5s; }
@keyframes flutuar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.game > .cabecalho { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 10px; }
.game > .cabecalho h1 { font-size: clamp(26px, 4.6vw, 46px); text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(2, 12, 34, .6), 0 0 26px rgba(114, 173, 255, .55); }
.game > .cabecalho p { font-size: clamp(14px, 1.8vw, 19px); color: #e4efff; }
.game .cartao { border-color: rgba(114, 173, 255, .34); border-radius: 20px; background: linear-gradient(170deg, rgba(22, 66, 132, .82), rgba(7, 24, 56, .88)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 34px rgba(0, 0, 0, .3); clip-path: none; }
.game h3 { text-align: center; text-transform: uppercase; letter-spacing: 1.5px; }
.game > .nota, .game .ranking > .nota { text-align: center; color: #cfe0ff; }

.ranking { margin: 22px 0 30px; justify-items: stretch; }
.ranking h3 { justify-self: center; padding: 6px 22px; border: 1px solid rgba(255, 217, 120, .6); border-radius: 30px; background: linear-gradient(180deg, #123a76, #091f47); color: var(--ouro-claro); box-shadow: 0 0 22px rgba(63, 125, 255, .45); }
.podio, .demais { list-style: none; display: flex; justify-content: center; align-items: flex-end; }
.podio { position: relative; gap: clamp(4px, 2vw, 26px); padding-top: 26px; }
.demais { flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.brasao { --cor1: #3f7dff; --cor2: #17348a; position: relative; display: grid; justify-items: center; align-content: start; animation: subir-no-podio .7s cubic-bezier(.2, 1.2, .4, 1) var(--atraso, 0ms) both; }
.podio .brasao { width: min(30%, 190px); }
.podio .lugar-1 { order: 2; --cor1: #6a63d8; --cor2: #2b2a86; width: min(38%, 240px); }
.podio .lugar-2 { order: 1; --cor1: #3cc6c0; --cor2: #11707e; margin-bottom: -6px; }
.podio .lugar-3 { order: 3; --cor1: #ee6a4d; --cor2: #8e2b2c; margin-bottom: -6px; }
.demais .brasao { width: 138px; }
.podio .lugar-1::before { content: ""; position: absolute; left: 50%; top: -22px; translate: -50% 0; width: 128%; aspect-ratio: 1; border-radius: 50%; border: 5px solid rgba(110, 200, 255, .75); box-shadow: 0 0 36px rgba(80, 170, 255, .85), inset 0 0 36px rgba(80, 170, 255, .6); z-index: -1; animation: pulsar-anel 3.2s ease-in-out infinite; }
.brasao-corpo { position: relative; width: 100%; aspect-ratio: 120 / 170; container-type: inline-size; }
.escudo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: grayscale(var(--cinza, 1)) brightness(calc(1 - var(--cinza, 1) * .22)) drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); transition: filter 1s; }
.escudo .asas { fill: var(--cor2); stroke: #f0a93c; stroke-width: 1.5; }
.escudo .borda { fill: #f2b347; stroke: #8b5a14; stroke-width: 1.5; stroke-linejoin: round; }
.escudo .fundo { fill: var(--cor1); stroke: var(--cor2); stroke-width: 5; }
.escudo .brilho { fill: #fff; opacity: .1; }
.escudo .joia { fill: #ffd25e; stroke: #b3721a; stroke-width: 2; }
.escudo .faixa { fill: #ffd25e; }
.brasao.completo .escudo { filter: drop-shadow(0 0 12px rgba(255, 217, 120, .95)) drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.brasao-dentro { position: absolute; inset: 17% 18% 17%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .65); }
.foto-do-brasao { position: relative; display: block; margin-bottom: 2cqw; }
.brasao-dentro .retrato { width: 42cqw; height: 42cqw; font-size: 15cqw; border: 2px solid #fff; background: #10244b; }
.colocacao { position: absolute; right: -5cqw; bottom: -2cqw; display: grid; place-items: center; width: 17cqw; height: 17cqw; min-width: 17px; min-height: 17px; border-radius: 5px; border: 1px solid #8b5a14; background: linear-gradient(160deg, #ffe08a, #e09a2c); color: #4a2c05; font: 700 max(10px, 9cqw) var(--titulo); text-shadow: none; }
.brasao-dentro strong { max-width: 100%; font: 700 max(11px, 10cqw) var(--titulo); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pontuacao { font-size: max(10px, 7.4cqw); }
.brasao-dentro .nivel { justify-self: center; padding: 1px 6px; font-size: max(9px, 6.4cqw); text-shadow: none; }
.brasao-dentro small { font-size: max(9px, 6.4cqw); color: var(--ouro-claro); }
.brasao.sou-eu .brasao-dentro strong { color: var(--ouro-claro); }
.plataforma { width: 112%; height: 30px; margin-top: 8px; border-radius: 50%; background: radial-gradient(ellipse at 50% 32%, #1d77b8, #0c3f73 55%, #061f42 72%); border-bottom: 6px solid #04152f; box-shadow: 0 0 0 2px rgba(110, 200, 255, .55), 0 0 22px rgba(80, 170, 255, .6); }
.demais .plataforma { height: 18px; border-bottom-width: 4px; }
.sob-o-brasao { display: grid; justify-items: center; gap: 4px; margin-top: 12px; text-align: center; }
.voce { padding: 1px 10px; border-radius: 20px; background: var(--ouro-claro); color: #06122a; font: 700 11px var(--titulo); text-transform: uppercase; }
.hoje { font-size: 11px; color: #bcd3fb; }

.missao, .quadro-do-bau { text-align: center; }
.missao > .bau { width: 190px; justify-self: center; }
.missao.destrancada { border-color: var(--ouro-claro) !important; box-shadow: 0 0 40px rgba(255, 200, 80, .45) !important; }
.missao.destrancada > .bau { animation: chamar 1.4s ease-in-out infinite; filter: drop-shadow(0 0 14px var(--ouro-claro)); }
.missao .meta { text-align: left; }
.abrir-bau { justify-self: center; width: min(100%, 300px); padding: 15px 18px; border: 0; border-radius: 40px; border-bottom: 5px solid #9a5f0e; background: linear-gradient(180deg, #ffe58f, #f2a92c); color: #3d2403; font: 700 20px var(--titulo); letter-spacing: 1.5px; cursor: pointer; box-shadow: 0 0 26px rgba(255, 196, 70, .65); animation: convidar 1.6s ease-in-out infinite; }
.abrir-bau:hover { filter: brightness(1.08); }
.abrir-bau:active { translate: 0 3px; border-bottom-width: 2px; }
.abrir-bau:disabled { cursor: not-allowed; animation: none; border-bottom-color: #25344f; background: linear-gradient(180deg, #6b7b99, #45546f); color: #dbe4f5; box-shadow: none; }
.meus-pontos { font: 700 22px var(--titulo); color: var(--ouro-claro); }
.etapas-da-missao { list-style: none; display: grid; gap: 7px; text-align: left; }
.etapas-da-missao li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 12px; background: rgba(3, 14, 36, .6); border: 1px solid var(--linha); }
.etapas-da-missao li div { display: grid; min-width: 0; }
.etapas-da-missao li span { font-size: 11px; text-align: right; color: #bcd3fb; }
.etapas-da-missao li.atrasada { border-color: rgba(255, 115, 133, .65); }
.etapas-da-missao li.atrasada span { color: var(--vermelho); }
@keyframes subir-no-podio { from { transform: translateY(40px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulsar-anel { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes convidar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (max-width: 620px) {
  .podio .lugar-1 { width: 40%; }
  .podio .brasao { width: 29%; }
  .demais .brasao { width: 44%; }
  .plataforma { width: 104%; height: 20px; }
  .sob-o-brasao .botao { font-size: 11px; padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) { .enfeites i, .podio .lugar-1::before, .abrir-bau, .missao.destrancada > .bau { animation: none !important; } }
.game > .cabecalho h1::before { display: none; }
.game > .cabecalho .botao { border-color: rgba(255, 217, 120, .55); color: var(--ouro-claro); }
.brasao-dentro > * { flex: none; }
.game > .cabecalho > div:first-child { width: 100%; }
.game > .cabecalho h1 { justify-content: center; text-align: center; }.game > .cabecalho p { margin-inline: auto; }
@media (max-width: 620px) { .brasao-dentro { inset: 16% 18% 16%; gap: 1cqw; } .brasao-dentro .retrato { width: 36cqw; height: 36cqw; } }

/* ---------- clientes: rede de células ---------- */
.quadro-da-rede { position: relative; overflow: hidden; padding: 16px 8px 12px; border: 1px solid var(--linha); border-radius: 22px; background: radial-gradient(700px 420px at 50% 0, rgba(63, 125, 255, .24), transparent 70%), linear-gradient(180deg, rgba(9, 28, 62, .9), rgba(4, 12, 28, .92)); }
.rede-de-celulas { position: relative; min-height: 150px; perspective: 800px; }
.ligacoes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ligacoes .fio { fill: none; stroke: rgba(114, 173, 255, .22); stroke-width: 1.5; stroke-dasharray: 3 7; animation: correr 9s linear infinite; }
.ligacoes .vinculo { fill: none; stroke: var(--ouro-claro); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 6; filter: drop-shadow(0 0 5px var(--ouro)); animation: correr 2.4s linear infinite; }
@keyframes correr { to { stroke-dashoffset: -80; } }
.celula { --luz: #7fe9ff; --meio: #2f7fe0; --fundo-da-celula: #0b2a66; position: absolute; translate: -50% -42px; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--texto); font: inherit; cursor: pointer; transform-style: preserve-3d; transition: transform .25s; }
.celula.atencao { --luz: #ffe9a8; --meio: #e6a52c; --fundo-da-celula: #6b4208; }
.celula.bloqueada { --luz: #ffc0c9; --meio: #e0485f; --fundo-da-celula: #5e0f1f; }
.celula.cancelada { --luz: #dfe5ef; --meio: #6f7d96; --fundo-da-celula: #262f42; }
.celula:hover, .celula:focus-visible { transform: translateZ(60px) rotateX(8deg); z-index: 2; outline: 0; }
.esfera { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff 0, var(--luz) 12%, var(--meio) 46%, var(--fundo-da-celula) 82%); box-shadow: inset -8px -12px 22px rgba(0, 0, 0, .5), inset 6px 8px 16px rgba(255, 255, 255, .22), 0 14px 20px rgba(0, 0, 0, .45), 0 0 24px color-mix(in srgb, var(--meio) 70%, transparent); animation: boiar 5.6s ease-in-out var(--atraso, 0s) infinite; }
.esfera::before { content: ""; position: absolute; inset: -9px; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; border: 2px solid color-mix(in srgb, var(--luz) 55%, transparent); background: color-mix(in srgb, var(--meio) 12%, transparent); animation: membrana 7s linear var(--atraso, 0s) infinite; }
.esfera::after { content: ""; position: absolute; left: 20%; top: 11%; width: 30%; height: 18%; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(3px); rotate: -28deg; }
.esfera i { font: 700 22px var(--titulo); font-style: normal; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.esfera b { position: absolute; right: -10px; bottom: -4px; z-index: 1; padding: 1px 7px; border-radius: 20px; background: var(--ouro-claro); color: #06122a; font: 700 11px var(--titulo); }
.celula.cancelada .esfera, .celula.cancelada .esfera::before { animation: none; }
.celula strong { max-width: 100%; margin-top: 11px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; font: 600 13px var(--titulo); text-shadow: 0 1px 5px #000; overflow-wrap: anywhere; }
.celula small { font-size: 10px; color: var(--luz); text-shadow: 0 1px 4px #000; }
.celula:hover .esfera, .celula:focus-visible .esfera { box-shadow: inset -8px -12px 22px rgba(0, 0, 0, .45), 0 20px 26px rgba(0, 0, 0, .5), 0 0 38px var(--luz); }
@keyframes boiar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes membrana { to { rotate: 360deg; } }
.legenda-da-rede { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; font-size: 11px; color: var(--suave); }
.legenda-da-rede span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; background: #2f7fe0; }
.legenda-da-rede .atencao::before { background: #e6a52c; }
.legenda-da-rede .bloqueada::before { background: #e0485f; }
.legenda-da-rede .cancelada::before { background: #6f7d96; }
.legenda-da-rede .vinculo::before { width: 18px; height: 3px; border-radius: 3px; vertical-align: middle; background: var(--ouro-claro); }
dialog.cartao-da-loja[open] { display: grid; gap: 12px; }
.etiquetas-da-loja { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .esfera { width: 64px; height: 64px; } .esfera i { font-size: 17px; } .celula { translate: -50% -32px; } .celula strong { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .esfera, .esfera::before, .ligacoes path { animation: none !important; } }
.esfera img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 50%; object-fit: cover; background: #fff; }
.esfera.com-logo::after { z-index: 1; opacity: .75; }
.celula.cancelada .esfera img { filter: grayscale(1); }
.rede-de-celulas.densa .esfera { width: 68px; height: 68px; }
.rede-de-celulas.densa .esfera img { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
.rede-de-celulas.densa .esfera i { font-size: 18px; }
.rede-de-celulas.densa .celula { translate: -50% -34px; }
.rede-de-celulas.densa .celula strong { font-size: 11px; }
.topo-da-loja { display: flex; align-items: center; gap: 14px; }
.topo-da-loja img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ouro); background: #fff; }
@media (max-width: 560px) { .rede-de-celulas.densa .esfera { width: 64px; height: 64px; } }
.rede-de-nichos { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 18px; padding: 22px 6px 10px; perspective: 800px; }
.rede-de-nichos .celula { position: relative; translate: none; width: 140px; }
.rede-de-nichos .esfera { width: 104px; height: 104px; }
.rede-de-nichos .esfera i { font-size: 42px; }
.topo-do-nicho { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 12px; }
.territorio.meu path, .territorio.conquistado.meu path { fill: #1f9d74; stroke: #b8ffe4; stroke-dasharray: none; filter: drop-shadow(0 0 8px rgba(56, 214, 160, .8)); }
.legenda-do-mapa { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.legenda-do-mapa span::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: #c99a34; }
.legenda-do-mapa span.meu::before { background: #1f9d74; }
.resumo-do-meu-mapa, .primeiro-no-estado, .minhas-no-estado { font-weight: 600; }
@media (max-width: 560px) { .rede-de-nichos .celula { width: 104px; } .rede-de-nichos .esfera { width: 78px; height: 78px; } .rede-de-nichos .esfera i { font-size: 30px; } }
