.rich-text-editor-container{position:relative;overflow:hidden}.rich-text-editor-content{scrollbar-width:thin;scrollbar-color:hsl(var(--muted-foreground)/.3) transparent}.rich-text-editor-content::-webkit-scrollbar{width:8px;height:8px}.rich-text-editor-content::-webkit-scrollbar-track{background:transparent;border-radius:4px}.rich-text-editor-content::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.3);border-radius:4px;transition:background .2s ease}.rich-text-editor-content::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground)/.5)}.rich-text-editor-container:focus-within{outline:2px solid hsl(var(--ring));outline-offset:2px;border-radius:inherit}.ProseMirror{outline:none!important;word-wrap:break-word;white-space:pre-wrap;word-break:break-word}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:hsl(var(--muted-foreground));pointer-events:none;height:0}.ProseMirror>*+*{margin-top:.75em}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3{line-height:1.3;margin-top:1.5rem;margin-bottom:.5rem;font-weight:600}.ProseMirror h1{font-size:2em}.ProseMirror h2{font-size:1.5em}.ProseMirror h3{font-size:1.25em}.ProseMirror ol,.ProseMirror ul{padding-left:1.5rem;margin:.75rem 0}.ProseMirror li{margin:.25rem 0}.ProseMirror blockquote{border-left:3px solid hsl(var(--border));padding-left:1rem;margin-left:0;font-style:italic;color:hsl(var(--muted-foreground))}.ProseMirror code{padding:.2em .4em;border-radius:3px;font-size:.9em}.ProseMirror code,.ProseMirror pre{background:hsl(var(--muted));font-family:Courier New,monospace}.ProseMirror pre{border-radius:.5rem;padding:.75rem 1rem;overflow-x:auto}.ProseMirror pre code{background:none;padding:0}.ProseMirror img{max-width:100%;height:auto;border-radius:.5rem;display:block;margin:1rem 0}.ProseMirror a{color:hsl(var(--primary));text-decoration:underline;cursor:pointer;transition:color .2s ease}.ProseMirror a:hover{color:hsl(var(--primary)/.8)}.ProseMirror hr{border:none;border-top:2px solid hsl(var(--border));margin:2rem 0}.ProseMirror ::selection{background:hsl(var(--primary)/.2)}.ProseMirror p.is-empty:before{color:hsl(var(--muted-foreground)/.5)}.ProseMirror a.ProseMirror-selectednode{outline:2px solid hsl(var(--primary));outline-offset:2px;border-radius:2px}.ProseMirror img.ProseMirror-selectednode{outline:3px solid hsl(var(--primary));outline-offset:2px}.rich-text-editor-toolbar{position:sticky;top:0;z-index:10;background:hsl(var(--background));backdrop-filter:blur(8px);background-clip:padding-box}.rich-text-editor-loading{display:flex;align-items:center;justify-content:center;min-height:200px;color:hsl(var(--muted-foreground));animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.rich-text-editor-readonly .ProseMirror{cursor:default;background:hsl(var(--muted)/.3)}.rich-text-editor-error{border-color:hsl(var(--destructive))!important}.rich-text-editor-error:focus-within{outline-color:hsl(var(--destructive))!important}@media (max-width:640px){.rich-text-editor-content{font-size:.95em}.ProseMirror{padding:.75rem}}