.bubble.markdown,.preview.markdown {white-space:normal;min-width:0;overflow-wrap:anywhere}
.markdown>:first-child {margin-top:0}
.markdown>:last-child {margin-bottom:0}
.markdown p {margin:0 0 .85em}
.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6 {font-weight:650;line-height:1.45;margin:1.15em 0 .5em;color:#493061}
.markdown h1 {font-size:1.45em}.markdown h2 {font-size:1.25em}.markdown h3 {font-size:1.12em}
.markdown ul,.markdown ol {padding-left:1.6em;margin:.5em 0 .9em;list-style-position:outside}
.markdown ul {list-style-type:disc}.markdown ol {list-style-type:decimal}
.markdown ul ul {list-style-type:circle}.markdown li {margin:.25em 0;display:list-item}
.markdown li>p {margin:.2em 0}.markdown strong {font-weight:650}
.markdown a {color:#784bb0;text-decoration:underline;text-underline-offset:3px}
.markdown blockquote {margin:.8em 0;padding:.25em 0 .25em 1em;border-left:3px solid #b99ad9;color:#7d698e}
.markdown blockquote p:last-child {margin-bottom:0}
.markdown hr {border:0;border-top:1px solid #daccE8;margin:1.2em 0}
.markdown :not(pre)>code {font: .9em ui-monospace,SFMono-Regular,Consolas,monospace;background:#e6dcef;color:#653c84;padding:.15em .35em;border-radius:5px;white-space:break-spaces}
.code-block {margin:.8em 0;border:1px solid #e1d5ec;border-radius:12px;overflow:hidden;background:#fcfaff}
.code-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 12px;background:#eae1f2;font-size:11px;color:#7e648f}
.code-toolbar button {color:#714794;font:inherit;padding:2px 5px;border-radius:4px}
.code-toolbar button:hover {background:#ded0eb}
.markdown pre {max-width:100%;overflow-x:auto;margin:0;padding:14px 16px;white-space:pre;line-height:1.65;text-align:left;background:#fcfaff;color:#493553;border-radius:8px}
.markdown pre code {font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal}
.markdown-table {max-width:100%;overflow-x:auto;margin:.8em 0;border:1px solid #ded0e9;border-radius:10px}
.markdown table {border-collapse:collapse;width:100%;font-size:.93em}
.markdown th,.markdown td {padding:8px 12px;border-bottom:1px solid #e2d8eb;min-width:90px;text-align:left}
.markdown th {background:#eae1f2;font-weight:600}.markdown tr:last-child td {border-bottom:0}
.stream-note {display:flex;align-items:center;gap:7px}
.stream-dot {width:6px;height:6px;border-radius:50%;background:#9d72cd;flex-shrink:0;animation:stream-pulse 1.4s ease-in-out infinite}
.is-streaming {border-color:#d9c4ed}.is-partial {border-style:dashed}
@keyframes stream-pulse {50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.stream-dot{animation:none}}
