/* Camada "viva" do design system (docs/design-system.md › Movimento e profundidade). Carrega por último e só nos temas
   Claro e Escuro: tudo fica atrás de :where([data-estilo="claro"]), que não soma especificidade. Papel continua igual.
   Movimento curto e com propósito (entrada, hover, foco, carregamento). prefers-reduced-motion desliga tudo (fim do arquivo). */

:root {
  --vv-curva: cubic-bezier(0.22, 1, 0.36, 1);
  --vv-mola: cubic-bezier(0.34, 1.56, 0.64, 1);
  --vv-brilho: color-mix(in srgb, var(--brand) 22%, transparent);
  --vv-aura-1: color-mix(in srgb, var(--brand) 9%, transparent);
  --vv-aura-2: color-mix(in srgb, var(--brand) 5%, transparent);
  --vv-vidro: color-mix(in srgb, var(--fundo) 78%, transparent);
  --vv-borda-luz: color-mix(in srgb, #ffffff 70%, transparent);
  --vv-sombra-card: 0 1px 2px rgba(15, 23, 41, 0.04), 0 2px 8px -2px rgba(15, 23, 41, 0.05);
  --vv-sombra-hover: 0 2px 4px rgba(15, 23, 41, 0.04), 0 14px 32px -12px rgba(15, 23, 41, 0.16), 0 0 0 1px color-mix(in srgb, var(--brand) 14%, transparent);
  --vv-sombra-pri: 0 1px 2px color-mix(in srgb, var(--brand-forte) 30%, transparent), 0 6px 16px -6px color-mix(in srgb, var(--brand-forte) 55%, transparent);
  --vv-r: 14px;
  --vv-r-g: 18px;
}
:root[data-theme="dark"] {
  --vv-aura-1: color-mix(in srgb, var(--brand) 16%, transparent);
  --vv-aura-2: color-mix(in srgb, var(--brand) 8%, transparent);
  --vv-borda-luz: rgba(255, 255, 255, 0.06);
  --vv-sombra-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 4px 14px -6px rgba(0, 0, 0, 0.5);
  --vv-sombra-hover: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vv-aura-1: color-mix(in srgb, var(--brand) 16%, transparent);
    --vv-aura-2: color-mix(in srgb, var(--brand) 8%, transparent);
    --vv-borda-luz: rgba(255, 255, 255, 0.06);
    --vv-sombra-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 4px 14px -6px rgba(0, 0, 0, 0.5);
    --vv-sombra-hover: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
  }
}

