.rich-editor.rte-shell{background:#fff;flex-direction:column;display:flex;position:relative}.editor-description .rich-editor.rte-shell:not(.editor-expanded){position:absolute}.rte-shell .editor-toolbar.rte-toolbar{color:#50545a;background:#fafbfc;border-bottom:1px solid #e4e9f0;flex-wrap:wrap;align-items:center;gap:2px;height:auto;min-height:44px;padding:5px 10px;display:flex;position:relative}.rte-shell .rte-toolbar .rte-tool{color:#4e535a;background:0 0;border:0;border-radius:5px;flex:0 0 28px;justify-content:center;align-items:center;width:28px;min-width:0;height:32px;padding:4px;font-size:19px;line-height:24px;display:inline-flex}.rte-shell .rte-toolbar .rte-tool:hover,.rte-shell .rte-toolbar .rte-tool.active{color:#258fe9;background:#e8f3ff}.rte-shell .rte-toolbar .rte-tool:disabled{opacity:.32;cursor:default}.rte-tool:focus-visible,.rte-text-button:focus-visible,.rte-menu button:focus-visible{outline-offset:1px;outline:2px solid #49a8fc}.rte-toolbar .rte-divider{background:#e1e5ea;width:1px;height:22px;margin:0 5px;display:block}.rte-toolbar .rte-toolbar-space{flex:1;min-width:6px}.rte-shell .rte-toolbar .rte-text-button{color:#7891a7;white-space:nowrap;background:0 0;border:0;border-radius:5px;width:auto;height:30px;margin:0;padding:4px 7px;font-size:11px}.rte-shell .rte-toolbar .rte-text-button:hover{color:#258fe9;background:#e8f3ff}.rte-heading-symbol{align-items:end;font-family:Georgia,serif;display:flex}.rte-heading-symbol small{font-family:inherit;font-size:11px;line-height:15px}.rte-color-symbol{border-bottom:3px solid;height:23px;font-family:Georgia,serif;line-height:21px}.rte-highlight-symbol{font-family:Georgia,serif;line-height:20px}.rte-quote-symbol{font-family:Georgia,serif;font-size:27px;line-height:25px}.rte-menu{z-index:3500;color:#50545a;background:#fff;border:1px solid #e0e5ec;border-radius:10px;width:224px;max-height:min(420px,100vh - 16px);padding:7px;position:fixed;overflow-y:auto;box-shadow:0 8px 26px #29394b20}.rte-menu>button{text-align:left;width:100%;min-height:36px;color:inherit;background:0 0;border:0;border-radius:5px;align-items:center;gap:14px;padding:8px 12px;font-family:inherit;font-size:14px;display:flex}.rte-menu button:hover{color:#258fe9;background:#edf6ff}.rte-menu hr{border:0;border-top:1px solid #e5e9ee;margin:6px 4px}.rte-menu-heading button:last-child{font-size:19px;font-weight:600}.rte-swatches{grid-template-columns:repeat(5,1fr);gap:9px;padding:9px 10px;display:grid}.rte-swatches button{border:1px solid #d5dbe1;border-radius:5px;width:28px;height:28px;padding:0}.rte-swatches button:hover{outline-offset:2px;outline:2px solid #49a8fc}.rte-menu-emoji{width:288px}.rte-emojis{grid-template-columns:repeat(8,1fr);gap:2px;display:grid}.rte-emojis button{background:0 0;border:0;border-radius:5px;width:31px;height:34px;padding:0;font-size:21px}.rte-paint-hint{z-index:3;color:#6287a7;pointer-events:none;background:#f1f8ff;border:1px solid #cae4ff;border-radius:8px;padding:8px 12px;font-size:12px;position:absolute;top:48px;right:16px}.rte-shell .editor-content-wrap{flex:1;height:auto;min-height:0;position:relative}.rte-shell .editor-content-wrap>div:has(>.tiptap){height:100%}.rte-shell .editor-content-wrap .tiptap{color:#444;outline:none;height:100%;min-height:0;padding:24px 28px 40px 44px;font-size:16px;line-height:1.8;overflow-y:auto}.rte-shell .tiptap h1{margin:20px 0 12px;font-size:26px;font-weight:600;line-height:1.5}.rte-shell .tiptap h1:first-child{margin-top:0}.rte-shell .tiptap p{margin:0 0 14px}.rte-shell .tiptap ul,.rte-shell .tiptap ol{margin:14px 0;padding-left:26px}.rte-shell .tiptap li>p{margin-bottom:4px}.rte-shell .tiptap hr{border:0;border-top:1px solid #cfd9e3;margin:24px 0}.rte-shell .tiptap pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f9;border:1px solid #e1e6eb;border-radius:8px;padding:16px;font-size:14px;line-height:1.7}.rte-shell .tiptap blockquote{background:#f7f9fb;border-left:3px solid #b4c8da;margin:16px 0;padding:8px 16px}.rte-shell .tiptap:has(>p:only-child>br:only-child):before{left:44px}.rte-shell.editor-expanded .editor-content-wrap{flex:1;height:auto;min-height:0;overflow:hidden}.rte-shell.editor-expanded .editor-toolbar.rte-toolbar{flex-shrink:0}.rte-shell.editor-expanded .editor-content-wrap .tiptap{height:auto;min-height:100%;overflow:visible}.rte-shell.editor-expanded .editor-content-wrap>div:has(>.tiptap){overflow-y:auto}.rte-dialog{color:#444;border:1px solid #e0e7ef;border-radius:16px;width:580px;max-width:calc(100vw - 32px);max-height:calc(100vh - 48px);padding:28px;overflow-y:auto}.rte-dialog::backdrop{background:#27344766}.rte-dialog h2{margin:0 0 24px;font-size:20px;font-weight:600}.rte-dialog label{margin:16px 0;font-size:14px;font-weight:500;display:block}.rte-dialog input,.rte-dialog textarea{width:100%;font:inherit;border:1px solid #d8e6f5;border-radius:8px;margin-top:8px;padding:10px 12px;display:block}.rte-dialog textarea{resize:vertical;min-height:130px;font-family:Consolas,monospace}.rte-dialog footer{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.rte-dialog-error{color:#cf4444;font-size:13px}.rte-formula-preview{border:1px solid #e3ebf3;border-radius:8px;min-height:80px;padding:16px;overflow-x:auto}@media (max-width:700px){.rte-shell .editor-toolbar.rte-toolbar{gap:1px;padding:5px}.rte-shell .rte-toolbar .rte-tool{flex-basis:28px;width:28px}.rte-toolbar .rte-divider{margin:0 3px}.rte-toolbar .rte-toolbar-space{display:none}.rte-shell .editor-content-wrap .tiptap{padding:18px 16px 24px 38px}.rte-shell .tiptap:has(>p:only-child>br:only-child):before{left:38px}.rte-shell .editor-content-wrap{height:auto}.rte-dialog{padding:24px 20px}}
.editor-content-wrap{position:relative}.rich-editor .editor-block-trigger{z-index:4;color:#8b9097;cursor:pointer;background:#fafafa;border:1px solid #e4e6e9;border-radius:4px;justify-content:center;align-items:center;gap:1px;width:25px;height:22px;padding:0;font:16px/1 sans-serif;display:flex;position:absolute}.rich-editor .editor-block-trigger svg{fill:currentColor;width:10px;height:16px}.rich-editor .editor-block-trigger:hover,.rich-editor .editor-block-trigger.is-open,.rich-editor .editor-block-trigger:focus-visible{color:#409eff;background:#edf6ff;border-color:#86bdff;outline:none}.editor-block-menu{z-index:1400;box-sizing:border-box;color:#31353a;text-align:left;background:#fff;border:1px solid #e1e3e7;border-radius:8px;width:208px;max-height:calc(100dvh - 16px);padding:8px;font:14px/1.4 PingFang SC,CMG PingFang SC,sans-serif;position:fixed;overflow-y:auto;box-shadow:0 6px 24px #1623331a}.editor-block-menu button{height:36px;color:inherit;font:inherit;cursor:pointer;white-space:nowrap;text-align:left;background:0 0;border:0;border-radius:4px;align-items:center;gap:12px;padding:0 8px;display:flex}.editor-block-menu button:hover,.editor-block-menu button:focus-visible{background:#f2f4f6;outline:none}.editor-block-menu button[aria-pressed=true]{color:#298ce8;background:#ebf5ff}.editor-block-menu button:disabled{color:#c1c4c8;cursor:default;background:0 0}.editor-block-menu svg{fill:none;stroke:currentColor;stroke-width:1.4px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}.editor-block-formats{grid-template-columns:repeat(4,1fr);gap:2px;padding-bottom:6px;display:grid}.editor-block-menu .editor-block-formats button{justify-content:center;height:30px;padding:0;font-size:17px}.editor-block-options{border-top:1px solid #e4e6ea;border-bottom:1px solid #e4e6ea;padding:5px 0}.editor-block-options>button,.editor-block-menu .editor-block-delete{width:100%;height:40px}.editor-block-symbol{color:#222;flex:none;justify-content:center;align-items:center;width:20px;height:20px;font-size:18px;display:inline-flex}.editor-block-color-symbol{text-underline-offset:3px;text-decoration:underline;text-decoration-thickness:3px}.editor-block-background-symbol{background:linear-gradient(#0000 52%,#dbe2e7 52%)}.editor-block-chevron{color:#abb1b8;margin-left:auto;font-size:20px}.editor-block-submenu{background:#f9fafb;border-radius:4px;margin:2px 0 6px;padding:4px}.editor-block-submenu>button{width:100%;height:32px;font-size:13px}.editor-block-align{justify-content:space-between;margin-bottom:3px;display:flex}.editor-block-align button{justify-content:center;width:40px;padding:0}.editor-block-palette{grid-template-columns:repeat(5,1fr);gap:9px;padding:6px;display:grid}.editor-block-menu .editor-block-palette button{border:1px solid #00000018;border-radius:3px;width:24px;height:24px;padding:0}.editor-block-menu .editor-block-palette button:hover,.editor-block-menu .editor-block-palette button:focus-visible,.editor-block-menu .editor-block-palette button[aria-pressed=true]{outline-offset:2px;outline:2px solid #409eff}.editor-block-menu .editor-block-delete{margin-top:4px}.editor-block-menu .editor-block-delete:hover{color:#d74842;background:#fff1f0}
