/* =====================================================================
   TOKENS — espelham src/index.css do projeto.
   Trocar a identidade inteira = trocar apenas este bloco.
   Cada cor tem um par `-rgb` (só os três canais) para permitir
   transparências sem repetir o valor em lugar nenhum.
   ===================================================================== */
:root {
  /* =====================================================================
     Paleta Ignição Digital — petróleo profundo com o laranja da marca.
     Trocar a identidade inteira = trocar só este bloco. Nenhum componente
     tem cor escrita no código: o que era cravado virou token abaixo.
     ===================================================================== */

  /* Superfícies — do fundo para a frente, cada camada um passo mais clara */
  --background: #061a21;     --background-rgb: 6 26 33;
  --bg-topo: #0a2731;
  --bg-base: #031218;
  --card: #0b2c38;         --card-rgb: 11 44 56;
  --muted: #103744;          --muted-rgb: 16 55 68;
  --input: #0a2b36;
  --border: #16414f;         --border-rgb: 22 65 79;
  --secondary: #103744;

  /* Texto — quase branco, com leve viés frio */
  --foreground: #eaf3f5;
  --muted-foreground: #93b0ba; --muted-foreground-rgb: 147 176 186;

  /* Marca — o laranja é a cor de ação */
  --primary: #d9622a;          --primary-rgb: 217 98 42;
  --primary-foreground: #1c0a02;
  --primary-hover: #c25523;
  --primary-glow: #ef8a55;
/* Laranja de PREENCHIMENTO (--primary) é escuro demais para texto pequeno:
   sobre o card dá 4.00 e o mínimo WCAG AA é 4.5. Este tom, só para texto
   e ícones, mede 5.32 no card, 6.47 no fundo e 4.61 no muted. */
--primary-texto: #e8804c;     --primary-glow-rgb: 239 138 85;

  /* Estados. O âmbar puxa para o dourado para não brigar com o laranja. */
  --st-recebida: #38b6cf;      --st-recebida-rgb: 56 182 207;
  --st-analise: #9b8cf0;       --st-analise-rgb: 155 140 240;
  --st-pendencia: #f5b73d;     --st-pendencia-rgb: 245 183 61;
  --st-reprovada: #fc4351;     --st-reprovada-rgb: 252 67 81;

  /* No escuro o texto do selo precisa ser CLARO, não escuro. */
  --txt-recebida: #7fd8e8;
  --txt-analise: #c3b8ff;
  --txt-pendencia: #ffd483;
  --txt-reprovada: #ff9aa2;

  --info: var(--st-recebida);
  --violet: var(--st-analise);
  --warning: var(--st-pendencia);   --warning-rgb: 245 183 61;
  --destructive: var(--st-reprovada);

  /* Verde reservado ao aceite — a cor de "siga" do app. */
  --aceite: #22c88a;          --aceite-rgb: 34 200 138;
  --aceite-forte: #5ee0ad;
  --aceite-claro: #8bf0c6;

  --sombra-rgb: 0 0 0;

  --radius: 0.75rem;
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --shadow-card: 0 16px 40px -24px rgb(var(--sombra-rgb) / 0.75);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}


* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--background);
  /* Um gradiente só, sem textura repetida e sem attachment fixo: os dois
     juntos obrigavam o navegador a repintar a tela inteira a cada quadro
     de rolagem, e custavam ~45ms por quadro. */
  background-image: linear-gradient(180deg, var(--bg-topo) 0%, var(--bg-base) 70%);
  background-repeat: no-repeat;
  color: var(--foreground);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}


::selection { background: rgb(var(--primary-rgb) / 0.3); }

:focus-visible {
  outline: 2px solid rgb(var(--primary-rgb) / 0.7);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 999px;
  border: 2px solid transparent; background-clip: content-box;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

/* ===== AMBIENTE ===== */
/* overflow-x: clip (e não hidden) para o sticky da barra continuar valendo. */
/* `clip` nos dois eixos: o brilho decorativo do ::after fica 12rem abaixo do
   fim da página e criava uma faixa de rolagem vazia. `clip` (e não `hidden`)
   não cria contexto de rolagem, então o cabeçalho sticky do painel continua
   grudando normalmente. */
.aurora { position: relative; isolation: isolate; overflow: clip;
          min-height: 100dvh; display: flex; flex-direction: column; }
.aurora::before, .aurora::after {
  content: ''; position: absolute; z-index: -1; border-radius: 9999px;
  filter: blur(60px); pointer-events: none;
}
.aurora::before {
  top: -10rem; left: -8rem; width: 28rem; height: 28rem; opacity: 0.26;
  background: radial-gradient(circle, rgb(var(--primary-glow-rgb) / 0.5), transparent 70%);
}
.aurora::after {
  right: -10rem; bottom: -12rem; width: 32rem; height: 32rem; opacity: 0.18;
  background: radial-gradient(circle, rgb(var(--primary-rgb) / 0.22), transparent 70%);
}
.grid-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(var(--muted-foreground-rgb) / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--muted-foreground-rgb) / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .35) 45%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .35) 45%, transparent 85%);
}

