/* Conversas ao vivo (aba O que a Ana registrou): visual do WhatsApp, claro e escuro. */
.vg .vg-tile.cv{--w-lista:#fff;--w-barra:#f0f2f5;--w-txt:#111b21;--w-sub:#54656f;--w-linha:#e9edef;--w-sel:#f0f2f5;--w-hover:#f5f6f6;--w-fundo:#efeae2;--w-entra:#fff;--w-sai:#d9fdd3;--w-verde:#008069;--w-chip:#d9fdd3;--w-chip-txt:#015c4b;--w-foto:#dfe5e7;--w-foto-i:#fff;--w-cartao:rgba(11,20,26,.06);--w-link:#027eb5;--w-aviso:#995500;--w-erro:#c4162f;
  --w-papel:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27260%27 height=%27260%27 fill=%27none%27 stroke=%27rgba%2811%2C20%2C26%2C.07%29%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M18 22h26a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H30l-9 8v-8h-3a6 6 0 0 1-6-6V28a6 6 0 0 1 6-6Z%27/%3E%3Ccircle cx=%27104%27 cy=%2734%27 r=%2714%27/%3E%3Cpath d=%27M98 38q6 6 12 0M99 29v1M109 29v1%27/%3E%3Cpath d=%27M170 18l5 11 12 1-9 8 3 12-11-6-11 6 3-12-9-8 12-1Z%27/%3E%3Cpath d=%27M226 40c-12-8-14-18-7-21 4-2 7 1 7 4 0-3 3-6 7-4 7 3 5 13-7 21Z%27/%3E%3Cpath d=%27M22 96h30v20a10 10 0 0 1-10 10H32a10 10 0 0 1-10-10Zm30 4h5a6 6 0 0 1 0 14h-5M30 88v-6M42 88v-6%27/%3E%3Crect x=%2796%27 y=%2788%27 width=%2724%27 height=%2740%27 rx=%275%27/%3E%3Cpath d=%27M104 121h8%27/%3E%3Cpath d=%27M164 112l34-24-10 36-8-10Zm16 2 18-26%27/%3E%3Ccircle cx=%27232%27 cy=%27108%27 r=%2715%27/%3E%3Cpath d=%27M232 99v9l7 4%27/%3E%3Cpath d=%27M24 176h14l5-7h12l5 7h6v28H24Z%27/%3E%3Ccircle cx=%2745%27 cy=%27190%27 r=%278%27/%3E%3Cpath d=%27M108 204v-30l22-6v30%27/%3E%3Ccircle cx=%27102%27 cy=%27204%27 r=%276%27/%3E%3Ccircle cx=%27124%27 cy=%27198%27 r=%276%27/%3E%3Crect x=%27164%27 y=%27172%27 width=%2736%27 height=%2726%27 rx=%273%27/%3E%3Cpath d=%27m164 175 18 13 18-13%27/%3E%3Cpath d=%27M222 168h22v36l-11-8-11 8Z%27/%3E%3Cpath d=%27M68 62l8 8M76 62l-8 8M144 70h10M149 65v10M70 146q5-8 10 0t10 0M206 66v1M80 232l10-10 10 10-10 10ZM152 236q8-14 18 0M20 236h18M214 236a8 8 0 1 0 16 0 8 8 0 1 0-16 0M206 142h12%27/%3E%3C/svg%3E");
  --w-fonte:"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
  display:grid;grid-template-columns:minmax(270px,380px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:max(480px,calc(100dvh - 235px));overflow:hidden;padding:0;border-radius:14px;border:1px solid var(--w-linha);background:var(--w-lista);color:var(--w-txt);font-family:var(--w-fonte);scroll-margin-top:8px}
html[data-theme="dark"] .vg .vg-tile.cv{--w-lista:#111b21;--w-barra:#202c33;--w-txt:#e9edef;--w-sub:#8696a0;--w-linha:#222d34;--w-sel:#2a3942;--w-hover:#202c33;--w-fundo:#0b141a;--w-entra:#202c33;--w-sai:#005c4b;--w-verde:#00a884;--w-chip:#0a332c;--w-chip-txt:#d9fdd3;--w-foto:#6a7175;--w-foto-i:#cfd4d6;--w-cartao:rgba(0,0,0,.2);--w-link:#53bdeb;--w-aviso:#ffd279;--w-erro:#ff8a95;
  --w-papel:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27260%27 height=%27260%27 fill=%27none%27 stroke=%27rgba%28255%2C255%2C255%2C.045%29%27 stroke-width=%271.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M18 22h26a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H30l-9 8v-8h-3a6 6 0 0 1-6-6V28a6 6 0 0 1 6-6Z%27/%3E%3Ccircle cx=%27104%27 cy=%2734%27 r=%2714%27/%3E%3Cpath d=%27M98 38q6 6 12 0M99 29v1M109 29v1%27/%3E%3Cpath d=%27M170 18l5 11 12 1-9 8 3 12-11-6-11 6 3-12-9-8 12-1Z%27/%3E%3Cpath d=%27M226 40c-12-8-14-18-7-21 4-2 7 1 7 4 0-3 3-6 7-4 7 3 5 13-7 21Z%27/%3E%3Cpath d=%27M22 96h30v20a10 10 0 0 1-10 10H32a10 10 0 0 1-10-10Zm30 4h5a6 6 0 0 1 0 14h-5M30 88v-6M42 88v-6%27/%3E%3Crect x=%2796%27 y=%2788%27 width=%2724%27 height=%2740%27 rx=%275%27/%3E%3Cpath d=%27M104 121h8%27/%3E%3Cpath d=%27M164 112l34-24-10 36-8-10Zm16 2 18-26%27/%3E%3Ccircle cx=%27232%27 cy=%27108%27 r=%2715%27/%3E%3Cpath d=%27M232 99v9l7 4%27/%3E%3Cpath d=%27M24 176h14l5-7h12l5 7h6v28H24Z%27/%3E%3Ccircle cx=%2745%27 cy=%27190%27 r=%278%27/%3E%3Cpath d=%27M108 204v-30l22-6v30%27/%3E%3Ccircle cx=%27102%27 cy=%27204%27 r=%276%27/%3E%3Ccircle cx=%27124%27 cy=%27198%27 r=%276%27/%3E%3Crect x=%27164%27 y=%27172%27 width=%2736%27 height=%2726%27 rx=%273%27/%3E%3Cpath d=%27m164 175 18 13 18-13%27/%3E%3Cpath d=%27M222 168h22v36l-11-8-11 8Z%27/%3E%3Cpath d=%27M68 62l8 8M76 62l-8 8M144 70h10M149 65v10M70 146q5-8 10 0t10 0M206 66v1M80 232l10-10 10 10-10 10ZM152 236q8-14 18 0M20 236h18M214 236a8 8 0 1 0 16 0 8 8 0 1 0-16 0M206 142h12%27/%3E%3C/svg%3E")}
html[data-theme="dark"] .vg .vg-tile.cv .cv-msg.saida{--w-sub:#a9c7c0}
.vg .cv button{font-family:var(--w-fonte);cursor:pointer}
.vg .cv svg{fill:currentColor}
.vg .cv svg.ico{fill:none}

/* coluna das conversas */
.cv-lado{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--w-linha)}
.cv-topo{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 8px}
.vg .cv-topo h2{margin:0;font:700 22px/1.2 var(--w-fonte);color:var(--w-txt)!important;letter-spacing:0}
.cv-vivo{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--w-sub)}
.cv-vivo i{width:8px;height:8px;border-radius:50%;background:currentColor}
.cv-vivo.on{color:var(--w-verde)}
.vg .cv label.cv-busca{display:flex;flex-direction:row;align-items:center;gap:12px;margin:0 12px;padding:0 14px;height:38px;flex-shrink:0;border-radius:999px;background:var(--w-barra);color:var(--w-sub);border:2px solid transparent}
.vg .cv label.cv-busca:focus-within{border-color:var(--w-verde)}
.cv-busca .ico{width:16px;height:16px;flex-shrink:0}
.vg .cv label.cv-busca input{flex:1;min-width:0;width:auto;height:100%;border:0;outline:0;padding:0;margin:0;border-radius:0;background:none;box-shadow:none;color:var(--w-txt);font:400 14px var(--w-fonte)}
.cv-busca input::placeholder{color:var(--w-sub)}
.cv-chips{display:flex;flex-wrap:wrap;gap:7px;padding:10px 12px;flex-shrink:0;scrollbar-width:none}
.vg .cv .cv-chips button{flex-shrink:0;padding:6px 12px;border-radius:999px;border:1px solid var(--w-linha);color:var(--w-sub);font-size:13px;line-height:1.3}
.vg .cv .cv-chips button.on{background:var(--w-chip);border-color:var(--w-chip);color:var(--w-chip-txt);font-weight:600}
.cv-lado ul{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1;min-height:0}
.vg .cv .cv-lado li button{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:0 0 0 13px;color:var(--w-txt)}
.vg .cv .cv-lado li button.on{background:var(--w-sel)}
.cv-foto{width:49px;height:49px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--w-foto);color:var(--w-foto-i)}
.cv-foto svg{display:block;width:100%;height:100%}
.cv-info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px;height:72px;padding-right:14px;border-bottom:1px solid var(--w-linha)}
.cv-l1,.cv-l2{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.vg .cv .cv-l1 b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:500;color:var(--w-txt)}
.cv-l1 time{font-size:12px;color:var(--w-sub);font-variant-numeric:tabular-nums}
.cv-previa{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px;color:var(--w-sub)}
.cv-papel{flex-shrink:0;font-size:11px;line-height:1;padding:4px 7px;border-radius:5px;background:var(--w-barra);color:var(--w-sub);font-weight:600}
.cv-lado li button.on .cv-papel{background:var(--w-lista)}
.cv-nada{padding:26px 18px;text-align:center;font-size:13.5px;color:var(--w-sub)}

