/* Premium create/update variant page — global (not scoped) */

/* ===== Cards & surfaces ===== */
.rs-post-edit .rs-card {
    border-radius: 1.15rem;
    border: 1px solid rgba(122, 85, 255, 0.18);
    background:
        radial-gradient(640px 280px at 8% 0%, rgba(122, 85, 255, 0.1), transparent 58%),
        radial-gradient(520px 240px at 96% 12%, rgba(0, 203, 255, 0.06), transparent 55%),
        rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 32px rgba(55, 40, 120, 0.07);
    backdrop-filter: blur(14px);
}

[data-bs-theme="dark"] .rs-post-edit .rs-card {
    border-color: rgba(152, 120, 255, 0.26);
    background:
        radial-gradient(640px 280px at 8% 0%, rgba(122, 85, 255, 0.16), transparent 58%),
        radial-gradient(520px 240px at 96% 12%, rgba(0, 203, 255, 0.1), transparent 55%),
        rgba(24, 24, 30, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.35);
}

.rs-post-edit-header {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(122, 85, 255, 0.1);
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.75rem;
}

[data-bs-theme="dark"] .rs-post-edit-header {
    border-bottom-color: rgba(152, 120, 255, 0.16);
}

.rs-post-edit .rs-tabs .nav-link {
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(122, 85, 255, 0.14);
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

[data-bs-theme="dark"] .rs-post-edit .rs-tabs .nav-link {
    background: rgba(36, 36, 42, 0.72);
    border-color: rgba(152, 120, 255, 0.2);
}

.rs-post-edit .rs-tabs .nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(122, 85, 255, 0.35);
}

.rs-post-edit .rs-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(122, 85, 255, 0.22) 0%, rgba(90, 55, 200, 0.16) 100%);
    border-color: rgba(122, 85, 255, 0.45);
    font-weight: 800;
}

/* ===== Labels ===== */
.rs-post-edit .form-label,
.rs-post-edit label.fw-bold:not(.form-check-label),
.rs-post-edit label.mb-2.fw-bold,
.rs-post-edit label.mb-2.required.fw-bold {
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(72, 45, 168, 0.72);
    margin-bottom: 0.35rem;
}

[data-bs-theme="dark"] .rs-post-edit .form-label,
[data-bs-theme="dark"] .rs-post-edit label.fw-bold:not(.form-check-label),
[data-bs-theme="dark"] .rs-post-edit label.mb-2.fw-bold,
[data-bs-theme="dark"] .rs-post-edit label.mb-2.required.fw-bold {
    color: rgba(196, 181, 253, 0.78);
}

.rs-post-edit .rs-subcard-title,
.rs-post-edit .rs-card > .d-flex > .fw-bold,
.rs-post-edit .rs-card > .fw-bold:first-child {
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    text-transform: none;
    color: rgba(48, 30, 120, 0.92);
}

[data-bs-theme="dark"] .rs-post-edit .rs-subcard-title,
[data-bs-theme="dark"] .rs-post-edit .rs-card > .d-flex > .fw-bold,
[data-bs-theme="dark"] .rs-post-edit .rs-card > .fw-bold:first-child {
    color: rgba(235, 230, 255, 0.96);
}

/* ===== Inputs & selects ===== */
.rs-post-edit .form-control,
.rs-post-edit .form-select,
.rs-post-edit textarea.form-control,
.rs-post-edit input.form-control,
.rs-post-edit select.form-select,
.rs-post-edit .form-control-lg,
.rs-post-edit .form-select-lg,
.rs-post-edit input[type="number"].form-control,
.rs-post-edit input[type="text"].form-control {
    border-radius: 0.9rem !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease;
}

[data-bs-theme="dark"] .rs-post-edit .form-control,
[data-bs-theme="dark"] .rs-post-edit .form-select,
[data-bs-theme="dark"] .rs-post-edit textarea.form-control,
[data-bs-theme="dark"] .rs-post-edit input.form-control,
[data-bs-theme="dark"] .rs-post-edit select.form-select,
[data-bs-theme="dark"] .rs-post-edit .form-control-lg,
[data-bs-theme="dark"] .rs-post-edit .form-select-lg {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(32, 32, 38, 0.88) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: rgba(248, 249, 250, 0.92);
}

