/* Shared searchable selection for forms, filters and toolbar controls. */
select[hidden], .search-select[hidden], .search-select [hidden], .search-select-popup[hidden], .search-select-popup [hidden] { display:none!important; }
.search-select { position:relative; min-width:0; width:100%; --select-height:44px; }
.search-select-control { display:flex; align-items:center; gap:6px; min-width:0; padding-inline:11px 4px; border:1px solid var(--line); border-radius:9px; background:var(--surface,#fff); color:var(--muted); }
.search-select-search-icon { display:flex; flex:none; }
.search-select .search-select-control input[data-search-select-input] { flex:1; width:100%; min-width:0; min-height:var(--select-height); height:var(--select-height); max-width:100%; padding:6px 0; border:0; border-radius:0; outline:0; background:transparent; color:var(--ink); font:inherit; font-size:.9rem; text-overflow:ellipsis; box-shadow:none; }
.search-select-control:focus-within { outline:2px solid var(--green); outline-offset:1px; }
.search-select-control:has(input:disabled) { opacity:.55; cursor:not-allowed; }
.search-select-clear, .search-select-toggle { display:grid; place-items:center; flex:none; width:30px; height:var(--select-height); padding:0; border:0; border-radius:6px; background:transparent; color:var(--muted); cursor:pointer; }
.search-select-clear:hover, .search-select-toggle:hover { background:var(--raised,#edf4e8); color:var(--green); }
.search-select-clear:focus-visible, .search-select-toggle:focus-visible { outline:2px solid var(--green); }
.search-select-toggle svg { transition:transform 160ms ease; }
.search-select.is-open .search-select-toggle svg { transform:rotate(180deg); }
.search-select-popup { position:fixed; z-index:5000; display:flex; flex-direction:column; margin:0; padding:0; border:1px solid var(--line); border-radius:11px; background:var(--surface,#fff); color:var(--ink); box-shadow:0 12px 32px #10241a26; overflow:hidden; animation:search-select-in 140ms ease-out; }
.search-select-status { flex:none; padding:9px 13px; border-bottom:1px solid var(--line); color:var(--muted); font-size:.78rem; font-weight:400; line-height:1.7; }
.search-select-options { overflow-y:auto; min-height:0; overscroll-behavior:contain; scrollbar-width:thin; padding:5px; }
.search-select-option { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 10px; padding:10px 11px; min-height:44px; border-radius:7px; cursor:pointer; color:var(--ink); text-align:start; }
.search-select-option:has(.search-select-meta:not(:empty)) { min-height:68px; }
.search-select-option + .search-select-option { margin-top:2px; }
.search-select-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
.search-select-option strong { font-size:.94rem; font-weight:600; overflow-wrap:anywhere; }
.search-select-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; font-size:.77rem; color:var(--muted); }
.search-select-option:is(:hover,.is-active,[aria-selected=true]) { background:var(--raised,#edf4e8); }
.search-select-option.is-active { outline:1px solid var(--green); outline-offset:-1px; }
.search-select-option[aria-disabled=true] { opacity:.5; cursor:not-allowed; }
.search-select-check { color:var(--green); font-size:1.1rem; }
.search-select-option:not([aria-selected=true]) .search-select-check { visibility:hidden; }
.search-select-empty { padding:24px 14px; color:var(--muted); text-align:center; font-size:.9rem; }
.search-select-help { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.member-filter-field .search-select { --select-height:34px; }
.member-filter-field .search-select .search-select-control input[data-search-select-input] { font-size:.85rem; }
.member-filter-field .search-select-search-icon { display:none; }
.preferences .search-select, .search-select.is-compact { width:104px; --select-height:34px; }
.preferences .search-select-search-icon, .preferences .search-select-clear { display:none; }
.preferences .search-select-control { gap:2px; padding-inline:8px 3px; }
.preferences .search-select .search-select-control input[data-search-select-input] { font-size:.8rem; }
.preferences .search-select-toggle { width:24px; }
.chart .search-select { max-width:180px; }
@keyframes search-select-in { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:none; } }
@media(max-width:650px), (pointer:coarse) {
 .search-select, .member-filter-field .search-select, .preferences .search-select { --select-height:44px; }
 .search-select .search-select-control input[data-search-select-input], .member-filter-field .search-select .search-select-control input[data-search-select-input] { font-size:1rem; }
 .search-select-clear, .search-select-toggle { width:36px; }
 .preferences .search-select { width:100px; }
 .preferences .search-select .search-select-control input[data-search-select-input] { font-size:1rem; }
 .preferences .search-select-toggle { width:24px; }
}
@media(prefers-reduced-motion:reduce) { .search-select-popup { animation:none; } .search-select-toggle svg { transition:none; } }
@media print { .search-select-popup { display:none!important; } }
