.tiptap-toolbar{border-bottom:1px solid var(--st-secondary,#e0e0e0);background:0 0;flex-wrap:wrap;align-items:center;gap:4px;padding:8px 12px;display:flex}.tiptap-toolbar-group{gap:2px;display:flex}.tiptap-toolbar-separator{background:var(--st-secondary,#e0e0e0);width:1px;height:24px;margin:0 8px}.tiptap-toolbar button{min-width:32px;height:32px;color:var(--fg-primary,#333);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;padding:0 8px;font-size:14px;font-weight:500;transition:all .2s;display:flex}.tiptap-toolbar button:hover{background:var(--bg-3,#f0f0f0);border-color:var(--st-secondary,#e0e0e0)}.tiptap-toolbar button.is-active{background:var(--bg-3,#e8e8e8);border-color:var(--st-main-hover,#d0d0d0);color:var(--fg-primary,#000)}.tiptap-toolbar button:active{transform:translateY(1px)}.tiptap-editor-content{white-space-collapse:collapse;width:100%;color:var(--text-primary,var(--fg-primary,#333));outline:none;flex-grow:1;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.6}.tiptap-editor-content>*{min-width:0;height:min-content}.tiptap-editor-content :first-child{margin-top:0!important}.tiptap-editor-content :last-child:where(:not(img)){margin-bottom:0!important}.tiptap-editor-content h1,.tiptap-editor-content h2,.tiptap-editor-content h3,.tiptap-editor-content h4,.tiptap-editor-content h5,.tiptap-editor-content h6{color:var(--text-primary,var(--fg-primary,#000));margin-top:32px;margin-bottom:16px;font-weight:700}.tiptap-editor-content h1:first-child,.tiptap-editor-content h2:first-child,.tiptap-editor-content h3:first-child,.tiptap-editor-content h4:first-child,.tiptap-editor-content h5:first-child,.tiptap-editor-content h6:first-child{margin-top:0}.tiptap-editor-content h1{margin-bottom:32px;font-size:1.75em;line-height:1.25}.tiptap-editor-content h2{font-size:1.5em;line-height:1.33}.tiptap-editor-content h3{font-size:1.25em;line-height:1.5}.tiptap-editor-content h4,.tiptap-editor-content h5,.tiptap-editor-content h6{font-size:1em}.tiptap-editor-content p{color:var(--text-primary,var(--fg-primary,#333));margin-top:0;margin-bottom:12px}.tiptap-editor-content p:last-child{margin-bottom:0}.tiptap-editor-content strong{color:var(--text-primary,var(--fg-primary,#000));font-weight:700}.tiptap-editor-content em{font-style:italic}.tiptap-editor-content s{text-decoration:line-through}.tiptap-editor-content a{color:var(--link,var(--fg-link,#0969da));cursor:pointer;text-decoration:none}.tiptap-editor-content a:hover{text-decoration:underline}.tiptap-editor-content ul{color:var(--text-primary,var(--fg-primary,#333));margin-left:16px;list-style-type:disc;display:block}.tiptap-editor-content ol{white-space:normal;color:var(--text-primary,var(--fg-primary,#333));margin-left:20px;list-style-type:decimal;display:block}.tiptap-editor-content li{white-space:normal;color:var(--text-primary,var(--fg-primary,#333));margin:4px 0;padding-left:4px}.tiptap-editor-content li::marker{color:var(--text-secondary,var(--fg-3,#666));list-style-position:outside}.tiptap-editor-content blockquote{border-left:3px solid var(--st-main-active,var(--st-secondary,#e0e0e0));color:var(--text-secondary,var(--fg-3,#666));margin:16px 0;padding-left:12px;font-style:italic}.tiptap-editor-content blockquote:last-child{margin-bottom:0}.tiptap-editor-content hr{border-color:var(--st-main-active,var(--st-secondary,#e0e0e0));border:none;border-top:1px solid var(--st-main-active,var(--st-secondary,#e0e0e0));margin-top:20px;margin-bottom:16px}.tiptap-editor-content code{color:var(--text-primary,var(--fg-primary,#333));font-family:JetBrains Mono,Monaco,Consolas,monospace;font-size:.9em}.tiptap-editor-content pre{white-space:pre-wrap;background-color:var(--code-bg,#0d1117);border-radius:6px;width:100%;margin:12px 0;padding:16px;font-size:14px;line-height:1.4;overflow-x:auto}.tiptap-editor-content pre:last-child{margin-bottom:0}.tiptap-editor-content pre{scrollbar-width:thin;scrollbar-color:#fff3 transparent;overflow-x:auto}.tiptap-editor-content pre::-webkit-scrollbar{width:6px;height:6px}.tiptap-editor-content pre::-webkit-scrollbar-track{background:0 0}.tiptap-editor-content pre::-webkit-scrollbar-thumb{background-color:#fff3;border-radius:9999px}.tiptap-editor-content pre::-webkit-scrollbar-thumb:hover{background-color:#ffffff59}html:not(.dark) .tiptap-editor-content pre{scrollbar-color:#0003 transparent}html:not(.dark) .tiptap-editor-content pre::-webkit-scrollbar-thumb{background-color:#0003}html:not(.dark) .tiptap-editor-content pre::-webkit-scrollbar-thumb:hover{background-color:#00000059}.tiptap-editor-content pre code{color:var(--code-text,#e6edf3);white-space:pre-wrap;word-break:normal;word-wrap:normal;background:0 0;margin:0;padding:0;font-size:14px;line-height:1.4;display:block;overflow:visible}.tiptap-markdown-editor{--code-bg:#0d1117;--code-text:#e6edf3}.tiptap-editor-content .hljs{color:var(--code-text,#e6edf3)!important;background:0 0!important}.tiptap-editor-content .hljs-comment,.tiptap-editor-content .hljs-quote{font-style:italic;color:#8b949e!important}.tiptap-editor-content .hljs-keyword,.tiptap-editor-content .hljs-selector-tag,.tiptap-editor-content .hljs-type,.tiptap-editor-content .hljs-class,.tiptap-editor-content .hljs-function,.tiptap-editor-content .hljs-namespace,.tiptap-editor-content .hljs-pseudo,.tiptap-editor-content .hljs-operator{font-weight:500;color:#ff7b72!important}.tiptap-editor-content .hljs-string,.tiptap-editor-content .hljs-attr,.tiptap-editor-content .hljs-quote,.tiptap-editor-content .hljs-addition{color:#a5d6ff!important}.tiptap-editor-content .hljs-number,.tiptap-editor-content .hljs-literal,.tiptap-editor-content .hljs-variable.constant_,.tiptap-editor-content .hljs-params,.tiptap-editor-content .hljs-constant{color:#79c0ff!important}.tiptap-editor-content .hljs-title,.tiptap-editor-content .hljs-title.function_,.tiptap-editor-content .hljs-title.class_,.tiptap-editor-content .hljs-function .hljs-title,.tiptap-editor-content .hljs-class .hljs-title{font-weight:500;color:#d2a8ff!important}.tiptap-editor-content .hljs-built_in,.tiptap-editor-content .hljs-builtin-name,.tiptap-editor-content .hljs-name,.tiptap-editor-content .hljs-attr-name,.tiptap-editor-content .hljs-property{color:#ffa657!important}.tiptap-editor-content .hljs-variable,.tiptap-editor-content .hljs-template-variable,.tiptap-editor-content .hljs-selector-id,.tiptap-editor-content .hljs-selector-class,.tiptap-editor-content .hljs-tag,.tiptap-editor-content .hljs-meta,.tiptap-editor-content .hljs-symbol,.tiptap-editor-content .hljs-bullet,.tiptap-editor-content .hljs-subst,.tiptap-editor-content .hljs-punctuation,.tiptap-editor-content .hljs-insertion{color:#7ee787!important}.tiptap-editor-content .hljs-deletion{text-decoration:line-through;color:#ff7b72!important}.tiptap-editor-content .hljs-regexp,.tiptap-editor-content .hljs-link{color:#a5d6ff!important}.tiptap-editor-content img{border-radius:4px;max-width:100%;height:auto;margin:8px 0}.tiptap-editor-content table{border-width:1px;border-color:var(--st-main-active,var(--st-secondary,#e0e0e0));border-collapse:separate;border-radius:6px;min-width:100%;max-width:100%;margin:16px 0;font-size:14px;overflow-x:auto}.tiptap-editor-content table thead tr th{background-color:var(--background-secondary,var(--bg-3,#f6f8fa));border-right:1px solid var(--st-main-active,var(--st-secondary,#e0e0e0));color:var(--text-primary,var(--fg-primary,#000));text-align:left;padding:8px 6px;font-weight:500}.tiptap-editor-content table tbody tr td{border-right:1px solid var(--st-main-active,var(--st-secondary,#e0e0e0));border-top:1px solid var(--st-main-active,var(--st-secondary,#e0e0e0));color:var(--text-primary,var(--fg-primary,#333));padding:6px;font-size:14px}.tiptap-editor-content table thead tr th:last-child,.tiptap-editor-content table tbody tr td:last-child{border-right:none}.tiptap-editor-wrapper::-webkit-scrollbar{width:8px;height:8px}.tiptap-editor-wrapper::-webkit-scrollbar-track{background:0 0}.tiptap-editor-wrapper::-webkit-scrollbar-thumb{background-color:var(--st-secondary,#e0e0e0);border-radius:4px}.tiptap-editor-wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--st-main-hover,#d0d0d0)}.tiptap-editor-content:focus{outline:none}.tiptap-editor-content p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--fg-3,#999);pointer-events:none;height:0}@media (max-width:640px){.tiptap-toolbar{padding:6px 8px}.tiptap-toolbar button{min-width:28px;height:28px;padding:0 6px;font-size:13px}.tiptap-editor-content{padding:12px 16px;font-size:15px}}
.canvas-doc-editor .tiptap-editor-content{color:inherit;min-height:1.65em;padding:0;font-size:15px;line-height:1.65}.canvas-doc-editor.tiptap-markdown-editor{background:0 0;width:100%}.canvas-doc-editor .tiptap-editor-content p.is-editor-empty:first-child:before{content:"Начните писать…";color:var(--muted-foreground,#9ca3af);float:left;pointer-events:none;height:0}.canvas-doc-editor .canvas-ask-highlight{background:#266dff38;border-radius:2px}.canvas-diff-del,.canvas-diff-del *{-webkit-text-decoration:line-through #f871718c;text-decoration:line-through #f871718c;color:#f87171e6!important}.canvas-diff-add,.canvas-diff-add *{color:#60a5fa!important}