@keyframes vv-sobe { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vv-surge { from { opacity: 0; } to { opacity: 1; } }
@keyframes vv-escala { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes vv-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes vv-flutua-2 { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(4px, -9px) rotate(1.2deg); } }
@keyframes vv-deriva { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(6%, -4%) scale(1.08); } 66% { transform: translate(-5%, 5%) scale(0.96); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes vv-brilho { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes vv-pulso { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes vv-digita { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-3px); opacity: 1; } }

/* ------------------------------------------------------------ tipografia */
:where([data-estilo="claro"]) body { font-feature-settings: "cv11", "ss01", "ss03"; }
:where([data-estilo="claro"]) h1 { font-weight: 650; letter-spacing: -0.026em; }
:where([data-estilo="claro"]) .pag-cab { margin-bottom: var(--e8); align-items: flex-end; }
:where([data-estilo="claro"]) .pag-cab h1 { font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -0.032em; line-height: 1.15; }
:where([data-estilo="claro"]) .pag-tit p { color: var(--texto-2); font-size: var(--fs-14); margin-top: 6px; max-width: 64ch; }
:where([data-estilo="claro"]) .kpi-v, :where([data-estilo="claro"]) .mini-v { letter-spacing: -0.035em; font-weight: 650; }
:where([data-estilo="claro"]) .secao-tit, :where([data-estilo="claro"]) .nav-grupo-tit { letter-spacing: 0.08em; }

/* ------------------------------------------------------------ fundo vivo: aura da marca atrás do conteúdo */
:where([data-estilo="claro"]) .conteudo { position: relative; isolation: isolate; }
:where([data-estilo="claro"]) .app { background:
  radial-gradient(900px 520px at 100% -10%, var(--vv-aura-1), transparent 60%),
  radial-gradient(700px 480px at 20% 110%, var(--vv-aura-2), transparent 60%), var(--fundo); }
:where([data-estilo="claro"]) .conteudo { background: transparent; }
:where([data-estilo="claro"]) .pagina, :where([data-estilo="claro"]) .pagina-larga { animation: vv-surge 260ms var(--vv-curva) backwards; }
:where([data-estilo="claro"]) .pag-cab { animation: vv-sobe 420ms var(--vv-curva) backwards; }
:where([data-estilo="claro"]) .pagina > .painel, :where([data-estilo="claro"]) .pagina-larga > .painel,
:where([data-estilo="claro"]) .pilha-4 > .painel, :where([data-estilo="claro"]) .rel-kpis, :where([data-estilo="claro"]) .gst-kpis,
:where([data-estilo="claro"]) .kpis, :where([data-estilo="claro"]) .gal-grade > *, :where([data-estilo="claro"]) .planos-grade > *,
:where([data-estilo="claro"]) .saude-cartoes > *, :where([data-estilo="claro"]) .assist-canais > * {
  animation: vv-sobe 460ms var(--vv-curva) backwards;
}
:where([data-estilo="claro"]) :is(.pilha-4, .gal-grade, .planos-grade, .saude-cartoes, .assist-canais, .pagina, .pagina-larga) > :nth-child(2) { animation-delay: 50ms; }
:where([data-estilo="claro"]) :is(.pilha-4, .gal-grade, .planos-grade, .saude-cartoes, .assist-canais, .pagina, .pagina-larga) > :nth-child(3) { animation-delay: 100ms; }
:where([data-estilo="claro"]) :is(.pilha-4, .gal-grade, .planos-grade, .saude-cartoes, .assist-canais, .pagina, .pagina-larga) > :nth-child(4) { animation-delay: 150ms; }
:where([data-estilo="claro"]) :is(.pilha-4, .gal-grade, .planos-grade, .saude-cartoes, .assist-canais, .pagina, .pagina-larga) > :nth-child(n+5) { animation-delay: 200ms; }

/* ------------------------------------------------------------ barra lateral */
:where([data-estilo="claro"]) .lado {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, var(--sup)) 0%, var(--sup) 40%);
  border-right-color: color-mix(in srgb, var(--borda) 80%, transparent);
}
:where([data-estilo="claro"]) .nav-item { position: relative; border-radius: 10px; transition: background var(--dur-1), color var(--dur-1), transform 220ms var(--vv-curva); }
:where([data-estilo="claro"]) .nav-item:hover { transform: translateX(2px); }
:where([data-estilo="claro"]) .nav-item.ativo { background: var(--papel); box-shadow: var(--vv-sombra-card), 0 0 0 1px color-mix(in srgb, var(--brand) 16%, var(--borda)); }
:where([data-estilo="claro"]) .nav-item.ativo::before {
  content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ffffff)); animation: vv-escala 300ms var(--vv-mola);
}
:where([data-estilo="claro"]) .nav-item.ativo .ic { color: var(--brand-ink); }
:where([data-estilo="claro"]) .marca-mono { background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 80%, #ffffff), var(--brand-forte)); box-shadow: 0 2px 8px -2px var(--vv-brilho); }
:where([data-estilo="claro"]) .nav-conectar .btn { border-radius: 11px; }

/* ------------------------------------------------------------ botões */
:where([data-estilo="claro"]) .btn { border-radius: 10px; transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1), box-shadow 200ms var(--vv-curva), transform 200ms var(--vv-curva); }
:where([data-estilo="claro"]) .btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px -6px rgba(15, 23, 41, 0.18); }
:where([data-estilo="claro"]) .btn:active:not(:disabled) { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 60ms; }
:where([data-estilo="claro"]) .btn-pri, :where([data-estilo="claro"]) .btn-acento {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-forte) 88%, #ffffff) 0%, var(--brand-forte) 55%, color-mix(in srgb, var(--brand-forte) 90%, #000) 100%);
  border-color: color-mix(in srgb, var(--brand-forte) 85%, #000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--vv-sombra-pri);
}
:where([data-estilo="claro"]) .btn-pri::after, :where([data-estilo="claro"]) .btn-acento::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0; transition: background-position 700ms var(--vv-curva);
}
:where([data-estilo="claro"]) .btn-pri:hover:not(:disabled)::after, :where([data-estilo="claro"]) .btn-acento:hover:not(:disabled)::after { background-position: -50% 0; }
:where([data-estilo="claro"]) .btn-pri:hover:not(:disabled), :where([data-estilo="claro"]) .btn-acento:hover:not(:disabled) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-forte) 92%, #ffffff) 0%, color-mix(in srgb, var(--brand-forte) 94%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 4px color-mix(in srgb, var(--brand-forte) 30%, transparent), 0 12px 24px -10px color-mix(in srgb, var(--brand-forte) 70%, transparent);
}
:where([data-estilo="claro"]) .btn-fantasma:hover:not(:disabled) { box-shadow: none; transform: none; }
:where([data-estilo="claro"]) .btn-g { border-radius: 12px; }
:where([data-estilo="claro"]) .btn:focus-visible { box-shadow: 0 0 0 2px var(--fundo), 0 0 0 4px var(--foco-cor), 0 0 18px 2px var(--vv-brilho); }

