/* /account/: the styled dropdowns (select-ui.js) and the suggestion lists (equipment-ui.js) share one popup, .ac-pop.
   Colours come from .ac's variables, which the light theme redefines; the control's own fill and border follow the text
   inputs' (#222424 / #ffffff30 in dark, #f5f3ef / 18.8% black in light, account.css and the generated theme-light.css).
   Not in the light-theme generator's sources: the light values are written here. */
.ac-select{position:relative}
.ac .ac-select>select[data-enhanced]{display:none!important} /* page rules that style selects must not bring the hidden one back */
.ac .ac-select-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:0 14px;background:#222424;color:var(--text);border:1px solid #767a7a;border-radius:8px;font-size:15px;line-height:1.3;cursor:pointer;user-select:none}
.ac .ac-select-btn[aria-expanded="true"]{border-color:var(--gold)}
.ac .ac-select-btn[aria-disabled="true"]{opacity:.55;cursor:default}
.ac .ac-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac .ac-select-btn.is-empty .ac-select-value{color:var(--muted)}
.ac .ac-select-btn svg{flex:none;width:12px;height:12px;stroke:currentColor;opacity:.75;transition:transform .15s}
.ac .ac-select-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
html[data-theme="light"] .ac .ac-select-btn{background:#f5f3ef;border-color:#8c877e}
html[data-theme="light"] .ac .ac-select-btn[aria-expanded="true"]{border-color:var(--gold)}

.ac .ac-pop{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;max-height:300px;overflow-y:auto;overscroll-behavior:contain;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 34px #0000004d}
.ac .ac-pop.is-up{top:auto;bottom:calc(100% + 6px)}
html[data-theme="light"] .ac .ac-pop{box-shadow:0 14px 34px #2224241f}
.ac .ac-pop li[role="option"]{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:36px;padding:8px 12px;border-radius:7px;font-size:15px;line-height:1.3;color:var(--text);cursor:pointer}
.ac .ac-pop li small{font-size:12px;color:var(--muted);white-space:nowrap}
.ac .ac-pop li[role="option"]:hover,.ac .ac-pop li[aria-selected="true"]{background:color-mix(in srgb,var(--gold) 16%,transparent)}
.ac .ac-pop li[aria-selected="true"]{outline:1px solid color-mix(in srgb,var(--gold) 55%,transparent)}
.ac .ac-pop li.is-current::after{content:"✓";color:var(--gold);font-size:14px}
.ac .ac-pop .ac-pop-group{padding:12px 12px 4px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);cursor:default}
.ac .ac-pop .ac-pop-group:first-child{padding-top:6px}
@media(prefers-reduced-motion:reduce){.ac .ac-select-btn svg{transition:none}}
