/* Native single-row selects only. No value bridge, replacement widget, width reset or JS is required. */
body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
    --select-apple-ease: cubic-bezier(.2, .8, .2, 1);
    -webkit-appearance: none !important; appearance: none !important;
    min-block-size: 44px; padding: 10px 12px !important; padding-inline-end: 36px !important;
    border: 1px solid #d8e3f0 !important; border-radius: 12px !important;
    background-color: #f7f9fc !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236e83a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px 8px !important;
    color: #40546e !important; color-scheme: light !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-size: 14px; font-weight: 400; font-optical-sizing: auto; line-height: 1.45 !important;
    text-align: start; vertical-align: middle; cursor: pointer;
    transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
}
body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):hover:not(:disabled) { border-color: #b3ceed !important; background-color: #f0f6fe !important; }
body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):focus-visible { border-color: #0071e3 !important; outline: 3px solid rgba(0, 113, 227, .35) !important; outline-offset: 3px; box-shadow: 0 0 0 1px #0071e3 !important; }
body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):disabled { background-color: #f0f3f7 !important; border-color: #e0e6ee !important; color: #8291a6 !important; cursor: not-allowed; box-shadow: none !important; }
/* Admin dependent filters and every other programmatic hidden state remain authoritative. */
body select[hidden],
body select option[hidden],
body select optgroup[hidden] { display: none !important; }

@supports (appearance: base-select) and selector(select::picker(select)) {
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]),
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker(select) { -webkit-appearance: base-select !important; appearance: base-select !important; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
        padding-inline-end: 12px !important; background-image: none !important; gap: 10px;
        /* UA base-select uses field-sizing:content!important. Existing width/max-width/flex are deliberately retained. */
    }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):open { border-color: #0071e3 !important; background-color: #fff !important; box-shadow: 0 0 0 3px rgba(0, 113, 227, .09) !important; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker-icon { flex-shrink: 0; margin-inline-start: auto; color: #0071e3; font-size: .8em; line-height: 1; transition: rotate 180ms var(--select-apple-ease); }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):open::picker-icon { rotate: 180deg; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker(select) {
        box-sizing: border-box; min-inline-size: min(anchor-size(self-inline), calc(100vi - 24px)); max-inline-size: calc(100vi - 24px);
        /* Keep UA implicit anchor, position-area, flip fallbacks and available-space height constraint. */
        max-block-size: stretch; position-try-order: normal; margin-block: 6px; padding: 6px;
        border: 1px solid rgba(198, 211, 229, .8); border-radius: 18px;
        background: rgba(255, 255, 255, .94); color: #31465f; color-scheme: light;
        box-shadow: 0 16px 48px rgba(24, 45, 75, .17), 0 3px 10px rgba(24, 45, 75, .06);
        -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
        font-size: 14px; font-weight: 400; line-height: 1.45; text-align: start;
        overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bdcce0 transparent;
        transform-origin: center; opacity: 1;
    }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option {
        box-sizing: border-box; min-inline-size: 0; min-block-size: 44px; padding: 12px !important; gap: 10px;
        border: 0 !important; border-radius: 11px; background: transparent !important; color: #40546e !important;
        font-family: inherit !important; font-size: 14px !important; font-weight: 400; line-height: 1.45;
        white-space: normal; overflow-wrap: anywhere; word-break: normal; cursor: pointer;
    }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option:checked { background: #e9f3ff !important; color: #0071e3 !important; font-weight: 500; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option:enabled:is(:hover, :focus) { background: #f0f6ff !important; color: #0067d0 !important; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option:checked:enabled:is(:hover, :focus) { background: #deedff !important; color: #0062c6 !important; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option:disabled { background: transparent !important; color: #8796aa !important; cursor: default; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option::checkmark { flex: 0 0 1em; align-self: flex-start; margin-block-start: .12em; color: #0071e3; font-size: 1em; font-weight: 650; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) optgroup { margin: 0; padding: 6px 3px 3px; color: #627995; font-size: 12px; font-weight: 650; line-height: 1.6; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) optgroup:not(:first-child) { margin-block-start: 6px; padding-block-start: 10px; border-block-start: 1px solid #e9eef5; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) optgroup > legend { padding: 3px 10px 6px; color: #627995; font-size: 12px; font-weight: 650; }

    @supports (transition-timing-function: linear(0, 1)) {
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
            /* Normalized critical spring: y=1-(1+12t)e^(-12t), sampled at 5% intervals. */
            --select-apple-ease: linear(0, .1219 5%, .3374 10%, .5372 15%, .6916 20%, .8009 25%, .8744 30%, .9221 35%, .9523 40%, .9712 45%, .9827 50%, .9897 55%, .994 60%, .9965 65%, .998 70%, .9988 75%, .9994 80%, .9997 85%, .9998 90%, .9999 95%, 1);
        }
    }
    @supports selector(select:open) and (transition-behavior: allow-discrete) {
        @media (prefers-reduced-motion: no-preference) {
            body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker(select) {
                opacity: 0; translate: 0 -3px; scale: .985;
                transition: opacity 160ms ease-out, translate 300ms var(--select-apple-ease), scale 300ms var(--select-apple-ease), display 300ms allow-discrete, overlay 300ms allow-discrete;
            }
            body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):open::picker(select) { opacity: 1; translate: 0 0; scale: 1; }
            @starting-style {
                body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):open::picker(select) { opacity: 0; translate: 0 -3px; scale: .985; }
            }
        }
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker(select) { background: #fff; }
    }
    @media (prefers-reduced-transparency: reduce) {
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker(select) { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    }
    @media (prefers-contrast: more) {
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker(select) { border-color: #859ab6; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option:checked { background: #dcecff !important; color: #005bb8 !important; }
    }
    @media (prefers-reduced-motion: reduce) {
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker(select) { opacity: 1; translate: none; scale: none; transition: none; }
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker-icon { transition: none; }
    }
}
@media (prefers-reduced-motion: reduce) {
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) { transition: none !important; }
}
@media (prefers-contrast: more) {
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) { border-color: #859ab6 !important; background-color: #fff !important; color: #263f5f !important; }
}
@media (forced-colors: active) {
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) { -webkit-appearance: auto !important; appearance: auto !important; background-image: none !important; border-color: ButtonText !important; background-color: Canvas !important; color: CanvasText !important; box-shadow: none !important; forced-color-adjust: auto; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):disabled { color: GrayText !important; border-color: GrayText !important; }
    body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]):focus-visible { outline-color: Highlight !important; }
    @supports (appearance: base-select) and selector(select::picker(select)) {
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"])::picker(select) { -webkit-appearance: auto !important; appearance: auto !important; background: Canvas; color: CanvasText; border-color: ButtonText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; translate: none; scale: none; transition: none; }
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option { background: Canvas !important; color: CanvasText !important; forced-color-adjust: auto; }
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option:checked { background: Highlight !important; color: HighlightText !important; }
        body select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) option:disabled { color: GrayText !important; }
    }
}
