.rte-wrapper{width:100%;height:100%;min-height:300px}.rte-label{color:#1f2937;margin-bottom:.5rem;font-size:.875rem;font-weight:600;display:block}.rte-required{color:#ef4444;margin-left:.25rem}.rte-container{background:#fff;border:1px solid #d1d5db;border-radius:.375rem;flex-direction:column;height:100%;min-height:300px;transition:border-color .2s,box-shadow .2s;display:flex;overflow:hidden}.rte-container:focus-within{border-color:#1f2937;box-shadow:0 0 0 2px #1f29371a}.rte-container.has-error{border-color:#ef4444}.rte-container.has-error:focus-within{border-color:#ef4444;box-shadow:0 0 0 2px #ef444433}.rte-container.disabled{opacity:.6;pointer-events:none;background:#f9fafb}.rte-toolbar{z-index:10;background:#f8fafc;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.25rem;padding:.5rem .75rem;display:flex;position:sticky;top:0}.rte-toolbar-group{align-items:center;gap:2px;display:flex;position:relative}.rte-divider{background:#d1d5db;width:1px;height:24px;margin:0 .375rem}.rte-btn{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:.375rem;justify-content:center;align-items:center;width:32px;height:32px;transition:all .15s;display:flex}.rte-btn:hover:not(:disabled){color:#1f2937;background:#e5e7eb}.rte-btn:focus-visible{outline-offset:1px;outline:2px solid #3b82f6}.rte-btn.active{color:#92400e;background:#fef3c7}.rte-btn.active:hover:not(:disabled){color:#78350f;background:#fde68a}.rte-btn:disabled{opacity:.35;cursor:not-allowed}.rte-btn.uploading{color:#3b82f6}.rte-dropdown-btn{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:.375rem;justify-content:space-between;align-items:center;gap:.375rem;min-width:110px;padding:.375rem .625rem;font-size:.8125rem;transition:all .15s;display:flex}.rte-dropdown-btn:hover{background:#f9fafb;border-color:#9ca3af}.rte-dropdown-btn:focus-visible{outline-offset:1px;outline:2px solid #3b82f6}.rte-dropdown-btn.small{min-width:64px}.rte-dropdown-btn svg{opacity:.5;flex-shrink:0;transition:transform .15s}.rte-dropdown-btn[aria-expanded=true] svg{transform:rotate(180deg)}.rte-dropdown{z-index:50;background:#fff;border:1px solid #e5e7eb;border-radius:.5rem;min-width:130px;max-height:260px;padding:.25rem;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto;box-shadow:0 4px 16px #0000001f}.rte-dropdown-item{text-align:left;color:#374151;cursor:pointer;background:0 0;border:none;border-radius:.25rem;width:100%;padding:.5rem .75rem;font-size:.8125rem;transition:all .1s;display:block}.rte-dropdown-item:hover{background:#f3f4f6}.rte-dropdown-item:focus-visible{outline-offset:-2px;outline:2px solid #3b82f6}.rte-dropdown-item.active{color:#1d4ed8;background:#dbeafe;font-weight:500}.rte-dropdown-item.active:hover{background:#bfdbfe}.rte-link-input{background:#eff6ff;border-bottom:1px solid #dbeafe;flex-shrink:0;align-items:center;gap:.5rem;padding:.625rem .75rem;display:flex}.rte-link-input input{border:1px solid #d1d5db;border-radius:.375rem;outline:none;flex:1;padding:.5rem .75rem;font-size:.875rem;transition:border-color .15s,box-shadow .15s}.rte-link-input input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.rte-link-input input::placeholder{color:#9ca3af}.rte-link-input button{cursor:pointer;border:none;border-radius:.375rem;padding:.5rem 1rem;font-size:.8125rem;font-weight:500;transition:all .15s}.rte-link-input button:first-of-type{color:#fff;background:#3b82f6}.rte-link-input button:first-of-type:hover:not(:disabled){background:#2563eb}.rte-link-input button:first-of-type:disabled{opacity:.5;cursor:not-allowed}.rte-link-input button:first-of-type:focus-visible{outline-offset:2px;outline:2px solid #1d4ed8}.rte-link-input button:last-of-type{color:#374151;background:#e5e7eb}.rte-link-input button:last-of-type:hover{background:#d1d5db}.rte-link-input button:last-of-type:focus-visible{outline-offset:2px;outline:2px solid #6b7280}.rte-content{background:#fff;flex:1;min-height:0;position:relative;overflow-y:auto}.rte-content .ProseMirror{color:#1f2937;outline:none;height:100%;min-height:100%;padding:1rem;line-height:1.6}.rte-content .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#9ca3af;pointer-events:none;height:0}.rte-content .ProseMirror p{margin:0 0 .75rem}.rte-content .ProseMirror p:last-child{margin-bottom:0}.rte-content .ProseMirror h1{color:#111827;margin:1.5rem 0 .75rem;font-size:2rem;font-weight:700;line-height:1.2}.rte-content .ProseMirror h2{color:#111827;margin:1.25rem 0 .625rem;font-size:1.5rem;font-weight:600;line-height:1.25}.rte-content .ProseMirror h3{color:#111827;margin:1rem 0 .5rem;font-size:1.25rem;font-weight:600;line-height:1.3}.rte-content .ProseMirror h4{color:#111827;margin:1rem 0 .5rem;font-size:1.125rem;font-weight:600}.rte-content .ProseMirror h5{color:#111827;margin:.875rem 0 .5rem;font-size:1rem;font-weight:600}.rte-content .ProseMirror h6{color:#374151;margin:.75rem 0 .5rem;font-size:.875rem;font-weight:600}.rte-content .ProseMirror h1:first-child,.rte-content .ProseMirror h2:first-child,.rte-content .ProseMirror h3:first-child,.rte-content .ProseMirror h4:first-child,.rte-content .ProseMirror h5:first-child,.rte-content .ProseMirror h6:first-child{margin-top:0}.rte-content .ProseMirror ul,.rte-content .ProseMirror ol{margin:.5rem 0;padding-left:1.5rem}.rte-content .ProseMirror li{margin:.25rem 0}.rte-content .ProseMirror ul li::marker{color:#6b7280}.rte-content .ProseMirror ol li::marker{color:#6b7280;font-weight:500}.rte-content .ProseMirror blockquote{color:#6b7280;border-left:3px solid #d1d5db;margin:1rem 0;padding-left:1rem;font-style:italic}.rte-content .ProseMirror code{color:#dc2626;background:#f3f4f6;border-radius:.25rem;padding:.125rem .375rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.875em}.rte-content .ProseMirror pre{color:#f3f4f6;background:#1f2937;border-radius:.5rem;margin:1rem 0;padding:.75rem 1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.875rem;overflow-x:auto}.rte-content .ProseMirror pre code{color:inherit;background:0 0;padding:0}.rte-content .ProseMirror hr{border:none;border-top:1px solid #e5e7eb;margin:1.5rem 0}.editor-link{color:#2563eb;text-underline-offset:2px;cursor:pointer;text-decoration:underline;transition:color .15s}.editor-link:hover{color:#1d4ed8}.image-wrapper{margin:.75rem 0;line-height:0;display:block;position:relative}.image-wrapper.alignment-left{text-align:left}.image-wrapper.alignment-center{text-align:center}.image-wrapper.alignment-right{text-align:right}.image-wrapper.selected{outline:none}.image-wrapper.selected .editor-image{outline-offset:2px;outline:2px solid #3b82f6}.editor-image{vertical-align:top;border-radius:.375rem;max-width:100%;height:auto;transition:outline .15s;display:inline-block}.image-toolbar{z-index:20;background:#1f2937;border-radius:.5rem;align-items:center;gap:2px;padding:.375rem;display:flex;position:absolute;top:-44px;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #0003}.image-toolbar-btn{color:#d1d5db;cursor:pointer;background:0 0;border:none;border-radius:.25rem;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:all .15s;display:flex}.image-toolbar-btn:hover{color:#fff;background:#374151}.image-toolbar-btn:focus-visible{outline-offset:-2px;outline:2px solid #60a5fa}.image-toolbar-btn.active{color:#fff;background:#3b82f6}.image-toolbar-btn.active:hover{background:#2563eb}.image-toolbar-btn.size-btn{width:auto;padding:0 .5rem;font-size:.6875rem;font-weight:600}.image-toolbar-divider{background:#4b5563;width:1px;height:16px;margin:0 4px}.image-delete-btn{color:#fff;cursor:pointer;z-index:21;background:#ef4444;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;padding:0;transition:transform .15s,background .15s;display:flex;position:absolute;top:-10px;right:-10px;box-shadow:0 2px 6px #0003}.image-delete-btn:hover{background:#dc2626;transform:scale(1.1)}.image-delete-btn:focus-visible{outline-offset:2px;outline:2px solid #b91c1c}.resize-handle{z-index:20;background:#3b82f6;border:2px solid #fff;border-radius:50%;width:12px;height:12px;transition:transform .15s,background .15s;position:absolute;box-shadow:0 2px 4px #0003}.resize-handle:hover{background:#2563eb;transform:scale(1.2)}.resize-handle-nw{cursor:nw-resize;top:-6px;left:-6px}.resize-handle-ne{cursor:ne-resize;top:-6px;right:-6px}.resize-handle-sw{cursor:sw-resize;bottom:-6px;left:-6px}.resize-handle-se{cursor:se-resize;bottom:-6px;right:-6px}.rte-bubble-menu{background:#1f2937;border-radius:.5rem;align-items:center;gap:2px;padding:.375rem;display:flex;box-shadow:0 4px 16px #0003}.rte-bubble-menu button{color:#d1d5db;cursor:pointer;background:0 0;border:none;border-radius:.25rem;justify-content:center;align-items:center;width:28px;height:28px;transition:all .15s;display:flex}.rte-bubble-menu button:hover{color:#fff;background:#374151}.rte-bubble-menu button:focus-visible{outline-offset:-2px;outline:2px solid #60a5fa}.rte-bubble-menu button.active{color:#fff;background:#3b82f6}.rte-bubble-menu button.active:hover{background:#2563eb}.rte-bubble-menu .divider{background:#4b5563;width:1px;height:16px;margin:0 4px}.rte-footer{justify-content:space-between;align-items:center;gap:1rem;padding:.625rem 0;font-size:.75rem;display:flex}.rte-counts{color:#6b7280;gap:1rem;display:flex}.rte-counts .warning{color:#f59e0b;font-weight:500}.rte-error{color:#ef4444;margin-top:.5rem;font-size:.75rem;font-weight:500}@media (max-width:640px){.rte-toolbar{gap:.125rem;padding:.375rem .5rem}.rte-btn{width:30px;height:30px}.rte-dropdown-btn{min-width:90px;padding:.25rem .5rem;font-size:.75rem}.rte-dropdown-btn.small{min-width:54px}.rte-divider{height:20px;margin:0 .25rem}.rte-link-input{flex-wrap:wrap}.rte-link-input input{flex:none;width:100%}.rte-footer{flex-direction:column;align-items:flex-start;gap:.25rem}.image-toolbar{padding:.25rem;top:-40px}.image-toolbar-btn{width:24px;height:24px}.image-toolbar-btn.size-btn{padding:0 .375rem;font-size:.625rem}}@media (prefers-reduced-motion:reduce){.rte-btn,.rte-dropdown-btn,.rte-dropdown-item,.rte-link-input button,.rte-link-input input,.rte-bubble-menu button,.resize-handle,.image-delete-btn,.image-toolbar-btn,.editor-link,.rte-container,.editor-image{transition:none}.rte-btn .animate-spin{animation:none}}.rte-renderer{width:100%}.rte-renderer-container{width:100%;margin:0 auto}.rte-renderer-content{font-family:var(--font-body,inherit);color:#1f2937;line-height:1.6}.rte-renderer-content h1{color:#111827;margin:1.5rem 0 .75rem;font-size:2rem;font-weight:700;line-height:1.2}.rte-renderer-content h2{color:#111827;margin:1.25rem 0 .625rem;font-size:1.5rem;font-weight:600;line-height:1.25}.rte-renderer-content h3{color:#111827;margin:1rem 0 .5rem;font-size:1.25rem;font-weight:600;line-height:1.3}.rte-renderer-content h4{color:#111827;margin:1rem 0 .5rem;font-size:1.125rem;font-weight:600}.rte-renderer-content h5{color:#111827;margin:.875rem 0 .5rem;font-size:1rem;font-weight:600}.rte-renderer-content h6{color:#374151;margin:.75rem 0 .5rem;font-size:.875rem;font-weight:600}.rte-renderer-content h1:first-child,.rte-renderer-content h2:first-child,.rte-renderer-content h3:first-child,.rte-renderer-content h4:first-child,.rte-renderer-content h5:first-child,.rte-renderer-content h6:first-child{margin-top:0}.rte-renderer-content p{margin:0 0 .75rem}.rte-renderer-content p:last-child{margin-bottom:0}.rte-renderer-content ul,.rte-renderer-content ol{margin:.5rem 0;padding-left:1.5rem}.rte-renderer-content li{margin:.25rem 0}.rte-renderer-content ul li::marker{color:#6b7280}.rte-renderer-content ol li::marker{color:#6b7280;font-weight:500}.rte-renderer-content blockquote{color:#6b7280;border-left:3px solid #d1d5db;margin:1rem 0;padding-left:1rem;font-style:italic}.rte-renderer-content code{color:#dc2626;background:#f3f4f6;border-radius:.25rem;padding:.125rem .375rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.875em}.rte-renderer-content pre{color:#f3f4f6;background:#1f2937;border-radius:.5rem;margin:1rem 0;padding:.75rem 1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.875rem;overflow-x:auto}.rte-renderer-content pre code{color:inherit;background:0 0;padding:0}.rte-renderer-content hr{border:none;border-top:1px solid #e5e7eb;margin:1.5rem 0}.rte-renderer-content a{color:#2563eb;text-underline-offset:2px;cursor:pointer;text-decoration:underline;transition:color .15s}.rte-renderer-content a:hover{color:#1d4ed8}.rte-renderer-content .image-wrapper{margin:.75rem 0;line-height:0;display:block;position:relative}.rte-renderer-content .image-wrapper.alignment-left{text-align:left}.rte-renderer-content .image-wrapper.alignment-center{text-align:center}.rte-renderer-content .image-wrapper.alignment-right{text-align:right}.rte-renderer-content .editor-image{vertical-align:top;border-radius:.375rem;max-width:100%;height:auto;display:inline-block}.rte-renderer-content strong,.rte-renderer-content b{font-weight:700}.rte-renderer-content em,.rte-renderer-content i{font-style:italic}.rte-renderer-content u{text-decoration:underline}.rte-renderer-content s,.rte-renderer-content strike{text-decoration:line-through}@media (max-width:640px){.rte-renderer-content h1{font-size:1.75rem}.rte-renderer-content h2{font-size:1.375rem}.rte-renderer-content h3{font-size:1.125rem}.rte-renderer-content ul,.rte-renderer-content ol{padding-left:1.25rem}}.rte-editor p{word-wrap:break-word;overflow-wrap:break-word;margin:0 0 .75rem;white-space:pre-wrap!important}.rte-renderer-content{word-wrap:break-word;overflow-wrap:break-word;white-space:pre-wrap!important}.rte-renderer-content p{word-wrap:break-word;overflow-wrap:break-word;margin:0 0 .75rem;white-space:pre-wrap!important}.rte-renderer-content .image-wrapper img{max-width:100%!important;height:auto!important;display:inline-block!important}.rte-renderer-content .image-wrapper img[width]{max-width:none!important}.rte-renderer-content .image-wrapper img[height]{height:auto!important}.rte-renderer-content .image-wrapper img[style*=width]{max-width:none!important}.rte-renderer-content .image-wrapper img[style*=height]{height:auto!important}.rte-renderer-content span[style*=font-size]{display:inline!important}.rte-renderer-content [style*=text-align]{text-align:inherit!important}.rte-renderer-content .text-left{text-align:left!important}.rte-renderer-content .text-center{text-align:center!important}.rte-renderer-content .text-right{text-align:right!important}