/* =============================================================================
   APP DE CELULAR DO CHAT INTERNO (Home 1.33.0, 30/09/2026)
   Desenho do WhatsApp com as cores da Home (decisão do Renato em 30/09/2026, depois de ver o piloto
   no verde do WhatsApp): azul da marca, #195DA8 no topo e #0093FF no destaque, com o logo no topo.
   Segue o tema do celular: claro ou escuro. Sobre o azul de destaque o conteúdo é escuro (#041018),
   como nos botões do sistema: branco sobre #0093FF dá 3,2:1, pouco para letra pequena.
   Sem framework e sem etapa de build, como o resto do sistema.
   ============================================================================= */

:root {
  --topo: #195DA8;
  --topo-txt: #ffffff;
  --topo-sub: rgba(255, 255, 255, .82);
  --fundo: #ffffff;
  --txt: #0d1a30;
  --txt2: #5d7394;
  --linha: #e6ecf3;
  --marca: #0093FF;
  --marca-txt: #195DA8;
  --sobre-marca: #041018;
  --online: #22c55e;
  --selo: #0093FF;
  --selo-txt: #041018;
  --chip: #eef3f9;
  --chip-txt: #4a5f7d;
  --chip-on: #d6ebff;
  --chip-on-txt: #195DA8;
  --conversa: #e8eef6;
  --papel: url(/m/papel-claro.svg);
  --entra: #ffffff;
  --sai: #d1e8ff;
  --meta: #5d7394;
  --lido: #0093FF;
  --dia: #ffffff;
  --dia-txt: #4a5f7d;
  --campo: #ffffff;
  --icone: #4a5f7d;
  --sombra: 0 1px .5px rgba(8, 18, 35, .13);
  --citacao-entra: #f2f5f9;
  --citacao-sai: #bcdaf7;
  --avatar: #d5dde8;
  --avatar-ico: #ffffff;
  --folha: #ffffff;
  --vidro: rgba(8, 18, 35, .4);
  --erro: #ea0038;
  --realce: rgba(0, 147, 255, .22);
  --nao-lidas: #dcebfa;
  --nao-lidas-txt: #4a5f7d;
  --link: #0a63b8;
  color-scheme: light;
}
/* Escuro: os mesmos tons do sistema da Home no computador (tenants/hometelecom/assets/theme.json). */
@media (prefers-color-scheme: dark) {
  :root {
    --topo: #0d1a30;
    --topo-txt: #e6edf7;
    --topo-sub: #9fb0c8;
    --fundo: #081223;
    --txt: #e6edf7;
    --txt2: #9fb0c8;
    --linha: #13233f;
    --marca-txt: #5cb8ff;
    --chip: #13233f;
    --chip-txt: #9fb0c8;
    --chip-on: #0c2f57;
    --chip-on-txt: #5cb8ff;
    --conversa: #060e1b;
    --papel: url(/m/papel-escuro.svg);
    --entra: #13233f;
    --sai: #124781;
    --meta: rgba(230, 237, 247, .62);
    --lido: #7fd4ff;
    --dia: #0d1a30;
    --dia-txt: #9fb0c8;
    --campo: #13233f;
    --icone: #9fb0c8;
    --sombra: 0 1px .5px rgba(0, 0, 0, .3);
    --citacao-entra: #0d1a30;
    --citacao-sai: #0e3a6b;
    --avatar: #2a4a78;
    --avatar-ico: #c9d6ea;
    --folha: #13233f;
    --vidro: rgba(0, 0, 0, .55);
    --erro: #ff4d4f;
    --realce: rgba(0, 147, 255, .25);
    --nao-lidas: #0d1a30;
    --nao-lidas-txt: #9fb0c8;
    --link: #7cc8ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fundo); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--txt);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* A altura do app acompanha a área VISÍVEL (o teclado do iPhone encolhe a tela sem avisar o CSS). */
#app { position: fixed; left: 0; right: 0; top: 0; height: var(--altura, 100dvh); overflow: hidden; }

.tela {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--fundo);
  transition: transform .22s ease;
  will-change: transform;
}
.tela.fora { transform: translateX(100%); }
.tela.atras { transform: translateX(-22%); }

/* ── Barra de cima ─────────────────────────────────────────────────────────── */
.topo { background: var(--topo); color: var(--topo-txt); padding-top: env(safe-area-inset-top); flex-shrink: 0; }
.topo-linha { height: 56px; display: flex; align-items: center; gap: 2px; padding: 0 4px 0 12px; }
.topo-linha.com-voltar { padding-left: 2px; }
.topo-logo { height: 30px; width: auto; margin-right: auto; }
.topo-titulo { font-size: 19px; font-weight: 500; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: inherit; }
.bi:active { background: rgba(127, 127, 127, .2); }
.bi svg { width: 24px; height: 24px; }
.busca-linha { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 4px; }
.busca-linha input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--topo-txt); font-size: 17px; }
.busca-linha input::placeholder { color: var(--topo-sub); }

