.json-editor-wrapper{border:1px solid hsl(var(--border));background:hsl(var(--background));border-radius:.375rem;height:100%;min-height:240px;max-height:70vh;display:flex;position:relative;overflow:auto}.dark .json-editor-wrapper{background:hsl(var(--background));border-color:hsl(var(--border))}@media (prefers-color-scheme:dark){.json-editor-wrapper{background:hsl(var(--background));border-color:hsl(var(--border))}}.json-editor-line-numbers{border-right:1px solid hsl(var(--border) / .3);background:hsl(var(--muted) / .03);-webkit-user-select:none;user-select:none;z-index:1;flex-shrink:0;width:3.5rem;padding:1rem .75rem 1rem .5rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.875rem;line-height:1.75;position:sticky;top:0;left:0}.json-editor-line-number{color:hsl(var(--muted-foreground) / .6);text-align:right;font-variant-numeric:tabular-nums;justify-content:flex-end;align-items:center;height:1.75rem;display:flex}.dark .json-editor-line-numbers{background:hsl(var(--muted) / .15);border-right-color:hsl(var(--border) / .5)}.dark .json-editor-line-number{color:hsl(var(--muted-foreground) / .7)}@media (prefers-color-scheme:dark){.json-editor-line-numbers{background:hsl(var(--muted) / .15);border-right-color:hsl(var(--border) / .5)}.json-editor-line-number{color:hsl(var(--muted-foreground) / .7)}}.json-editor-content{outline:none;flex:1;min-width:0;height:100%;overflow:hidden}.json-editor-content:focus-visible{outline:2px solid hsl(var(--ring) / .6);outline-offset:2px}.json-editor-content pre{color:hsl(var(--foreground));white-space:pre;word-wrap:normal;tab-size:2;margin:0;padding:1rem 1rem 1rem .5rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.875rem;line-height:1.75;position:relative;overflow-x:auto;background:0 0!important}.json-editor-content pre code{font-family:inherit;font-size:inherit;color:inherit;white-space:pre;word-wrap:normal;min-height:1.75rem;padding:0;display:block;background:0 0!important}.json-editor-content .hljs-attr{color:#0969da;font-weight:500}.json-editor-content .hljs-string{color:#0a3069}.json-editor-content .hljs-number,.json-editor-content .hljs-literal{color:#0550ae}.json-editor-content .hljs-punctuation{color:hsl(var(--foreground) / .7)}.json-editor-content .hljs-keyword{color:#cf222e}.json-editor-content .hljs-comment{color:#6e7781;font-style:italic}.dark .json-editor-content .hljs-attr{color:#79c0ff;font-weight:500}.dark .json-editor-content .hljs-string{color:#a5d6ff}.dark .json-editor-content .hljs-number,.dark .json-editor-content .hljs-literal{color:#79c0ff}.dark .json-editor-content .hljs-punctuation{color:#c9d1d9}.dark .json-editor-content .hljs-keyword{color:#ff7b72}.dark .json-editor-content .hljs-comment{color:#8b949e}@media (prefers-color-scheme:dark){.json-editor-content .hljs-attr{color:#79c0ff;font-weight:500}.json-editor-content .hljs-string{color:#a5d6ff}.json-editor-content .hljs-number,.json-editor-content .hljs-literal{color:#79c0ff}.json-editor-content .hljs-punctuation{color:#c9d1d9}.json-editor-content .hljs-keyword{color:#ff7b72}.json-editor-content .hljs-comment{color:#8b949e}}
.tiptap-markdown-editor{border:1px solid hsl(var(--border));background:radial-gradient(circle at 14% 20%, hsl(var(--primary) / .08), transparent 32%), radial-gradient(circle at 86% 10%, hsl(var(--primary) / .06), transparent 30%), hsl(var(--background));border-radius:16px;flex-direction:column;gap:.75rem;width:100%;min-height:460px;padding:1rem;display:flex;box-shadow:0 10px 40px #0003}.tiptap-markdown-toolbar{border:1px solid hsl(var(--border));background:linear-gradient(120deg, hsl(var(--background)), hsl(var(--muted) / .4));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem .75rem;display:flex}.tiptap-toolbar-group{align-items:center;gap:.25rem;display:flex}.tiptap-toolbar-separator{background:hsl(var(--border));opacity:.65;width:1px;height:28px}.tiptap-toolbar-button{background:hsl(var(--muted) / .4);width:32px;height:32px;color:hsl(var(--foreground));border:1px solid #0000;border-radius:10px;place-items:center;transition:border-color .18s,background .18s,color .18s,box-shadow .18s;display:grid}.tiptap-toolbar-button:hover:not(:disabled){border-color:hsl(var(--primary) / .65);color:hsl(var(--primary));box-shadow:0 4px 16px hsl(var(--primary) / .2)}.tiptap-toolbar-button.is-active{background:hsl(var(--primary) / .12);border-color:hsl(var(--primary));color:hsl(var(--primary))}.tiptap-toolbar-button:disabled{opacity:.4;cursor:not-allowed}.tiptap-toolbar-pill{border:1px solid hsl(var(--border));background:hsl(var(--muted) / .4);color:hsl(var(--muted-foreground));letter-spacing:.01em;border-radius:.65rem;margin-left:auto;padding:.35rem .65rem;font-size:.75rem}.tiptap-editor-pane{border:1px solid hsl(var(--border));background:linear-gradient(180deg, hsl(var(--background)), hsl(var(--muted) / .2));border-radius:14px;flex-direction:column;flex:auto;min-height:0;max-height:72vh;padding:.75rem;display:flex;position:relative;overflow:auto;box-shadow:0 8px 28px #0000002e}.tiptap-editor-surface{flex:auto;height:100%;min-height:0;overflow:auto}.tiptap-pane-header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.tiptap-pane-title{letter-spacing:-.01em;color:hsl(var(--foreground));font-size:.95rem;font-weight:600}.tiptap-pane-hint{color:hsl(var(--muted-foreground));font-size:.8rem}.tiptap-pill{background:hsl(var(--primary) / .15);color:hsl(var(--primary));border:1px solid hsl(var(--primary) / .4);border-radius:999px;padding:.25rem .6rem;font-size:.75rem}.tiptap-markdown-editor-content{width:100%;min-height:300px;max-height:100%;color:hsl(var(--foreground));word-break:break-word;overflow-wrap:anywhere;max-width:100%;caret-color:hsl(var(--foreground));overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent;box-sizing:border-box;background:0 0;outline:none;flex:auto;min-height:0;padding:.35rem .35rem .75rem;font-size:.96rem;line-height:1.8;overflow:hidden auto}.tiptap-editor-surface .tiptap-markdown-editor-content,.tiptap-editor-surface .ProseMirror{height:100%;max-height:100%}.tiptap-markdown-editor-content::selection,.tiptap-markdown-editor-content ::selection{color:#fff;background:#6366f18c}.tiptap-markdown-editor-content::-webkit-scrollbar{width:8px}.tiptap-markdown-editor-content::-webkit-scrollbar-track{background:0 0}.tiptap-markdown-editor-content::-webkit-scrollbar-thumb{background:hsl(var(--border));border-radius:999px}.tiptap-markdown-editor-content::-webkit-scrollbar-thumb:hover{background:hsl(var(--border) / .9)}.tiptap-markdown-editor-content p{margin:.35rem 0}.tiptap-markdown-editor-content h1,.tiptap-markdown-editor-content h2,.tiptap-markdown-editor-content h3{margin-top:1.4rem;margin-bottom:.5rem;font-weight:700;line-height:1.25}.tiptap-markdown-editor-content h1{letter-spacing:-.02em;font-size:1.8rem}.tiptap-markdown-editor-content h2{font-size:1.4rem}.tiptap-markdown-editor-content h3{font-size:1.15rem}.tiptap-markdown-editor-content strong{font-weight:700}.tiptap-markdown-editor-content em{font-style:italic}.tiptap-markdown-editor-content ul,.tiptap-markdown-editor-content ol{gap:.25rem;margin:.6rem 0;padding-left:1.3rem;display:grid}.tiptap-markdown-editor-content li{margin:0}.tiptap-markdown-editor-content code{background:hsl(var(--muted));color:hsl(var(--foreground));border-radius:.35rem;padding:.15rem .35rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.9em}.tiptap-markdown-editor-content pre{color:#e2e8f0;border:1px solid hsl(var(--border));background:#0f172a;border-radius:12px;margin:1.1rem 0;padding:1rem;overflow-x:auto;box-shadow:inset 0 0 0 1px #ffffff05}.tiptap-markdown-editor-content pre code{color:inherit;background:0 0;padding:0;display:block}.tiptap-markdown-editor-content blockquote{border-left:4px solid hsl(var(--primary));color:hsl(var(--muted-foreground));margin:1rem 0;padding-left:1rem;font-style:italic}.tiptap-markdown-editor-content hr{border:none;border-top:2px solid hsl(var(--border));margin:1.5rem 0}.tiptap-markdown-editor-content a{color:hsl(var(--primary));text-decoration:underline}.tiptap-markdown-editor-content a:hover{color:hsl(var(--primary) / .9)}.tiptap-markdown-editor-content p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:hsl(var(--muted-foreground));pointer-events:none;height:0}
.markdown-viewer-wrapper{border:1px solid hsl(var(--border));background:hsl(var(--background));border-radius:.375rem;height:100%;min-height:240px;max-height:70vh;padding:1rem;overflow:auto}.markdown-content{color:hsl(var(--foreground));font-size:.875rem;line-height:1.75}.markdown-content p{margin:.75rem 0}.markdown-content p:first-child{margin-top:0}.markdown-content p:last-child{margin-bottom:0}.markdown-content h1,.markdown-content h2,.markdown-content h3,.markdown-content h4,.markdown-content h5,.markdown-content h6{margin-top:1.5rem;margin-bottom:.75rem;font-weight:600;line-height:1.25}.markdown-content h1{font-size:1.875rem}.markdown-content h2{font-size:1.5rem}.markdown-content h3{font-size:1.25rem}.markdown-content ul,.markdown-content ol{margin:.75rem 0;padding-left:1.5rem}.markdown-content li{margin:.25rem 0}.markdown-content code{background:hsl(var(--muted));border-radius:.25rem;padding:.125rem .375rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:.875em}.markdown-content pre{background:hsl(var(--muted));border-radius:.375rem;margin:.75rem 0;padding:1rem;overflow-x:auto}.markdown-content pre code{background:0 0;padding:0;display:block}.markdown-content blockquote{border-left:4px solid hsl(var(--border));color:hsl(var(--muted-foreground));margin:.75rem 0;padding-left:1rem;font-style:italic}.markdown-content a{color:hsl(var(--primary));text-decoration:underline}.markdown-content a:hover{text-decoration:none}.markdown-content strong{font-weight:600}.markdown-content em{font-style:italic}.markdown-content hr{border:none;border-top:1px solid hsl(var(--border));margin:1.5rem 0}.markdown-content table{border-collapse:collapse;width:100%;margin:.75rem 0}.markdown-content table th,.markdown-content table td{border:1px solid hsl(var(--border));padding:.5rem}.markdown-content table th{background:hsl(var(--muted));font-weight:600}.markdown-content img{border-radius:.375rem;max-width:100%;height:auto;margin:.75rem 0}
