@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root { --ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --titulo: Poppins, Inter, sans-serif; --rapido: 150ms; }
:root, html[data-tema="escuro"] {
  --fundo: #141516; --lateral: #0E0F10; --s1: #1B1C1E; --s2: #242628; --s3: #2E3033;
  --linha: rgba(255, 255, 255, .08); --linha2: rgba(255, 255, 255, .15);
  --t1: #ECEDEE; --t2: #A7ABAF; --t3: #8A8E93;
  --acento: #45BDC1; --solido: #0C7C80; --solido2: #0E8F94;
  --fala: rgba(69, 189, 193, .07); --erro: #FF9C92;
  --sombra: 0 10px 34px rgba(0, 0, 0, .34); --logo: brightness(0) invert(.92);
}
html[data-tema="claro"] {
  --fundo: #FFFFFF; --lateral: #F6F7F7; --s1: #F3F4F5; --s2: #ECEEEF; --s3: #E1E4E6;
  --linha: rgba(0, 0, 0, .09); --linha2: rgba(0, 0, 0, .17);
  --t1: #17191B; --t2: #565C61; --t3: #676D72;
  --acento: #0C7C80; --solido: #0C7C80; --solido2: #0A6A6D;
  --fala: rgba(12, 124, 128, .06); --erro: #A32020;
  --sombra: 0 8px 28px rgba(20, 30, 35, .12); --logo: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--fundo); color: var(--t1); font: 400 18px/1.65 var(--ui); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
svg.ic { display: block; flex: none; stroke-width: 1.75; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 8px; top: -60px; background: var(--s3); color: var(--t1); padding: 10px 16px; z-index: 100; border-radius: 10px; }
.pular:focus { top: 8px; }
.sem-animar * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

.app { display: flex; height: var(--altura, 100dvh); }
.ico { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--t2); flex: none; transition: background var(--rapido), color var(--rapido); }
.ico:hover { background: var(--s2); color: var(--t1); }