.gradient-text {
  background: var(--gradient-primary);
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.shimmer {
  height: 1px; width: 100%; max-width: 24rem; margin-inline: auto;
  background: linear-gradient(90deg, transparent, rgb(var(--primary-rgb) / 0.55), transparent);
}

/* ===== ESTRUTURA ===== */
.topbar {
  width: 100%; max-width: 72rem; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.25rem;
}
.shell { width: 100%; margin-inline: auto; padding: 0.5rem 1.25rem 5rem; flex: 1; }
.shell.sm { max-width: 36rem; }
.shell.md { max-width: 48rem; }
.shell.lg { max-width: 80rem; }
.center { text-align: center; }

.footer {
  margin-top: auto; border-top: 1px solid rgb(var(--border-rgb) / 0.5);
  padding: 2.5rem 1.25rem;
}
.footer-inner { max-width: 56rem; margin-inline: auto; text-align: center; }
.footer-legend {
  font-size: 0.6875rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgb(var(--muted-foreground-rgb) / 0.7);
}
.produtos {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: center; gap: 1.25rem 2.5rem;
}
/* Silhuetas escuras: mantém a faixa de produtos uniforme sobre o bege. */
.produtos img {
  height: 22px; width: auto; object-fit: contain;
  /* No escuro a silhueta é clara: brightness(0) sozinho sumiria no fundo. */
  filter: brightness(0) invert(1); opacity: 0.5;
  transition: opacity 0.3s ease;
}
.produtos a:not(.arroba) { display: block; }
.produtos a:hover img { opacity: 0.9; }
/* Logos que têm cor própria aparecem como são. */
.produtos img.colorido { filter: brightness(1.12); opacity: 0.9; }
.produtos a:hover img.colorido { opacity: 1; }
.produtos img.tall { height: 28px; }
/* Cada produto é uma coluna: logo em cima, Instagram embaixo. A faixa do
   logo tem altura fixa para que todos os @ fiquem na mesma linha, mesmo
   com logos de alturas diferentes ou sem @ cadastrado. */
.produtos .produto {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.produtos .produto > a:not(.arroba) {
  display: flex; align-items: center; height: 34px;
}
.arroba {
  display: inline-flex; align-items: center; gap: .3125rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .01em;
  color: rgb(var(--muted-foreground-rgb) / .75);
  transition: color .15s ease;
}
.arroba svg { flex-shrink: 0; opacity: .8; }
.arroba:hover { color: var(--primary-texto); }
.arroba:hover svg { opacity: 1; }
/* A da marca-mãe vai na linha de copyright, então acompanha o texto. */
.arroba.embutida { font-size: inherit; vertical-align: baseline; }

.copyright { margin-top: 0; font-size: 0.75rem; color: var(--muted-foreground); }

/* Copyright ao centro e, no canto direito, a entrada da equipe. Em telas
   estreitas a linha empilha e o acesso vai para baixo, ainda discreto. */
.footer-base {
  margin-top: 2rem; position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; flex-wrap: wrap;
}
.acesso-equipe {
  display: inline-flex; align-items: center; gap: .375rem;
  background: none; border: none; padding: .25rem .5rem; cursor: pointer;
  font: inherit; font-size: .6875rem;
  color: rgb(var(--muted-foreground-rgb) / .45);
  border-radius: .5rem; transition: color .15s ease, background-color .15s ease;
}
.acesso-equipe svg { flex-shrink: 0; opacity: .7; }
.acesso-equipe:hover {
  color: var(--muted-foreground);
  background: rgb(var(--muted-rgb) / .5);
}
.acesso-equipe:hover svg { opacity: 1; }
@media (min-width: 720px) {
  .footer-base { justify-content: center; }
  .acesso-equipe { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
}

/* As marcas principais ficam nas cores originais. */
.logos-principais { display: inline-flex; align-items: center; gap: 1.25rem; }
.logos-principais.compacto { gap: .875rem; }
.logos-principais img {
  width: auto; object-fit: contain; display: block;
  /* Sem filtro: esta é a versão da marca feita para fundo escuro — "grupo"
     em creme, a pílula clara e o laranja da chama já nas cores certas.
     O filtro anterior existia porque a arte antiga era para fundo claro,
     e ele achatava tudo em branco. */
}
.divisor-logo { width: 1px; align-self: stretch; background: var(--border); }
.logo.hero { height: 60px; }
.logo.bar { height: 34px; }

.link-sutil {
  font-size: 0.75rem; color: var(--muted-foreground);
  display: inline-flex; align-items: center; gap: 0.375rem;
  transition: color 0.15s ease;
}
.link-sutil:hover { color: var(--foreground); }

/* ===== TIPOGRAFIA ===== */
.h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
.h2 { font-size: clamp(1.75rem, 4.5vw, 2.25rem); font-weight: 700;
      line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.lead { font-size: 1.0625rem; line-height: 1.65; color: var(--muted-foreground); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--primary-texto);
}
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.75rem; padding-inline: 1.5rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: opacity 0.15s ease,
    background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 10px 24px -12px rgb(var(--primary-rgb) / 0.75);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
  background: rgb(var(--card-rgb) / 0.7); border-color: var(--border);
  color: var(--foreground); font-weight: 500;
}
.btn-outline:hover { background: var(--muted); border-color: rgb(var(--primary-rgb) / .45); }
.btn-ghost { background: transparent; color: var(--muted-foreground); font-weight: 500; }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-sm { height: 2.25rem; padding-inline: 0.875rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }
.btn .ic { transition: transform 0.15s ease; }
.btn-primary:hover .ic-arrow { transform: translateX(2px); }

/* ===== SUPERFÍCIES ===== */
.card {
  position: relative; z-index: 1;
  background: var(--card); border: 1px solid rgb(var(--border-rgb) / 0.7);
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-card);
}
.card-pad { padding: 1.5rem; }
@media (min-width: 640px) { .card-pad { padding: 1.75rem; } }

/* ---- cartão com cabeçalho próprio ---- */
.bloco { overflow: hidden; }
.bloco-topo { padding: 1.125rem 1.25rem; }
.bloco-botao { display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 1.125rem 1.25rem; cursor: pointer; font: inherit; color: inherit;
  transition: background-color .15s ease; }
.bloco-botao:hover { background: rgb(var(--muted-rgb) / .45); }
.bloco-cab { display: flex; align-items: center; gap: .75rem; }
.bloco-ic { width: 2.125rem; height: 2.125rem; border-radius: .625rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; }
.bloco-ic.primario { background: rgb(var(--primary-rgb) / .11); color: var(--primary-texto); }
.bloco-ic.verde { background: rgb(var(--aceite-rgb) / .14); color: var(--aceite-forte); }
.bloco-ic.alerta { background: rgb(var(--st-pendencia-rgb) / .16); color: var(--txt-pendencia); }
.bloco-ic.erro { background: rgb(var(--st-reprovada-rgb) / .13); color: var(--txt-reprovada); }
.bloco-ic.neutro { background: rgb(var(--muted-foreground-rgb) / .12); color: var(--muted-foreground); }
.bloco-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .0625rem; }
.bloco-tit .t { font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; color: var(--foreground); }
.bloco-tit .s { font-size: .75rem; color: var(--muted-foreground); line-height: 1.5; }
.bloco-dir { display: inline-flex; align-items: center; gap: .625rem; flex-shrink: 0;
  color: var(--muted-foreground); font-size: .75rem; }
.bloco-seta { display: inline-flex; transition: transform .2s ease; color: var(--muted-foreground); }
.bloco.aberto .bloco-seta { transform: rotate(180deg); }
.bloco-corpo { padding: 0 1.25rem 1.25rem; }
.bloco-botao + .bloco-corpo { animation: entra .3s cubic-bezier(.16,1,.3,1) both; }
@media (min-width: 640px) {
  .bloco-topo, .bloco-botao { padding: 1.25rem 1.5rem; }
  .bloco-corpo { padding: 0 1.5rem 1.5rem; }
}
/* Uma régua separando cabeçalho e conteúdo, sem virar caixa dentro de caixa. */
.bloco-corpo > :first-child { margin-top: 0; }
.bloco.destaque { border-color: rgb(var(--primary-rgb) / .35); }

/* Dobra dentro de um cartão — para o que é detalhe, não decisão. */
.dobra-linha { border-top: 1px solid rgb(var(--border-rgb) / .55); }
.dobra-cab { display: flex; align-items: center; gap: .625rem; width: 100%; background: none;
  border: none; padding: .875rem 0; cursor: pointer; font: inherit; font-size: .8125rem;
  font-weight: 600; color: var(--muted-foreground); transition: color .15s ease; }
.dobra-cab:hover { color: var(--foreground); }
.dobra-cab > span:first-of-type { flex: 1; text-align: left; }
.dobra-cab .bloco-seta { transition: transform .2s ease; }
.dobra-cab .bloco-seta.on { transform: rotate(180deg); }

/* Régua com rótulo, para separar dois assuntos dentro do mesmo cartão. */
.regua { display: flex; align-items: center; gap: .875rem; margin: 1.5rem 0 1.25rem; }
.regua::before, .regua::after { content: ''; height: 1px; background: rgb(var(--border-rgb) / .7); flex: 1; }
.regua > span { font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted-foreground); }

.medidor { border-radius: .75rem; border: 1px solid rgb(var(--border-rgb) / .6);
  background: rgb(var(--background-rgb) / .4); padding: .875rem 1rem; }
.nota-solta { border-radius: .625rem; border: 1px solid rgb(var(--border-rgb) / .6);
  background: rgb(var(--background-rgb) / .4); padding: .875rem 1rem; }