/* ── Lista de conversas ───────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; padding: 10px 16px 6px; overflow-x: auto; flex-shrink: 0; background: var(--fundo); }
.chip { padding: 6px 14px; border-radius: 18px; background: var(--chip); color: var(--chip-txt); font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--chip-on); color: var(--chip-on-txt); font-weight: 500; }
.lista { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 96px; overscroll-behavior: contain; }
.conv { display: flex; align-items: center; gap: 13px; padding: 0 16px; min-height: 72px; width: 100%; text-align: left; }
.conv:active { background: var(--chip); }
.conv-corpo { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.conv-l1, .conv-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.conv-nome { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-corpo > .conv-nome, .conv-corpo > .conv-prev { flex: none; }
.conv-hora { font-size: 12px; color: var(--txt2); flex-shrink: 0; }
.conv.tem-nova .conv-hora { color: var(--marca-txt); font-weight: 500; }
.conv-prev { flex: 1; min-width: 0; font-size: 14.5px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.conv-prev .prev-txt { overflow: hidden; text-overflow: ellipsis; }
.conv-prev .dig { color: var(--marca-txt); font-weight: 500; }
.conv-prev svg { width: 16px; height: 16px; flex-shrink: 0; }
.selo { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--selo); color: var(--selo-txt); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lista-vazia { padding: 48px 32px; text-align: center; color: var(--txt2); font-size: 14.5px; line-height: 1.5; }
.secao { padding: 16px 16px 8px; font-size: 14px; color: var(--txt2); font-weight: 500; }

.fab {
  position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--marca); color: var(--sobre-marca);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.fab svg { width: 24px; height: 24px; }

/* ── Avatar ───────────────────────────────────────────────────────────────── */
.av { width: 49px; height: 49px; border-radius: 50%; flex-shrink: 0; position: relative; background: var(--avatar); color: var(--avatar-ico); display: flex; align-items: center; justify-content: center; overflow: visible; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av > svg { width: 62%; height: 62%; }
.av.p { width: 40px; height: 40px; }
.av.g { width: 120px; height: 120px; }
.av .on { position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--online); border: 2px solid var(--fundo); }