.rs-post-edit .form-control:focus,
.rs-post-edit .form-select:focus,
.rs-post-edit textarea.form-control:focus,
.rs-post-edit input.form-control:focus,
.rs-post-edit select.form-select:focus {
    border-color: rgba(122, 85, 255, 0.45) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(122, 85, 255, 0.14) !important;
    outline: none;
}

[data-bs-theme="dark"] .rs-post-edit .form-control:focus,
[data-bs-theme="dark"] .rs-post-edit .form-select:focus,
[data-bs-theme="dark"] .rs-post-edit textarea.form-control:focus,
[data-bs-theme="dark"] .rs-post-edit input.form-control:focus,
[data-bs-theme="dark"] .rs-post-edit select.form-select:focus {
    border-color: rgba(152, 120, 255, 0.5) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 3px rgba(122, 85, 255, 0.22) !important;
}

.rs-post-edit .form-control.is-invalid,
.rs-post-edit .form-select.is-invalid {
    border-color: rgba(220, 38, 38, 0.55) !important;
}

.rs-post-edit .form-text,
.rs-post-edit .text-muted.small {
    color: rgba(33, 37, 41, 0.58);
}

[data-bs-theme="dark"] .rs-post-edit .form-text,
[data-bs-theme="dark"] .rs-post-edit .text-muted.small {
    color: rgba(248, 249, 250, 0.58);
}

.rs-post-edit .validation-message,
.rs-post-edit .field-validation-error,
.rs-post-edit .text-danger.is-invalid {
    font-size: 0.82rem;
    font-weight: 600;
}

