/* Shared input appearance across the admin application. */
:is(.admin-authenticated, .admin-guest, .admin-auth-page) {
    --admin-field-max-width: 32rem;
    --admin-field-min-height: 2.75rem;
    --admin-field-shadow: 0 2px 7px rgba(24, 39, 67, .08);
}
[data-bs-theme="dark"] :is(.admin-authenticated, .admin-guest, .admin-auth-page) { --admin-field-shadow: 0 2px 7px rgba(0, 0, 0, .2); }
:is(.admin-authenticated, .admin-guest, .admin-auth-page) :is(.form-control, .form-select) {
    max-width: var(--admin-field-max-width);
    min-height: var(--admin-field-min-height);
}
:is(.admin-authenticated, .admin-guest, .admin-auth-page) :is(.form-control, .form-select):not(:focus) { box-shadow: var(--admin-field-shadow); }
:is(.admin-authenticated, .admin-guest, .admin-auth-page) textarea.form-control { resize: vertical; }
/* Compact controls retain their purpose inside dense pagination and input groups. */
.admin-authenticated .admin-pagination__size .form-select { min-height: 2.4rem; }
:is(.admin-authenticated, .admin-guest, .admin-auth-page) .input-group { max-width: var(--admin-field-max-width); }
:is(.admin-authenticated, .admin-guest, .admin-auth-page) .input-group > :is(.form-control, .form-select) { max-width: none; }
:is(.admin-guest, .admin-auth-page) .auth-password-group { box-shadow: var(--admin-field-shadow); }
:is(.admin-guest, .admin-auth-page) .auth-password-group > .form-control:not(:focus) { box-shadow: none; }

/* Single-select menus share the same native, progressively enhanced control. */
select:is(.form-control, .form-select):not([multiple]):not([size]) {
    border-radius: .6rem;
    cursor: pointer;
    font-size: .875rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
select.form-control:not([multiple]):not([size]) { appearance: auto; }
select:is(.form-control, .form-select):not([multiple]):not([size]):not(:disabled):not(:invalid):not(.is-invalid):hover { border-color: var(--admin-accent); }
select:is(.form-control, .form-select):not([multiple]):not([size]):disabled { cursor: not-allowed; }
select:is(.form-control, .form-select) option { color: var(--admin-ink); background: var(--admin-surface); }

@supports (appearance: base-select) and selector(::picker(select)) {
    select:is(.form-control, .form-select):not([multiple]):not([size]) { appearance: base-select; display: flex; align-items: center; justify-content: space-between; gap: .5rem; background-image: none; padding-inline: .85rem; }
    select:is(.form-control, .form-select):not([multiple]):not([size])::picker(select) { appearance: base-select; max-block-size: 18rem; overflow-y: auto; margin-block-start: .35rem; padding: .35rem; border: 1px solid var(--admin-line); border-radius: .75rem; color: var(--admin-ink); background: var(--admin-surface); box-shadow: 0 12px 32px #17233d26; }
    select:is(.form-control, .form-select):not([multiple]):not([size])::picker-icon { flex: 0 0 auto; color: var(--admin-muted); transition: rotate .15s ease; }
    select:is(.form-control, .form-select):not([multiple]):not([size]):open::picker-icon { rotate: 180deg; }
    select:is(.form-control, .form-select):not([multiple]):not([size]) option { gap: .65rem; padding: .55rem .7rem; border-radius: .45rem; }
    select:is(.form-control, .form-select):not([multiple]):not([size]) option:not(:disabled):is(:hover, :focus) { background: var(--admin-soft); }
    select:is(.form-control, .form-select):not([multiple]):not([size]) option:checked { color: var(--admin-accent); background: var(--admin-accent-soft); font-weight: 600; }
    select:is(.form-control, .form-select):not([multiple]):not([size]) option:disabled { color: var(--admin-muted); }
    select:is(.form-control, .form-select):not([multiple]):not([size]) option::checkmark { order: 1; margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
    select:is(.form-control, .form-select)::picker-icon { transition: none; }
}
