.rx-vditor-wrapper { min-width:0; width:100%; }
.rx-vditor-help { color:#717b8b; font-size:12px; margin:0 0 10px; line-height:1.7; }
.rx-vditor-wrapper .vditor { border:1px solid #dce2e9; border-radius:12px; overflow:visible; --toolbar-background:#f6f8fa; --border-color:#dce2e9; }
/* Tooltips extend above the editor; clipping the root hides them regardless of z-index. */
.rx-vditor-wrapper .vditor-toolbar { border-radius:12px 12px 0 0; padding:8px!important; border-bottom:1px solid #e8ecf0; }
.rx-vditor-wrapper .vditor-reset { padding:20px!important; font-family:inherit; font-size:16px; line-height:1.8; }
.rx-vditor-wrapper .vditor-toolbar button { border:0; box-shadow:none; }
.rx-vditor-wrapper .vditor-reset table { width:auto; }
.rx-vditor-wrapper .rx-vditor-status { font-size:12px; color:#697586; margin:8px 0; }
.rx-vditor-wrapper .xefu-container { margin-top:12px; }
.rx-vditor-wrapper .xefu-list ul { list-style:none; padding:0; }
@media(max-width:600px) { .rx-vditor-wrapper .vditor-reset { padding:14px!important; } .rx-vditor-help { font-size:11px; } .rx-vditor-wrapper .vditor-toolbar { flex-wrap:wrap; } .rx-vditor-wrapper .vditor-panel { max-width:calc(100vw - 48px); } }
.rx-vditor-wrapper .rx-mode-label { font-family:inherit; font-size:12px; font-weight:500; line-height:15px; white-space:nowrap; }
.rx-vditor-wrapper .vditor-toolbar button[data-type="edit-mode"] { display:inline-flex; align-items:center; justify-content:center; width:auto; height:35px; padding:10px 8px; border:0; border-radius:4px; background:transparent; color:var(--toolbar-color, #586069); }
.rx-vditor-wrapper .xefu-dropzone { border:1px dashed #cbd9d1; background:#f6f9f7; border-radius:10px; padding:16px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:12px; color:#65786c; }
.rx-vditor-wrapper .xefu-btn { border:1px solid #ccd9d1; background:white; color:#285c48; padding:7px 10px; border-radius:6px; cursor:pointer; font:inherit; }
.rx-vditor-wrapper .xefu-dropzone-message { margin:0; }

.rx-vditor-wrapper .vditor-toolbar button[data-type="edit-mode"]:hover{background:rgba(88,96,105,.08);color:var(--toolbar-hover-color, #4285f4)}
.rx-vditor-wrapper .vditor-toolbar button[data-type="edit-mode"]:focus-visible{outline:2px solid #4285f4;outline-offset:1px}
.rx-ai-writing{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px}.rx-ai-writing button{min-height:35px;padding:7px 11px;border:1px solid #dce2e9;border-radius:5px;background:#f6f8fa;color:#435950;font-family:inherit;font-size:12px;font-weight:600;line-height:1.5;cursor:pointer}.rx-ai-writing button:hover{background:#eaf0eb}.rx-ai-writing button:disabled{opacity:.5;cursor:wait}.rx-ai-writing .rx-ai-stop{color:#963e32;border-color:#e7c8c2;background:#fff7f5}.rx-ai-writing [hidden]{display:none!important}.rx-ai-message{font-size:11px;color:#728078;line-height:1.6}.rx-ai-writing button:focus-visible{outline:2px solid #285b46;outline-offset:2px}

/* Inline math has one visible representation while its source is being edited. */
.rx-vditor-wrapper .vditor-wysiwyg [data-type="math-inline"]:has(> code[style*="inline-block"]) > .vditor-wysiwyg__preview{display:none}
.rx-vditor-wrapper .vditor-wysiwyg [data-type="math-inline"] > code{white-space:pre-wrap;overflow-wrap:anywhere}
