/* CRM pessoal — visual de app de mensagens, claro e escuro, pensado primeiro para o celular. */
:root {
  --fundo: #f4f4f6;
  --superficie: #ffffff;
  --superficie-2: #f2f2f5;
  --superficie-3: #e7e7ec;
  --linha: #e7e7eb;
  --linha-forte: #d3d3da;
  --texto: #111114;
  --texto-2: #575760;
  --texto-3: #8a8a94;
  --acento: #2c6bed;
  --acento-forte: #1f58d1;
  --acento-suave: #e3ecfe;
  --acento-texto: #1d5fd9;
  --eu: #2c6bed;
  --cliente: #e9e9eb;
  --chat-fundo: #ffffff;
  --trilho: #f0f0f4;
  --lista-fundo: #ffffff;
  --ia: #efeafd;
  --ia-borda: #d4c8f6;
  --ia-texto: #5a3fc4;
  --ia-bolha: #6b4fd8;
  --alerta: #fff4d8;
  --alerta-borda: #f0d48c;
  --alerta-texto: #7a5800;
  --perigo: #d23b2a;
  --lido: #0a84ff;
  --sombra-1: 0 1px 1.5px rgba(15, 15, 25, .08);
  --sombra-2: 0 2px 6px rgba(15, 15, 25, .06), 0 12px 32px rgba(15, 15, 25, .1);
  --raio: 16px;
  --fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --topo-seguro: env(safe-area-inset-top, 0px);
  --base-segura: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #000000;
    --superficie: #0c0c0e;
    --superficie-2: #1c1c1f;
    --superficie-3: #2b2b2f;
    --linha: #1f1f23;
    --linha-forte: #33333a;
    --texto: #ededf0;
    --texto-2: #a9a9b2;
    --texto-3: #76767f;
    --acento: #3d7bf2;
    --acento-forte: #5a8ff6;
    --acento-suave: #13254a;
    --acento-texto: #82abff;
    --eu: #2c6bed;
    --cliente: #262629;
    --chat-fundo: #000000;
    --trilho: #050506;
    --lista-fundo: #101012;
    --ia: #221b3f;
    --ia-borda: #3f3473;
    --ia-texto: #b9a8ff;
    --ia-bolha: #6b4fd8;
    --alerta: #33290f;
    --alerta-borda: #6b5a26;
    --alerta-texto: #f3d27e;
    --perigo: #ff6b5b;
    --lido: #4fb3ff;
    --sombra-1: 0 1px 1.5px rgba(0, 0, 0, .4);
    --sombra-2: 0 2px 8px rgba(0, 0, 0, .45), 0 12px 32px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--fundo); color: var(--texto); font: 15px/1.42 var(--fonte); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--acento-texto); }
.escondido { display: none !important; }
svg.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: color-mix(in srgb, var(--acento) 30%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--linha-forte) transparent; }

