/* ==========================================================================
   paffetti.com · J.A.R.V.I.S., interface no estilo ChatGPT
   ========================================================================== */

:root {
  --fundo: #212121;
  --lateral: #181818;
  --superficie: #303030;
  --superficie-hover: #3a3a3a;
  --item-hover: #2a2a2a;
  --item-ativo: #2f2f2f;
  --borda: rgba(255, 255, 255, 0.1);
  --borda-forte: rgba(255, 255, 255, 0.16);
  --texto: #ececec;
  --texto-2: #b4b4b4;
  --texto-3: #8f8f8f;
  --link: #7ab7ff;
  --enviar-fundo: #ececec;
  --enviar-icone: #0d0d0d;
  --enviar-desligado: #676767;
  --erro: #f87171;
  --sombra-caixa: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --largura: 48rem;
  --fonte: ui-sans-serif, -apple-system, system-ui, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-tema="claro"] {
  --fundo: #ffffff;
  --lateral: #f9f9f9;
  --superficie: #f4f4f4;
  --superficie-hover: #ececec;
  --item-hover: #ececec;
  --item-ativo: #e3e3e3;
  --borda: rgba(0, 0, 0, 0.1);
  --borda-forte: rgba(0, 0, 0, 0.15);
  --texto: #0d0d0d;
  --texto-2: #5d5d5d;
  --texto-3: #8f8f8f;
  --link: #0b63ce;
  --enviar-fundo: #0d0d0d;
  --enviar-icone: #ffffff;
  --enviar-desligado: #d7d7d7;
  --erro: #dc2626;
  --sombra-caixa: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 24px -10px rgba(0, 0, 0, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font-family: var(--fonte); font-size: 16px; line-height: 1.5; color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; overflow: hidden; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: var(--link); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 8px; }

.so-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: absolute; left: 12px; top: -48px; z-index: 60; padding: 8px 14px; border-radius: 10px; background: var(--enviar-fundo); color: var(--enviar-icone); font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; }

.icone { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--texto-2); transition: background .12s, color .12s; }
.icone:hover { background: var(--item-hover); color: var(--texto); }

/* ---------- Estrutura ---------- */
.app { display: flex; height: 100dvh; }

/* ---------- Barra lateral ---------- */
.lateral { display: flex; flex-direction: column; width: 260px; flex-shrink: 0; padding: 8px; background: var(--lateral); overflow-y: auto; overflow-x: hidden; transition: width .2s ease, padding .2s ease; }
.lateral-topo { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 4px 0 6px; margin-bottom: 6px; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.logo:hover { background: var(--item-hover); }
.logo img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border-radius: 10px; color: var(--texto); font-size: 14px; text-decoration: none; text-align: left; white-space: nowrap; transition: background .12s; }
.item:hover { background: var(--item-hover); }
.item svg { width: 18px; height: 18px; color: var(--texto); }
.item kbd { margin-left: auto; font: 11px var(--fonte); color: var(--texto-3); opacity: 0; transition: opacity .12s; }
.item:hover kbd { opacity: 1; }

.lateral-menu { padding-bottom: 12px; }
.lateral-secao { display: flex; flex-direction: column; padding: 8px 0 12px; }
.lateral-secao h2 { padding: 6px 10px; font-size: 12px; font-weight: 500; color: var(--texto-3); }

.lateral-rodape { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--borda); }
.lateral-rodape .lua { display: none; }
:root[data-tema="claro"] .lateral-rodape .sol { display: none; }
:root[data-tema="claro"] .lateral-rodape .lua { display: block; }
.perfil { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-top: 4px; border-radius: 10px; }
.perfil img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.perfil strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; }
.perfil small { display: block; font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }

.veu { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .5); }

/* Barra lateral recolhida (desktop) */
.lateral-fechada .lateral { width: 0; padding: 8px 0; }
.abrir-lateral { display: none; }
.lateral-fechada .abrir-lateral { display: inline-grid; }

/* ---------- Área principal ---------- */
.principal { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100dvh; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; padding: 0 12px; flex-shrink: 0; }
.topo-esq { display: flex; align-items: center; gap: 2px; min-width: 0; }
.marca { padding: 6px 10px; font-size: 18px; font-weight: 500; color: var(--texto); white-space: nowrap; }
.botao-contato { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--borda-forte); color: var(--texto); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .12s; }
.botao-contato:hover { background: var(--item-hover); }

.rolagem { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; }

/* Estado vazio: saudação e caixa no centro da tela, como no ChatGPT */
.principal.vazio .rolagem { display: none; }
.principal.vazio .area-entrada { flex: 1; justify-content: center; padding-bottom: 14vh; }
.principal:not(.vazio) .saudacao,
.principal:not(.vazio) .sugestoes-iniciais { display: none; }

