/* Painel Theologales. Mesma estrutura do painel do Padre Pio, com a identidade da Theologales:
   fundo bege, cartões claros, azul-noite no texto e amarelo nos destaques. Fontes: Inter e Lora. */

:root {
  color-scheme: light;
  --fundo: #edece2; --cartao: #fbfaf6; --poco: #f4f2ea; --trilho: #e4e1d4;
  --borda: rgba(15, 19, 40, .1); --linha: rgba(15, 19, 40, .07);
  --texto: #2a2e40; --forte: #0f1328; --texto-2: #4f5468; --texto-3: #6b6f80;
  --amarelo: #ffd632; --amarelo-escuro: #f2c40f; --amarelo-suave: #fff6cc; --amarelo-texto: #7a5a00;
  --roxo: #5b3f8c; --verde: #1f9d55; --verde-fundo: #ddf3e5; --verde-texto: #14683a;
  --erro-fundo: #fbe3e1; --erro-texto: #9b1218;
  --sombra: 0 1px 2px rgba(15, 19, 40, .05);
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Lora, Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 500 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--forte); text-decoration-color: var(--amarelo); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
code { font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--forte); word-break: break-all; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; border-radius: 6px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { display: block; flex: none; width: 18px; height: 18px; }

/* ---------- barra de cima ---------- */
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px 28px; padding: 10px 40px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--fundo); border-bottom: 1px solid var(--borda); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: auto; height: 34px; }
.marca-nome { font: 600 21px/1 var(--serif); color: var(--forte); letter-spacing: -.01em; }
.abas { display: flex; gap: 4px; flex: 1 1 auto; }
.abas a { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 10px; color: var(--texto-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .1s ease-out, background-color .15s ease; }
.abas a .ic { display: none; }
.abas a:hover { color: var(--forte); }
.abas a:active { transform: scale(.97); }
.abas a[aria-current] { background: var(--cartao); color: var(--forte); font-weight: 600; box-shadow: inset 0 -2px 0 var(--amarelo); }
.conta { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.conta form { display: flex; }
.acao { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--texto-2); font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer; }
.acao .ic { width: 20px; height: 20px; }
.acao:hover { background: var(--cartao); color: var(--forte); }
.vivo-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--texto-3); }
.ao-vivo .vivo-ponto { background: var(--verde); box-shadow: 0 0 0 3px rgba(31, 157, 85, .18); }

/* ---------- página ---------- */
.pagina { max-width: 1240px; margin: 0 auto; padding: 36px 40px 56px; display: flex; flex-direction: column; gap: 24px; }
.cabecalho { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.sobre { margin-bottom: 8px; color: var(--texto-3); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.titulo { font: 600 40px/1.1 var(--serif); letter-spacing: -.015em; color: var(--forte); }
.apoio { margin-top: 8px; color: var(--texto-3); }
.apoio b { color: var(--forte); font-weight: 600; }
.periodos { display: flex; gap: 2px; padding: 3px; background: var(--trilho); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.periodos a { display: flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--texto-2); text-decoration: none; white-space: nowrap; }
.periodos a[aria-current] { background: var(--cartao); color: var(--forte); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 19, 40, .12); }

.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 20px; box-shadow: var(--sombra); }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.num { padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.num-rot { font-size: 13px; color: var(--texto-3); }
.num-val { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--forte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-obs { font-size: 13px; color: var(--texto-2); }
.num.destaque { background: var(--forte); border-color: var(--forte); }
.num.destaque .num-rot, .num.destaque .num-obs { color: rgba(255, 255, 255, .75); }
.num.destaque .num-val { color: var(--amarelo); }

/* contador até a Novena do Natal */
.contagem { padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--forte); border-color: var(--forte); color: #fff; }
.contagem-txt { display: flex; flex-direction: column; gap: 4px; }
.contagem-rot { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo); }
.contagem-txt b { font: 600 26px/1.15 var(--serif); color: #fff; }
.contagem-num { display: flex; gap: 10px; }
.contagem-un { min-width: 80px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.contagem-val { font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.contagem-un small { font-size: 12px; color: rgba(255, 255, 255, .7); }
.contagem-aberto { font-size: 16px; font-weight: 600; }

.hoje { padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.hoje-num { display: flex; align-items: baseline; gap: 10px; }
.hoje-val { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--forte); font-variant-numeric: tabular-nums; }
.hoje-rot { font-size: 15px; color: var(--texto-2); }
.hoje-lado { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hoje-linha { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--texto-3); padding-bottom: 8px; border-bottom: 1px solid var(--linha); }
.hoje-linha:last-child { border-bottom: 0; padding-bottom: 0; }
.hoje-linha b { color: var(--forte); font-weight: 700; font-variant-numeric: tabular-nums; }
.sobe { color: var(--verde-texto) !important; } .desce { color: var(--erro-texto) !important; }

.duas { display: flex; flex-wrap: wrap; gap: 20px; }
.duas > * { flex: 1 1 440px; min-width: 0; }
.bloco { padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.bloco h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--forte); }
.bloco h3 { font-size: 14px; font-weight: 600; color: var(--forte); }
.bloco-sub { margin-top: 4px; font-size: 13px; color: var(--texto-3); }
.bloco-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* páginas */
.paginas-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pg-cartao { padding: 18px; border-radius: 16px; background: var(--poco); border: 1px solid var(--linha); display: flex; flex-direction: column; gap: 16px; }
.pg-topo { display: flex; align-items: flex-start; gap: 10px; }
.pg-ponto { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: hsl(var(--h) 70% 48%); flex: none; }
.pg-nome { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pg-nome b { font-size: 16px; color: var(--forte); }
.pg-nome a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--texto-3); text-decoration: none; }
.pg-nome a .ic { width: 12px; height: 12px; }
.pg-nome a:hover { color: var(--forte); }
.pg-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.pg-nums dt { font-size: 12px; color: var(--texto-3); line-height: 1.3; min-height: 2.6em; }
.pg-nums dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--forte); font-variant-numeric: tabular-nums; }
.pg-nums .forte dt { color: var(--forte); font-weight: 600; }

