/* The detached menu must own the same theme tokens as its trigger. */
.athena-select, .athena-select__menu {
    --athena-select-surface: rgb(from var(--color-surface-elevated, #fff) r g b / 1);
    --athena-select-ink: var(--text-primary, #13213c);
    --athena-select-muted: var(--text-secondary, #5e6c84);
    --athena-select-border: var(--border-light, #d4dce5);
    --athena-select-focus: color-mix(in srgb, var(--theme-accent, #1687e8) 18%, transparent);
}
.athena-select { position:relative; display:block; width:100%; min-width:0; }
html body select.athena-select__native {
    position:absolute!important; width:1px!important; min-width:0!important; height:1px!important;
    min-height:0!important; margin:-1px!important; padding:0!important; overflow:hidden!important;
    clip:rect(0 0 0 0)!important; clip-path:inset(50%)!important; border:0!important; white-space:nowrap!important;
}
html body .athena-select__trigger {
    display:grid!important; grid-template-columns:minmax(0,1fr) auto; align-items:center;
    width:100%; min-width:0; min-height:38px; padding:9px 12px!important;
    border:1px solid var(--athena-select-border)!important; border-radius:6px!important;
    background:var(--athena-select-surface)!important; color:var(--athena-select-ink)!important;
    -webkit-text-fill-color:currentColor!important; box-shadow:none!important;
    font:inherit; font-size:13px; font-weight:500; line-height:1.4; text-align:left;
    transform:none!important; transition:border-color 140ms ease, box-shadow 140ms ease;
}
html body .athena-select__trigger:hover:not(:disabled) { border-color:var(--theme-accent,#1687e8)!important; }
html body .athena-select__trigger:focus-visible,
html body .athena-select__trigger[aria-expanded="true"] {
    outline:none; border-color:var(--theme-accent,#1687e8)!important;
    box-shadow:0 0 0 2px var(--athena-select-focus)!important;
}
.athena-select__trigger:disabled { cursor:not-allowed; opacity:.55; }
.athena-select__value { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; color:inherit!important; }
.athena-select__chevron {
    width:6px; height:6px; margin-left:14px; border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor; color:var(--athena-select-muted);
    transform:rotate(45deg) translateY(-2px); transition:transform 140ms ease;
}
.athena-select__trigger[aria-expanded="true"] .athena-select__chevron { transform:rotate(225deg); }
html body .athena-select__menu {
    position:fixed; z-index:2147483100; overflow:hidden; box-sizing:border-box;
    border:1px solid var(--athena-select-border)!important; border-radius:7px!important;
    background:var(--athena-select-surface)!important; color:var(--athena-select-ink);
    box-shadow:0 8px 24px #0003!important; backdrop-filter:none!important;
}
.athena-select__menu[hidden] { display:none!important; }
.athena-select__menu:popover-open { inset:auto; margin:0; }
.athena-select__search-wrap { padding:8px; border-bottom:1px solid var(--athena-select-border); }
.athena-select__search-wrap[hidden] { display:none!important; }
html body .athena-select__search {
    box-sizing:border-box; width:100%; min-height:34px; padding:7px 10px!important;
    border:1px solid var(--athena-select-border)!important; border-radius:4px!important;
    background:var(--athena-select-surface)!important; color:var(--athena-select-ink)!important;
    font:inherit; font-size:12px; box-shadow:none!important;
}
.athena-select__search::placeholder { color:var(--athena-select-muted); opacity:1; }
.athena-select__search:focus-visible { outline:2px solid var(--athena-select-focus); outline-offset:1px; }
.athena-select__options { max-height:inherit; padding:4px; overflow:auto; overscroll-behavior:contain; }
html body .athena-select__option {
    display:flex; align-items:center; width:100%; min-height:34px; padding:7px 10px!important;
    border:0!important; border-radius:3px!important; background:transparent!important;
    color:var(--athena-select-ink)!important; -webkit-text-fill-color:currentColor!important;
    font:inherit; font-size:13px; font-weight:400; line-height:1.45; text-align:left;
    box-shadow:none!important; transform:none!important; overflow-wrap:anywhere;
}
html body .athena-select__option:hover,
html body .athena-select__option.is-active { background:var(--athena-select-focus)!important; }
html body .athena-select__option[aria-selected="true"] {
    background:var(--theme-accent-subtle,var(--athena-select-focus))!important;
    color:var(--athena-select-ink)!important; font-weight:650;
    box-shadow:inset 2px 0 var(--theme-accent,#1687e8)!important;
}
.athena-select__option:disabled { cursor:not-allowed; opacity:.45; }
.athena-select__empty { padding:14px 10px; color:var(--athena-select-muted); font-size:12px; text-align:center; }
@media(prefers-reduced-motion:reduce) { .athena-select__trigger, .athena-select__chevron { transition:none!important; } }
