body.theme-test .modal.modal-side-panel.vehicle-form-modal .modal-content,
.modal.modal-side-panel.vehicle-form-modal .modal-content {
    width: min(920px, 100%);
    max-width: min(920px, 100%);
    height: 100%;
    max-height: 100vh;
    border-radius: 1rem 0 0 1rem;
}

.vehicle-form-dossier {
    display: flex;
    flex-direction: column;
}

.vehicle-form-context {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0 1rem;
    border-bottom: 1px solid var(--border);
}

.vehicle-form-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-form-context-title {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.vehicle-form-context-meta {
    margin: 0.3rem 0 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.vehicle-form-section {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.vehicle-form-section[hidden] {
    display: none;
}

.vehicle-form-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 0.9rem;
}

.vehicle-form-section-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.vehicle-form-section-content > :last-child {
    margin-bottom: 0;
}

.vehicle-form-section-content > .form-row:last-child > .form-group,
.vehicle-form-section-content > .form-group:last-child {
    margin-bottom: 0;
}

.vehicle-showcase-choice {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px dashed var(--border);
    border-radius: 0.9rem;
    background: var(--background);
}

.vehicle-showcase-choice.is-published {
    border-style: solid;
    border-color: color-mix(in srgb, #22c55e 42%, var(--border));
    background: color-mix(in srgb, #22c55e 6%, var(--surface));
}

.vehicle-showcase-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.vehicle-showcase-toggle input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    accent-color: var(--primary);
}

.vehicle-showcase-toggle span,
.vehicle-showcase-status {
    display: grid;
    gap: 0.3rem;
}

.vehicle-showcase-toggle small,
.vehicle-showcase-scope {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.vehicle-showcase-status[hidden] {
    display: none;
}

.modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1.5rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

body.theme-test .modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions {
    position: static;
    margin: 0;
    padding: 0.85rem 1.2rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    body.theme-test .modal.modal-side-panel.vehicle-form-modal .modal-content,
    .modal.modal-side-panel.vehicle-form-modal .modal-content {
        border-radius: 0;
    }

    .vehicle-form-context {
        padding-top: 0;
    }

    .vehicle-form-section {
        padding: 1rem 0;
    }

    .modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions .btn {
        min-height: 44px;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .vehicle-form-section-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
    }

    .modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions {
        gap: 0.5rem;
    }
}