/* ------------------------------------------------------------ campos */
:where([data-estilo="claro"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  transition: border-color 160ms, box-shadow 220ms var(--vv-curva), background 160ms;
}
:where([data-estilo="claro"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
:where([data-estilo="claro"]) input[type="checkbox"], :where([data-estilo="claro"]) input[type="radio"] { accent-color: var(--brand-forte); }

/* ------------------------------------------------------------ cartões e painéis */
:where([data-estilo="claro"]) .painel { border-radius: var(--vv-r-g); box-shadow: var(--vv-sombra-card); border-color: color-mix(in srgb, var(--borda) 85%, transparent); }
:where([data-estilo="claro"]) :is(.plano-card, .gal-cartao, .saude-cartao, .assist-canal, .canal-card, .opcao-card, .setor-card, .gst-kpi, .provedor, .numero, .kcard) {
  transition: transform 260ms var(--vv-curva), box-shadow 260ms var(--vv-curva), border-color 200ms;
}
:where([data-estilo="claro"]) :is(.plano-card, .gal-cartao, .assist-canal, .canal-card, .opcao-card, .provedor, .numero):hover {
  transform: translateY(-3px); box-shadow: var(--vv-sombra-hover); border-color: color-mix(in srgb, var(--brand) 28%, var(--borda));
}
:where([data-estilo="claro"]) .kcard:hover { transform: translateY(-2px) rotate(-0.2deg); box-shadow: var(--vv-sombra-hover); }
:where([data-estilo="claro"]) .kcard { border-radius: 12px; }
:where([data-estilo="claro"]) .kcol { border-radius: 16px; }
:where([data-estilo="claro"]) .kcol-cor { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }

/* KPIs: número em destaque com uma linha de luz da marca no topo do bloco */
:where([data-estilo="claro"]) :is(.kpis, .rel-kpis) { position: relative; overflow: hidden; }
:where([data-estilo="claro"]) :is(.kpis, .rel-kpis)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--brand), color-mix(in srgb, var(--brand) 40%, #ffffff), transparent);
  opacity: 0.7;
}
:where([data-estilo="claro"]) .kpi { transition: background 200ms; }
:where([data-estilo="claro"]) .kpi:hover { background: color-mix(in srgb, var(--brand) 3%, transparent); }
:where([data-estilo="claro"]) .gst-kpi { border-radius: var(--vv-r); }
:where([data-estilo="claro"]) .gst-kpi:hover { transform: translateY(-2px); box-shadow: var(--vv-sombra-hover); }

/* ------------------------------------------------------------ abas e segmentos */
:where([data-estilo="claro"]) .segmentos { border-radius: 12px; background: color-mix(in srgb, var(--sup-3) 85%, transparent); }
:where([data-estilo="claro"]) .segmentos button { border-radius: 9px; transition: color 160ms, background 200ms, box-shadow 220ms var(--vv-curva); }
:where([data-estilo="claro"]) .segmentos button.ativo { box-shadow: 0 1px 2px rgba(15, 23, 41, 0.08), 0 0 0 1px var(--borda); }
:where([data-estilo="claro"]) .rel-abas a, :where([data-estilo="claro"]) .rel-abas button { transition: color 160ms, border-color 220ms; }

/* ------------------------------------------------------------ caixa de entrada e conversa */
:where([data-estilo="claro"]) .cx-item { transition: background 160ms, transform 220ms var(--vv-curva); border-radius: 12px; }
:where([data-estilo="claro"]) .cx-item:hover { transform: translateX(2px); }
:where([data-estilo="claro"]) .cx-itens > :nth-child(-n+12) { animation: vv-sobe 380ms var(--vv-curva) backwards; }
:where([data-estilo="claro"]) .cx-itens > :nth-child(2) { animation-delay: 30ms; }
:where([data-estilo="claro"]) .cx-itens > :nth-child(3) { animation-delay: 60ms; }
:where([data-estilo="claro"]) .cx-itens > :nth-child(4) { animation-delay: 90ms; }
:where([data-estilo="claro"]) .cx-itens > :nth-child(5) { animation-delay: 120ms; }
:where([data-estilo="claro"]) .cx-itens > :nth-child(n+6) { animation-delay: 150ms; }
:where([data-estilo="claro"]) .nao-lida, :where([data-estilo="claro"]) .cx-item .seg-n { box-shadow: 0 2px 6px -1px var(--vv-brilho); }
:where([data-estilo="claro"]) .bolha { animation: vv-escala 260ms var(--vv-curva) backwards; }
:where([data-estilo="claro"]) .chat-msgs > :nth-last-child(n+8) .bolha, :where([data-estilo="claro"]) .chat-msgs > :nth-last-child(n+8).bolha { animation: none; }
:where([data-estilo="claro"]) .cx-chat-vazio .vazio-ilus, :where([data-estilo="claro"]) .vazio-ilus { animation: vv-escala 420ms var(--vv-mola) backwards, vv-flutua 5.5s ease-in-out 600ms infinite; }
:where([data-estilo="claro"]) .compor-caixa { border-radius: 16px; transition: box-shadow 220ms var(--vv-curva), border-color 160ms; }
:where([data-estilo="claro"]) .compor-caixa:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent), 0 10px 30px -14px rgba(15, 23, 41, 0.25); }
:where([data-estilo="claro"]) .btn-enviar:not(:disabled) { background: linear-gradient(160deg, color-mix(in srgb, var(--brand-forte) 80%, #ffffff), var(--brand-forte)); box-shadow: var(--vv-sombra-pri); }
:where([data-estilo="claro"]) .escrevendo { animation: none; }
:where([data-estilo="claro"]) .presenca .ponto-ok, :where([data-estilo="claro"]) .ponto-ok { animation: vv-pulso 2.4s ease-out infinite; }

/* ------------------------------------------------------------ primeiros passos */
.onb-v { flex-direction: column; align-items: stretch; gap: 10px; }
.onb-cab { display: flex; align-items: flex-start; gap: 8px; }
.onb-barra { height: 6px; border-radius: 999px; background: var(--sup-3); overflow: hidden; }
.onb-barra span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #ffffff)); animation: vv-cresce 900ms var(--vv-curva) backwards; }
.onb-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.onb-lista a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--texto); text-decoration: none; transition: background 160ms, transform 200ms var(--vv-curva); }
.onb-lista a:hover { background: var(--hover); transform: translateX(2px); text-decoration: none; }
.onb-lista b { display: block; font-size: var(--fs-13); font-weight: 600; }
.onb-lista small { display: block; font-size: var(--fs-12); color: var(--texto-2); }
.onb-lista .ic { color: var(--texto-3); }
.onb-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; color: var(--brand-ink); background: var(--brand-suave); border: 1px solid var(--brand-borda); }
.onb-lista .feito b { color: var(--texto-2); text-decoration: line-through; text-decoration-color: var(--borda-forte); }
.onb-lista .feito .onb-n { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ------------------------------------------------------------ vazio: ilustração flutuando sobre uma aura */
:where([data-estilo="claro"]) .vazio { position: relative; isolation: isolate; }
:where([data-estilo="claro"]) .vazio::before {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 160px; top: 18px; left: 50%; margin-left: -110px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 13%, transparent), transparent); filter: blur(6px);
  animation: vv-deriva 14s ease-in-out infinite; pointer-events: none;
}
:where([data-estilo="claro"]) .vazio-t { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.018em; }
:where([data-estilo="claro"]) .vazio-ic { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(160deg, var(--papel), var(--sup-2)); box-shadow: var(--vv-sombra-card); animation: vv-flutua 5s ease-in-out infinite; }
:where([data-estilo="claro"]) .vazio-ilus .i-acento { fill: var(--brand); opacity: 1; }
:where([data-estilo="claro"]) .vazio-ilus .i-marca { fill: color-mix(in srgb, var(--brand) 10%, var(--papel)); stroke: color-mix(in srgb, var(--brand) 55%, var(--texto-2)); }
:where([data-estilo="claro"]) .vazio-ilus .i-papel { filter: drop-shadow(0 3px 6px rgba(15, 23, 41, 0.08)); }

