.rich-editor {
    width: 100%;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.rich-editor-bar {
    display: flex; flex-wrap: wrap; gap: 4px; padding: 8px;
    background: #f8fafc; border-bottom: 1px solid var(--line, #e5e7eb);
}
.rich-editor-bar button {
    min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px;
    background: transparent; color: #334155; font: inherit; font-size: 13px; font-weight: 800;
    cursor: pointer;
}
.rich-editor-bar button:hover, .rich-editor-bar button.is-on { background: #ecf8ee; color: #15803d; }
.rich-editor-surface {
    min-height: 140px; max-height: 480px; overflow: auto; padding: 12px 14px;
    font: inherit; color: #0f172a; line-height: 1.55; outline: none;
}
.rich-editor-surface:empty:before {
    content: attr(data-placeholder); color: #94a3b8;
}
.rich-editor-surface p { margin: 0 0 10px; }
.rich-editor-surface h2, .rich-editor-surface h3, .rich-editor-surface h4 { margin: 0 0 10px; }
.rich-editor-surface ul, .rich-editor-surface ol { margin: 0 0 10px; padding-left: 22px; }
.rich-editor-surface a { color: #16a34a; font-weight: 700; }
.rich-editor-surface blockquote {
    margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid #86efac; color: #475569;
}
.rich-content { color: #334155; line-height: 1.6; }
.rich-content p { margin: 0 0 10px; }
.rich-content h2, .rich-content h3, .rich-content h4 { margin: 16px 0 8px; color: #0f172a; }
.rich-content ul, .rich-content ol { margin: 0 0 12px; padding-left: 22px; }
.rich-content a { color: var(--green, #16a34a); font-weight: 700; }
.rich-content blockquote {
    margin: 0 0 12px; padding: 6px 12px; border-left: 3px solid #86efac; color: #475569;
}
.admin-card textarea.rich-editor-source,
.field textarea.rich-editor-source,
.settings-form textarea.rich-editor-source,
textarea.rich-editor-source { display: none !important; }
