.rich-source[hidden] { display:none !important; }
.rich-editor { border:1px solid var(--line,#dbe4ef); border-radius:9px; background:white; overflow:hidden; min-width:0; }
.rich-editor:focus-within { border-color:#6594fa; box-shadow:0 0 0 3px #2563eb14; }
.rich-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:3px; padding:5px 7px; border-bottom:1px solid #e7edf5; background:#f8fafc; }
.rich-toolbar button { min-width:30px; height:30px; padding:3px 7px; border:1px solid transparent; border-radius:5px; background:transparent; color:#334155; font-size:14px; font-weight:500; box-shadow:none; }
.rich-toolbar button:hover,.rich-toolbar button[aria-pressed="true"] { background:#e5edff; color:#174bc7; border-color:#b9ceff; }
.rich-toolbar button:focus-visible,.rich-toolbar select:focus-visible { outline:2px solid #2563eb; outline-offset:1px; }
.rich-toolbar .rich-color { width:auto; max-width:132px; height:30px; padding:3px 22px 3px 6px; font-size:13px; border:1px solid #dbe4ef; border-radius:5px; background-color:white; color:#334155; margin:0 5px 0 2px; }
.rich-host.ql-container { font:inherit; border:0; }
.rich-host .ql-editor { min-height:112px; max-height:360px; padding:12px 14px; font:inherit; line-height:1.5; overflow-wrap:anywhere; }
.rich-host .ql-editor:focus { outline:0; }
.rich-host .ql-editor.ql-blank::before { left:14px; right:14px; font-style:normal; color:#79879b; }
.rich-host .ql-editor p,.rich-host .ql-editor ol { margin:0; }
.rich-host .ql-code-block-container { background:#f1f5f9; color:#1e293b; border-radius:5px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; padding:10px 12px; }
.rich-editor.is-readonly .rich-toolbar { display:none; }
.rich-editor.is-readonly { background:#f8fafc; }
.rich-text,.comment-text.rich-text { white-space:normal; overflow-wrap:anywhere; min-width:0; }
.rich-text p { white-space:pre-wrap; margin:0 0 .6em; }
.rich-text p:last-child,.rich-text ul:last-child,.rich-text ol:last-child,.rich-text pre:last-child { margin-bottom:0; }
.rich-text ul,.rich-text ol { padding-left:1.7em; margin:.35em 0 .7em; }
.rich-text li { white-space:pre-wrap; padding-left:.15em; margin:.15em 0; }
.rich-text pre { margin:.6em 0; padding:12px 14px; border-radius:7px; background:#f1f5f9; color:#1e293b; overflow-x:auto; max-width:100%; white-space:pre; }
.rich-text pre code { font: .9em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre; }
.data-table .rich-text { min-width:140px; max-width:600px; }
@media(max-width:600px) {
 .rich-toolbar { gap:2px; padding:4px; }
 .rich-toolbar button { min-width:31px; height:34px; padding:4px 6px; }
 .rich-toolbar .rich-color { max-width:108px; height:34px; margin:0 2px; }
 .rich-host .ql-editor { max-height:280px; }
}
@media print {
 .rich-text pre { white-space:pre-wrap; overflow:visible; border:1px solid #dbe4ef; }
 .rich-text { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