/* ------------------------------------------------------------ carregando: esqueleto com brilho */
:where([data-estilo="claro"]) .esq { gap: 10px; }
:where([data-estilo="claro"]) .esq-l {
  border-radius: 12px; position: relative; overflow: hidden; animation: none;
  background: color-mix(in srgb, var(--sup-3) 80%, transparent);
}
:where([data-estilo="claro"]) .esq-l::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--papel) 75%, transparent) 50%, transparent 80%) no-repeat;
  background-size: 200% 100%; animation: vv-brilho 1.5s var(--vv-curva) infinite;
}
:where([data-estilo="claro"]) .carregando-app { display: grid; place-items: center; min-height: 100dvh; }
:where([data-estilo="claro"]) .carregando-app .escrevendo { animation: none; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: var(--fs-14); }
:where([data-estilo="claro"]) .carregando-app .escrevendo::before {
  content: ""; width: 44px; height: 40px; background: var(--simbolo-produto, none) center / contain no-repeat;
  animation: vv-flutua 2.4s ease-in-out infinite; filter: drop-shadow(0 8px 14px var(--vv-brilho));
}

/* ------------------------------------------------------------ modal, menu e avisos */
:where([data-estilo="claro"]) .modal-fundo { backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1); animation: vv-surge 200ms ease-out; }
:where([data-estilo="claro"]) .modal { border-radius: 20px; animation: vv-escala 320ms var(--vv-mola); box-shadow: 0 1px 0 var(--vv-borda-luz) inset, 0 30px 70px -20px rgba(15, 23, 41, 0.35); }
:where([data-estilo="claro"]) .modal-rodape { border-radius: 0 0 20px 20px; }
:where([data-estilo="claro"]) .menu { border-radius: 14px; animation: vv-escala 200ms var(--vv-curva); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
:where([data-estilo="claro"]) .toast { border-radius: 14px; animation: vv-escala 360ms var(--vv-mola); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--vv-borda-luz) inset, 0 18px 40px -16px rgba(15, 23, 41, 0.3); }
:where([data-estilo="claro"]) .toast::before { border-radius: 14px 0 0 14px; }
:where([data-estilo="claro"]) .t-ok::before { background: var(--ok); }