/* funil */
.funil { display: flex; flex-direction: column; gap: 16px; }
.etapa { display: flex; flex-direction: column; gap: 8px; }
.etapa-linha { display: flex; justify-content: space-between; font-size: 14px; color: var(--texto-2); }
.etapa-linha b { color: var(--forte); font-variant-numeric: tabular-nums; }
.trilho { height: 22px; border-radius: 7px; background: var(--trilho); overflow: hidden; }
.barra { height: 100%; border-radius: 7px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.e-claro { background: #8d8a7a; } .e-amarelo { background: var(--amarelo); } .e-escuro { background: var(--forte); }
.cliques { padding-top: 18px; border-top: 1px solid var(--linha); display: flex; flex-direction: column; gap: 10px; }
.cliques ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cliques li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--texto-2); }
.cliques li b { color: var(--forte); font-variant-numeric: tabular-nums; }

/* colunas por dia */
.colunas { display: flex; align-items: stretch; gap: 6px; height: 220px; }
.coluna { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.coluna-area { position: relative; flex: 1; display: flex; align-items: flex-end; }
.coluna-b { width: 100%; border-radius: 6px 6px 3px 3px; background: #eadc9c; }
.topo-col .coluna-b { background: var(--amarelo); }
.coluna-n { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--forte); font-variant-numeric: tabular-nums; }
.coluna-d { text-align: center; font-size: 12px; color: var(--texto-3); font-variant-numeric: tabular-nums; }

/* tabelas */
.rolagem { overflow-x: auto; margin: 0 -8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 8px; text-align: left; border-bottom: 1px solid var(--linha); vertical-align: middle; }
thead th { padding-top: 0; font-size: 12px; font-weight: 600; color: var(--texto-3); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--forte); }
tbody th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--texto-3); }
.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.forte { font-weight: 700; color: var(--forte); }
.selo { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--trilho); color: var(--forte); font-size: 12px; font-weight: 700; white-space: nowrap; }
.selo.verde { background: var(--verde-fundo); color: var(--verde-texto); }
.pg-topo .selo { background: var(--amarelo-suave); color: var(--amarelo-texto); }
.sem { color: var(--texto-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: hsl(var(--h, 45) 75% 90%); color: hsl(var(--h, 45) 60% 28%); }
.tag.neutra { background: var(--trilho); color: var(--texto-2); }
.tag.linha { background: transparent; color: var(--texto-2); box-shadow: inset 0 0 0 1px var(--borda); text-transform: none; letter-spacing: 0; font-weight: 600; }
.tag.tag-pg { background: var(--forte); color: var(--amarelo); }
.nota { font-size: 12.5px; color: var(--texto-3); line-height: 1.55; }
.nota code { font-size: 12px; }
.vazio { padding: 28px 0; text-align: center; color: var(--texto-3); }

/* botões e formulários */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; font: 700 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .1s ease-out, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn-cheio { background: var(--amarelo); color: var(--forte); }
.btn-cheio:hover { background: var(--amarelo-escuro); }
.btn-linha { background: var(--cartao); color: var(--forte); box-shadow: inset 0 0 0 1.5px var(--borda); }
.btn-linha:hover { box-shadow: inset 0 0 0 1.5px rgba(15, 19, 40, .3); }
.btn-perigo { background: transparent; color: var(--erro-texto); box-shadow: inset 0 0 0 1.5px #e6b3b6; }
.btn-peq { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
input[type=text], input[type=email], input[type=password], input[type=search], select {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--borda); border-radius: 12px; background: #fff; color: var(--forte); font: 500 15px var(--sans); }
input:focus, select:focus { outline: none; border-color: var(--forte); box-shadow: 0 0 0 3px rgba(255, 214, 50, .55); }
.erro, .ok { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.erro { background: var(--erro-fundo); color: var(--erro-texto); }
.ok { background: var(--verde-fundo); color: var(--verde-texto); }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.form .btn { margin-top: 14px; }
.form.linha { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form.linha .campo { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.form.linha label { margin-top: 0; }
.form.linha .btn { margin-top: 0; }
.marcar { display: flex; align-items: center; gap: 8px; min-height: 46px; font-size: 14px !important; font-weight: 500 !important; color: var(--texto) !important; }
.marcar input { width: 18px; height: 18px; accent-color: var(--forte); }
.acoes { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.voce { font-size: 13px; color: var(--texto-3); }
.convite { border-color: var(--amarelo); background: var(--amarelo-suave); }
.convite-link { display: block; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--borda); user-select: all; }

/* busca de leads */
.busca { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.busca-campo { position: relative; flex: 2 1 280px; }
.busca-campo .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--texto-3); pointer-events: none; }
.busca-campo input { padding-left: 42px; }
.busca-filtro { flex: 1 1 200px; }
.busca-filtro.curto { flex: 0 1 200px; }

/* lista de pessoas */
.lista-bloco { gap: 8px; }
.pessoas { list-style: none; margin: 0; padding: 0; }
.pessoa { display: grid; grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1.4fr) auto; align-items: center; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.pessoa:last-child { border-bottom: 0; }
.pessoa-inicial { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--h) 70% 91%); color: hsl(var(--h) 55% 35%); }
.pessoa-quem { display: flex; flex-direction: column; min-width: 0; }
.pessoa-nome { font-weight: 600; color: var(--forte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa-contato { font-size: 13px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa-linha2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.pessoa-fone { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pessoa-quando { font-size: 13px; color: var(--texto-3); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }

/* entrada e convite */
.porta { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; }
.porta-in { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: stretch; }
.porta-logo { width: auto; height: 72px; margin: 0 auto 20px; }
.porta .sobre, .porta .titulo, .porta .apoio { text-align: center; }
.porta .titulo { font-size: 34px; }
.porta .form { margin-top: 24px; padding: 24px; }
.porta > .porta-in > .btn { margin-top: 24px; }
.garantias { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--texto-3); text-align: center; }

/* troca de conteúdo pela atualização automática */
.mudou main { animation: pisca .6s ease-out; }
@keyframes pisca { from { opacity: .55; } to { opacity: 1; } }

/* ---------- celular: abas embaixo, como um app ---------- */
@media (max-width: 760px) {
  .topo { padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .marca-nome { font-size: 19px; }
  .com-barra { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(237, 236, 226, .86); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--borda); }
  .abas a { flex: 1; flex-direction: column; gap: 3px; min-height: 54px; padding: 6px 4px; justify-content: center; font-size: 11px; border-radius: 12px; }
  .abas a .ic { display: block; width: 22px; height: 22px; }
  .abas a[aria-current] { background: transparent; box-shadow: none; color: var(--forte); }
  .abas a[aria-current] .ic { color: var(--forte); filter: drop-shadow(0 2px 0 var(--amarelo)); }
  .pagina { padding: 24px 16px 40px; gap: 16px; }
  .titulo { font-size: 30px; }
  .cabecalho { align-items: stretch; flex-direction: column; }
  .periodos a { flex: 1; justify-content: center; }
  .cartoes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .num { padding: 16px; }
  .num-val { font-size: 28px; }
  .num-obs { font-size: 12px; }
  .contagem { padding: 18px; }
  .contagem-num { width: 100%; }
  .contagem-un { flex: 1; min-width: 0; padding: 10px 6px; }
  .contagem-val { font-size: 30px; }
  .hoje { padding: 18px; gap: 14px; }
  .hoje-val { font-size: 46px; }
  .bloco { padding: 18px; gap: 16px; }
  .paginas-grade { grid-template-columns: minmax(0, 1fr); }
  .pg-cartao { min-width: 0; }
  .pg-nums dd { font-size: 22px; }
  .duas > * { flex-basis: 100%; }
  .colunas { height: 180px; gap: 3px; }
  .coluna-n { font-size: 10px; }
  .coluna-d { font-size: 10px; }
  .pessoa { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .pessoa-linha2 { grid-column: 2 / 4; }
  .pessoa-quando { grid-row: 1; grid-column: 3; }
  .busca .btn { flex: 1; }
  .busca-filtro.curto { flex: 1 1 200px; }
  .acao-txt { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Metas ---------- */
.aviso { padding: 12px 14px; border-radius: 12px; background: var(--amarelo-suave); color: var(--amarelo-texto); font-size: 14px; font-weight: 600; }
.trilho.fino { height: 8px; border-radius: 999px; }
.trilho.fino .barra { border-radius: 999px; }
.trilho.escuro { margin-top: 6px; background: rgba(255, 255, 255, .16); }
.e-verde { background: var(--verde); }
.hoje-linha.sem-linha { border-bottom: 0; padding-bottom: 0; }
.hoje-linha a { font-size: 13px; font-weight: 600; }

.meta-geral { gap: 14px; }
.meta-pct { display: flex; align-items: baseline; gap: 8px; }
.meta-pct b { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--forte); font-variant-numeric: tabular-nums; }
.meta-pct span { font-size: 14px; color: var(--texto-3); }
.veredito { font-size: 15px; color: var(--texto); }
.veredito a { white-space: nowrap; font-weight: 600; }

.niveis { position: relative; padding: 30px 0 42px; }
.niveis-trilho { position: relative; height: 16px; border-radius: 999px; background: var(--trilho); }
.niveis-proj, .niveis-feito { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.niveis-proj { background: #f3e3a0; }
.niveis-feito { background: var(--amarelo); box-shadow: inset 0 0 0 1px rgba(15, 19, 40, .08); }
.nivel { position: absolute; top: 0; bottom: 0; width: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.nivel-nome { height: 22px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); white-space: nowrap; }
.nivel-risco { width: 2px; height: 32px; border-radius: 2px; background: var(--forte); opacity: .85; }
.nivel-n { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--forte); white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.nivel.fim { align-items: flex-end; } .nivel.fim .nivel-n, .nivel.fim .nivel-nome { text-align: right; }
.nivel.ini { align-items: flex-start; }
.nivel.atingido .nivel-nome { color: var(--verde-texto); } .nivel.atingido .nivel-risco { background: var(--verde); opacity: 1; }
.nivel.no-ritmo .nivel-nome { color: var(--amarelo-texto); }

.legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--texto-3); }
.leg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chave { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #eadc9c; }
.chave.bateu { background: var(--verde); }
.chave.feito { background: var(--amarelo); } .chave.proj { background: #f3e3a0; }

.alvo { position: relative; height: 300px; }
.alvo-colunas { position: absolute; inset: 0; display: flex; gap: 6px; }
.alvo-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.alvo-area { position: relative; flex: 1; width: 100%; }
.alvo-b { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px 6px 3px 3px; background: #eadc9c; }
.alvo-n { position: absolute; left: 0; right: 0; margin-bottom: 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.alvo-d { font-size: 12px; color: var(--texto-3); height: 18px; }
.alvo-col.bateu .alvo-b { background: var(--verde); } .alvo-col.bateu .alvo-n { color: var(--verde-texto); }
.alvo-col.dia-hoje .alvo-d { color: var(--forte); font-weight: 700; }
.alvo-plano { position: absolute; left: 0; right: 0; top: 0; bottom: 24px; z-index: 1; pointer-events: none; }
.alvo-linha { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--forte); }
.alvo-linha span { position: absolute; right: 0; bottom: 4px; padding: 2px 8px; border-radius: 6px; background: var(--forte); color: var(--amarelo); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* linha da meta no gráfico da Visão geral */
.colunas { position: relative; }
.meta-linha { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--verde); pointer-events: none; z-index: 1; }
.meta-linha span { position: absolute; left: 0; bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--verde); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.coluna.bateu .coluna-b { box-shadow: inset 0 3px 0 var(--verde); }
.legenda-meta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legenda-meta::before { content: ""; width: 16px; border-top: 2px dashed var(--verde); }

.form-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.form-grade .campo { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.form-grade label { margin-top: 0; }
.form-grade .inteiro { grid-column: 1 / -1; }
.form-acoes { display: flex; justify-content: flex-end; }
.form-acoes .btn { margin-top: 0; min-width: 180px; }
input[type=date] { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--borda); border-radius: 12px; background: #fff; color: var(--forte); font: 500 15px var(--sans); }

@media (max-width: 760px) {
  .meta-pct b { font-size: 36px; }
  .nivel-nome { font-size: 10px; } .nivel-n { font-size: 11.5px; }
  .alvo { height: 240px; } .alvo-colunas { gap: 3px; } .alvo-n { font-size: 9px; } .alvo-d { font-size: 10px; }
  .form-acoes .btn { width: 100%; }
  .form-grade { grid-template-columns: minmax(0, 1fr); }
}
