.conversa { display: flex; flex-direction: column; background: var(--bg-chat); min-width: 0; position: relative; }
.conversa::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, #fff 1px, transparent 1px);
  background-size: 120px 120px, 90px 90px;
}
.cv-topo {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; background: var(--bg-header); border-bottom: 1px solid var(--linha); z-index: 2;
}
.cv-topo .quem { min-width: 0; }
.cv-topo .quem b { font-size: 15px; font-weight: 500; display: block; }
.cv-topo .quem span { font-size: 12px; color: var(--texto-2); }
.cv-topo .acoes { margin-left: auto; display: flex; gap: 4px; }

.mensagens { flex: 1; overflow-y: auto; padding: 18px 6vw 12px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.dia { align-self: center; background: var(--bg-painel); color: var(--texto-2); font-size: 11.5px;
  padding: 5px 12px; border-radius: 8px; margin: 10px 0; box-shadow: var(--sombra); }

.bolha {
  position: relative; max-width: min(72%, 560px);
  padding: 7px 10px 6px; border-radius: 10px; box-shadow: var(--sombra);
  font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word;
}
.bolha.in { align-self: flex-start; background: var(--bolha-in); border-top-left-radius: 0; }
.bolha.out { align-self: flex-end; background: var(--bolha-out); border-top-right-radius: 0; }
[data-tema="claro"] .bolha.in { color: #111b21; }
.bolha .meta { display: flex; align-items: center; gap: 4px; justify-content: flex-end;
  font-size: 10.5px; color: rgba(233,237,239,.6); margin-top: 3px; }
[data-tema="claro"] .bolha.in .meta { color: #667781; }
.bolha .meta .tique { color: #53bdeb; letter-spacing: -2px; }
.bolha.erro { background: #3a1f24; color: #ffd7dc; }

.digitando { display: flex; gap: 4px; align-items: center; padding: 9px 12px; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--texto-2); animation: pula 1.2s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; }
.digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.ferramenta {
  align-self: center; max-width: 86%; font-family: var(--mono); font-size: 11.5px;
  color: #9fe3d0; background: rgba(0, 168, 132, .12); border: 1px dashed rgba(0, 168, 132, .45);
  padding: 5px 10px; border-radius: 8px;
}
[data-tema="claro"] .ferramenta { color: #00695f; background: rgba(0, 128, 105, .08); }

.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px 14px; background: var(--bg-header); z-index: 2; }
.composer textarea {
  flex: 1; resize: none; max-height: 130px; padding: 11px 14px; border-radius: 20px;
  background: var(--bg); border: 0; outline: none; line-height: 1.4;
}
.composer textarea:focus { box-shadow: inset 0 0 0 1px var(--acento); }
.composer .enviar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--acento);
  display: grid; place-items: center; font-size: 18px; color: #0b141a; flex: none;
}
.composer .enviar:disabled { opacity: .45; cursor: not-allowed; }
.dica { text-align: center; font-size: 11px; color: var(--texto-2); padding: 0 0 8px; background: var(--bg-header); z-index: 2; }

.vazio { display: grid; place-items: center; height: 100%; text-align: center; color: var(--texto-2); padding: 24px; }
.vazio h2 { color: var(--texto); font-size: 20px; margin: 8px 0; }
