:root{--editor-text-default:hsl(var(--foreground));--editor-text-gray:hsl(var(--muted-foreground));--editor-text-brown:#f97415;--editor-text-orange:#f97015;--editor-text-yellow:#facc14;--editor-text-green:#21c45d;--editor-text-blue:#2463eb;--editor-text-purple:#d8b4fe;--editor-text-pink:#ea3e83;--editor-text-red:#ef4343;--editor-bg-default:hsl(var(--card));--editor-bg-subtle:hsl(var(--muted));--editor-bg-muted:hsl(var(--secondary));--editor-highlight-default:hsl(var(--muted));--editor-highlight-gray:hsl(var(--secondary));--editor-highlight-brown:#fff9eb;--editor-highlight-orange:#fff6eb;--editor-highlight-yellow:#fffdeb;--editor-highlight-green:#eefcf3;--editor-highlight-blue:#ecf3fe;--editor-highlight-purple:#f4ebff;--editor-highlight-pink:#fdedf3;--editor-highlight-red:#fdecec;--editor-border-default:hsl(var(--border));--editor-border-strong:hsl(var(--ring));--editor-spacing-1:.25rem;--editor-spacing-2:.5rem;--editor-spacing-3:.75rem;--editor-spacing-4:1rem;--editor-spacing-6:1.5rem;--editor-spacing-8:2rem;--editor-spacing-12:3rem;--editor-spacing-16:4rem;--editor-font-sans:var(--font-geist-sans,ui-sans-serif,system-ui,-apple-system,sans-serif);--editor-font-mono:var(--font-geist-mono,ui-monospace,SFMono-Regular,monospace);--editor-font-serif:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--editor-transition-fast:.15s cubic-bezier(.4,0,.2,1);--editor-transition-normal:.2s cubic-bezier(.4,0,.2,1);--editor-transition-slow:.3s cubic-bezier(.4,0,.2,1);--editor-shadow-sm:0 1px 2px 0 #0000000d;--editor-shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--editor-shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.dark{--editor-text-default:hsl(var(--foreground));--editor-text-gray:hsl(var(--muted-foreground));--editor-text-brown:#f97415;--editor-text-orange:#f97015;--editor-text-yellow:#facc14;--editor-text-green:#21c45d;--editor-text-blue:#2463eb;--editor-text-purple:#d8b4fe;--editor-text-pink:#ea3e83;--editor-text-red:#ef4343;--editor-bg-default:hsl(var(--card));--editor-bg-subtle:hsl(var(--muted));--editor-bg-muted:hsl(var(--secondary));--editor-highlight-default:hsl(var(--muted));--editor-highlight-gray:hsl(var(--secondary));--editor-highlight-brown:#322401;--editor-highlight-orange:#331c00;--editor-highlight-yellow:#332e00;--editor-highlight-green:#072c15;--editor-highlight-blue:#021431;--editor-highlight-purple:#190132;--editor-highlight-pink:#2e0515;--editor-highlight-red:#2f0404;--editor-border-default:hsl(var(--border));--editor-border-strong:hsl(var(--ring))}:where(.minimal-tiptap-editor) .ProseMirror{caret-color:var(--editor-text-default);padding:var(--editor-spacing-6)var(--editor-spacing-6);max-width:90ch;font-family:var(--editor-font-sans),serif;background-color:var(--editor-bg-default);color:var(--editor-text-default);transition:all var(--editor-transition-normal);min-height:100vh;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;outline:none;margin:0 auto;position:relative}:where(.minimal-tiptap-editor) .ProseMirror:focus{box-shadow:none;outline:none}:where(.minimal-tiptap-editor) .ProseMirror ::-moz-selection{background-color:color-mix(in srgb,hsl(var(--primary))20%,transparent)}:where(.minimal-tiptap-editor) .ProseMirror .selection,:where(.minimal-tiptap-editor) .ProseMirror ::selection{background-color:color-mix(in srgb,hsl(var(--primary))20%,transparent)}:where(.minimal-tiptap-editor) .ProseMirror>.react-renderer{margin:var(--editor-spacing-12)0;transition:all var(--editor-transition-normal)}:where(.minimal-tiptap-editor) .ProseMirror>.react-renderer:first-child{margin-top:0}:where(.minimal-tiptap-editor) .ProseMirror>.react-renderer:last-child{margin-bottom:0}:where(.minimal-tiptap-editor) .ProseMirror p{margin:var(--editor-spacing-2)0;color:var(--editor-text-default);font-size:1rem;line-height:1.75}:where(.minimal-tiptap-editor) .ProseMirror>p{margin:var(--editor-spacing-3)0}:where(.minimal-tiptap-editor) .ProseMirror h1,:where(.minimal-tiptap-editor) .ProseMirror h2,:where(.minimal-tiptap-editor) .ProseMirror h3,:where(.minimal-tiptap-editor) .ProseMirror h4{font-family:var(--editor-font-sans),serif;letter-spacing:-.025em;color:var(--editor-text-default);scroll-margin-top:var(--editor-spacing-16);font-weight:700;line-height:1.2}:where(.minimal-tiptap-editor) .ProseMirror h1{margin:var(--editor-spacing-6)0 var(--editor-spacing-3);font-size:1.5rem;line-height:1.2}:where(.minimal-tiptap-editor) .ProseMirror h2{margin:var(--editor-spacing-6)0 var(--editor-spacing-3);font-size:1.25rem;line-height:1.3}:where(.minimal-tiptap-editor) .ProseMirror h3{margin:var(--editor-spacing-4)0 var(--editor-spacing-2);font-size:1.125rem;line-height:1.4}:where(.minimal-tiptap-editor) .ProseMirror h4{margin:var(--editor-spacing-3)0 var(--editor-spacing-2);font-size:1rem;line-height:1.5}:where(.minimal-tiptap-editor) .ProseMirror a{color:var(--editor-text-blue);cursor:pointer;text-underline-offset:.2em;transition:all var(--editor-transition-fast);text-decoration:underline;text-decoration-thickness:.1em}:where(.minimal-tiptap-editor) .ProseMirror a:hover{color:var(--editor-text-blue);text-decoration-thickness:.2em}:where(.minimal-tiptap-editor) .ProseMirror code{font-family:var(--editor-font-mono),serif;background-color:var(--editor-bg-muted);color:var(--editor-text-default);border:1px solid var(--editor-border-default);border-radius:4px;padding:.2em .4em;font-size:.9em}:where(.minimal-tiptap-editor) .ProseMirror pre{margin:var(--editor-spacing-6)0;padding:var(--editor-spacing-4);background-color:var(--editor-bg-subtle);border:1px solid var(--editor-border-default);border-radius:8px;overflow-x:auto}:where(.minimal-tiptap-editor) .ProseMirror pre code{color:var(--editor-text-default);background-color:#0000;border:none;padding:0;font-size:.875rem;line-height:1.7}:where(.minimal-tiptap-editor) .ProseMirror blockquote{margin:var(--editor-spacing-6)0;padding:var(--editor-spacing-4)var(--editor-spacing-6);border-left:4px solid var(--editor-border-strong);color:var(--editor-text-gray);background-color:var(--editor-bg-subtle);border-radius:0 8px 8px 0;font-style:italic}:where(.minimal-tiptap-editor) .ProseMirror ul,:where(.minimal-tiptap-editor) .ProseMirror ol{margin:var(--editor-spacing-4)0;padding-left:var(--editor-spacing-6)}:where(.minimal-tiptap-editor) .ProseMirror li{margin:var(--editor-spacing-2)0;padding-left:var(--editor-spacing-1)}:where(.minimal-tiptap-editor) .ProseMirror ul{list-style-type:disc}:where(.minimal-tiptap-editor) .ProseMirror ul ul{list-style-type:circle}:where(.minimal-tiptap-editor) .ProseMirror ul ul ul{list-style-type:square}:where(.minimal-tiptap-editor) .ProseMirror ol{list-style-type:decimal}:where(.minimal-tiptap-editor) .ProseMirror ol ol{list-style-type:lower-alpha}:where(.minimal-tiptap-editor) .ProseMirror ol ol ol{list-style-type:lower-roman}:where(.minimal-tiptap-editor) .ProseMirror table{border-collapse:separate;border-spacing:0;width:100%;margin:var(--editor-spacing-6)0;border:1px solid var(--editor-border-default);border-radius:8px;overflow:hidden}:where(.minimal-tiptap-editor) .ProseMirror th{background-color:var(--editor-bg-subtle);text-align:left;padding:var(--editor-spacing-3)var(--editor-spacing-4);border-bottom:2px solid var(--editor-border-default);font-weight:600}:where(.minimal-tiptap-editor) .ProseMirror td{padding:var(--editor-spacing-3)var(--editor-spacing-4);border-bottom:1px solid var(--editor-border-default);transition:background-color var(--editor-transition-fast)}:where(.minimal-tiptap-editor) .ProseMirror tr:last-child td{border-bottom:none}:where(.minimal-tiptap-editor) .ProseMirror tr:hover td{background-color:var(--editor-bg-subtle)}:where(.minimal-tiptap-editor) .ProseMirror img{border:1px solid var(--editor-border-default);max-width:100%;height:auto;box-shadow:var(--editor-shadow-sm);transition:all var(--editor-transition-normal);margin:var(--editor-spacing-1)auto;border-radius:8px;display:block}:where(.minimal-tiptap-editor) .ProseMirror img:hover{box-shadow:var(--editor-shadow-lg);transform:translateY(-2px)}:where(.minimal-tiptap-editor) .ProseMirror hr{margin:var(--editor-spacing-8)0;border:none;border-top:2px solid var(--editor-border-default)}.floating-menu{background-color:var(--editor-bg-default);border:1px solid var(--editor-border-default);box-shadow:var(--editor-shadow-lg);padding:var(--editor-spacing-1);gap:var(--editor-spacing-1);animation:fadeIn var(--editor-transition-normal);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:8px;align-items:center;display:flex}.toolbar-button{height:2.25rem;padding:0 var(--editor-spacing-3);transition:all var(--editor-transition-fast);color:var(--editor-text-default);background-color:#0000;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;font-size:.875rem;font-weight:500;display:inline-flex}.toolbar-button:hover{background-color:var(--editor-bg-subtle);color:var(--editor-text-default)}.toolbar-button:focus-visible{box-shadow:0 0 0 2px var(--editor-border-strong);outline:none}.toolbar-button:disabled{opacity:.5;cursor:not-allowed}.toolbar-button.active{background-color:var(--editor-bg-muted);color:var(--editor-text-blue)}@media (max-width:640px){:where(.minimal-tiptap-editor) .ProseMirror{padding:var(--editor-spacing-2)var(--editor-spacing-2)}:where(.minimal-tiptap-editor) .ProseMirror h1{font-size:1.25rem}:where(.minimal-tiptap-editor) .ProseMirror h2{font-size:1.125rem}:where(.minimal-tiptap-editor) .ProseMirror h3{font-size:1rem}:where(.minimal-tiptap-editor) .ProseMirror h4,:where(.minimal-tiptap-editor) .ProseMirror p{font-size:.875rem}}@keyframes fadeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@media print{:where(.minimal-tiptap-editor) .ProseMirror{max-width:none;padding:0}.floating-menu,.toolbar-button{display:none}}:where(.minimal-tiptap-editor) .is-editor-empty:first-child:before{color:var(--editor-text-gray);content:attr(data-placeholder);float:left;pointer-events:none;height:0}.minimal-tiptap-editor[data-resizable=true]{position:relative;overflow:auto}.minimal-tiptap-editor[data-resizable=true] .ProseMirror{height:100%;min-height:0!important}.minimal-tiptap-editor[data-resizable=true]::-webkit-resizer{background-image:url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M14 14L14 10M14 14L10 14M14 14L8 8\" stroke=\"rgb(100 116 139)\" stroke-width=\"1.5\" fill=\"none\" stroke-linecap=\"round\"/></svg>");background-position:50%;background-repeat:no-repeat;border-radius:0 0 .375rem}.minimal-tiptap-editor[data-resizable=true]:hover::-webkit-resizer{background-image:url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M14 14L14 10M14 14L10 14M14 14L8 8\" stroke=\"rgb(51 65 85)\" stroke-width=\"1.5\" fill=\"none\" stroke-linecap=\"round\"/></svg>")}.dark .minimal-tiptap-editor[data-resizable=true]::-webkit-resizer{background-image:url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M14 14L14 10M14 14L10 14M14 14L8 8\" stroke=\"rgb(148 163 184)\" stroke-width=\"1.5\" fill=\"none\" stroke-linecap=\"round\"/></svg>")}.dark .minimal-tiptap-editor[data-resizable=true]:hover::-webkit-resizer{background-image:url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path d=\"M14 14L14 10M14 14L10 14M14 14L8 8\" stroke=\"rgb(203 213 225)\" stroke-width=\"1.5\" fill=\"none\" stroke-linecap=\"round\"/></svg>")}
