.tiptap :first-child{margin-top:0}.tiptap code:not(pre code){background-color:color-mix(in oklch,var(--destructive) 12%,transparent);color:var(--destructive);padding:.125rem .25rem;border-radius:.25rem;font-family:var(--font-mono);font-size:.875em;border:1px solid color-mix(in oklch,var(--destructive) 25%,transparent)}.tiptap code:not(pre code):before,.tiptap code:not(pre code):after{content:none}.tiptap img{display:block}.tiptap .mention{display:inline-flex;align-items:center;gap:.25rem;vertical-align:bottom;background-color:color-mix(in oklch,var(--primary) 12%,transparent);color:var(--primary);padding:.0625rem .375rem .0625rem .125rem;border-radius:9999px;font-weight:500;white-space:nowrap}.tiptap .mention-avatar{width:1.125rem;height:1.125rem;font-size:.5rem}.tiptap .mention img{margin:0;height:100%}.tiptap .mention a{text-decoration:none}.tiptap aside[data-callout]{--callout: var(--info);--callout-fill: 0%;--callout-strength: 1;margin:1.25rem 0;padding:1.25rem 1.5rem;border:1px solid color-mix(in oklch,var(--callout) calc(28% * var(--callout-strength)),transparent);border-radius:.75rem;background-color:color-mix(in oklch,var(--callout) calc(var(--callout-fill) * var(--callout-strength)),transparent)}.tiptap aside[data-callout]>:last-child{margin-bottom:0}.dark :is(.tiptap aside[data-callout]){--callout-strength: 1.3}.tiptap aside[data-callout=tip]{--callout: var(--success);--callout-fill: 9%}.tiptap aside[data-callout=important]{--callout: var(--ink-violet, oklch(.55 .16 300));--callout-fill: 9%}.tiptap aside[data-callout=warning]{--callout: var(--warn);--callout-fill: 9%}.tiptap aside[data-callout=caution]{--callout: var(--danger);--callout-fill: 9%}.tiptap a[data-button]{display:inline-block;padding:.375rem .875rem;border-radius:9999px;background-color:var(--primary);color:var(--primary-foreground);font-weight:500;text-decoration:none}.tiptap a[data-button]:hover{background-color:color-mix(in oklch,var(--primary) 85%,transparent);color:var(--primary-foreground)}.tiptap a[data-entry-id]:not([href],[data-button]){text-decoration:underline;text-underline-offset:4px}.tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--muted-foreground);pointer-events:none;height:0}.tiptap p.is-editor-empty:first-child:has(.image-upload-placeholder):before{content:none}.tiptap [data-resize-handle]{position:absolute;background:color-mix(in oklch,var(--foreground) 60%,transparent);border:1px solid color-mix(in oklch,var(--background) 80%,transparent);border-radius:2px;z-index:10;opacity:0;transition:opacity .2s ease}.tiptap [data-resize-handle]:hover{background:color-mix(in oklch,var(--foreground) 85%,transparent)}.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle]{opacity:1}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=top-left],:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=top-right],:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=bottom-left],:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=bottom-right]{width:8px;height:8px}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=top-left]{top:-4px;left:-4px;cursor:nwse-resize}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=top-right]{top:-4px;right:-4px;cursor:nesw-resize}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=bottom-left]{bottom:-4px;left:-4px;cursor:nesw-resize}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=bottom-right]{bottom:-4px;right:-4px;cursor:nwse-resize}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=top],:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=bottom]{height:6px;left:8px;right:8px}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=top]{top:-3px;cursor:ns-resize}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=bottom]{bottom:-3px;cursor:ns-resize}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=left],:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=right]{width:6px;top:8px;bottom:8px}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=left]{left:-3px;cursor:ew-resize}:is(.tiptap [data-resize-wrapper]:hover [data-resize-handle],.tiptap [data-resize-wrapper]:focus-within [data-resize-handle],.tiptap [data-resize-state=true] [data-resize-handle])[data-resize-handle=right]{right:-3px;cursor:ew-resize}.tiptap [data-resize-state=true] [data-resize-wrapper]{outline:1px solid var(--border);border-radius:.125rem}.tiptap .youtube-embed,.tiptap div[data-youtube-video]{position:relative;width:100%;max-width:640px;margin:1rem 0}:is(.tiptap .youtube-embed,.tiptap div[data-youtube-video]) iframe{width:100%;aspect-ratio:16 / 9;border-radius:.5rem}.tiptap pre{background:#191b2c;border-radius:.5rem;color:#e8eaf6;font-family:var(--font-mono);padding:1rem;margin:1rem 0;overflow-x:auto}.tiptap pre code{background:none;color:inherit;font-size:.875rem;padding:0}.tiptap .hljs-comment,.tiptap .hljs-quote{color:#6e7391;font-style:italic}.tiptap .hljs-keyword,.tiptap .hljs-selector-tag,.tiptap .hljs-addition{color:#9ba4ff}.tiptap .hljs-number,.tiptap .hljs-string,.tiptap .hljs-meta .hljs-meta-string,.tiptap .hljs-literal,.tiptap .hljs-doctag,.tiptap .hljs-regexp{color:#a9d8b8}.tiptap .hljs-title,.tiptap .hljs-section,.tiptap .hljs-name,.tiptap .hljs-selector-id,.tiptap .hljs-selector-class{color:#c6cbff}.tiptap .hljs-attribute,.tiptap .hljs-attr,.tiptap .hljs-variable,.tiptap .hljs-template-variable,.tiptap .hljs-class .hljs-title,.tiptap .hljs-type{color:#ebb8d0}.tiptap .hljs-symbol,.tiptap .hljs-bullet,.tiptap .hljs-subst,.tiptap .hljs-meta,.tiptap .hljs-meta .hljs-keyword,.tiptap .hljs-selector-attr,.tiptap .hljs-selector-pseudo,.tiptap .hljs-link{color:#9ba4ff}.tiptap .hljs-built_in,.tiptap .hljs-deletion{color:#a9d8b8}.tiptap .hljs-formula{background:#191b2c}.tiptap .hljs-emphasis{font-style:italic}.tiptap .hljs-strong{font-weight:700}.tiptap ul[data-type=taskList]{list-style:none!important;padding-left:0!important;margin:.5rem 0}.tiptap ul[data-type=taskList]>li{display:flex!important;align-items:flex-start;gap:.5rem;margin:.25rem 0;padding-left:0!important}.tiptap ul[data-type=taskList]>li:before,.tiptap ul[data-type=taskList]>li::marker{display:none!important;content:none!important}.tiptap ul[data-type=taskList]>li>label{flex:0 0 auto;margin-top:.2rem;-webkit-user-select:none;user-select:none}.tiptap ul[data-type=taskList]>li>label input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;width:1.125rem;height:1.125rem;border:2px solid var(--border);border-radius:.25rem;cursor:pointer;display:block;transition:all .15s ease;margin:0;padding:0;background-color:transparent}.tiptap ul[data-type=taskList]>li>label input[type=checkbox]:hover{border-color:var(--primary)}.tiptap ul[data-type=taskList]>li>label input[type=checkbox]:checked{background-color:var(--primary);border-color:var(--primary);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");background-size:.75rem;background-position:center;background-repeat:no-repeat}.tiptap ul[data-type=taskList]>li>div{flex:1 1 auto;min-width:0}.tiptap ul[data-type=taskList]>li>div p{margin:0}.tiptap ul[data-type=taskList]>li[data-checked=true]>div{text-decoration:line-through;color:var(--muted-foreground)}.tiptap ul[data-type=taskList] ul[data-type=taskList]{margin:.25rem 0 .25rem 1.5rem}.code-block-wrapper{position:relative;margin:1rem 0;border-radius:.5rem;overflow:hidden;background:#191b2c!important}.code-block-wrapper .code-block-header{display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem;background:color-mix(in oklch,#6e7391 18%,#191b2c)!important;border-bottom:1px solid color-mix(in oklch,#6e7391 40%,#191b2c)}.code-block-wrapper pre{margin:0;padding:1rem;background:transparent!important;border-radius:0;overflow-x:auto}.code-block-wrapper pre code{display:block;background:none!important;color:#e8eaf6;font-family:var(--font-mono);font-size:.875rem;padding:0}.tiptap table.tiptap-table{border-collapse:collapse!important;width:calc(100% - 52px);margin:1rem 0 1rem 26px;table-layout:auto;border-width:1px!important;border-style:solid!important;border-color:var(--border)!important}.tiptap table.tiptap-table colgroup{display:none}.tiptap table.tiptap-table td,.tiptap table.tiptap-table th{border-width:1px!important;border-style:solid!important;border-color:var(--border)!important;padding:.5rem .75rem!important;vertical-align:top;position:relative;min-width:80px;box-sizing:border-box}.tiptap table.tiptap-table th{font-weight:600;background-color:var(--muted)!important;text-align:left;border-bottom-width:2px!important}.tiptap table.tiptap-table tbody tr:hover td{background-color:color-mix(in oklch,var(--muted) 50%,transparent)}.tiptap table.tiptap-table td p,.tiptap table.tiptap-table th p{margin:0}.tiptap table.tiptap-table .selectedCell{background-color:var(--lav)!important}.table-controls-wrapper{pointer-events:none;position:absolute;inset:0;z-index:5}.table-column-handles{pointer-events:auto;position:absolute;display:flex;height:24px;opacity:0;transition:opacity .15s ease}.table-controls-wrapper:hover .table-column-handles,.table-column-handles:has([data-state=open]){opacity:1}.table-column-handle{display:flex;align-items:center;justify-content:center;height:100%;border:none;background-color:color-mix(in oklch,var(--muted) 50%,transparent);color:var(--muted-foreground);cursor:pointer;transition:background-color .15s ease,color .15s ease;padding:0;outline:none}.table-column-handle:first-child{border-top-left-radius:4px}.table-column-handle:last-child{border-top-right-radius:4px}.table-column-handle:hover,.table-column-handle[data-state=open]{background-color:var(--lav);color:var(--accent-deep)}.table-row-handles{pointer-events:auto;position:absolute;display:flex;flex-direction:column;width:24px;opacity:0;transition:opacity .15s ease}.table-controls-wrapper:hover .table-row-handles,.table-row-handles:has([data-state=open]){opacity:1}.table-row-handle{display:flex;align-items:center;justify-content:center;width:100%;border:none;background-color:color-mix(in oklch,var(--muted) 50%,transparent);color:var(--muted-foreground);cursor:pointer;transition:background-color .15s ease,color .15s ease;padding:0;outline:none}.table-row-handle:first-child{border-top-left-radius:4px}.table-row-handle:last-child{border-bottom-left-radius:4px}.table-row-handle:hover,.table-row-handle[data-state=open]{background-color:var(--lav);color:var(--accent-deep)}.table-add-column{pointer-events:auto;position:absolute;display:flex;align-items:center;justify-content:center;width:24px;border:1px dashed var(--border);border-left:none;border-top-right-radius:4px;border-bottom-right-radius:4px;background-color:transparent;color:var(--muted-foreground);cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease;padding:0;outline:none;opacity:0}.table-controls-wrapper:hover .table-add-column{opacity:1}.table-add-column:hover{background-color:var(--lav);border-color:var(--border);border-style:solid;color:var(--accent-deep)}.table-add-row{pointer-events:auto;position:absolute;display:flex;align-items:center;justify-content:center;height:24px;border:1px dashed var(--border);border-top:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px;background-color:transparent;color:var(--muted-foreground);cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease;padding:0;outline:none;opacity:0}.table-controls-wrapper:hover .table-add-row{opacity:1}.table-add-row:hover{background-color:var(--lav);border-color:var(--border);border-style:solid;color:var(--accent-deep)}.tiptap.format-painter-active{outline:2px solid color-mix(in oklch,var(--primary) 50%,transparent);outline-offset:2px;border-radius:.25rem}.rte-toolbar button[data-active=true]{background-color:color-mix(in oklch,var(--primary) 15%,transparent);color:var(--primary);box-shadow:inset 0 0 0 1px color-mix(in oklch,var(--primary) 30%,transparent)}.rte-toolbar button[data-active=true]:hover{background-color:color-mix(in oklch,var(--primary) 22%,transparent);color:var(--primary)}.tiptap[contenteditable=true] img{margin-top:0;margin-bottom:0}.bubble-menu{display:flex;align-items:center;gap:1px;padding:.25rem;background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border);border-radius:.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.bubble-menu button{display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border:none;border-radius:.25rem;background:transparent;color:inherit;cursor:pointer;transition:background-color .1s ease}.bubble-menu button:hover,.bubble-menu button.is-active{background:var(--accent);color:var(--accent-foreground)}.bubble-menu button:disabled{cursor:default;opacity:.5}.bubble-menu button:disabled:hover{background:transparent;color:inherit}