.secao-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.secao-body { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.dot {
  width: 6px; height: 6px; border-radius: 999px; background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.375rem 0.875rem;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; border: 1px solid rgb(var(--primary-rgb) / 0.3);
  background: rgb(var(--primary-rgb) / 0.1); color: var(--primary-texto);
}

/* ===== FORMULÁRIO ===== */
.campo { display: flex; flex-direction: column; gap: 0.5rem; }
.campo > label { font-size: 0.875rem; font-weight: 600; }
.req { color: var(--primary-texto); margin-left: 0.125rem; }
.ajuda { font-size: 0.75rem; line-height: 1.6; color: var(--muted-foreground); }
.erro {
  display: flex; align-items: flex-start; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 500; color: var(--destructive);
}
.input, .select, .textarea {
  width: 100%; border-radius: 0.5rem; border: 1px solid var(--border);
  background: var(--input); color: var(--foreground);
  font: inherit; font-size: 0.875rem; padding: 0 1rem; height: 3rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { height: auto; padding: 0.75rem 1rem; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: rgb(var(--muted-foreground-rgb) / 0.7); }
.input:hover, .select:hover, .textarea:hover { border-color: rgb(var(--border-rgb) / 0.9); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgb(var(--primary-rgb) / 0.6);
  background: var(--input); box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / 0.15);
}
.input[aria-invalid='true'], .select[aria-invalid='true'] { border-color: rgb(var(--st-reprovada-rgb) / 0.6); }
.select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c7c88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.select option { background: var(--card); color: var(--foreground); }
.grid2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.prefixo { position: relative; }
.prefixo > span {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  pointer-events: none;
}
.prefixo .input { padding-left: 2.75rem; }

.aceite {
  display: flex; gap: 0.75rem; padding: 1rem; cursor: pointer;
  border-radius: 0.75rem; border: 1px solid rgb(var(--border-rgb) / 0.7);
  background: rgb(var(--background-rgb) / 0.3); transition: border-color 0.15s ease, background-color 0.15s ease;
}
.aceite:hover { border-color: var(--border); background: rgb(var(--background-rgb) / 0.5); }
.aceite.on { border-color: rgb(var(--primary-rgb) / 0.4); background: rgb(var(--primary-rgb) / 0.06); }
.aceite input { position: absolute; opacity: 0; width: 0; height: 0; }
.caixa {
  margin-top: 2px; flex-shrink: 0; width: 1.25rem; height: 1.25rem;
  border-radius: 0.375rem; border: 1px solid rgb(var(--muted-foreground-rgb) / 0.5);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.aceite.on .caixa { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.aceite input:focus-visible + .caixa { outline: 2px solid rgb(var(--primary-rgb) / 0.7); outline-offset: 2px; }

.dropzone {
  display: flex; align-items: center; gap: 1.25rem; width: 100%; text-align: left;
  padding: 1.5rem; border-radius: 0.75rem; border: 1px dashed var(--border);
  background: rgb(var(--background-rgb) / 0.3); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: rgb(var(--primary-rgb) / 0.6); background: rgb(var(--primary-rgb) / 0.06); }
.dz-icone {
  flex-shrink: 0; width: 3.25rem; height: 3.25rem; border-radius: 999px;
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--muted-foreground);
}
.dropzone.drag .dz-icone { border-color: rgb(var(--primary-rgb) / 0.5); color: var(--primary-texto); }

.arquivo {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem;
  border-radius: 0.5rem; border: 1px solid rgb(var(--border-rgb) / 0.7);
  background: rgb(var(--background-rgb) / 0.4);
}
.arquivo .thumb {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.375rem;
  background: var(--muted); display: flex; align-items: center;
  justify-content: center; color: var(--muted-foreground);
}
.truncar { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icone-btn {
  background: none; border: none; cursor: pointer; padding: 0.375rem;
  border-radius: 0.375rem; color: var(--muted-foreground); display: inline-flex;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icone-btn:hover { background: var(--muted); color: var(--destructive); }

/* ===== AVISOS ===== */
.aviso { border-radius: 0.75rem; border: 1px solid; padding: 1rem; display: flex; gap: 0.75rem; }
.aviso .txt { font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.aviso .tit { font-weight: 600; margin-bottom: 0.25rem; }
.aviso-info { border-color: rgb(var(--st-recebida-rgb) / 0.35); background: rgb(var(--st-recebida-rgb) / 0.1); color: var(--txt-recebida); }
.aviso-atencao { border-color: rgb(var(--st-pendencia-rgb) / 0.35); background: rgb(var(--st-pendencia-rgb) / 0.1); color: var(--txt-pendencia); }
.aviso-erro { border-color: rgb(var(--st-reprovada-rgb) / 0.4); background: rgb(var(--st-reprovada-rgb) / 0.1); color: var(--txt-reprovada); }
.aviso-ok { border-color: rgb(var(--aceite-rgb) / .4); background: rgb(var(--aceite-rgb) / .09); color: var(--aceite-claro); }
/* Bloco de resposta do cliente, dentro do aviso de pendência. */
.responder { border-top: 1px solid rgb(var(--border-rgb) / .7); padding-top: 1rem; }
/* ===== AVISO NO CANTO ============================================== */
/* Fixo no alto à esquerda, acompanhando a pessoa pela tela. Fica fora do
   #app para não ser recriado a cada redesenho. */
#aviso-canto {
  position: fixed; top: .875rem; left: .875rem; z-index: 30;
  width: min(15.5rem, calc(100vw - 1.75rem));
  pointer-events: none;
}
#aviso-canto:not(.visivel) { display: none; }
#aviso-canto .aviso {
  pointer-events: auto;
  /* A mensagem centralizada: o ícone sai da linha e vai para cima do texto,
     senão ele empurraria tudo e o "centro" ficaria falso. */
  flex-direction: column; align-items: center; text-align: center; gap: .3125rem;
  padding: .625rem .75rem;
  border-radius: .625rem;
  /* Discreto em repouso; ganha presença só quando a pessoa se aproxima. */
  opacity: .78;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 6px 18px -10px rgb(var(--sombra-rgb) / .5);
  animation: entrarCanto .5s cubic-bezier(.2, .9, .25, 1) both;
}
#aviso-canto .aviso:hover { opacity: 1; transform: translateY(-1px); }
#aviso-canto .aviso > svg:first-child { width: 13px; height: 13px; opacity: .85; }
#aviso-canto .tit { margin-bottom: 0; font-size: .75rem; line-height: 1.35; }
#aviso-canto .txt { font-size: .6875rem; line-height: 1.45; opacity: .9; }

@keyframes entrarCanto {
  from { opacity: 0; transform: translateX(-1.25rem) scale(.96); }
  to   { opacity: 1; transform: none; }
}
/* Em tela estreita o canto não existe: vira uma faixa no alto, sem tapar
   o cabeçalho. */
@media (max-width: 760px) {
  #aviso-canto {
    top: auto; bottom: .875rem; left: .875rem; right: .875rem; width: auto;
  }
  @keyframes entrarCanto {
    from { opacity: 0; transform: translateY(1rem) scale(.96); }
    to   { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  #aviso-canto .aviso { animation: none; opacity: .9; }
}

/* Bolinha no botão do Aviso quando ele está no ar. */
.ponto-aceso {
  width: 6px; height: 6px; border-radius: 999px; background: var(--aceite-forte);
  display: inline-block; margin-left: .375rem; flex-shrink: 0;
}

/* Editor e prévia lado a lado, empilhados em tela estreita. */
.split-config { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .split-config { grid-template-columns: 1fr 1fr; } }
.previa-aviso {
  border-radius: .75rem; border: 1px dashed rgb(var(--border-rgb) / .9);
  background: rgb(var(--background-rgb) / .5); padding: 1rem;
}

/* Cada retorno do cliente, no painel: destacado do que a equipe subiu. */
.retorno-cliente {
  border-radius: .75rem; border: 1px solid rgb(var(--aceite-rgb) / .3);
  background: rgb(var(--aceite-rgb) / .06); padding: .875rem 1rem;
}

/* ===== STEPPER ===== */
.stepper-mobile { display: block; }
.stepper-desktop { display: none; }
@media (min-width: 640px) {
  .stepper-mobile { display: none; }
  .stepper-desktop { display: block; position: relative; }
}
.barra { margin-top: 0.625rem; height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.barra > div { height: 100%; border-radius: 999px; background: var(--primary); transition: width 0.5s cubic-bezier(0.16,1,0.3,1); }
.trilha-linha { position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--border); }
.trilha-ativa { position: absolute; left: 0; top: 18px; height: 1px; background: var(--primary); transition: width 0.5s cubic-bezier(0.16,1,0.3,1); }
.marcos { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.marcos > li { flex: 1; display: flex; flex-direction: column; align-items: center; padding-inline: 0.5rem; }
.marco {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--background); color: var(--muted-foreground);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; transition: all 0.3s ease;
}
button.marco { cursor: pointer; }
.marco.feito { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.marco.agora { border-color: var(--primary); color: var(--primary-texto); box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.12); }
.marco-txt { margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); text-align: center; }
.marco-txt.on { color: var(--foreground); }

/* ===== STATUS ===== */
.status {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  border: 1px solid; padding: 0.375rem 0.875rem; font-size: 0.75rem; font-weight: 600;
  white-space: nowrap;
}
.status.sm { padding: 0.25rem 0.625rem; font-size: 0.6875rem; }
.s-recebida { border-color: rgb(var(--st-recebida-rgb) / 0.4); background: rgb(var(--st-recebida-rgb) / 0.12); color: var(--txt-recebida); }
.s-em_analise { border-color: rgb(var(--st-analise-rgb) / 0.4); background: rgb(var(--st-analise-rgb) / 0.12); color: var(--txt-analise); }
.s-pendencia { border-color: rgb(var(--st-pendencia-rgb) / 0.4); background: rgb(var(--st-pendencia-rgb) / 0.14); color: var(--txt-pendencia); }
.s-aprovada { border-color: rgb(var(--aceite-rgb) / 0.5); background: rgb(var(--aceite-rgb) / 0.12); color: var(--aceite-forte); }
.s-reprovada { border-color: rgb(var(--st-reprovada-rgb) / 0.4); background: rgb(var(--st-reprovada-rgb) / 0.12); color: var(--txt-reprovada); }

.trilha { display: flex; flex-direction: column; }
@media (min-width: 640px) { .trilha { flex-direction: row; } }
.trilha > li { position: relative; display: flex; gap: 1rem; padding-bottom: 2rem; }
.trilha > li:last-child { padding-bottom: 0; }
@media (min-width: 640px) {
  .trilha > li { flex: 1; flex-direction: column; align-items: center; gap: 0; padding-bottom: 0; }
}
.conector-v { position: absolute; left: 19px; top: 2.5rem; width: 1px; height: calc(100% - 1.5rem); background: var(--border); }
.conector-h { display: none; }
@media (min-width: 640px) {
  .conector-v { display: none; }
  .conector-h { display: block; position: absolute; left: 50%; top: 20px; width: 100%; height: 1px; background: var(--border); }
}
.conector-v.on, .conector-h.on { background: var(--primary); }
.marco-status {
  position: relative; z-index: 1; flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--background);
  color: rgb(var(--muted-foreground-rgb) / 0.6); display: flex; align-items: center; justify-content: center;
}
.marco-status.feito { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.marco-status.aprovado { background: var(--aceite); border-color: var(--aceite); color: #fff; box-shadow: 0 0 0 4px rgb(var(--aceite-rgb) / .18); }
.conector-v.aprovado, .conector-h.aprovado { background: var(--aceite); }
.marco-status.agora { border-color: var(--primary); background: rgb(var(--primary-rgb) / 0.15); color: var(--primary-texto); box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.12); }
.marco-status.alerta { border-color: var(--warning); background: rgb(var(--st-pendencia-rgb) / 0.15); color: var(--warning); box-shadow: none; }
.marco-status.falha { border-color: var(--destructive); background: rgb(var(--st-reprovada-rgb) / 0.15); color: var(--destructive); box-shadow: none; }
.trilha-rot { padding-top: 0.5rem; }
@media (min-width: 640px) { .trilha-rot { padding-top: 0.75rem; text-align: center; } }

/* ===== LISTAS DE DADOS ===== */
.dl-linha {
  display: flex; flex-direction: column; gap: 0.25rem;
  border-bottom: 1px solid rgb(var(--border-rgb) / 0.4); padding: 0.75rem 0;
}
.dl-linha:last-child { border-bottom: none; }
@media (min-width: 640px) {
  .dl-linha { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
  .dl-linha dd { text-align: right; }
}
.dt {
  font-size: 0.6875rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted-foreground);
}
.dd { font-size: 0.875rem; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.info-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

.historico > li { position: relative; display: flex; gap: 0.875rem; padding-bottom: 1.25rem; }
.historico > li:last-child { padding-bottom: 0; }
.hist-linha { position: absolute; left: 5px; top: 1rem; width: 1px; height: calc(100% - 0.5rem); background: var(--border); }
.hist-ponto { position: relative; z-index: 1; margin-top: 0.375rem; width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }

/* ===== ADMIN ===== */
.admin-bar {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(var(--border-rgb) / 0.6);
  background: var(--background);
}
.admin-bar-in {
  max-width: 80rem; margin-inline: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 0.875rem 1.25rem;
}
.avatar {
  width: 2rem; height: 2rem; border-radius: 999px; display: flex;
  align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 700;
  border: 1px solid rgb(var(--primary-rgb) / 0.25); background: rgb(var(--primary-rgb) / 0.1); color: var(--primary-texto);
}
.filtros { display: flex; gap: 0.5rem; width: max-content; }
.filtros-wrap { overflow-x: auto; padding-bottom: 0.25rem; margin-top: 1.5rem; }
.filtro {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  border-radius: 999px; border: 1px solid var(--border); background: rgb(var(--card-rgb) / 0.4);
  color: var(--muted-foreground); padding: 0.5rem 1rem; font-size: 0.75rem;
  font-weight: 600; cursor: pointer; transition: all 0.15s ease;
}
.filtro:hover { color: var(--foreground); }
.filtro.on { border-color: rgb(var(--primary-rgb) / 0.4); background: rgb(var(--primary-rgb) / 0.1); color: var(--primary-texto); }
.filtro .cont { border-radius: 999px; background: var(--muted); padding: 0.125rem 0.375rem; font-size: 0.625rem; font-weight: 700; }
.filtro.on .cont { background: rgb(var(--primary-rgb) / 0.2); }

.tabela-wrap { display: none; overflow-x: auto; }
.lista-cards { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 1024px) {
  .tabela-wrap { display: block; }
  .lista-cards { display: none; }
}
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.875rem; }
thead tr { border-bottom: 1px solid rgb(var(--border-rgb) / 0.6); }
th {
  padding: 1rem 1.5rem; font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground);
}
td { padding: 1rem 1.5rem; border-bottom: 1px solid rgb(var(--border-rgb) / 0.4); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color 0.15s ease; cursor: pointer; }
tbody tr:hover { background: rgb(var(--muted-rgb) / 0.5); }
.ta-dir { text-align: right; }

.card-linha {
  display: block; border-radius: 0.75rem; border: 1px solid rgb(var(--border-rgb) / 0.6);
  background: rgb(var(--card-rgb) / 0.5); padding: 1rem; cursor: pointer;
  transition: border-color 0.15s ease;
}
.card-linha:hover { border-color: rgb(var(--primary-rgb) / 0.4); }

.split { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 22rem; align-items: start; } }

.exemplo {
  display: inline-flex; align-items: center; border-radius: 999px;
  border: 1px solid rgb(var(--muted-foreground-rgb) / 0.3); padding: 0.0625rem 0.5rem;
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-foreground);
}