/* ------------------------------------------------------------ selos, avisos, barras */
:where([data-estilo="claro"]) .selo { border-radius: 999px; }
:where([data-estilo="claro"]) .alerta { border-radius: 14px; }
:where([data-estilo="claro"]) :is(.uso-barra, .uso-cota-barra) { border-radius: 999px; overflow: hidden; }
:where([data-estilo="claro"]) :is(.uso-barra, .uso-cota-barra) > span {
  border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ffffff));
  transition: width 900ms var(--vv-curva); animation: vv-cresce 900ms var(--vv-curva) backwards;
}
@keyframes vv-cresce { from { width: 0; } }

/* ------------------------------------------------------------ celular: abas com vidro */
:where([data-estilo="claro"]) .abas-cel {
  background: var(--vv-vidro); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top-color: color-mix(in srgb, var(--borda) 70%, transparent);
}
:where([data-estilo="claro"]) .abas-cel a, :where([data-estilo="claro"]) .abas-cel button { position: relative; transition: color 160ms; }
:where([data-estilo="claro"]) .abas-cel .ativo::before {
  content: ""; position: absolute; top: 5px; left: 50%; width: 44px; height: 30px; margin-left: -22px; border-radius: 999px; z-index: -1;
  background: color-mix(in srgb, var(--brand) 12%, transparent); animation: vv-escala 280ms var(--vv-mola);
}
:where([data-estilo="claro"]) .abas-cel .ativo { color: var(--brand-ink); }

