/* ===================================================================
   app.css: funil (/aplicacao, /aplicacao/quiz, /aplicar) e painel (/admin)
   na identidade da home (mi.css). Carregue DEPOIS de base.css e mi.css:
     css: ['/css/base.css', '/css/mi.css', '/css/app.css']
   Aqui mora so o que e unico do funil e do painel; botoes (.mi-cta, .mi-btn),
   campos (.mi-field, .mi-input, .mi-radio), tipografia (.mi-t1/.mi-t2/.mi-lead)
   e cabecalho/rodape vem de mi.css. Cores, raios e espacos: tokens --mi-*.
   Sem Fraunces nem Inter, e SEM estilo inline: larguras e alturas dinamicas
   entram como classe (.ap-w-0 a .ap-w-100, .ap-h-0 a .ap-h-100, no fim do
   arquivo), porque o /admin roda com CSP style-src 'self'.
   Prefixos: .ap-* (funil e pecas compartilhadas) e .ad-* (admin).
   Mobile first; ajustes em 640 e 960 (mesmos breakpoints do mi.css).
   =================================================================== */

:root {
  --ap-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.ap,
.ad {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.ap > main,
.ad > main { flex: 1 0 auto; }
.ap-ico { flex: none; }

/* ---------- Topo (mi-header) e Voltar ---------- */

.mi .ap-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--mi-hit);
  padding: 0 12px;
  border-radius: var(--mi-r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--mi-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.mi .ap-voltar:hover { color: var(--mi-ink); background: var(--mi-soft); }
.mi .ap-voltar:focus-visible { outline: 2px solid var(--mi-ink); outline-offset: 2px; }

/* Barra de progresso fixa no topo (some na intro e na confirmacao). */
.ap-prog { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 4px; background: var(--mi-line-soft); }
.ap-prog__fill { height: 100%; background: var(--mi-ink); transition: width 0.4s var(--ap-ease); }

/* ---------- Casco do quiz e do /aplicar ---------- */

.ap-main { padding: clamp(32px, 7vh, 80px) var(--mi-gutter) var(--mi-s8); }
.ap-coluna { width: 100%; max-width: 680px; margin-inline: auto; }
.ap[data-fase='confirmacao'] .ap-main { padding-top: clamp(40px, 8vh, 96px); }
.ap[data-fase='confirmacao'] .ap-coluna { max-width: 640px; }

/* Entrada da tela: so entrada, sem animacao de saida (ver quiz.js). */
.ap-tela--ida { animation: ap-ida 0.45s var(--ap-ease) both; }
.ap-tela--volta { animation: ap-volta 0.45s var(--ap-ease) both; }
@keyframes ap-ida { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ap-volta { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

.mi .ap-semjs { margin-top: var(--mi-s5); }

/* ---------- Tipografia da tela ---------- */

.ap-t:focus { outline: none; }
.ap .mi-eyebrow + .ap-t { margin-top: var(--mi-s4); }
.mi .ap-corpo { margin-top: var(--mi-s4); }
.mi .ap-corpo--centro { margin-inline: auto; max-width: 34rem; }
.mi .ap-acoes { margin-top: var(--mi-s6); }
.ap-acoes--centro { display: flex; justify-content: center; }

/* ---------- CTA em botao (o .mi-cta da home vale para <button> tambem) ---------- */

.mi button.mi-cta { border: 0; cursor: pointer; font-family: inherit; }
.mi button.mi-cta:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.mi button.mi-cta:disabled:hover { background: var(--mi-ink); }
.mi button.mi-cta:disabled:hover .mi-cta__c { transform: none; }
.mi .mi-btn:disabled { cursor: not-allowed; }

/* ---------- Opcoes de multipla escolha (radio da home, em botao) ---------- */

.ap-opcoes { display: grid; gap: 10px; margin-top: var(--mi-s6); }
.ap-opcoes--renda { margin-top: var(--mi-s4); }
.mi .ap-opcao {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  gap: 14px;
  border-width: 1.5px;
  background: var(--mi-paper);
  text-align: left;
  font-size: 17px;
  line-height: 1.35;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ap-opcao__txt { min-width: 0; text-wrap: pretty; }
.ap-opcao__ponto {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #b5b5b5;
  border-radius: 50%;
  background: var(--mi-paper);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.mi .ap-opcao.is-selecionada { border-color: var(--mi-ink); background: #f7f7f7; }
.ap-opcao.is-selecionada .ap-opcao__ponto { border-color: var(--mi-ink); background: var(--mi-ink); box-shadow: inset 0 0 0 4px var(--mi-paper); }
.mi .ap-opcao:focus-visible { outline: 2px solid var(--mi-ink); outline-offset: 2px; }

/* Seletor de moeda (chips em pilula). Tambem usado pelos filtros do admin. */
.ap-moedas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--mi-s5); }
.ap-moedas__rotulo { margin-right: 4px; font-size: 15px; color: var(--mi-muted); }
.mi .ap-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--mi-hit);
  padding: 0 18px;
  border: 1.5px solid #d0d0d0;
  border-radius: var(--mi-r-pill);
  background: var(--mi-paper);
  font-size: 15px;
  font-weight: 500;
  color: var(--mi-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.mi .ap-chip:hover { border-color: var(--mi-ink); color: var(--mi-ink); }
.mi .ap-chip:focus-visible { outline: 2px solid var(--mi-ink); outline-offset: 2px; }
.mi .ap-chip.is-ativo { border-color: var(--mi-ink); background: var(--mi-ink); color: #fff; }

/* ---------- Campos ---------- */

.ap-textarea { display: block; margin-top: var(--mi-s6); }
.ap-textarea:focus-visible,
.mi-input:focus-visible { border-color: var(--mi-ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12); }
.mi-erro:empty { display: none; }
.ap .mi-erro { margin-top: var(--mi-s3); }
.ap-campos { margin-top: var(--mi-s6); }
.ap-campos .mi-small { color: var(--mi-faint); }

/* WhatsApp: seletor de pais colado no campo, como um controle so. */
.ap-wpp { display: flex; align-items: stretch; gap: 8px; }
.ap-wpp > .mi-input { flex: 1; min-width: 0; }
.ap-select-wrap { position: relative; flex: none; }
.ap-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--mi-faint);
  border-bottom: 1.5px solid var(--mi-faint);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.mi .ap-select { width: auto; height: 100%; min-height: 50px; padding: 0 36px 0 16px; appearance: none; -webkit-appearance: none; cursor: pointer; font-size: 16px; }

/* ---------- Tela de analise ---------- */

.ap-barras { display: grid; gap: 22px; margin-top: var(--mi-s6); }
.ap-barra__rotulo { margin-bottom: var(--mi-s2); font-size: 16px; font-weight: 500; color: var(--mi-ink-2); }
.ap-barra__trilho { height: 8px; overflow: hidden; border-radius: var(--mi-r-pill); background: #ececec; }
.ap-barra__fill {
  height: 100%;
  width: 0;
  border-radius: var(--mi-r-pill);
  background: var(--mi-ink);
  animation: ap-barra 700ms var(--ap-ease) 0ms both;
}
/* Atraso em sequencia: mesmo ritmo de ANALISE_DELAY_MS (760 ms) em quiz.js. */
.ap-barras > :nth-child(2) .ap-barra__fill { animation-delay: 760ms; }
.ap-barras > :nth-child(3) .ap-barra__fill { animation-delay: 1520ms; }
.ap-barras > :nth-child(4) .ap-barra__fill { animation-delay: 2280ms; }
.ap-barras > :nth-child(5) .ap-barra__fill { animation-delay: 3040ms; }
@keyframes ap-barra { from { width: 0; } to { width: 100%; } }

/* ---------- Confirmacao ---------- */

.ap-confirmacao { text-align: left; }
.ap-centro { text-align: center; }
.ap-bloco { margin-top: var(--mi-s6); }
.mi .ap-chamada { margin-bottom: var(--mi-s4); text-align: center; font-size: 16px; line-height: 1.5; color: var(--mi-muted); text-wrap: pretty; }
.ap-caixa { margin-top: var(--mi-s6); padding: clamp(24px, 4vw, 36px); border-radius: var(--mi-r-lg); background: var(--mi-ink); color: #fff; }
.mi .ap-caixa__destaque { display: flex; align-items: flex-start; gap: 14px; font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.ap-caixa__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #2e2e2e; color: #fff; }
.ap-caixa__ico svg { display: block; }
.ap-avisos { display: grid; gap: 20px; margin: var(--mi-s5) 0 0; padding: var(--mi-s5) 0 0; border-top: 1px solid var(--mi-line-dark); list-style: none; }
.mi .ap-aviso__t { font-size: 16px; font-weight: 500; line-height: 1.4; color: #fff; }
.mi .ap-aviso__c { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--mi-on-dark); text-wrap: pretty; }
.ap-confirmacao .mi-btn { margin-top: var(--mi-s5); }

/* Player de VSL: o placeholder segura a proporcao 9/16 antes de o player montar. */
.ap-vsl { margin-inline: auto; width: 100%; max-width: 400px; }
.ap-vsl__player { display: block; margin-inline: auto; width: 100%; max-width: 400px; }
.ap-vsl__placeholder {
  position: relative;
  z-index: 0;
  width: 100%;
  padding: 177.77777777777777% 0 0;
  overflow: hidden;
  border-radius: var(--mi-r-lg);
  background-color: #000;
}
.ap-vsl__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pagina de venda (/aplicacao/) ---------- */

.ap-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.ap-hero .mi-head { max-width: 780px; }
.mi .ap-destaque { font-size: clamp(19px, 2vw, 22px); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: var(--mi-ink); text-wrap: pretty; }
.ap-venda__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: var(--mi-s3); }

.mi-sec.ap-passos { padding-top: 0; }
.ap-passos .mi-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--mi-ink);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 500;
  color: var(--mi-ink);
}

.ap-quem__lista { display: grid; gap: 16px; max-width: var(--mi-prose); margin: 0; padding: 0; list-style: none; }
.ap-quem__item { display: flex; gap: 14px; font-size: 18px; line-height: 1.5; color: #e6e6e6; }
.ap-quem__item .ap-check { flex: none; margin-top: 4px; color: #fff; }
.ap-quem__item span { text-wrap: pretty; }
.ap-venda__final { margin-top: var(--mi-s7); }

/* ---------- Selos (pills de status; cores semanticas) ---------- */

.ap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border: 1.5px solid transparent;
  border-radius: var(--mi-r-pill);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.ap-pill__ponto { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap-pill--verde { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.ap-pill--verde .ap-pill__ponto { background: #059669; }
.ap-pill--amarela { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.ap-pill--amarela .ap-pill__ponto { background: #f59e0b; }
.ap-pill--vermelha { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.ap-pill--vermelha .ap-pill__ponto { background: #e11d48; }
.ap-pill--flag { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.ap-pill--flag .ap-pill__ponto { background: #8b5cf6; }
.ap-pill--neutro { border-color: var(--mi-line); background: var(--mi-paper); color: var(--mi-muted); }
.ap-pill--apagado { color: var(--mi-faint); }
.ap-pill--fora { border-color: #bae6fd; background: #f0f9ff; color: #075985; }

/* ===================================================================
   Admin: fundo branco, Helvetica, pretos e pilulas da home
   =================================================================== */

.ad-main { padding: var(--mi-s6) var(--mi-gutter) var(--mi-s8); }
.ad-coluna { max-width: 680px; margin-inline: auto; }
.ad-coluna--larga { max-width: 1000px; }

.mi .ad-titulo { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.14; letter-spacing: -0.025em; color: var(--mi-ink); overflow-wrap: anywhere; }
.ad-titulo--lista { margin-top: var(--mi-s6); }
.mi .ad-sub { margin-top: var(--mi-s3); font-size: 16px; line-height: 1.6; color: var(--mi-muted); }
.mi .ad-msg { margin-top: var(--mi-s7); font-size: 16px; line-height: 1.6; color: var(--mi-muted); }
.ad-msg--erro { color: var(--mi-danger); }
.ad-msg-bloco { display: grid; justify-items: start; gap: var(--mi-s4); }
.mi .ad-vazio { margin-top: var(--mi-s4); font-size: 15px; line-height: 1.6; color: var(--mi-faint); }
.mi .ad-rotulo { margin-bottom: var(--mi-s2); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mi-faint); }

/* Login */
.mi-box.ad-login { max-width: 440px; margin: var(--mi-s5) auto 0; }
.ad-form { margin-top: var(--mi-s6); gap: var(--mi-s4); }

/* Barra de topo do painel: abas e sair */
.ad-barra-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mi-s4); }
.ad-abas { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1.5px solid #d0d0d0; border-radius: var(--mi-r-pill); background: var(--mi-paper); }
.mi .ad-aba { min-height: var(--mi-hit); padding: 0 20px; border-radius: var(--mi-r-pill); font-size: 15px; font-weight: 500; color: var(--mi-muted); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.mi .ad-aba:hover { color: var(--mi-ink); }
.mi .ad-aba.is-ativa { background: var(--mi-ink); color: #fff; }
.mi .ad-aba:focus-visible,
.mi .ad-sair:focus-visible,
.mi .ad-voltar:focus-visible,
.mi .ad-item:focus-visible { outline: 2px solid var(--mi-ink); outline-offset: 2px; }
.mi .ad-sair,
.mi .ad-voltar { min-height: var(--mi-hit); padding: 0 12px; border-radius: var(--mi-r-pill); font-size: 15px; font-weight: 500; color: var(--mi-muted); cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease; }
.mi .ad-sair:hover,
.mi .ad-voltar:hover { color: var(--mi-ink); background: var(--mi-soft); }

/* Filtros */
.ad-filtros { display: flex; flex-wrap: wrap; gap: var(--mi-s5) var(--mi-s6); margin-top: var(--mi-s6); }
.ad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mi .ad-contagem { margin-top: var(--mi-s5); font-size: 14px; color: var(--mi-faint); }

/* Lista: um card por aplicacao */
.ad-lista { display: grid; gap: 10px; margin: var(--mi-s4) 0 0; padding: 0; list-style: none; }
.mi .ad-item { display: block; width: 100%; padding: 18px 20px; border: 1.5px solid var(--mi-line); border-radius: var(--mi-r-md); background: var(--mi-paper); text-align: left; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.mi .ad-item:hover { border-color: var(--mi-ink); box-shadow: var(--mi-sh-card); }
.ad-item__linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ad-item__nome { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; color: var(--mi-ink); overflow-wrap: anywhere; }
.ad-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 14px; color: var(--mi-muted); }
.ad-item__status { font-weight: 500; color: var(--mi-ink); }

/* Detalhe */
.mi .ad-voltar { display: inline-flex; align-items: center; margin-top: 0; margin-left: -12px; }
.ad-detalhe__topo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: var(--mi-s3); }
.mi .ad-detalhe__meta { margin-top: var(--mi-s3); font-size: 15px; color: var(--mi-muted); overflow-wrap: anywhere; }
.mi .ad-motivo { margin-top: var(--mi-s4); padding: 14px 18px; border: 1.5px solid var(--mi-line); border-radius: var(--mi-r-sm); background: var(--mi-paper); font-size: 15px; line-height: 1.55; color: var(--mi-ink-2); }
.ad-motivo strong { font-weight: 600; color: var(--mi-ink); }
.ad-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mi-s4); margin-top: var(--mi-s5); }
.ad-status { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--mi-muted); }
.ad-select { min-height: var(--mi-hit); padding: 0 12px; border: 1px solid #dcdcdc; border-radius: var(--mi-r-sm); background: var(--mi-paper); font-size: 15px; color: var(--mi-ink); outline: none; }
.ad-select:focus-visible { border-color: var(--mi-ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12); }

.mi .ad-secao { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mi-faint); }
.mi .ad-secao--espaco { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: var(--mi-s7); }
.ad-secao__leve { font-weight: 400; }
.ad-secao__carimbo { font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--mi-faint); }
.mi .ad-sub-secao { font-size: 16px; font-weight: 500; color: var(--mi-ink-2); }

.ad-diag { margin-top: var(--mi-s4); padding: clamp(16px, 2.4vw, 24px); border: 1.5px solid var(--mi-line); border-radius: var(--mi-r-md); background: var(--mi-paper); }
.ad-diag__texto { display: block; width: 100%; padding: 14px 16px; border: 1px solid #dcdcdc; border-radius: var(--mi-r-sm); background: var(--mi-paper); font-size: 16px; line-height: 1.6; color: var(--mi-ink); resize: vertical; outline: none; }
.ad-diag__texto:focus-visible { border-color: var(--mi-ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12); }
.mi .ad-diag__dica { margin-top: var(--mi-s2); font-size: 14px; color: var(--mi-faint); }
.mi .ad-diag__vazio { font-size: 16px; line-height: 1.6; color: var(--mi-muted); }
.ad-diag .ad-acoes { margin-top: var(--mi-s4); gap: var(--mi-s3); }

.ad-abertas { display: grid; gap: var(--mi-s3); margin-top: var(--mi-s4); }
.ad-aberta { padding: 16px 20px; border: 1.5px solid var(--mi-line); border-radius: var(--mi-r-md); background: var(--mi-paper); }
.mi .ad-aberta__rotulo { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--mi-faint); }
.mi .ad-aberta__texto { margin-top: var(--mi-s2); font-size: 16px; line-height: 1.6; color: var(--mi-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-objetivas { display: grid; gap: var(--mi-s3); margin: var(--mi-s4) 0 0; }
.ad-obj { padding: 14px 18px; border: 1.5px solid var(--mi-line); border-radius: var(--mi-r-sm); background: var(--mi-paper); }
.ad-obj dt { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--mi-faint); }
.mi .mi .ad-obj dd { margin: 6px 0 0; font-size: 16px; line-height: 1.4; color: var(--mi-text); }

/* Dashboard */
.ad-dash { margin-top: var(--mi-s6); }
.ad-periodo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mi-s4); }
.ad-periodo .ad-rotulo { margin: 0; }
.ad-metricas { display: grid; gap: var(--mi-s7); margin-top: var(--mi-s6); }
.ad-grade { display: grid; gap: var(--mi-s6); margin-top: var(--mi-s4); }
.ad-metricas > .ad-grade { margin-top: 0; }
.mi .ad-nota { margin-top: var(--mi-s3); font-size: 14px; line-height: 1.5; color: var(--mi-faint); }
.mi .ad-nota--topo { margin-top: var(--mi-s2); }

.ad-funil { display: grid; gap: var(--mi-s3); margin-top: var(--mi-s4); }
.ad-funil__linha { display: flex; align-items: center; gap: var(--mi-s4); }
.ad-funil__rotulo { flex: none; width: 112px; font-size: 14px; line-height: 1.35; color: var(--mi-ink-2); }
.ad-funil__trilho { flex: 1; min-width: 0; height: 40px; overflow: hidden; border-radius: var(--mi-r-pill); background: var(--mi-soft); }
.ad-funil__fill { display: flex; align-items: center; height: 100%; padding-inline: 16px; border-radius: var(--mi-r-pill); background: var(--mi-ink); transition: width 0.5s ease; }
.ad-funil__fill span { font-size: 14px; font-weight: 600; color: #fff; }
.ad-funil__pct { flex: none; width: 48px; text-align: right; font-size: 14px; color: var(--mi-muted); }

.ad-barras { display: grid; gap: var(--mi-s3); margin-top: var(--mi-s4); }
.ad-barra { display: flex; align-items: center; gap: var(--mi-s3); }
.ad-barra__rotulo { flex: none; width: 112px; font-size: 14px; line-height: 1.3; color: var(--mi-ink-2); overflow-wrap: anywhere; }
.ad-barra__trilho { position: relative; flex: 1; min-width: 0; height: 12px; overflow: hidden; border-radius: var(--mi-r-pill); background: var(--mi-soft); }
.ad-barra__fill { height: 100%; border-radius: var(--mi-r-pill); transition: width 0.5s ease; }
.ad-barra__valor { flex: none; width: 76px; text-align: right; font-size: 14px; color: var(--mi-muted); }
.ad-barra--fonte .ad-barra__valor { width: 32px; }
.ad-barra__camp { color: var(--mi-faint); }
.ad-cor--verde { background: var(--mi-ok); }
.ad-cor--ambar { background: #f59e0b; }
.ad-cor--rosa { background: var(--mi-danger); }
.ad-cor--terracota { background: var(--mi-ink); }
.ad-cor--neutra { background: #9a9a9a; }
.ad-cor--n100 { background: var(--mi-ink); }
.ad-cor--n70 { background: #4d4d4d; }
.ad-cor--n45 { background: #8c8c8c; }
.ad-cor--n25 { background: #c4c4c4; }

.ad-serie { display: flex; align-items: flex-end; gap: 3px; height: 160px; margin-top: var(--mi-s5); }
.ad-serie__col { position: relative; display: flex; flex: 1; min-width: 2px; height: 100%; align-items: flex-end; }
.ad-serie__barra { width: 100%; border-radius: 4px 4px 0 0; background: var(--mi-ink); transition: background-color 0.2s ease; }
.ad-serie__col:hover .ad-serie__barra { background: var(--mi-ink-2); }
.ad-serie__dica { position: absolute; bottom: 100%; left: 50%; z-index: 10; display: none; margin-bottom: 4px; padding: 4px 8px; border-radius: 6px; background: var(--mi-ink); font-size: 12px; color: #fff; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.ad-serie__col:hover .ad-serie__dica { display: block; }
.ad-serie__eixo { display: flex; justify-content: space-between; margin-top: var(--mi-s2); font-size: 12px; color: var(--mi-faint); }

/* ---------- 640 px ---------- */

@media (min-width: 640px) {
  .ad-objetivas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-funil__rotulo { width: 168px; }
  .ad-funil__pct { width: 64px; }
  .ad-barra__rotulo { width: 168px; }
  .ad-barra__valor { width: 88px; }
  .ad-barra--fonte .ad-barra__rotulo { width: 200px; }
  .ad-barra--fonte .ad-barra__valor { width: 48px; }
}

/* ---------- 960 px ---------- */

@media (min-width: 960px) {
  .ad-main { padding-top: var(--mi-s7); }
  .ad-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  .ap-tela--ida,
  .ap-tela--volta { animation: none; }
  .ap-barra__fill { width: 100%; animation: none; }
  .ap-prog__fill,
  .ad-funil__fill,
  .ad-barra__fill { transition: none; }
}

/* ---------- Larguras e alturas dinamicas (sem estilo inline; ver topo) ---------- */

.ap-w-0 { width: 0%; }
.ap-w-1 { width: 1%; }
.ap-w-2 { width: 2%; }
.ap-w-3 { width: 3%; }
.ap-w-4 { width: 4%; }
.ap-w-5 { width: 5%; }
.ap-w-6 { width: 6%; }
.ap-w-7 { width: 7%; }
.ap-w-8 { width: 8%; }
.ap-w-9 { width: 9%; }
.ap-w-10 { width: 10%; }
.ap-w-11 { width: 11%; }
.ap-w-12 { width: 12%; }
.ap-w-13 { width: 13%; }
.ap-w-14 { width: 14%; }
.ap-w-15 { width: 15%; }
.ap-w-16 { width: 16%; }
.ap-w-17 { width: 17%; }
.ap-w-18 { width: 18%; }
.ap-w-19 { width: 19%; }
.ap-w-20 { width: 20%; }
.ap-w-21 { width: 21%; }
.ap-w-22 { width: 22%; }
.ap-w-23 { width: 23%; }
.ap-w-24 { width: 24%; }
.ap-w-25 { width: 25%; }
.ap-w-26 { width: 26%; }
.ap-w-27 { width: 27%; }
.ap-w-28 { width: 28%; }
.ap-w-29 { width: 29%; }
.ap-w-30 { width: 30%; }
.ap-w-31 { width: 31%; }
.ap-w-32 { width: 32%; }
.ap-w-33 { width: 33%; }
.ap-w-34 { width: 34%; }
.ap-w-35 { width: 35%; }
.ap-w-36 { width: 36%; }
.ap-w-37 { width: 37%; }
.ap-w-38 { width: 38%; }
.ap-w-39 { width: 39%; }
.ap-w-40 { width: 40%; }
.ap-w-41 { width: 41%; }
.ap-w-42 { width: 42%; }
.ap-w-43 { width: 43%; }
.ap-w-44 { width: 44%; }
.ap-w-45 { width: 45%; }
.ap-w-46 { width: 46%; }
.ap-w-47 { width: 47%; }
.ap-w-48 { width: 48%; }
.ap-w-49 { width: 49%; }
.ap-w-50 { width: 50%; }
.ap-w-51 { width: 51%; }
.ap-w-52 { width: 52%; }
.ap-w-53 { width: 53%; }
.ap-w-54 { width: 54%; }
.ap-w-55 { width: 55%; }
.ap-w-56 { width: 56%; }
.ap-w-57 { width: 57%; }
.ap-w-58 { width: 58%; }
.ap-w-59 { width: 59%; }
.ap-w-60 { width: 60%; }
.ap-w-61 { width: 61%; }
.ap-w-62 { width: 62%; }
.ap-w-63 { width: 63%; }
.ap-w-64 { width: 64%; }
.ap-w-65 { width: 65%; }
.ap-w-66 { width: 66%; }
.ap-w-67 { width: 67%; }
.ap-w-68 { width: 68%; }
.ap-w-69 { width: 69%; }
.ap-w-70 { width: 70%; }
.ap-w-71 { width: 71%; }
.ap-w-72 { width: 72%; }
.ap-w-73 { width: 73%; }
.ap-w-74 { width: 74%; }
.ap-w-75 { width: 75%; }
.ap-w-76 { width: 76%; }
.ap-w-77 { width: 77%; }
.ap-w-78 { width: 78%; }
.ap-w-79 { width: 79%; }
.ap-w-80 { width: 80%; }
.ap-w-81 { width: 81%; }
.ap-w-82 { width: 82%; }
.ap-w-83 { width: 83%; }
.ap-w-84 { width: 84%; }
.ap-w-85 { width: 85%; }
.ap-w-86 { width: 86%; }
.ap-w-87 { width: 87%; }
.ap-w-88 { width: 88%; }
.ap-w-89 { width: 89%; }
.ap-w-90 { width: 90%; }
.ap-w-91 { width: 91%; }
.ap-w-92 { width: 92%; }
.ap-w-93 { width: 93%; }
.ap-w-94 { width: 94%; }
.ap-w-95 { width: 95%; }
.ap-w-96 { width: 96%; }
.ap-w-97 { width: 97%; }
.ap-w-98 { width: 98%; }
.ap-w-99 { width: 99%; }
.ap-w-100 { width: 100%; }
.ap-h-0 { height: 0%; }
.ap-h-1 { height: 1%; }
.ap-h-2 { height: 2%; }
.ap-h-3 { height: 3%; }
.ap-h-4 { height: 4%; }
.ap-h-5 { height: 5%; }
.ap-h-6 { height: 6%; }
.ap-h-7 { height: 7%; }
.ap-h-8 { height: 8%; }
.ap-h-9 { height: 9%; }
.ap-h-10 { height: 10%; }
.ap-h-11 { height: 11%; }
.ap-h-12 { height: 12%; }
.ap-h-13 { height: 13%; }
.ap-h-14 { height: 14%; }
.ap-h-15 { height: 15%; }
.ap-h-16 { height: 16%; }
.ap-h-17 { height: 17%; }
.ap-h-18 { height: 18%; }
.ap-h-19 { height: 19%; }
.ap-h-20 { height: 20%; }
.ap-h-21 { height: 21%; }
.ap-h-22 { height: 22%; }
.ap-h-23 { height: 23%; }
.ap-h-24 { height: 24%; }
.ap-h-25 { height: 25%; }
.ap-h-26 { height: 26%; }
.ap-h-27 { height: 27%; }
.ap-h-28 { height: 28%; }
.ap-h-29 { height: 29%; }
.ap-h-30 { height: 30%; }
.ap-h-31 { height: 31%; }
.ap-h-32 { height: 32%; }
.ap-h-33 { height: 33%; }
.ap-h-34 { height: 34%; }
.ap-h-35 { height: 35%; }
.ap-h-36 { height: 36%; }
.ap-h-37 { height: 37%; }
.ap-h-38 { height: 38%; }
.ap-h-39 { height: 39%; }
.ap-h-40 { height: 40%; }
.ap-h-41 { height: 41%; }
.ap-h-42 { height: 42%; }
.ap-h-43 { height: 43%; }
.ap-h-44 { height: 44%; }
.ap-h-45 { height: 45%; }
.ap-h-46 { height: 46%; }
.ap-h-47 { height: 47%; }
.ap-h-48 { height: 48%; }
.ap-h-49 { height: 49%; }
.ap-h-50 { height: 50%; }
.ap-h-51 { height: 51%; }
.ap-h-52 { height: 52%; }
.ap-h-53 { height: 53%; }
.ap-h-54 { height: 54%; }
.ap-h-55 { height: 55%; }
.ap-h-56 { height: 56%; }
.ap-h-57 { height: 57%; }
.ap-h-58 { height: 58%; }
.ap-h-59 { height: 59%; }
.ap-h-60 { height: 60%; }
.ap-h-61 { height: 61%; }
.ap-h-62 { height: 62%; }
.ap-h-63 { height: 63%; }
.ap-h-64 { height: 64%; }
.ap-h-65 { height: 65%; }
.ap-h-66 { height: 66%; }
.ap-h-67 { height: 67%; }
.ap-h-68 { height: 68%; }
.ap-h-69 { height: 69%; }
.ap-h-70 { height: 70%; }
.ap-h-71 { height: 71%; }
.ap-h-72 { height: 72%; }
.ap-h-73 { height: 73%; }
.ap-h-74 { height: 74%; }
.ap-h-75 { height: 75%; }
.ap-h-76 { height: 76%; }
.ap-h-77 { height: 77%; }
.ap-h-78 { height: 78%; }
.ap-h-79 { height: 79%; }
.ap-h-80 { height: 80%; }
.ap-h-81 { height: 81%; }
.ap-h-82 { height: 82%; }
.ap-h-83 { height: 83%; }
.ap-h-84 { height: 84%; }
.ap-h-85 { height: 85%; }
.ap-h-86 { height: 86%; }
.ap-h-87 { height: 87%; }
.ap-h-88 { height: 88%; }
.ap-h-89 { height: 89%; }
.ap-h-90 { height: 90%; }
.ap-h-91 { height: 91%; }
.ap-h-92 { height: 92%; }
.ap-h-93 { height: 93%; }
.ap-h-94 { height: 94%; }
.ap-h-95 { height: 95%; }
.ap-h-96 { height: 96%; }
.ap-h-97 { height: 97%; }
.ap-h-98 { height: 98%; }
.ap-h-99 { height: 99%; }
.ap-h-100 { height: 100%; }

.ap-centro { text-align: center; }
.mi .ap-centro .ap-corpo { text-align: center; }
.mi .ad-pitch__aviso { color: var(--mi-danger); margin-bottom: var(--mi-s3); }