.opcao-status {
  display: flex; width: 100%; align-items: center; gap: 0.75rem; text-align: left;
  border-radius: 0.5rem; border: 1px solid rgb(var(--border-rgb) / 0.7);
  background: rgb(var(--background-rgb) / 0.3); padding: 0.75rem; font-size: 0.875rem;
  cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.opcao-status:hover { border-color: var(--border); }
.opcao-status.on { border-color: rgb(var(--primary-rgb) / 0.5); background: rgb(var(--primary-rgb) / 0.08); }
.opcao-status:disabled { opacity: 0.4; cursor: default; }

/* Opções do seletor de programa: ativo em azul, ex-cliente em âmbar.
   Onde o navegador ignora cor em <option>, os <optgroup> ainda separam. */
option.opcao-ativo { color: var(--primary-texto); font-weight: 600; }
option.opcao-ex { color: var(--warning); font-weight: 600; }
/* ===== PAINEL: navegação, números e pré-análise ===== */
/* Sob 640px a barra fica apertada: o rótulo sai e sobra espaço para o nome. */
@media (max-width: 640px) {
  .admin-bar-in > button:first-child .dt { display: none; }
  .admin-bar-in { padding-inline: 1rem; }
}
.admin-nav { max-width: 80rem; margin-inline: auto; overflow-x: auto; padding: 0 1.25rem; }
.admin-nav ul { display: flex; gap: 0.25rem; width: max-content; }
.admin-nav button {
  display: inline-flex; align-items: center; gap: 0.5rem; border: none; background: none;
  cursor: pointer; font: inherit; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); padding: 0.625rem 0.75rem;
  border-bottom: 2px solid transparent; transition: color 0.15s ease;
}
.admin-nav button:hover { color: var(--foreground); }
.admin-nav button.on { border-bottom-color: var(--primary); color: var(--primary-texto); }