/* ------------------------------------------------------------ editor de fluxos: cabeçalho que cabe no celular */
:where([data-estilo="claro"]) .fv-no { transition: box-shadow 220ms var(--vv-curva), border-color 160ms; }
:where([data-estilo="claro"]) .fv-no:hover { box-shadow: var(--vv-sombra-hover); }
:where([data-estilo="claro"]) .fv-bloco { transition: transform 200ms var(--vv-curva), box-shadow 200ms, border-color 160ms; }
:where([data-estilo="claro"]) .fv-bloco:hover { transform: translateY(-2px); box-shadow: var(--vv-sombra-card); }
@media (max-width: 860px) {
  .fv2 .ef-cab { height: auto; flex-wrap: wrap; row-gap: 6px; padding: 8px var(--e3); }
  .fv2 .ef-cab .ef-nome { flex: 1 1 0; min-width: 0; max-width: none; order: 1; }
  .fv2 .ef-cab > .btn-fantasma:first-child { order: 0; }
  .fv2 .ef-cab .ef-estado { order: 2; }
  .fv2 .ef-cab > .cresce, .fv2 .ef-cab .fv-ferr { display: none; }
  .fv2 .ef-cab .fv-cns { order: 3; max-width: none; flex: 0 1 auto; }
  .fv2 .ef-cab .fv-prob { order: 4; white-space: nowrap; }
  .fv2 .ef-cab > .btn:not(.btn-fantasma) { order: 5; flex: 1 1 auto; min-width: 0; padding: 0 10px; }
  .fv2 .ef-cab::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
}

