.content-section-list {
    display: grid;
    gap: 16px;
}

.content-section-editor {
    display: grid;
    gap: 12px;
    border: 1px solid #e6e9f2;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 14px;
}

.content-section-editor-header {
    display: flex;
    gap: 10px;
    align-items: end;
}

.content-section-editor-header label {
    flex: 1;
}

.rich-editor {
    border: 1px solid #d9deea;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.rich-editor-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    border-bottom: 1px solid #e6e9f2;
    background: #f8f9fa;
}

.rich-editor-button {
    min-width: 34px;
    min-height: 34px;
    border: 1px solid #d9deea;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    cursor: pointer;
    font-weight: 900;
    padding: 4px 8px;
}

.rich-editor-button:hover {
    border-color: #667eea;
    color: #4f46e5;
}

.rich-editor-button:disabled {
    opacity: .6;
    cursor: wait;
}

.rich-editor-surface {
    min-height: 180px;
    padding: 14px;
    outline: none;
    background: #fff;
}

.rich-content {
    overflow-wrap: anywhere;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 1em 0 .45em;
    line-height: 1.5;
}

.rich-content p {
    margin: .5em 0;
}

.rich-content blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-inline-start: 4px solid #667eea;
    background: #f8f9fa;
    border-radius: 8px;
}

.rich-content img,
.rich-content video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.rich-audio-speaker {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 12px 0;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #4f46e5;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.rich-audio-speaker::before {
    content: "♪";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    line-height: 1;
}

.rich-audio-speaker audio {
    display: none;
}

.rich-content audio[data-speaker-rendered] {
    display: none;
}

.rich-audio-speaker::before {
    content: "\1F50A";
}

.rich-audio-speaker:hover,
.rich-audio-speaker:focus-visible,
.rich-audio-speaker.is-playing {
    border-color: #667eea;
    background: #eef2ff;
    color: #312e81;
    transform: translateY(-1px);
}

.rich-audio-speaker:focus-visible {
    outline: 3px solid rgba(102, 126, 234, .24);
    outline-offset: 2px;
}

.rich-audio-speaker.is-playing::before {
    content: "\23F8";
}

.rich-content figure {
    margin: 14px 0;
}

.rich-content figcaption {
    color: #667085;
    font-size: 13px;
    text-align: center;
}
