/* Shared styling for native form controls and their enhanced option lists. */
select:not([multiple]):not([size]),
select:not([multiple])[size="1"] {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    appearance: none;
    padding-right: 36px !important;
    color: #334155;
    box-shadow: 0 2px 5px -3px rgba(15, 23, 42, .2);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

select:not([multiple]):hover:not(:disabled) { border-color: #7dd3fc; }
select:not([multiple]):focus,
select[aria-expanded="true"] {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .14);
}
select:disabled { cursor: not-allowed; }

.app-select-menu {
    position: fixed;
    inset: auto;
    z-index: 1090;
    box-sizing: border-box;
    margin: 0;
    padding: 6px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
    color: #334155;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, .25), 0 3px 10px rgba(15, 23, 42, .06);
    font: 500 14px/1.45 Inter, system-ui, -apple-system, sans-serif;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.app-select-menu::backdrop { background: transparent; pointer-events: none; }
.app-select-option {
    position: relative;
    padding: 10px 36px 10px 12px;
    border-radius: 9px;
    min-height: 40px;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.app-select-option + .app-select-option { margin-top: 2px; }
.app-select-option.is-highlighted { background: #f0f9ff; color: #0369a1; }
.app-select-option.is-selected { background: #e0f2fe; color: #0369a1; font-weight: 650; }
.app-select-option.is-selected::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 14px;
    width: 7px;
    height: 12px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.app-select-option[aria-disabled="true"] { color: #94a3b8; cursor: not-allowed; background: transparent; }
.app-select-group { padding: 9px 12px 5px; color: #64748b; font-size: 12px; font-weight: 700; }
.app-select-empty { padding: 14px 12px; color: #64748b; text-align: center; }
@media (any-pointer: coarse) {
    .app-select-menu { font-size: 16px; }
    .app-select-option { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    select { transition: none !important; }
}