.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.kpi { padding: 1.25rem; }
.kpi .val { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em;
  margin-top: 0.75rem; overflow-wrap: normal; word-break: keep-all; }
/* Valores longos (moeda) encolhem em vez de quebrar no meio do número. */
.kpi .val.longo { font-size: clamp(1.0625rem, 1.7vw, 1.375rem); }
.kpi.alerta { border-color: rgb(var(--st-pendencia-rgb) / 0.45); }
.kpi.bom { border-color: rgb(var(--aceite-rgb) / 0.4); }
.kpi.clic { cursor: pointer; transition: border-color 0.15s ease; }
.kpi.clic:hover { border-color: rgb(var(--primary-rgb) / 0.45); }

.mini { display: block; height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.mini > i { display: block; height: 100%; border-radius: 999px; background: rgb(var(--primary-rgb) / 0.7); transition: width 0.5s ease; }

.grid-status { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.bloco-status {
  border-radius: 0.5rem; border: 1px solid rgb(var(--border-rgb) / 0.6);
  background: rgb(var(--background-rgb) / 0.4); padding: 1rem; cursor: pointer;
  transition: border-color 0.15s ease; display: block; width: 100%; text-align: left; font: inherit;
}
.bloco-status:hover { border-color: rgb(var(--primary-rgb) / 0.4); }

.nav-fila {
  width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid var(--border);
  background: none; color: var(--muted-foreground); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: color .15s ease;
}
.nav-fila:hover:not(:disabled) { color: var(--foreground); }
.nav-fila:disabled { opacity: .4; cursor: default; }
.chip { width: 1.5rem; height: 1.5rem; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0; }
.chip.ok { background: rgb(var(--aceite-rgb) / 0.14); color: var(--aceite-forte); }
.chip.atencao { background: rgb(var(--st-pendencia-rgb) / 0.15); color: var(--txt-pendencia); }
.chip.falha { background: rgb(var(--st-reprovada-rgb) / 0.12); color: var(--txt-reprovada); }
.borda-ok { border-color: rgb(var(--aceite-rgb) / 0.4) !important; }
.borda-atencao { border-color: rgb(var(--st-pendencia-rgb) / 0.45) !important; }
.borda-falha { border-color: rgb(var(--st-reprovada-rgb) / 0.45) !important; }
.analise-item { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid rgb(var(--border-rgb) / 0.5); }
.analise-item:first-child { border-top: none; padding-top: 0; }

.filtros-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.rot-filtro {
  display: block; margin-bottom: 0.375rem; font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground);
}
.chk { width: 1rem; height: 1rem; accent-color: var(--primary); cursor: pointer; }
tbody tr.sel { background: rgb(var(--primary-rgb) / 0.07); }
.card-linha.sel { border-color: rgb(var(--primary-rgb) / 0.5); background: rgb(var(--primary-rgb) / 0.06); }
.tracejado {
  border-radius: 0.5rem; border: 1px dashed var(--border);
  background: rgb(var(--background-rgb) / 0.4); padding: 1rem;
  font-size: 0.75rem; line-height: 1.65; color: var(--muted-foreground);
}

.legenda-cores {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: -.75rem;
  font-size: .75rem; color: var(--muted-foreground);
}
.legenda-cores > span { display: inline-flex; align-items: center; gap: .5rem; }
.bolinha { width: 8px; height: 8px; border-radius: 999px; display: block; }

.vazio { display: flex; flex-direction: column; align-items: center; padding: 3.5rem 1.5rem; text-align: center; }
.vazio-ic {
  width: 3.5rem; height: 3.5rem; border-radius: 999px; border: 1px solid var(--border);
  background: rgb(var(--background-rgb) / 0.5); color: var(--muted-foreground);
  display: flex; align-items: center; justify-content: center;
}

/* ===== UTILITÁRIOS ===== */
.pilha { display: flex; flex-direction: column; }
.g1 { gap: 0.5rem; } .g2 { gap: 0.75rem; } .g3 { gap: 1rem; }
.g4 { gap: 1.25rem; } .g5 { gap: 1.5rem; } .g6 { gap: 2rem; }
.linha { display: flex; align-items: center; gap: 0.75rem; }
.entre { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.mt1 { margin-top: 0.5rem; } .mt2 { margin-top: 1rem; } .mt3 { margin-top: 1.5rem; }
.mt4 { margin-top: 2rem; } .mt5 { margin-top: 2.5rem; } .mt6 { margin-top: 3rem; }
.peq { font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.6; }
.med { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }
.forte { font-weight: 600; color: var(--foreground); }
.verde { color: var(--primary-texto); }
/* Navegação do wizard: no celular a ação principal fica embaixo, ao alcance do polegar. */
.acoes { display: flex; flex-direction: column-reverse; gap: 0.75rem; }
@media (min-width: 640px) {
  .acoes { flex-direction: row; align-items: center; justify-content: space-between; }
}
/* Chamadas da home e da confirmação: a ação principal vem primeiro, sempre. */
.acoes-par { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .acoes-par { flex-direction: row; justify-content: center; } }

.consulta-linha { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) {
  .consulta-linha { flex-direction: row; align-items: flex-end; }
  .consulta-linha .btn { flex-shrink: 0; }
}
/* ===== HOME: herói centralizado e título animado ================== */
/* Sem os três cartões, o herói ocupa o espaço que sobra entre o topo e o
   rodapé e fica centrado nele. Como .aurora já é uma coluna de 100dvh e
   .shell tem flex:1, não é preciso fixar altura — assim a página cabe numa
   tela só, sem rolagem sobrando embaixo. */
.shell.heroi {
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: 2rem;
}

/* Cada palavra sobe e entra em foco, uma depois da outra. */
.hero-titulo { display: block; }
.pal {
  display: inline-block;
  animation: subirPalavra .7s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.12s + var(--i) * .09s);
}
@keyframes subirPalavra {
  from { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* A palavra destacada usa o gradiente da marca. Sozinha ele fica parado —
   é o estado de repouso, idêntico ao fim da animação. */
.brilho {
  display: inline-block;
  background: linear-gradient(100deg,
    var(--primary) 0%, var(--primary) 30%,
    var(--primary-glow) 45%, #ffd9c2 50%, var(--primary-glow) 55%,
    var(--primary) 70%, var(--primary) 100%);
  background-size: 300% 100%;
  background-position: 130% 50%;
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
/* Ao entrar em cena, ela sobe junto com as outras e depois ganha um brilho
   que atravessa devagar, em laço. */
.pal.brilho {
  animation:
    subirPalavra .7s cubic-bezier(.2, .8, .2, 1) both,
    varrer 5.5s ease-in-out 1.4s infinite;
  animation-delay: calc(.12s + var(--i) * .09s), 1.4s;
}
@keyframes varrer {
  0%, 100% { background-position: 130% 50%; }
  45%, 55% { background-position: -30% 50%; }
}

/* O resto do herói sobe depois do título, cada um no seu tempo. */
.surge { animation: surgir .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--atraso, 0s); }
.hero-logo { animation: surgir .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes surgir {
  from { opacity: 0; transform: translateY(.75rem); }
  to   { opacity: 1; transform: none; }
}

/* Quem pediu menos movimento vê tudo parado e legível. */
@media (prefers-reduced-motion: reduce) {
  .pal, .surge, .hero-logo { animation: none; opacity: 1; transform: none; filter: none; }
  .brilho { background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; }
}
.selo-ok {
  width: 4rem; height: 4rem; border-radius: 999px; margin-inline: auto;
  border: 1px solid rgb(var(--primary-rgb) / 0.3); background: rgb(var(--primary-rgb) / 0.1);
  color: var(--primary-texto); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgb(var(--primary-rgb) / 0.1);
}
.recado-prazo {
  display: flex; gap: .75rem; margin-top: 1.75rem; text-align: left;
  border-radius: .75rem; border: 1px solid rgb(var(--primary-rgb) / .25);
  background: rgb(var(--primary-rgb) / .06); padding: 1.25rem;
  font-size: .875rem; line-height: 1.65;
}
.recado-ic { flex-shrink: 0; color: var(--primary-texto); margin-top: 2px; display: flex; }

.protocolo { font-family: var(--mono); font-size: clamp(1.5rem, 5vw, 1.875rem);
             font-weight: 700; letter-spacing: -0.02em; color: var(--primary-texto); }
.toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 0.75rem; border: none; border-top: 1px solid rgb(var(--border-rgb) / 0.5);
  background: transparent; padding: 1rem 1.5rem; font-size: 0.875rem;
  font-weight: 500; color: var(--muted-foreground); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.toggle:hover { background: rgb(var(--muted-rgb) / 0.4); color: var(--foreground); }
.detalhes { border-top: 1px solid rgb(var(--border-rgb) / 0.5); background: rgb(var(--background-rgb) / 0.3); padding: 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Brilho sutil ao passar o mouse: halo curto na cor da marca. */
.aceite, .tile-categoria, .produtos a, .logos-principais a, button.marco {
  transition: box-shadow .25s ease, transform .25s ease,
    border-color .15s ease, background-color .15s ease, opacity .25s ease;
}
@media (hover: hover) {
  .aceite:hover, .tile-categoria:hover, button.marco:hover {
    box-shadow:
      0 0 0 1px rgb(var(--primary-rgb) / .22),
      0 6px 22px -8px rgb(var(--primary-rgb) / .45);
  }
  .aceite:hover, .tile-categoria:hover { transform: translateY(-1px); }
  .aceite:hover, .tile-categoria:hover { border-color: rgb(var(--primary-rgb) / .4); }
  /* Nas logos o halo é neutro: elas não são da cor da marca da aplicação. */
  .produtos a:not(.arroba), .logos-principais a { display: block; border-radius: .5rem; padding: .25rem; }
  .produtos a:not(.arroba):hover, .logos-principais a:hover {
    box-shadow:
      0 0 0 1px rgb(var(--border-rgb) / .9),
      0 8px 24px -10px rgb(var(--sombra-rgb) / .35);
  }
}

/* ===== LISTA SUSPENSA PRÓPRIA =====================================
   O <select> nativo entrega a lista ao sistema operacional: a cor da opção
   sai borrada e nada combina com a tela. Aqui controlamos tudo. */
/* Sem isto a lista abriria atrás do cartão seguinte. */
.card.acima { position: relative; z-index: 30; }
.seletor { position: relative; }
.seletor-botao {
  display: flex; align-items: center; gap: .75rem; width: 100%; height: 3rem;
  padding: 0 1rem; border-radius: .5rem; border: 1px solid var(--border);
  background: rgb(var(--muted-rgb) / .55); text-align: left; font: inherit;
  font-size: .875rem; cursor: pointer; transition: all .15s ease;
}
.seletor-botao:hover { border-color: rgb(var(--border-rgb) / .9); }
.seletor-botao.aberto, .seletor-botao:focus-visible {
  border-color: rgb(var(--primary-rgb) / .6); background: var(--input);
  box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / .15); outline: none;
}
.seletor-botao .rotulo { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seletor-botao .rotulo.vazio { color: var(--muted-foreground); }
.seletor-botao .chevron { flex-shrink: 0; color: var(--muted-foreground); transition: transform .2s ease; display: flex; }
.seletor-botao.aberto .chevron { transform: rotate(180deg); }

.seletor-lista {
  position: absolute; z-index: 50; top: calc(100% + .5rem); left: 0; right: 0;
  max-height: 18rem; overflow-y: auto; padding: .5rem 0;
  border-radius: .75rem; border: 1px solid var(--border); background: var(--card);
  box-shadow: 0 20px 44px -20px rgb(var(--sombra-rgb) / .55);
  animation: entra-lista .15s ease both;
}
@keyframes entra-lista { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }

.seletor-grupo + .seletor-grupo {
  margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgb(var(--border-rgb) / .6);
}
.seletor-grupo-rot {
  display: flex; align-items: center; gap: .5rem; padding: .25rem 1rem .375rem;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted-foreground);
}
.ponto-grupo { width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; display: block; }
.seletor-opcao {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .625rem 1rem; border: none; background: none; text-align: left;
  /* Era um azul-petróleo escuro, do tempo do tema claro: sobre o fundo
     escuro ficava quase invisível. */
  font: inherit; font-size: .875rem; color: var(--foreground); cursor: pointer;
  transition: background-color .15s ease;
}
.seletor-opcao:hover { background: rgb(var(--primary-rgb) / .07); }
.seletor-opcao.on { font-weight: 600; color: var(--foreground); }
.seletor-opcao .ponto-grupo { width: 8px; height: 8px; }
.seletor-opcao .marca-ok { flex-shrink: 0; color: var(--primary-texto); display: flex; }

/* Período calculado e aviso das datas */
.periodo-ok {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: -.75rem;
  border-radius: 999px; border: 1px solid rgb(var(--aceite-rgb) / .35);
  background: rgb(var(--aceite-rgb) / .1); color: var(--aceite-forte);
  padding: .375rem .875rem; font-size: .8125rem; font-weight: 600;
}
/* O mesmo selo, em âmbar, quando o período estoura a janela da categoria. */
.periodo-ok.atencao {
  border-color: rgb(var(--warning-rgb) / .35);
  background: rgb(var(--warning-rgb) / .1);
  color: var(--warning);
}
/* O card dentro da confirmação de aprovação: separado do resto por uma
   borda, para não se confundir com os campos da decisão. */
.card-aprovacao {
  border-radius: .75rem; border: 1px solid rgb(var(--aceite-rgb) / .3);
  background: rgb(var(--aceite-rgb) / .05); padding: 1rem;
}

/* Confirmação discreta de que o período cabe na categoria escolhida. */
.nota-periodo {
  display: flex; align-items: center; gap: .375rem; margin-top: .5rem;
  font-size: .8125rem; color: var(--muted-foreground);
}
.nota-periodo svg { flex-shrink: 0; color: var(--aceite-forte); }
.sugestao-valor {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem;
  margin-top: .5rem; font-size: .75rem; color: var(--muted-foreground);
}
.sugestao-valor .btn-usar {
  background: none; border: none; padding: 0; font: inherit; font-weight: 600;
  color: var(--primary-texto); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

/* ===== POP-UP DE REGRAS ========================================== */
.modal-fundo {
  position: fixed; inset: 0; z-index: 100; display: flex;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgb(var(--sombra-rgb) / 0.45);
  backdrop-filter: blur(4px);
  animation: entra-fundo .2s ease both;
}
@keyframes entra-fundo { from { opacity: 0 } to { opacity: 1 } }

.modal-caixa {
  display: flex; flex-direction: column; width: 100%; max-width: 46rem;
  max-height: min(88dvh, 52rem); overflow: hidden;
  border-radius: 1.25rem; background: var(--card);
  border: 1px solid rgb(var(--aceite-rgb) / .35);
  box-shadow: 0 32px 64px -24px rgb(var(--sombra-rgb) / .55),
    0 0 0 1px rgb(var(--aceite-rgb) / .12);
  animation: entra-caixa .3s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes entra-caixa {
  from { opacity: 0; transform: translateY(16px) scale(.985) }
  to { opacity: 1; transform: none }
}

.modal-topo {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgb(var(--border-rgb) / .6);
  background: linear-gradient(180deg, rgb(var(--aceite-rgb) / .1), transparent);
}
.modal-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--aceite);
}
.modal-titulo {
  margin-top: .625rem; font-size: 1.125rem; font-weight: 700;
  line-height: 1.3; letter-spacing: -.01em; text-wrap: balance;
}
@media (min-width: 640px) { .modal-titulo { font-size: 1.25rem; } }

.modal-corpo { flex: 1; overflow-y: auto; padding: 1.5rem; scroll-behavior: smooth; }
.bloco-modal + .bloco-modal { margin-top: 2rem; }
.bloco-modal-tit {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--primary-texto);
}

.lista-declaracoes { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.lista-declaracoes > li { display: flex; gap: .75rem; }
.num-declaracao {
  flex-shrink: 0; margin-top: 1px; width: 1.25rem; height: 1.25rem;
  border-radius: .375rem; border: 1px solid rgb(var(--aceite-rgb) / .3);
  background: rgb(var(--aceite-rgb) / .1); color: var(--aceite-forte);
  display: flex; align-items: center; justify-content: center;
  font-size: .625rem; font-weight: 700;
}
.lista-declaracoes > li > span:last-child {
  max-width: 68ch; font-size: .8125rem; line-height: 1.75; color: var(--muted-foreground);
}

.modal-rodape {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.125rem 1.5rem; border-top: 1px solid rgb(var(--border-rgb) / .6);
  background: color-mix(in srgb, var(--card) 96%, var(--aceite));
}
@media (min-width: 560px) {
  .lista-declaracoes { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.lista-declaracoes > li { display: flex; gap: .75rem; }
.num-declaracao {
  flex-shrink: 0; margin-top: 1px; width: 1.25rem; height: 1.25rem;
  border-radius: .375rem; border: 1px solid rgb(var(--aceite-rgb) / .3);
  background: rgb(var(--aceite-rgb) / .1); color: var(--aceite-forte);
  display: flex; align-items: center; justify-content: center;
  font-size: .625rem; font-weight: 700;
}
.lista-declaracoes > li > span:last-child {
  max-width: 68ch; font-size: .8125rem; line-height: 1.75; color: var(--muted-foreground);
}

.modal-rodape { flex-direction: row; align-items: center; justify-content: space-between; }
}

.btn-aceite {
  background: var(--aceite); color: #fff; font-weight: 700;
  box-shadow: 0 10px 24px -12px rgb(var(--aceite-rgb) / .9);
  width: 100%;
}
@media (min-width: 560px) { .btn-aceite { width: auto; } }
.btn-aceite:hover:not(:disabled) { background: var(--aceite-forte); }
.btn-aceite:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.selo-regras {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; border: 1px solid rgb(var(--aceite-rgb) / .4);
  background: rgb(var(--aceite-rgb) / .1); color: var(--aceite-forte);
  padding: .375rem .75rem; font-size: .75rem; font-weight: 600;
}

/* ===== ETAPA DE REGRAS =========================================== */
.grid-resumo { display: grid; gap: .75rem; }
@media (min-width: 640px) { .grid-resumo { grid-template-columns: repeat(3, 1fr); } }
.tile-resumo {
  border-radius: .75rem; border: 1px solid rgb(var(--border-rgb) / .7);
  background: rgb(var(--background-rgb) / .4); padding: 1rem;
}
.tile-rot {
  display: flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted-foreground);
}
.tile-rot svg { color: var(--primary-texto); }
.tile-val {
  margin-top: .5rem; font-size: .875rem; font-weight: 700;
  line-height: 1.35; text-wrap: balance;
}

.grid-categorias { display: grid; gap: .75rem; }
@media (min-width: 640px) { .grid-categorias { grid-template-columns: 1fr 1fr; } }
.tile-categoria {
  display: flex; align-items: baseline; gap: .75rem;
  border-radius: .75rem; border: 1px solid rgb(var(--border-rgb) / .7);
  background: rgb(var(--background-rgb) / .4); padding: .875rem 1rem;
}
.cat-sigla { font-size: 1rem; font-weight: 700; color: var(--primary-texto); }
.cat-meta { font-size: .875rem; line-height: 1.35; }

.alerta-regra {
  display: flex; gap: .625rem; border-radius: .75rem;
  border: 1px solid rgb(var(--st-pendencia-rgb) / .35);
  background: rgb(var(--st-pendencia-rgb) / .09);
  padding: 1rem; font-size: .875rem; line-height: 1.6;
}
.alerta-ic { flex-shrink: 0; color: var(--warning); margin-top: 2px; display: flex; }

.regulamento > .secao-regra { padding: 1.75rem 0; border-top: 1px solid rgb(var(--border-rgb) / .5); }
.regulamento > .secao-regra.primeira { padding-top: 0; border-top: none; }
.regulamento > .secao-regra:last-child { padding-bottom: 0; }
.regra-titulo { display: flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 700; }
.regra-ic {
  flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: .5rem;
  border: 1px solid rgb(var(--primary-rgb) / .25); background: rgb(var(--primary-rgb) / .1);
  color: var(--primary-texto); display: flex; align-items: center; justify-content: center;
}
.regra-itens { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .regra-itens { padding-left: 2.375rem; } }
.regra-itens > li { display: flex; gap: .75rem; }
.regra-itens .marcador {
  flex-shrink: 0; margin-top: .5625rem; width: 6px; height: 6px;
  border-radius: 999px; background: rgb(var(--primary-rgb) / .5);
}
.regra-itens > li > span:last-child {
  max-width: 68ch; font-size: .8125rem; line-height: 1.75; color: var(--muted-foreground);
}
@media (min-width: 640px) { .secao-regra .alerta-regra { margin-left: 2.375rem; } }

/* Barra de preenchimento do formulário */
/* Não usa position:sticky de propósito: o `overflow-x: clip` do fundo
   impede o Chrome de prender elementos sticky. O espaçador guarda o lugar
   e a barra vira `fixed` quando encosta no topo. */
.preenchimento-espaco { margin-top: 1.5rem; min-height: 3.25rem; }
.preenchimento {
  display: flex; align-items: center; gap: .75rem;
  margin: 0 -1.25rem; padding: .875rem 1.25rem;
  border-bottom: 1px solid rgb(var(--border-rgb) / .5);
  background: var(--background);
}
@media (min-width: 640px) { .preenchimento { margin-inline: -1.5rem; padding-inline: 1.5rem; } }
.preenchimento.fixa {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 45; margin: 0;
  padding-inline: max(1.25rem, calc((100vw - 48rem) / 2 + 1.25rem));
  box-shadow: 0 8px 20px -16px rgb(var(--sombra-rgb) / .6);
}
.preenchimento .frase {
  flex-shrink: 0; font-size: .75rem; font-weight: 600; color: var(--aceite-forte);
}
.preenchimento .etapa-atual { flex-shrink: 0; font-size: .75rem; font-weight: 600; }
[data-secao] { scroll-margin-top: 5.5rem; }
#acoes-wizard { scroll-margin-top: 7rem; }
.preenchimento .trilho {
  flex: 1; height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden;
}
/* Verde do começo ao fim: é a cor de "avanço" do formulário. */
.preenchimento .trilho > div {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--aceite), var(--aceite-claro));
  transition: width .5s cubic-bezier(.16, 1, .3, 1);
}
.preenchimento .rotulo-pct {
  flex-shrink: 0; font-size: .75rem; font-weight: 700; color: var(--aceite-forte);
}

/* Halo discreto que segue o ponteiro. Fica atrás do conteúdo e não
   recebe cliques; só aparece em quem navega com mouse. */
#luz-cursor {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 6rem; height: 6rem; margin: -3rem 0 0 -3rem;
  pointer-events: none; opacity: 0;
  transition: opacity .5s ease;
  filter: blur(10px);
  background: radial-gradient(circle,
    rgb(255 255 255 / .04) 0%,
    rgb(255 255 255 / .014) 38%,
    transparent 68%);
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  #luz-cursor { display: none; }
}

/* ===== COMEMORAÇÃO DE 100% ======================================= */
#celebracao {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
#celebracao[hidden] { display: none; }
#confete { position: absolute; inset: 0; width: 100%; height: 100%; }
#foguete {
  position: absolute; bottom: 0; left: 50%; font-size: 3rem;
  animation: foguete 2.6s cubic-bezier(.32, 0, .3, 1) .15s both;
}
@keyframes foguete {
  0% { transform: translate(-50%, 20vh) rotate(-12deg) scale(.9); opacity: 0 }
  12% { opacity: 1 }
  85% { opacity: 1 }
  100% { transform: translate(calc(-50% + 12vw), -115vh) rotate(-4deg) scale(1.1); opacity: 0 }
}
.cartao-festa {
  position: relative; max-width: 24rem; text-align: center;
  border-radius: 1rem; border: 1px solid rgb(var(--aceite-rgb) / .4);
  background: var(--card); padding: 1.5rem 1.75rem;
  box-shadow: 0 28px 56px -24px rgb(var(--sombra-rgb) / .5);
  animation: entra .45s cubic-bezier(.16, 1, .3, 1) both;
}
.festa-ic {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin: 0 auto; border-radius: 999px;
  border: 1px solid rgb(var(--aceite-rgb) / .3);
  background: rgb(var(--aceite-rgb) / .1); font-size: 1.5rem;
}
.festa-titulo { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.festa-texto { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }
@media (prefers-reduced-motion: reduce) {
  #confete, #foguete { display: none; }
}

/* ===== INDICADOR DE ROLAGEM =====================================
   Barra fina de progresso no topo + botão flutuante que só aparece
   quando ainda há conteúdo abaixo da dobra. */
#progresso-rolagem {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  pointer-events: none;
}
#progresso-rolagem > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-glow));
  transition: width 0.12s linear;
}

