/* Chat thread (comentarios) */
/* Chat thread (comentarios) */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  max-width: 85%;
}

.msg .bubble {
  padding: .5rem .75rem;
  border-radius: .75rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.msg .meta {
  font-size: .75rem;
  color: #6c757d;
  margin-top: .2rem;
}

.msg.other { align-self: flex-start; flex-direction: row; }
.msg.other .bubble { background: #f1f3f5; color: #212529; border-top-left-radius: .25rem; }
.msg.other .avatar { order: -1; }

.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bubble { background: #0d6efd; color: #fff; border-top-right-radius: .25rem; }

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #dee2e6;
  color: #495057;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  user-select: none;
}

@media (max-width: 576px) {
  .msg { max-width: 95%; }
}