/* conversa aberta */
.cv-painel{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--w-fundo) var(--w-papel)}
.cv-escolha{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;background:var(--w-barra);color:var(--w-sub);font-size:14px}
.vg .cv .cv-escolha svg{width:70px;height:70px;fill:none;stroke:currentColor;stroke-width:1;opacity:.55}
.vg .cv .cv-escolha b{font-size:24px;font-weight:300;color:var(--w-txt)}
.cv-cab{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 16px;background:var(--w-barra)}
.cv-cab .cv-foto{width:40px;height:40px}
.cv-cab div{min-width:0}
.vg .cv .cv-cab b{display:block;font-size:16px;font-weight:500;color:var(--w-txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cv-cab div span{display:block;font-size:12.5px;color:var(--w-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vg .cv .cv-volta{display:none;width:34px;height:40px;place-items:center;color:var(--w-txt);flex-shrink:0;margin-left:-8px}
.cv-volta .ico{width:20px;height:20px}
.cv-fio{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px clamp(14px,5%,56px) 16px;display:flex;flex-direction:column;gap:2px}
.cv-antes,.cv-dia{align-self:center;flex-shrink:0;margin:8px 0 6px}
.vg .cv .cv-antes button,.cv-dia span{display:block;padding:6px 12px;border-radius:8px;background:var(--w-entra);color:var(--w-sub);font-size:12.5px;line-height:1.3;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.cv-msg{position:relative;flex-shrink:0;max-width:min(75%,560px);padding:6px 7px 7px 9px;border-radius:8px;color:var(--w-txt);font-size:14.2px;line-height:1.38;overflow-wrap:anywhere;filter:drop-shadow(0 1px .5px rgba(11,20,26,.13))}
.cv-msg.entrada{align-self:flex-start;background:var(--w-entra)}
.cv-msg.saida{align-self:flex-end;background:var(--w-sai)}
.cv-msg.primeira{margin-top:9px}
.cv-msg.primeira::before{content:"";position:absolute;top:0;width:9px;height:13px;background:inherit}
.cv-msg.entrada.primeira{border-top-left-radius:0}
.cv-msg.entrada.primeira::before{right:100%;clip-path:polygon(0 0,100% 0,100% 100%,18% 12%)}
.cv-msg.saida.primeira{border-top-right-radius:0}
.cv-msg.saida.primeira::before{left:100%;clip-path:polygon(0 0,100% 0,82% 12%,0 100%)}
.cv-msg.erro{outline:1px solid var(--w-erro)}
.vg .cv .cv-autor{display:block;margin-bottom:2px;font-size:12.8px;font-weight:600;color:var(--w-verde)}
html[data-theme="dark"] .vg .cv .cv-autor{color:#7ae3c3}
.vg .cv .cv-autor.auto{color:var(--w-aviso)}
.cv-corpo{display:flow-root}
.cv-txt{white-space:pre-wrap}
.cv-txt b{color:inherit}
.vg .cv .cv-msg a{color:var(--w-link);text-decoration:none}
.vg .cv .cv-msg a:hover{text-decoration:underline}
.cv-meta{float:right;display:inline-flex;align-items:center;gap:3px;margin:6px 0 -5px 12px;font-size:11px;line-height:1.4;color:var(--w-sub);font-variant-numeric:tabular-nums}
.cv-msg.erro .cv-meta{color:var(--w-erro)}
.vg .cv svg.cv-tique{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.vg .cv .cv-midia{display:flex;align-items:center;gap:10px;width:min(290px,60vw);margin:1px 0 4px;padding:10px;border-radius:7px;background:var(--w-cartao);color:var(--w-txt);text-align:left}
.vg .cv div.cv-midia{cursor:default}
.cv-micone{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:#008069;color:#fff}
.cv-midia.documento .cv-micone{border-radius:7px;background:#c9373c}
.cv-micone svg{width:19px;height:19px}
.cv-mnome{font-size:14px}
.vg .cv a.cv-midia{text-decoration:none;color:var(--w-txt)}
.cv-mnome{min-width:0;overflow-wrap:anywhere}
.cv-mnome b{display:block;font-weight:500;line-height:1.3}
.cv-mnome small{display:block;font-size:12px;color:var(--w-sub)}
.vg .cv .cv-foto-msg{display:block;width:min(280px,62vw);min-height:80px;margin:1px 0 4px;padding:0;border:0;border-radius:7px;overflow:hidden;background:var(--w-cartao);color:var(--w-sub)}
.cv-foto-msg img{display:block;width:100%;max-height:340px;object-fit:cover}
.cv-foto-msg span{display:none;padding:28px 12px;font-size:13px}
.cv-foto-msg.falhou span{display:block}
.cv-toca{display:block;width:min(290px,62vw);margin:1px 0 4px}
video.cv-toca{max-height:340px;border-radius:7px;background:#000}
dialog.cv-visor{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:#0b141a;display:flex;flex-direction:column}
dialog.cv-visor::backdrop{background:#0b141a}
.cv-visor div{display:flex;justify-content:flex-end;gap:10px;padding:max(12px,env(safe-area-inset-top)) 12px 12px}
.cv-visor a,.cv-visor button{display:grid;place-items:center;min-height:42px;padding:0 18px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:none;color:#fff;font:600 14px "Segoe UI","Helvetica Neue",Arial,sans-serif;text-decoration:none;cursor:pointer}
.cv-visor img{flex:1;min-height:0;width:100%;object-fit:contain}
.cv-foto{position:relative}
.cv-foto img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.vg .cv .cv-lado li button .cv-papel.voce{background:var(--w-chip);color:var(--w-chip-txt)}
.vg .cv .cv-autor.pessoa{color:var(--w-link)}
.cv-quem{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px 7px 16px;background:var(--w-barra);border-top:1px solid var(--w-linha);color:var(--w-sub);font-size:12.5px;line-height:1.35}
.cv-quem span{flex:1;min-width:0}
.cv-quem.voce{background:var(--w-chip);color:var(--w-chip-txt)}
.vg .cv .cv-quem b{color:inherit}
.vg .cv .cv-quem button{flex-shrink:0;min-height:34px;padding:6px 14px;border-radius:999px;background:var(--w-lista);border:1px solid var(--w-linha);color:var(--w-txt);font-size:12.5px;font-weight:600}
.vg .cv .cv-escrever{display:flex;flex-direction:row;align-items:flex-end;gap:8px;margin:0;padding:8px 12px;background:var(--w-barra)}
.vg .cv .cv-escrever textarea{flex:1;min-width:0;width:auto;height:42px;min-height:42px;max-height:130px;margin:0;padding:10px 16px;resize:none;border:0;border-radius:21px;background:var(--w-entra);color:var(--w-txt);box-shadow:none;font:400 15px/22px var(--w-fonte)}
.cv-escrever textarea::placeholder{color:var(--w-sub)}
.vg .cv .cv-escrever button{width:42px;height:42px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#008069;color:#fff}
.vg .cv .cv-escrever button:disabled{opacity:.5;cursor:default}
.vg .cv .cv-escrever button svg{width:20px;height:20px}
.vg .cv :focus-visible{outline:2px solid var(--w-verde);outline-offset:-2px}
.vg .cv label.cv-busca input:focus-visible{outline:0}
@media (hover:hover){.vg .cv .cv-lado li button:not(.on):hover{background:var(--w-hover)}}
@media (max-width:860px){
  .vg .vg-tile.cv{grid-template-columns:minmax(0,1fr)}
  .cv-lado{border-right:0}
  .cv-chips{flex-wrap:nowrap;overflow-x:auto}
  .cv-painel{display:none}
  .cv.aberta .cv-lado{display:none}
  .cv.aberta .cv-painel{display:flex}
  .vg .cv .cv-volta{display:grid}
  .cv-fio{padding-left:16px;padding-right:16px}
  .cv-msg{max-width:88%}
  .vg .cv label.cv-busca input{font-size:16px}
  .vg .cv .cv-escrever textarea{font-size:16px}
}

/* celular e tablet: a aba Conversas ocupa a tela toda, como o aplicativo. Só a lista e a conversa rolam. */
@media (max-width:980px){
  body:has(#cvRaiz){overflow:hidden}
  body:has(#cvRaiz) .side:not(.open){box-shadow:none}   /* a sombra do menu fechado vazava sobre a lista */
  body:has(#cvRaiz) .page{display:flex;flex-direction:column;height:100vh;height:var(--cv-alto,100dvh);max-width:none;margin:0;padding:0;overflow:hidden}
  body:has(#cvRaiz) .page>:not(.vg){display:none}
  body:has(#cvRaiz) .page>.vg{flex:1;min-height:0;display:flex;flex-direction:column}
  body:has(#cvRaiz) .vg-topo{display:none}
  body:has(#cvRaiz) .vg-painel{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;animation:none;transform:none}
  /* abas ao lado do botão do menu, sem cortar nenhum nome */
  body:has(#cvRaiz) .vg-painel>.toolbar{flex-shrink:0;display:flex;align-items:center;min-height:62px;margin:0;padding:7px 8px 7px 58px}
  body:has(#cvRaiz) .toolbar .seg{display:flex;flex-wrap:nowrap;width:100%;max-width:520px;overflow:visible}
  body:has(#cvRaiz) .toolbar .seg button{flex:1 1 auto;justify-content:center;min-width:0;min-height:40px;padding:5px 6px;font-size:11.5px;line-height:1.2;white-space:normal;text-align:center}
  body:has(#cvRaiz) .vg .vg-tile.cv{flex:1;min-height:0;height:auto;width:100%;border-width:1px 0 0;border-radius:0;box-shadow:none}
}
@media (max-width:860px){
  /* conversa aberta: tela inteira, com a seta para voltar */
  body:has(#cvRaiz.aberta) .top,body:has(#cvRaiz.aberta) .vg-painel>.toolbar{display:none}
  body:has(#cvRaiz.aberta) .vg .vg-tile.cv{border-top:0}
}
/* nas outras duas abas os três nomes também cabem na largura do celular */
@media (max-width:620px){
  .vg-painel:has(>.rev) .toolbar .seg{display:flex;flex-wrap:nowrap;width:100%;overflow:visible}
  .vg-painel:has(>.rev) .toolbar .seg button{flex:1 1 auto;justify-content:center;min-width:0;min-height:40px;padding:5px 6px;font-size:11.5px;line-height:1.2;white-space:normal;text-align:center}
}
@media (max-width:380px){body:has(#cvRaiz) .toolbar .seg button{padding-left:3px;padding-right:3px;font-size:11px}}
/* o aviso rapido aparece acima da caixa de escrever */
body.vidro:has(#cvForm) .toast{bottom:136px}
.vg .cv .cv-escrever textarea:focus{border:0;outline:0;box-shadow:inset 0 0 0 2px var(--w-verde)}
