/* ============================================
   [24] Chat — quebra automática de linhas
   Corrige overflow das bolhas de mensagem com
   strings sem espaço (URLs longas, "aaaaa…", etc)
   ============================================ */

.chat-messages { min-width: 0; }

.chat-bubble {
  /* mantém o 72% original mas põe um teto no desktop */
  max-width: min(72%, 560px);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  hyphens: auto;
}

.chat-bubble p,
.chat-bubble span,
.chat-bubble a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-bubble img,
.chat-bubble video,
.chat-bubble audio,
.chat-bubble .chat-shared-post,
.chat-bubble .chat-image { max-width: 100%; height: auto; }

/* Links longos: também aceitam quebra */
.chat-bubble a { word-break: break-all; }
