:root {
  --fundo: #f5f7fa; --cartao: #fff; --texto: #1c2430; --suave: #5f6b7a; --linha: #e3e8ee;
  --azul: #0472a6; --azul-claro: #d9edf6; --ambar: #c77700; --ambar-claro: #fdf0d9; --verde: #1f8a4c; --verde-claro: #dff3e7; --cinza-claro: #eceff3;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 15px/1.45 -apple-system, "Segoe UI", system-ui, sans-serif; }
.topo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 24px; background: var(--cartao); border-bottom: 1px solid var(--linha); }
.marca { font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--azul); }
.marca small { font-weight: 500; color: var(--suave); font-size: 13px; margin-left: 8px; letter-spacing: 0; }
.espaco { flex: 1; }
.atualizado { color: var(--suave); font-size: 13px; }
.grupo { display: inline-flex; border: 1px solid var(--linha); border-radius: 8px; overflow: hidden; }
.grupo button { border: 0; background: var(--cartao); color: var(--texto); padding: 7px 14px; font: inherit; cursor: pointer; border-right: 1px solid var(--linha); }
.grupo button:last-child { border-right: 0; }
.grupo button[aria-pressed="true"] { background: var(--azul); color: #fff; }
a.sair { color: var(--suave); font-size: 13px; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 48px; }
.filtros { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: 12px; padding: 14px 16px; }
.cartao .rotulo { color: var(--suave); font-size: 13px; }
.cartao .valor { font-size: 26px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cartao .nota { color: var(--suave); font-size: 12px; margin-top: 2px; }
.painel { background: var(--cartao); border: 1px solid var(--linha); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.painel h2 { margin: 0 0 12px; font-size: 16px; }
.duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
.duas .painel { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--linha); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
th { color: var(--suave); font-weight: 600; font-size: 12px; }
.rolagem { overflow-x: auto; }
.etiqueta { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.e-ativa { background: var(--verde-claro); color: var(--verde); }
.e-pausada, .e-encerrada { background: var(--cinza-claro); color: var(--suave); }
.alerta { color: var(--ambar); font-weight: 600; }
.barra { display: grid; grid-template-columns: 150px 1fr 130px; gap: 10px; align-items: center; margin: 7px 0; font-size: 14px; }
.barra .trilho { background: var(--cinza-claro); border-radius: 6px; height: 14px; }
.barra .preench { background: var(--azul); height: 14px; border-radius: 6px; }
.barra .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--suave); }
.rodape { color: var(--suave); font-size: 13px; margin-top: 8px; }
svg text { fill: var(--suave); font-size: 11px; }
.vazio { color: var(--suave); padding: 24px; text-align: center; }
/* login */
.login { max-width: 360px; margin: 12vh auto; background: var(--cartao); border: 1px solid var(--linha); border-radius: 14px; padding: 28px; }
.login h1 { margin: 0 0 4px; color: var(--azul); }
.login p { color: var(--suave); margin: 0 0 18px; }
.login label { display: block; font-size: 13px; color: var(--suave); margin: 12px 0 4px; }
.login input { width: 100%; padding: 10px; border: 1px solid var(--linha); border-radius: 8px; background: var(--fundo); color: var(--texto); font: inherit; }
.login button { width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 8px; background: var(--azul); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.erro { background: var(--ambar-claro); color: var(--ambar); padding: 8px 10px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.g-linha { stroke: var(--linha); stroke-width: 1; }
/* layout com menu lateral (inspirado no painel da Serrota) */
body.com-lateral { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.lateral { background: #0b2a3a; color: #cfe3ee; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.lateral .marca { color: #fff; padding: 0 10px 18px; }
.lateral .marca small { display: inline; margin-left: 6px; color: #5fc1ea; font-size: 11px; letter-spacing: 1.5px; font-weight: 700; }
.lateral a { color: #cfe3ee; text-decoration: none; padding: 9px 12px; border-radius: 8px; margin-bottom: 2px; }
.lateral a[aria-current="page"] { background: #0472a6; color: #fff; font-weight: 600; }
.lateral a.sair { color: #8fb0c2; font-size: 13px; }
.conteudo { min-width: 0; }
.topo h1 { margin: 0; font-size: 22px; }
/* linha do tempo */
.passo { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.passo:last-child { border-bottom: 0; }
.passo .quando { color: var(--suave); font-size: 13px; font-variant-numeric: tabular-nums; }
.passo h3 { margin: 0 0 3px; font-size: 15px; }
.passo p { margin: 0; color: var(--suave); }
.e-feito { background: var(--verde-claro); color: var(--verde); }
.e-andamento { background: var(--azul-claro); color: var(--azul); }
.e-aguardando { background: var(--ambar-claro); color: var(--ambar); }
.e-planejado { background: var(--cinza-claro); color: var(--suave); }
.cat { color: var(--suave); font-size: 12px; margin-left: 8px; }

/* ---------- efeito glass ---------- */
body {
  background:
    radial-gradient(900px 500px at 8% -5%, rgba(4, 114, 166, .38), transparent 60%),
    radial-gradient(700px 480px at 95% 8%, rgba(95, 193, 234, .42), transparent 60%),
    radial-gradient(800px 600px at 60% 105%, rgba(255, 176, 77, .30), transparent 60%),
    #eef3f8;
  background-attachment: fixed;
}
.cartao, .painel, .login, .grupo {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 8px 28px rgba(11, 42, 58, .08), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.grupo button { background: transparent; border-right-color: rgba(11, 42, 58, .08); }
.grupo button[aria-pressed="true"] { background: var(--azul); }
.topo { background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .7); }
.lateral { background: rgba(11, 42, 58, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
th, td { border-bottom-color: rgba(11, 42, 58, .08); }
.barra .trilho { background: rgba(11, 42, 58, .07); }
.login input { background: rgba(255, 255, 255, .7); }

/* ---------- identidade 3DERAS: Inter + Mono (as mesmas do site novo) ---------- */
@font-face { font-family: Inter; src: url(/fonts/Inter.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Mono; src: url(/fonts/Mono.ttf) format("truetype"); font-weight: 100 800; font-display: swap; }
:root { --mono: Mono, ui-monospace, SFMono-Regular, Menlo, monospace; --sans: Inter, -apple-system, "Segoe UI", system-ui, sans-serif; }
body { font-family: var(--sans); font-feature-settings: "tnum" 1, "cv11" 1; }
.cartao .rotulo, th, .atualizado, .passo .quando, .cat, .etiqueta, .rodape, .barra .num, svg text { font-family: var(--mono); }
.cartao .rotulo { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cartao .valor { font-weight: 800; letter-spacing: -.02em; }
.topo h1 { font-weight: 800; letter-spacing: -.02em; }
.painel h2 { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; }

/* logo + marca */
.lateral .marca { display: flex; align-items: center; gap: 10px; }
.lateral .marca img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.lateral .marca span { font-weight: 800; letter-spacing: .02em; line-height: 1.05; }
.lateral .marca small { display: block; margin: 2px 0 0; font-family: var(--mono); }
.login .logo { width: 64px; height: 64px; border-radius: 50%; display: block; margin-bottom: 12px; }

/* nomes das campanhas: sempre em uma linha, fonte menor */
td.nome { white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: -.01em; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }

/* ícones */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-wrap { display: inline-flex; }
.lateral a { display: flex; align-items: center; gap: 10px; transition: background .2s, transform .2s; }
.lateral a:hover { background: rgba(255, 255, 255, .08); transform: translateX(3px); }
.lateral a[aria-current="page"]:hover { background: #0472a6; }
.cartao .topo-cartao { display: flex; align-items: center; justify-content: space-between; }
.cartao .ico-wrap { width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: var(--azul-claro); color: var(--azul); transition: transform .3s, background .3s, color .3s; }
.cartao .ico { width: 16px; height: 16px; }
.painel h2 .ico { color: var(--azul); }
.etiqueta { display: inline-flex; align-items: center; gap: 5px; }
.etiqueta .ico { width: 12px; height: 12px; }

/* ---------- movimento ---------- */
.cartao, .painel { transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, border-color .28s; }
.cartao:hover, .painel:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 42, 58, .14), inset 0 1px 0 rgba(255, 255, 255, .8); border-color: rgba(4, 114, 166, .35); }
.cartao:hover .ico-wrap { transform: scale(1.12) rotate(-6deg); background: var(--azul); color: #fff; }
.grupo button { transition: background .2s, color .2s; }
.grupo button:hover { background: rgba(4, 114, 166, .1); }
.grupo button[aria-pressed="true"]:hover { background: var(--azul); }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(4, 114, 166, .07); }
.b-azul { transition: opacity .2s, fill .2s; }
.barra:hover .preench { background: #0a8fd0; }
.preench { transition: background .2s; }

@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cresce { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cresceX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.b-azul { transform-box: fill-box; transform-origin: bottom; }
.preench { transform-origin: left; }
.revela:not(.visivel) { opacity: 0; transform: translateY(18px); }
.revela.visivel.painel { animation: sobe .6s cubic-bezier(.2, .8, .2, 1) both; }
.revela:not(.visivel) .b-azul { transform: scaleY(0); }
.revela.visivel .b-azul { animation: cresce .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 22ms + 150ms); }
.revela:not(.visivel) .preench { transform: scaleX(0); }
.revela.visivel .preench { animation: cresceX .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 200ms; }
.cartoes.revela.visivel .cartao { animation: sobe .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.cartoes.revela:not(.visivel) { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revela:not(.visivel) { opacity: 1; transform: none; }
  .revela:not(.visivel) .b-azul, .revela:not(.visivel) .preench { transform: none; }
}

/* ---------- subabas, campanhas com nome simples ---------- */
td.nome { font-family: var(--sans); font-size: inherit; letter-spacing: 0; max-width: none; overflow: visible; text-overflow: clip; }
table { font-size: 14px; }
td { font-family: var(--sans); font-size: 14px; }
td.tecnico { color: var(--suave); text-align: left; font-size: 14px; }
th:nth-child(2).tec, td.tecnico { text-align: left; }
.camp { display: flex; align-items: center; gap: 10px; text-align: left; }
.camp-titulo { font-size: 14px; font-weight: 600; white-space: nowrap; }
.camp-sub { font-size: 12.5px; color: var(--suave); white-space: nowrap; }
.canal { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.canal .ico { width: 17px; height: 17px; }
.c-whatsapp { background: #dff6e8; color: #128c4a; }
.c-instagram { background: #fde6ef; color: #c13584; }
.c-mega { background: var(--azul-claro); color: var(--azul); }

/* menu com submenu */
.lateral .sub { margin: 0 0 6px 14px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; }
.lateral .sub a { font-size: 13.5px; padding: 7px 10px; color: #a9c5d4; }
.lateral .sub .ico { width: 15px; height: 15px; }

/* topo com voltar */
.voltar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; margin-right: 12px; color: var(--azul); background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8); transition: transform .2s, background .2s; }
.voltar:hover { transform: translateX(-3px); background: #fff; }
.voltar[hidden] { display: none; }

/* cartões clicáveis */
a.cartao { display: block; color: inherit; text-decoration: none; }
a.cartao .ver-mais { font-family: var(--mono); font-size: 11px; color: var(--azul); margin-top: 8px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
a.cartao:hover .ver-mais { opacity: 1; transform: none; }

/* explicação em linguagem simples */
.dica { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-left: 4px solid var(--suave); }
.dica p { margin: 0; font-size: 15.5px; }
.dica.bom { border-left-color: var(--verde); }
.dica.ruim { border-left-color: var(--ambar); }
.dica.neutro { border-left-color: var(--azul); }
.dica .ico-wrap { color: var(--azul); }
.var.bom { color: var(--verde); font-weight: 700; }
.var.ruim { color: var(--ambar); font-weight: 700; }
.var.neutro { color: var(--suave); }
.cartao .valor.var { font-weight: 800; }

/* gráfico de linhas */
.legenda { display: flex; gap: 18px; margin-bottom: 8px; font-size: 13px; color: var(--suave); }
.leg::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; background: currentColor; }
.leg.l-azul { color: var(--azul); }
.leg.l-cinza { color: #9aa6b4; }
@keyframes desenha { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.revela:not(.visivel) .revela.visivel .revela:not(.visivel) .revela.visivel 
/* uma fonte só nos textos; Mono fica apenas nos rótulos pequenos em maiúsculas */
.atualizado, .passo .quando, .cat, .etiqueta, .rodape, .barra .num, svg text { font-family: var(--sans); }
.barra .num { font-size: 14px; color: var(--texto); }
.rodape { font-size: 13px; }


/* ---------- gráficos refinados ---------- */
svg [hidden] { display: none; }
.gs-topo { stop-color: #3aa5d6; } .gs-base { stop-color: #0472a6; }
.ga-topo { stop-color: #0472a6; stop-opacity: .26; } .ga-base { stop-color: #0472a6; stop-opacity: 0; }
.b-azul.b-parcial { opacity: .55; }
.b-azul.ativo { filter: brightness(1.12); }
.vlabel { fill: var(--texto) !important; font-size: 11.5px; font-weight: 700; }
.g-linha { stroke: rgba(11, 42, 58, .08); stroke-width: 1; }
svg text { font-size: 11px; fill: var(--suave); }
path.linha { fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
path.linha.l-azul { stroke: #0472a6; }
path.linha.l-cinza { stroke: #b7c2cf; stroke-width: 1.5; }
path.area { stroke: none; }
circle.fim.l-azul { fill: #0472a6; stroke: #fff; stroke-width: 2.5; }
.guia { stroke: rgba(11, 42, 58, .25); stroke-width: 1; }
.hover-ponto { stroke: #fff; stroke-width: 2; }
.hover-ponto.l-azul { fill: #0472a6; } .hover-ponto.l-cinza { fill: #9aa6b4; }
.hit { cursor: crosshair; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.revela:not(.visivel) .area, .revela:not(.visivel) circle.fim { opacity: 0; }
.revela.visivel .area { animation: aparece 1.2s .5s both; }
.revela.visivel circle.fim { animation: aparece .4s 1.3s both; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: rgba(11, 42, 58, .94); color: #fff; padding: 8px 11px; border-radius: 9px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.tip[hidden] { display: none; }
.tp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.tp.l-azul { background: #5fc1ea; } .tp.l-cinza { background: #b7c2cf; }

/* donut (pizza) */
.donut { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; }
.donut svg { width: 100%; max-width: 190px; }
.giro { transform-box: view-box; transform-origin: 50% 50%; }
.revela:not(.visivel) .giro { opacity: 0; }
@keyframes giro { from { opacity: 0; transform: rotate(-70deg) scale(.88); } to { opacity: 1; transform: none; } }
.revela.visivel .giro { animation: giro 1s cubic-bezier(.2, .8, .2, 1) both; }
.fatia { cursor: pointer; transition: opacity .2s, stroke-width .2s; }
.fatia:hover { stroke-width: 26; }
.fatia.apagada { opacity: .28; }
.d-valor { font-size: 17px; font-weight: 800; fill: var(--texto) !important; }
.d-rotulo { font-size: 10.5px; }
.leg-donut { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.leg-donut li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; transition: background .2s; cursor: default; font-size: 14px; }
.leg-donut li.ativo, .leg-donut li:hover { background: rgba(4, 114, 166, .08); }
.bolinha { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.leg-nome { flex: 1; font-weight: 600; min-width: 0; }
.leg-nome small { display: block; font-weight: 400; color: var(--suave); font-size: 12.5px; }
.leg-val { color: var(--suave); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .donut { grid-template-columns: 1fr; justify-items: center; } .leg-donut { width: 100%; } }

/* miniaturas */
.thumb-wrap { position: relative; width: 44px; height: 44px; flex: none; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; background: var(--azul-claro); }
.canal.selo { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; }
.canal.selo .ico { width: 11px; height: 11px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 14px; margin-bottom: 16px; }
.camp-card { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255, 255, 255, .75); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(11, 42, 58, .08); transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s; animation: sobe .5s both; animation-delay: calc(var(--i, 0) * 60ms); }
.camp-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(11, 42, 58, .16); }
.foto { aspect-ratio: 1; position: relative; background: linear-gradient(135deg, #d9edf6, #eef3f8); overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.camp-card:hover .foto img { transform: scale(1.05); }
.foto-status { position: absolute; top: 10px; left: 10px; }
.camp-info { display: flex; gap: 10px; align-items: center; padding: 12px 14px 4px; }
.camp-nums { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px 14px; font-weight: 700; }
.camp-nums small { display: block; font-weight: 400; color: var(--suave); font-size: 12px; }

/* abas de números (úteis no celular) */
.abas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); color: var(--texto); text-decoration: none; font-size: 13.5px; transition: background .2s, color .2s, transform .2s; }
.abas a:hover { transform: translateY(-2px); }
.abas a.ativa { background: var(--azul); color: #fff; border-color: var(--azul); }

/* ---------- menu responsivo ---------- */
.menu-botao { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; margin-right: 10px; border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .65); color: var(--azul); cursor: pointer; }
.menu-fundo { display: none; }
@media (max-width: 1100px) {
  body.com-lateral { grid-template-columns: 1fr; }
  .lateral { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; height: auto; transform: translateX(-104%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); z-index: 60; overflow-y: auto; }
  .menu-aberto .lateral { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .menu-fundo { display: block; position: fixed; inset: 0; background: rgba(11, 42, 58, .45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 55; }
  .menu-aberto .menu-fundo { opacity: 1; pointer-events: auto; }
  .menu-botao { display: inline-flex; }
  .topo { padding: 12px 16px; position: sticky; top: 0; z-index: 40; }
  .topo h1 { font-size: 19px; }
  .atualizado { display: none; }
  main { padding: 16px 14px 40px; }
  .cartoes { grid-template-columns: repeat(2, 1fr); }
  .cartao .valor { font-size: 22px; }
}

/* donut se adapta à largura do próprio bloco */
.painel { container-type: inline-size; }
@container (max-width: 520px) {
  .donut { grid-template-columns: 1fr; justify-items: center; }
  .leg-donut { width: 100%; }
}

/* ajustes de celular */
.conteudo { min-width: 0; overflow-x: clip; }
.grupo { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.grupo::-webkit-scrollbar { display: none; }
.grupo button { white-space: nowrap; }
.topo h1 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .topo h1 { font-size: 17px; }
  .cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartao { padding: 12px; min-width: 0; }
  .cartao .rotulo { font-size: 10.5px; }
  .cartao .valor { font-size: 20px; }
  .filtros { gap: 8px; }
  .dica p { font-size: 14.5px; }
}

/* valores em dinheiro nunca quebram: "R$" fica junto do número */
.cartao .valor, .cartao .nota, td, .leg-val, .barra .num, .camp-nums span, .tip b, .d-valor { white-space: nowrap; }
.cartao .valor { overflow: hidden; text-overflow: clip; }


/* ---------- correções de texto dentro das caixas ---------- */
.cartao { min-width: 0; overflow: hidden; }
.cartao .valor { white-space: nowrap; }
.cartao .nota, .cartao .rotulo { white-space: normal; overflow-wrap: anywhere; }
.camp-nums span, .camp-nums small { white-space: normal; }
.leg-val { white-space: normal; text-align: right; }
.leg-nome { overflow-wrap: anywhere; }
.dica p, .rodape, .vazio { overflow-wrap: anywhere; }

/* ---------- subabas do menu: só abertas quando estão em uso ---------- */
.lateral .sub { max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; margin-bottom: 0; transition: max-height .35s ease, opacity .25s ease, margin .3s ease, visibility 0s .35s; }
.lateral .sub.aberto { max-height: 240px; opacity: 1; visibility: visible; margin-bottom: 6px; transition-delay: 0s; }

/* nomes nos cards da galeria podem quebrar em duas linhas, nunca sair da caixa */
.camp-card .camp-titulo, .camp-card .camp-sub { white-space: normal; overflow-wrap: anywhere; }
.camp-info > div { min-width: 0; }