/* ===== Switches & checkboxes ===== */
.rs-post-edit .form-check:not(.form-switch) .form-check-input {
    border-radius: 0.45rem;
    border: 1px solid rgba(122, 85, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.82);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

[data-bs-theme="dark"] .rs-post-edit .form-check:not(.form-switch) .form-check-input {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(152, 120, 255, 0.45);
}

.rs-post-edit .form-check-input:checked {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
}

.rs-post-edit .form-check-input:focus {
    border-color: rgba(122, 85, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(122, 85, 255, 0.14);
}

/* Publication settings — Switch (form-check form-switch) */
.rs-post-edit .rs-setting .form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 0;
    padding-left: 0;
    margin-bottom: 0;
}

.rs-post-edit .rs-setting .form-switch .form-check-input {
    flex: 0 0 auto;
    float: none;
    width: 2.5em;
    height: 1.35em;
    margin: 0;
    border-radius: 2em;
    border: 1px solid rgba(122, 85, 255, 0.32);
    background-color: rgba(148, 163, 184, 0.42);
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255,255,255,0.96%29'/%3e%3c/svg%3e");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        background-position 0.15s ease-in-out,
        box-shadow 0.16s ease;
}

.rs-post-edit .rs-setting .form-switch .form-check-input:checked {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    background-position: right center;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .rs-post-edit .rs-setting .form-switch .form-check-input:not(:checked) {
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(152, 120, 255, 0.58) !important;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255,255,255,0.95%29'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .rs-post-edit .rs-setting .form-switch .form-check-input:checked {
    background-color: #8b5cf6 !important;
    border-color: #a78bfa !important;
}

.rs-post-edit .rs-setting .form-switch .form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rs-post-edit .rs-setting .form-check-label {
    display: flex;
    align-items: center;
    min-height: 1.35em;
    margin: 0;
    padding: 0;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.2;
    color: rgba(48, 30, 120, 0.92);
    cursor: pointer;
}

[data-bs-theme="dark"] .rs-post-edit .rs-setting .form-check-label {
    color: rgba(235, 230, 255, 0.96);
}

.rs-post-edit .rs-setting .form-switch:has(.form-check-input:disabled) .form-check-label {
    opacity: 0.65;
    cursor: not-allowed;
}

/* All switches — vertical alignment */
.rs-post-edit .form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-left: 0;
}

.rs-post-edit .form-switch .form-check-input {
    margin: 0;
    float: none;
}

.rs-post-edit .form-check-label,
.rs-post-edit .switch-label {
    font-weight: 700;
    color: rgba(48, 30, 120, 0.88);
}

[data-bs-theme="dark"] .rs-post-edit .form-check-label,
[data-bs-theme="dark"] .rs-post-edit .switch-label {
    color: rgba(235, 230, 255, 0.92);
}

/* ===== Panels ===== */
.rs-post-edit .rs-setting {
    border-radius: 1rem;
    border: 1px solid rgba(122, 85, 255, 0.14);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-bs-theme="dark"] .rs-post-edit .rs-setting {
    border-color: rgba(152, 120, 255, 0.2);
    background: rgba(32, 32, 38, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rs-post-edit .rs-editor-surface {
    border-radius: 1rem;
    border: 1px solid rgba(122, 85, 255, 0.16);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-bs-theme="dark"] .rs-post-edit .rs-editor-surface {
    border-color: rgba(152, 120, 255, 0.22);
    background: rgba(28, 28, 34, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rs-post-edit .rs-subcard {
    border-radius: 1rem;
    border: 1px solid rgba(122, 85, 255, 0.14);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-bs-theme="dark"] .rs-post-edit .rs-subcard {
    border-color: rgba(152, 120, 255, 0.2);
    background: rgba(32, 32, 38, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rs-post-edit .rs-task-toolbar {
    border-radius: 1rem;
    border: 1px solid rgba(122, 85, 255, 0.14);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-bs-theme="dark"] .rs-post-edit .rs-task-toolbar {
    border-color: rgba(152, 120, 255, 0.2);
    background: rgba(32, 32, 38, 0.72);
}

.rs-post-edit .rs-task-card {
    border-radius: 1.15rem;
    border: 1px solid rgba(122, 85, 255, 0.18);
    background:
        radial-gradient(520px 200px at 0% 0%, rgba(122, 85, 255, 0.08), transparent 55%),
        rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 28px rgba(55, 40, 120, 0.07);
}

[data-bs-theme="dark"] .rs-post-edit .rs-task-card {
    border-color: rgba(152, 120, 255, 0.24);
    background:
        radial-gradient(520px 200px at 0% 0%, rgba(122, 85, 255, 0.14), transparent 55%),
        rgba(24, 24, 30, 0.88);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}

.rs-post-edit .rs-task-header {
    background: rgba(122, 85, 255, 0.05);
    border-bottom-color: rgba(122, 85, 255, 0.12);
    border-radius: 1.15rem 1.15rem 0 0;
}

[data-bs-theme="dark"] .rs-post-edit .rs-task-header {
    background: rgba(122, 85, 255, 0.1);
    border-bottom-color: rgba(152, 120, 255, 0.18);
}

.rs-post-edit .rs-list-item {
    border-radius: 1rem;
    border: 1px solid rgba(122, 85, 255, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

[data-bs-theme="dark"] .rs-post-edit .rs-list-item {
    border-color: rgba(152, 120, 255, 0.18);
    background: rgba(32, 32, 38, 0.72);
}

.rs-post-edit .rs-list-item--nested {
    margin-left: 0.75rem;
    border-color: rgba(122, 85, 255, 0.1);
}

.rs-post-edit .rs-list-item__summary {
    background: rgba(122, 85, 255, 0.04);
    border-bottom-color: rgba(122, 85, 255, 0.1);
}

[data-bs-theme="dark"] .rs-post-edit .rs-list-item__summary {
    background: rgba(122, 85, 255, 0.08);
    border-bottom-color: rgba(152, 120, 255, 0.16);
}

.rs-post-edit .rs-pill {
    border-color: rgba(122, 85, 255, 0.18);
    background: rgba(255, 255, 255, 0.82);
    font-weight: 750;
}

[data-bs-theme="dark"] .rs-post-edit .rs-pill {
    border-color: rgba(152, 120, 255, 0.22);
    background: rgba(36, 36, 42, 0.92);
}

.rs-post-edit .border.rounded,
.rs-post-edit .rs-post-edit__answer-panel {
    border-radius: 1rem !important;
    border: 1px solid rgba(122, 85, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.52);
    padding: 0.85rem 0.9rem;
}

[data-bs-theme="dark"] .rs-post-edit .border.rounded,
[data-bs-theme="dark"] .rs-post-edit .rs-post-edit__answer-panel {
    border-color: rgba(152, 120, 255, 0.2) !important;
    background: rgba(32, 32, 38, 0.68);
}

.rs-post-edit hr {
    border-color: rgba(122, 85, 255, 0.14);
    opacity: 1;
}

[data-bs-theme="dark"] .rs-post-edit hr {
    border-color: rgba(152, 120, 255, 0.2);
}

.rs-post-edit .alert-warning {
    border-radius: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%);
}

[data-bs-theme="dark"] .rs-post-edit .alert-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(251, 191, 36, 0.1) 100%);
}

/* ===== Buttons (all variants) ===== */
.rs-post-edit .btn,
.rs-post-edit-actions .btn,
.rs-post-edit-modal .btn {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.rs-post-edit .btn:hover:not(:disabled),
.rs-post-edit-actions .btn:hover:not(:disabled),
.rs-post-edit-modal .btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.rs-post-edit .btn-sm,
.rs-post-edit-actions .btn-sm {
    padding: 0.32rem 0.72rem;
    font-size: 0.82rem;
}

/* Primary / violet / success (CTA) */
.rs-post-edit .btn-primary,
.rs-post-edit-modal .btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 48%, #0d9488 120%) !important;
    color: #fff !important;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rs-post-edit .btn-violet,
.rs-post-edit .btn-success,
.rs-post-edit-actions .btn-success {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 48%, #0d9488 120%) !important;
    color: #fff !important;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rs-post-edit .btn-primary:hover:not(:disabled),
.rs-post-edit-modal .btn-primary:hover:not(:disabled),
.rs-post-edit .btn-violet:hover:not(:disabled),
.rs-post-edit .btn-success:hover:not(:disabled),
.rs-post-edit-actions .btn-success:hover:not(:disabled) {
    filter: brightness(1.03);
    color: #fff !important;
    box-shadow:
        0 6px 22px rgba(122, 85, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

/* Secondary / add buttons */
.rs-post-edit .btn-secondary,
.rs-post-edit .btn.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 48%, #0d9488 120%) !important;
    color: #fff !important;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rs-post-edit .btn-secondary:hover:not(:disabled),
.rs-post-edit .btn.btn-secondary:hover:not(:disabled) {
    filter: brightness(1.03);
    color: #fff !important;
    box-shadow:
        0 6px 22px rgba(122, 85, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

/* Dark — «Добавить вопрос» */
.rs-post-edit .btn-dark,
.rs-post-edit .btn.btn-dark {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 55%, #1e1b4b 120%) !important;
    color: #fff !important;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.rs-post-edit .btn-dark:hover:not(:disabled),
.rs-post-edit .btn.btn-dark:hover:not(:disabled) {
    filter: brightness(1.05);
    color: #fff !important;
}

/* Outline variants */
.rs-post-edit .btn-outline-secondary {
    border: 1px solid rgba(122, 85, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: rgba(48, 30, 120, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .rs-post-edit .btn-outline-secondary {
    background: rgba(36, 36, 42, 0.92) !important;
    color: rgba(235, 230, 255, 0.96) !important;
    border-color: rgba(152, 120, 255, 0.28) !important;
}

.rs-post-edit .btn-outline-primary {
    border: 1px solid rgba(122, 85, 255, 0.35) !important;
    color: rgba(72, 45, 168, 0.95) !important;
    background: rgba(122, 85, 255, 0.08) !important;
}

.rs-post-edit .btn-outline-danger {
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
    color: rgba(185, 28, 28, 0.95) !important;
    background: rgba(220, 38, 38, 0.08) !important;
}

[data-bs-theme="dark"] .rs-post-edit .btn-outline-primary {
    color: rgba(196, 181, 253, 0.98) !important;
    background: rgba(122, 85, 255, 0.14) !important;
}

[data-bs-theme="dark"] .rs-post-edit .btn-outline-danger {
    color: rgba(252, 165, 165, 0.98) !important;
    background: rgba(220, 38, 38, 0.14) !important;
}

.rs-post-edit-actions {
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(122, 85, 255, 0.12);
    padding-top: 1rem !important;
}

.rs-post-edit-actions .btn-outline-success {
    border: 1px solid rgba(22, 163, 74, 0.35) !important;
    color: rgba(21, 128, 61, 0.95) !important;
    background: rgba(22, 163, 74, 0.08) !important;
}

[data-bs-theme="dark"] .rs-post-edit-actions .btn-outline-success {
    color: rgba(134, 239, 172, 0.98) !important;
    background: rgba(22, 163, 74, 0.14) !important;
}

/* ===== EA editor inside post edit ===== */
.rs-post-edit .rs-ea-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(122, 85, 255, 0.2);
    background:
        radial-gradient(640px 280px at 8% 0%, rgba(122, 85, 255, 0.12), transparent 58%),
        radial-gradient(520px 240px at 96% 12%, rgba(0, 203, 255, 0.08), transparent 55%),
        rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 32px rgba(55, 40, 120, 0.08);
    backdrop-filter: blur(14px);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor {
    border-color: rgba(152, 120, 255, 0.28);
    background:
        radial-gradient(640px 280px at 8% 0%, rgba(122, 85, 255, 0.18), transparent 58%),
        radial-gradient(520px 240px at 96% 12%, rgba(0, 203, 255, 0.12), transparent 55%),
        rgba(24, 24, 30, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.35);
}

.rs-post-edit .rs-ea-editor__label {
    display: block;
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(72, 45, 168, 0.72);
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.rs-post-edit .rs-ea-editor__label--section {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(48, 30, 120, 0.92);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor__label {
    color: rgba(196, 181, 253, 0.78);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor__label--section {
    color: rgba(235, 230, 255, 0.96);
}

.rs-post-edit .rs-ea-editor__control {
    max-width: 8.5rem;
}

.rs-post-edit .rs-ea-editor__hint {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(33, 37, 41, 0.58);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor__hint {
    color: rgba(248, 249, 250, 0.58);
}

.rs-post-edit .rs-ea-editor__questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(122, 85, 255, 0.14);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor__questions {
    border-top-color: rgba(152, 120, 255, 0.2);
}

.rs-post-edit .rs-ea-editor__questions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rs-post-edit .rs-ea-editor__question-card {
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor__question-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(32, 32, 38, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rs-post-edit .rs-ea-editor__question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.rs-post-edit .rs-ea-editor__question-title {
    font-weight: 850;
    letter-spacing: -0.02em;
    color: rgba(48, 30, 120, 0.92);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor__question-title {
    color: rgba(235, 230, 255, 0.96);
}

.rs-post-edit .rs-ea-editor__empty {
    font-size: 0.88rem;
    color: rgba(33, 37, 41, 0.58);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor__empty {
    color: rgba(248, 249, 250, 0.58);
}

.rs-post-edit .rs-ea-editor__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.48rem 1rem;
    font-weight: 850;
    font-size: 0.84rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff !important;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.rs-post-edit .rs-ea-editor__btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.rs-post-edit .rs-ea-editor__btn--add {
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 48%, #0d9488 120%) !important;
}

.rs-post-edit .rs-ea-editor__btn--add:hover:not(:disabled) {
    box-shadow:
        0 6px 22px rgba(122, 85, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.rs-post-edit .rs-ea-editor__btn--remove {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 48%, #991b1b 120%) !important;
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
}

.rs-post-edit .rs-ea-editor__btn--remove:hover:not(:disabled) {
    box-shadow:
        0 6px 22px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

[data-bs-theme="dark"] .rs-post-edit .rs-ea-editor__btn {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rs-post-edit .rs-ea-editor .rs-media-url-field__row {
    grid-template-columns: minmax(0, 1fr) auto;
}

/* ===== Copy-task modal ===== */
.rs-post-edit-modal .modal-content {
    border-radius: 1.15rem;
    border: 1px solid rgba(122, 85, 255, 0.18);
    background:
        radial-gradient(640px 280px at 8% 0%, rgba(122, 85, 255, 0.1), transparent 58%),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 48px rgba(55, 40, 120, 0.12);
}

[data-bs-theme="dark"] .rs-post-edit-modal .modal-content {
    border-color: rgba(152, 120, 255, 0.26);
    background:
        radial-gradient(640px 280px at 8% 0%, rgba(122, 85, 255, 0.16), transparent 58%),
        rgba(24, 24, 30, 0.96);
}

.rs-post-edit-modal .form-control {
    border-radius: 0.9rem !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: rgba(255, 255, 255, 0.82) !important;
}

[data-bs-theme="dark"] .rs-post-edit-modal .form-control {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(32, 32, 38, 0.88) !important;
    color: rgba(248, 249, 250, 0.92);
}

.rs-post-edit-modal .form-label {
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(72, 45, 168, 0.72);
}

@media (max-width: 575.98px) {
    .rs-post-edit .rs-ea-editor .rs-media-url-field__row {
        grid-template-columns: 1fr;
    }
}
