.chat-panel { padding: clamp(16px, 3vw, 26px) }
.chat-tools, .chat-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: end }
.chat-tools { justify-content: space-between; margin-bottom: 20px }
.chat-tools label { width: min(100%, 290px) }
.chat-log {
  display: grid; align-content: start; gap: 14px; max-height: min(54vh, 650px);
  overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 12px 0; margin-bottom: 16px;
}
.chat-message { max-width: min(90%, 82ch); padding: 12px 16px; border-radius: 10px; background: #f0f5f5 }
.chat-message.mine { justify-self: end; background: #e0f2ed }
.chat-message strong { color: #285d5b; font-size: .84rem }
.chat-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px }
.chat-form { display: grid; gap: 12px }
.chat-form textarea {
  resize: vertical; min-height: 90px; padding: 10px 12px; border: 1px solid #aebfc3;
  border-radius: 7px; color: #173847; font: 400 1rem/1.45 Inter, "Segoe UI", Arial, sans-serif;
  background: white; width: 100%;
}
.chat-disclosure { font-size: .88rem; color: #4b656a; max-width: 80ch }
@media (max-width: 550px) {
  .chat-tools { align-items: center; gap: 10px }
  .chat-tools label { width: 100% }
  .chat-message { max-width: 100%; padding: 10px 12px }
}
