.message-text.assistant-text { white-space: normal; min-width: 0; }
.assistant-text > :first-child { margin-top: 0; }
.assistant-text > :last-child { margin-bottom: 0; }
.assistant-text p { margin: 0 0 .75rem; }
.assistant-text h1, .assistant-text h2, .assistant-text h3,
.assistant-text h4, .assistant-text h5, .assistant-text h6 { margin: 1rem 0 .5rem; font-weight: 700; line-height: 1.3; }
.assistant-text h1 { font-size: 1.5rem; }
.assistant-text h2 { font-size: 1.3rem; }
.assistant-text h3 { font-size: 1.15rem; }
.assistant-text ul, .assistant-text ol { padding-left: 1.5rem; }
.assistant-text pre { max-width: 100%; overflow-x: auto; padding: .75rem; border-radius: .5rem; background: rgba(127,127,127,.12); color: inherit; white-space: pre; }
.assistant-text code { color: inherit; background: rgba(127,127,127,.12); padding: .1em .25em; border-radius: .2rem; }
.assistant-text pre code { background: transparent; padding: 0; white-space: pre; }
.assistant-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-bottom: .75rem; }
.assistant-text th, .assistant-text td { border: 1px solid rgba(127,127,127,.4); padding: .4rem .6rem; }
.assistant-text blockquote { border-left: 3px solid currentColor; padding-left: .75rem; opacity: .85; }
.assistant-text .katex-display { overflow-x: auto; overflow-y: hidden; padding: .25rem 0; }
.assistant-text .katex { font-size: 1.1em; }