/* ------------------------------------------------------------ login */
:where([data-estilo="claro"]) .entrar-v2 { background: var(--fundo); }
:where([data-estilo="claro"]) .entrar-arte {
  isolation: isolate; border-right: 0; color: #ffffff;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 85%, #ffffff) 0%, transparent 55%),
              radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--brand) 60%, #0b1020) 0%, transparent 60%),
              linear-gradient(150deg, var(--brand-forte), color-mix(in srgb, var(--brand-forte) 55%, #0b1020));
}
:where([data-estilo="claro"]) .entrar-arte p { color: rgba(255, 255, 255, 0.86); }
:where([data-estilo="claro"]) .entrar-arte h2 { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.035em; line-height: 1.08; max-width: 16ch; }
:where([data-estilo="claro"]) .entrar-arte h2 em { font-style: normal; background: linear-gradient(90deg, #ffffff, color-mix(in srgb, var(--brand) 25%, #ffffff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vv-bolhas { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.vv-bolhas i { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; animation: vv-deriva 18s ease-in-out infinite; }
.vv-bolhas i:nth-child(1) { width: 380px; height: 380px; left: -80px; top: -60px; background: color-mix(in srgb, var(--brand) 70%, #ffffff); }
.vv-bolhas i:nth-child(2) { width: 300px; height: 300px; right: -60px; top: 30%; background: color-mix(in srgb, var(--brand) 55%, #7dd3fc); animation-duration: 22s; animation-delay: -6s; }
.vv-bolhas i:nth-child(3) { width: 260px; height: 260px; left: 25%; bottom: -80px; background: color-mix(in srgb, var(--brand) 50%, #a78bfa); animation-duration: 26s; animation-delay: -12s; }
.vv-grade { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); }
.vv-cena { position: relative; height: 290px; max-width: 460px; }
.vv-cartao {
  position: absolute; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; max-width: 300px;
  background: rgba(255, 255, 255, 0.95); color: #0f1729; font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 24px 48px -20px rgba(4, 10, 30, 0.55), 0 6px 14px -8px rgba(4, 10, 30, 0.35);
  animation: vv-escala 600ms var(--vv-mola) backwards, vv-flutua-2 7s ease-in-out infinite;
}
.vv-cartao small { display: block; font-size: 11.5px; font-weight: 600; color: #475467; margin-bottom: 2px; }
.vv-cartao b { font-weight: 650; }
.vv-cartao .vv-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 650 11px/1 var(--fonte); color: #fff; background: linear-gradient(140deg, #f59e0b, #ef4444); }
.vv-c1 { left: 0; top: 0; animation-delay: 150ms, 0s; }
.vv-c2 { left: 70px; top: 96px; animation-delay: 450ms, -2.2s; }
.vv-c2 .vv-av { background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 80%, #ffffff), var(--brand-forte)); }
.vv-c3 { left: 20px; top: 196px; animation-delay: 750ms, -4.4s; }
.vv-c3 .vv-av { background: linear-gradient(140deg, #34d399, #059669); }
.vv-c4 { right: -6px; top: 34px; padding: 10px 12px; animation-delay: 1050ms, -1.4s; }
.vv-ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #13734a; color: #fff; flex: none; }
.vv-digitando { display: inline-flex; gap: 3px; padding: 4px 0 2px; }
.vv-digitando span { width: 6px; height: 6px; border-radius: 50%; background: #8a94a6; animation: vv-digita 1.2s ease-in-out infinite; }
.vv-digitando span:nth-child(2) { animation-delay: 150ms; }
.vv-digitando span:nth-child(3) { animation-delay: 300ms; }
:where([data-estilo="claro"]) .entrar-caixa { animation: vv-sobe 520ms var(--vv-curva) backwards; }
:where([data-estilo="claro"]) .entrar-caixa h1 { font-size: 1.75rem; letter-spacing: -0.032em; }
:where([data-estilo="claro"]) .entrar-selos { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--texto-2); font-size: var(--fs-13); }
:where([data-estilo="claro"]) .entrar-selos span { display: inline-flex; align-items: center; gap: 6px; }
:where([data-estilo="claro"]) .entrar-selos .ic { color: var(--ok); }
@media (max-width: 860px) {
  .vv-cena { display: none; }
  :where([data-estilo="claro"]) .entrar-arte { color: var(--texto); background: transparent; }
  :where([data-estilo="claro"]) .entrar-arte p { color: var(--texto-2); }
}

/* ------------------------------------------------------------ planos (app e /planos) */
.vv-planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--e4); align-items: stretch; }
.vv-plano {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--vv-r-g);
  background: var(--papel); border: 1px solid var(--borda); box-shadow: var(--vv-sombra-card);
  transition: transform 280ms var(--vv-curva), box-shadow 280ms var(--vv-curva), border-color 200ms;
}
.vv-plano:hover { transform: translateY(-4px); box-shadow: var(--vv-sombra-hover); }
.vv-plano.destaque { border-color: transparent; background:
  linear-gradient(var(--papel), var(--papel)) padding-box,
  linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 35%, #ffffff), var(--brand)) border-box;
  border: 1.5px solid transparent; box-shadow: 0 20px 44px -22px color-mix(in srgb, var(--brand) 60%, transparent); }
.vv-plano.atual { box-shadow: 0 0 0 2px var(--ok), var(--vv-sombra-card); }
.vv-plano-tag { position: absolute; top: -11px; left: 22px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px/1.4 var(--fonte); color: var(--brand-fg);
  background: linear-gradient(90deg, var(--brand-forte), color-mix(in srgb, var(--brand-forte) 80%, #000)); box-shadow: var(--vv-sombra-pri); }
.vv-plano-nome { font: 650 15px/1.2 var(--fonte); letter-spacing: -0.01em; }
.vv-plano-para { color: var(--texto-2); font-size: var(--fs-13); margin-top: -6px; min-height: 2.9em; }
.vv-plano-preco { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.vv-plano-preco small { font-size: var(--fs-14); color: var(--texto-2); font-weight: 500; }
.vv-plano-preco b { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.vv-plano-preco span { font-size: var(--fs-13); color: var(--texto-2); }
.vv-plano-cx { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--brand-suave); color: var(--texto); font-weight: 600; font-size: var(--fs-14); }
.vv-plano-cx img { flex: none; }
.vv-plano ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: var(--fs-13); color: var(--texto-2); }
.vv-plano li { display: flex; gap: 8px; align-items: flex-start; }
.vv-plano li .ic { color: var(--ok); margin-top: 2px; }
.vv-plano .btn { margin-top: auto; }
.vv-planos-pe { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--texto-2); font-size: var(--fs-13); margin-top: var(--e3); }
.vv-planos-pe span { display: inline-flex; align-items: center; gap: 6px; }
.vv-planos-pe .ic { color: var(--ok); }

/* ------------------------------------------------------------ acessibilidade: sem movimento para quem pediu */
@media (prefers-reduced-motion: reduce) {
  .vv-bolhas i, .vv-cartao, .vazio::before, .vazio-ic, .vazio-ilus { animation: none !important; }
  .btn:hover, .nav-item:hover, .cx-item:hover, .vv-plano:hover, .kcard:hover { transform: none !important; }
}

/* ------------------------------------------------------------ Montar com IA: linha do tempo do agente */
.ag-linha { list-style: none; margin: 8px 0 4px; padding: 0 0 0 4px; position: relative; display: flex; flex-direction: column; gap: 2px; }
.ag-linha::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1.5px; background: linear-gradient(180deg, var(--brand-borda), var(--borda)); }
.ag-passo { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 5px 6px; border-radius: 10px; font-size: var(--fs-13); animation: vv-sobe 320ms var(--vv-curva) backwards; }
.ag-passo p { margin: 2px 0 0; color: var(--texto-2); line-height: 1.45; }
.ag-passo b { display: block; font-weight: 600; font-size: var(--fs-13); }
.ag-passo small { display: block; color: var(--texto-2); font-size: var(--fs-12); line-height: 1.45; margin-top: 1px; overflow-wrap: anywhere; }
.ag-passo ul { margin: 4px 0 0; padding-left: 16px; color: var(--texto-2); font-size: var(--fs-12); }
.ag-ic { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--papel); border: 1px solid var(--borda); color: var(--texto-2); }
.ag-ferr.ok .ag-ic { background: var(--brand-suave); border-color: var(--brand-borda); color: var(--brand-ink); }
.ag-ferr.rodando .ag-ic { border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.ag-ferr.rodando b { background: linear-gradient(90deg, var(--texto) 0%, var(--texto-3) 50%, var(--texto) 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: vv-brilho 1.6s linear infinite; }
.ag-ferr.falhou .ag-ic, .ag-erro .ag-ic { background: var(--perigo-suave); border-color: transparent; color: var(--perigo); }
.ag-erro, .ag-ferr .ag-erro { color: var(--perigo); }
.ag-erro i { display: block; font-style: normal; color: var(--texto-2); }
.ag-pensa p { font-style: italic; }
.ag-aviso .ag-ic { background: var(--aviso-suave); border-color: transparent; color: var(--aviso); }
.ag-plano .ag-ic, .ag-confere .ag-ic { color: var(--ok); }
.ag-msg { margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--papel); border: 1px solid var(--brand-borda); box-shadow: var(--vv-sombra-card); animation: vv-escala 360ms var(--vv-mola) backwards; }
.ag-msg p { margin: 2px 0 6px; white-space: pre-wrap; }
.ag-quem { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; color: var(--brand-ink); }
@media (prefers-reduced-motion: reduce) { .ag-ferr.rodando b { animation: none; color: var(--texto); background: none; } }
/* editor de fluxos no celular ocupa a tela toda: sem as abas de baixo, o painel do ensaio e o Montar com IA ficam livres */
@media (max-width: 860px) { .rota-fluxos.com-sub .abas-cel { display: none; } }
/* editor no desktop: botões não encolhem; nome e chip de conexões cedem espaço */
@media (min-width: 861px) {
  .fv2 .ef-cab > .btn, .fv2 .ef-cab .fv-prob { flex: none; white-space: nowrap; }
  .fv2 .ef-cab .ef-nome { flex: 0 1 260px; min-width: 90px; }
  .fv2 .ef-cab .fv-cns { flex: 0 1 auto; min-width: 0; max-width: 220px; }
  .fv2 .ef-cab .ef-estado { flex: none; }
}
@media (min-width: 861px) and (max-width: 1360px) { .fv2 .ef-cab .fv-ferr { display: none; } }
