/* One aligned label and count column for every counted choice. */
.counted-select{position:relative;display:flex;flex:1 1 0;min-width:0;max-width:100%;align-items:stretch}
.counted-select-native{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;pointer-events:none!important;margin:0!important}
.counted-select-trigger{display:flex!important;align-items:center;gap:10px;width:100%;min-width:0;min-height:38px;padding:8px 11px!important;border:1px solid #d5deea!important;border-radius:8px!important;background:#fff!important;color:#334b64!important;text-align:left;font:inherit!important;box-shadow:0 1px 2px #18314d04;cursor:pointer}
.counted-select-trigger:hover{border-color:#a8b9cf!important;background:#fafcff!important}
.counted-select-trigger:focus-visible{outline:3px solid #2c6fd433;outline-offset:2px;border-color:#3978ce!important}
.counted-select-trigger[disabled]{background:#f5f7fa!important;color:#8996a6!important;cursor:default}
.counted-select-value{flex:1;min-width:0}
.counted-select-choice{display:flex;width:100%;min-width:0;align-items:center;gap:10px}
.counted-select-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.counted-select-count{flex:none;margin-left:auto;font-variant-numeric:tabular-nums;font-size:.88em;color:#72859a;white-space:nowrap}
.counted-select-score{flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;background:#edf2f8;color:#405b76;font-size:.92em;font-variant-numeric:tabular-nums}
.counted-select-chevron{flex:0 0 16px;display:flex;width:16px;height:16px;align-items:center;justify-content:center;color:#7d8fa5;transform-origin:center;transition:transform 120ms ease}
.counted-select-chevron svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.counted-select-attention{flex:none;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;color:#986019;background:#fff1d8;font-size:10px;font-weight:700;line-height:1}
.counted-select-option[aria-disabled="true"] .counted-select-attention{color:#9aa7b8;background:#f3f5f8}
.counted-select.open .counted-select-chevron{transform:rotate(180deg)}
.counted-select-popup{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:5px;border:1px solid #d9e2ed;border-radius:10px;background:#fff;color:#334b64;box-shadow:0 10px 32px #1d3f6826,0 2px 6px #1d3f6812;overflow:auto;overscroll-behavior:contain;z-index:10000;font:inherit;outline:none}
.counted-select-popup[hidden]{display:none!important}
.counted-select-popup::backdrop{background:transparent;pointer-events:none}
.counted-select-option{display:flex;align-items:center;min-height:36px;padding:8px 10px;border-radius:6px;cursor:pointer;font-size:13px;line-height:1.35;box-sizing:border-box}
.counted-select-option .counted-select-label{white-space:normal;overflow:visible}
.counted-select-option.active{background:#edf4ff;color:#245b9d}
.counted-select-option[aria-selected="true"]{font-weight:600}
.counted-select-option[aria-disabled="true"]{color:#9aa7b8;cursor:default}
.counted-select-option[aria-disabled="true"] .counted-select-count{color:#a3afbe}
.counted-select-option[aria-disabled="true"] .counted-select-score{color:#a3afbe;background:#f3f5f8}
.leads-score-range label>.counted-select{width:100%}
.leads-score-section>.counted-select,.leads-owner-filters>.counted-select{margin-bottom:9px;width:100%}
@media(prefers-reduced-motion:reduce){.counted-select-chevron{transition:none}}
/* Keep Library controls compact; the drawer has room for a comfortable target. */
.library-filters .counted-select-trigger{min-height:30px;padding:6px 8px!important;font-size:12px!important}
#leads-filters-dialog .counted-select-trigger{min-height:38px;padding:8px 11px!important;font-size:13px!important}
#leads-filters-dialog .filter-row .counted-select{flex:1 1 100%;width:100%}
.counted-select-option[hidden]{display:none!important}
