.section-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 16px;
    padding: 14px;
    border: 1px solid rgba(216,169,77,.20);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.section-toolbar form {
    margin: 0;
}

.section-editor-panel {
    background:
        radial-gradient(circle at top left, rgba(216,169,77,.12), transparent 22rem),
        rgba(24,27,37,.96);
}

.section-editor-form label {
    display: block;
}

.section-editor-form label span {
    display: block;
    color: var(--accent);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-editor-form textarea {
    width: 100%;
    min-height: 620px;
    resize: vertical;
    border: 1px solid rgba(216,169,77,.24);
    border-radius: 16px;
    padding: 18px;
    background: rgba(5,7,10,.72);
    color: var(--text);
    font: 15px/1.45 Consolas, Monaco, "Courier New", monospace;
}

.section-editor-form textarea[readonly] {
    opacity: .78;
    cursor: not-allowed;
}

.section-lock-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.section-lock-actions form {
    margin: 0;
}

.editor-preview {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: rgba(255,255,255,.035);
}

.generated-section-drawer small {
    text-transform: capitalize;
}

@media (max-width: 700px) {
    .section-toolbar,
    .section-lock-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section-toolbar .button,
    .section-toolbar button,
    .section-lock-actions .button,
    .section-lock-actions button {
        width: 100%;
    }
}
