/*
 * Puts a resource's create/edit form fields on a white card, like tables, instead of straight on
 * the page background. Loaded for the club admin panel in every theme (Default included) as a
 * plain stylesheet — see AdminPanelProvider — so it's written without Tailwind.
 *
 * Only the fields are carded: `.fi-sc-form`'s second child, the Create/Save/Cancel buttons, stays
 * below the card. Forms that already group their fields into sections keep them as they are.
 * Themes retune the card through the variables (looks/soft.css, looks/compact.css).
 */
:is(.fi-resource-create-record-page, .fi-resource-edit-record-page)
    .fi-sc-form
    > .fi-sc:first-child:not(:has(.fi-section:not(.fi-section-not-contained))) {
    padding: var(--record-form-card-padding, 1.5rem);
    border-radius: var(--record-form-card-radius, 0.75rem);
    background-color: #fff;
    box-shadow:
        var(--record-form-card-shadow, 0 1px 2px 0 rgb(0 0 0 / 0.05)),
        0 0 0 1px color-mix(in oklab, var(--gray-950) 5%, transparent);
}

.dark
    :is(.fi-resource-create-record-page, .fi-resource-edit-record-page)
    .fi-sc-form
    > .fi-sc:first-child:not(:has(.fi-section:not(.fi-section-not-contained))) {
    background-color: var(--gray-900);
    box-shadow:
        var(--record-form-card-shadow, 0 1px 2px 0 rgb(0 0 0 / 0.05)),
        0 0 0 1px rgb(255 255 255 / 0.1);
}