/* ---------- botões e campos ---------- */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--linha); background: var(--superficie); border-radius: 12px; padding: 9px 14px; font-weight: 600; line-height: 1.1; transition: background .15s, border-color .15s, transform .1s; }
@media (hover: hover) { .bt:hover { background: var(--superficie-2); } }
.bt:active { transform: scale(.98); }
.bt:disabled { opacity: .5; cursor: default; transform: none; }
.bt.primario { background: var(--acento); border-color: var(--acento); color: #fff; }
@media (hover: hover) { .bt.primario:hover { background: var(--acento-forte); border-color: var(--acento-forte); } }
.bt.perigo { color: var(--perigo); }
.bt.pequeno { padding: 6px 11px; font-size: 13.5px; border-radius: 10px; }
.bt.pequeno svg.ic { width: 17px; height: 17px; }
.bt-icone { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--texto-2); flex: none; transition: background .15s, color .15s; }
@media (hover: hover) { .bt-icone:hover { background: var(--superficie-3); color: var(--texto); } }
.bt-icone:disabled { opacity: .45; }
.bt-icone.ativo { color: var(--acento-texto); background: var(--acento-suave); }
.campo { width: 100%; border: 1px solid var(--linha); background: var(--superficie); border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.campo:focus { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 22%, transparent); }
textarea.campo { resize: vertical; min-height: 84px; }
select.campo { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texto-3) 50%), linear-gradient(135deg, var(--texto-3) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
label.rotulo { display: block; font-size: 13px; font-weight: 600; color: var(--texto-2); margin: 14px 0 6px; }
.ajuda { font-size: 13px; color: var(--texto-3); margin: 4px 0 0; }

/* ---------- avatar ---------- */
.avatar { --tam: 50px; width: var(--tam); height: var(--tam); border-radius: 50%; flex: none; position: relative; display: grid; place-items: center; color: #fff; font-weight: 650; font-size: calc(var(--tam) * .36); letter-spacing: .01em; background: linear-gradient(145deg, color-mix(in srgb, var(--cor) 82%, #fff), var(--cor)); user-select: none; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--superficie-3); opacity: 0; transition: opacity .25s; }
.avatar > img.pronta { opacity: 1; }
.avatar svg.ic { width: 58%; height: 58%; stroke-width: 1.6; opacity: .95; }
.avatar.p { --tam: 38px; }
.avatar.m { --tam: 88px; }
.avatar.g { --tam: 112px; }
.avatar .marca { position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px; border-radius: 50%; background: var(--marca, var(--acento)); border: 2.5px solid var(--superficie); z-index: 1; }
button.avatar { border: 0; padding: 0; cursor: pointer; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, var(--acento-suave), transparent 70%), var(--fundo); }
.login form { width: min(380px, 100%); background: var(--superficie); border: 1px solid var(--linha); border-radius: 24px; padding: 32px 28px 28px; box-shadow: var(--sombra-2); text-align: center; }
.login h1 { font-size: 24px; margin: 14px 0 4px; letter-spacing: -.01em; }
.login p { color: var(--texto-2); margin: 0 0 18px; }
.login .campo { text-align: center; font-size: 16px; padding: 12px; }
.login .bt { width: 100%; margin-top: 12px; padding: 12px; font-size: 16px; }
.login img { width: 56px; height: 56px; border-radius: 16px; box-shadow: var(--sombra-2); }

/* ---------- estrutura ---------- */
.casca { display: grid; grid-template-columns: 76px 380px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.casca.com-painel { grid-template-columns: 76px 380px minmax(0, 1fr) 340px; }

.trilho { background: var(--trilho); border-right: 1px solid var(--linha); display: flex; flex-direction: column; align-items: center; padding: 16px 0 14px; gap: 4px; min-height: 0; }
.trilho .logo { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 14px; box-shadow: 0 6px 18px color-mix(in srgb, var(--acento) 35%, transparent); }
.trilho .fim { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 6px; width: 70px; color: var(--texto-2); border-radius: 14px; }
.nav .fundo-nav { position: relative; width: 52px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .15s, color .15s; }
.nav svg.ic { width: 22px; height: 22px; }
@media (hover: hover) { .nav:hover .fundo-nav { background: var(--superficie-3); color: var(--texto); } }
.nav.ativo .fundo-nav { background: var(--acento-suave); color: var(--acento-texto); }
.nav.ativo .fundo-nav svg.ic { stroke-width: 2.1; }
.nav .rot-nav { font-size: 11px; font-weight: 600; line-height: 1; }
.nav.ativo .rot-nav { color: var(--texto); font-weight: 700; }
.nav:focus-visible { outline: 2px solid var(--acento); outline-offset: -2px; }
.selo-nav { position: absolute; top: -5px; left: 31px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--acento); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--trilho); font-variant-numeric: tabular-nums; }
.numeros-trilho { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--linha); width: 46px; }
.num-bolinha { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 0; display: grid; place-items: center; font-weight: 750; font-size: 14px; letter-spacing: .02em; color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--cor, var(--acento)) 78%, #fff), var(--cor, var(--acento))); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: border-radius .2s, transform .1s; }
@media (hover: hover) { .num-bolinha:hover { border-radius: 12px; } }
.num-bolinha:active { transform: scale(.95); }
.num-bolinha.todos { background: var(--superficie-3); color: var(--texto-2); font-size: 11.5px; box-shadow: none; }
.num-bolinha.ativo::before { content: ""; position: absolute; left: -16px; top: 50%; width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--texto); transform: translateY(-50%); }
.num-bolinha .ponto { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--trilho); background: #b9c2bd; }
.num-bolinha .ponto.ok { background: #22c48e; }
.num-bolinha .ponto.espera { background: #e9a825; }
.num-bolinha .ponto.ruim { background: var(--perigo); }

/* ---------- lista ---------- */
.lista { background: var(--lista-fundo); border-right: 1px solid var(--linha); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.lista header { padding: calc(14px + var(--topo-seguro)) 12px 6px 18px; display: flex; align-items: center; gap: 4px; }
.lista header h2 { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin: 0; flex: 1; }
.lista header select.campo { width: auto; max-width: 150px; padding: 7px 28px 7px 11px; border-radius: 10px; font-size: 14px; margin-right: 4px; }
.busca { margin: 6px 14px 4px; position: relative; }
.busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--texto-3); width: 18px; height: 18px; }
.busca input { padding: 10px 12px 10px 38px; background: var(--superficie-2); border-color: transparent; border-radius: 12px; }
.busca input::placeholder { color: var(--texto-3); }
.busca input:focus { background: var(--superficie); }
.filtros { display: flex; gap: 7px; padding: 8px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros.corta-fim { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.filtros.corta-ini { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44px); mask-image: linear-gradient(90deg, transparent 0, #000 44px); }
.filtros.corta-ini.corta-fim { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent); }
.filtro { border: 0; background: var(--superficie-2); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 550; white-space: nowrap; color: var(--texto-2); transition: background .15s, color .15s; }
@media (hover: hover) { .filtro:hover { background: var(--superficie-3); } }
.filtro.ativo { background: var(--acento-suave); color: var(--acento-texto); }
.filtro .n { margin-left: 5px; font-weight: 750; font-size: 12px; background: var(--acento); color: #fff; border-radius: 99px; padding: 1px 6px; }
.itens { flex: 1; overflow-y: auto; padding: 2px 8px calc(16px + var(--base-segura)); scrollbar-color: transparent transparent; }
@media (hover: hover) { .itens:hover { scrollbar-color: var(--linha-forte) transparent; } }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; align-items: center; padding: 10px 10px; border-radius: 14px; cursor: pointer; position: relative; transition: background .12s; }
@media (hover: hover) { .item:hover { background: var(--superficie-2); } }
.item.ativo { background: var(--acento-suave); }
.item .meio { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 2px 0; }
.item .linha1, .item .linha2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.item .nome { font-weight: 620; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; letter-spacing: -.005em; }
.item .hora { font-size: 12.5px; color: var(--texto-3); flex: none; font-variant-numeric: tabular-nums; }
.item.nao-lida .hora { color: var(--acento-texto); font-weight: 650; }
.item .previa { color: var(--texto-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 4px; align-items: center; flex: 1; min-width: 0; }
.item .previa > span { overflow: hidden; text-overflow: ellipsis; }
.item .previa svg.ic { width: 16px; height: 16px; flex: none; color: var(--texto-3); }
.item .previa .tique { color: var(--texto-3); }
.item .previa .tique.lido { color: var(--lido); }
.item.nao-lida .previa { color: var(--texto); }
.item .previa.atencao { color: var(--alerta-texto); }
.item .previa.atencao svg.ic, .item .previa.sugestao svg.ic { color: inherit; }
.item .previa.sugestao { color: var(--ia-texto); }
.item::after { content: ""; position: absolute; left: 73px; right: 10px; bottom: 0; height: 1px; background: var(--linha); opacity: .7; }
@media (hover: hover) { .item:last-child::after, .item:hover::after, .item.ativo::after { display: none; } }
.selo { min-width: 21px; height: 21px; border-radius: 11px; background: var(--acento); color: #fff; font-size: 12px; font-weight: 750; display: inline-grid; place-items: center; padding: 0 6px; flex: none; }
.selo.atencao { background: #e9a825; }
.chip { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px; background: var(--ia); color: var(--ia-texto); display: inline-flex; align-items: center; gap: 3px; flex: none; }
.chip svg.ic { width: 13px; height: 13px; }
.chip.pausa { background: var(--superficie-3); color: var(--texto-3); }
.vazio { color: var(--texto-3); text-align: center; padding: 48px 24px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--chat-fundo); position: relative; }
.chat-topo { display: flex; align-items: center; gap: 6px; padding: calc(6px + var(--topo-seguro)) 10px 6px 10px; background: color-mix(in srgb, var(--chat-fundo) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--linha) 70%, transparent); min-height: 58px; z-index: 3; }
.chat-topo .quem { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 6px 4px 2px; border-radius: 12px; text-align: left; }
@media (hover: hover) { .chat-topo .quem:hover { background: var(--superficie-2); } }
.chat-topo .quem .txt { min-width: 0; }
.chat-topo .quem b { display: block; font-size: 16.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.chat-topo .quem .sub { display: block; font-size: 12.5px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-ia { font-weight: 650; }
.sub-ia.responder { color: var(--acento-texto); }
.sub-ia.sugerir { color: var(--ia-texto); }
.sub-ia.pausada { color: var(--texto-3); }
.voltar { display: none; }
.bt-ia { display: inline-flex; align-items: center; gap: 4px; border: 0; height: 36px; padding: 0 9px 0 10px; border-radius: 18px; background: var(--superficie-2); color: var(--texto-2); font-size: 13.5px; font-weight: 650; flex: none; transition: background .15s, color .15s, transform .1s; }
.bt-ia:active { transform: scale(.96); }
.bt-ia svg.ic { width: 19px; height: 19px; }
.bt-ia svg.mini { width: 14px; height: 14px; opacity: .8; }
.bt-ia.sugerir { background: var(--ia); color: var(--ia-texto); }
.bt-ia.responder { background: var(--acento); color: #fff; }
.bt-ia.pausada { background: var(--superficie-3); color: var(--texto-3); }

/* menu da IA */
.menu { position: fixed; z-index: 55; width: min(300px, calc(100vw - 16px)); background: var(--superficie); border: 1px solid var(--linha); border-radius: 18px; box-shadow: var(--sombra-2); padding: 6px; animation: menu .14s ease-out; transform-origin: top right; }
@keyframes menu { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.item-menu { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: transparent; padding: 8px 9px; border-radius: 12px; text-align: left; }
@media (hover: hover) { .item-menu:hover { background: var(--superficie-2); } }
.item-menu .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.item-menu .t b { font-size: 14.5px; font-weight: 620; }
.item-menu small { color: var(--texto-3); font-size: 12.5px; }
.item-menu .marca { color: var(--acento-texto); width: 20px; height: 20px; }
.ic-modo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--superficie-3); color: var(--texto-2); flex: none; }
.ic-modo svg.ic { width: 18px; height: 18px; }
.ic-modo.sugerir { background: var(--ia); color: var(--ia-texto); }
.ic-modo.responder { background: var(--acento); color: #fff; }
.menu .sep { height: 1px; background: var(--linha); margin: 5px 8px; }

.faixa { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 14px; border-bottom: 1px solid var(--linha); background: var(--superficie); z-index: 2; }
.faixa.atencao { background: var(--alerta); border-color: var(--alerta-borda); color: var(--alerta-texto); }
.faixa.pausa { color: var(--texto-2); }
.faixa span { flex: 1; }
.faixa svg.ic { width: 18px; height: 18px; }
button.faixa { width: 100%; border: 0; border-bottom: 1px solid var(--linha); text-align: left; font: inherit; font-size: 14px; }
.faixa.programadas { color: var(--acento-texto); font-weight: 600; background: color-mix(in srgb, var(--acento-suave) 70%, var(--superficie)); }
.faixa.programadas.falhou { color: var(--perigo); background: var(--superficie); }
.faixa.programadas svg.ic:last-child { width: 16px; height: 16px; opacity: .7; }

.rolagem { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mensagens { flex: 1; overflow-y: auto; padding: 6px max(clamp(10px, 4vw, 56px), calc((100% - 920px) / 2)) 12px; display: flex; flex-direction: column; overscroll-behavior: contain; }
/* Na lista que rola nada encolhe: balão com overflow escondido (foto com legenda, vídeo) virava uma tira de 7px em conversa longa */
.mensagens > * { flex-shrink: 0; }
.descer { position: absolute; right: 14px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--superficie-2); color: var(--texto); box-shadow: var(--sombra-2); display: grid; place-items: center; z-index: 4; animation: surge .15s ease-out; }
.descer svg.ic { width: 22px; height: 22px; }
.dia { align-self: center; font-size: 12px; font-weight: 650; color: var(--texto-2); padding: 4px 12px; margin: 16px 0 10px; border-radius: 99px; background: var(--superficie-2); letter-spacing: .01em; }

/* começo da conversa */
.cartao-perfil { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 26px 16px 18px; margin: 0 auto 6px; max-width: 380px; }
.cartao-perfil .avatar { margin-bottom: 12px; }
.cartao-perfil h2 { margin: 0 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.cartao-perfil .l { color: var(--texto-2); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cartao-perfil .etiqueta { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; color: var(--texto-3); margin-top: 6px; }
.cartao-perfil .etiqueta svg.ic { width: 15px; height: 15px; }
.cartao-perfil .bt { margin-top: 14px; border-radius: 99px; background: var(--superficie-2); border-color: transparent; padding: 7px 14px; }

/* balões: cinza (contato), azul (você), roxo (IA); sem rabinho; colados quando seguidos */
.msg { --fundo-msg: var(--cliente); max-width: min(520px, 78%); padding: 7px 12px 7px 12px; border-radius: 18px; background: var(--fundo-msg); color: var(--texto); align-self: flex-start; position: relative; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.36; }
.msg.mim { --fundo-msg: var(--eu); color: #fff; align-self: flex-end; }
.msg.mim.ia { --fundo-msg: var(--ia-bolha); }
.msg + .msg { margin-top: 10px; }
.msg + .msg.junto { margin-top: 2px; }
.msg:not(.mim).junto { border-top-left-radius: 5px; }
.msg:not(.mim).segue { border-bottom-left-radius: 5px; }
.msg.mim.junto { border-top-right-radius: 5px; }
.msg.mim.segue { border-bottom-right-radius: 5px; }
.msg.mim a { color: #fff; }
/* A hora fica no canto de baixo do balão; um espaço invisível no fim do texto abre lugar para ela */
.msg .rodape { position: absolute; right: 11px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--texto-3); white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }
.msg.mim .rodape { color: rgba(255, 255, 255, .78); }
.msg .rodape svg.ic { width: 12px; height: 12px; }
.msg .espaco { display: inline-block; width: 50px; height: 1px; vertical-align: baseline; }
.msg.mim .espaco { width: 68px; }
.msg.ia .espaco { width: 82px; }
.msg .espaco-linha { display: block; height: 14px; }
.msg .outro { opacity: .8; }
.tique { display: inline-flex; align-items: center; flex: none; }
.tique svg { display: block; height: 15px; width: auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tique.enviando svg { stroke-width: 1.4; opacity: .85; }
.msg .rodape .tique svg { height: 11.5px; stroke-width: 1.8; }
.tique.erro, .msg.mim .rodape .tique.erro { color: var(--perigo); }
.msg.mim .rodape .tique.erro { color: #ffd0c9; }
.msg .rodape .tique.lido { color: var(--lido); }
.msg.mim .rodape .tique { color: rgba(255, 255, 255, .7); }
.msg.mim .rodape .tique.lido { color: var(--lido-balao); }
.msg .autor { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; margin-bottom: 2px; color: rgba(255, 255, 255, .88); }
.msg .autor svg.ic { width: 14px; height: 14px; }
.msg.erro { box-shadow: 0 0 0 2px var(--perigo); }
.msg .falhou { color: var(--perigo); font-size: 12.5px; margin-top: 4px; white-space: normal; }
.msg.mim .falhou { color: #ffe0db; }
.msg.apagada .corpo { opacity: .5; text-decoration: line-through; }
.msg .apagou { font-size: 12px; opacity: .7; font-style: italic; white-space: normal; }
.msg.so-midia { padding: 0; background: transparent; }
.msg.so-midia .corpo { border-radius: inherit; }
.msg.so-midia .corpo > .foto { border-radius: inherit; }
.msg.so-midia .rodape { right: 9px; bottom: 9px; color: #fff; background: rgba(0, 0, 0, .4); padding: 4px 7px; border-radius: 9px; backdrop-filter: blur(4px); z-index: 2; }
.msg.so-midia .rodape .tique { color: #fff; }
.msg.so-midia .rodape .tique.lido { color: var(--lido-balao); }
.msg.com-midia { padding: 0 0 7px; overflow: hidden; width: min(320px, 72vw); }
.msg.com-midia .foto, .msg.com-midia video { width: 100%; border-radius: 0; }
.msg.com-midia .legenda { padding: 7px 12px 0; }
.msg.figurinha-msg, .msg.mim.figurinha-msg { background: transparent; padding: 0; }
.msg.figurinha-msg .rodape { position: static; display: flex; justify-content: flex-end; background: transparent; color: var(--texto-3); margin-top: 2px; }
.msg.figurinha-msg .rodape .tique { color: var(--texto-3); }
.msg.figurinha-msg .rodape .tique.lido { color: var(--lido); }
.carregar-mais { align-self: center; margin: 6px 0 10px; }
.msg.nova { animation: entra-msg .24s cubic-bezier(.2, .8, .3, 1); }
.msg.mim.nova { transform-origin: bottom right; }
.msg.nova:not(.mim) { transform-origin: bottom left; }
@keyframes entra-msg { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* fotos e vídeos */
.foto { position: relative; display: block; overflow: hidden; border-radius: 18px; background-color: var(--superficie-3); background-size: cover; background-position: center; cursor: zoom-in; width: min(300px, 68vw); max-width: 100%; border: 0; padding: 0; }
.foto::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.foto.carregou::before { display: none; }
.foto.sem-arquivo::before { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.foto:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.foto > img.pronta { opacity: 1; }
.foto .sobre { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 10px; background: rgba(0, 0, 0, .25); z-index: 1; }
.foto .sobre .bolha { width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; backdrop-filter: blur(4px); }
.foto .sobre .bolha svg.ic { width: 26px; height: 26px; }
.foto .duracao-video { position: absolute; left: 8px; bottom: 8px; z-index: 1; color: #fff; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .45); padding: 3px 7px; border-radius: 8px; display: inline-flex; gap: 4px; align-items: center; }
.foto .duracao-video svg.ic { width: 14px; height: 14px; }
/* O WhatsApp não tem mais a foto/vídeo inteiro: fica a prévia que veio na mensagem */
.foto.so-previa::before { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.foto .selo-previa { position: absolute; right: 8px; bottom: 8px; z-index: 1; color: #fff; font-size: 11.5px; font-weight: 650; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 8px; }
.album .foto .selo-previa, .galeria .foto .selo-previa { right: 4px; bottom: 4px; font-size: 10.5px; padding: 2px 6px; }
.doc.sumiu { cursor: default; opacity: .8; }
.doc.sumiu .ico { background: var(--texto-3); }
.album { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(300px, 68vw); border-radius: inherit; overflow: hidden; }
.album .foto { width: 100%; aspect-ratio: 1; border-radius: 0; }
.album.impar .foto:first-child { grid-column: 1 / -1; aspect-ratio: 2; }
.album .mais { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; font-size: 26px; font-weight: 650; }
video.video-aberto { display: block; width: min(300px, 68vw); max-width: 100%; max-height: 420px; border-radius: 18px; background: #000; }
.figurinha { width: 150px; height: 150px; object-fit: contain; display: block; cursor: zoom-in; }

/* áudio */
.audio { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "foto tocar meio"; align-items: center; gap: 6px; width: min(320px, 70vw); padding: 3px 0 2px; }
.audio.meu { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tocar meio foto"; }
.audio .foto-audio { grid-area: foto; position: relative; margin-right: 4px; }
.audio.meu .foto-audio { margin: 0 0 0 6px; }
.avatar.a { --tam: 48px; }
.mic-audio { position: absolute; right: -4px; bottom: -3px; width: 21px; height: 21px; border-radius: 50%; background: var(--acento); color: #fff; display: grid; place-items: center; border: 2px solid var(--fundo-msg); }
.mic-audio svg.ic { width: 12px; height: 12px; stroke-width: 2.4; }
.audio.meu .mic-audio { right: auto; left: -4px; background: #fff; color: var(--eu); }
.msg.ia .audio.meu .mic-audio { color: var(--ia-bolha); }
.audio .vel { grid-area: foto; justify-self: center; display: none; }
.audio.tocando .foto-audio { display: none; }
.audio.tocando .vel { display: inline-grid; place-items: center; animation: surge .15s ease-out; }
.audio .tocar { grid-area: tocar; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--texto-2); }
@media (hover: hover) { .audio .tocar:hover { background: color-mix(in srgb, var(--texto) 7%, transparent); } }
.audio .tocar svg.ic { width: 27px; height: 27px; fill: currentColor; stroke-width: 1.2; }
.audio .tocar.carregando svg { animation: gira 1s linear infinite; fill: none; stroke-width: 2.2; }
.audio .tocar:active { transform: scale(.92); }
.audio .meio { grid-area: meio; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.audio .ondas { display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; touch-action: pan-y; }
.audio .ondas i { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--texto-3) 55%, transparent); height: var(--a); transition: background .1s; }
.audio .ondas i.tocou { background: var(--acento); }
.msg.mim .audio .ondas i { background: rgba(255, 255, 255, .42); }
.msg.mim .audio .ondas i.tocou { background: #fff; }
.msg.mim .audio .tocar { color: #fff; }
@media (hover: hover) { .msg.mim .audio .tocar:hover { background: rgba(255, 255, 255, .14); } }
.msg.mim .audio .info { color: rgba(255, 255, 255, .78); }
.audio .info { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.audio .vel { border: 0; background: var(--superficie-3); color: var(--texto-2); font-size: 12px; font-weight: 750; border-radius: 99px; padding: 4px 8px; min-width: 40px; }
.msg.mim .audio .vel { background: rgba(255, 255, 255, .2); color: #fff; }
.transcricao { margin-top: 6px; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--texto) 5%, transparent); font-size: 14px; line-height: 1.4; color: var(--texto); white-space: pre-wrap; max-width: min(300px, 66vw); }
.transcricao .rot { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 2px; }
.transcricao .rot svg.ic { width: 13px; height: 13px; }
.transcricao.espera, .transcricao.sem-fala { color: var(--texto-3); font-style: italic; }
.transcricao.espera::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: reticencias 1.4s steps(4) infinite; }
@keyframes reticencias { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.transcricao button { border: 0; background: none; color: var(--acento-texto); font-weight: 650; padding: 0; font-size: 13px; }
.bt-transcrever { margin-top: 5px; border: 0; background: none; color: var(--acento-texto); font-size: 13px; font-weight: 650; padding: 2px 0; display: inline-flex; align-items: center; gap: 4px; }
.bt-transcrever svg.ic { width: 15px; height: 15px; }
.msg.mim .transcricao { background: rgba(255, 255, 255, .15); color: #fff; }
.msg.mim .transcricao .rot, .msg.mim .transcricao.espera, .msg.mim .transcricao.sem-fala { color: rgba(255, 255, 255, .78); }
.msg.mim .bt-transcrever { color: #fff; }

/* documento */
.doc { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; background: color-mix(in srgb, var(--texto) 5%, transparent); text-decoration: none; color: var(--texto); white-space: normal; min-width: min(260px, 60vw); }
.doc .ico { width: 40px; height: 46px; border-radius: 7px; background: var(--acento); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .02em; flex: none; position: relative; }
.doc .ico.pdf { background: #e5483b; }
.doc .t { flex: 1; min-width: 0; }
.doc .t b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.doc .t small { color: var(--texto-3); font-size: 12px; }
.msg.mim .doc { background: rgba(255, 255, 255, .15); color: #fff; }
.msg.mim .doc .t small { color: rgba(255, 255, 255, .75); }
.msg.mim .doc .ico { background: #fff; color: var(--eu); }

/* sugestão e envio */
.sugestao { margin: 0 max(12px, calc((100% - 960px) / 2)) 8px; background: var(--ia); border: 1px solid var(--ia-borda); border-radius: var(--raio); padding: 10px 12px; box-shadow: var(--sombra-1); }
.sugestao .cab { font-size: 12.5px; font-weight: 700; color: var(--ia-texto); display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.sugestao .cab svg.ic { width: 16px; height: 16px; }
.sugestao textarea { min-height: 60px; background: var(--superficie); }
.sugestao .acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

.compor { display: flex; align-items: flex-end; gap: 6px; padding: 8px max(10px, calc((100% - 960px) / 2)) calc(8px + var(--base-segura)); background: color-mix(in srgb, var(--chat-fundo) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); z-index: 3; }
.compor .bt-icone { width: 40px; height: 40px; color: var(--texto); }
.compor .bt-icone svg.ic { width: 24px; height: 24px; }
.compor .mais svg { transition: transform .2s ease; }
.compor .mais.aberto { background: var(--superficie-3); }
.compor .mais.aberto svg { transform: rotate(45deg); }
.compor .enviar { background: var(--acento); color: #fff; }
@media (hover: hover) { .compor .enviar:hover { background: var(--acento-forte); color: #fff; } }
.compor .enviar svg.ic { width: 20px; height: 20px; }
.compor .enviar { transition: transform .15s; }
.compor .enviar.apertando { transform: scale(.88); }
/* iPhone: o campo de data e hora não passa da borda da janela */
input[type="datetime-local"].campo { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; }
.menu-enviar { transform-origin: bottom right; width: min(270px, calc(100vw - 16px)); }
.pilula { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--superficie-2); border-radius: 20px; min-height: 40px; padding-right: 3px; transition: box-shadow .15s; }
.pilula:focus-within { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--acento) 55%, transparent); }
.entrada { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; outline: none; min-height: 40px; max-height: 160px; padding: 9px 4px 9px 15px; font-size: 16px; line-height: 1.38; color: var(--texto); }
.entrada::placeholder { color: var(--texto-3); }
.bt-fig { width: 34px; height: 34px; margin: 3px 0; border: 0; background: transparent; color: var(--texto-2); border-radius: 50%; display: grid; place-items: center; flex: none; }
@media (hover: hover) { .bt-fig:hover, .bt-fig.aberto { color: var(--acento-texto); } }
.bt-fig svg.ic { width: 23px; height: 23px; }
.bt-sugerir { width: 30px; height: 30px; margin: 5px 0; border: 0; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ia); color: var(--ia-texto); box-shadow: inset 0 0 0 1px var(--ia-borda); transition: transform .12s, background .15s, box-shadow .2s; }
.bt-sugerir svg.ic { width: 17px; height: 17px; }
.bt-sugerir:active { transform: scale(.9); }
.bt-sugerir.convite { box-shadow: inset 0 0 0 1px var(--ia-borda), 0 0 0 0 color-mix(in srgb, var(--ia-texto) 45%, transparent); animation: chamar-ia 1.6s ease-out 2; }
.bt-sugerir.aberto { background: var(--ia-texto); color: var(--superficie); }
.bt-sugerir.pensando svg { animation: girar-ia 1s linear infinite; }
@keyframes chamar-ia { to { box-shadow: inset 0 0 0 1px var(--ia-borda), 0 0 0 9px transparent; } }
@keyframes girar-ia { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bt-sugerir.convite, .bt-sugerir.pensando svg { animation: none; } }
.gravando { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--perigo); font-weight: 650; padding: 0 12px; height: 44px; font-variant-numeric: tabular-nums; }
.gravando .bola { width: 11px; height: 11px; border-radius: 50%; background: var(--perigo); animation: pisca 1s infinite; }
@keyframes pisca { 50% { opacity: .2; } }

.nada { flex: 1; display: grid; place-items: center; color: var(--texto-3); text-align: center; padding: 24px; background: radial-gradient(520px 360px at 50% 42%, color-mix(in srgb, var(--acento) 10%, transparent), transparent 72%); }
.nada .cx { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(460px, 100%); animation: surge .25s ease-out; }
.selo-vazio { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(145deg, #5b95ff, #2456d8); color: #fff; box-shadow: 0 14px 36px color-mix(in srgb, var(--acento) 38%, transparent); margin-bottom: 14px; }
.selo-vazio svg.ic { width: 42px; height: 42px; stroke-width: 1.8; }
.nada h2 { margin: 0; font-size: 22px; font-weight: 720; color: var(--texto); letter-spacing: -.015em; }
.nada p { margin: 0 0 20px; color: var(--texto-2); font-size: 15px; }
.atalhos-vazio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.atalho-vazio { --c: var(--acento); border: 1px solid var(--linha); background: var(--superficie); border-radius: 18px; padding: 14px 13px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; color: var(--texto-2); font-size: 13px; line-height: 1.25; transition: transform .12s, border-color .15s, box-shadow .15s; }
@media (hover: hover) { .atalho-vazio:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--linha)); box-shadow: var(--sombra-2); transform: translateY(-1px); } }
.atalho-vazio:active { transform: translateY(0) scale(.98); }
.atalho-vazio b { font-size: 24px; color: var(--texto); font-weight: 760; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.ic-at { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.ic-at svg.ic { width: 19px; height: 19px; }
.atalho-vazio.azul { --c: #3d7bf2; }
.atalho-vazio.ambar { --c: #e0a020; }
.atalho-vazio.roxo { --c: #8b6cf0; }

/* sugestões de resposta (chips em cima da caixa) */
.opcoes { display: flex; gap: 8px; padding: 4px max(10px, calc((100% - 960px) / 2)) 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.opcoes::-webkit-scrollbar { display: none; }
.chip-opcao { flex: none; max-width: min(290px, 76vw); border: 1px solid var(--linha-forte); background: var(--superficie); color: var(--texto); border-radius: 18px; padding: 8px 13px; font-size: 14.5px; text-align: left; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; animation: sobe .2s ease-out; }
@media (hover: hover) { .chip-opcao:hover { border-color: var(--acento); } }
.chip-opcao.convite { display: inline-flex; align-items: center; gap: 6px; border-color: transparent; background: var(--ia); color: var(--ia-texto); font-weight: 650; font-size: 13.5px; padding: 7px 13px; }
.chip-opcao.convite svg.ic { width: 17px; height: 17px; }
.chip-opcao.pensando svg { animation: pisca 1.2s infinite; }
.chip-opcao.atualizar svg.ic { width: 16px; height: 16px; }
.chip-opcao.erro { border-color: transparent; background: var(--alerta); color: var(--alerta-texto); font-size: 13.5px; }
.bt-icone.pequeno { width: 34px; height: 34px; }
.bt-icone.pequeno svg.ic { width: 18px; height: 18px; }

/* folha do + e das figurinhas */
.folha { margin: 0 max(10px, calc((100% - 960px) / 2)) 6px; background: var(--superficie-2); border-radius: 22px; padding: 14px 8px 10px; animation: folha .18s ease-out; max-width: 540px; }
@keyframes folha { from { transform: translateY(12px); opacity: 0; } }
.grade-opcoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 2px; max-width: 420px; margin: 0 auto; }
.opcao { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--texto-2); text-align: center; line-height: 1.2; padding: 4px 2px; border-radius: 14px; }
.opcao .bola { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cor-op) 16%, var(--superficie)); color: var(--cor-op); transition: transform .12s, background .15s; }
@media (prefers-color-scheme: dark) { .opcao .bola { background: color-mix(in srgb, var(--cor-op) 24%, var(--superficie)); color: color-mix(in srgb, var(--cor-op) 70%, #fff); } }
.opcao .bola svg.ic { width: 25px; height: 25px; }
@media (hover: hover) { .opcao:hover .bola { background: color-mix(in srgb, var(--cor-op) 26%, var(--superficie)); } }
.opcao:active .bola { transform: scale(.93); }
.folha.figs { padding: 10px 10px 12px; }
.cab-folha { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 6px; }
.cab-folha b { flex: 1; font-size: 15px; }
.cab-folha .bt-icone { width: 34px; height: 34px; }
.grade-figurinhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 290px; overflow-y: auto; }
.fig { aspect-ratio: 1; border: 0; background: transparent; border-radius: 14px; padding: 4px; display: grid; place-items: center; }
@media (hover: hover) { .fig:hover { background: var(--superficie-3); } }
.fig:active { transform: scale(.95); }
.fig img { width: 100%; height: 100%; object-fit: contain; }
.fig.gerando { background: var(--superficie-3); }
.pulso { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--acento); animation: pulso 1.2s ease-in-out infinite; }
@keyframes pulso { 50% { transform: scale(.55); opacity: .35; } }
.vazio-figs { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--texto-2); font-size: 14px; padding: 12px 10px 6px; }

/* janelas de programar e de figurinha */
.cab-modal { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -8px 4px 0; }
.cab-modal h2 { margin: 0; }
.atalhos, .estilos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.atalhos button, .estilos button { border: 1px solid var(--linha-forte); background: transparent; border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--texto-2); }
@media (hover: hover) { .atalhos button:hover, .estilos button:hover { border-color: var(--acento); color: var(--texto); } }
.estilos button.ativo { background: var(--acento); border-color: var(--acento); color: #fff; }
.titulo-prog { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); margin: 22px 0 0; }
.lista-prog { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.prog { border: 1px solid var(--linha); border-radius: 14px; padding: 10px 12px; background: var(--superficie-2); }
.prog .q { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--acento-texto); }
.prog .q svg.ic { width: 15px; height: 15px; }
.prog.erro .q { color: var(--perigo); }
.prog .t { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 6px; font-size: 14.5px; }
.prog .erro { font-size: 12.5px; color: var(--perigo); margin-bottom: 6px; }
.prog .acoes { display: flex; gap: 6px; justify-content: flex-end; margin: 0; }
.som-prog { margin: 6px 0 8px; }
.som-prog .tocador-prev { margin-top: 0; padding-top: 6px; padding-bottom: 6px; }
.som-prog .tocador-prev .bt-icone { width: 36px; height: 36px; }
/* Programar: Texto | Áudio */
.troca-prog { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 12px 0 10px; background: var(--superficie-3); border-radius: 12px; }
.troca-prog button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--texto-2); transition: background .15s, color .15s, box-shadow .15s; }
.troca-prog button svg.ic { width: 17px; height: 17px; }
.troca-prog button.ativo { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-1); }
.troca-prog button:disabled { opacity: .45; }
.audio-prog { border: 1px dashed var(--linha-forte); border-radius: 16px; padding: 2px 14px 14px; animation: sobe .18s ease-out; }
.audio-prog .falar-voz { padding: 16px 0 0; gap: 8px; }
.audio-prog .bt-falar, .audio-prog .bt-falar.gravando { width: 72px; height: 72px; }
.audio-prog .bt-falar svg.ic { width: 32px; height: 32px; }
.audio-prog .bt-falar.gravando svg.ic { width: 26px; height: 26px; }
.audio-prog .tocador-prev { margin-top: 12px; }
.acoes-audio-prog { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.fig-modal p.centro { text-align: center; }
.prev-fig { width: 220px; height: 220px; margin: 10px auto 14px; border-radius: 24px; display: grid; place-items: center; background-color: var(--superficie-2); background-image: conic-gradient(var(--superficie-3) 25%, transparent 0 50%, var(--superficie-3) 0 75%, transparent 0); background-size: 22px 22px; }
.prev-fig img { width: 92%; height: 92%; object-fit: contain; animation: surge .3s ease-out; }
.prev-fig.gerando { background-image: none; }
.eu-linha { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; }
.eu-linha img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--superficie-3); }
.eu-linha b { display: block; font-size: 14.5px; }
button.link { border: 0; background: none; padding: 0; color: var(--acento-texto); font-weight: 600; font-size: 13.5px; }
.sem-foto { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.sem-foto p { margin: 0; }
.erro-fig { color: var(--perigo); font-size: 13.5px; margin: 10px 0 0; }
.minha-foto { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; background: var(--superficie-3); }
.minha-foto.vazia { display: grid; place-items: center; color: var(--texto-3); }
.minha-foto.vazia svg.ic { width: 44px; height: 44px; stroke-width: 1.4; }
.sem-foto .minha-foto { width: 64px; height: 64px; }
.sem-foto .minha-foto svg.ic { width: 30px; height: 30px; }
.linha-foto { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.cab-cartao { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal .acoes .empurra { flex: 1; }
/* quem aparece na figurinha */
.cab-quem { display: flex; align-items: baseline; justify-content: space-between; }
.cab-quem .ajuda { font-size: 12.5px; }
.quem-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; margin: 6px -2px 2px; scrollbar-width: none; }
.quem-chips::-webkit-scrollbar { display: none; }
.chip-pessoa { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; border: 0; background: none; padding: 0; color: var(--texto-2); font-size: 12.5px; font-weight: 600; }
.chip-pessoa img, .chip-pessoa .sem, .chip-pessoa.nova svg.ic { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--superficie-3); box-shadow: 0 0 0 2px transparent; transition: box-shadow .18s, transform .18s, opacity .18s; opacity: .55; }
.chip-pessoa .sem { display: grid; place-items: center; color: var(--texto-3); }
.chip-pessoa .sem svg.ic { width: 22px; height: 22px; }
.chip-pessoa span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-pessoa.ativo { color: var(--texto); }
.chip-pessoa.ativo img, .chip-pessoa.ativo .sem { opacity: 1; box-shadow: 0 0 0 2px var(--superficie), 0 0 0 4.5px var(--acento); transform: scale(1.04); }
.chip-pessoa.nova svg.ic { opacity: 1; padding: 17px; box-sizing: border-box; border: 1.5px dashed var(--linha-forte); background: transparent; color: var(--texto-3); stroke-width: 2; }
@media (hover: hover) { .chip-pessoa:hover img, .chip-pessoa:hover .sem { opacity: .85; } .chip-pessoa.ativo:hover img { opacity: 1; } .chip-pessoa.nova:hover svg.ic { border-color: var(--acento); color: var(--acento-texto); } }
/* outras pessoas (Ajustes) */
.grade-pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 10px; margin-top: 14px; }
.pessoa-card { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; color: var(--texto); font-size: 13px; font-weight: 600; border-radius: 14px; }
.pessoa-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--superficie-3); transition: transform .18s; animation: surge .25s ease-out; }
.pessoa-card span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
@media (hover: hover) { .pessoa-card:hover img { transform: scale(1.06); } }
.pessoa-card:active img { transform: scale(.94); }
.linha-pessoa { display: flex; gap: 14px; align-items: center; margin: 4px 0 6px; }
.linha-pessoa .ajuda { margin: 0 0 8px; }
.foto-pessoa img, .foto-pessoa .minha-foto { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; background: var(--superficie-3); animation: surge .25s ease-out; }
.foto-pessoa .minha-foto.vazia svg.ic { width: 36px; height: 36px; }
.ajustes-figs { max-height: none; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.fig-ajuste { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--superficie-2); display: grid; place-items: center; padding: 6px; }
.fig-ajuste img { width: 100%; height: 100%; object-fit: contain; }
.fig-ajuste.erro { padding: 10px; text-align: center; }
.fig-ajuste .erro-fig { margin: 0; font-size: 12px; }
.fig-ajuste .apagar { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; background: var(--superficie); box-shadow: var(--sombra-1); opacity: 0; transition: opacity .15s; }
.fig-ajuste .apagar svg.ic { width: 16px; height: 16px; }
@media (hover: hover) { .fig-ajuste:hover .apagar, .fig-ajuste.erro .apagar { opacity: 1; } }
@media (pointer: coarse) { .fig-ajuste .apagar { opacity: 1; } }
button.estado-chave { border: 0; cursor: pointer; text-align: left; }
.chip.prog { border: 0; padding: 2px 7px; border-radius: 7px; background: var(--superficie-3); color: var(--texto-2); }

/* ---------- fundo das conversas (Ajustes → Aparência; cada conversa pode ter o seu) ---------- */
:root { --cliente-papel: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --cliente-papel: #222226; } }
[data-fundo] { --papel: var(--chat-fundo); }
[data-fundo="rabiscos"] { --papel: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22220%22 height=%22220%22 viewBox=%220 0 220 220%22%3E%3Cg fill=%22none%22 stroke=%22rgba(70,52,30,.13)%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath transform=%22translate(13.5 10.4) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(233.5 10.4) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(61.6 14.9) rotate(-6 13.2 13.2) scale(1.1)%22 d=%22M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15Z M10 20a2 2 0 0 0 4 0%22/%3E%3Cpath transform=%22translate(118.7 16.8) rotate(-24 10.8 10.8) scale(0.9)%22 d=%22M12 3.5a3 3 0 0 0-3 3v5.5a3 3 0 0 0 6 0V6.5a3 3 0 0 0-3-3Z M5.5 11.5a6.5 6.5 0 0 0 13 0 M12 18v2.5%22/%3E%3Cpath transform=%22translate(178.1 6.6) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M4 8h3l1.6-2.5h6.8L17 8h3v11H4Z M12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z%22/%3E%3Cpath transform=%22translate(-41.9 6.6) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M4 8h3l1.6-2.5h6.8L17 8h3v11H4Z M12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z%22/%3E%3Cpath transform=%22translate(42.8 77.6) rotate(-24 10.8 10.8) scale(0.9)%22 d=%22M20.5 13V7A3.5 3.5 0 0 0 17 3.5H7A3.5 3.5 0 0 0 3.5 7v10A3.5 3.5 0 0 0 7 20.5h6Z M13 20.5V17a4 4 0 0 1 4-4h3.5 M9 9.5h.01 M15 9.5h.01 M8.5 14c1.1.9 2.3 1.3 3.5 1.2%22/%3E%3Cpath transform=%22translate(99.2 70.8) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 7.5V12l3 2%22/%3E%3Cpath transform=%22translate(155.7 63.6) rotate(-14 10.8 10.8) scale(0.9)%22 d=%22M4.5 12 20 4.5 15 20l-2.6-6.4L4.5 12Z M12.4 13.6 20 4.5%22/%3E%3Cpath transform=%22translate(210.2 65.1) rotate(8 10.8 10.8) scale(0.9)%22 d=%22M12 3.5l1.7 4.8 4.8 1.7-4.8 1.7L12 16.5l-1.7-4.8L5.5 10l4.8-1.7Z M18.5 15l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7Z%22/%3E%3Cpath transform=%22translate(-9.8 65.1) rotate(8 10.8 10.8) scale(0.9)%22 d=%22M12 3.5l1.7 4.8 4.8 1.7-4.8 1.7L12 16.5l-1.7-4.8L5.5 10l4.8-1.7Z M18.5 15l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7Z%22/%3E%3Cpath transform=%22translate(15.0 125.6) rotate(16 13.2 13.2) scale(1.1)%22 d=%22M4 5h16v14H4Z M4 16l4.5-4.5 4 4 2.5-2.5L20 18 M15.5 9.5h.01%22/%3E%3Cpath transform=%22translate(235.0 125.6) rotate(16 13.2 13.2) scale(1.1)%22 d=%22M4 5h16v14H4Z M4 16l4.5-4.5 4 4 2.5-2.5L20 18 M15.5 9.5h.01%22/%3E%3Cpath transform=%22translate(66.0 128.2) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M7.5 5v14l11.5-7Z%22/%3E%3Cpath transform=%22translate(122.0 125.2) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M5 12.5l4.5 4.5L19 7.5%22/%3E%3Cpath transform=%22translate(171.4 119.0) rotate(26 13.2 13.2) scale(1.1)%22 d=%22M14 3.5H6.5v17h11V7Z M14 3.5V7h3.5%22/%3E%3Cpath transform=%22translate(41.7 177.2) rotate(16 12.0 12.0) scale(1.0)%22 d=%22M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4.5 20.5a7.5 7.5 0 0 1 15 0%22/%3E%3Cpath transform=%22translate(94.3 174.8) rotate(-14 13.2 13.2) scale(1.1)%22 d=%22M3.5 7h12v10h-12Z M15.5 10.5 20.5 7.5v9l-5-3%22/%3E%3Cpath transform=%22translate(156.8 171.8) rotate(-6 13.2 13.2) scale(1.1)%22 d=%22M12 3.5a3 3 0 0 0-3 3v5.5a3 3 0 0 0 6 0V6.5a3 3 0 0 0-3-3Z M5.5 11.5a6.5 6.5 0 0 0 13 0 M12 18v2.5%22/%3E%3Cpath transform=%22translate(207.9 177.7) rotate(8 12.0 12.0) scale(1.0)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(-12.1 177.7) rotate(8 12.0 12.0) scale(1.0)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px, #efe7dc; }
[data-fundo="rabiscos-azul"] { --papel: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22220%22 height=%22220%22 viewBox=%220 0 220 220%22%3E%3Cg fill=%22none%22 stroke=%22rgba(30,60,140,.12)%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath transform=%22translate(13.5 10.4) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(233.5 10.4) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(61.6 14.9) rotate(-6 13.2 13.2) scale(1.1)%22 d=%22M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15Z M10 20a2 2 0 0 0 4 0%22/%3E%3Cpath transform=%22translate(118.7 16.8) rotate(-24 10.8 10.8) scale(0.9)%22 d=%22M12 3.5a3 3 0 0 0-3 3v5.5a3 3 0 0 0 6 0V6.5a3 3 0 0 0-3-3Z M5.5 11.5a6.5 6.5 0 0 0 13 0 M12 18v2.5%22/%3E%3Cpath transform=%22translate(178.1 6.6) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M4 8h3l1.6-2.5h6.8L17 8h3v11H4Z M12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z%22/%3E%3Cpath transform=%22translate(-41.9 6.6) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M4 8h3l1.6-2.5h6.8L17 8h3v11H4Z M12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z%22/%3E%3Cpath transform=%22translate(42.8 77.6) rotate(-24 10.8 10.8) scale(0.9)%22 d=%22M20.5 13V7A3.5 3.5 0 0 0 17 3.5H7A3.5 3.5 0 0 0 3.5 7v10A3.5 3.5 0 0 0 7 20.5h6Z M13 20.5V17a4 4 0 0 1 4-4h3.5 M9 9.5h.01 M15 9.5h.01 M8.5 14c1.1.9 2.3 1.3 3.5 1.2%22/%3E%3Cpath transform=%22translate(99.2 70.8) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 7.5V12l3 2%22/%3E%3Cpath transform=%22translate(155.7 63.6) rotate(-14 10.8 10.8) scale(0.9)%22 d=%22M4.5 12 20 4.5 15 20l-2.6-6.4L4.5 12Z M12.4 13.6 20 4.5%22/%3E%3Cpath transform=%22translate(210.2 65.1) rotate(8 10.8 10.8) scale(0.9)%22 d=%22M12 3.5l1.7 4.8 4.8 1.7-4.8 1.7L12 16.5l-1.7-4.8L5.5 10l4.8-1.7Z M18.5 15l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7Z%22/%3E%3Cpath transform=%22translate(-9.8 65.1) rotate(8 10.8 10.8) scale(0.9)%22 d=%22M12 3.5l1.7 4.8 4.8 1.7-4.8 1.7L12 16.5l-1.7-4.8L5.5 10l4.8-1.7Z M18.5 15l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7Z%22/%3E%3Cpath transform=%22translate(15.0 125.6) rotate(16 13.2 13.2) scale(1.1)%22 d=%22M4 5h16v14H4Z M4 16l4.5-4.5 4 4 2.5-2.5L20 18 M15.5 9.5h.01%22/%3E%3Cpath transform=%22translate(235.0 125.6) rotate(16 13.2 13.2) scale(1.1)%22 d=%22M4 5h16v14H4Z M4 16l4.5-4.5 4 4 2.5-2.5L20 18 M15.5 9.5h.01%22/%3E%3Cpath transform=%22translate(66.0 128.2) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M7.5 5v14l11.5-7Z%22/%3E%3Cpath transform=%22translate(122.0 125.2) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M5 12.5l4.5 4.5L19 7.5%22/%3E%3Cpath transform=%22translate(171.4 119.0) rotate(26 13.2 13.2) scale(1.1)%22 d=%22M14 3.5H6.5v17h11V7Z M14 3.5V7h3.5%22/%3E%3Cpath transform=%22translate(41.7 177.2) rotate(16 12.0 12.0) scale(1.0)%22 d=%22M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4.5 20.5a7.5 7.5 0 0 1 15 0%22/%3E%3Cpath transform=%22translate(94.3 174.8) rotate(-14 13.2 13.2) scale(1.1)%22 d=%22M3.5 7h12v10h-12Z M15.5 10.5 20.5 7.5v9l-5-3%22/%3E%3Cpath transform=%22translate(156.8 171.8) rotate(-6 13.2 13.2) scale(1.1)%22 d=%22M12 3.5a3 3 0 0 0-3 3v5.5a3 3 0 0 0 6 0V6.5a3 3 0 0 0-3-3Z M5.5 11.5a6.5 6.5 0 0 0 13 0 M12 18v2.5%22/%3E%3Cpath transform=%22translate(207.9 177.7) rotate(8 12.0 12.0) scale(1.0)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(-12.1 177.7) rotate(8 12.0 12.0) scale(1.0)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px, #e6edfb; }
[data-fundo="ceu"] { --papel: linear-gradient(165deg, #d6e6ff 0%, #ece4ff 55%, #ffe9f1 100%); }
[data-fundo="por-do-sol"] { --papel: linear-gradient(165deg, #ffe1cc 0%, #ffd3df 50%, #e9d6ff 100%); }
[data-fundo="menta"] { --papel: linear-gradient(165deg, #d4f4e6 0%, #dcefff 100%); }
[data-fundo="pontos"] { --papel: radial-gradient(rgba(40,60,110,.16) 1.2px, transparent 1.6px) 0 0 / 18px 18px, #f2f4f8; }
[data-fundo="areia"] { --papel: #f1ebe2; }
[data-fundo="grafite"] { --papel: #e4e6ea; }
[data-fundo="lavanda"] { --papel: #ebe6fa; }
@media (prefers-color-scheme: dark) {
  [data-fundo="rabiscos"] { --papel: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22220%22 height=%22220%22 viewBox=%220 0 220 220%22%3E%3Cg fill=%22none%22 stroke=%22rgba(255,255,255,.07)%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath transform=%22translate(13.5 10.4) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(233.5 10.4) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(61.6 14.9) rotate(-6 13.2 13.2) scale(1.1)%22 d=%22M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15Z M10 20a2 2 0 0 0 4 0%22/%3E%3Cpath transform=%22translate(118.7 16.8) rotate(-24 10.8 10.8) scale(0.9)%22 d=%22M12 3.5a3 3 0 0 0-3 3v5.5a3 3 0 0 0 6 0V6.5a3 3 0 0 0-3-3Z M5.5 11.5a6.5 6.5 0 0 0 13 0 M12 18v2.5%22/%3E%3Cpath transform=%22translate(178.1 6.6) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M4 8h3l1.6-2.5h6.8L17 8h3v11H4Z M12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z%22/%3E%3Cpath transform=%22translate(-41.9 6.6) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M4 8h3l1.6-2.5h6.8L17 8h3v11H4Z M12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z%22/%3E%3Cpath transform=%22translate(42.8 77.6) rotate(-24 10.8 10.8) scale(0.9)%22 d=%22M20.5 13V7A3.5 3.5 0 0 0 17 3.5H7A3.5 3.5 0 0 0 3.5 7v10A3.5 3.5 0 0 0 7 20.5h6Z M13 20.5V17a4 4 0 0 1 4-4h3.5 M9 9.5h.01 M15 9.5h.01 M8.5 14c1.1.9 2.3 1.3 3.5 1.2%22/%3E%3Cpath transform=%22translate(99.2 70.8) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 7.5V12l3 2%22/%3E%3Cpath transform=%22translate(155.7 63.6) rotate(-14 10.8 10.8) scale(0.9)%22 d=%22M4.5 12 20 4.5 15 20l-2.6-6.4L4.5 12Z M12.4 13.6 20 4.5%22/%3E%3Cpath transform=%22translate(210.2 65.1) rotate(8 10.8 10.8) scale(0.9)%22 d=%22M12 3.5l1.7 4.8 4.8 1.7-4.8 1.7L12 16.5l-1.7-4.8L5.5 10l4.8-1.7Z M18.5 15l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7Z%22/%3E%3Cpath transform=%22translate(-9.8 65.1) rotate(8 10.8 10.8) scale(0.9)%22 d=%22M12 3.5l1.7 4.8 4.8 1.7-4.8 1.7L12 16.5l-1.7-4.8L5.5 10l4.8-1.7Z M18.5 15l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7Z%22/%3E%3Cpath transform=%22translate(15.0 125.6) rotate(16 13.2 13.2) scale(1.1)%22 d=%22M4 5h16v14H4Z M4 16l4.5-4.5 4 4 2.5-2.5L20 18 M15.5 9.5h.01%22/%3E%3Cpath transform=%22translate(235.0 125.6) rotate(16 13.2 13.2) scale(1.1)%22 d=%22M4 5h16v14H4Z M4 16l4.5-4.5 4 4 2.5-2.5L20 18 M15.5 9.5h.01%22/%3E%3Cpath transform=%22translate(66.0 128.2) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M7.5 5v14l11.5-7Z%22/%3E%3Cpath transform=%22translate(122.0 125.2) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M5 12.5l4.5 4.5L19 7.5%22/%3E%3Cpath transform=%22translate(171.4 119.0) rotate(26 13.2 13.2) scale(1.1)%22 d=%22M14 3.5H6.5v17h11V7Z M14 3.5V7h3.5%22/%3E%3Cpath transform=%22translate(41.7 177.2) rotate(16 12.0 12.0) scale(1.0)%22 d=%22M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4.5 20.5a7.5 7.5 0 0 1 15 0%22/%3E%3Cpath transform=%22translate(94.3 174.8) rotate(-14 13.2 13.2) scale(1.1)%22 d=%22M3.5 7h12v10h-12Z M15.5 10.5 20.5 7.5v9l-5-3%22/%3E%3Cpath transform=%22translate(156.8 171.8) rotate(-6 13.2 13.2) scale(1.1)%22 d=%22M12 3.5a3 3 0 0 0-3 3v5.5a3 3 0 0 0 6 0V6.5a3 3 0 0 0-3-3Z M5.5 11.5a6.5 6.5 0 0 0 13 0 M12 18v2.5%22/%3E%3Cpath transform=%22translate(207.9 177.7) rotate(8 12.0 12.0) scale(1.0)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(-12.1 177.7) rotate(8 12.0 12.0) scale(1.0)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px, #0c1317; }
  [data-fundo="rabiscos-azul"] { --papel: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22220%22 height=%22220%22 viewBox=%220 0 220 220%22%3E%3Cg fill=%22none%22 stroke=%22rgba(140,175,255,.09)%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath transform=%22translate(13.5 10.4) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(233.5 10.4) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(61.6 14.9) rotate(-6 13.2 13.2) scale(1.1)%22 d=%22M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15Z M10 20a2 2 0 0 0 4 0%22/%3E%3Cpath transform=%22translate(118.7 16.8) rotate(-24 10.8 10.8) scale(0.9)%22 d=%22M12 3.5a3 3 0 0 0-3 3v5.5a3 3 0 0 0 6 0V6.5a3 3 0 0 0-3-3Z M5.5 11.5a6.5 6.5 0 0 0 13 0 M12 18v2.5%22/%3E%3Cpath transform=%22translate(178.1 6.6) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M4 8h3l1.6-2.5h6.8L17 8h3v11H4Z M12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z%22/%3E%3Cpath transform=%22translate(-41.9 6.6) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M4 8h3l1.6-2.5h6.8L17 8h3v11H4Z M12 16.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z%22/%3E%3Cpath transform=%22translate(42.8 77.6) rotate(-24 10.8 10.8) scale(0.9)%22 d=%22M20.5 13V7A3.5 3.5 0 0 0 17 3.5H7A3.5 3.5 0 0 0 3.5 7v10A3.5 3.5 0 0 0 7 20.5h6Z M13 20.5V17a4 4 0 0 1 4-4h3.5 M9 9.5h.01 M15 9.5h.01 M8.5 14c1.1.9 2.3 1.3 3.5 1.2%22/%3E%3Cpath transform=%22translate(99.2 70.8) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 7.5V12l3 2%22/%3E%3Cpath transform=%22translate(155.7 63.6) rotate(-14 10.8 10.8) scale(0.9)%22 d=%22M4.5 12 20 4.5 15 20l-2.6-6.4L4.5 12Z M12.4 13.6 20 4.5%22/%3E%3Cpath transform=%22translate(210.2 65.1) rotate(8 10.8 10.8) scale(0.9)%22 d=%22M12 3.5l1.7 4.8 4.8 1.7-4.8 1.7L12 16.5l-1.7-4.8L5.5 10l4.8-1.7Z M18.5 15l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7Z%22/%3E%3Cpath transform=%22translate(-9.8 65.1) rotate(8 10.8 10.8) scale(0.9)%22 d=%22M12 3.5l1.7 4.8 4.8 1.7-4.8 1.7L12 16.5l-1.7-4.8L5.5 10l4.8-1.7Z M18.5 15l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7Z%22/%3E%3Cpath transform=%22translate(15.0 125.6) rotate(16 13.2 13.2) scale(1.1)%22 d=%22M4 5h16v14H4Z M4 16l4.5-4.5 4 4 2.5-2.5L20 18 M15.5 9.5h.01%22/%3E%3Cpath transform=%22translate(235.0 125.6) rotate(16 13.2 13.2) scale(1.1)%22 d=%22M4 5h16v14H4Z M4 16l4.5-4.5 4 4 2.5-2.5L20 18 M15.5 9.5h.01%22/%3E%3Cpath transform=%22translate(66.0 128.2) rotate(26 10.8 10.8) scale(0.9)%22 d=%22M7.5 5v14l11.5-7Z%22/%3E%3Cpath transform=%22translate(122.0 125.2) rotate(-24 13.2 13.2) scale(1.1)%22 d=%22M5 12.5l4.5 4.5L19 7.5%22/%3E%3Cpath transform=%22translate(171.4 119.0) rotate(26 13.2 13.2) scale(1.1)%22 d=%22M14 3.5H6.5v17h11V7Z M14 3.5V7h3.5%22/%3E%3Cpath transform=%22translate(41.7 177.2) rotate(16 12.0 12.0) scale(1.0)%22 d=%22M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4.5 20.5a7.5 7.5 0 0 1 15 0%22/%3E%3Cpath transform=%22translate(94.3 174.8) rotate(-14 13.2 13.2) scale(1.1)%22 d=%22M3.5 7h12v10h-12Z M15.5 10.5 20.5 7.5v9l-5-3%22/%3E%3Cpath transform=%22translate(156.8 171.8) rotate(-6 13.2 13.2) scale(1.1)%22 d=%22M12 3.5a3 3 0 0 0-3 3v5.5a3 3 0 0 0 6 0V6.5a3 3 0 0 0-3-3Z M5.5 11.5a6.5 6.5 0 0 0 13 0 M12 18v2.5%22/%3E%3Cpath transform=%22translate(207.9 177.7) rotate(8 12.0 12.0) scale(1.0)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3Cpath transform=%22translate(-12.1 177.7) rotate(8 12.0 12.0) scale(1.0)%22 d=%22M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.4-.2-3.4-.7L4 19.5l1.3-3.7A7.2 7.2 0 0 1 4 11.5C4 7.4 7.6 4 12 4s8 3.4 8 7.5Z%22/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px, #0a1122; }
  [data-fundo="ceu"] { --papel: linear-gradient(165deg, #0b1a3a 0%, #1a1238 60%, #26112a 100%); }
  [data-fundo="por-do-sol"] { --papel: linear-gradient(165deg, #34160f 0%, #2e0f24 50%, #1b1035 100%); }
  [data-fundo="menta"] { --papel: linear-gradient(165deg, #062820 0%, #091a30 100%); }
  [data-fundo="pontos"] { --papel: radial-gradient(rgba(255,255,255,.10) 1.2px, transparent 1.6px) 0 0 / 18px 18px, #0b0c10; }
  [data-fundo="areia"] { --papel: #1a1712; }
  [data-fundo="grafite"] { --papel: #141619; }
  [data-fundo="lavanda"] { --papel: #161227; }
}
[data-fundo="foto"] { --papel: linear-gradient(rgba(0, 0, 0, var(--escurecer, .25)), rgba(0, 0, 0, var(--escurecer, .25))), var(--papel-foto) center / cover no-repeat, var(--chat-fundo); }
.chat { background: var(--papel, var(--chat-fundo)); }
.com-papel { --cliente: var(--cliente-papel); }
.com-papel .msg:not(.so-midia):not(.figurinha-msg) { box-shadow: 0 1px 1.5px rgba(0, 0, 0, .13); }
.com-papel .dia { background: color-mix(in srgb, var(--superficie) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--sombra-1); color: var(--texto-2); }
.com-papel .cartao-perfil { background: color-mix(in srgb, var(--superficie) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 26px; margin-top: 14px; box-shadow: var(--sombra-1); }
.com-papel .cartao-perfil .bt { background: var(--superficie-2); }
.chat.com-papel .chat-topo, .chat.com-papel .compor { background: color-mix(in srgb, var(--superficie) 84%, transparent); }
.chat.com-papel .pilula { background: var(--superficie-2); }
.com-papel .chip-opcao, .com-papel .descer { box-shadow: var(--sombra-1); }
.com-papel .carregar-mais { background: color-mix(in srgb, var(--superficie) 85%, transparent); }

/* escolher o fundo */
.grade-amostras { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 10px; margin-top: 12px; }
.item-amostra { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.amostra { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; border: 1px solid var(--linha); background: var(--papel, var(--chat-fundo)); padding: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 10px; transition: transform .12s, box-shadow .15s; }
@media (hover: hover) { .amostra:hover { transform: translateY(-1px); box-shadow: var(--sombra-2); } }
.amostra.ativa { box-shadow: 0 0 0 2px var(--superficie), 0 0 0 4px var(--acento); border-color: transparent; }
.mini-balao { display: block; height: 15px; border-radius: 8px; background: var(--cliente); width: 72%; }
.mini-balao.eu { background: var(--eu); align-self: flex-end; width: 58%; }
.com-papel .mini-balao.ele { box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.marca-amostra { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--acento); color: #fff; display: grid; place-items: center; }
.marca-amostra svg.ic { width: 14px; height: 14px; stroke-width: 2.6; }
.nome-amostra { font-size: 12.5px; font-weight: 600; color: var(--texto-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cartao.aparencia { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.previa-fundo { border-radius: 20px; border: 1px solid var(--linha); background: var(--papel, var(--chat-fundo)); min-height: 360px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; position: sticky; top: 20px; overflow: hidden; }
.previa-fundo .msg { font-size: 14.5px; max-width: 88%; }
.previa-fundo .dia { margin-top: 0; }
.sub-aparencia { margin-top: 22px !important; }
.linha-foto-fundo { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.faixa-escurecer { width: 100%; accent-color: var(--acento); }
label.rotulo.linha-escurecer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.linha-escurecer b { color: var(--texto); font-variant-numeric: tabular-nums; }
.modal-fundo { width: min(560px, 100%); }
@media (max-width: 820px) {
  .cartao.aparencia { grid-template-columns: 1fr; }
  .previa-fundo { min-height: 230px; position: static; }
  .grade-amostras { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .nome-amostra { font-size: 11.5px; }
}

/* ---------- áudio traduzido com a sua voz ---------- */
.sub-voz { margin: -2px 0 14px !important; font-size: 14px; }
.idiomas-voz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.idiomas-voz button { border: 1.5px solid var(--linha-forte); background: transparent; border-radius: 16px; padding: 10px 4px 9px; font-size: 13px; font-weight: 650; color: var(--texto-2); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .15s, background .15s, transform .12s; }
.idiomas-voz button.ativo { border-color: var(--acento); background: var(--acento-suave); color: var(--acento-texto); }
.idiomas-voz button:active { transform: scale(.96); }
.idiomas-voz button:disabled { opacity: .55; }
.idiomas-voz .bandeira, .amostras-voz .bandeira { font-size: 22px; line-height: 1; }
.amostras-voz .bandeira { font-size: 16px; }
.falar-voz { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 6px; text-align: center; }
.falar-voz b { font-size: 16.5px; display: inline-flex; gap: 6px; align-items: baseline; }
.falar-voz .ajuda { margin: 0; max-width: 300px; }
.bt-falar { width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--acento); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 32px color-mix(in srgb, var(--acento) 38%, transparent); transition: transform .12s; }
.bt-falar svg.ic { width: 38px; height: 38px; }
.bt-falar:active { transform: scale(.94); }
.bt-falar.gravando { flex: none; height: 88px; padding: 0; background: var(--perigo); animation: onda-gravando 1.4s ease-out infinite; }
.bt-falar.gravando svg.ic { width: 30px; height: 30px; fill: currentColor; }
@keyframes onda-gravando { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--perigo) 50%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
.bola-voz { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #d97706 18%, var(--superficie)); color: #d97706; }
.bola-voz svg.ic { width: 34px; height: 34px; }
.tempo-gravando { font-variant-numeric: tabular-nums; color: var(--perigo); font-weight: 700; }
.passos-voz { list-style: none; padding: 0; margin: 22px 4px 8px; display: grid; gap: 14px; }
.passos-voz li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--texto-3); }
.passos-voz .marca { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--linha-forte); flex: none; }
.passos-voz li.feito { color: var(--texto-2); }
.passos-voz li.feito .marca { border-color: var(--acento); background: var(--acento); color: #fff; }
.passos-voz li.feito .marca svg.ic { width: 14px; height: 14px; stroke-width: 3; }
.passos-voz li.agora { color: var(--texto); font-weight: 650; }
.passos-voz li.agora .marca { border-color: var(--acento); border-top-color: transparent; animation: gira-voz .8s linear infinite; }
@keyframes gira-voz { to { transform: rotate(360deg); } }
.texto-voz { resize: vertical; min-height: 66px; line-height: 1.45; }
.tocador-prev { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--acento-suave); margin-top: 14px; transition: opacity .2s; }
.tocador-prev.velho { opacity: .45; }
.tocador-prev .bt-icone { background: var(--acento); color: #fff; border-radius: 50%; width: 42px; height: 42px; flex: none; }
.tocador-prev .bt-icone svg.ic { fill: currentColor; }
.trilha-prev { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--acento) 22%, transparent); overflow: hidden; }
.trilha-prev .enchido { display: block; height: 100%; background: var(--acento); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s linear; }
.tempo-prev { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--acento-texto); font-weight: 650; min-width: 34px; text-align: right; }
.erro-voz { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--alerta); color: var(--alerta-texto); font-size: 14px; line-height: 1.4; }
.nota-voz { font-size: 12.5px !important; color: var(--texto-3) !important; margin: 8px 2px 0 !important; }
.modal .acoes.voz { justify-content: space-between; align-items: center; }
.modal .acoes.voz .link { border: 0; background: none; color: var(--acento-texto); font-weight: 650; font-size: 14px; padding: 8px 2px; }
.texto-ler { background: var(--superficie-2); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.55; color: var(--texto); max-height: 170px; overflow-y: auto; margin-bottom: 12px; }
.gravar-amostra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gravar-amostra .gravando { flex: 1 1 100%; padding: 0; height: 32px; }
.lista-amostras { display: grid; gap: 6px; margin-top: 10px; }
.amostra-voz { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--superficie-2); font-size: 14px; }
.amostra-voz > svg.ic { width: 16px; height: 16px; color: var(--acento-texto); }
.amostra-voz span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amostra-voz small { color: var(--texto-3); font-variant-numeric: tabular-nums; }
.consentimento { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--texto-2); margin-top: 14px; line-height: 1.4; }
.consentimento input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--acento); flex: none; }
.amostras-voz { display: flex; flex-wrap: wrap; gap: 6px; }
.linha-voz { flex-wrap: wrap; }
.linha-voz select { flex: 1 1 200px; min-width: 0; }
.linha-voz .bt { white-space: nowrap; }
.amostras-voz .bt { gap: 6px; }
.transcricao.traduzida .original-voz { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 12.5px; opacity: .78; }
.transcricao.traduzida .original-voz b { font-weight: 650; }

/* ---------- painel do contato ---------- */
.painel { background: var(--superficie); border-left: 1px solid var(--linha); overflow-y: auto; padding: calc(12px + var(--topo-seguro)) 18px calc(24px + var(--base-segura)); }
.painel .topo { display: flex; align-items: center; justify-content: space-between; margin: 0 -6px 4px; }
.painel .topo h3 { margin: 0; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--texto); }
.perfil { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 0 16px; border-bottom: 1px solid var(--linha); }
.perfil .avatar { margin-bottom: 10px; box-shadow: var(--sombra-2); }
.perfil .avatar.com-foto { cursor: zoom-in; }
.perfil h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.perfil .tel { color: var(--texto-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.perfil .apelido { color: var(--texto-3); font-size: 13.5px; }
.painel h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.galeria .foto { width: 100%; aspect-ratio: 1; border-radius: 8px; }
.dados { margin-top: 10px; }
.acoes-painel { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.galeria + .ajuda, #galeria .ajuda { margin: 0; }
.galeria .foto .mais { border-radius: inherit; font-size: 20px; }
.linha-dado { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 7px 0; color: var(--texto-2); border-bottom: 1px solid var(--linha); }
.linha-dado:last-child { border-bottom: 0; }
.linha-dado b { color: var(--texto); font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.registro { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.registro li { font-size: 13px; border: 1px solid var(--linha); border-radius: 12px; padding: 9px 11px; background: var(--superficie-2); }
.registro li .q { display: flex; justify-content: space-between; color: var(--texto-3); font-size: 12px; margin-bottom: 3px; }
.registro li .t { white-space: pre-wrap; overflow-wrap: anywhere; }
.res-enviada { color: var(--acento-texto); font-weight: 700; }
.res-passou, .res-limite { color: #b07c0c; font-weight: 700; }
.res-erro { color: var(--perigo); font-weight: 700; }
.res-sugerida { color: var(--ia-texto); font-weight: 700; }

/* ---------- ajustes ---------- */
.ajustes { grid-column: 2 / -1; overflow-y: auto; background: var(--fundo); }
.casca.nos-ajustes .lista { display: none; }
.ajustes .dentro { max-width: 820px; margin: 0 auto; padding: calc(24px + var(--topo-seguro)) clamp(14px, 4vw, 32px) calc(60px + var(--base-segura)); }
.titulo-ajustes { display: flex; align-items: center; gap: 8px; }
.linha-adicionar { display: flex; gap: 8px; margin-top: 10px; }
.espaco-baixo { margin-bottom: 14px; }
.espaco-cima { margin-top: 10px; }
.acoes-direita { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; flex-wrap: wrap; }
textarea.campo.instrucoes { min-height: 320px; font-size: 14px; }
.registro li.clicavel { cursor: pointer; }
@media (hover: hover) { .registro li.clicavel:hover { border-color: var(--linha-forte); } }
.ajustes h1 { font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin: 0; }
.abas { display: flex; gap: 6px; margin: 18px 0 20px; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--superficie-3); padding: 8px 14px 8px 11px; border-radius: 999px; font-weight: 600; color: var(--texto-2); white-space: nowrap; transition: background .15s, color .15s; }
.abas button.ativo { background: var(--texto); color: var(--superficie); }
.abas .ic-aba { display: grid; place-items: center; }
.abas .ic-aba svg.ic { width: 17px; height: 17px; }
.abas .txt-aba b { font-weight: inherit; }
.abas .txt-aba small { display: none; }
@media (min-width: 821px) {
  .ajustes .dentro { max-width: 1060px; display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 34px; align-items: start; }
  .titulo-ajustes { grid-column: 1 / -1; margin-bottom: 22px; }
  .voltar-ajustes { display: none; }
  .abas { flex-direction: column; gap: 2px; margin: 0; overflow: visible; position: sticky; top: 24px; }
  .abas button { display: flex; gap: 12px; text-align: left; background: transparent; padding: 8px 10px; border-radius: 14px; white-space: normal; }
  .abas button:hover { background: var(--superficie-2); }
  .abas button.ativo { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-1), inset 0 0 0 1px var(--linha); }
  .abas .ic-aba { width: 36px; height: 36px; border-radius: 11px; background: var(--superficie-3); color: var(--texto-2); flex: none; transition: background .15s, color .15s; }
  .abas .ic-aba svg.ic { width: 19px; height: 19px; }
  .abas button.ativo .ic-aba { background: var(--acento); color: #fff; }
  .abas .txt-aba { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .abas .txt-aba b { font-size: 14.5px; font-weight: 650; color: var(--texto); }
  .abas .txt-aba small { display: block; font-size: 12px; font-weight: 500; color: var(--texto-3); }
}
.cartao { background: var(--superficie); border: 1px solid var(--linha); border-radius: 18px; padding: 18px; margin-bottom: 14px; box-shadow: var(--sombra-1); }
.cartao h2 { font-size: 17px; margin: 0 0 4px; }
.num-cartao { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.num-cartao .status { font-size: 13px; color: var(--texto-2); }
.num-cartao .acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.num-sincronia { grid-column: 1 / -1; border-top: 1px solid var(--linha); padding-top: 12px; display: grid; gap: 8px; justify-items: start; }
.num-sincronia .ajuda { margin: 0; }
.barra-sincronia { width: 100%; height: 6px; border-radius: 3px; overflow: hidden; background: var(--superficie-3); }
.barra-sincronia i { display: block; height: 100%; border-radius: 3px; background: var(--acento); transition: width .3s; }
.num-edicao { grid-column: 1 / -1; border-top: 1px solid var(--linha); padding-top: 4px; }
.linha-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.cores { display: flex; gap: 10px; }
.cores button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--cor); }
.cores button.ativo { box-shadow: 0 0 0 2px var(--superficie), 0 0 0 4px var(--texto); }
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.interruptor input { width: 50px; height: 30px; appearance: none; background: var(--linha-forte); border-radius: 15px; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.interruptor input:checked { background: var(--acento); }
.interruptor input:checked::after { transform: translateX(20px); }
.estado-chave { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 10px; }
.estado-chave svg.ic { width: 16px; height: 16px; }
.estado-chave.ok { background: var(--acento-suave); color: var(--acento-texto); }
.estado-chave.falta { background: var(--alerta); color: var(--alerta-texto); }
.teste-ia { display: grid; gap: 8px; }
.teste-ia .resp { white-space: pre-wrap; border-radius: 12px; padding: 10px 12px; background: var(--ia); border: 1px solid var(--ia-borda); }
.teste-ia .resp.passou { background: var(--alerta); border-color: var(--alerta-borda); }

/* ---------- janelas ---------- */
.fundo-modal { position: fixed; inset: 0; background: rgba(8, 12, 10, .5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: surge .15s ease-out; }
.modal { width: min(440px, 100%); background: var(--superficie); border-radius: 22px; padding: 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); max-height: 92vh; overflow-y: auto; }
.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal p { color: var(--texto-2); margin: 0 0 12px; }
.modal .acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.qr { display: grid; place-items: center; min-height: 280px; background: #fff; border-radius: 14px; margin: 10px 0; border: 1px solid var(--linha); }
.qr img { width: 264px; height: 264px; image-rendering: pixelated; }
.qr .carregando-qr { color: #5d655f; display: inline-flex; gap: 6px; align-items: center; }
.passos { color: var(--texto-2); padding-left: 20px; margin: 8px 0 0; font-size: 14px; }
@keyframes surge { from { opacity: 0; } }

/* visor de fotos */
.visor { position: fixed; inset: 0; background: rgba(0, 0, 0, .97); z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: surge .15s ease-out; user-select: none; }
.visor .barra { display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--topo-seguro)) 12px 10px; color: #fff; }
.visor .barra .t { flex: 1; min-width: 0; font-size: 14px; }
.visor .barra .t b { display: block; font-size: 15px; }
.visor .barra .t span { opacity: .7; font-size: 13px; }
.visor .bt-icone { color: #fff; }
@media (hover: hover) { .visor .bt-icone:hover { background: rgba(255, 255, 255, .12); color: #fff; } }
.visor .palco { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: none; overflow: hidden; }
.visor .palco img, .visor .palco video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; transition: filter .25s; will-change: transform; }
.visor .palco img.animando { transition: filter .25s, transform .22s ease; }
.visor.ampliada .seta { display: none; }
.visor .palco img.previa { width: min(560px, 100%); filter: blur(10px); }
.visor .palco video { background: #000; }
.visor .falha { color: rgba(255, 255, 255, .75); max-width: 420px; text-align: center; line-height: 1.45; padding: 0 20px; }
.visor .palco img.so-previa { width: min(560px, 100%); filter: blur(2px); }
.visor .nota-previa { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); color: #fff; font-size: 13.5px; line-height: 1.45; text-align: center; background: rgba(0, 0, 0, .62); padding: 9px 14px; border-radius: 12px; }
.visor a.bt-icone { text-decoration: none; }
.visor .seta { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255, 255, 255, .12); }
.visor .seta.esq { left: 14px; }
.visor .seta.dir { right: 14px; }
.visor .contador { text-align: center; color: rgba(255, 255, 255, .7); font-size: 13px; padding: 10px 0 calc(14px + var(--base-segura)); font-variant-numeric: tabular-nums; }

/* avisos rápidos */
#avisos { position: fixed; left: 50%; bottom: calc(90px + var(--base-segura)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 70; pointer-events: none; align-items: center; }
.aviso { background: var(--texto); color: var(--superficie); padding: 11px 16px; border-radius: 14px; box-shadow: var(--sombra-2); font-size: 14px; max-width: min(520px, 92vw); animation: sobe .2s ease-out; }
.aviso.erro { background: var(--perigo); color: #fff; }
@keyframes sobe { from { transform: translateY(8px); opacity: 0; } }
.carregando::after { content: ""; position: fixed; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--linha); border-top-color: var(--acento); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- celular com cara de app ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body, button, a, input, textarea, select, .item, .nav { touch-action: manipulation; }
.itens, .ajustes, .painel, .modal, .grade-figurinhas { overscroll-behavior: contain; }
@media (pointer: coarse) {
  /* Campos com 16px: o iPhone não dá zoom sozinho ao tocar para digitar */
  input, textarea, select, .campo, .entrada, .busca input { font-size: 16px; }
  /* Botões, lista e barras não selecionam texto nem abrem o menu de segurar */
  button, .item, .nav, .trilho, .chat-topo, .lista header, .filtros, .abas, .menu, .folha, .opcoes, .compor, .faixa, .dia, .cartao-perfil, .amostra, .visor .barra, img, svg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .msg img, .foto, .figurinha { -webkit-touch-callout: none; }
  /* Resposta ao toque */
  .item:active { background: var(--superficie-2); }
  .bt-icone:active { background: var(--superficie-3); color: var(--texto); }
  .bt:active, .filtro:active, .chip-opcao:active, .atalho-vazio:active, .num-bolinha:active { transform: scale(.96); }
  .nav:active .fundo-nav { background: var(--superficie-3); }
  .opcao:active .bola { transform: scale(.9); }
  .item-menu:active { background: var(--superficie-2); }
}
/* No app da tela inicial com o tema claro: faixa escura atrás do relógio e da bateria (que ficam brancos) */
@media (display-mode: standalone) and (prefers-color-scheme: light) {
  body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: #111; z-index: 80; pointer-events: none; }
}

/* ---------- telas menores ---------- */
.veu { display: none; }
@media (max-width: 1180px) {
  .casca, .casca.com-painel { grid-template-columns: 76px 340px minmax(0, 1fr); }
  .casca.com-painel .veu { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .32); animation: surge .2s ease-out; }
  .casca.com-painel .painel { position: fixed; right: 0; top: 0; bottom: 0; width: min(380px, 100vw); z-index: 40; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); animation: entra .2s ease-out; }
  @keyframes entra { from { transform: translateX(30px); opacity: 0; } }
}
@media (max-width: 820px) {
  /* Folga no topo (relógio, câmera) e no fim (barrinha do iPhone); com o teclado aberto, a folga de baixo some */
  :root { --topo-seguro: calc(env(safe-area-inset-top, 0px) + 6px); --base-segura: max(env(safe-area-inset-bottom, 0px), 12px); }
  html.teclado { --base-segura: 6px; }
  /* A página nunca "pula" nem estica: só as listas rolam */
  html, body { position: fixed; inset: 0; overflow: hidden; }
  .casca { height: var(--altura-tela, 100dvh); transform: translateY(var(--topo-tela, 0px)); }
  .casca, .casca.com-painel { grid-template-columns: minmax(0, 1fr); }
  .lista, .chat, .ajustes { min-width: 0; }
  .lista { border-right: 0; background: var(--chat-fundo); }
  .trilho { display: none; }
  .casca .chat, .casca .ajustes { display: none; }
  .casca.no-chat .lista { display: none; }
  .casca.no-chat .chat { display: flex; }
  .casca.nos-ajustes .lista { display: none; }
  .casca.nos-ajustes .ajustes { display: block; grid-column: 1; }
  .voltar { display: inline-grid; margin-left: -6px; }
  .so-largo { display: none !important; }
  .msg { max-width: 84%; }
  .chat-topo { padding-left: 6px; gap: 2px; }
  .modo-ia button { padding: 6px 8px; }
  .modo-ia button span { display: none; }
  .num-cartao { grid-template-columns: auto minmax(0, 1fr); }
  .num-cartao .acoes { grid-column: 1 / -1; justify-content: flex-start; }
  .linha-form { grid-template-columns: 1fr; }
  .visor .seta { display: none; }
  .bt-ia .rot { display: none; }
  .bt-ia { padding: 0 7px 0 9px; }
  .fundo-modal { place-items: end center; padding: 0; }
  .modal { width: 100%; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + var(--base-segura)); max-height: 92dvh; animation: sobe-modal .22s ease-out; }
  @keyframes sobe-modal { from { transform: translateY(40px); opacity: .4; } }
  .linha-foto { flex-direction: column; align-items: flex-start; }
  .casca.com-painel .painel { width: 100vw; }
}
@media (min-width: 821px) { .so-estreito { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- grupos ---------- */
.item .previa .quem-previa { font-weight: 600; color: var(--texto-2); flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.item.nao-lida .previa .quem-previa { color: var(--texto); }
.msg .autor.quem { color: var(--cor-autor); font-size: 13px; gap: 8px; align-items: baseline; }
.msg .autor.quem .tel-autor { color: var(--texto-3); font-weight: 500; font-size: 11.5px; }

/* ---------- ChatGPT (fixado no topo) ---------- */
.avatar.gpt { background: linear-gradient(145deg, #19c37d, #0b8f6a 55%, #10735a); }
.avatar.gpt svg.ic { width: 52%; height: 52%; stroke-width: 1.8; }
.item.fixado .fixo { flex: none; color: var(--texto-3); display: grid; place-items: center; }
.item.fixado .fixo svg.ic { width: 15px; height: 15px; transform: rotate(35deg); }
.item.fixado .previa .quem-previa { font-weight: 600; flex: none; }
.gpt-vazio .l { max-width: 300px; margin: 0 auto; }
.msg.gpt { white-space: normal; max-width: min(680px, 88%); padding-bottom: 6px; }
.msg.gpt.cortada { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--alerta-texto) 40%, transparent); }
.msg.gpt .aviso-cortada { font-size: 12.5px; color: var(--alerta-texto); margin-top: 6px; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 8px; }
.md ul, .md ol { margin: 4px 0 8px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md li::marker { color: var(--texto-3); }
.md .md-titulo { font-weight: 700; font-size: 16.5px; margin: 12px 0 6px; letter-spacing: -.01em; }
.md strong { font-weight: 680; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: color-mix(in srgb, var(--texto) 9%, transparent); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.md blockquote { margin: 6px 0 8px; padding: 2px 0 2px 10px; border-left: 3px solid var(--linha-forte); color: var(--texto-2); }
.md hr { border: 0; border-top: 1px solid var(--linha-forte); margin: 10px 0; }
.md a { color: var(--acento-texto); }
.md-bloco { margin: 6px 0 10px; border-radius: 12px; overflow: hidden; background: #16171b; color: #e8e8ea; }
.md-bloco-topo { display: flex; align-items: center; justify-content: space-between; padding: 5px 6px 5px 12px; font-size: 12px; color: #a3a3ab; background: #222329; }
.md-bloco-topo .bt-mini { color: #c9c9d0; }
.md-bloco pre { margin: 0; padding: 10px 12px; overflow-x: auto; font-size: 13px; line-height: 1.45; white-space: pre; }
.md-bloco code { background: none; padding: 0; font-size: inherit; color: inherit; }
.md-tabela { overflow-x: auto; margin: 6px 0 10px; }
.md-tabela table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.md-tabela th, .md-tabela td { border: 1px solid var(--linha-forte); padding: 5px 9px; text-align: left; vertical-align: top; }
.md-tabela th { background: color-mix(in srgb, var(--texto) 6%, transparent); font-weight: 650; }
.pe-gpt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.hora-gpt { font-size: 11px; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.bt-mini { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 3px 6px; margin-left: -6px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--texto-3); }
.bt-mini svg.ic { width: 14px; height: 14px; }
@media (hover: hover) { .bt-mini:hover { background: color-mix(in srgb, var(--texto) 8%, transparent); color: var(--texto); } }
.digitando-gpt { display: inline-flex; gap: 4px; padding: 6px 2px; }
.digitando-gpt i { width: 7px; height: 7px; border-radius: 50%; background: var(--texto-3); animation: pulinho 1.1s infinite ease-in-out; }
.digitando-gpt i:nth-child(2) { animation-delay: .15s; }
.digitando-gpt i:nth-child(3) { animation-delay: .3s; }
@keyframes pulinho { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.erro-gpt { align-self: center; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 12px; padding: 8px 12px; border-radius: 14px; background: var(--alerta); color: var(--alerta-texto); font-size: 13.5px; animation: sobe .2s ease-out; }
.gpt-compor .enviar.parar { background: var(--texto); color: var(--superficie); }
.gpt-compor .enviar.parar svg.ic { fill: currentColor; width: 16px; height: 16px; }
.gpt-compor .bt-icone.gravando-gpt { background: var(--perigo); color: #fff; animation: onda-gravando 1.4s ease-out infinite; }
.gpt-compor .bt-icone.gravando-gpt svg.ic { fill: currentColor; width: 16px; height: 16px; }

/* Gravação: a bolinha cresce com a sua voz (mostra que o microfone está pegando) */
.gravando .bola { transform: scale(calc(1 + var(--nivel, 0) * .9)); box-shadow: 0 0 0 calc(var(--nivel, 0) * 9px) color-mix(in srgb, var(--perigo) 22%, transparent); transition: transform .08s linear, box-shadow .08s linear; }
.gravando-compor .gravando { gap: 12px; }
/* Áudio gravado esperando: ouvir, apagar ou enviar */
.compor.audio-guardado { align-items: center; }
.compor.audio-guardado .tocador-prev { flex: 1; margin-top: 0; min-width: 0; }

/* Criar música (ElevenLabs) */
.musica-modal { width: min(500px, 100%); }
.abas-musica { display: flex; gap: 4px; padding: 4px; margin: 6px 0 14px; border-radius: 14px; background: var(--acento-suave); }
.abas-musica button { flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 8px 10px; font-weight: 650; font-size: 14px; color: var(--texto-2); }
.abas-musica button.ativo { background: var(--superficie); color: var(--texto); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.letra-musica { margin-top: 14px; }
.letra-musica summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--acento-texto); padding: 4px 0; }
.letra-musica .campo { margin-top: 8px; }
.musica-modal form > .campo:last-of-type { margin-top: 14px; }
.nota-musica { margin-top: 12px; }
.nota-minha-voz { margin: 6px 0 0; }
.aviso-musica { margin: 8px 0 0; color: var(--texto-2); }
.bola-musica { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #c026d3; background: color-mix(in srgb, #c026d3 15%, var(--superficie)); }
.bola-musica svg.ic { width: 22px; height: 22px; }
.bola-musica.compondo { animation: pulso-musica 1.4s ease-in-out infinite; }
@keyframes pulso-musica { 50% { transform: scale(1.08); background: color-mix(in srgb, #c026d3 28%, var(--superficie)); } }
.vazio-musica { display: grid; justify-items: center; gap: 6px; padding: 18px 0 4px; }
.vazio-musica .bola-musica { width: 64px; height: 64px; }
.vazio-musica .bola-musica svg.ic { width: 30px; height: 30px; }
.lista-musicas { display: grid; gap: 10px; }
.musica-item { border: 1px solid var(--linha-forte); border-radius: 16px; padding: 12px; }
.musica-item .tocador-prev { margin-top: 10px; }
.cab-musica { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cab-musica .txt { display: grid; min-width: 0; }
.titulo-musica { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: text; }
.cab-musica .sub { font-size: 12.5px; color: var(--texto-2); }
.renomear-musica { padding: 6px 10px; font-weight: 650; }
.compondo-musica { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--texto-2); }
.ondinhas { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; flex: none; }
.ondinhas i { width: 4px; height: 100%; border-radius: 2px; background: #c026d3; animation: ondinha 1s ease-in-out infinite; transform-origin: bottom; }
.ondinhas i:nth-child(2) { animation-delay: -.25s; }
.ondinhas i:nth-child(3) { animation-delay: -.5s; }
.ondinhas i:nth-child(4) { animation-delay: -.75s; }
@keyframes ondinha { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.acoes-musica { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.acoes-musica .empurra { flex: 1; }
.acoes-musica a.bt-icone { color: inherit; }
.acoes-musica .bt-icone.confirmar { background: var(--perigo); color: #fff; border-radius: 50%; }
.musica-item.erro .erro-fig { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .ondinhas i, .bola-musica.compondo { animation: none; } }
/* "+" com 10 opções: 5 por linha no computador, 4 no celular */
.grade-opcoes { grid-template-columns: repeat(5, 1fr); max-width: 560px; }
@media (max-width: 560px) { .grade-opcoes { grid-template-columns: repeat(4, 1fr); gap: 12px 0; } .grade-opcoes .opcao { font-size: 12px; } }

/* ---------- responder uma mensagem (citação) ---------- */
:root { --cit-contato: #9b51e0; }
@media (prefers-color-scheme: dark) { :root { --cit-contato: #c89bff; } }
.citacao { display: flex; align-items: stretch; gap: 8px; width: 100%; min-width: 0; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: color-mix(in srgb, var(--texto) 6%, transparent); border-radius: 10px; padding: 6px 8px 6px 11px; position: relative; overflow: hidden; white-space: normal; }
.citacao::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cor-cit); }
.citacao .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.citacao b { font-size: 13px; font-weight: 700; color: var(--cor-cit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citacao .txt { font-size: 13.5px; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.citacao .mini { flex: none; width: 42px; height: 42px; margin: -2px -4px -2px 0; border-radius: 7px; background-size: cover; background-position: center; background-color: var(--superficie-3); }
.citacao .mini.fig { background-size: contain; background-repeat: no-repeat; background-color: transparent; }
@media (hover: hover) { .msg .citacao:hover { background: color-mix(in srgb, var(--texto) 10%, transparent); } }
.msg .citacao { margin-bottom: 5px; min-width: min(220px, 60vw); }
.msg.mim .citacao { background: rgba(255, 255, 255, .16); }
.msg.mim .citacao::before { background: rgba(255, 255, 255, .9); }
.msg.mim .citacao b { color: #fff; }
.msg.mim .citacao .txt { color: rgba(255, 255, 255, .84); }
@media (hover: hover) { .msg.mim .citacao:hover { background: rgba(255, 255, 255, .24); } }
.msg.com-midia .citacao { margin: 6px 6px 6px; width: calc(100% - 12px); }
.msg.figurinha-msg .citacao { background: var(--cliente); margin-bottom: 4px; }
.msg.mim.figurinha-msg .citacao { background: var(--eu); }

/* botão de responder ao passar o mouse (computador) */
.msg .bt-resp, .msg .bt-mais { display: none; }
@media (hover: hover) and (pointer: fine) {
  .msg .bt-mais { display: grid; place-items: center; position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%; padding: 0; z-index: 3;
    background: var(--fundo-msg); color: var(--texto-2); box-shadow: -8px 0 10px 2px var(--fundo-msg); opacity: 0; transform: scale(.8); transition: opacity .12s, transform .12s; cursor: pointer; }
  .msg .bt-resp ~ .bt-mais { right: 35px; }
  .msg.mim .bt-mais { color: #fff; }
  .msg.so-midia .bt-mais, .msg.figurinha-msg .bt-mais { background: rgba(0, 0, 0, .45); color: #fff; box-shadow: none; }
  .msg .bt-mais svg.ic { width: 17px; height: 17px; }
  .msg:hover .bt-mais, .msg .bt-mais:focus-visible, .msg.com-menu .bt-mais { opacity: 1; transform: none; }
  .msg .bt-mais:hover { filter: brightness(1.15); }
  .msg .bt-resp { display: grid; place-items: center; position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%; padding: 0; z-index: 3;
    background: var(--fundo-msg); color: var(--texto-2); box-shadow: -8px 0 10px 2px var(--fundo-msg); opacity: 0; transform: scale(.8); transition: opacity .12s, transform .12s; cursor: pointer; }
  .msg.mim .bt-resp { color: #fff; }
  .msg.so-midia .bt-resp, .msg.figurinha-msg .bt-resp { background: rgba(0, 0, 0, .45); color: #fff; box-shadow: none; }
  .msg .bt-resp svg.ic { width: 17px; height: 17px; }
  .msg:hover .bt-resp, .msg .bt-resp:focus-visible { opacity: 1; transform: none; }
  .msg .bt-resp:hover { filter: brightness(1.15); }
}

/* arrastar para responder (celular) */
@media (pointer: coarse) { .mensagens .msg { touch-action: pan-y; } }

/* deslizar para a esquerda na conversa (celular): volta para a lista, que aparece por baixo */
@media (pointer: coarse) and (max-width: 820px) { .chat, .mensagens, .chat-topo { touch-action: pan-y; } }
@media (max-width: 820px) {
  .casca.voltando .lista { display: flex; grid-area: 1 / 1; pointer-events: none; }
  .casca.voltando .chat { grid-area: 1 / 1; z-index: 5; box-shadow: 0 0 34px rgba(0, 0, 0, .35); will-change: transform; }
  .chat.deslizando { transition: transform .2s cubic-bezier(.2, .8, .3, 1); }
}

.msg.arrastando { transition: none; will-change: transform; }
.msg:not(.arrastando) { transition: transform .22s cubic-bezier(.2, .8, .3, 1); }
.seta-resp { position: fixed; z-index: 30; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: var(--superficie-3); color: var(--texto-2); opacity: 0; transform: scale(.5); transition: background .12s, color .12s; }
.seta-resp.pronta { background: var(--acento); color: #fff; }
.seta-resp svg.ic { width: 17px; height: 17px; }

/* balão citado: pisca quando você toca na citação */
.msg.destaque { animation: destaque 1.6s ease-out; }
@keyframes destaque { 0%, 30% { box-shadow: 0 0 0 3px var(--acento), 0 0 0 9px color-mix(in srgb, var(--acento) 30%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* faixa "Respondendo a…" em cima da caixa de mensagem */
#area-resposta:empty { display: none; }
.faixa-resposta { display: flex; align-items: center; gap: 8px; padding: 8px max(10px, calc((100% - 960px) / 2)) 0; background: color-mix(in srgb, var(--chat-fundo) 90%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: sobe-resposta .18s ease-out; }
.chat.com-papel .faixa-resposta { background: color-mix(in srgb, var(--superficie) 84%, transparent); }
.faixa-resposta .ic-resp { flex: none; width: 40px; display: grid; place-items: center; color: var(--acento-texto); }
.faixa-resposta .ic-resp svg.ic { width: 22px; height: 22px; }
.faixa-resposta .citacao { flex: 1; background: var(--superficie-2); padding: 7px 10px 7px 13px; }
.faixa-resposta .citacao .txt { -webkit-line-clamp: 1; }
.faixa-resposta .bt-icone { flex: none; width: 40px; height: 40px; color: var(--texto-2); }
@keyframes sobe-resposta { from { opacity: 0; transform: translateY(10px); } }
.menu-msg { width: 268px; transform-origin: top left; }
@media (prefers-reduced-motion: reduce) {
  .msg.destaque { animation-duration: .01s; }
  .faixa-resposta { animation: none; }
  .msg:not(.arrastando) { transition: none; }
}

/* Segurar o áudio no celular abre o menu (Transcrever): sem a seleção e o balão do sistema por cima */
.msg .audio { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- funções do WhatsApp ---------- */
/* Segurar no celular abre o menu: sem a seleção e o balão do sistema por cima */
@media (pointer: coarse) {
  .itens .item, .mensagens .msg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
.item { transition: background .12s, transform .16s; }
.item.apertando { transform: scale(.98); background: var(--superficie-2); }
.item.com-menu { background: var(--superficie-2); }
.item .sinal { display: inline-grid; place-items: center; flex: none; color: var(--texto-3); }
.item .sinal svg.ic { width: 16px; height: 16px; }
.selo.mudo { background: var(--texto-3); }
.selo.bolinha { min-width: 12px; width: 12px; height: 12px; padding: 0; }

/* linha "Arquivadas" no topo da lista e a vista das arquivadas */
.linha-arquivadas { padding-top: 6px; padding-bottom: 6px; }
.linha-arquivadas .ic-arquivo { width: 50px; height: 34px; display: grid; place-items: center; color: var(--texto-2); flex: none; }
.linha-arquivadas .ic-arquivo svg.ic { width: 21px; height: 21px; }
.linha-arquivadas .nome { font-weight: 600; font-size: 15.5px; }
.linha-arquivadas .conta-arq { font-size: 13px; color: var(--texto-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.lista header.topo-arquivo { padding-left: 6px; gap: 2px; }
.lista header.topo-arquivo h2 { font-size: 22px; }
.ajuda-arquivo { font-size: 12.5px; color: var(--texto-3); text-align: center; margin: 2px 14px 8px; line-height: 1.35; }

/* menus: título, item vermelho, link */
.cab-menu { padding: 5px 10px 6px; font-size: 12.5px; font-weight: 650; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.item-menu { color: inherit; text-decoration: none; }
.item-menu.perigo { color: var(--perigo); }
.item-menu.perigo .ic-modo { color: var(--perigo); background: color-mix(in srgb, var(--perigo) 12%, transparent); }
.ic-modo.ligado { background: #f2b200; color: #fff; }
.ic-modo.ligado svg.ic path { fill: currentColor; }
.ic-modo.whats { background: #25d366; color: #fff; }
.menu-conversa, .menu-reacoes { width: 250px; transform-origin: top left; }
.menu-ligar { width: 290px; }
.item-menu.so-ver { cursor: default; }
@media (hover: hover) { .item-menu.so-ver:hover { background: transparent; } }
.emoji-grande { font-size: 24px; width: 34px; text-align: center; flex: none; line-height: 1; }

/* barra de reações no menu da mensagem */
.barra-reacoes { display: flex; justify-content: space-between; padding: 2px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--linha); }
.reagir { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; padding: 0; font-size: 25px; line-height: 1; display: grid; place-items: center; transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), background .12s; }
.reagir:active { transform: scale(1.3); }
@media (hover: hover) { .reagir:hover { transform: scale(1.2); background: var(--superficie-2); } }
.reagir.ativo { background: var(--acento-suave); }
.msg.com-menu { box-shadow: 0 0 0 2px color-mix(in srgb, var(--acento) 60%, transparent); }

/* reações embaixo do balão */
.linha-reacoes { display: flex; padding: 0 10px; margin-top: -7px; position: relative; z-index: 1; animation: entra-reacao .2s cubic-bezier(.3, 1.5, .5, 1); }
.linha-reacoes.mim { justify-content: flex-end; }
.linha-reacoes + .msg { margin-top: 8px; }
@keyframes entra-reacao { from { transform: scale(.6); opacity: 0; } }
.reacoes { display: inline-flex; align-items: center; height: 26px; padding: 0 8px 0 6px; border-radius: 13px; border: 2px solid var(--chat-fundo); background: var(--superficie-2); color: var(--texto-2); font-size: 15px; line-height: 1; box-shadow: var(--sombra-1); }
.chat.com-papel .reacoes { border-color: transparent; }
.reacoes .e + .e { margin-left: 1px; }
.reacoes .n { font-size: 12px; font-weight: 650; margin-left: 4px; font-variant-numeric: tabular-nums; }
.reacoes.minha { background: var(--acento-suave); color: var(--acento-texto); }

/* rodapé: estrela e "Editada" */
.msg .rodape .editada { margin-right: 2px; }
.msg .rodape svg.fav { width: 11px; height: 11px; margin-right: 1px; }
svg.ic.fav path { fill: currentColor; }
.msg.favorita .espaco { width: 66px; }
.msg.mim.favorita .espaco { width: 84px; }
.msg.editada .espaco { width: 100px; }
.msg.mim.editada .espaco { width: 118px; }
.msg.editada.favorita .espaco { width: 116px; }
.msg.mim.editada.favorita .espaco { width: 134px; }
.msg.ia.favorita .espaco { width: 98px; }

/* chamada recebida */
.msg.chamada-msg { padding: 8px 12px 8px 9px; }
.chamada { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; padding: 0 0 14px; text-align: left; font: inherit; min-width: 196px; white-space: normal; }
.chamada:disabled { opacity: 1; cursor: default; }
.ic-chamada { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, #25d366 18%, transparent); color: #179848; }
.ic-chamada svg.ic { width: 19px; height: 19px; }
.chamada.recusada .ic-chamada { background: color-mix(in srgb, var(--perigo) 14%, transparent); color: var(--perigo); }
.chamada .t { display: flex; flex-direction: column; line-height: 1.25; }
.chamada b { font-size: 15px; font-weight: 620; }
.chamada small { font-size: 12.5px; color: var(--texto-2); }

/* busca dentro da conversa (no lugar do topo) */
.chat-topo.buscando { gap: 2px; }
.chat-topo .busca-chat { flex: 1; min-width: 0; margin: 0 2px; }
.chat-topo .busca-chat input { padding-top: 8px; padding-bottom: 8px; }
.conta-busca { font-size: 13px; color: var(--texto-2); white-space: nowrap; font-variant-numeric: tabular-nums; padding: 0 4px; }
.conta-busca:empty { display: none; }
.conta-busca.nada { color: var(--perigo); }
mark { background: #ffe14d; color: #111; border-radius: 3px; padding: 0 1px; }
.chat-topo .quem b .mudo-topo { width: 14px; height: 14px; color: var(--texto-3); vertical-align: -2px; margin-left: 5px; }

/* janelas: apagar, encaminhar, favoritas */
.modal .acoes.empilhadas { flex-direction: column; align-items: stretch; }
.modal .acoes.empilhadas .bt { width: 100%; padding: 12px 14px; }
.modal .acoes.empilhadas .bt.perigo { border-color: color-mix(in srgb, var(--perigo) 35%, var(--linha)); }
.modal-enc .busca { margin: 4px 0 8px; }
.resumo-enc { background: var(--superficie-2); border-radius: 12px; padding: 8px 12px; font-size: 14px; color: var(--texto) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.escolhidas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.escolhidas:empty { display: none; }
.chip-enc { background: var(--acento-suave); color: var(--acento-texto); border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-enc { max-height: min(46vh, 380px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; overscroll-behavior: contain; }
.linha-enc { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; padding: 7px 8px; border-radius: 12px; text-align: left; width: 100%; color: inherit; }
@media (hover: hover) { .linha-enc:hover { background: var(--superficie-2); } }
.linha-enc .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.linha-enc b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-enc small { color: var(--texto-3); font-size: 12.5px; }
.marca-enc { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linha-forte); display: grid; place-items: center; flex: none; transition: background .12s, border-color .12s; }
.linha-enc.sel .marca-enc { background: var(--acento); border-color: var(--acento); color: #fff; }
.marca-enc svg.ic { width: 15px; height: 15px; stroke-width: 2.4; }
.lista-fav { display: flex; flex-direction: column; gap: 2px; max-height: 56vh; overflow-y: auto; margin: 0 -8px; overscroll-behavior: contain; }
.linha-fav { display: flex; align-items: center; gap: 4px; }
.ir-fav { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; border: 0; background: transparent; text-align: left; padding: 8px; border-radius: 12px; color: inherit; }
@media (hover: hover) { .ir-fav:hover { background: var(--superficie-2); } }
.quem-fav { font-size: 12.5px; color: var(--texto-3); font-weight: 600; }
.txt-fav { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linha-fav .bt-icone { color: #e0a100; }
@media (prefers-reduced-motion: reduce) { .linha-reacoes { animation: none; } .reagir { transition: none; } }

/* ---------- Você (perfil) ---------- */
.avatar.enorme { --tam: 148px; }
.bt-voce { border: 0; background: none; padding: 4px; border-radius: 50%; flex: none; display: grid; }
.bt-voce .avatar { --tam: 32px; }
.bt-voce .avatar .marca, .nav-voce .avatar .marca { width: 12px; height: 12px; }
.nav-voce .avatar { --tam: 28px; }
.ajustes .dentro.voce { display: block; max-width: 560px; }
.topo-voce { display: flex; align-items: center; gap: 10px; position: sticky; top: calc(6px + var(--topo-seguro)); z-index: 2; }
.topo-voce .empurra { flex: 1; }
.vidro, .pilula-conta { background: var(--superficie); border: 1px solid var(--linha); color: var(--texto); box-shadow: var(--sombra-1); }
.pilula-conta { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 16px; border-radius: 999px; font-weight: 650; max-width: 60%; white-space: nowrap; overflow: hidden; }
.pilula-conta svg.ic { width: 18px; height: 18px; }
.heroi { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 22px; }
.foto-voce { display: flex; flex-direction: column; align-items: center; }
.balao-recado { position: relative; z-index: 1; max-width: min(280px, 80vw); margin-bottom: -14px; border: 1px solid var(--linha); background: var(--superficie); color: var(--texto); border-radius: 20px; padding: 9px 16px; font-weight: 600; box-shadow: var(--sombra-2); overflow-wrap: anywhere; }
.balao-recado::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -5px; background: inherit; border: solid var(--linha); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.bt-foto { position: relative; border: 0; background: none; padding: 0; border-radius: 50%; transition: transform .12s; }
.bt-foto:active { transform: scale(.97); }
.selo-camera { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acento); color: #fff; border: 3px solid var(--superficie); }
.selo-camera svg.ic { width: 18px; height: 18px; }
.ajustes h1.nome-voce { font-size: 27px; margin: 12px 0 0; overflow-wrap: anywhere; }
.sub-voce { color: var(--texto-2); font-size: 16px; margin-bottom: 8px; }
.acoes-voce { display: flex; gap: 10px; margin-top: 10px; width: min(360px, 100%); }
.acoes-voce .bt { flex: 1; border-radius: 999px; padding: 12px 14px; }
.acoes-voce .bt svg.ic { width: 19px; height: 19px; }
.grupo-voce { background: var(--superficie); border: 1px solid var(--linha); border-radius: 22px; margin-bottom: 16px; overflow: hidden; box-shadow: var(--sombra-1); }
.linha-voce { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 14px 8px 18px; border: 0; background: none; color: inherit; text-align: left; font-size: 16px; position: relative; }
.linha-voce + .linha-voce::before { content: ""; position: absolute; left: 54px; right: 0; top: 0; border-top: 1px solid var(--linha); }
.linha-voce .t { flex: 1; min-width: 0; }
.linha-voce .extra { color: var(--texto-3); font-size: 15px; white-space: nowrap; }
.linha-voce .seta { width: 18px; height: 18px; color: var(--texto-3); }
.linha-voce:active { background: var(--superficie-2); }
@media (hover: hover) { .linha-voce:hover { background: var(--superficie-2); } }
.cab-voce { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cab-voce h2 { margin: 0; }
.campo-contado { position: relative; }
.campo-contado .campo { padding-right: 46px; font-size: 16px; }
.campo-contado .contador { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--texto-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.recados { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.recados button { border: 1px solid var(--linha); background: var(--superficie-2); color: inherit; border-radius: 999px; padding: 8px 13px; font-size: 14px; }
.foto-editar { display: grid; place-items: center; }
.so-copiar { display: flex; align-items: center; justify-content: space-between; color: var(--texto-2); text-align: left; font-size: 16px; }
.so-copiar svg.ic { width: 18px; height: 18px; }
.area-recorte { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 18px; background: #000; touch-action: none; cursor: grab; }
.img-recorte { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.mascara-recorte { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 400px rgba(0, 0, 0, .55); outline: 2px solid rgba(255, 255, 255, .85); outline-offset: -2px; pointer-events: none; }
.zoom-recorte { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); margin: 14px auto 0; color: var(--texto-3); }
.zoom-recorte input { flex: 1; accent-color: var(--acento); }
.compartilhar { text-align: center; }
.cartao-qr { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 10px; }
.cartao-qr b { font-size: 18px; margin-top: 6px; }
.cartao-qr small { color: var(--texto-2); font-size: 14px; }
.tela-qr { width: min(230px, 70vw); height: auto; border-radius: 18px; margin-top: 10px; border: 1px solid var(--linha); image-rendering: pixelated; }
.lista-voce .avatar { flex: none; }
.item-voce { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.item-voce .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-voce small { color: var(--texto-3); }
.lista-voce .bt-icone.perigo { color: var(--perigo); }
.ver-foto { background: rgba(0, 0, 0, .9); cursor: zoom-out; }
.ver-foto img { max-width: min(94vw, 640px); max-height: 86vh; border-radius: 14px; }
@media (max-width: 820px) { .ver-foto { place-items: center; } }

/* ---------- vídeo redondo ---------- */
.redondo { position: relative; display: block; width: min(240px, 62vw); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; overflow: hidden; background: var(--superficie-3) center / cover no-repeat; color: #fff; cursor: pointer; isolation: isolate; transition: transform .22s; -webkit-touch-callout: none; }
.redondo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
.redondo.carregou video { opacity: 1; }
.redondo.com-som { transform: scale(1.03); }
.anel { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; --p: 0; background: conic-gradient(var(--acento) calc(var(--p) * 360deg), rgba(255, 255, 255, .22) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); }
.redondo .anel { opacity: 0; transition: opacity .2s; }
.redondo.com-som .anel { opacity: 1; }
.pe-redondo { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.pe-redondo svg.ic { width: 17px; height: 17px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.ic-mudo { display: grid; }
.redondo.sem { display: grid; place-items: center; cursor: default; }
.aviso-redondo { font-size: 13px; text-align: center; padding: 0 28px; text-shadow: 0 1px 4px #000; }
.msg.redondo-msg .rodape { display: inline-flex; float: right; background: color-mix(in srgb, var(--superficie) 72%, transparent); color: var(--texto-2); padding: 3px 9px; border-radius: 99px; margin-top: 5px; }
.bt-camera { touch-action: none; }
.bt-camera.apertando { transform: scale(.88); color: var(--acento-texto); }
.fundo-redondo { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px; touch-action: none; animation: surge .18s ease-out; user-select: none; -webkit-user-select: none; }
.topo-redondo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-variant-numeric: tabular-nums; }
.ponto-gravando { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; animation: pisca 1.2s infinite; }
.roda-redonda { position: relative; width: min(320px, 78vw, 50vh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #1c1c1f; transition: transform .15s, opacity .15s; }
.previa-redondo { width: 100%; height: 100%; object-fit: cover; display: block; }
.previa-redondo.espelho { transform: scaleX(-1); }
.fundo-redondo.cancelando .roda-redonda { transform: scale(.86); opacity: .5; }
.dica-redondo { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; text-align: center; }
.botoes-redondo { display: flex; align-items: center; gap: 30px; }
.botoes-redondo .bt-icone { width: 54px; height: 54px; background: rgba(255, 255, 255, .14); color: #fff; }
.botoes-redondo .enviar-redondo { width: 66px; height: 66px; background: var(--acento); }

/* ---------- céu estrelado ---------- */
[data-fundo="estrelado"] { --papel: radial-gradient(1px 1px at 18% 22%, rgba(255,255,255,.8), transparent 1.5px), radial-gradient(1px 1px at 72% 14%, rgba(255,255,255,.6), transparent 1.5px), radial-gradient(1.2px 1.2px at 46% 52%, rgba(255,255,255,.7), transparent 1.8px), radial-gradient(1px 1px at 84% 66%, rgba(255,255,255,.55), transparent 1.5px), radial-gradient(1px 1px at 28% 82%, rgba(255,255,255,.6), transparent 1.5px), linear-gradient(180deg, #03050d 0%, #070c1c 55%, #0c1430 100%); }
.chat[data-fundo="estrelado"] { --papel: linear-gradient(180deg, #03050d 0%, #070c1c 55%, #0c1430 100%); isolation: isolate; }
.ceu-vivo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.chat[data-fundo="estrelado"] .nada, .chat[data-fundo="estrelado"] .nada h2 { color: #dfe6ff; }
.chat[data-fundo="estrelado"] .nada p { color: #a9b4d6; }
.chat[data-fundo="estrelado"] .figurinha-msg:not(.redondo-msg) .rodape { color: #c3cbe6; }

/* ---------- tela inicial: lista de conversas ---------- */
:root { --lido-balao: #7fe3ff; --brilho-topo: rgba(44, 107, 237, .10); --risco: rgba(20, 20, 40, .075); --vidro: rgba(120, 120, 140, .11); --vidro-borda: rgba(20, 20, 40, .06); --selo-luz: 0 2px 8px rgba(44, 107, 237, .28); }
@media (prefers-color-scheme: dark) {
  :root { --brilho-topo: rgba(61, 123, 242, .20); --risco: rgba(255, 255, 255, .07); --vidro: rgba(255, 255, 255, .075); --vidro-borda: rgba(255, 255, 255, .07); --selo-luz: 0 2px 12px rgba(61, 123, 242, .5); }
}
.lista { position: relative; isolation: isolate; }
.lista::before { content: ""; position: absolute; inset: 0 0 auto; height: 300px; z-index: -1; pointer-events: none; background: radial-gradient(110% 100% at 12% 0%, var(--brilho-topo), transparent 70%); }

.lista header:not(.topo-arquivo) { padding: calc(14px + var(--topo-seguro)) 16px 8px 20px; gap: 10px; }
.lista header:not(.topo-arquivo) h2 { font-size: 31px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.lista header:not(.topo-arquivo) > .bt-icone { width: 40px; height: 40px; background: var(--vidro); box-shadow: inset 0 0 0 1px var(--vidro-borda); color: var(--texto); }
.lista header:not(.topo-arquivo) > .bt-icone svg.ic { width: 20px; height: 20px; }
.lista header .bt-voce { padding: 0; }
.lista header .bt-voce .avatar { --tam: 40px; box-shadow: 0 0 0 1.5px var(--chat-fundo), 0 0 0 3px color-mix(in srgb, var(--acento) 70%, transparent); }
.lista header .bt-voce .avatar .marca { border-color: var(--chat-fundo); }
.lista header .bt-voce:active, .lista header > .bt-icone:active { transform: scale(.93); }

.lista > .busca { margin: 6px 16px 4px; }
.lista > .busca svg { left: 14px; }
.lista > .busca input { padding: 11px 14px 11px 42px; border-radius: 15px; background: var(--vidro); border: 1px solid var(--vidro-borda); }
.lista > .busca input:focus { background: var(--superficie); border-color: var(--acento); }

.lista .filtros { gap: 8px; padding: 10px 16px 12px; }
.lista .filtro { display: inline-flex; align-items: center; gap: 7px; height: 35px; padding: 0 15px; font-size: 14px; font-weight: 600; background: var(--vidro); box-shadow: inset 0 0 0 1px var(--vidro-borda); }
.lista .filtro.ativo { background: linear-gradient(180deg, #4a88f8, #2a68ea); color: #fff; box-shadow: var(--selo-luz); }
.lista .filtro .n { margin: 0; min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; font-size: 11.5px; }
.lista .filtro.ativo .n { background: rgba(255, 255, 255, .25); }

.lista .itens { padding: 2px 8px calc(20px + var(--base-segura)); }
.lista .item { gap: 14px; padding: 10px 12px; border-radius: 18px; }
.lista .item > .avatar { --tam: 56px; }
.lista .item > .avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); pointer-events: none; }
.lista .item .meio { gap: 4px; }
.lista .item .nome { font-size: 16.5px; font-weight: 640; letter-spacing: -.015em; }
.lista .item .hora { font-size: 12.5px; font-weight: 500; }
.lista .item .previa { font-size: 14.5px; gap: 6px; color: var(--texto-2); }
.lista .item .previa svg.ic-midia { width: 17px; height: 17px; stroke-width: 1.7; color: color-mix(in srgb, var(--acento-texto) 78%, var(--texto-3)); fill: color-mix(in srgb, var(--acento) 20%, transparent); }
.lista .item .previa .tique { color: var(--texto-3); margin-right: -1px; }
.lista .item .previa .tique.entregue { color: var(--texto-2); }
.lista .item .previa .tique.lido { color: var(--lido); }
.lista .item::after { left: 82px; right: 12px; background: var(--risco); opacity: 1; }
.lista .item:last-child::after { display: none; }
.lista .item.nao-lida .nome { font-weight: 760; }
.lista .item.nao-lida .previa { font-weight: 560; }
.lista .item.nao-lida .hora { color: var(--acento-texto); font-weight: 700; }
.lista .selo { min-width: 22px; height: 22px; background: linear-gradient(180deg, #4f8cfa, #2a68ea); box-shadow: var(--selo-luz); font-variant-numeric: tabular-nums; }
.lista .selo.mudo { background: var(--texto-3); box-shadow: none; }
.lista .selo.atencao { background: linear-gradient(180deg, #f6bd4a, #e39a16); box-shadow: none; }
.lista .selo.bolinha { min-width: 12px; width: 12px; height: 12px; }
.lista .chip { border-radius: 99px; padding: 3px 8px; }
.lista .chip.prog { background: color-mix(in srgb, var(--acento) 15%, transparent); color: var(--acento-texto); font-size: 11.5px; padding: 3px 8px; }
.lista .sinal svg.ic, .lista .item.fixado .fixo svg.ic { fill: currentColor; fill-opacity: .28; }

/* ChatGPT: um cartão próprio, separado das pessoas */
.lista .item.fixado { margin: 2px 4px 8px; padding: 11px 8px 11px 11px; gap: 17px; background: linear-gradient(100deg, rgba(25, 195, 125, .15), rgba(25, 195, 125, .045) 60%, rgba(61, 123, 242, .06)); box-shadow: inset 0 0 0 1px rgba(25, 195, 125, .17); }
.lista .item.fixado::after { display: none; }
.lista .item.fixado > .avatar { --tam: 50px; box-shadow: 0 4px 14px rgba(16, 163, 127, .32); }
.lista .linha-arquivadas .ic-arquivo { width: 56px; }
@media (hover: none) { .lista .item:active { background: var(--vidro); } }

/* ---------- vídeo que toca dentro da mensagem ---------- */
.video-msg { cursor: pointer; isolation: isolate; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.video-msg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
.video-msg.carregou video { opacity: 1; }
.video-msg .sobre { background: rgba(0, 0, 0, .16); transition: opacity .2s, background .2s; pointer-events: none; }
.video-msg .sobre .bolha { width: 58px; height: 58px; background: rgba(0, 0, 0, .48); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); position: relative; }
.video-msg .sobre .bolha svg.ic { fill: currentColor; stroke-width: 1.2; }
.video-msg.tocando:not(.esperando) .sobre { opacity: 0; }
.video-msg.esperando .bolha::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; animation: gira-video .8s linear infinite; }
@keyframes gira-video { to { transform: rotate(1turn); } }
.cheia-video { position: absolute; top: 6px; right: 6px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cheia-video svg.ic { width: 18px; height: 18px; stroke-width: 2; }
.cheia-video:active { transform: scale(.92); }
.barra-video { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: none; align-items: center; gap: 10px; padding: 22px 12px 10px; color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); touch-action: none; cursor: pointer; }
.video-msg.comecou .barra-video { display: flex; }
.video-msg.comecou .duracao-video { display: none; }
.msg.so-midia:has(.video-msg.comecou) .rodape { opacity: 0; }
.trilha-video { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .34); }
.trilha-video i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: #fff; }
.trilha-video i::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }

/* ---------- tamanho das mensagens: --tm multiplica tudo (Ajustes → Aparência) ---------- */
:root { --tm: 1; }
.msg { font-size: calc(15px * var(--tm)); line-height: 1.3; padding: calc(5px * var(--tm)) calc(11px * var(--tm)); border-radius: calc(16px * var(--tm)); }
.previa-fundo .msg { font-size: calc(15px * var(--tm)); }
.msg + .msg { margin-top: calc(8px * var(--tm)); }
.msg + .msg.junto { margin-top: 2px; }
.msg.so-midia, .msg.figurinha-msg, .msg.mim.figurinha-msg { padding: 0; }
.msg.com-midia { padding: 0 0 calc(5px * var(--tm)); width: min(calc(290px * var(--tm)), 74vw); }
.msg.com-midia .legenda { padding: calc(5px * var(--tm)) calc(11px * var(--tm)) 0; }
.msg .rodape { font-size: max(9px, calc(10.5px * var(--tm))); right: calc(10px * var(--tm)); bottom: calc(5px * var(--tm)); }
.msg .rodape .tique svg { height: max(9px, calc(11px * var(--tm))); }
.msg.so-midia .rodape { right: 8px; bottom: 8px; }
.msg .espaco { width: max(40px, calc(46px * var(--tm))); }
.msg.mim .espaco { width: max(58px, calc(66px * var(--tm))); }
.msg.ia .espaco { width: max(72px, calc(82px * var(--tm))); }
.msg.favorita .espaco { width: max(56px, calc(62px * var(--tm))); }
.msg.mim.favorita .espaco { width: max(74px, calc(82px * var(--tm))); }
.msg.ia.favorita .espaco { width: max(88px, calc(98px * var(--tm))); }
.msg.editada .espaco { width: max(90px, calc(98px * var(--tm))); }
.msg.mim.editada .espaco { width: max(106px, calc(118px * var(--tm))); }
.msg.editada.favorita .espaco { width: max(104px, calc(114px * var(--tm))); }
.msg.mim.editada.favorita .espaco { width: max(120px, calc(134px * var(--tm))); }
.msg .espaco-linha { height: calc(12px * var(--tm)); }
.msg .autor { font-size: calc(12px * var(--tm)); }
.msg .autor.quem { font-size: calc(12.5px * var(--tm)); }
.msg .foto { width: min(calc(280px * var(--tm)), 72vw); border-radius: calc(16px * var(--tm)); }
.msg.com-midia .foto { width: 100%; border-radius: 0; }
.msg .album .foto { width: 100%; border-radius: 0; }
.msg .figurinha { width: calc(135px * var(--tm)); height: calc(135px * var(--tm)); }
.msg .redondo { width: min(calc(220px * var(--tm)), 66vw); }
.msg .audio { width: min(calc(285px * var(--tm)), 70vw); padding: 1px 0 0; gap: calc(5px * var(--tm)); }
.msg .audio .avatar.a { --tam: calc(42px * var(--tm)); }
.msg .audio .tocar { width: calc(34px * var(--tm)); height: calc(34px * var(--tm)); }
.msg .audio .tocar svg.ic { width: calc(24px * var(--tm)); height: calc(24px * var(--tm)); }
.msg .audio .ondas { height: calc(25px * var(--tm)); }
.msg .audio .meio { gap: 2px; padding-top: calc(4px * var(--tm)); }
.msg .audio .info { font-size: max(9px, calc(10.5px * var(--tm))); }
.msg.mim:has(.corpo > .audio.meu:last-child) .rodape { right: calc(64px * var(--tm)); }
.msg .transcricao { font-size: calc(13.5px * var(--tm)); padding: calc(6px * var(--tm)) calc(9px * var(--tm)); margin-top: 5px; }
.msg .doc { padding: calc(8px * var(--tm)) calc(10px * var(--tm)); }
.msg .doc .ico { width: calc(36px * var(--tm)); height: calc(42px * var(--tm)); }
.msg .doc .t b { font-size: calc(13.5px * var(--tm)); }
.msg .doc .t small { font-size: calc(11.5px * var(--tm)); }
.msg .citacao b { font-size: calc(12.5px * var(--tm)); }
.msg .citacao .txt { font-size: calc(13px * var(--tm)); }
.msg.chamada-msg { padding: calc(6px * var(--tm)) calc(11px * var(--tm)) calc(6px * var(--tm)) calc(8px * var(--tm)); }
.msg .chamada { padding-bottom: calc(11px * var(--tm)); min-width: calc(180px * var(--tm)); }
.msg .chamada b { font-size: calc(14.5px * var(--tm)); }
.msg .chamada small { font-size: calc(12px * var(--tm)); }
.msg.gpt { padding-bottom: 6px; }

.cartao-tamanho { display: grid; gap: 14px; margin-bottom: 16px; }
.linha-tamanho { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.linha-tamanho h2, .linha-tamanho p { margin: 0; }
.linha-tamanho > b { color: var(--acento-texto); font-variant-numeric: tabular-nums; }
.amostra-tamanho { display: flex; flex-direction: column; padding: 14px 12px; min-height: 190px; justify-content: center; border-radius: 16px; background: var(--chat-fundo); box-shadow: inset 0 0 0 1px var(--linha); overflow: hidden; }
.controle-tamanho { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.faixa-tamanho { width: 100%; accent-color: var(--acento); touch-action: none; }
.linha-tamanho .bt { white-space: nowrap; flex: none; }
.bt-letra { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--vidro); box-shadow: inset 0 0 0 1px var(--vidro-borda); font-weight: 700; display: grid; place-items: center; }
.bt-letra.menor { font-size: 14px; }
.bt-letra.maior { font-size: 22px; }
.bt-letra:active { transform: scale(.93); }

/* ---------- janelas com o teclado do iPhone aberto: ficam no espaço que sobra, logo acima dele ---------- */
@media (pointer: coarse) and (max-width: 820px) {
  .fundo-modal { top: var(--topo-tela, 0px); bottom: auto; height: var(--altura-tela, 100dvh); overflow: hidden; }
  .fundo-modal > .modal { max-height: calc(var(--altura-tela, 100dvh) - var(--topo-seguro) - 8px); overscroll-behavior: contain; }
  .teclado .fundo-modal > .modal { padding-bottom: 16px; }
}

/* ---------- GIFs ---------- */
.gif-msg { cursor: pointer; isolation: isolate; -webkit-touch-callout: none; }
.gif-msg video, .gif-msg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; pointer-events: none; }
.gif-msg.carregou video, .gif-msg.carregou img { opacity: 1; }
.selo-gif { position: absolute; left: 8px; bottom: 8px; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: rgba(0, 0, 0, .45); padding: 2px 7px; border-radius: 8px; transition: opacity .2s; pointer-events: none; }
.gif-msg.tocando .selo-gif { opacity: 0; }
.abas-folha { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: color-mix(in srgb, var(--texto) 7%, transparent); margin-right: auto; }
.abas-folha button { border: 0; background: none; color: var(--texto-2); font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 13px; border-radius: 99px; cursor: pointer; }
.abas-folha button.ativo { background: var(--superficie); color: var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.folha.gifs { display: flex; flex-direction: column; min-height: 0; }
.busca-gif { margin: 2px 0 8px; flex: none; }
.corpo-gifs { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; height: min(300px, calc(var(--altura-tela, 100dvh) * .38)); }
.grade-gifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 5px; }
.grade-gifs .gif { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--texto) 8%, transparent); }
.grade-gifs .gif img, .grade-gifs .gif video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pe-gifs { text-align: center; color: var(--texto-2); font-size: 12px; padding: 10px 0; }
.linha-opcao { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; cursor: pointer; }
.linha-opcao span { display: flex; flex-direction: column; }
.linha-opcao input { width: 20px; height: 20px; flex: none; accent-color: var(--destaque, #2b6cf0); }

.temas-gif, .idiomas-audio { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; flex: none; touch-action: pan-x; }
.temas-gif::-webkit-scrollbar, .idiomas-audio::-webkit-scrollbar { display: none; }
.temas-gif:not(:empty) { margin-bottom: 8px; }
.temas-gif button, .idiomas-audio button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linha, color-mix(in srgb, var(--texto) 12%, transparent)); background: var(--superficie); color: var(--texto); font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.temas-gif button.ativo, .idiomas-audio button.ativo { background: #2b6cf0; border-color: #2b6cf0; color: #fff; }
/* ---------- idioma do áudio, na barra de gravação ---------- */
.compor.gravando-compor, .compor.audio-guardado { flex-wrap: wrap; }
.idiomas-audio { flex: 0 0 100%; padding: 2px 4px 8px; }
.compor.gravando-compor .gravando { min-width: 0; }
@media (max-width: 480px) { .idiomas-audio { gap: 4px; } .idiomas-audio button { padding: 7px 8px; font-size: 13px; gap: 4px; flex: 1 0 auto; justify-content: center; } }
.modal-voz .erro-voz + .bt { margin-top: 10px; width: 100%; justify-content: center; }
.enviar-gif { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.fav-gif { position: absolute; right: 0; top: 0; width: 38px; height: 38px; border: 0; padding: 0; background: none; display: grid; place-items: center; cursor: pointer; color: #fff; }
.fav-gif::before { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .42); }
.fav-gif svg.ic { position: relative; width: 16px; height: 16px; }
.fav-gif.ativo { color: #ffc93c; }
.fav-gif.ativo svg.ic { fill: currentColor; }
.faixa-msg { position: fixed; z-index: 75; top: calc(var(--topo-tela, 0px) + env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 20px)); display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--linha); border-radius: 18px; background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-2); text-align: left; cursor: pointer; animation: desce-faixa .2s ease-out; }
.faixa-msg .txt { min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.faixa-msg .txt > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faixa-msg .txt > span { color: var(--texto-2); }
@keyframes desce-faixa { from { opacity: 0; margin-top: -14px; } }

/* ---------- meu status ---------- */
.foto-status { position: relative; flex: none; border-radius: 50%; padding: 3px; }
.foto-status.tem { box-shadow: 0 0 0 2.5px #22b573; }
.foto-status .avatar { --tam: 46px; }
.mais-status { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #22b573; color: #fff; border: 2px solid var(--superficie); }
.mais-status svg.ic { width: 12px; height: 12px; }
.modal-status .abas-folha { margin: 8px 0 12px; }
.area-status { display: grid; gap: 12px; justify-items: stretch; }
.quadro-status { min-height: 230px; border-radius: 18px; display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 12px; padding: 18px; overflow: hidden; color: #fff; }
.quadro-status.midia { background: #000; padding: 0; }
.quadro-status.midia img, .quadro-status.midia video { max-width: 100%; max-height: 42vh; display: block; }
.quadro-status.escolher, .quadro-status.som { background: var(--superficie-2, rgba(127, 127, 127, .12)); color: var(--texto); border: 1px dashed var(--linha); font: inherit; font-weight: 600; cursor: pointer; width: 100%; }
.quadro-status.som { cursor: default; min-height: 130px; }
.quadro-status.som audio { width: 100%; }
.quadro-status.escolher svg.ic { width: 26px; height: 26px; }
.texto-status { width: 100%; border: 0; background: none; color: #fff; text-align: center; font-size: 22px; line-height: 1.3; resize: none; outline: none; max-height: 220px; }
.texto-status::placeholder { color: rgba(255, 255, 255, .65); }
.cores-status, .fontes-status { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cores-status button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.cores-status button.ativa { border-color: var(--texto); }
.fontes-status button { border: 1px solid var(--linha); background: none; color: var(--texto); border-radius: 99px; padding: 8px 13px; font-size: 14px; cursor: pointer; }
.fontes-status button.ativa { background: var(--acento); border-color: var(--acento); color: #fff; }
.linha-st { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.linha-st .meio { flex: 1; min-width: 0; display: grid; }
.linha-st .meio b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.linha-st .meio small { color: var(--texto-2); }
.linha-st .meio small.erro-st { color: var(--perigo); }
.mini-status { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; color: #fff; }
.modal-status .ajuda { margin-top: 12px; }

/* ---------- dados do contato (novo) ---------- */
.painel .topo { position: sticky; top: calc(-12px - var(--topo-seguro)); z-index: 3; margin: calc(-12px - var(--topo-seguro)) -18px 0; padding: calc(10px + var(--topo-seguro)) 12px 8px; background: color-mix(in srgb, var(--superficie) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.painel .topo .vaga { width: 40px; }
.painel .perfil { border-bottom: 0; padding: 12px 0 14px; }
.painel .perfil h2 { font-size: 24px; font-weight: 750; overflow-wrap: anywhere; }
.perfil .ultima { color: var(--texto-3); font-size: 13.5px; margin-top: 4px; }
.acoes-contato { display: flex; gap: 8px; }
.atalho-c { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 5px; padding: 12px 4px 10px; border: 0; border-radius: 16px; background: var(--superficie-2); color: var(--acento-texto); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: transform .12s; }
.atalho-c:active { transform: scale(.96); }
.atalho-c svg.ic { width: 22px; height: 22px; }
.atalho-c.ativo { background: var(--acento-suave); }
.painel h3 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--texto); margin: 24px 2px 10px; }
.painel .topo h3 { margin: 0; }
.painel .grupo-voce { margin-bottom: 0; border-color: transparent; background: var(--superficie-2); box-shadow: none; border-radius: 18px; }
.painel .grupo-voce.caixa { padding: 12px 14px; }
.painel .linha-voce { min-height: 50px; font-size: 15px; }
.painel .linha-voce > svg.ic:first-child { color: var(--texto-2); flex: none; }
.painel .linha-voce:active { background: var(--superficie-3); }
label.linha-voce.interruptor { justify-content: flex-start; cursor: pointer; padding-right: 14px; }
.painel .campo { background: var(--superficie); }
.painel .campo.notas { border: 0; background: none; padding: 2px 0; resize: vertical; min-height: 64px; border-radius: 0; box-shadow: none; }
.painel .caixa > .ajuda { margin: 6px 0 0; font-size: 12.5px; }
.painel .caixa > .rotulo { margin-top: 0; }
.blocos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bloco-dado { display: grid; gap: 1px; align-content: start; padding: 13px 14px; border-radius: 16px; background: var(--superficie-2); min-width: 0; }
.bloco-dado b { font-size: 21px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bloco-dado span { font-size: 13px; color: var(--texto-2); }
.bloco-dado small { font-size: 12px; color: var(--texto-3); margin-top: 3px; }
.dica-hora { display: flex; align-items: center; gap: 6px; margin: 9px 2px 0; }
.dica-hora svg.ic { width: 15px; height: 15px; }
.abas-midia { display: flex; gap: 3px; padding: 3px; border-radius: 14px; background: var(--superficie-2); margin-bottom: 10px; }
.abas-midia button { flex: 1; min-width: 0; border: 0; border-radius: 11px; background: none; padding: 8px 2px; font-size: 13.5px; font-weight: 600; color: var(--texto-2); cursor: pointer; }
.abas-midia button small { margin-left: 4px; font-weight: 500; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.abas-midia button.ativo { background: var(--superficie-3); color: var(--texto); }
.galeria .foto { position: relative; overflow: hidden; border-radius: 12px; }
.galeria .foto .capa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.galeria .foto .data-capa { position: absolute; left: 8px; bottom: 7px; font-size: 11.5px; color: rgba(255, 255, 255, .75); }
.galeria .foto .bolha { transform: scale(.72); }
.linha-voce.arq { text-decoration: none; min-height: 58px; }
.linha-voce .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-voce .t small { display: block; color: var(--texto-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copiavel { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; font-size: inherit; }
.copiavel svg.ic { width: 15px; height: 15px; color: var(--texto-3); }
.ia-fez { margin-top: 22px; }
.ia-fez summary { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.ia-fez summary::-webkit-details-marker { display: none; }
.ia-fez summary span { flex: 1; }
.ia-fez summary small { color: var(--texto-3); }
.ia-fez summary svg.ic { width: 20px; height: 20px; color: var(--ia-texto); }
.ia-fez .registro { margin-top: 12px; }
.ia-fez .registro li { background: var(--superficie); }

/* ---------- ajustes (novo) ---------- */
.ajustes .ic-aba { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--cor-aba, var(--acento)); color: #fff; }
.ajustes .ic-aba svg.ic { width: 18px; height: 18px; }
.secao-abas h4 { margin: 0 0 7px; padding-left: 16px; font-size: 13px; font-weight: 600; color: var(--texto-3); }
.itens-abas button .seta { width: 17px; height: 17px; color: var(--texto-3); flex: none; }
.itens-abas .extra { color: var(--texto-3); font-size: 14.5px; white-space: nowrap; }
.cab-aba { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cab-aba .ic-aba { width: 46px; height: 46px; border-radius: 14px; }
.cab-aba .ic-aba svg.ic { width: 25px; height: 25px; }
.cab-aba h2 { margin: 0; font-size: 21px; letter-spacing: -.015em; }
.cab-aba p { margin: 1px 0 0; color: var(--texto-2); font-size: 14px; }
.corpo-ajustes .cartao { border-radius: 20px; }
.num-cartao { display: block; padding: 0; overflow: hidden; }
.num-cab { display: flex; align-items: center; gap: 14px; padding: 16px; }
.num-cab .avatar { --tam: 52px; flex: none; }
.num-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.num-txt b { font-size: 17px; }
.num-txt span { font-size: 13.5px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selo-num { flex: none; font-size: 12.5px; font-weight: 650; padding: 5px 10px; border-radius: 99px; background: var(--alerta); color: var(--alerta-texto); }
.selo-num.ok { background: color-mix(in srgb, #22b573 18%, transparent); color: color-mix(in srgb, #22b573 80%, var(--texto)); }
.num-linhas { border-top: 1px solid var(--linha); }
.num-linhas .linha-voce { min-height: 60px; }
.num-linhas .linha-voce > svg.ic:first-child { color: var(--acento-texto); flex: none; }
.num-linhas > * + .linha-voce, .num-linhas > .num-sincronia + .linha-voce { border-top: 1px solid var(--linha); }
.num-linhas .linha-voce + .linha-voce::before { display: none; }
.num-linhas .linha-voce .t small { white-space: normal; }
.num-linhas .num-sincronia { border: 0; padding: 0; display: block; }
.num-linhas .num-sincronia .barra-sincronia { margin: 0 16px 14px; width: auto; }
.num-linhas .linha-voce:disabled { opacity: .75; }
.num-linhas svg.girando { animation: gira 1.2s linear infinite; }
.num-edicao { padding: 8px 16px 16px; }
@media (min-width: 821px) {
  .secao-abas + .secao-abas { margin-top: 16px; }
  .secao-abas h4 { padding-left: 10px; }
  .itens-abas { display: grid; gap: 2px; }
  .itens-abas .seta, .itens-abas .extra { display: none; }
  .abas button.ativo .ic-aba, .abas .ic-aba { background: var(--cor-aba); color: #fff; width: 32px; height: 32px; border-radius: 9px; }
  .abas .ic-aba svg.ic { width: 18px; height: 18px; }
}
@media (max-width: 820px) {
  .ajustes h1 { font-size: 24px; }
  .abas { display: none; }
  .abas.inicio { display: block; overflow: visible; margin: 16px 0 0; }
  .secao-abas { margin-bottom: 22px; }
  .itens-abas { background: var(--superficie); border: 1px solid var(--linha); border-radius: 20px; overflow: hidden; }
  .abas.inicio button { display: flex; width: 100%; align-items: center; gap: 14px; text-align: left; border: 0; border-radius: 0; background: none; color: var(--texto); padding: 11px 14px; min-height: 60px; white-space: normal; position: relative; }
  .abas.inicio button:active { background: var(--superficie-2); }
  .itens-abas button + button::before { content: ""; position: absolute; left: 60px; right: 0; top: 0; border-top: 1px solid var(--linha); }
  .abas.inicio .txt-aba { flex: 1; min-width: 0; display: grid; }
  .abas.inicio .txt-aba b { font-size: 16px; font-weight: 600; }
  .abas.inicio .txt-aba small { display: block; font-size: 12.5px; font-weight: 400; color: var(--texto-3); }
  .abas.inicio .cartao-eu { background: var(--superficie); border: 1px solid var(--linha); border-radius: 20px; padding: 14px; margin-bottom: 22px; }
  .cartao-eu .avatar { --tam: 56px; flex: none; }
  .cartao-eu .t { flex: 1; min-width: 0; display: grid; }
  .cartao-eu .t b { font-size: 18px; }
  .cartao-eu .t small { color: var(--texto-2); font-size: 14px; font-weight: 400; }
  .cartao-eu .seta { width: 18px; height: 18px; color: var(--texto-3); }
  .cab-aba { display: none; }
  .corpo-ajustes { margin-top: 16px; }
}

/* segurar a própria foto abre o menu: nada de seleção nem prévia do iPhone */
.bt-voce, .nav-voce { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: transform .16s; }
.bt-voce img, .nav-voce img { -webkit-touch-callout: none; pointer-events: none; }
.lista header .bt-voce.apertando { transform: scale(.9); }

/* Puxar todo o histórico (painel do contato) */
.puxar-tudo { display: block; }
.puxar-tudo .linha-voce { width: 100%; }
.puxar-tudo .barra-sincronia { margin: 0 16px 12px; width: auto; }
.barra-solta i { width: 35%; animation: barra-solta 1.3s ease-in-out infinite; }
@keyframes barra-solta { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .barra-solta i { animation: none; width: 100%; opacity: .5; } }

/* Ligação pelo CRM no menu de ligar */
.ic-modo.crm { background: var(--acento); color: #fff; }

/* Reações rápidas: 6 + o "+" cabem no menu da mensagem */
.menu-msg .barra-reacoes .reagir { width: 35px; height: 35px; font-size: 23px; }
.reagir.mais-reacoes { background: var(--superficie-2); color: var(--texto-2); font-size: 20px; }
.reagir.mais-reacoes svg { width: 20px; height: 20px; }
.reagir.mais-reacoes.ativo { background: var(--acento-suave); }
.modal-reacoes { width: min(440px, calc(100vw - 20px)); max-height: min(86dvh, 720px); overflow: hidden; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.modal-reacoes h2 { margin: 0; }
.modal-reacoes > p { margin: 0; color: var(--texto-2); font-size: 14px; }
.modal-reacoes .acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-reacoes .acoes .espaco { flex: 1; }
.modal-reacoes .acoes .bt svg { width: 16px; height: 16px; }
.vagas-reacao { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.vagas-reacao .vaga { aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: var(--superficie-2); font-size: 26px; line-height: 1; display: grid; place-items: center; padding: 0; transition: transform .14s, border-color .12s, background .12s; }
.vagas-reacao .vaga.ativa { border-color: var(--acento); background: var(--acento-suave); transform: scale(1.06); }
.digitar-emoji { font-size: 15px; }
.grade-emojis { overflow-y: auto; overscroll-behavior: contain; min-height: 120px; margin: 0 -6px; padding: 0 6px; }
.grade-emojis h3 { margin: 10px 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); }
.grade-emojis .emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; }
.grade-emojis .reagir { width: 100%; height: 42px; font-size: 26px; border-radius: 12px; }
