.rte{border:1.5px solid var(--border);background:var(--surface);border-radius:12px;transition:border-color .15s,box-shadow .15s;overflow:hidden}.rte:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(var(--brand-rgb), .1)}.rte--invalid{border-color:var(--danger)}.rte--invalid:focus-within{box-shadow:0 0 0 3px rgba(var(--danger-rgb), .12)}.rte--disabled{opacity:.7;pointer-events:none}.rte-toolbar{background:var(--surface-2);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;display:flex}.rte-tabs{background:var(--brand-soft);border-radius:9px;gap:4px;padding:3px;display:flex}.rte-tab{color:var(--text-3);cursor:pointer;background:0 0;border:none;border-radius:7px;padding:5px 12px;font-family:Comfortaa,cursive;font-size:12px;font-weight:700;transition:all .12s}.rte-tab--active{background:var(--surface);color:var(--brand-fg);box-shadow:0 1px 3px rgba(var(--shadow-rgb), .08)}.rte-tools{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.rte-btn{border:1.5px solid var(--border);background:var(--surface);min-width:30px;height:30px;color:var(--text-3);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;padding:0 7px;font-family:Comfortaa,cursive;font-size:13px;font-weight:700;transition:all .12s;display:flex}.rte-btn:hover{border-color:var(--brand-border);background:var(--brand-soft);color:var(--brand-fg)}.rte-divider{background:var(--border);width:1px;height:20px;margin:0 2px}.rte-toolbar-spacer{flex:1}.rte-textarea{background:var(--surface);resize:vertical;width:100%;color:var(--text);box-sizing:border-box;border:none;outline:none;padding:16px 18px;font-family:Comfortaa,cursive;font-size:14px;line-height:1.8;display:block}.rte-textarea::placeholder{color:var(--text-4)}.rte-preview{background:var(--surface);box-sizing:border-box;padding:16px 18px;overflow-y:auto}.rte-preview-empty{color:var(--text-4);font-family:Comfortaa,cursive;font-size:13px;font-style:italic}.rte-preview .blog-content-h2{color:var(--text);margin:18px 0 10px;font-family:Comfortaa,cursive;font-size:19px;font-weight:700;line-height:1.3}.rte-preview .blog-content-h2:first-child,.rte-preview .blog-content-h3:first-child,.rte-preview .blog-content-p:first-child{margin-top:0}.rte-preview .blog-content-h3{color:var(--text);margin:14px 0 6px;font-family:Comfortaa,cursive;font-size:15px;font-weight:700}.rte-preview .blog-content-p{color:var(--text-2);margin:0;font-family:Comfortaa,cursive;font-size:14px;line-height:1.75}.rte-preview .blog-content-ul{margin:4px 0 8px;padding-left:22px}.rte-preview .blog-content-li{color:var(--text-2);margin-bottom:4px;font-family:Comfortaa,cursive;font-size:14px;line-height:1.7;list-style:outside}.rte-preview .blog-content-quote{border-left:3px solid var(--brand-border);background:var(--brand-soft);border-radius:0 8px 8px 0;margin:10px 0;padding:8px 14px}.rte-preview .blog-content-quote-p{color:var(--text-2);margin:0;font-family:Comfortaa,cursive;font-size:14px;font-style:italic;line-height:1.7}.rte-preview .blog-content-spacer{height:8px}.rte-preview a{color:var(--brand-fg);text-decoration:underline}.rte-footer{background:var(--surface-2);border-top:1px solid var(--border);color:var(--text-4);align-items:center;gap:8px;padding:9px 14px;font-family:Comfortaa,cursive;font-size:11px;display:flex}.rte-hint{flex:1}.rte-count{white-space:nowrap;margin-left:auto}.rte-count--over{color:var(--danger-fg);font-weight:700}.rte-count--ok{color:var(--success-fg);font-weight:700}.rte-toolbar .rte-ai-btn.p-button{background:linear-gradient(135deg, var(--accent), var(--brand));box-shadow:0 2px 8px rgba(var(--accent-rgb), .25);border:none;border-radius:9px;padding:6px 12px;font-family:Comfortaa,cursive;font-size:12px;font-weight:700}.rte-toolbar .rte-ai-btn.p-button:enabled:hover{background:linear-gradient(135deg, var(--accent), var(--brand-active))}.rte-toolbar .rte-ai-btn.p-button:disabled{opacity:.75}.rte-toolbar .rte-ai-extra{align-items:center;gap:6px;display:inline-flex}
