/* O PAINEL DO CRM com a cara do WhatsApp Web (24/10/2026). Cinzas escuros o bastante para o monitor do balcão. */
:root { --verde: #008069; --verde-claro: #d9fdd3; --fundo-chat: #efeae2; --lista: #fff; --linha: #c8ced6; --texto: #111b21; --apoio: #3b4a54; --azul: #0b5cad; --vermelho: #b42318; --amarelo: #9a6700 }
* { box-sizing: border-box }
html, body { height: 100%; margin: 0 }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; background: #d1d7db; color: var(--texto); font-size: 15px }
body > header { display: none }
#principal { height: 100% }
button { font: inherit; cursor: pointer }
.painel { display: grid; grid-template-columns: var(--largura-da-lista, minmax(300px, 30%)) 5px 1fr; height: 100vh; max-width: 1600px; margin: 0 auto; background: var(--lista); box-shadow: 0 0 12px rgba(0,0,0,.12) }
.coluna-lista { display: flex; flex-direction: column; border-right: 1px solid var(--linha); min-height: 0 }
.topo-lista, .topo-conversa { display: flex; align-items: center; gap: .7rem; height: 60px; padding: 0 1rem; background: #f0f2f5; border-bottom: 1px solid var(--linha) }
.topo-lista b { flex: 1; font-size: 1.05rem; color: var(--verde) }
.engrenagem { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--apoio); font-size: 1.2rem }
.engrenagem:hover { background: #dfe3e6 }
.avatar { position: relative; overflow: hidden; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #6b7c85; color: #fff; font-size: .85rem; font-weight: 700 }
.avatar.grupo { background: #00a884 }
.avatar.eu { width: 38px; height: 38px; background: var(--verde) }
.filtros { display: flex; gap: .4rem; padding: .5rem .7rem; border-bottom: 1px solid var(--linha) }
.filtros input { flex: 1; min-width: 0; padding: .45rem .7rem; border: 1px solid var(--linha); border-radius: 8px; background: #f0f2f5; font-size: .9rem; color: var(--texto) }
.filtros select { max-width: 45%; padding: .4rem; border: 1px solid var(--linha); border-radius: 8px; background: #fff; font-size: .85rem; color: var(--texto) }
.lista { flex: 1; overflow-y: auto; min-height: 0 }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; width: 100%; padding: .55rem .9rem; border: 0; border-bottom: 1px solid #e9edef; background: #fff; text-align: left; color: var(--texto) }
.item:hover { background: #f5f6f6 }
.item.ativo { background: #e6ebee }
.item .meio { min-width: 0 }
.item .meio b { display: block; font-size: .97rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.item .meio small { display: block; color: var(--apoio); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.item .lado { display: grid; justify-items: end; gap: .15rem }
.item .lado small { color: var(--apoio); font-size: .74rem }
.item .lado em { font-style: normal; font-size: .66rem; font-weight: 700; color: var(--verde); white-space: nowrap }
.coluna-conversa { display: flex; flex-direction: column; min-height: 0; background: var(--fundo-chat) }
.boas-vindas { margin: auto; text-align: center; color: var(--apoio) }
.boas-vindas h2 { color: var(--verde); font-weight: 600 }
.topo-conversa div { display: grid; min-width: 0 }
.topo-conversa small { color: var(--apoio); font-size: .8rem }
.voltar { display: none; border: 0; background: transparent; font-size: 1.8rem; color: var(--apoio) }
.mensagens { flex: 1; overflow-y: auto; padding: 1rem 6%; display: flex; flex-direction: column; gap: .3rem; min-height: 0 }
.dia { align-self: center; margin: .6rem 0 .3rem }
.dia span { padding: .25rem .7rem; border-radius: 8px; background: #fff; color: var(--apoio); font-size: .76rem; box-shadow: 0 1px .5px rgba(0,0,0,.13) }
.bolha { position: relative; max-width: 65%; padding: .35rem .55rem .25rem; border-radius: 8px; background: #fff; box-shadow: 0 1px .5px rgba(0,0,0,.13); font-size: .92rem; line-height: 1.35; word-break: break-word }
.bolha.minha { align-self: flex-end; background: var(--verde-claro) }
.bolha.dele { align-self: flex-start }
.bolha.apagada { opacity: .7 }
.bolha .quem { display: block; font-size: .76rem; color: var(--verde) }
.bolha .texto { white-space: pre-wrap }
.bolha .hora { display: block; text-align: right; margin-top: .1rem; font-size: .68rem; color: var(--apoio) }
.bolha img.midia { display: block; max-width: 100%; max-height: 320px; border-radius: 6px; margin: .1rem 0 .2rem; cursor: zoom-in; background: #e9edef; min-width: 120px; min-height: 80px }
.bolha audio.midia { width: 260px; max-width: 100% }
.documento { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .45rem .5rem; border: 0; border-radius: 6px; background: rgba(0,0,0,.05); color: var(--texto); text-align: left; font-size: .86rem }
.icone-doc { flex: 0 0 auto; white-space: nowrap; padding: .2rem .3rem; border-radius: 3px; background: #e74c3c; color: #fff; font-size: .65rem; font-weight: 700 }
.midia-ausente { margin: .1rem 0; font-size: .8rem; font-style: italic; color: var(--apoio) }
.mais { align-self: center; margin: .5rem auto; padding: .35rem .9rem; border: 1px solid var(--linha); border-radius: 16px; background: #fff; color: var(--azul); font-size: .82rem; display: block }
.rodape-conversa { padding: .7rem 1rem; background: #f0f2f5; border-top: 1px solid var(--linha); color: var(--apoio); font-size: .85rem; text-align: center }
.vazio { padding: 1rem; color: var(--apoio); text-align: center }
.erro { color: var(--vermelho) }
.sem-sessao { margin: 20vh auto; max-width: 420px; padding: 1.5rem; background: #fff; border-radius: 8px; text-align: center }
.configuracoes-fundo { position: fixed; inset: 0; background: rgba(17,27,33,.45); display: flex; justify-content: flex-end; z-index: 10 }
.configuracoes { width: min(900px, 100vw); height: 100%; overflow-y: auto; padding: 1rem 1.4rem; background: #fff }
.configuracoes header { display: flex; justify-content: space-between; align-items: center }
.configuracoes h2 { color: var(--verde) }
.configuracoes h3 { margin: 1.2rem 0 .4rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--apoio) }
.configuracoes table { width: 100%; border-collapse: collapse }
.configuracoes th, .configuracoes td { padding: .45rem; border-bottom: 1px solid var(--linha); text-align: left; vertical-align: top; font-size: .9rem }
.configuracoes td small { display: block; color: var(--apoio) }
.configuracoes button, .nova-linha button { padding: .4rem .9rem; border: 0; border-radius: 6px; background: var(--verde); color: #fff }
.configuracoes .fechar { background: #fff; color: var(--azul); border: 1px solid var(--linha) }
.nova-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; align-items: end }
.nova-linha label { display: grid; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--apoio) }
.nova-linha input, .nova-linha select { padding: .4rem; border: 1px solid #9aa3b2; border-radius: 6px; font-size: .9rem }
.situacao { font-weight: 700 } .situacao.ok { color: #1a7f37 } .situacao.espera { color: var(--amarelo) }
.qr { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--linha); border-radius: 8px }
.qr img { width: 260px; height: 260px }
.codigo { font-size: 1.5rem; letter-spacing: 3px }
@media (max-width: 760px) {
  .painel { grid-template-columns: 1fr }
  .coluna-conversa { display: none }
  body.com-conversa .coluna-lista { display: none }
  body.com-conversa .coluna-conversa { display: flex; height: 100vh }
  .voltar { display: inline-block }
  .bolha { max-width: 85% }
  .mensagens { padding: .8rem 3% }
}
.cartao { display: flex; align-items: center; gap: .6rem; min-width: 220px; padding: .3rem .1rem .4rem; border-bottom: 1px solid rgba(0,0,0,.08) }
.cartao[data-buscar] { cursor: pointer }
.cartao b { display: block } .cartao small { color: var(--apoio) }
.sem-texto { color: var(--apoio); font-size: .82rem }
/* RESPONDER PELO PAINEL (24/10/2026) */
.coluna-conversa { position: relative }
.rodape-conversa.escrever { display: flex; align-items: flex-end; gap: .5rem; padding: .55rem .8rem; text-align: left }
.escrever textarea { flex: 1; min-width: 0; resize: none; max-height: 160px; padding: .6rem .8rem; border: 0; border-radius: 8px; background: #fff; font: inherit; font-size: .95rem; color: var(--texto); line-height: 1.35 }
.escrever textarea:focus { outline: 2px solid #9fd8c8 }
.escrever select { max-width: 30%; padding: .5rem; border: 1px solid var(--linha); border-radius: 8px; background: #fff; font-size: .82rem; color: var(--texto) }
.redondo { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--apoio); font-size: 1.2rem }
.redondo:hover { background: #dfe3e6 }
.redondo.enviar { background: var(--verde); color: #fff }
.redondo.enviar:disabled { opacity: .5 }
.redondo.assinatura { width: 34px; height: 34px; align-self: center; font-size: .72rem; font-weight: 700; background: var(--verde); color: #fff }
.redondo.assinatura.desligada { background: transparent; color: var(--apoio); border: 1px dashed var(--apoio); text-decoration: line-through }
.erro-do-envio { margin: 0; padding: .3rem 1rem .5rem; background: #f0f2f5; font-size: .85rem }
.respostas { position: absolute; left: .8rem; right: .8rem; bottom: 64px; max-height: 45%; overflow-y: auto; background: #fff; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.18); z-index: 5 }
.respostas button { display: block; width: 100%; padding: .55rem .9rem; border: 0; border-bottom: 1px solid #e9edef; background: #fff; text-align: left; color: var(--texto) }
.respostas button:hover { background: #f5f6f6 }
.respostas b { display: block; font-size: .9rem } .respostas small { display: block; color: var(--apoio); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.nova-resposta { display: grid; grid-template-columns: 220px 1fr auto; gap: .6rem; align-items: start; margin-top: .6rem }
.nova-resposta button { margin-top: 1.25rem }
.nova-resposta label { display: grid; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--apoio) }
.nova-resposta input, .nova-resposta textarea, .configuracoes td input:not([type=checkbox]), .configuracoes td textarea { width: 100%; padding: .4rem; border: 1px solid #9aa3b2; border-radius: 6px; font: inherit; font-size: .88rem }
.configuracoes tr.desativada td { opacity: .55 }
.configuracoes .secundario { background: #fff; color: var(--azul); border: 1px solid var(--linha) }
.configuracoes input[type=checkbox] { width: 18px; height: 18px }
.titulo-com-ajuda { cursor: help }
@media (max-width: 760px) {
  .escrever select { max-width: 34%; font-size: .75rem }
  .nova-resposta { grid-template-columns: 1fr }
  .configuracoes { padding: .8rem }
  .configuracoes table { display: block; overflow-x: auto }
}
/* NÃO LIDAS E ANEXO (24/10/2026) */
.item.com-nova .meio b { font-weight: 800 }
.item.com-nova .meio small { color: var(--texto); font-weight: 600 }
.item .lado small.nova { color: #1a8a4a; font-weight: 700 }
.nao-lidas { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #25a55f; color: #fff; font-size: .72rem; line-height: 20px; text-align: center }
.anexo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .5rem 1rem; background: #f0f2f5; border-top: 1px solid var(--linha); max-height: 40vh; overflow-y: auto }
.um-anexo { display: flex; align-items: center; gap: .5rem; flex: 1 1 220px; min-width: 0; max-width: 360px; padding: .25rem .4rem; border-radius: 8px; background: #fff }
.um-anexo > span:nth-child(2) { flex: 1; min-width: 0 }
.anexo img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px }
.anexo > span:nth-child(2) { flex: 1; min-width: 0 }
.anexo b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.anexo small { color: var(--apoio); font-size: .78rem }
.coluna-conversa.soltando::after { content: 'Solte para anexar'; position: absolute; inset: 60px 0 0; display: flex; align-items: center; justify-content: center; background: rgba(0,128,105,.12); border: 3px dashed var(--verde); color: var(--verde); font-size: 1.3rem; font-weight: 700; z-index: 6; pointer-events: none }
/* 25/10/2026: foto, divisória, fichas, respostas flutuantes, miniatura, áudio */
.avatar img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; opacity: 0; transition: opacity .2s }
.avatar img.foto.pronta { opacity: 1 }
.divisoria { cursor: col-resize; background: #e3e7ea; border-left: 1px solid var(--linha); touch-action: none }
.divisoria:hover, .divisoria:active { background: #9fd8c8 }
.coluna-lista { border-right: 0 }
.fichas { display: flex; gap: .4rem; padding: .45rem .7rem; border-bottom: 1px solid var(--linha) }
.fichas button { padding: .25rem .8rem; border: 0; border-radius: 14px; background: #f0f2f5; color: var(--apoio); font-size: .82rem }
.fichas button.ativa { background: #d9fdd3; color: #0b6b4f; font-weight: 700 }
.respostas-flutuantes { position: absolute; right: 14px; top: 76px; bottom: 76px; display: flex; flex-direction: column; justify-content: center; gap: .45rem; max-width: 190px; overflow-y: auto; z-index: 4; pointer-events: none }
.respostas-flutuantes[hidden] { display: none }
.respostas-flutuantes button { pointer-events: auto; padding: .45rem .8rem; border: 1px solid #b7e4cf; border-radius: 18px; background: rgba(255,255,255,.95); color: #0b6b4f; font-size: .82rem; font-weight: 600; text-align: left; box-shadow: 0 2px 6px rgba(0,0,0,.15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.respostas-flutuantes button:hover { background: #d9fdd3 }
.coluna-conversa:has(.respostas-flutuantes:not([hidden]):not(:empty)) .mensagens { padding-right: 210px }
.documento.com-miniatura { flex-direction: column; align-items: stretch; padding: .3rem; gap: .3rem; max-width: 280px }
.documento img.miniatura { display: block; width: 100%; height: 200px; object-fit: cover; object-position: top; border-radius: 4px; background: #fff; border: 1px solid #e3e7ea }
.linha-do-documento { display: flex; align-items: center; gap: .5rem; padding: .15rem .2rem }
.bolha video.midia { display: block; max-width: 100%; max-height: 320px; border-radius: 6px }
.rodape-conversa.gravando textarea, .rodape-conversa.gravando #anexar { display: none }
.gravando-agora { flex: 1; display: flex; align-items: center; gap: .6rem; color: var(--texto) }
.ponto-vermelho { width: 12px; height: 12px; border-radius: 50%; background: #d93025; animation: pisca 1s infinite }
@keyframes pisca { 50% { opacity: .25 } }
@media (max-width: 760px) {
  .painel { grid-template-columns: 1fr }
  .divisoria { display: none }
  .respostas-flutuantes { right: 8px; max-width: 130px }
  .coluna-conversa:has(.respostas-flutuantes:not([hidden]):not(:empty)) .mensagens { padding-right: 140px }
}
/* LIDA E ENTREGUE (25/10/2026) */
.tracinhos { color: #667781; letter-spacing: -3px; margin-left: 2px }
.tracinhos.lidos { color: #34b7f1 }
.bolha .lida { color: #1a8a4a }

.configuracoes td select { max-width: 220px; padding: .3rem; border: 1px solid #9aa3b2; border-radius: 6px; font-size: .85rem; background: #fff }
.nova-linha select, .nova-linha input { width: 100%; min-width: 0; background: #fff }
.menu-da-conversa { position: fixed; z-index: 20; min-width: 190px; padding: .3rem 0; background: #fff; border-radius: 6px; box-shadow: 0 4px 18px rgba(0,0,0,.22) }
.menu-da-conversa button { display: block; width: 100%; padding: .55rem 1rem; border: 0; background: #fff; text-align: left; font-size: .9rem; color: var(--texto) }
.menu-da-conversa button:hover { background: #f0f2f5 }
.menu-da-conversa button.perigo { color: var(--vermelho) }
.selo-particular { padding: .05rem .4rem; border-radius: 8px; background: #fff3cd; color: #7a5a00; font-size: .72rem; font-weight: 700; cursor: help }
.boas-vindas-da-linha { display: grid; grid-template-columns: 1fr 160px; gap: .6rem; padding: .8rem; border: 1px solid var(--linha); border-radius: 8px }
.boas-vindas-da-linha h3, .boas-vindas-da-linha .largo, .boas-vindas-da-linha .acoes, .boas-vindas-da-linha .erro { grid-column: 1 / -1 }
.boas-vindas-da-linha label { display: grid; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--apoio) }
.boas-vindas-da-linha textarea, .boas-vindas-da-linha input { padding: .45rem; border: 1px solid #9aa3b2; border-radius: 6px; font: inherit; font-size: .9rem }
.boas-vindas-da-linha .acoes { display: flex; gap: .5rem }
.fichas { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin }
.fichas button { white-space: nowrap; flex: 0 0 auto; padding: .25rem .65rem }
.automaticas-da-linha { display: grid; gap: .8rem; padding: .8rem; border: 1px solid var(--linha); border-radius: 8px }
.automaticas-da-linha h4 { margin: 0; grid-column: 1 / -1; color: var(--verde) }
.automaticas-da-linha .boas-vindas-da-linha { grid-template-columns: repeat(3, minmax(120px, 1fr)) }
.dias-da-semana { display: flex; gap: .7rem; flex-wrap: wrap }
.dias-da-semana .dia { display: flex !important; align-items: center; gap: .25rem; font-weight: 400 !important }
.bolha button.quem.nomear { display: block; padding: 0; border: 0; background: none; font: inherit; font-size: .76rem; font-weight: 700; color: var(--verde); cursor: pointer; text-align: left }
.bolha button.quem.nomear:hover { text-decoration: underline }
.placa-na-mensagem { padding: 0 .15rem; border-radius: 3px; background: #fff3cd; color: #5c4400; font-weight: 700; cursor: context-menu }
.placa-na-mensagem:hover { background: #ffe08a }

/* AS CORES DA LISTA (26/10/2026). O LARANJA é o mesmo do "processo em uso" do ChatProc: outra pessoa está com a conversa aberta (faixa forte
   à esquerda e fundo claro), ou o grupo acompanhado tem mensagem que a pessoa não viu. O VERMELHO é o cliente esperando resposta há mais de
   10 minutos -- o fundo da conversa inteira, para não passar. Os dois convivem: a faixa laranja fica sobre o fundo vermelho. */
:root { --em-uso: #F28C28 }
.item.em-uso, .item.acompanhado-novo { background: color-mix(in oklab, var(--em-uso) 24%, #fff) }
.item.em-uso { box-shadow: inset 5px 0 var(--em-uso) }
.item.atrasada { background: color-mix(in oklab, var(--vermelho) 16%, #fff) }
.item.em-uso:hover, .item.acompanhado-novo:hover { background: color-mix(in oklab, var(--em-uso) 32%, #fff) }
.item.atrasada:hover { background: color-mix(in oklab, var(--vermelho) 22%, #fff) }
.item .lado small.relogio { color: var(--amarelo); font-weight: 700; white-space: nowrap }
.item .lado small.relogio.vermelho { color: var(--vermelho) }
.aviso-em-uso { margin: 0; padding: .4rem .9rem; border-left: 5px solid var(--em-uso); background: color-mix(in oklab, var(--em-uso) 18%, #fff); font-weight: 600; font-size: .88rem }

/* O ÁUDIO EM TEXTO (26/10/2026): o botão discreto embaixo do áudio, e o texto transcrito em itálico, para não se confundir com o que a
   pessoa escreveu. */
.transcrever { display: block; margin: .25rem 0 0; padding: .15rem .6rem; border: 1px solid var(--linha); border-radius: 999px; background: #fff; color: var(--azul); font-size: .78rem }
.transcrever:disabled { color: var(--apoio); cursor: wait }
.transcricao { margin: .3rem 0 0; padding: .3rem .5rem; border-left: 3px solid var(--linha); color: var(--texto); font-style: italic; font-size: .9rem; white-space: pre-wrap; max-width: 320px }
/* O LINK DA MENSAGEM (26/10/2026): azul e sublinhado, como no WhatsApp; o endereço longo quebra em vez de alargar o balão. */
.mensagem .texto a, .texto a { color: var(--azul); text-decoration: underline; word-break: break-all }
/* O NÚMERO NAS FICHAS (26/10/2026): conversas não lidas em "Não lidas", grupos não lidos em "Grupos". */
#fichas .contador { display: inline-block; min-width: 1.15rem; margin-left: .3rem; padding: 0 .3rem; border-radius: 999px; background: var(--verde); color: #fff; font-size: .7rem; line-height: 1.15rem; text-align: center }

/* QUEM VÊ CADA LINHA (26/10/2026): uma linha por pessoa, as linhas dela marcadas ao lado. */
.quem-ve { display: grid; gap: .4rem }
.pessoa-e-linhas { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: .6rem; align-items: start; padding: .5rem .6rem; border: 1px solid var(--borda, #e3e6e8); border-radius: 6px }
.pessoa-e-linhas .quem { display: grid; gap: .1rem }
.pessoa-e-linhas .quem small { color: #667781 }
.pessoa-e-linhas .administra { display: flex; align-items: center; gap: .35rem; margin-top: .25rem; font-size: .85rem; font-weight: 600 }
.linhas-da-pessoa { display: flex; flex-wrap: wrap; gap: .35rem }
.linhas-da-pessoa label { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border: 1px solid var(--borda, #d1d7db); border-radius: 999px; font-size: .85rem; cursor: pointer; white-space: nowrap }
.linhas-da-pessoa label.marcada { background: #d9fdd3; border-color: #25d366 }
@media (max-width: 640px) { .pessoa-e-linhas { grid-template-columns: 1fr } }

/* RESPONDER E ENCAMINHAR (26/10/2026): a setinha da mensagem, o quadrinho da citada, a faixa "respondendo" e a janela de encaminhar. */
.bolha { position: relative }
.acoes-da-msg { position: absolute; top: 2px; right: 4px; border: 0; background: rgba(255,255,255,.85); border-radius: 50%; width: 22px; height: 22px; line-height: 18px; font-size: 14px; color: #54656f; cursor: pointer; opacity: 0; transition: opacity .12s }
.bolha:hover .acoes-da-msg, .acoes-da-msg:focus-visible { opacity: 1 }
@media (hover: none) { .acoes-da-msg { opacity: .7 } }
.citada { display: grid; gap: 1px; margin: 0 0 .3rem; padding: .3rem .5rem; border-left: 4px solid #06cf9c; border-radius: 6px; background: rgba(0,0,0,.05); font-size: .82rem; max-width: 100% }
.citada.nossa { border-left-color: #53bdeb }
.citada b { color: #027eb5; font-size: .78rem }
.citada span { color: #54656f; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-wrap }
.citando { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem 0; background: #f0f2f5 }
.citando .citada { flex: 1; margin: 0; background: #fff }
.parar-de-citar { border: 0; background: none; font-size: 16px; color: #54656f; cursor: pointer }
.encaminhar-fundo { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(11,20,26,.45); padding: 16px }
.encaminhar { display: grid; gap: .6rem; width: min(460px, 100%); max-height: 85vh; overflow: hidden; padding: .9rem 1rem; border-radius: 10px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.3) }
.encaminhar header { display: flex; justify-content: space-between; align-items: center }
.encaminhar .fechar { border: 0; background: none; font-size: 18px; cursor: pointer; color: #54656f }
.encaminhar label { display: grid; gap: .2rem; font-size: .82rem; font-weight: 600 }
.encaminhar input[type=search], .encaminhar select { padding: .45rem .6rem; border: 1px solid #d1d7db; border-radius: 6px; font: inherit }
.encaminhar-lista { display: grid; gap: 2px; overflow-y: auto; max-height: 45vh }
.encaminhar-lista button { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer }
.encaminhar-lista button:hover { background: #f0f2f5 }
.encaminhar-lista button.feito { background: #d9fdd3 }
.encaminhar-lista button span { display: grid }
.encaminhar-lista button small { color: #667781 }
.email-na-mensagem { color: #027eb5; text-decoration: underline; cursor: pointer }
.aviso-rapido { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: .5rem 1rem; border-radius: 6px; background: #111b21; color: #fff; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.25) }

/* AS REAÇÕES (26/10/2026): a carinha ao lado da setinha, a fila de emojis no menu e as reações embaixo da mensagem. */
.reagir-rapido { position: absolute; top: 2px; right: 30px; border: 0; background: rgba(255,255,255,.85); border-radius: 50%; width: 22px; height: 22px; line-height: 20px; font-size: 14px; color: #54656f; cursor: pointer; opacity: 0; transition: opacity .12s }
.bolha:hover .reagir-rapido, .reagir-rapido:focus-visible { opacity: 1 }
@media (hover: none) { .reagir-rapido { opacity: .7 } }
.menu-da-conversa .emojis { display: flex; gap: 2px; padding: .2rem .4rem .35rem; border-bottom: 1px solid #e9edef }
.menu-da-conversa .emojis button { width: auto; padding: .2rem .35rem; font-size: 1.3rem; border-radius: 50%; background: none }
.menu-da-conversa .emojis button:hover { background: #f0f2f5 }
.menu-da-conversa.so-emojis { padding: 0; border-radius: 999px; min-width: 0 }
.menu-da-conversa.so-emojis .emojis { border: 0 }
.reacoes { display: flex; flex-wrap: wrap; gap: 3px; margin: .25rem 0 -.1rem }
.reacoes span { display: inline-flex; align-items: center; gap: 2px; padding: 0 .4rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); font-size: .95rem; line-height: 1.5 }
.reacoes small { font-size: .72rem; color: #54656f }

/* OS BOTÕES E A LISTA DO ROBÔ (26/10/2026) */
.opcoes { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; border-top: 1px solid #e3e6e8; padding-top: 6px }
.opcoes .opcao { display: block; width: 100%; padding: 7px 10px; border: 1px solid #d5dadd; border-radius: 8px; background: #fff; color: #027eb5; font: inherit; text-align: center; text-decoration: none; cursor: pointer }
.opcoes .opcao:hover { background: #f0f7fb }
.opcoes .opcao:disabled { opacity: .6; cursor: wait }
.opcoes .opcao.escolhida { background: #d9fdd3; color: #1f5132; border-color: #a6d8a0 }
.opcoes.lista summary { cursor: pointer; color: #027eb5; text-align: center; padding: 6px; list-style: none }
.opcoes.lista[open] summary { border-bottom: 1px solid #e3e6e8; margin-bottom: 4px }
.opcoes.lista .opcao { text-align: left; margin-top: 4px }
.opcoes .secao { display: block; margin-top: 6px; font-size: .8rem; color: var(--apoio) }

/* O BACKUP DO CELULAR (26/10/2026) */
.andamento-do-backup { margin: 8px 0; font-weight: 600 }
.backups-anteriores { margin: 8px 0 0; padding-left: 18px; color: var(--apoio); font-size: .85rem }
.linha-do-backup { margin: 0 0 8px; font-size: 1.05rem }
.com-olho { display: flex; gap: 4px; align-items: center }
.com-olho input { flex: 1 }
.com-olho .olho { flex: 0 0 auto; width: 40px !important; min-width: 40px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d5dadd; background: #fff; color: var(--apoio); border-radius: 6px; padding: 0; cursor: pointer; user-select: none; touch-action: none }
.com-olho .olho.aberto { background: #d9fdd3 }
.quadro-da-linha > td { background: #f6faf8; border-left: 3px solid var(--verde); padding: 10px 12px }