/* ── Conversa ─────────────────────────────────────────────────────────────── */
.cv-cab { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 4px 0; }
.cv-cab-txt { min-width: 0; flex: 1; }
.cv-nome { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-sub { font-size: 13px; color: var(--topo-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voltar { display: flex; align-items: center; gap: 0; border-radius: 20px; padding: 4px 2px 4px 4px; flex-shrink: 0; }
.voltar:active { background: rgba(127, 127, 127, .2); }
.voltar svg { width: 24px; height: 24px; }
.voltar .n { font-size: 14px; min-width: 16px; }

.cv-corpo { flex: 1; position: relative; min-height: 0; background: var(--conversa); }
/* Papel de fundo: a MESMA arte do Atendimento do computador (public/chat-bg.svg, 125 desenhos por
   ladrilho), no mesmo tamanho de lá (340px). Pedido do Renato: desenhos mais juntos, como o da Meta. */
.cv-corpo::before { content: ''; position: absolute; inset: 0; background-image: var(--papel); background-size: 340px 340px; pointer-events: none; }
.msgs { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 0 10px; }
.carregando-mais { text-align: center; padding: 8px; font-size: 12.5px; color: var(--dia-txt); }

.dia { display: flex; justify-content: center; padding: 8px 0 6px; position: sticky; top: 4px; z-index: 2; pointer-events: none; }
.dia span { background: var(--dia); color: var(--dia-txt); font-size: 12.5px; padding: 5px 12px; border-radius: 7.5px; box-shadow: var(--sombra); }
.aviso-nl { margin: 8px 0; padding: 5px; text-align: center; background: var(--nao-lidas); color: var(--nao-lidas-txt); font-size: 12.5px; }
.esp-bloco { height: 10px; }

.ln { display: flex; padding: 0 12px 0 16px; margin-top: 2px; position: relative; }
.ln.eu { justify-content: flex-end; padding: 0 16px 0 12px; }
.ln.ini { margin-top: 10px; }
.ln.realce .bl { box-shadow: 0 0 0 100vmax var(--realce); clip-path: inset(-6px -100vmax); }
.ln .resp-ico { position: absolute; left: 4px; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--dia); color: var(--icone); display: flex; align-items: center; justify-content: center; opacity: 0; box-shadow: var(--sombra); }
.ln .resp-ico svg { width: 18px; height: 18px; }

.bl {
  position: relative; max-width: min(82%, 540px); min-width: 72px;
  padding: 6px 7px 8px 9px; border-radius: 7.5px;
  background: var(--entra); color: var(--txt); box-shadow: var(--sombra);
  transition: transform .12s ease;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.eu .bl { background: var(--sai); }
.ln.ini:not(.eu) .bl { border-top-left-radius: 0; }
.ln.ini.eu .bl { border-top-right-radius: 0; }
.ln.ini:not(.eu) .bl::before, .ln.ini.eu .bl::before {
  content: ''; position: absolute; top: 0; width: 8px; height: 13px; background: inherit;
}
.ln.ini:not(.eu) .bl::before { left: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.ln.ini.eu .bl::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.ln.sel .bl { filter: brightness(.9); }

.autor { font-size: 12.8px; font-weight: 500; line-height: 22px; margin-top: -3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx { font-size: 15px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tx a { color: var(--link); text-decoration: none; }
.tx ul { margin: 2px 0; padding-left: 20px; }
.tx.emoji { font-size: 40px; line-height: 48px; }
.esp { display: inline-block; width: 64px; height: 1px; vertical-align: bottom; }
.eu .esp { width: 82px; }
.esp.ed { width: 112px; }
.eu .esp.ed { width: 130px; }
.meta { position: absolute; right: 7px; bottom: 4px; display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--meta); white-space: nowrap; line-height: 15px; }
.meta .edt { margin-right: 2px; }
.meta svg { width: 16px; height: 11px; }
.meta .lida { color: var(--lido); }
.meta .relog svg { width: 13px; height: 13px; }
.meta .falha { color: var(--erro); }
.meta.sobre { color: #fff; bottom: 6px; right: 9px; padding: 2px 6px; border-radius: 10px; background: linear-gradient(transparent, rgba(0,0,0,.25)); text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.meta.sobre .lida { color: #9fe0ff; }

/* citação dentro do balão */
.cit { display: flex; border-radius: 6px; overflow: hidden; margin: -2px -3px 5px -5px; background: var(--citacao-entra); min-height: 44px; cursor: pointer; }
.eu .cit { background: var(--citacao-sai); }
.cit-barra { width: 4px; flex-shrink: 0; }
.cit-corpo { padding: 5px 10px 6px 8px; min-width: 0; flex: 1; }
.cit-nome { font-size: 12.8px; font-weight: 500; }
.cit-tx { font-size: 13.5px; color: var(--txt2); line-height: 18px; max-height: 54px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }

/* mídia */
.md { margin: -3px -4px 4px -6px; border-radius: 6px; overflow: hidden; position: relative; background: rgba(0,0,0,.08); isolation: isolate; }
.md img { -webkit-touch-callout: none; pointer-events: none; }
.md.so { margin-bottom: -5px; }
.md .fig { display: block; width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.md .borrao { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(8px); transform: scale(1.1); }
.md .play { z-index: 2; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(11,20,26,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.md .play svg { width: 26px; height: 26px; }
.md .dur { z-index: 2; position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 11.5px; display: flex; align-items: center; gap: 4px; text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.md .dur svg { width: 16px; height: 16px; }
.md .prog { z-index: 2; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.md .prog circle { fill: none; stroke-width: 3; }

/* documento */
.doc { display: flex; align-items: center; gap: 10px; padding: 10px; margin: -3px -4px 4px -6px; border-radius: 6px; background: var(--citacao-entra); min-width: 230px; }
.eu .doc { background: var(--citacao-sai); }
.doc-ico { width: 34px; height: 40px; flex-shrink: 0; position: relative; }
.doc-ico span { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 8.5px; font-weight: 700; color: #fff; }
.doc-nome { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.doc-tam { font-size: 12px; color: var(--txt2); margin-top: 2px; }
.doc-baixar { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--txt2); color: var(--txt2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: auto; }
.doc-baixar svg { width: 18px; height: 18px; }

/* áudio (voz) */
.au { display: flex; align-items: center; gap: 8px; min-width: 250px; padding: 2px 0 12px 0; }
.au .av { width: 46px; height: 46px; }
.au .av .mic { position: absolute; left: -4px; bottom: -2px; width: 20px; height: 20px; color: var(--marca-txt); }
.eu .au .av .mic { color: var(--lido); }
.au-play { width: 34px; height: 34px; flex-shrink: 0; color: var(--icone); display: flex; align-items: center; justify-content: center; }
.au-play svg { width: 30px; height: 30px; }
.au-trilho { flex: 1; position: relative; height: 26px; display: flex; align-items: center; }
.au-ondas { display: flex; align-items: center; gap: 2px; height: 26px; width: 100%; }
.au-ondas i { flex: 1; background: var(--txt2); opacity: .45; border-radius: 2px; min-height: 3px; }
.au-ondas i.ok { opacity: 1; background: var(--marca); }
.eu .au-ondas i.ok { background: var(--lido); }
.au-tempo { position: absolute; left: 90px; bottom: 5px; font-size: 11px; color: var(--meta); }
.au-vel { font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 12px; background: rgba(127,127,127,.25); color: var(--txt2); flex-shrink: 0; }
.au-carrega { width: 30px; height: 30px; }

/* rodapé "Editada" e botão de descer */
.descer { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: var(--dia); color: var(--icone); box-shadow: 0 1px 3px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; z-index: 3; }
.descer svg { width: 24px; height: 24px; }
.descer .selo { position: absolute; top: -8px; right: -2px; }

/* ── Campo de mensagem ────────────────────────────────────────────────────── */
.compor { display: flex; align-items: flex-end; gap: 6px; padding: 5px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--conversa); flex-shrink: 0; position: relative; }
.campo { flex: 1; min-width: 0; background: var(--campo); border-radius: 24px; box-shadow: var(--sombra); display: flex; flex-direction: column; overflow: hidden; }
.campo-linha { display: flex; align-items: flex-end; min-height: 48px; padding: 0 4px; }
.campo textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 17px; line-height: 22px; padding: 13px 6px; max-height: 142px; }
.campo textarea::placeholder { color: var(--txt2); }
.campo .bi { color: var(--icone); width: 44px; height: 48px; border-radius: 24px; }
.redondo { width: 48px; height: 48px; border-radius: 50%; background: var(--marca); color: var(--sobre-marca); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--sombra); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.redondo svg { width: 24px; height: 24px; }
.redondo.gravando { transform: scale(1.35); transition: transform .15s; }

.faixa { display: flex; margin: 6px 6px 0; border-radius: 8px; overflow: hidden; background: var(--citacao-entra); }
.faixa .cit-corpo { padding: 7px 10px; }
.faixa .x { width: 36px; color: var(--txt2); display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; }
.faixa .x svg { width: 20px; height: 20px; }
.faixa.edita .cit-nome { color: var(--marca-txt); }

.gravacao { position: absolute; left: 6px; right: 60px; top: 5px; bottom: calc(6px + env(safe-area-inset-bottom)); background: var(--campo); border-radius: 24px; display: flex; align-items: center; gap: 10px; padding: 0 16px; box-shadow: var(--sombra); }
.gravacao .ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--erro); animation: pisca 1s infinite; }
.gravacao .tempo { font-size: 17px; font-variant-numeric: tabular-nums; }
.gravacao .deslize { margin-left: auto; color: var(--txt2); font-size: 14px; transition: opacity .1s; }
@keyframes pisca { 50% { opacity: .2; } }

/* ── Folhas, menus e janelas ──────────────────────────────────────────────── */
.vidro { position: fixed; inset: 0; background: var(--vidro); z-index: 50; animation: surge .15s ease; }
@keyframes surge { from { opacity: 0; } }
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--folha); border-radius: 18px 18px 0 0; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); animation: sobe .18s ease; max-height: 85%; overflow-y: auto; }
@keyframes sobe { from { transform: translateY(100%); } }
.folha-alca { width: 36px; height: 4px; border-radius: 2px; background: var(--txt2); opacity: .4; margin: 0 auto 8px; }
.folha-tit { padding: 6px 20px 10px; font-size: 16px; font-weight: 500; }
.anexos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; padding: 14px 16px 10px; }
.anexo { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--txt2); }
.anexo i { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.anexo i svg { width: 26px; height: 26px; }
.opc { display: flex; align-items: center; gap: 20px; width: 100%; padding: 14px 22px; font-size: 16px; text-align: left; }
.opc:active { background: var(--chip); }
.opc svg { width: 22px; height: 22px; color: var(--icone); flex-shrink: 0; }
.opc.perigo { color: var(--erro); }
.opc.perigo svg { color: var(--erro); }

.janela { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 51; width: min(92vw, 400px); background: var(--folha); border-radius: 16px; padding: 22px 22px 12px; box-shadow: 0 8px 30px rgba(0,0,0,.35); animation: surge .15s ease; }
.janela h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; }
.janela p { margin: 0 0 12px; color: var(--txt2); line-height: 1.45; font-size: 15px; }
.janela-bts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.bt-txt { padding: 10px 14px; border-radius: 20px; color: var(--marca-txt); font-weight: 500; font-size: 15px; }
.bt-txt:active { background: var(--chip); }

.aviso { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: #1a3055; color: #fff; padding: 11px 18px; border-radius: 22px; font-size: 14px; max-width: 88vw; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: surge .2s ease; }

.faixa-topo { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--chip); font-size: 14px; line-height: 1.4; }
.faixa-topo .bt-txt { margin-left: auto; flex-shrink: 0; }
.faixa-topo svg { width: 24px; height: 24px; color: var(--marca-txt); flex-shrink: 0; }

/* ── Tela cheia: foto, vídeo, prévia do envio ─────────────────────────────── */
.visor { position: fixed; inset: 0; z-index: 70; background: #000; color: #fff; display: flex; flex-direction: column; animation: surge .15s ease; }
.visor-topo { display: flex; align-items: center; gap: 6px; padding: calc(6px + env(safe-area-inset-top)) 4px 6px; background: rgba(0,0,0,.4); position: relative; z-index: 2; }
.visor-topo .t { flex: 1; min-width: 0; }
.visor-topo .t b { display: block; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor-topo .t small { color: rgba(255,255,255,.7); font-size: 13px; }
.visor-palco { flex: 1; position: relative; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; }
.visor-palco img, .visor-palco video { max-width: 100%; max-height: 100%; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.visor-palco video { width: 100%; }
.visor-leg { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); text-align: center; background: rgba(0,0,0,.4); font-size: 15px; white-space: pre-wrap; }
.previa-miniaturas { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.previa-miniaturas img, .previa-miniaturas .mini-vid { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; flex-shrink: 0; background: #333; }
.previa-miniaturas .on { border-color: var(--marca); }
.previa-rodape { display: flex; align-items: flex-end; gap: 8px; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); }
.previa-rodape .campo { background: #13233f; color: #fff; box-shadow: none; }
.previa-rodape textarea { color: #fff; }
.previa-doc { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; text-align: center; }
.previa-doc .doc-ico { width: 64px; height: 76px; }
.previa-doc .doc-ico span { font-size: 13px; bottom: 10px; }

/* ── Login ────────────────────────────────────────────────────────────────── */
.login { background: var(--fundo); overflow-y: auto; }
.login-topo { background: #195DA8; padding: calc(44px + env(safe-area-inset-top)) 24px 56px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.login-topo img { height: 58px; width: auto; }
.login-topo .sub { color: rgba(255,255,255,.9); font-size: 15px; text-align: center; }
.login-cartao { margin: -32px 18px 24px; background: var(--folha); border-radius: 16px; padding: 24px 20px 18px; box-shadow: 0 4px 18px rgba(0,0,0,.14); }
.login-cartao h2 { margin: 0 0 18px; font-size: 20px; font-weight: 500; text-align: center; }
.cx { display: block; margin-bottom: 14px; }
.cx span { display: block; font-size: 13px; color: var(--marca-txt); margin-bottom: 4px; font-weight: 500; }
.cx input { width: 100%; border: 0; border-bottom: 2px solid var(--marca); background: transparent; padding: 9px 2px; font-size: 17px; outline: 0; border-radius: 0; }
.bt-cheio { width: 100%; height: 46px; border-radius: 23px; background: var(--marca); color: var(--sobre-marca); font-size: 16px; font-weight: 500; margin-top: 8px; }
.bt-cheio:disabled { opacity: .6; }
.login-erro { color: var(--erro); font-size: 14px; min-height: 20px; margin: 6px 0 0; text-align: center; }
.login-rodape { text-align: center; color: var(--txt2); font-size: 12.5px; padding: 0 24px 28px; line-height: 1.5; }

/* ── Dados da mensagem / da conversa ──────────────────────────────────────── */
.info { flex: 1; overflow-y: auto; background: var(--fundo); }
.info-bloco { background: var(--fundo); margin-bottom: 8px; }
@media (prefers-color-scheme: light) { .info { background: #eef3f9; } }
.info-tit { padding: 14px 20px 6px; font-size: 14px; color: var(--marca-txt); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.info-tit svg { width: 18px; height: 11px; }
.pessoa { display: flex; align-items: center; gap: 14px; padding: 10px 20px; }
.pessoa .av { width: 40px; height: 40px; }
.pessoa b { font-weight: 500; font-size: 16px; display: block; }
.pessoa small { color: var(--txt2); font-size: 13.5px; }
.perfil { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 20px 20px; }
.perfil b { font-size: 22px; font-weight: 500; }
.perfil small { color: var(--txt2); font-size: 15px; }
.info-bolha { padding: 16px 16px 20px; background: var(--conversa); position: relative; }
.info-bolha::before { content: ''; position: absolute; inset: 0; background-image: var(--papel); background-size: 340px 340px; pointer-events: none; }