#rolar-mais {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 55;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid rgb(var(--primary-rgb) / 0.35);
  background: var(--card);
  box-shadow: 0 12px 28px -14px rgb(var(--sombra-rgb) / 0.8);
  font-size: 0.75rem; font-weight: 600; color: var(--primary-texto);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.15s ease,
    border-color 0.15s ease;
}
#rolar-mais.visivel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
#rolar-mais:hover { border-color: var(--primary); background: var(--card); }
#rolar-mais .seta { display: flex; animation: balancar 1.8s ease-in-out infinite; }
@keyframes balancar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (max-width: 420px) {
  #rolar-mais .rotulo { display: none; }
  #rolar-mais { padding: 0.625rem; }
}

.entra { animation: entra 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Alternador (switch) dos disparos. */
.alternador {
  width: 2.5rem; height: 1.375rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--muted); position: relative; cursor: pointer; flex-shrink: 0;
  transition: background-color .18s ease, border-color .18s ease; padding: 0;
}
.alternador .bola {
  position: absolute; top: 1px; left: 1px; width: 1.125rem; height: 1.125rem; border-radius: 999px;
  background: var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .18s ease;
}
.alternador.on { background: var(--primary); border-color: var(--primary); }
.alternador.on .bola { transform: translateX(1.125rem); }
.rot-alternador { font-size: .8125rem; color: var(--foreground); cursor: pointer; }
tbody tr.sem-clique { cursor: default; }
tbody tr.sem-clique:hover { background: transparent; }
.kpi-mini { padding: 1rem 1.125rem; }
.kpi-mini .rot { font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted-foreground); }
.kpi-mini .val { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-top: .5rem; }
.kpis-linha { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

/* Agentes da análise por IA. */
.chip.pendente { background: rgb(var(--muted-foreground-rgb) / .14); color: var(--muted-foreground); }
.agentes { display: flex; flex-direction: column; gap: .5rem; }
.agente { border: 1px solid rgb(var(--border-rgb) / .7); border-radius: .75rem; overflow: hidden;
  background: rgb(var(--background-rgb) / .35); }
.agente.on { border-color: rgb(var(--primary-rgb) / .4); }
.agente-cab { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .75rem .875rem;
  background: none; border: none; cursor: pointer; color: var(--foreground); font: inherit; text-align: left; }
.agente-cab:hover { background: rgb(var(--muted-rgb) / .45); }
.agente-corpo { padding: 0 .875rem .875rem; }
.agente-corpo ul { margin-top: .25rem; }
.foto-campo { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.foto-previa { width: 5rem; height: 5rem; border-radius: 999px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; border: 2px dashed var(--border);
  background: rgb(var(--muted-rgb) / .5); color: var(--muted-foreground); }
.foto-previa.com { border-style: solid; border-color: rgb(var(--aceite-rgb) / .6); }
.foto-previa img { width: 100%; height: 100%; object-fit: cover; }

/* Mede o espaço que sobrou para o bloco, não a largura da janela: assim
   ele não quebra quando entra numa coluna estreita. */
.card-wrap { container-type: inline-size; }
.card-gerador { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@container (min-width: 33rem) { .card-gerador { grid-template-columns: 16rem 1fr; } }
@supports not (container-type: inline-size) {
  @media (min-width: 1100px) { .card-gerador { grid-template-columns: 16rem 1fr; } }
}
.card-previa { border-radius: .875rem; overflow: hidden; background: #07202a;
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / .6); max-width: 20rem; margin-inline: auto; width: 100%; }
.card-previa canvas { width: 100%; height: auto; display: block; }
.card-gerador .rot-filtro, .card-gerador label { overflow-wrap: normal; }
.card-ajuste { border-radius: .75rem; border: 1px solid rgb(var(--border-rgb) / .7);
  background: rgb(var(--background-rgb) / .4); padding: .875rem 1rem; }
.card-ajuste input[type=range] { width: 100%; accent-color: var(--primary); margin: .25rem 0 .5rem; }

.decisao-ia { border-radius: .875rem; border: 1px solid; padding: 1.125rem 1.25rem; }
.decisao-ia .decisao-ic { display: flex; flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  border-radius: 999px; align-items: center; justify-content: center; }
.decisao-ia.verde { border-color: rgb(var(--aceite-rgb) / .5); background: rgb(var(--aceite-rgb) / .09); }
.decisao-ia.verde .decisao-ic { background: rgb(var(--aceite-rgb) / .16); color: var(--aceite-forte); }
.decisao-ia.verde .forte { color: var(--aceite-forte); }
.decisao-ia.amarelo { border-color: rgb(var(--st-pendencia-rgb) / .55); background: rgb(var(--st-pendencia-rgb) / .1); }
.decisao-ia.amarelo .decisao-ic { background: rgb(var(--st-pendencia-rgb) / .18); color: var(--txt-pendencia); }
.decisao-ia.amarelo .forte { color: var(--txt-pendencia); }
.decisao-ia.vermelho { border-color: rgb(var(--st-reprovada-rgb) / .5); background: rgb(var(--st-reprovada-rgb) / .09); }
.decisao-ia.vermelho .decisao-ic { background: rgb(var(--st-reprovada-rgb) / .15); color: var(--txt-reprovada); }
.decisao-ia.vermelho .forte { color: var(--txt-reprovada); }

.conversa { display: flex; flex-direction: column; gap: .75rem; max-height: 22rem; overflow-y: auto;
  padding: .875rem; border-radius: .75rem; background: rgb(var(--background-rgb) / .4);
  border: 1px solid rgb(var(--border-rgb) / .5); }
.conversa.vazia { align-items: center; text-align: center; color: var(--muted-foreground);
  padding: 2rem 1.25rem; }
.msg { border-radius: .625rem; padding: .75rem .875rem; border: 1px solid rgb(var(--border-rgb) / .6);
  background: var(--card); }
.msg.ia { border-color: rgb(var(--aceite-rgb) / .35); background: rgb(var(--aceite-rgb) / .06); }
.msg.auditor { background: rgb(var(--primary-rgb) / .06); border-color: rgb(var(--primary-rgb) / .3); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
