.mdxeditor.custom-editor{--baseBg:transparent;--basePageBg:hsl(var(--heroui-divider));--baseTextContrast:"white";--baseBorder:hsl(var(--heroui-divider));--baseBorderHover:hsl(var(--heroui-divider));--baseBgActive:hsl(var(--heroui-divider));--baseBase:hsl(var(--heroui-divider))}.custom-editor .mdxeditor-toolbar,.mdxeditor-toolbar{border:1px solid hsl(var(--heroui-divider));color:hsl(var(--heroui-foreground));background:hsl(var(--heroui-content1));border-radius:1rem;position:sticky;top:-1.5rem;z-index:40}.custom-editor .mdxeditor-root-contenteditable,[role=dialog] [contenteditable]{margin-top:.5rem;background:hsl(var(--heroui-divider));border-radius:.5rem;padding:1rem}.custom-editor .mdxeditor-root-contenteditable p:has([data-editor-block-type=image]) img{display:block;width:500px;max-width:499rem;height:auto;-o-object-fit:contain;object-fit:contain;margin:1rem auto;border-radius:.8rem}.link-editor{display:inline;white-space:normal;line-height:1em;align-items:center;gap:.125rem;color:var(--purple);>div,[contenteditable],[contenteditable] p{display:inline;white-space:normal}>div{border-bottom:2px solid var(--purple)}[contenteditable]{display:inline;padding:.125rem;background:transparent;transition:background .2s;color:inherit}.link-button{padding:.25rem .35rem;color:inherit;border-radius:.25rem;cursor:pointer;display:inline}&[aria-expanded=true],.link-button:hover{background:hsla(var(--heroui-primary)/.1)}&.link-editor-phrase-link{color:hsl(var(--heroui-primary));>div{border-bottom-color:hsl(var(--heroui-primary))}&[aria-expanded=true] .link-button,.link-button:hover{background:hsla(var(--heroui-primary)/.2)}}&.link-editor-topic{color:hsl(var(--heroui-secondary));>div{border-bottom-color:hsl(var(--heroui-secondary))}&[aria-expanded=true] .link-button,.link-button:hover{background:hsla(var(--heroui-secondary)/.2)}}}.tiptap-table-wrapper{padding:1rem 1.5rem}.tiptap-table-wrapper table{display:flex!important;flex-direction:column;border-collapse:separate;border-spacing:0;width:100%!important;overflow:hidden;border:2px solid #71717a;border-radius:.375rem;background-color:transparent}.tiptap-table-wrapper table colgroup{display:none!important}.tiptap-table-wrapper table tbody{display:flex!important;flex-direction:column;width:100%!important}.tiptap-table-wrapper table tr{display:flex!important;flex-direction:row;width:100%!important;align-items:stretch}.tiptap-table-wrapper td,.tiptap-table-wrapper th{display:block!important;flex:1 1 0%!important;border-right:1px solid #71717a;border-bottom:1px solid #71717a;padding:.75rem 1rem;position:relative;min-width:0!important;width:auto!important}.tiptap-table-wrapper tr td:last-child,.tiptap-table-wrapper tr th:last-child{border-right:none!important}.tiptap-table-wrapper tr:last-child td{border-bottom:none!important}.tiptap-table-wrapper th{background-color:#27272a;font-weight:600;color:#fff;text-align:left}.tiptap-table-wrapper td{color:#d4d4d8}.tiptap-table-wrapper td p,.tiptap-table-wrapper th p{margin:0}.tiptap-table-wrapper .selectedCell:after{content:"";position:absolute;inset:0;background:rgba(139,92,246,.15);pointer-events:none;z-index:2}.tiptap-table-wrapper tr:first-child th:first-child{border-top-left-radius:.375rem}.tiptap-table-wrapper tr:first-child th:last-child{border-top-right-radius:.375rem}.tiptap-table-wrapper tr:last-child td:first-child{border-bottom-left-radius:.375rem}.tiptap-table-wrapper tr:last-child td:last-child{border-bottom-right-radius:.375rem}.preview-content a[data-link-type=internal-article],.tiptap a[data-link-type=internal-article]{color:#fff!important;text-decoration:underline;text-decoration-color:#ff006e!important;text-underline-offset:3px;cursor:pointer;font-weight:500}.preview-content a[data-link-type=internal-article]:after,.tiptap a[data-link-type=internal-article]:after{content:"";display:inline-block;width:.8em;height:.8em;margin-left:4px;vertical-align:-.1em;background-color:#ff006e;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2"></path><path d="M18 14h-8"></path><path d="M15 18h-5"></path><path d="M10 6h8v4h-8V6Z"></path></svg>') no-repeat center /contain;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2"></path><path d="M18 14h-8"></path><path d="M15 18h-5"></path><path d="M10 6h8v4h-8V6Z"></path></svg>') no-repeat center /contain}.preview-content a[data-link-type=internal-topic],.tiptap a[data-link-type=internal-topic]{color:#fff!important;text-decoration:underline;text-decoration-color:#ffbe0b!important;text-underline-offset:3px;cursor:pointer;font-weight:500}.preview-content a[data-link-type=internal-topic]:after,.tiptap a[data-link-type=internal-topic]:after{content:"";display:inline-block;width:.8em;height:.8em;margin-left:4px;vertical-align:-.1em;background-color:#ffbe0b;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>') no-repeat center /contain;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>') no-repeat center /contain}.preview-content a[data-link-type=candidate],.tiptap a[data-link-type=candidate]{color:#fff!important;text-decoration:underline;text-decoration-color:#ff006e!important;text-underline-offset:3px;cursor:pointer;font-weight:500}.preview-content a[data-link-type=candidate]:after,.tiptap a[data-link-type=candidate]:after{content:"";display:inline-block;width:.8em;height:.8em;margin-left:4px;vertical-align:-.1em;background-color:#ff006e;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2"></path><path d="M18 14h-8"></path><path d="M15 18h-5"></path><path d="M10 6h8v4h-8V6Z"></path></svg>') no-repeat center /contain;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2"></path><path d="M18 14h-8"></path><path d="M15 18h-5"></path><path d="M10 6h8v4h-8V6Z"></path></svg>') no-repeat center /contain}.preview-content a[data-link-type=external],.tiptap a[data-link-type=external]{color:#fff!important;text-decoration:underline;text-decoration-color:#a855f7!important;text-underline-offset:3px;cursor:pointer;font-weight:500}.preview-content a[data-link-type=external]:after,.tiptap a[data-link-type=external]:after{content:"";display:inline-block;width:.8em;height:.8em;margin-left:4px;vertical-align:-.1em;background-color:#a855f7;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>') no-repeat center /contain;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>') no-repeat center /contain}.preview-content a[data-link-type=legacy],.tiptap a[data-link-type=legacy]{color:#fff!important;text-decoration:underline;text-decoration-color:#a1a1aa!important;text-underline-offset:3px;cursor:pointer;font-weight:500;opacity:.8}.preview-content a[data-link-type=legacy]:after,.tiptap a[data-link-type=legacy]:after{content:"";display:inline-block;width:.8em;height:.8em;margin-left:4px;vertical-align:-.1em;background-color:#a1a1aa;mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>') no-repeat center /contain;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>') no-repeat center /contain}.link-popover-menu{background:#1c1c1e;border:1px solid #3a3a3c;border-radius:12px;padding:6px;min-width:160px;max-width:320px;box-shadow:0 8px 30px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.3)}.link-popover-menu.link-popover-visible{animation:linkPopoverFadeIn .12s ease-out}@keyframes linkPopoverFadeIn{0%{opacity:0}to{opacity:1}}.link-popover-arrow{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);width:12px;height:6px;overflow:hidden}.link-popover-arrow:after{content:"";position:absolute;top:-5px;left:50%;transform:translateX(-50%) rotate(45deg);width:10px;height:10px;background:#1c1c1e;border-right:1px solid #3a3a3c;border-bottom:1px solid #3a3a3c}.link-popover-items{display:flex;flex-direction:column;gap:2px}.link-popover-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;border:none;background:transparent;color:#e5e5e5;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s ease;white-space:nowrap;width:100%;text-align:left}.link-popover-item:hover{background:#2c2c2e}.link-popover-item--unlink{color:#ef4444}.link-popover-item--unlink:hover{background:rgba(239,68,68,.12)}.edit-link-overlay{position:fixed;inset:0;background:transparent;display:flex;align-items:center;justify-content:center;z-index:100;animation:editLinkOverlayFadeIn .15s ease-out}@keyframes editLinkOverlayFadeIn{0%{opacity:0}to{opacity:1}}.edit-link-modal{background:#18181b;border:1px solid #27272a;border-radius:16px;width:90%;max-width:640px;max-height:85vh;overflow-y:auto;box-shadow:0 25px 60px rgba(0,0,0,.6);animation:editLinkModalSlideIn .2s ease-out}@keyframes editLinkModalSlideIn{0%{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.edit-link-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px}.edit-link-title{color:#f4f4f5;font-size:18px;font-weight:700;margin:0}.edit-link-close-btn{background:none;border:none;color:#71717a;cursor:pointer;padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:color .15s ease}.edit-link-close-btn:hover{color:#a1a1aa}.edit-link-divider{height:1px;background:#27272a;margin:0 24px}.edit-link-section{padding:16px 24px}.edit-link-section-title{color:#f4f4f5;font-size:14px;font-weight:700;margin:0 0 12px}.edit-link-details-row{display:flex;gap:8px}.edit-link-type-badge{background:#27272a;border-radius:10px;padding:8px 14px;display:flex;flex-direction:column;gap:4px;min-width:90px}.edit-link-type-label{color:#71717a;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.03em}.edit-link-type-value{color:#f4f4f5;font-size:15px;font-weight:600;display:flex;align-items:center;gap:6px}.edit-link-address-field{flex:1;background:#27272a;border-radius:10px;padding:8px 14px;display:flex;flex-direction:column;gap:4px}.edit-link-address-label{color:#71717a;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.03em}.edit-link-address-input{background:transparent;border:none;color:#f4f4f5;font-size:15px;font-weight:500;outline:none;width:100%;padding:0}.edit-link-address-input::-moz-placeholder{color:#52525b}.edit-link-address-input::placeholder{color:#52525b}.edit-link-context-box{background:#27272a;border:1px solid #3f3f46;border-radius:10px;padding:16px}.edit-link-context-text{color:#d4d4d8;font-size:14px;line-height:1.7;margin:0}.edit-link-context-highlight{color:#ff007f;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#ff007f;font-weight:500}.edit-link-match-indicator{display:flex;align-items:center;gap:6px;margin-top:10px;padding:8px 12px;background:#27272a;border-radius:8px;color:#eab308;font-size:13px;font-weight:500}.edit-link-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 24px}.edit-link-footer-close{background:#27272a;border:1px solid #3f3f46;border-radius:10px;color:#d4d4d8;font-size:14px;font-weight:600;padding:10px 24px;cursor:pointer;transition:all .15s ease}.edit-link-footer-close:hover{background:#3f3f46;color:#f4f4f5}.edit-link-footer-save{background:#ff007f;border:none;border-radius:10px;color:#fff;font-size:14px;font-weight:600;padding:10px 24px;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background .15s ease}.edit-link-footer-save:hover{background:#e60073}.tiptap,.tiptap :not(a),.tiptap span[style*=color]{color:#fff!important}.tiptap [style*=background-color]{background-color:transparent!important}.tiptap [style*="background:"]{background:transparent!important}.tiptap>p{display:none!important}