.area-entrada { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 16px calc(8px + env(safe-area-inset-bottom)); flex-shrink: 0; }
.saudacao { display: flex; flex-direction: column; align-items: center; max-width: var(--largura); margin-bottom: 24px; text-align: center; animation: surgir .4s ease both; }
.saudacao h1 { font-size: 28px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.saudacao p { margin-top: 8px; font-size: 16px; color: var(--texto-2); }

/* ---------- Caixa de mensagem ---------- */
.compositor { width: 100%; max-width: var(--largura); padding: 10px 10px 10px 18px; border-radius: 28px; background: var(--superficie); box-shadow: var(--sombra-caixa); cursor: text; }
.compositor textarea { display: block; width: 100%; max-height: 13rem; min-height: 28px; padding: 4px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--texto); font: inherit; font-size: 16px; line-height: 1.5; }
.compositor textarea::placeholder { color: var(--texto-3); }
.compositor-rodape { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.contador { font-size: 12px; color: var(--texto-3); }
.microfone { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--texto-2); transition: background .12s, color .12s; }
.microfone:hover { background: var(--superficie-hover); color: var(--texto); }
.microfone svg { width: 19px; height: 19px; }
.microfone.ouvindo { background: #dc2626; color: #fff; animation: ouvir 1.4s ease-in-out infinite; }
@keyframes ouvir { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); } }
@media (prefers-reduced-motion: reduce) { .microfone.ouvindo { animation: none; } }
.botao-voz { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #3b6fe8; color: #fff; transition: filter .12s; }
.compositor.vazio:has(.botao-voz:not([hidden])) .enviar { display: none; }
.compositor:not(.vazio) .botao-voz { display: none; }
.botao-voz:hover { filter: brightness(1.12); }
.botao-voz svg { width: 20px; height: 20px; stroke-width: 2.4; }

/* ---------- Modo conversa por voz ---------- */
.tela-voz { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); border: 0; background: radial-gradient(circle at 50% 44%, #0e2442 0%, #071324 45%, #02060d 100%); color: #fff; }
.tela-voz[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.tela-voz::backdrop { background: #02060d; }
.voz-marca { position: absolute; top: 24px; left: 0; right: 0; text-align: center; font-size: 14px; letter-spacing: .25em; color: #8f8f8f; margin: 0; }
.voz-orbe { position: relative; width: min(88vw, 440px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.voz-orbe canvas { display: block; width: 100%; height: 100%; }
.voz-orbe:focus-visible { outline: 2px solid #7ab7ff; outline-offset: -12px; }
.voz-estado { margin: 12px 0 0; font-size: 16px; color: #e5e5e5; text-align: center; }
.voz-legenda { margin: 0; max-width: 600px; min-height: 3em; font-size: 15px; color: #9a9a9a; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.voz-controles { position: absolute; bottom: calc(32px + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 20px; }
.voz-mudo, .voz-fechar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; }
.voz-mudo { background: #2a2a2a; color: #fff; }
.voz-mudo:hover { background: #363636; }
.voz-mudo .desligado { display: none; }
.voz-mudo[aria-pressed="true"] { background: #fff; color: #000; }
.voz-mudo[aria-pressed="true"] .ligado { display: none; }
.voz-mudo[aria-pressed="true"] .desligado { display: block; }
.voz-fechar { background: #fff; color: #000; }
.voz-fechar:hover { background: #e5e5e5; }
.voz-mudo svg, .voz-fechar svg { width: 26px; height: 26px; }

.enviar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--enviar-fundo); color: var(--enviar-icone); transition: opacity .12s, background .12s; }
.enviar:hover:not(:disabled) { opacity: .85; }
.enviar:disabled { background: var(--enviar-desligado); color: var(--fundo); cursor: default; }
.enviar svg { width: 18px; height: 18px; stroke-width: 2.4; }
.enviar .parar { display: none; fill: currentColor; stroke: none; }
.enviar.gerando .seta { display: none; }
.enviar.gerando .parar { display: block; }

.aviso { max-width: var(--largura); padding: 8px 0 2px; text-align: center; font-size: 12px; color: var(--texto-3); }
.aviso a { color: inherit; }
.principal.vazio .aviso { position: absolute; left: 16px; right: 16px; bottom: calc(8px + env(safe-area-inset-bottom)); margin: 0 auto; }

/* Sugestões iniciais (pílulas abaixo da caixa) */
.sugestoes-iniciais { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: var(--largura); margin-top: 16px; }
.pilula { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--borda); color: var(--texto-2); font-size: 14px; transition: background .12s, color .12s; animation: surgir .4s ease both; }
.pilula:hover { background: var(--item-hover); color: var(--texto); }
.pilula svg { width: 16px; height: 16px; }

/* ---------- Mensagens ---------- */
.mensagens { list-style: none; max-width: var(--largura); margin: 0 auto; padding: 16px 0 32px; display: flex; flex-direction: column; gap: 28px; }
.msg { animation: surgir .25s ease both; }
.msg-usuario { display: flex; justify-content: flex-end; }
.msg-usuario .bolha { max-width: 70%; padding: 10px 18px; border-radius: 22px; background: var(--superficie); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }

.msg-ia { min-width: 0; }
.conteudo { line-height: 1.75; overflow-wrap: anywhere; }
.conteudo > * + * { margin-top: 1em; }
.conteudo ul, .conteudo ol { padding-left: 1.5em; }
.conteudo ul { list-style: disc; }
.conteudo li + li { margin-top: .4em; }
.conteudo li > p + p { margin-top: .4em; }
.conteudo strong { font-weight: 600; }
.conteudo a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.conteudo h1, .conteudo h2, .conteudo h3 { font-size: 1.1em; font-weight: 600; margin-top: 1.4em; }
.conteudo code { font-family: var(--mono); font-size: .875em; padding: .15em .4em; border-radius: 6px; background: var(--superficie); }
.conteudo pre { padding: 14px 16px; border-radius: 12px; background: var(--lateral); border: 1px solid var(--borda); overflow-x: auto; }
.conteudo pre code { padding: 0; background: none; }
.conteudo blockquote { padding-left: 14px; border-left: 3px solid var(--borda-forte); color: var(--texto-2); }
.conteudo table { border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
.conteudo th, .conteudo td { padding: 6px 12px; border-bottom: 1px solid var(--borda); text-align: left; }
.conteudo hr { border: 0; border-top: 1px solid var(--borda); }

/* Bolinha piscando no fim do texto enquanto a IA escreve (como no ChatGPT) */
.escrevendo .conteudo > :last-child::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; border-radius: 50%; background: var(--texto); animation: pulsar 1.2s ease-in-out infinite; }
.pensando { display: inline-block; width: 14px; height: 14px; margin: 6px 0; border-radius: 50%; background: var(--texto); animation: pulsar 1.2s ease-in-out infinite; }

/* Ações abaixo da resposta: só ícones */
.acoes { display: flex; gap: 2px; margin-top: 8px; margin-left: -6px; opacity: 0; transition: opacity .15s; }
.msg-ia:hover .acoes, .msg-ia:focus-within .acoes, .msg-ia.ultima .acoes { opacity: 1; }
.acao { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--texto-2); }
.acao:hover { background: var(--item-hover); color: var(--texto); }
.acao svg { width: 18px; height: 18px; }


/* Erro */
.erro { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--erro) 35%, transparent); border-radius: 12px; color: var(--texto); font-size: 14px; }
.erro svg { color: var(--erro); }
.erro button { margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--borda-forte); font-size: 13px; font-weight: 500; }
.erro button:hover { background: var(--item-hover); }

/* Botão "ir ao fim" */
.ir-ao-fim { position: absolute; left: 50%; top: -46px; z-index: 5; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 1px solid var(--borda-forte); background: var(--fundo); color: var(--texto); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.ir-ao-fim[hidden] { display: none; }
.ir-ao-fim svg { width: 18px; height: 18px; }


/* ---------- Cabeçalho de perfil na tela inicial ---------- */
.saudacao-foto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--fundo), 0 0 0 4px var(--borda-forte); }
.saudacao .saudacao-nome { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--texto); }
.saudacao .saudacao-cargo { margin-top: 2px; font-size: 13px; color: var(--texto-3); }
.saudacao h1 { margin-top: 22px; }
.saudacao .saudacao-texto { max-width: 560px; margin-top: 10px; line-height: 1.55; }

/* ---------- Redes na barra lateral ---------- */
.redes { display: flex; gap: 2px; padding: 4px 6px 6px; }
.redes a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--texto-2); }
.redes a:hover { background: var(--item-hover); color: var(--texto); }
.redes svg { width: 18px; height: 18px; }


/* ---------- Cartões dentro da conversa ---------- */
.cartoes { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.cartao { padding: 18px; border: 1px solid var(--borda); border-radius: 18px; background: color-mix(in srgb, var(--superficie) 45%, var(--fundo)); animation: surgir .35s ease both; }
.cartao h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cartao h4 { margin: 18px 0 10px; font-size: 12px; font-weight: 600; color: var(--texto-2); text-transform: uppercase; letter-spacing: .05em; }
.cartao-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.cartao-cab span { font-size: 13px; color: var(--texto-3); }

.abas { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.aba { flex-shrink: 0; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--borda); font-size: 13px; color: var(--texto-2); }
.aba:hover { background: var(--item-hover); }
.aba[aria-selected="true"] { background: var(--texto); border-color: var(--texto); color: var(--fundo); font-weight: 500; }

.ver-mais { display: block; width: 100%; margin-top: 12px; padding: 9px; border-radius: 12px; border: 1px dashed var(--borda-forte); font-size: 13px; color: var(--texto-2); }
.ver-mais:hover { background: var(--item-hover); color: var(--texto); }

.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.numeros div { padding: 10px; border-radius: 12px; background: var(--superficie); text-align: center; }
.numeros strong { display: block; font-size: 20px; font-weight: 600; }
.numeros span { font-size: 12px; color: var(--texto-3); }

.botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.botao-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--borda-forte); color: var(--texto); font-size: 14px; font-weight: 500; text-decoration: none; }
.botao-link:hover { background: var(--item-hover); }
.botao-link svg { width: 16px; height: 16px; }
.botao-link.destaque { margin-top: 16px; background: var(--enviar-fundo); color: var(--enviar-icone); border-color: transparent; }
.botao-link.destaque:hover { opacity: .88; background: var(--enviar-fundo); }

/* Perfil */
.perfil-topo { display: flex; gap: 14px; align-items: center; }
.perfil-topo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.perfil-titulo { margin-top: 2px; font-size: 14px; color: var(--texto-2); }
.perfil-local { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--texto-3); }
.perfil-local svg { width: 14px; height: 14px; }
.perfil-resumo { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--texto-2); }

/* Certificados */
.grade-cert { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cert { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--borda); border-radius: 14px; background: var(--fundo); text-align: left; transition: border-color .15s, transform .15s; }
.cert:hover { border-color: var(--borda-forte); transform: translateY(-2px); }
.cert[hidden] { display: none; }
.cert-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.cert-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cert-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .15s; }
.cert:hover .cert-zoom, .cert:focus-visible .cert-zoom { opacity: 1; }
.cert-zoom svg { width: 16px; height: 16px; }
.cert-info { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.cert-info strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.cert-info small { font-size: 12px; color: var(--texto-3); }
.selo { align-self: flex-start; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-style: normal; background: var(--superficie); color: var(--texto-2); }
.selo-andamento { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #f5b74a; }
:root[data-tema="claro"] .selo-andamento { color: #a16207; }
.faixa { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.modulo { flex: 0 0 150px; text-align: left; font-size: 12px; line-height: 1.35; color: var(--texto-2); }
.modulo img { display: block; width: 150px; height: 106px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--borda); background: #fff; margin-bottom: 6px; }
.modulo:hover img { border-color: var(--borda-forte); }

/* Projetos */
.grade-proj { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.proj { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--borda); border-radius: 14px; background: var(--fundo); }
.proj strong { font-size: 15px; font-weight: 600; }
.proj p { font-size: 13.5px; line-height: 1.55; color: var(--texto-2); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.tags span { padding: 1px 8px; border-radius: 6px; font-size: 11.5px; background: var(--superficie); color: var(--texto-2); }
.proj-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto); }
.proj-link svg { width: 15px; height: 15px; }

/* Serviços */
.lista-serv { list-style: none; display: flex; flex-direction: column; }
.serv { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--borda); }
.serv:first-child { border-top: 0; }
.serv[hidden] { display: none; }
.serv-txt { flex: 1; min-width: 0; }
.serv-txt strong { display: block; font-size: 14.5px; font-weight: 500; }
.serv-txt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--texto-3); }
.serv-acao { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.preco { font-size: 15px; font-weight: 600; white-space: nowrap; }
.botao-pequeno { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--borda-forte); color: var(--texto); font-size: 12px; text-decoration: none; white-space: nowrap; }
.botao-pequeno:hover { background: var(--enviar-fundo); color: var(--enviar-icone); border-color: transparent; }

/* LP TECH */
.lp-marca { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; background: var(--texto); color: var(--fundo); }
.lp-topo p { margin-top: 6px; font-size: 14.5px; color: var(--texto-2); }
.grade-lp { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.grade-lp div { padding: 12px; border-radius: 12px; background: var(--fundo); border: 1px solid var(--borda); }
.grade-lp strong { display: block; font-size: 14px; font-weight: 600; }
.grade-lp small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--texto-3); }
.clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cliente { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px; background: var(--fundo); border: 1px solid var(--borda); text-align: center; }
.cliente img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 6px; border-radius: 10px; background: #fff; padding: 4px; }
.cliente strong { font-size: 13px; font-weight: 600; }
.cliente small { font-size: 11.5px; color: var(--texto-3); }

/* Recomendações */
.grade-rec { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rec { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--borda); border-radius: 14px; background: var(--fundo); }
.rec[hidden] { display: none; }
.rec figcaption { display: flex; align-items: center; gap: 10px; }
.rec figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rec figcaption strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.rec figcaption small { display: block; font-size: 12px; color: var(--texto-3); line-height: 1.35; }
.rec-texto { font-size: 13.5px; line-height: 1.6; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.rec-texto.aberto { -webkit-line-clamp: unset; display: block; }
.ler-mais { align-self: flex-start; font-size: 12.5px; color: var(--link); }

/* Contato */
.grade-contato { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.contato-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--borda); border-radius: 14px; background: var(--fundo); color: var(--texto); text-decoration: none; }
.contato-item:hover { border-color: var(--borda-forte); background: var(--item-hover); }
.contato-icone { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--superficie); }
.contato-item strong { display: block; font-size: 14px; font-weight: 600; }
.contato-item small { display: block; font-size: 12.5px; color: var(--texto-3); }

