.chat-content {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

#chat-window #chat-input, #chat-form #chat-input { min-width: 0; }

.chat-content-user {
  white-space: pre-wrap;
}

.chat-content > :first-child { margin-top: 0; }
.chat-content > :last-child { margin-bottom: 0; }
.chat-content p { margin: 0.5em 0; }
.chat-content h1, .chat-content h2, .chat-content h3,
.chat-content h4, .chat-content h5, .chat-content h6 {
  margin: 0.85em 0 0.35em;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.4;
}
.chat-content ul, .chat-content ol { margin: 0.5em 0; padding-left: 1.5em; }
.chat-content ul { list-style: disc outside; }
.chat-content ol { list-style: decimal outside; }
.chat-content li { margin: 0.25em 0; }
.chat-content li > ul, .chat-content li > ol { margin: 0.25em 0; }
.chat-content a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.chat-content blockquote { border-left: 3px solid #94a3b8; margin: 0.5em 0; padding-left: 0.75em; }
.chat-content code { font-family: monospace; font-size: 0.9em; background: #00000008; }
.chat-content pre { max-width: 100%; overflow-x: auto; padding: 0.75em; margin: 0.5em 0; background: #00000008; border-radius: 6px; }
.chat-content pre code { background: none; overflow-wrap: normal; white-space: pre; }
.chat-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0.5em 0; }
.chat-content th, .chat-content td { border: 1px solid #d1d5db; padding: 0.35em 0.5em; text-align: start; }
.chat-content th { font-weight: 700; }
.chat-content hr { margin: 0.75em 0; border-top: 1px solid #d1d5db; }