.app-select{position:relative;flex:1;min-width:0;text-align:left}
.app-select-feed{display:none}
.app-select-trigger{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px;border:var(--rule);border-radius:6px;background:var(--bg-primary);color:var(--text-secondary);font-size:13px;text-align:left;transition:background .14s ease,border-color .14s ease}
.app-select-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-select-trigger>svg{width:15px;height:15px;transition:transform .14s ease}
.app-select-trigger:hover,.app-select-trigger[aria-expanded=true]{background:var(--surface-hover);border-color:var(--text-tertiary);color:var(--text-primary)}
.app-select-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
.app-select-trigger:focus-visible{outline:1px solid var(--text-secondary);outline-offset:2px}
.app-select-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:35;padding:5px;max-height:min(340px,50dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:var(--bg-primary);border:var(--rule);border-radius:6px;box-shadow:0 8px 24px #0002}
.app-select-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 10px;border-radius:3px;font-size:13px;line-height:1.4;color:var(--text-secondary);cursor:pointer}
.app-select-option>svg{width:14px;height:14px;color:var(--text-primary)}
.app-select-option[aria-selected=true]{color:var(--text-primary);font-weight:500}
.app-select-option.is-active,.app-select-option:hover{background:var(--surface-active);color:var(--text-primary)}
@media(prefers-reduced-motion:no-preference){.app-select-menu:not([hidden]){animation:filter-open .12s ease-out}@keyframes filter-open{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.app-select-trigger,.app-select-trigger>svg{transition:none}}
@media(max-width:700px){.app-select-feed{display:block}.app-select-trigger{height:44px}.app-select-option{min-height:44px}}

.analytics-controls .app-select{flex:0 1 280px;min-width:180px;max-width:100%}
.analytics-controls .app-select-trigger{height:40px}
.analytics-controls .app-select-menu{min-width:100%}
.analytics-controls .app-select-option span{white-space:normal}
@media(max-width:700px){.analytics-controls .app-select{flex:1 1 100%;width:100%;min-width:0}.analytics-controls .app-select-trigger{height:44px}}
/* Search suggestions use the same menu surface, row geometry and selection palette. */
.search-suggestions{border-radius:6px;box-shadow:0 8px 24px #0002}
.search-option{border-radius:3px}
.search-option:hover,.search-option[aria-selected=true]{background:var(--surface-active);color:var(--text-primary)}
