/* ============================================================
   SERENZA · chat.css
   Chat / internal messages component.
   Requires colors_and_type.css (tokens).
   ============================================================ */

/* ---------- CHAT / MESSAGES ---------- */
.sz-chat-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
}
.sz-chat-msg {
  display: flex;
  gap: 10px;
  max-width: 75%;
}
.sz-chat-msg--own {
  flex-direction: row-reverse;
  margin-left: auto;
}
.sz-chat-msg__bubble {
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
}
.sz-chat-msg--own .sz-chat-msg__bubble {
  background: var(--forest);
  color: var(--paper);
}
.sz-chat-msg:not(.sz-chat-msg--own) .sz-chat-msg__bubble {
  background: var(--paper-soft);
  color: var(--ink);
}
.sz-chat-msg__meta {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 4px;
}
.sz-chat-msg--own .sz-chat-msg__meta { text-align: right; }

.sz-chat-input {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--paper-deep);
  background: var(--paper-soft);
}
.sz-chat-input .sz-textarea {
  min-height: 44px;
  resize: none;
}
