.rich-text-editor {
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.rich-text-editor:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.rich-text-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.rich-text-editor__button {
    min-width: 2rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #d0d7de;
    border-radius: 0.5rem;
    background: #fff;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1;
}

.rich-text-editor__button:hover,
.rich-text-editor__button:focus {
    border-color: #86b7fe;
    color: #0d6efd;
    outline: none;
}

.rich-text-editor__surface {
    min-height: 9rem;
    padding: 0.85rem 1rem;
    color: #212529;
    outline: none;
}

.rich-text-editor__surface:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

.rich-text-editor__surface p:last-child,
.rich-text-editor__surface ul:last-child,
.rich-text-editor__surface ol:last-child,
.rich-text-editor__surface h3:last-child,
.rich-text-editor__surface h4:last-child {
    margin-bottom: 0;
}

.rich-text-editor__surface h3,
.rich-text-editor__surface h4 {
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.rich-text-editor__surface h3 {
    font-size: 1.2rem;
}

.rich-text-editor__surface h4 {
    font-size: 1.05rem;
}

.rich-text-editor__surface ul,
.rich-text-editor__surface ol {
    padding-left: 1.5rem;
}

.rich-text-editor__source {
    display: none;
}
