.tiptap-editor{min-height:200px!important}.tiptap-editor .tiptap-toolbar{background:var(--tg-theme-section-bg-color,#fff);border-radius:.375rem .375rem 0 0;position:sticky;top:0;z-index:10}.tiptap-editor .tiptap-toolbar .toolbar-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px;border:none;background:rgba(0,0,0,0);color:var(--foreground,#333);cursor:pointer;font-size:12px;font-weight:600;transition:background-color .15s}.tiptap-editor .tiptap-toolbar .toolbar-btn:hover:not(:disabled){background:rgba(0,0,0,.08)}.tiptap-editor .tiptap-toolbar .toolbar-btn:disabled{opacity:.4;cursor:not-allowed}.tiptap-editor .tiptap-toolbar .toolbar-btn.active{background:rgba(0,0,0,.12);color:var(--tg-theme-button-color,#3b82f6)}.tiptap-editor .tiptap-toolbar .toolbar-btn svg{width:16px;height:16px}.tiptap-editor .tiptap-toolbar .toolbar-divider{width:1px;height:24px;background:rgba(0,0,0,.1);margin:4px}.tiptap-editor .image-bubble-menu{display:flex;gap:2px;padding:4px 8px;background:var(--tg-theme-section-bg-color,#fff);border:1px solid rgba(0,0,0,.1);border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.15)}.tiptap-editor .image-bubble-menu .toolbar-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:4px;border:none;background:rgba(0,0,0,0);color:var(--foreground,#333);cursor:pointer;transition:background-color .15s}.tiptap-editor .image-bubble-menu .toolbar-btn:hover{background:rgba(0,0,0,.08)}.tiptap-editor .image-bubble-menu .toolbar-btn.active{background:rgba(0,0,0,.12);color:var(--tg-theme-button-color,#3b82f6)}.tiptap-editor .image-bubble-menu .toolbar-btn svg{width:14px;height:14px}.tiptap-editor .image-bubble-menu .toolbar-divider{width:1px;height:20px;background:rgba(0,0,0,.1);margin:4px}.tiptap-editor .tiptap-content{padding:16px;min-height:200px;outline:none}.tiptap-editor .tiptap-content>*+*{margin-top:.75em}.tiptap-editor .tiptap-content p{margin:0;line-height:1.6}.tiptap-editor .tiptap-content h1{font-size:2rem;font-weight:700;line-height:1.2}.tiptap-editor .tiptap-content h2{font-size:1.75rem;font-weight:700;line-height:1.3}.tiptap-editor .tiptap-content h3{font-size:1.5rem;font-weight:600;line-height:1.4}.tiptap-editor .tiptap-content h4{font-size:1.25rem;font-weight:600;line-height:1.4}.tiptap-editor .tiptap-content h5{font-size:1.1rem;font-weight:500;line-height:1.5}.tiptap-editor .tiptap-content h6{font-size:1rem;font-weight:500;line-height:1.5}.tiptap-editor .tiptap-content ol,.tiptap-editor .tiptap-content ul{padding-left:1.5rem;margin:.5rem 0}.tiptap-editor .tiptap-content ul{list-style-type:disc}.tiptap-editor .tiptap-content ol{list-style-type:decimal}.tiptap-editor .tiptap-content li{margin:.25rem 0}.tiptap-editor .tiptap-content li p{margin:0}.tiptap-editor .tiptap-content code{background:rgba(0,0,0,.06);border-radius:3px;padding:.2em .4em;font-family:Fira Code,Monaco,Consolas,monospace;font-size:.9em}.tiptap-editor .tiptap-content pre{background:#1e1e1e;border-radius:8px;padding:1rem;overflow-x:auto;margin:1rem 0}.tiptap-editor .tiptap-content pre code{background:none;padding:0;color:#d4d4d4;font-size:.875rem}.tiptap-editor .tiptap-content blockquote{border-left:3px solid var(--tg-theme-button-color,#3b82f6);padding-left:1rem;margin:1rem 0;color:rgba(0,0,0,.7);font-style:italic}.tiptap-editor .tiptap-content hr{border:none;border-top:1px solid rgba(0,0,0,.1);margin:1.5rem 0}.tiptap-editor .tiptap-content a{color:var(--tg-theme-link-color,#3b82f6);text-decoration:underline;cursor:pointer}.tiptap-editor .tiptap-content a:hover{text-decoration:none}.tiptap-editor .tiptap-content img{display:block;max-width:100%;height:auto;border-radius:8px;margin:1rem auto;cursor:pointer;transition:outline .15s,margin .15s}.tiptap-editor .tiptap-content img[data-align=left]{margin-left:0;margin-right:auto}.tiptap-editor .tiptap-content img[data-align=center]{margin-left:auto;margin-right:auto}.tiptap-editor .tiptap-content img[data-align=right]{margin-left:auto;margin-right:0}.tiptap-editor .tiptap-content img.ProseMirror-selectednode{outline:3px solid var(--tg-theme-button-color,#3b82f6);outline-offset:2px}.tiptap-editor .tiptap-content figure{margin:1rem 0}.tiptap-editor .tiptap-content figure img{margin:0}.tiptap-editor .tiptap-content figure figcaption{text-align:center;font-size:.875rem;color:rgba(0,0,0,.6);margin-top:.5rem}.tiptap-editor .tiptap-content p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:rgba(0,0,0,.4);pointer-events:none;height:0}.tiptap-editor.tiptap-readonly .tiptap-content img{cursor:default}.tiptap-editor.tiptap-readonly .tiptap-content img.ProseMirror-selectednode{outline:none}.dark .tiptap-editor{background:var(--tg-theme-section-bg-color);border-radius:.375rem}.dark .tiptap-editor.tiptap-readonly{background:rgba(0,0,0,0)}.dark .tiptap-editor.tiptap-readonly .tiptap-content{background:rgba(0,0,0,0);padding:0;min-height:auto}.dark .tiptap-editor .tiptap-toolbar{background:var(--tg-theme-section-bg-color);border-color:hsla(0,0%,100%,.1)}.dark .tiptap-editor .tiptap-toolbar .toolbar-btn{color:var(--foreground,#fff)}.dark .tiptap-editor .tiptap-toolbar .toolbar-btn:hover:not(:disabled){background:hsla(0,0%,100%,.1)}.dark .tiptap-editor .tiptap-toolbar .toolbar-btn.active{background:hsla(0,0%,100%,.15);color:var(--tg-theme-button-color,#3b82f6)}.dark .tiptap-editor .tiptap-toolbar .toolbar-divider{background:hsla(0,0%,100%,.1)}.dark .tiptap-editor .image-bubble-menu{background:var(--tg-theme-section-bg-color);border-color:hsla(0,0%,100%,.1)}.dark .tiptap-editor .image-bubble-menu .toolbar-btn{color:var(--foreground,#fff)}.dark .tiptap-editor .image-bubble-menu .toolbar-btn:hover{background:hsla(0,0%,100%,.1)}.dark .tiptap-editor .image-bubble-menu .toolbar-btn.active{background:hsla(0,0%,100%,.15);color:var(--tg-theme-button-color,#3b82f6)}.dark .tiptap-editor .image-bubble-menu .toolbar-divider{background:hsla(0,0%,100%,.1)}.dark .tiptap-editor:not(.tiptap-readonly) .tiptap-content{background:var(--tg-theme-bg-color);color:var(--foreground,#fff);border-radius:0 0 .375rem .375rem}.dark .tiptap-editor:not(.tiptap-readonly) .tiptap-content code{background:hsla(0,0%,100%,.1)}.dark .tiptap-editor:not(.tiptap-readonly) .tiptap-content a{color:var(--tg-theme-link-color,#60a5fa)}.dark .tiptap-editor:not(.tiptap-readonly) .tiptap-content a:hover{text-decoration:none}.dark .tiptap-editor:not(.tiptap-readonly) .tiptap-content blockquote{color:hsla(0,0%,100%,.7)}.dark .tiptap-editor:not(.tiptap-readonly) .tiptap-content hr{border-color:hsla(0,0%,100%,.1)}.dark .tiptap-editor:not(.tiptap-readonly) .tiptap-content figure figcaption{color:hsla(0,0%,100%,.6)}.dark .tiptap-editor:not(.tiptap-readonly) .tiptap-content p.is-editor-empty:first-child:before{color:hsla(0,0%,100%,.4)}