/* ---------- Visualizador de certificado ---------- */
.visualizador { width: min(1100px, 94vw); max-width: none; max-height: 94vh; margin: auto; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.visualizador::backdrop { background: rgba(0, 0, 0, .82); }
.visualizador figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.visualizador img { max-width: 100%; max-height: 82vh; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.visualizador figcaption { font-size: 14px; text-align: center; color: #e5e5e5; }
.vis-fechar { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; }
.vis-nav { position: fixed; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; }
.vis-fechar:hover, .vis-nav:hover { background: rgba(255, 255, 255, .22); }
.vis-ant { left: 16px; }
.vis-prox { right: 16px; }
.vis-nav[hidden] { display: none; }

@media (max-width: 560px) {
  .cartao { padding: 14px; border-radius: 16px; }
  .grade-cert { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cert-info { padding: 8px 10px 10px; }
  .cert-info strong { font-size: 12.5px; }
  .serv { flex-direction: column; align-items: stretch; gap: 8px; }
  .serv-acao { flex-direction: row; align-items: center; justify-content: space-between; }
  .numeros strong { font-size: 17px; }
  .vis-nav { top: auto; bottom: 20px; margin-top: 0; }
}

/* ---------- Acesso rápido (botão dentro da caixa de mensagem) ---------- */
.compositor { position: relative; }
.compositor-rodape { justify-content: space-between; }
.contador { margin-left: auto; }
.botao-rapido { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--borda); color: var(--texto-2); font-size: 13px; transition: background .12s, color .12s; }
.botao-rapido:hover, .botao-rapido[aria-expanded="true"] { background: var(--item-hover); color: var(--texto); }
.botao-rapido svg { width: 16px; height: 16px; }
.menu-rapido { position: absolute; left: 8px; bottom: calc(100% + 8px); z-index: 20; width: 250px; padding: 6px; border: 1px solid var(--borda-forte); border-radius: 16px; background: var(--fundo); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); animation: surgir .15s ease both; }
.menu-rapido[hidden] { display: none; }
.principal.vazio .menu-rapido { bottom: auto; top: calc(100% + 8px); }

/* ---------- Opções do menu de áreas ("quais áreas você gostaria de ver?") ---------- */
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.opcoes .pilula { padding: 7px 14px; background: var(--fundo); }
.opcoes .pilula:hover { border-color: var(--borda-forte); }


/* ==========================================================================
   Contas, conversas salvas, janelas e avisos
   ========================================================================== */

/* Botões genéricos */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 16px; border-radius: 999px; background: var(--enviar-fundo); color: var(--enviar-icone); font-size: 14px; font-weight: 500; text-decoration: none; transition: opacity .12s, background .12s; }
.botao:hover:not(:disabled) { opacity: .88; }
.botao:disabled { opacity: .5; cursor: default; }
.botao.secundario { background: transparent; color: var(--texto); border: 1px solid var(--borda-forte); }
.botao.secundario:hover:not(:disabled) { background: var(--item-hover); opacity: 1; }
.botao.perigo { background: #dc2626; color: #fff; }
.botao.largo { width: 100%; margin-top: 6px; }
.link-pequeno { font-size: 12px; color: var(--texto-3); padding: 2px 6px; border-radius: 6px; }
.link-pequeno:hover { color: var(--texto); background: var(--item-hover); }
.link-inline { color: var(--link); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; padding: 0; }
.link-inline.centro { display: block; margin: 10px auto 0; font-size: 13px; }
.botao-contato { cursor: pointer; background: transparent; }

/* Busca e lista de conversas */
.busca { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 0 10px; height: 36px; border-radius: 10px; background: var(--item-hover); }
.busca svg { width: 16px; height: 16px; color: var(--texto-3); }
.busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texto); font: inherit; font-size: 14px; }
.busca:focus-within { outline: 2px solid var(--link); outline-offset: 1px; }
.secao-cab { display: flex; align-items: center; justify-content: space-between; padding-right: 4px; }
.lista-conversas { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.lista-conversas .grupo { padding: 10px 10px 4px; font-size: 12px; font-weight: 500; color: var(--texto-3); }
.lista-conversas .vazio-lista { padding: 6px 10px; font-size: 13px; color: var(--texto-3); }
.conversa { position: relative; display: flex; align-items: center; border-radius: 10px; }
.conversa:hover, .conversa.ativa { background: var(--item-hover); }
.conversa.ativa { background: var(--item-ativo); }
.conversa-abrir { flex: 1; min-width: 0; padding: 7px 4px 7px 10px; text-align: left; font-size: 14px; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversa-mais { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 2px; border-radius: 8px; color: var(--texto-2); opacity: 0; }
.conversa-mais svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.conversa:hover .conversa-mais, .conversa.ativa .conversa-mais, .conversa-mais:focus-visible, .conversa-mais[aria-expanded="true"] { opacity: 1; }
.conversa-mais:hover { background: var(--superficie-hover); color: var(--texto); }
@media (pointer: coarse) { .conversa-mais { opacity: 1; } }
.menu-conversa, .menu-usuario { position: absolute; z-index: 25; min-width: 170px; padding: 6px; border: 1px solid var(--borda-forte); border-radius: 12px; background: var(--fundo); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); animation: surgir .12s ease both; }
.menu-conversa { right: 4px; top: 100%; }
.menu-conversa button, .menu-usuario button { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 14px; color: var(--texto); }
.menu-conversa button:hover, .menu-usuario button:hover, .menu-conversa button:focus-visible, .menu-usuario button:focus-visible { background: var(--item-hover); }
.menu-conversa .perigo { color: #f87171; }
:root[data-tema="claro"] .menu-conversa .perigo { color: #dc2626; }

/* Chamada para criar conta */
.chamada-conta { margin: 8px 2px; padding: 14px; border: 1px solid var(--borda); border-radius: 14px; background: var(--superficie); font-size: 13px; color: var(--texto-2); }
.chamada-conta p + p { margin-top: 4px; }
.chamada-conta strong { color: var(--texto); font-size: 14px; }
.chamada-conta .botoes { margin-top: 10px; }
.chamada-conta .botao { min-height: 32px; padding: 6px 12px; font-size: 13px; }

/* Usuário logado */
.area-usuario { position: relative; margin-top: 4px; }
.usuario-botao { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; }
.usuario-botao:hover { background: var(--item-hover); }
.avatar-inicial { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #3b5bdb; color: #fff; font-weight: 600; font-size: 14px; }
.usuario-textos { min-width: 0; }
.usuario-textos strong { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usuario-textos small { display: block; font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.usuario-textos small.alerta { color: #f5b74a; }
.menu-usuario { bottom: calc(100% + 6px); left: 0; right: 0; }
.item.entrar { margin-top: 4px; border: 1px solid var(--borda-forte); justify-content: center; }

/* Janelas (dialog) */
.modal { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--borda-forte); border-radius: 20px; background: var(--fundo); color: var(--texto); box-shadow: 0 24px 64px rgba(0, 0, 0, .45); overflow: auto; }
.modal::backdrop { background: rgba(0, 0, 0, .55); }
.modal[open] { animation: surgir .18s ease both; }
.modal-corpo { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.modal h2 { font-size: 20px; font-weight: 600; padding-right: 32px; }
.modal-sub { margin-top: -6px; font-size: 14px; color: var(--texto-2); }
.modal-fechar { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--texto-2); font-size: 16px; }
.modal-fechar:hover { background: var(--item-hover); color: var(--texto); }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--texto-2); }
.modal label small { font-weight: 400; color: var(--texto-3); }
.modal input:not([type=checkbox]), .modal select, .modal textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--borda-forte); border-radius: 10px; background: var(--superficie); color: var(--texto); font: inherit; font-size: 15px; }
.modal textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: transparent; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal .check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--texto-2); }
.modal .check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--link); }
.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dica { font-size: 12px; color: var(--texto-3); margin-top: -4px; }
.modal-erro { font-size: 14px; color: #f87171; }
.modal-erro:empty, .modal-ok:empty { display: none; }
:root[data-tema="claro"] .modal-erro { color: #dc2626; }
.modal-ok { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #22c55e 14%, transparent); font-size: 14px; color: var(--texto); }
.abas-conta { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--superficie); }
.abas-conta button { padding: 8px; border-radius: 9px; font-size: 14px; color: var(--texto-2); }
.abas-conta button[aria-selected="true"] { background: var(--fundo); color: var(--texto); font-weight: 500; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.botoes.direita { justify-content: flex-end; }
.bloco { border-top: 1px solid var(--borda); padding-top: 12px; }
.bloco summary { cursor: pointer; font-size: 14px; font-weight: 500; padding: 4px 0; }
.bloco[open] summary { margin-bottom: 10px; }
.selo-ok, .selo-alerta { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.selo-ok { background: color-mix(in srgb, #22c55e 14%, transparent); }
.selo-alerta { background: color-mix(in srgb, #f59e0b 16%, transparent); margin-bottom: 8px; }
.status-email { display: flex; flex-direction: column; align-items: flex-start; }
.texto-longo p { font-size: 14px; line-height: 1.6; color: var(--texto-2); }
.texto-longo strong { color: var(--texto); }
.lista-contatos { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lista-contatos li:not(.vazio-lista) { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px; border: 1px solid var(--borda); border-radius: 12px; }
.lista-contatos small { grid-column: 1 / -1; color: var(--texto-3); font-size: 12px; }
.lista-contatos .vazio-lista { color: var(--texto-3); font-size: 14px; }
.status { align-self: start; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--superficie); }
.status-novo { background: color-mix(in srgb, #3b82f6 18%, transparent); }
.status-lido { background: color-mix(in srgb, #f59e0b 18%, transparent); }
.status-respondido { background: color-mix(in srgb, #22c55e 18%, transparent); }
.sucesso { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.carregando { color: var(--texto-3); font-size: 14px; list-style: none; }

/* Avisos (toasts) */
.avisos { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.aviso-toast { position: relative; padding: 12px 40px 12px 14px; border: 1px solid var(--borda-forte); border-radius: 14px; background: var(--fundo); color: var(--texto); font-size: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); animation: surgir .2s ease both; }
.aviso-toast.erro { border-color: color-mix(in srgb, #f87171 60%, transparent); }
.aviso-toast.info { border-color: color-mix(in srgb, #3b82f6 55%, transparent); }
.aviso-toast .botoes { margin-top: 10px; }
.aviso-toast .botao { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.aviso-fechar { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 6px; color: var(--texto-3); font-size: 13px; }
.aviso-fechar:hover { background: var(--item-hover); color: var(--texto); }

@media (max-width: 560px) {
  .duas-colunas { grid-template-columns: 1fr; }
  .modal-corpo { padding: 20px 16px; }
  .avisos { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Animações ---------- */
@keyframes surgir { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulsar { 0%, 100% { transform: scale(.75); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- Celular e tablet ---------- */
@media (max-width: 860px) {
  .lateral { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(300px, 85vw); transform: translateX(-100%); transition: transform .22s ease, visibility .22s; visibility: hidden; }
  .lateral.aberta { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .lateral-fechada .lateral { width: min(300px, 85vw); padding: 8px; }
  .abrir-lateral { display: inline-grid; }
  #recolherLateral svg { display: none; }
  #recolherLateral::before { content: '✕'; font-size: 18px; }
  .item kbd { display: none; }
}

@media (max-width: 560px) {
  .rolagem { padding: 0 14px; }
  .area-entrada { padding-left: 10px; padding-right: 10px; }
  .saudacao h1 { font-size: 24px; }
  .saudacao p { font-size: 15px; padding: 0 8px; }
  .msg-usuario .bolha { max-width: 85%; }
  .botao-contato { padding: 6px 12px; font-size: 13px; }
  .sugestoes-iniciais .pilula:nth-child(n+5) { display: none; }
}

/* Avaliação das respostas (👍/👎) */
.acao.marcado { color: var(--texto); background: var(--item-ativo); }
.motivos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.motivos .pilula { padding: 5px 11px; font-size: 13px; background: var(--fundo); }

/* Campo-isca do recado: invisível para pessoas, atrai robôs. */
.isca { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Visual 2026-10: fundo futurista, saudação com destaque, "+" com dica,
   botão do J.A.R.V.I.S. com anel de LED e tutorial da primeira visita
   ========================================================================== */
:root { --neon: #4f8cff; --neon-2: #22d3ee; --neon-3: #a855f7; }
:root[data-tema="claro"] { --neon: #2563eb; --neon-2: #0891b2; --neon-3: #7c3aed; }

/* Fundo animado: fica atrás de tudo e some um pouco durante a conversa */
.fundo-futurista { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 1; transition: opacity .6s ease; }
.principal:not(.vazio) .fundo-futurista { opacity: .28; }
.topo, .rolagem { position: relative; z-index: 1; }
.area-entrada { z-index: 2; }

/* Saudação */
.saudacao h1.saudacao-titulo { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 20px; font-weight: 500; }
.saudacao-ola { font-size: 20px; color: var(--texto-2); font-weight: 400; }
.jarvis-nome {
  font-size: clamp(40px, 7vw, 60px); font-weight: 800; letter-spacing: .14em; line-height: 1.1; margin-right: -.14em;
  background: linear-gradient(100deg, var(--neon-2), var(--neon) 40%, var(--neon-3) 70%, var(--neon-2));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--neon) 55%, transparent));
  animation: brilhoNome 7s linear infinite;
}
.saudacao-sub { margin-top: 4px; font-size: 17px; font-weight: 500; color: var(--texto); letter-spacing: .01em; }
.saudacao .saudacao-texto { margin-top: 10px; font-size: 13.5px; color: var(--texto-3); }
@keyframes brilhoNome { to { background-position: -250% 0; } }
.saudacao-foto { box-shadow: 0 0 0 3px var(--fundo), 0 0 0 4px color-mix(in srgb, var(--neon) 70%, transparent), 0 0 28px color-mix(in srgb, var(--neon) 45%, transparent); }
.principal.vazio .compositor { box-shadow: var(--sombra-caixa), 0 0 0 1px color-mix(in srgb, var(--neon) 22%, transparent), 0 0 40px -12px color-mix(in srgb, var(--neon) 55%, transparent); }

/* "+" do acesso rápido */
.botao-rapido { justify-content: center; width: 36px; height: 36px; padding: 0; gap: 0; border-radius: 50%; }
.botao-rapido svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .2s ease; }
.botao-rapido[aria-expanded="true"] svg { transform: rotate(45deg); }

/* Dica ao passar o mouse (ou focar pelo teclado) */
[data-dica] { position: relative; }
[data-dica]::after {
  content: attr(data-dica); position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 30;
  padding: 6px 10px; border-radius: 8px; background: #0d0d0d; color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s;
}
.botao-rapido[data-dica]::after { left: 0; transform: translate(0, 4px); }
.botao-voz[data-dica]::after { left: auto; right: -4px; transform: translate(0, 4px); }
[data-dica]:hover::after, [data-dica]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.botao-rapido[data-dica]:hover::after, .botao-rapido[data-dica]:focus-visible::after,
.botao-voz[data-dica]:hover::after, .botao-voz[data-dica]:focus-visible::after { transform: translate(0, 0); }
.botao-rapido[aria-expanded="true"]::after { display: none; }
@media (hover: none) { [data-dica]:hover::after { opacity: 0; } }

/* Botão do J.A.R.V.I.S.: LED girando por trás */
.botao-voz { position: relative; isolation: isolate; width: 42px; height: 42px; background: radial-gradient(circle at 35% 30%, #6b9bff, #2f5fe0 60%, #1e3fae); box-shadow: 0 0 18px color-mix(in srgb, var(--neon) 70%, transparent); }
.botao-voz::before {
  content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: 50%;
  background: conic-gradient(from var(--giro, 0deg), var(--neon-2), transparent 30%, var(--neon) 50%, transparent 70%, var(--neon-3) 85%, var(--neon-2));
  filter: blur(3px); animation: giroLed 2.4s linear infinite;
}
.botao-voz > svg { position: relative; z-index: 1; }
.botao-voz:not(.tutorial-exemplo) { animation: chamarVoz 2.8s ease-in-out infinite; }
@property --giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes giroLed { to { --giro: 360deg; } }
@keyframes chamarVoz {
  0%, 100% { box-shadow: 0 0 14px color-mix(in srgb, var(--neon) 60%, transparent), 0 0 0 0 color-mix(in srgb, var(--neon-2) 45%, transparent); }
  50% { box-shadow: 0 0 26px color-mix(in srgb, var(--neon) 85%, transparent), 0 0 0 9px color-mix(in srgb, var(--neon-2) 0%, transparent); }
}

/* Tutorial da primeira visita */
.tutorial { width: min(440px, calc(100vw - 24px)); margin: auto; padding: 0; border: 1px solid color-mix(in srgb, var(--neon) 35%, var(--borda-forte)); border-radius: 22px; background: var(--fundo); color: var(--texto); box-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 0 60px -20px color-mix(in srgb, var(--neon) 70%, transparent); overflow: hidden; }
.tutorial::backdrop { background: rgba(5, 10, 25, .62); backdrop-filter: blur(4px); }
.tutorial-corpo { padding: 28px 24px 18px; text-align: center; }
.tutorial-passo { animation: surgir .3s ease both; }
.tutorial-passo h2 { font-size: 21px; font-weight: 600; margin-top: 14px; }
.tutorial-passo p { margin-top: 8px; font-size: 15px; color: var(--texto-2); line-height: 1.55; }
.tutorial-orbe { width: 76px; height: 76px; margin: 4px auto 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9cc1ff, var(--neon) 45%, #1b2f7a 75%); box-shadow: 0 0 34px color-mix(in srgb, var(--neon) 80%, transparent), inset 0 0 18px rgba(255, 255, 255, .35); animation: chamarVoz 2.8s ease-in-out infinite; }
.tutorial-icone { display: flex; justify-content: center; padding-top: 8px; }
.tutorial-icone .tutorial-exemplo { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; }
.tutorial-icone .tutorial-exemplo svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tutorial-icone .botao-rapido.tutorial-exemplo { border: 1px solid var(--borda-forte); color: var(--texto); }
.tutorial-escolhas { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.tutorial-escolhas .botao { width: 100%; }
.tutorial-rodape { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tutorial-pontos { display: flex; gap: 6px; margin-right: auto; }
.tutorial-pontos span { width: 7px; height: 7px; border-radius: 50%; background: var(--borda-forte); transition: background .2s, width .2s; }
.tutorial-pontos span.ativo { width: 18px; border-radius: 4px; background: var(--neon); }
.tutorial[data-passo="4"] #tutorialProximo { display: none; }

@media (max-width: 560px) {
  .saudacao-ola { font-size: 17px; }
  .saudacao-sub { font-size: 15px; }
  .saudacao .saudacao-texto { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .jarvis-nome, .botao-voz, .botao-voz::before, .tutorial-orbe { animation: none !important; }
}

/* ---------- Caixa de mensagem em uma linha só: [+] [texto……] [mic] [voz/enviar] ----------
   Cresce para cima quando o texto passa de uma linha; os botões ficam embaixo. */
.compositor { display: flex; align-items: flex-end; gap: 4px; padding: 6px; border-radius: 26px; }
.compositor-rodape { display: contents; }
.compositor textarea { order: 1; flex: 1; min-width: 0; width: auto; align-self: center; min-height: 24px; padding: 6px 6px; font-size: 16px; line-height: 1.5; }
.compositor .botao-rapido { order: 0; flex-shrink: 0; border: 0; }
.compositor .contador { order: 2; align-self: center; margin: 0 4px; }
.compositor .microfone { order: 3; flex-shrink: 0; }
.compositor .botao-voz { order: 4; flex-shrink: 0; width: 36px; height: 36px; margin: 0 2px 0 4px; }
.compositor .enviar { order: 5; flex-shrink: 0; }
.compositor.multilinha { border-radius: 22px; }
.compositor.multilinha textarea { align-self: stretch; }
.principal.vazio .compositor { max-width: 40rem; }
.compositor .botao-voz[data-dica]::after { right: -6px; }

/* Celular com o teclado aberto: some o que é decorativo e a caixa sobe junto com o teclado */
.app { height: var(--altura-visivel, 100dvh); }
.principal { height: var(--altura-visivel, 100dvh); }
html.teclado .principal.vazio .area-entrada { justify-content: flex-end; padding-bottom: 8px; }
html.teclado .principal.vazio .saudacao { margin-bottom: 12px; }
html.teclado .saudacao-foto, html.teclado .saudacao-nome, html.teclado .saudacao-cargo, html.teclado .saudacao-texto, html.teclado .saudacao-ola, html.teclado .saudacao-sub { display: none; }
html.teclado .saudacao h1.saudacao-titulo { margin-top: 0; }
html.teclado .jarvis-nome { font-size: 30px; }
html.teclado .principal.vazio .aviso { display: none; }

/* Ícone do WhatsApp nas pílulas (recado) */
.pilula .icone-whatsapp { width: 16px; height: 16px; fill: #25d366; stroke: none; flex-shrink: 0; }

/* ==========================================================================
   HUD do J.A.R.V.I.S. na tela de voz (estilo Homem de Ferro)
   ========================================================================== */
.tela-voz { --hud: #4fe3ff; --hud-2: #1aa3ff; --hud-quente: #ffb547; overflow: hidden; }
.tela-voz .voz-marca { color: var(--hud); text-shadow: 0 0 12px rgba(79, 227, 255, .6); letter-spacing: .5em; font-weight: 600; }
.tela-voz .voz-estado { color: #d8f7ff; letter-spacing: .02em; }
.tela-voz .voz-legenda { color: #8fb8c8; }

/* Moldura: cantos, telemetria e varredura */
.hud-moldura { position: absolute; inset: 14px; pointer-events: none; }
.hud-canto { position: absolute; width: 26px; height: 26px; border: 2px solid var(--hud); opacity: .75; filter: drop-shadow(0 0 6px var(--hud)); }
.hud-canto.a { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-canto.b { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-canto.c { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-canto.d { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-tele { position: absolute; top: 12px; display: flex; flex-direction: column; gap: 2px; font: 600 10px/1.4 var(--mono); letter-spacing: .14em; color: rgba(79, 227, 255, .7); text-transform: uppercase; }
.hud-tele b { color: var(--hud); font-size: 11px; }
.hud-tele.esq { left: 40px; }
.hud-tele.dir { right: 40px; text-align: right; align-items: flex-end; }
.hud-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-top: 3px; }
.hud-eq i { width: 3px; height: 3px; background: var(--hud); animation: hudEq 1s ease-in-out infinite; }
.hud-eq i:nth-child(2) { animation-delay: -.2s; }
.hud-eq i:nth-child(3) { animation-delay: -.5s; }
.hud-eq i:nth-child(4) { animation-delay: -.7s; }
.hud-eq i:nth-child(5) { animation-delay: -.35s; }
.hud-eq i:nth-child(6) { animation-delay: -.9s; }
@keyframes hudEq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.hud-varredura { position: absolute; inset: 0; overflow: hidden; background: repeating-linear-gradient(0deg, rgba(79, 227, 255, .025) 0 1px, transparent 1px 4px); }
.hud-varredura::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(79, 227, 255, .06), transparent); animation: hudVarrer 6s linear infinite; }
@keyframes hudVarrer { from { transform: translateY(-120px); } to { transform: translateY(100vh); } }

/* Anéis em volta da esfera */
.voz-orbe canvas { position: relative; z-index: 1; }
.hud-aneis { position: absolute; inset: -6%; width: 112%; height: 112%; pointer-events: none; overflow: visible; }
.hud-aneis circle { fill: none; transform-origin: 100px 100px; }
.anel-ticks { stroke: rgba(79, 227, 255, .35); stroke-width: 3; stroke-dasharray: .4 4.6; animation: hudGiro 60s linear infinite; }
.anel-a { stroke: var(--hud); stroke-width: .8; stroke-dasharray: 22 6 3 6 30 8 2 23; opacity: .7; animation: hudGiro 24s linear infinite; filter: drop-shadow(0 0 2px var(--hud)); }
.anel-b { stroke: var(--hud-2); stroke-width: 2; stroke-dasharray: 8 17; opacity: .45; animation: hudGiro 16s linear infinite reverse; }
.anel-proc { stroke: var(--hud-quente); stroke-width: 1.6; stroke-dasharray: 0 100; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 3px var(--hud-quente)); }
@keyframes hudGiro { to { transform: rotate(360deg); } }
.hud-radar { position: absolute; inset: 9%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(79, 227, 255, .22) 96%, rgba(79, 227, 255, .5) 100%); opacity: 0; transition: opacity .4s; pointer-events: none; animation: hudGiro 1.6s linear infinite; -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%); mask: radial-gradient(circle, transparent 55%, #000 56%); }

/* Pensando: anéis aceleram, arco âmbar carregando, radar varrendo e etapas */
.tela-voz[data-estado="pensando"] .anel-a { animation-duration: 3s; }
.tela-voz[data-estado="pensando"] .anel-b { animation-duration: 2.2s; }
.tela-voz[data-estado="pensando"] .anel-proc { opacity: 1; animation: hudCarregar 1.8s ease-in-out infinite, hudGiro 2.4s linear infinite; }
.tela-voz[data-estado="pensando"] .hud-radar { opacity: 1; }
@keyframes hudCarregar { 0% { stroke-dasharray: 0 100; } 50% { stroke-dasharray: 45 55; } 100% { stroke-dasharray: 0 100; stroke-dashoffset: -100; } }
.tela-voz[data-estado="falando"] .anel-a { animation-duration: 8s; opacity: 1; }
.hud-processo { display: none; margin: -6px 0 0; padding: 0; list-style: none; font: 500 12px/1.9 var(--mono); letter-spacing: .06em; color: rgba(79, 227, 255, .45); text-transform: uppercase; }
.tela-voz[data-estado="pensando"] .hud-processo { display: block; }
.hud-processo li { position: relative; padding-left: 20px; transition: color .3s; }
.hud-processo li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border: 1px solid currentColor; border-radius: 2px; box-sizing: border-box; }
.hud-processo li.ativo { color: var(--hud); }
.hud-processo li.ativo::before { border-color: var(--hud); border-top-color: transparent; border-radius: 50%; animation: hudGiro .7s linear infinite; }
.hud-processo li.ativo::after { content: "▮"; margin-left: 4px; animation: hudPiscar .8s steps(1) infinite; }
.hud-processo li.feito { color: rgba(216, 247, 255, .8); }
.hud-processo li.feito::before { content: "✓"; border: 0; top: 0; margin: 0; width: auto; height: auto; font-size: 11px; line-height: 1.9; color: var(--hud); }
@keyframes hudPiscar { 50% { opacity: 0; } }

/* Painéis holográficos */
.hud-painel { position: absolute; top: 50%; z-index: 2; width: min(25vw, 330px); max-height: 74vh; padding: 18px 18px 16px; transform: translateY(-50%); overflow: hidden; color: #d8f7ff;
  background: linear-gradient(160deg, rgba(10, 40, 66, .55), rgba(4, 16, 30, .35)); border: 1px solid rgba(79, 227, 255, .22); box-shadow: inset 0 0 30px rgba(79, 227, 255, .06), 0 0 30px rgba(0, 120, 255, .08); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.hud-esq { left: 4vw; }
.hud-dir { right: 4vw; }
.hud-painel .hud-canto { width: 12px; height: 12px; border-width: 1px; opacity: .9; }
.hud-painel.entrando { animation: hudAbrir .75s cubic-bezier(.2, .8, .2, 1) both; }
.hud-painel.saindo { animation: hudFechar .38s ease-in both; }
@keyframes hudAbrir { 0% { clip-path: polygon(0 50%, 0 50%, 100% 50%, 100% 50%, 100% 50%, 0 50%); opacity: 0; } 30% { opacity: 1; } 100% { clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); opacity: 1; } }
@keyframes hudFechar { to { opacity: 0; filter: blur(4px); } }
.hud-painel [data-anim] { animation: hudSubir .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--i, 0) * 90ms); }
.hud-painel [data-anim="pop"] { animation-name: hudPop; animation-duration: .4s; animation-delay: calc(.45s + var(--i, 0) * 45ms); }
.hud-painel [data-anim="materializar"] { animation-name: hudMaterializar; animation-duration: .9s; }
.hud-painel [data-anim="linha"] { animation-name: hudLinha; }
@keyframes hudSubir { from { opacity: 0; transform: translateX(-14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hudPop { from { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes hudMaterializar { 0% { opacity: 0; filter: blur(8px) brightness(2.2); clip-path: inset(0 0 100% 0); } 60% { opacity: 1; clip-path: inset(0); } 100% { filter: none; } }
@keyframes hudLinha { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }

.hud-titulo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(79, 227, 255, .25); font: 700 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hud); }
.hud-titulo small { flex-basis: 100%; font-weight: 500; font-size: 10px; letter-spacing: .1em; color: rgba(143, 216, 236, .7); }
.hud-titulo-marca { color: var(--hud-quente); font-size: 9px; }
.hud-numero { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.hud-numero strong { min-width: 64px; font: 700 30px/1 var(--mono); color: #fff; text-shadow: 0 0 14px rgba(79, 227, 255, .8); }
.hud-numero span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8fd8ec; }
.hud-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hud-chip { padding: 3px 9px; border: 1px solid rgba(79, 227, 255, .4); background: rgba(79, 227, 255, .08); font: 600 11px/1.5 var(--mono); color: #c9f4ff; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.hud-texto { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: #cfeef8; min-height: 1.5em; }
.hud-texto.pequeno { font-size: 12px; color: #8fc2d4; }
.hud-texto.citacao { font-style: italic; font-size: 14px; }
.hud-nome { margin: 10px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; color: #fff; text-align: center; }
.hud-esq .hud-imagem.retrato + .hud-nome + .hud-texto { text-align: center; }
.hud-item { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; padding: 7px 10px; border-left: 2px solid var(--hud); background: linear-gradient(90deg, rgba(79, 227, 255, .1), transparent); font-size: 13px; color: #fff; }
.hud-item strong { font-size: 13px; color: #fff; font-weight: 600; }
.hud-item span { font-size: 11.5px; color: #8fc2d4; line-height: 1.4; }

.hud-imagem { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(79, 227, 255, .35); }
.hud-imagem img { display: block; width: 100%; height: auto; filter: saturate(.85) contrast(1.05); }
.hud-imagem.retrato { width: 132px; height: 132px; margin: 4px auto 0; border-radius: 50%; box-shadow: 0 0 0 4px rgba(79, 227, 255, .12), 0 0 26px rgba(79, 227, 255, .35); }
.hud-imagem.retrato img { width: 100%; height: 100%; object-fit: cover; }
.hud-scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(79, 227, 255, .35), transparent); mix-blend-mode: screen; animation: hudScan 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes hudScan { 0% { transform: translateY(-100%); } 100% { transform: translateY(340%); } }

.hud-carrossel { position: relative; height: 190px; overflow: hidden; border: 1px solid rgba(79, 227, 255, .3); background: rgba(0, 0, 0, .25); }
.hud-carrossel.logos { height: 120px; margin-top: 10px; background: rgba(255, 255, 255, .92); }
.hud-quadro { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; opacity: 0; transform: scale(1.04); transition: opacity .6s, transform 2.6s ease-out; }
.hud-quadro.ativo { opacity: 1; transform: none; }
.hud-quadro img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 8px; }
.hud-quadro figcaption { padding: 5px 8px; font-size: 11px; color: #d8f7ff; background: rgba(2, 12, 24, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-carrossel.logos figcaption { color: #0b2236; background: rgba(79, 227, 255, .25); }

.hud-barras { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hud-barra { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: 12px; color: #cfeef8; }
.hud-barra b { font-family: var(--mono); color: var(--hud); }
.hud-barra i { grid-column: 1 / -1; height: 4px; background: rgba(79, 227, 255, .12); position: relative; overflow: hidden; }
.hud-barra i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); background: linear-gradient(90deg, var(--hud-2), var(--hud)); box-shadow: 0 0 8px var(--hud); animation: hudBarra 1.2s cubic-bezier(.2, .8, .2, 1) both; animation-delay: .7s; }
@keyframes hudBarra { from { width: 0; } }

.hud-tempo { position: relative; margin: 4px 0 0; padding: 0 0 0 20px; list-style: none; }
.hud-tempo::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--hud), var(--hud-2)); transform-origin: top; animation: hudCrescer 1.4s cubic-bezier(.2, .8, .2, 1) .4s both; box-shadow: 0 0 8px var(--hud); }
@keyframes hudCrescer { from { transform: scaleY(0); } }
.hud-tempo li { position: relative; display: flex; flex-direction: column; margin-bottom: 12px; }
.hud-tempo li::before { content: ""; position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--hud); background: #04101e; box-shadow: 0 0 10px var(--hud); box-sizing: border-box; }
.hud-tempo li:last-child::before { background: var(--hud-quente); border-color: var(--hud-quente); box-shadow: 0 0 12px var(--hud-quente); }
.hud-tempo strong { font-size: 13.5px; color: #fff; }
.hud-tempo span { font-size: 12px; color: #8fc2d4; line-height: 1.4; }

.hud-fluxo { display: block; width: 100%; height: auto; overflow: visible; }
.hud-fluxo-linha { fill: none; stroke: rgba(79, 227, 255, .55); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hudTracar 1.6s ease .5s forwards; }
@keyframes hudTracar { to { stroke-dashoffset: 0; } }
.hud-fluxo-pulso { fill: var(--hud-quente); filter: drop-shadow(0 0 5px var(--hud-quente)); }
.hud-fluxo-no circle { fill: #04101e; stroke: var(--hud); stroke-width: 2; filter: drop-shadow(0 0 4px var(--hud)); }
.hud-fluxo-no text { fill: #d8f7ff; font-size: 11px; font-weight: 600; font-family: var(--fonte); }
.hud-fluxo-no { opacity: 0; animation: hudSurgirNo .5s ease forwards; animation-delay: calc(.6s + var(--i) * .28s); }
@keyframes hudSurgirNo { to { opacity: 1; } }

.hud-ui { position: relative; border: 1px solid rgba(79, 227, 255, .4); background: rgba(2, 12, 24, .6); }
.hud-ui-topo { display: flex; gap: 5px; padding: 7px 9px; border-bottom: 1px solid rgba(79, 227, 255, .25); }
.hud-ui-topo i { width: 7px; height: 7px; border-radius: 50%; background: rgba(79, 227, 255, .5); }
.hud-ui-corpo { display: flex; flex-direction: column; gap: 9px; padding: 12px; }
.hud-ui-corpo > div { animation: hudMontar 4.5s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: calc(var(--j) * .35s); transform-origin: left; }
.hud-ui-heroi { height: 56px; background: linear-gradient(120deg, rgba(26, 163, 255, .55), rgba(79, 227, 255, .2)); border: 1px solid rgba(79, 227, 255, .5); }
.hud-ui-linha { height: 8px; background: rgba(216, 247, 255, .5); width: 85%; }
.hud-ui-linha.curta { width: 55%; background: rgba(216, 247, 255, .3); }
.hud-ui-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.hud-ui-cards span { height: 44px; border: 1px solid rgba(79, 227, 255, .45); background: rgba(79, 227, 255, .08); }
@keyframes hudMontar { 0% { opacity: 0; transform: scaleX(0); } 18%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.hud-cursor { position: absolute; width: 10px; height: 14px; background: var(--hud-quente); clip-path: polygon(0 0, 100% 70%, 45% 70%, 30% 100%); animation: hudCursor 4.5s ease-in-out infinite; filter: drop-shadow(0 0 4px var(--hud-quente)); }
@keyframes hudCursor { 0% { left: 15%; top: 30%; } 30% { left: 70%; top: 40%; } 60% { left: 40%; top: 78%; } 100% { left: 15%; top: 30%; } }

.hud-whats { display: grid; place-items: center; height: 160px; }
.hud-whats svg { width: 92px; height: 92px; fill: #25d366; filter: drop-shadow(0 0 18px rgba(37, 211, 102, .7)); animation: hudPulsoW 1.8s ease-in-out infinite; }
@keyframes hudPulsoW { 50% { transform: scale(1.08); filter: drop-shadow(0 0 28px rgba(37, 211, 102, .9)); } }

/* Telas menores */
@media (max-width: 1100px) {
  .hud-painel { width: min(280px, 25vw); padding: 14px; }
  .hud-esq { left: 2vw; }
  .hud-dir { right: 2vw; }
}
@media (max-width: 860px) {
  .hud-tele, .hud-esq { display: none !important; }
  .hud-dir { top: 52px; left: 12px; right: 12px; width: auto; max-height: 27vh; transform: none; padding: 10px 12px; }
  .hud-dir .hud-titulo { margin-bottom: 6px; }
  .hud-dir .hud-numero { display: inline-flex; margin: 0 14px 4px 0; }
  .hud-dir .hud-numero strong { font-size: 22px; min-width: 0; }
  .hud-dir .hud-item:nth-of-type(n+4), .hud-dir .hud-barra:nth-child(n+4) { display: none; }
  .hud-dir .hud-tempo li:nth-child(n+3) { display: none; }
  .tela-voz:has(.hud-dir:not([hidden])) .voz-orbe { width: min(62vw, 270px); margin-top: 22vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-painel *, .hud-painel::before, .hud-aneis *, .hud-radar, .hud-varredura::after, .hud-eq i { animation: none !important; }
  .hud-fluxo-no { opacity: 1; }
  .hud-fluxo-linha { stroke-dashoffset: 0; }
}

/* Esfera do tutorial: a mesma de partículas da conversa por voz */
.tutorial-orbe { display: block; width: 150px; height: 150px; margin: -6px auto -10px; border-radius: 50%; background: radial-gradient(circle, #0e2442 0%, rgba(7, 19, 36, .9) 55%, transparent 72%); box-shadow: none; animation: none; }

/* "Pensando…" no chat: anel girando + texto com brilho passando */
.pensando { display: inline-flex; align-items: center; gap: 10px; width: auto; height: auto; margin: 4px 0; background: none; border-radius: 0; animation: none; font-size: 14.5px; color: var(--texto-2); }
.pensando-anel { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--neon) 25%, transparent); border-top-color: var(--neon-2); border-right-color: var(--neon); animation: hudGiro .8s linear infinite; box-shadow: 0 0 10px color-mix(in srgb, var(--neon) 45%, transparent); }
.pensando-anel::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--neon); animation: pulsar 1.2s ease-in-out infinite; }
.pensando-texto { background: linear-gradient(90deg, var(--texto-3) 0%, var(--texto) 50%, var(--texto-3) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brilhoNome 1.6s linear infinite; }
.pensando.demorando .pensando-anel { border-top-color: #ffb547; }
.escrevendo .conteudo > .pensando:last-child::after { display: none; }
@media (prefers-reduced-motion: reduce) { .pensando-anel, .pensando-anel::after, .pensando-texto { animation: none; } .pensando-texto { color: var(--texto-2); } }

/* Apresentação das recomendações: faixa de fotos e progresso */
.hud-texto.centro { text-align: center; }
.hud-faixa { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(79, 227, 255, .2); }
.hud-faixa-foto { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(79, 227, 255, .35); opacity: .35; filter: grayscale(1); transition: all .5s cubic-bezier(.2, .8, .2, 1); }
.hud-faixa-foto img { width: 100%; height: 100%; object-fit: cover; }
.hud-faixa-foto.vista { opacity: .7; filter: grayscale(.4); }
.hud-faixa-foto.atual { opacity: 1; filter: none; transform: scale(1.3); border-color: var(--hud); box-shadow: 0 0 10px var(--hud); animation: hudFaixa .9s cubic-bezier(.2, .8, .2, 1) .5s both; }
@keyframes hudFaixa { from { transform: scale(.6); } 60% { transform: scale(1.45); } to { transform: scale(1.3); } }
.hud-progresso { display: grid; gap: 5px; margin-bottom: 10px; font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--hud); }
.hud-progresso i { height: 3px; background: rgba(79, 227, 255, .15); position: relative; overflow: hidden; }
.hud-progresso i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--p); background: linear-gradient(90deg, var(--hud-2), var(--hud)); box-shadow: 0 0 8px var(--hud); animation: hudBarra 1s cubic-bezier(.2, .8, .2, 1) .5s both; }
@media (max-width: 860px) { .hud-dir .hud-progresso { margin-bottom: 6px; } }
.hud-pessoa-cel { display: none; }
@media (max-width: 860px) {
  .hud-pessoa-cel { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
  .hud-pessoa-cel img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hud); box-shadow: 0 0 12px rgba(79, 227, 255, .5); }
  .hud-pessoa-cel strong { display: block; font-size: 14px; color: #fff; }
  .hud-pessoa-cel span { font-size: 11.5px; color: #8fc2d4; }
  .hud-dir .hud-texto.citacao { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Pipeline (como eu funciono / infraestrutura): cartões ligados por uma linha com luz */
.hud-pipe { position: relative; margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hud-pipe::before { content: ""; position: absolute; left: 48px; top: 22px; bottom: 22px; width: 2px; background: rgba(79, 227, 255, .18); transform-origin: top; animation: hudCrescer 1.2s cubic-bezier(.2, .8, .2, 1) .4s both; }
.hud-pipe::after { content: ""; position: absolute; left: 46px; top: 22px; width: 6px; height: 34px; border-radius: 3px; background: linear-gradient(180deg, transparent, var(--hud-quente), transparent); filter: drop-shadow(0 0 6px var(--hud-quente)); animation: hudPipeLuz 2.6s cubic-bezier(.45, 0, .55, 1) 1.2s infinite; opacity: 0; }
@keyframes hudPipeLuz { 0% { top: 10px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 44px); opacity: 0; } }
.hud-pipe-etapa { position: relative; display: grid; grid-template-columns: 18px 36px 1fr; align-items: center; gap: 8px; padding: 7px 10px 7px 6px; border: 1px solid rgba(79, 227, 255, .2); background: linear-gradient(90deg, rgba(79, 227, 255, .09), rgba(79, 227, 255, .02)); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  opacity: 0; animation: hudSubir .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.5s + var(--k) * .22s); }
.hud-pipe-num { font: 700 10px/1 var(--mono); color: rgba(79, 227, 255, .55); letter-spacing: .05em; }
.hud-pipe-icone { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #061a2c; border: 1.5px solid var(--hud); box-shadow: 0 0 12px rgba(79, 227, 255, .35), inset 0 0 8px rgba(79, 227, 255, .2); }
.hud-pipe-icone svg { width: 17px; height: 17px; fill: none; stroke: var(--hud); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hud-pipe-etapa:last-child .hud-pipe-icone { border-color: var(--hud-quente); box-shadow: 0 0 14px rgba(255, 181, 71, .45); }
.hud-pipe-etapa:last-child .hud-pipe-icone svg { stroke: var(--hud-quente); }
.hud-pipe-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hud-pipe-txt strong { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .01em; }
.hud-pipe-txt span { font-size: 11px; color: #8fc2d4; line-height: 1.35; }
/* a etapa "acende" quando a luz passa */
.hud-pipe-etapa .hud-pipe-icone { animation: hudPipeAcende 2.6s ease-in-out infinite; animation-delay: calc(1.2s + var(--k) * (2.6s / var(--n))); }
@keyframes hudPipeAcende { 0%, 100% { box-shadow: 0 0 12px rgba(79, 227, 255, .35), inset 0 0 8px rgba(79, 227, 255, .2); } 12% { box-shadow: 0 0 22px rgba(79, 227, 255, .9), inset 0 0 12px rgba(79, 227, 255, .5); } }
@media (prefers-reduced-motion: reduce) { .hud-pipe-etapa { opacity: 1; } .hud-pipe::after { display: none; } }

/* Galeria de telas do PH CORE */
.grade-telas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.tela { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--borda); border-radius: 14px; background: var(--fundo); text-align: left; transition: border-color .15s, transform .15s; animation: surgir .35s ease both; }
.tela:hover { border-color: var(--borda-forte); transform: translateY(-2px); }
.tela-img { position: relative; display: block; aspect-ratio: 16 / 10; background: #f3f4f6; overflow: hidden; border-bottom: 1px solid var(--borda); }
.tela-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tela:hover .cert-zoom, .tela:focus-visible .cert-zoom { opacity: 1; }
.tela-info { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px 11px; }
.tela-info em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.tela-info strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.nota-telas { margin-top: 12px; font-size: 12px; color: var(--texto-3); }
.proj button.proj-link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 13px; }

/* HUD: carrossel das telas (paisagem) */
.hud-carrossel.telas { height: auto; aspect-ratio: 16 / 11; }
.hud-carrossel.telas .hud-quadro img { object-fit: cover; object-position: top left; padding: 0; }

/* Visualizador: moldura e modo apresentação (movimento de câmera pela tela) */
.vis-moldura { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.visualizador .vis-moldura img { display: block; box-shadow: none; border-radius: 0; }
.vis-progresso { display: none; }
.visualizador.auto .vis-moldura { width: min(1100px, 92vw); aspect-ratio: 16 / 10; max-height: 78vh; background: #fff; }
.visualizador.auto .vis-moldura img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: top left; transform-origin: 0 0; }
.visualizador.auto .vis-moldura.kb img { animation: visEntra .7s cubic-bezier(.2, .8, .2, 1) both, visCamera0 7s ease-in-out .3s both; }
.visualizador.auto .vis-moldura.kb[data-mov="1"] img { animation-name: visEntra, visCamera1; }
.visualizador.auto .vis-moldura.kb[data-mov="2"] img { animation-name: visEntra, visCamera2; }
.visualizador.auto .vis-moldura.kb[data-mov="3"] img { animation-name: visEntra, visCamera3; }
.visualizador.auto .vis-progresso { display: block; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #22d3ee, #4f8cff); transform-origin: left; }
.visualizador.auto .vis-moldura.kb .vis-progresso { animation: visProgresso 7s linear both; }
@keyframes visEntra { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
/* 0: vista geral → aproxima do conteúdo, "rolando" para baixo */
@keyframes visCamera0 { 0% { transform: scale(1) translate(0, 0); } 35% { transform: scale(1.45) translate(-14%, -4%); } 100% { transform: scale(1.45) translate(-14%, -28%); } }
/* 1: começa no topo à direita e desce */
@keyframes visCamera1 { 0% { transform: scale(1.5) translate(-30%, 0); } 100% { transform: scale(1.5) translate(-30%, -30%); } }
/* 2: percorre da esquerda para a direita */
@keyframes visCamera2 { 0% { transform: scale(1.6) translate(-8%, -12%); } 100% { transform: scale(1.6) translate(-36%, -20%); } }
/* 3: aproxima e depois volta à tela inteira */
@keyframes visCamera3 { 0% { transform: scale(1) translate(0, 0); } 45% { transform: scale(1.5) translate(-18%, -16%); } 100% { transform: scale(1) translate(0, 0); } }
@keyframes visProgresso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.assistir-telas { margin-top: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--borda-forte); background: var(--fundo); color: var(--texto); font-size: 13.5px; font-weight: 600; }
.assistir-telas:hover { background: var(--item-hover); }
@media (prefers-reduced-motion: reduce) { .visualizador.auto .vis-moldura.kb img { animation: visEntra .3s both; } }

/* ==========================================================================
   HUD: monitor das telas do PH CORE (apresentação por voz)
   ========================================================================== */
.hud-monitor { position: absolute; z-index: 3; top: 64px; left: 50%; width: min(52vw, 900px, calc((100vh - 330px) * 1.6)); transform: translateX(-50%); perspective: 1400px; pointer-events: none; }
.hud-monitor-tela { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f3f4f6; border: 1px solid rgba(79, 227, 255, .55);
  box-shadow: 0 0 0 1px rgba(79, 227, 255, .15), 0 0 40px rgba(79, 227, 255, .35), 0 30px 80px rgba(0, 0, 0, .6); clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.hud-monitor-tela img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transform-origin: 0 0; }
.hud-monitor-tela.entrando { animation: hudMonitorEntra .9s cubic-bezier(.2, .8, .2, 1) both; }
.hud-monitor-tela.entrando img { animation: monCamera0 8.5s ease-in-out .5s both; }
.hud-monitor-tela.entrando[data-mov="1"] img { animation-name: monCamera1; }
.hud-monitor-tela.entrando[data-mov="2"] img { animation-name: monCamera2; }
.hud-monitor-tela.entrando[data-mov="3"] img { animation-name: monCamera3; }
@keyframes hudMonitorEntra {
  0% { opacity: 0; transform: rotateX(18deg) rotateY(-14deg) scale(.86); filter: brightness(2.4) saturate(0) blur(4px); clip-path: polygon(0 50%, 0 50%, 100% 50%, 100% 50%, 100% 50%, 0 50%); }
  45% { opacity: 1; filter: brightness(1.4) saturate(.6); clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
  100% { transform: none; filter: none; }
}
/* Câmera: aproxima e "rola" pela tela, como num vídeo */
@keyframes monCamera0 { 0% { transform: scale(1) translate(0, 0); } 30% { transform: scale(1.45) translate(-12%, -4%); } 100% { transform: scale(1.45) translate(-12%, -28%); } }
@keyframes monCamera1 { 0% { transform: scale(1.5) translate(-30%, 0); } 100% { transform: scale(1.5) translate(-30%, -30%); } }
@keyframes monCamera2 { 0% { transform: scale(1.6) translate(-6%, -10%); } 100% { transform: scale(1.6) translate(-36%, -22%); } }
@keyframes monCamera3 { 0% { transform: scale(1) translate(0, 0); } 45% { transform: scale(1.5) translate(-18%, -16%); } 100% { transform: scale(1) translate(0, 0); } }
.hud-monitor-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(79, 227, 255, .05) 0 1px, transparent 1px 3px); }
.hud-monitor-scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(79, 227, 255, .22), transparent); mix-blend-mode: screen; animation: hudScan 3.2s ease-in-out infinite; }
.hud-monitor-barra { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--hud-2), var(--hud)); box-shadow: 0 0 8px var(--hud); transform-origin: left; transform: scaleX(0); }
.hud-monitor-tela.entrando .hud-monitor-barra { animation: visProgresso 9s linear both; }
.hud-monitor-legenda { margin: 10px 0 0; text-align: center; font: 600 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hud); text-shadow: 0 0 10px rgba(79, 227, 255, .6); }

/* Modo telas: esfera menor embaixo, painéis estreitos dos lados */
.tela-voz.modo-telas[open] { justify-content: flex-end; padding-bottom: calc(118px + env(safe-area-inset-bottom)); gap: 6px; }
.tela-voz.modo-telas[open] .voz-orbe { width: min(26vw, 150px); margin-top: 0; transition: width .5s ease; }
.tela-voz.modo-telas .voz-marca { display: none; }
.tela-voz.modo-telas .voz-legenda { -webkit-line-clamp: 2; min-height: 0; font-size: 14px; }
.tela-voz.modo-telas .hud-processo { display: none; }
.tela-voz.modo-telas .hud-painel { width: min(20vw, 280px); }
.tela-voz.modo-telas .hud-esq { left: 2vw; }
.tela-voz.modo-telas .hud-dir { right: 2vw; }
.hud-lista-telas { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: tela; }
.hud-lista-telas li { position: relative; padding: 6px 8px 6px 28px; font-size: 12.5px; color: #8fc2d4; border-left: 2px solid rgba(79, 227, 255, .2); transition: all .4s; counter-increment: tela; }
.hud-lista-telas li::before { content: counter(tela, decimal-leading-zero); position: absolute; left: 6px; top: 7px; font: 700 10px/1 var(--mono); color: rgba(79, 227, 255, .5); }
.hud-lista-telas li.vista { color: #cfeef8; border-left-color: rgba(79, 227, 255, .5); }
.hud-lista-telas li.atual { color: #fff; font-weight: 600; border-left-color: var(--hud-quente); background: linear-gradient(90deg, rgba(255, 181, 71, .14), transparent); }
.hud-lista-telas li.atual::before { color: var(--hud-quente); }
.hud-nome.esquerda { text-align: left; margin-top: 4px; }

@media (max-width: 1150px) {
  .tela-voz.modo-telas .hud-esq { display: none !important; }
  .hud-monitor { width: min(70vw, 820px, calc((100vh - 330px) * 1.6)); left: 40%; }
  .tela-voz.modo-telas .hud-dir { width: min(24vw, 260px); }
}
@media (max-width: 860px) {
  .hud-monitor { top: 54px; left: 50%; width: min(94vw, calc((100vh - 330px) * 1.6)); }
  .tela-voz.modo-telas .hud-dir { display: none !important; }
  .tela-voz.modo-telas[open] .voz-orbe { width: 130px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-monitor-tela.entrando, .hud-monitor-tela.entrando img, .hud-monitor-scan::after { animation: none !important; }
}

/* ==========================================================================
   Admin no chat: modo ensino, anexo de imagem e seção do painel
   ========================================================================== */
.botao-ensino { order: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--borda-forte); color: var(--texto-2); font-size: 13px; font-weight: 600; flex-shrink: 0; transition: background .15s, color .15s, border-color .15s; }
.botao-ensino svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.botao-ensino:hover { background: var(--item-hover); color: var(--texto); }
.botao-ensino[aria-pressed="true"] { background: rgba(255, 181, 71, .16); border-color: #ffb547; color: #ffcf85; }
:root[data-tema="claro"] .botao-ensino[aria-pressed="true"] { color: #92400e; }
.botao-anexo { order: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--texto-2); flex-shrink: 0; }
.botao-anexo:hover { background: var(--item-hover); color: var(--texto); }
.botao-anexo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.compositor.ensino { box-shadow: var(--sombra-caixa), 0 0 0 1px rgba(255, 181, 71, .55), 0 0 30px -10px rgba(255, 181, 71, .7) !important; }
.compositor .anexo-chip { order: 1; display: inline-flex; align-items: center; gap: 8px; align-self: center; padding: 3px 4px 3px 3px; border: 1px solid var(--borda-forte); border-radius: 10px; font-size: 12px; color: var(--texto-2); flex-shrink: 0; }
.anexo-chip img { width: 34px; height: 24px; object-fit: cover; border-radius: 6px; }
.anexo-chip button { width: 20px; height: 20px; border-radius: 50%; color: var(--texto-3); }
.anexo-chip button:hover { background: var(--item-hover); color: var(--texto); }
.msg-anexo { display: block; max-width: 240px; margin: 0 0 6px auto; border-radius: 12px; border: 1px solid var(--borda); }

/* Cartão da proposta de alteração */
.ensino { margin-top: 10px; padding: 14px; border: 1px solid rgba(255, 181, 71, .45); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 181, 71, .07), transparent 70%); }
.ensino-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ensino-selo { padding: 2px 9px; border-radius: 999px; background: rgba(255, 181, 71, .18); color: #ffcf85; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
:root[data-tema="claro"] .ensino-selo { color: #92400e; }
.ensino-topo strong { font-size: 14.5px; }
.ensino-alvo { margin-top: 6px; font: 12px/1.4 var(--mono); color: var(--texto-3); }
.ensino-diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.ensino-diff > div { min-width: 0; border-radius: 10px; border: 1px solid var(--borda); overflow: hidden; }
.ensino-diff em { display: block; padding: 5px 10px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ensino-diff .antes em { background: rgba(248, 113, 113, .14); color: #f87171; }
.ensino-diff .depois em { background: rgba(74, 222, 128, .14); color: #4ade80; }
:root[data-tema="claro"] .ensino-diff .antes em { color: #b91c1c; }
:root[data-tema="claro"] .ensino-diff .depois em { color: #15803d; }
.ensino-diff pre { margin: 0; padding: 10px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.5 var(--fonte); color: var(--texto-2); }
.ensino-img { display: block; max-width: 100%; max-height: 220px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--borda); }
.ensino-desc { margin-top: 6px; font-size: 13.5px; color: var(--texto-2); }
.ensino-acoes { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ensino-acoes .secundario { background: transparent; color: var(--texto); border: 1px solid var(--borda-forte); }
.ensino-estado { font-size: 13px; font-weight: 600; }
.ensino-estado.aplicado { color: #4ade80; }
.ensino-estado.descartado { color: var(--texto-3); }

/* Seção "Painel admin" na barra lateral */
.secao-admin h2 { color: #ffcf85; }
:root[data-tema="claro"] .secao-admin h2 { color: #92400e; }
.secao-admin .item { text-decoration: none; }
.item-ensino { border: 1px solid rgba(255, 181, 71, .4); background: rgba(255, 181, 71, .08); font-weight: 600; }
.admin-mais summary { list-style: none; cursor: pointer; }
.admin-mais summary::-webkit-details-marker { display: none; }
.admin-mais .item { padding-left: 40px; }
@media (max-width: 560px) { .botao-ensino span { display: none; } .botao-ensino { width: 34px; padding: 0; justify-content: center; } }

/* Mensagens redesenhadas não repetem a animação de entrada */
.msg.ja-vista, .msg.ja-vista * { animation: none !important; }

/* Janela "Privacidade" (o que é registrado) */
.lista-dados { margin: 4px 0 0 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--texto-2); }
#dlgDados p { font-size: 14px; color: var(--texto-2); }
.ensino-rec { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.ensino-rec img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255, 181, 71, .5); }
.ensino-rec .ensino-desc { margin-top: 0; font-style: italic; }
