/* Chat-Antworten: gerendertes Markdown und Dunkelmodus (gemeinsam fuer / und /experte) */
.msg.md,.m.md{white-space:normal}
.md-body p{margin:0 0 .5em}.md-body>:last-child{margin-bottom:0}
.md-body p.mdh{font-weight:700}
.md-body ul,.md-body ol{margin:.2em 0 .5em;padding-inline-start:1.4em}
.md-body li{margin:.1em 0}
.md-body hr{border:0;border-top:1px solid currentColor;opacity:.25;margin:.6em 0}
.md-body code{font:.9em ui-monospace,Consolas,monospace;background:color-mix(in srgb,currentColor 10%,transparent);padding:0 .3em;border-radius:4px;direction:ltr;unicode-bidi:isolate}
.md-body pre{margin:.4em 0;padding:8px 10px;border-radius:8px;overflow:auto;background:color-mix(in srgb,currentColor 8%,transparent);direction:ltr;text-align:left}
.md-body pre code{background:none;padding:0;font-size:.85em;white-space:pre}

/* Dunkelmodus: Assistent-Antwort nicht mehr weiss */
html[data-theme=dark] .msg.bot:not(.ai){background:#1C2846!important;color:#E8ECF5!important;border-color:#2B3A5E!important}
html[data-theme=dark] .msg.bot.ai{background:#2E2A14!important;color:#F3EFD8!important;border-color:#5A4E1E!important}
html[data-theme=dark] .msg.me{background:#1559E6!important;color:#fff!important}
html[data-theme=dark] .msg .ml{color:#B4BCCD!important}