/* Lateral */
.lat { width: 272px; flex: none; display: flex; flex-direction: column; background: var(--lateral); border-right: 1px solid var(--linha); transition: width 200ms ease-out; z-index: 30; overflow: hidden; }
.lat-topo { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 10px 0 16px; flex: none; }
.marca { display: block; height: 36px; width: 108px; overflow: hidden; flex: none; }
.marca img { height: 36px; width: auto; display: block; filter: var(--logo); }
.lat-acoes { padding: 2px 10px 10px; display: grid; gap: 2px; flex: none; }
.linha-lat { display: flex; align-items: center; gap: 11px; width: 100%; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--t1); text-align: left; white-space: nowrap; transition: background var(--rapido); }
.linha-lat:hover { background: var(--s2); }
.busca { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--t2); font-size: 15px; cursor: text; transition: background var(--rapido); }
.busca:hover, .busca:focus-within { background: var(--s2); }
.busca input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; color: var(--t1); font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.busca input::placeholder { color: var(--t2); opacity: 1; }
kbd { font: 500 11px var(--ui); color: var(--t3); border: 1px solid var(--linha2); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.lat-rola { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.lat-rotulo { font-size: 12.5px; font-weight: 500; color: var(--t3); padding: 14px 10px 5px; }
.lat-vazio { font-size: 14px; line-height: 1.4; color: var(--t2); padding: 2px 10px; }
.item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 38px; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; line-height: 1.3; color: var(--t1); text-align: left; text-decoration: none; transition: background var(--rapido); }
.item:hover { background: var(--s1); }
.item[aria-current] { background: var(--s2); font-weight: 500; }
.item .ic { color: var(--t2); }
.item[aria-current] .ic { color: var(--acento); }
.item > span:not(.item-fim) { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.item-fim { flex: none; }
.item-bloqueada { color: var(--t2); }
.item-bloqueada .ic { color: var(--t3); }
.lat-pe { flex: none; border-top: 1px solid var(--linha); padding: 8px 10px; }
.avatar-foto { border-radius: 50%; object-fit: cover; display: block; flex: none; }

/* Lateral em coluna de ícones */
.app.rail .lat { width: 60px; }
.app.rail .lat-topo { justify-content: center; padding: 0; }
.app.rail #lista-bloqueadas { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--linha); }
.app.rail .marca, .app.rail .lat-rotulo, .app.rail .so-aberta, .app.rail .linha-lat > span, .app.rail .item > span, .app.rail .busca kbd, .app.rail .busca input { display: none; }
.app.rail .linha-lat, .app.rail .item, .app.rail .busca { justify-content: center; padding: 0; width: 40px; min-height: 40px; height: 40px; }

/* Centro */
.meio { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--fundo); position: relative; }
.topo { height: 60px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 20px; }
.topo-conversa { position: relative; min-width: 0; flex: 1; }
.topo-titulo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; height: 36px; padding: 0 10px; margin-left: -10px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--t1); transition: background var(--rapido); }
.topo-titulo:hover, .topo-titulo[aria-expanded="true"] { background: var(--s1); }
.topo-titulo b { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topo-titulo .ic { color: var(--t3); }
.topo-dir { margin-left: auto; display: flex; gap: 2px; }
.so-celular { display: none; }
.corpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.coluna { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Início */
.inicio { min-height: calc(var(--altura, 100dvh) - 60px); display: flex; flex-direction: column; justify-content: center; padding: 0 0 8vh; }
.inicio h1 { font: 500 34px/1.2 var(--titulo); letter-spacing: -.8px; text-align: center; margin-bottom: 26px; }
.inicio-ia { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 26px; }
.inicio-ia .ic { color: var(--acento); }
.inicio-ia h1 { margin: 0; }
.inicio-ia p { max-width: 58ch; color: var(--t2); font-size: 16px; line-height: 1.5; }
.ias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ia { text-align: left; padding: 12px 14px; border: 1px solid var(--linha); border-radius: 13px; min-width: 0; transition: background var(--rapido), border-color var(--rapido); }
.ia:hover { background: var(--s1); border-color: var(--linha2); }
.ia .ic { color: var(--acento); margin-bottom: 8px; }
.ia .avatar-foto { margin-bottom: 8px; }
.ia b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ia small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--t2); margin-top: 3px; }
.sugestoes { margin-top: 14px; }
.sugestoes-topo { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--t2); margin-bottom: 4px; padding: 0 4px; }
.sugestoes-topo button { color: var(--t2); text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.sugestao { display: block; width: 100%; text-align: left; font-size: 15.5px; line-height: 1.4; padding: 11px 12px; border-top: 1px solid var(--linha); transition: background var(--rapido); }
.sugestao:hover { background: var(--s1); }

.ia { position: relative; }
.ia-cadeado { position: absolute; top: 12px; right: 12px; color: var(--t3); }
.ia-cadeado .ic { color: var(--t3); margin: 0; }

/* Entrar */
body.p-entrar { height: auto; min-height: 100dvh; overflow: auto; background: #090B0F; }
.ent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 100dvh; }
.ent-lado { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 480px; margin: 0 auto; padding: 40px 24px; }
.ent-logo { display: inline-block; margin-bottom: 40px; }
.ent-logo img { display: block; height: 44px; width: auto; filter: brightness(0) invert(.92); }
.ent h1 { font: 700 34px/1.15 var(--titulo); letter-spacing: -.6px; margin-bottom: 24px; }
.ent-texto { color: var(--t2); font-size: 17px; line-height: 1.5; margin: -12px 0 24px; }
.ent-campo { margin-bottom: 18px; }
.ent-campo label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 500; }
.ent-campo input { display: block; width: 100%; height: 52px; padding: 0 14px; font-size: 17px; color: var(--t1); background: var(--s1); border: 1px solid var(--linha2); border-radius: 10px; }
.ent-campo input:focus { outline: 2px solid var(--acento); outline-offset: 0; border-color: transparent; }
.ent-senha { position: relative; }
.ent-senha input { padding-right: 56px; }
.ent-ver { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: var(--t2); }
.ent-ver:hover { background: var(--s2); color: var(--t1); }
.ent-ver .ic:last-child, .ent-ver[aria-pressed="true"] .ic:first-child { display: none; }
.ent-ver[aria-pressed="true"] .ic:last-child { display: block; }
.ent-ajuda { margin-top: 6px; font-size: 15px; color: var(--t2); }
.ent-erro { margin-bottom: 16px; font-size: 16px; line-height: 1.45; color: var(--erro); }
.botao.ent-enviar { width: 100%; }
.botao.vit-botao[disabled] { opacity: .6; cursor: wait; }
.ent-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin-top: 18px; font-size: 16px; }
.ent-links a, .ent-links button { display: inline-flex; align-items: center; min-height: 44px; color: var(--t1); text-decoration: underline; text-underline-offset: 3px; }
.ent-arte { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; padding: 56px 48px 0; background: linear-gradient(rgba(9, 11, 15, .45), rgba(9, 11, 15, .45)), #090B0F url(img/banner-fundo.webp) right center / cover no-repeat; }
.ent-frase { position: relative; z-index: 1; max-width: 560px; font: 700 clamp(30px, 3.4vw, 50px)/1.06 var(--titulo); letter-spacing: -1px; color: #fff; }
.ent-frase em { display: block; font-style: normal; color: #E9C062; }
.ent-arte img { position: absolute; right: 0; bottom: 0; width: auto; height: 76%; -webkit-mask-image: linear-gradient(#000 80%, transparent 100%); mask-image: linear-gradient(#000 80%, transparent 100%); }
@media (max-width: 899px) {
  .ent { display: block; }
  .ent-arte { display: none; }
  .ent-lado { min-height: 100dvh; justify-content: flex-start; padding: 28px 20px; }
  .ent-logo { margin-bottom: 32px; }
  .ent h1 { font-size: 30px; }
}

/* Vitrine */
.coluna.larga { max-width: 1240px; }
.linha-vitrine { color: var(--acento); text-decoration: none; }
.linha-vitrine[aria-current] { background: var(--s2); }
.vitrine { padding: 12px 0 72px; container-type: inline-size; }
.vit-banner { position: relative; display: flex; align-items: center; min-height: 420px; margin-bottom: 40px; overflow: hidden; border-radius: 12px; color: #fff; background: #090B0F url(img/banner-fundo.webp) right center / cover no-repeat; }
.vit-banner-txt { position: relative; z-index: 2; width: 46%; padding: 40px 0 40px 48px; }
.vit-banner h1 { font: 700 48px/1.06 var(--titulo); letter-spacing: -1.2px; margin-bottom: 16px; }
.vit-banner h1 { text-wrap: balance; }
.vit-banner em { font-style: normal; white-space: nowrap; color: #E9C062; }
.vit-banner p { color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.5; margin-bottom: 24px; }
.vit-lucas { position: absolute; right: 0; bottom: 0; width: auto; height: 108%; -webkit-mask-image: linear-gradient(#000 76%, transparent 100%); mask-image: linear-gradient(#000 76%, transparent 100%); }
.vit-leque { position: absolute; left: 45%; bottom: 44px; z-index: 1; width: 294px; height: 250px; }
.vit-leque img { position: absolute; bottom: 0; width: 138px; height: auto; border-radius: 6px; box-shadow: 0 12px 28px rgba(0, 0, 0, .55); }
.vit-leque img:nth-child(1) { left: 0; transform: rotate(-9deg); }
.vit-leque img:nth-child(2) { left: 78px; bottom: 14px; transform: rotate(-1deg); z-index: 1; }
.vit-leque img:nth-child(3) { left: 156px; transform: rotate(8deg); }
.vit-chamada { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.botao.vit-botao { min-height: 52px; padding: 10px 28px; border: 0; background: #E9C062; color: #17130A; font-size: 17px; font-weight: 600; }
.botao.vit-botao:hover { background: #F3D07C; }
.botao.vit-botao:active { background: #D9AF52; }
.botao.vit-botao .ic { fill: currentColor; }
.vit-breve { display: inline-block; background: var(--s2); border: 1px solid var(--linha2); border-radius: 10px; padding: 12px 18px; font-size: 16px; font-weight: 500; color: var(--t1) !important; margin: 0 !important; }
.vit-banner .vit-breve { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff !important; }
.lat-vazio { padding: 6px 10px; font-size: 14px; color: var(--t3); }
.inicio-vazio { align-items: center; text-align: center; gap: 16px; }
.inicio-vazio h1 { margin: 0; }
.inicio-vazio p { color: var(--t2); }
.vit-entrar { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: inherit; padding: 0 4px; }
.vit-titulo { font: 600 21px/1.3 var(--titulo); letter-spacing: -.2px; margin: 0 0 14px; }
.vit-sub { font-size: 16px; line-height: 1.5; color: var(--t2); margin: -8px 0 16px; }
.vit-cat { display: block; font-size: 13px; line-height: 1.4; color: var(--t3); }
.vit-linha .vit-cat { font-weight: 600; color: var(--acento); }
.vit-linha { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; padding: 12px 20px 12px 12px; background: var(--s1); border-radius: 8px; scroll-margin: 20px; }
.vit-linha.vit-destaque { outline: 2px solid var(--acento); }
.vit-linha-foto { flex: none; width: 150px; height: 84px; border-radius: 6px; object-fit: cover; object-position: 50% 12%; }
.vit-linha-txt { flex: 1; min-width: 0; }
.vit-linha h3 { font: 600 17px/1.3 var(--titulo); }
.vit-linha p { font-size: 15px; line-height: 1.45; color: var(--t2); }
.vit-logo-breve { flex: none; font-size: 14.5px; font-weight: 500; color: var(--t2); }
.vit-abrir { flex: none; }
.vit-abrir .ic { fill: currentColor; }
.vit-prateleira { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 48px; }
.vit-prat-cab { padding-top: 4px; }
.vit-prat-cab .vit-titulo { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.vit-prat-cab .vit-sub { margin: 0; }
.vit-fileira { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vit-capa { min-width: 0; scroll-snap-align: start; }
.vit-quadro { position: relative; display: block; text-decoration: none; aspect-ratio: 720 / 1040; margin-bottom: 10px; overflow: hidden; border-radius: 6px; background: var(--s2); }
.vit-quadro img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--rapido); }
a.vit-quadro:hover img { transform: scale(1.025); }
a.vit-quadro:active img { transform: scale(.985); }
.vit-capa.vit-destaque .vit-quadro { outline: 3px solid #E9C062; outline-offset: 2px; }
.vit-capa-vazia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; padding: 20px; text-align: center; color: var(--acento); font: 600 22px/1.2 var(--titulo); }
.vit-capa-vazia span { color: var(--t1); }
.vit-cadeado, .vit-play { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .62); }
.vit-cadeado { top: 10px; right: 10px; width: 32px; height: 32px; }
.vit-play { left: 50%; top: 42%; width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: 0; transition: opacity var(--rapido); }
.vit-play .ic { fill: currentColor; margin-left: 3px; }
a.vit-quadro:hover .vit-play, a.vit-quadro:focus-visible .vit-play { opacity: 1; }
.vit-capa h3 { font: 600 16px/1.3 var(--titulo); margin: 1px 0 3px; }
.vit-capa p { font-size: 14.5px; line-height: 1.45; color: var(--t2); }
.vit-capa .vit-valor { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--t1); }
.vit-valor s { color: var(--t3); margin-right: 4px; font-weight: 400; }
@container (max-width: 1040px) {
  .vit-leque { display: none; }
  .vit-banner-txt { width: 58%; }
  .vit-banner h1 { font-size: 40px; }
  .vit-prateleira { display: block; }
  .vit-prat-cab { margin-bottom: 16px; }
}
@container (max-width: 640px) {
  .vit-banner { min-height: 340px; }
  .vit-banner-txt { width: 64%; padding-left: 28px; }
  .vit-banner h1 { font-size: 30px; }
  .vit-lucas { height: 78%; }
}
.vit-fim { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 36px 20px; text-align: center; background: var(--s1); border-radius: 12px; }
.vit-fim h2 { font: 600 26px/1.25 var(--titulo); letter-spacing: -.3px; }
.vit-fim .vit-chamada { justify-content: center; }

/* Mensagens */
.msgs { display: flex; flex-direction: column; gap: 26px; padding: 12px 0 28px; }
.msg.nova { animation: subir 220ms ease-out; }
@keyframes subir { from { opacity: 0; transform: translateY(6px); } }
.pessoa { align-self: flex-end; max-width: 82%; display: flex; flex-direction: column; align-items: flex-end; }
.balao { background: var(--s2); padding: 10px 16px; border-radius: 16px; }
.balao p { white-space: pre-wrap; overflow-wrap: anywhere; }
.pessoa.longa .balao p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.balao button { font-size: 13.5px; color: var(--t2); text-decoration: underline; text-underline-offset: 2px; margin-top: 2px; }
.texto { overflow-wrap: anywhere; }
.texto > :first-child { margin-top: 0; }
.texto > :last-child { margin-bottom: 0; }
.texto p, .texto ul, .texto ol, .texto blockquote, .texto pre { margin: 0 0 15px; }
.texto ul, .texto ol { padding-left: 24px; }
.texto ul { list-style: disc; }
.texto li { margin-bottom: 6px; }
.texto li::marker { color: var(--t3); }
.texto strong { font-weight: 600; }
.texto a { color: var(--acento); }
.texto h1 { font: 600 24px/1.25 var(--titulo); letter-spacing: -.4px; margin: 0 0 16px; }
.texto h2 { font: 600 20px/1.3 var(--titulo); letter-spacing: -.2px; margin: 34px 0 12px; }
.texto h3, .texto h4 { font: 600 17px/1.35 var(--titulo); margin: 24px 0 10px; }
.texto hr { display: none; }
.texto blockquote { background: var(--fala); border-left: 2px solid var(--acento); border-radius: 0 10px 10px 0; padding: 12px 16px; }
.texto blockquote p { margin: 0 0 10px; }
.texto blockquote p:last-child { margin: 0; }
.texto table { border-collapse: collapse; display: block; overflow-x: auto; margin: 0 0 15px; font-size: 16px; max-width: 100%; }
.texto th, .texto td { border: 1px solid var(--linha2); padding: 8px 10px; text-align: left; vertical-align: top; }
.texto th { background: var(--s1); font-weight: 600; }
.texto code { background: var(--s2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.texto pre { background: var(--s1); border: 1px solid var(--linha); padding: 14px; overflow-x: auto; border-radius: 10px; }
.texto pre code { background: none; padding: 0; }
.msg-ia.respondendo .texto > :last-child:not(.pensando)::after { content: ""; display: inline-block; width: 9px; height: 1em; margin-left: 3px; vertical-align: text-bottom; border-radius: 2px; background: var(--acento); animation: piscar 1s steps(2) infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.acoes { display: flex; gap: 2px; margin: 8px 0 0 -8px; }
.pessoa .acoes { margin: 4px -8px 0 0; }
.acao { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px; border-radius: 8px; font-size: 13.5px; color: var(--t2); transition: background var(--rapido), color var(--rapido); }
.acao:hover { background: var(--s2); color: var(--t1); }
.pensando { display: inline-flex; align-items: center; gap: 10px; color: var(--acento); }
.pensando .ic { animation: pulsar 1.4s ease-in-out infinite; }
.pensando i { font-style: normal; background: linear-gradient(90deg, var(--t3) 30%, var(--t1) 50%, var(--t3) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: varrer 1.6s linear infinite; }
@keyframes pulsar { 50% { opacity: .4; } }
@keyframes varrer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.msg-erro { border: 1px solid var(--erro); border-radius: 12px; padding: 12px 14px; color: var(--erro); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.msg-erro p { display: flex; gap: 8px; font-size: 16px; line-height: 1.45; }
.msg-erro .ic { margin-top: 3px; }
.cartao-upsell { background: var(--s1); border: 1px solid var(--linha2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 16px; }
.cartao-upsell strong { font-weight: 600; }

/* Cartão do documento */
.cartao { display: block; width: 100%; text-align: left; border: 1px solid var(--linha2); border-radius: 14px; overflow: hidden; background: var(--s1); transition: border-color var(--rapido), background var(--rapido); }
.cartao:hover { border-color: var(--t3); background: var(--s2); }
.cartao[aria-pressed="true"] { border-color: var(--acento); }
.cartao-topo { display: flex; align-items: center; gap: 13px; padding: 13px 16px; }
.cartao-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--s3); color: var(--acento); display: flex; align-items: center; justify-content: center; flex: none; }
.cartao-txt { min-width: 0; }
.cartao b { display: block; font: 600 16px/1.3 var(--titulo); overflow-wrap: anywhere; }
.cartao small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--t2); margin-top: 2px; }
.cartao em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 500; color: var(--acento); flex: none; }
.msg-ia.respondendo .cartao em { color: var(--t2); }

/* Campo */
.campo-area { flex: none; padding: 0 0 8px; position: relative; }
.editando { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--t2); padding: 0 8px 6px; }
.editando button { color: var(--t1); text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.compositor { position: relative; background: var(--s1); border: 1px solid var(--linha2); border-radius: 18px; padding: 12px 10px 8px 16px; box-shadow: var(--sombra); transition: border-color var(--rapido); }
.compositor:focus-within { border-color: var(--t3); }
.compositor textarea { display: block; width: 100%; border: 0; outline: none; background: none; resize: none; padding: 2px 6px 6px 0; line-height: 1.45; max-height: 170px; color: var(--t1); }
.compositor textarea::placeholder { color: var(--t2); opacity: 1; }
.comp-pe { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seletor { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 9px; margin-left: -9px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--t2); min-width: 0; transition: background var(--rapido), color var(--rapido); }
.seletor:hover, .seletor[aria-expanded="true"] { background: var(--s3); color: var(--t1); }
.seletor > .ic:first-child { color: var(--acento); }
.seletor span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.seletor:disabled { cursor: default; background: none; color: var(--t2); }
.enviar, .parar { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; transition: background var(--rapido); }
.enviar { background: var(--solido); color: #fff; }
.enviar:hover:not(:disabled) { background: var(--solido2); }
.enviar:disabled { background: var(--s3); color: var(--t3); cursor: not-allowed; }
.parar { background: var(--t1); color: var(--fundo); }
.menu { position: absolute; left: 8px; bottom: calc(100% + 6px); width: min(320px, calc(100vw - 48px)); background: var(--s2); border: 1px solid var(--linha2); border-radius: 13px; padding: 5px; box-shadow: var(--sombra); z-index: 20; }
.menu.abaixo { bottom: auto; top: calc(100% + 6px); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 7px 10px; border-radius: 9px; font-size: 14.5px; text-align: left; line-height: 1.3; color: var(--t1); }
.menu button:hover { background: var(--s3); }
.menu .ic { color: var(--acento); }
.menu .marcado { margin-left: auto; }
.menu .perigo, .menu .perigo .ic { color: var(--erro); }
.topo-conversa .menu { left: -10px; width: 200px; }
.indice-flutuante { position: fixed; top: 56px; right: 10px; left: auto; bottom: auto; max-height: 70vh; overflow-y: auto; z-index: 50; }
.indice-flutuante button.sub { padding-left: 24px; }
.nota { font-size: 12.5px; line-height: 1.4; color: var(--t3); text-align: center; margin-top: 8px; }
.ir-fim { position: absolute; top: -52px; left: 50%; margin-left: -22px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--s3); border: 1px solid var(--linha2); color: var(--t1); z-index: 5; }

/* Painel do documento */
.pain { flex: 0 0 auto; width: 0; display: flex; flex-direction: column; background: var(--fundo); border-left: 1px solid var(--linha); overflow: hidden; transition: width 220ms ease-out; }
.app.com-doc .pain { width: 62%; }
.pain-topo { height: 60px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--linha); }
.pain-topo h2 { font: 600 15px/1.3 var(--titulo); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-right: auto; }
.pain-corpo { flex: 1; min-height: 0; display: flex; }
.indice { width: 228px; flex: none; overflow-y: auto; padding: 18px 10px 18px 14px; border-right: 1px solid var(--linha); }
.indice p { font-size: 12.5px; font-weight: 500; color: var(--t3); padding: 0 10px 8px; }
.indice button { display: block; width: 100%; text-align: left; font-size: 13.5px; line-height: 1.35; padding: 7px 10px; border-radius: 8px; color: var(--t2); transition: background var(--rapido), color var(--rapido); }
.indice button.sub { padding-left: 22px; font-size: 13px; }
.indice button:hover { background: var(--s1); color: var(--t1); }
.indice button[aria-current] { background: var(--s2); color: var(--t1); font-weight: 500; }
.doc-rola { flex: 1; min-width: 0; overflow-y: auto; scroll-behavior: smooth; }
.doc { max-width: 720px; margin: 0 auto; padding: 26px 32px 80px; }
.doc .secao { display: flex; align-items: baseline; gap: 8px; scroll-margin-top: 16px; }
.doc .secao > span { min-width: 0; }
.copia-sec { opacity: 0; font: 500 12.5px var(--ui); letter-spacing: 0; color: var(--t2); display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 7px; border-radius: 7px; margin-left: auto; flex: none; transition: opacity var(--rapido), background var(--rapido); }
.secao:hover .copia-sec, .copia-sec:focus-visible { opacity: 1; }
.copia-sec:hover { background: var(--s2); color: var(--t1); }
.indice-celular { display: none; }

/* Janelas */
.veu { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 25; }
.aviso { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--s3); color: var(--t1); font-size: 14px; padding: 8px 14px; border-radius: 10px; box-shadow: var(--sombra); z-index: 60; white-space: nowrap; }
dialog { color: var(--t1); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
.janela { border: 1px solid var(--linha2); border-radius: 18px; background: var(--s1); box-shadow: var(--sombra); width: min(440px, calc(100vw - 32px)); padding: 22px; }
.janela h2 { font: 600 19px/1.3 var(--titulo); margin-bottom: 8px; }
.janela p { font-size: 15.5px; line-height: 1.5; color: var(--t2); margin-bottom: 14px; }
.janela-campo { display: block; margin-bottom: 14px; }
.janela-campo input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--linha2); border-radius: 10px; background: var(--fundo); font-size: 16px; }
.janela-acoes { display: flex; justify-content: flex-end; gap: 8px; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--linha2); font-size: 15px; font-weight: 500; color: var(--t1); text-decoration: none; transition: background var(--rapido); }
.botao:hover { background: var(--s3); }
.botao-cheio { background: var(--solido); border-color: transparent; color: #fff; }
.botao-cheio:hover { background: var(--solido2); }
.botao-perigo { background: #A32020; border-color: transparent; color: #fff; }
.botao-perigo:hover { background: #8C1B1B; }

@media (max-width: 1240px) {
  .app.com-doc .pain { width: 60%; }
  .indice { display: none; }
  .indice-celular { display: inline-flex; }
  .doc { padding: 22px 24px 70px; }
}
@media (max-width: 1023px) {
  .so-celular { display: inline-flex; }
  .lat { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); transform: translateX(-100%); visibility: hidden; transition: transform 200ms ease-out, visibility 200ms; box-shadow: var(--sombra); }
  .lat.aberta { transform: none; visibility: visible; }
  .linha-lat, .item, .busca { min-height: 44px; height: auto; }
  .busca kbd { display: none; }
  .pain, .app.com-doc .pain { position: fixed; inset: 0; width: 100%; transform: translateX(100%); visibility: hidden; transition: transform 200ms ease-out, visibility 200ms; z-index: 40; border: 0; }
  .app.com-doc .pain { transform: none; visibility: visible; }
  .pain-topo { padding: 0 6px; }
  .topo { padding: 0 8px; }
  .ico { width: 44px; height: 44px; }
  .enviar, .parar { width: 44px; height: 44px; }
  .acao { height: 40px; }
  #pain-fechar, #pain-imprimir { display: none; }
}
@media (max-width: 767px) {
  body { font-size: 17px; }
  .coluna { padding: 0 16px; }
  .inicio { justify-content: flex-start; padding: 8vh 0 16px; }
  .inicio h1 { font-size: 28px; margin-bottom: 20px; }
  .inicio-ia h1 { margin: 0; }
  .ias { grid-template-columns: repeat(2, 1fr); }
  .vit-banner { flex-direction: column; align-items: stretch; min-height: 0; margin-bottom: 32px; background-image: linear-gradient(180deg, rgba(9, 11, 15, 0) 26%, #090B0F 50%), url(img/banner-fundo.webp); background-position: top, 78% top; background-size: 100% 100%, auto 62%; }
  .vit-lucas { position: relative; order: -1; align-self: flex-end; width: min(300px, 82%); height: auto; margin-top: 12px; -webkit-mask-image: linear-gradient(#000 80%, transparent 100%); mask-image: linear-gradient(#000 80%, transparent 100%); }
  .vit-leque { display: none; }
  .vit-banner-txt { width: 100%; padding: 0 20px 24px; text-align: center; }
  .vit-banner h1 { font-size: 31px; letter-spacing: -.6px; }
  .vit-banner p { font-size: 16px; }
  .botao.vit-botao { width: 100%; }
  .vit-chamada { justify-content: center; width: 100%; }
  .vit-linha { flex-wrap: wrap; gap: 12px 14px; padding: 12px; margin-bottom: 32px; }
  .vit-linha-foto { width: 88px; height: 88px; }
  .vit-linha-txt { flex-basis: calc(100% - 102px); }
  .vit-logo-breve { width: 100%; text-align: center; }
  .vit-abrir { width: 100%; }
  .vit-prat-cab .vit-titulo { font-size: 22px; }
  .vit-fileira { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px) / 1.75); gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px; scroll-padding: 0 16px; width: calc(100% + 32px); scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
  .vit-fileira::-webkit-scrollbar { display: none; }
  .vit-prateleira { margin-bottom: 36px; }
  .vit-fim h2 { font-size: 22px; }
  .pessoa { max-width: 88%; }
  .doc { padding: 18px 18px 60px; }
  .compositor textarea, .busca input { font-size: 16px; }
  .sugestao { min-height: 44px; }
  .copia-sec { opacity: 1; }
  /* Conversa aberta: campo em uma linha, para sobrar área de leitura */
  .em-conversa .compositor { display: flex; align-items: flex-end; gap: 4px; padding: 5px 5px 5px 6px; border-radius: 26px; }
  .em-conversa .compositor textarea { order: 2; flex: 1; min-width: 0; width: auto; padding: 10px 4px; }
  .em-conversa .comp-pe { display: contents; }
  .em-conversa .seletor { order: 1; margin: 0; width: 44px; height: 44px; padding: 0; justify-content: center; flex: none; border-radius: 22px; }
  .em-conversa .seletor span, .em-conversa .seletor .ic:last-child:not(:first-child) { display: none; }
  .em-conversa .enviar, .em-conversa .parar { order: 3; border-radius: 22px; }
  .em-conversa .nota { display: none; }
  .em-conversa .campo-area { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}
@media print {
  body { overflow: visible; background: #fff; color: #000; font-size: 12pt; }
  .lat, .meio, .pain-topo, .indice, .copia-sec, .aviso, .veu, dialog { display: none !important; }
  .app, .pain, .pain-corpo, .doc-rola { display: block; height: auto; width: 100% !important; overflow: visible; border: 0; position: static; transform: none; visibility: visible; }
  .doc { max-width: none; padding: 0; }
  .texto blockquote { background: none; border-left: 2px solid #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
