/* One level of choices; quiet motion and the same Studio palette in both themes. */
html body select.studio-filter-native { display:none!important; }
html body button.studio-filter-trigger {
  display:inline-flex; align-items:center; justify-content:space-between; gap:12px;
  box-sizing:border-box; min-width:0; max-width:100%; height:38px; padding:0 12px!important;
  background:var(--studio-surface,#fff)!important; color:var(--studio-sub,#555b67)!important;
  border:1px solid var(--studio-line,#e1e3e8)!important; border-radius:10px!important;
  font:inherit; font-size:12px!important; font-weight:400!important; line-height:1.4;
  text-align:left; cursor:pointer; box-shadow:none!important;
}
html body button.studio-filter-trigger[hidden] { display:none!important; }
html body button.studio-filter-trigger:hover:not(:disabled) { background:var(--studio-soft,#f1f2f4)!important; }
html body button.studio-filter-trigger[aria-expanded=true] { border-color:var(--studio-accent,#315bea)!important; color:var(--studio-text,#22252c)!important; }
html body button.studio-filter-trigger:focus-visible { outline:2px solid var(--studio-accent,#315bea)!important; outline-offset:2px!important; }
html body button.studio-filter-trigger:disabled { opacity:.48; cursor:not-allowed!important; }
.studio-filter-current { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.studio-filter-chevron { display:flex; align-items:center; flex:0 0 14px; width:14px; height:14px; opacity:.6; transition:transform 140ms ease; }
.studio-filter-chevron svg { width:14px; height:14px; }
[aria-expanded=true]>.studio-filter-chevron { transform:rotate(180deg); }
html body .studio-filter-popover {
  display:block; position:fixed; inset:auto; margin:0; box-sizing:border-box; z-index:2147483000;
  padding:6px; border:1px solid var(--studio-line,#e1e3e8); border-radius:13px;
  background:var(--studio-surface,#fff); color:var(--studio-text,#22252c);
  box-shadow:var(--studio-shadow,0 12px 36px #25293818,0 2px 6px #25293808);
  font:13px/1.4 Inter,"Segoe UI","Microsoft YaHei",sans-serif;
  overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;
  transform-origin:top center;
}
html body .studio-filter-popover[hidden] { display:none!important; }
.studio-filter-popover::backdrop { background:transparent; pointer-events:none; }
.studio-filter-popover[data-side=top] { transform-origin:bottom center; }
.studio-filter-popover.is-opening { animation:studio-filter-enter 140ms cubic-bezier(.2,.7,.2,1) both; }
.studio-filter-popover[data-side=top].is-opening { animation-name:studio-filter-enter-up; }
html body .studio-filter-option {
  display:flex; align-items:center; gap:10px; min-height:38px; box-sizing:border-box;
  margin:0; padding:8px 10px; border:0; border-radius:8px; color:var(--studio-text,#22252c);
  cursor:pointer; transition:background-color 100ms ease,color 100ms ease; user-select:none;
}
html body .studio-filter-option.is-active { background:var(--studio-soft,#f1f2f4); }
html body .studio-filter-option[aria-selected=true] { color:var(--studio-accent,#315bea); background:var(--studio-tint,#edf1ff); font-weight:600; }
html body .studio-filter-option[aria-disabled=true] { opacity:.4; cursor:not-allowed; }
.studio-filter-option-label { min-width:0; flex:1; overflow-wrap:anywhere; }
.studio-filter-check { width:15px; flex:0 0 15px; visibility:hidden; color:var(--studio-accent,#315bea); font-weight:650; }
[aria-selected=true]>.studio-filter-check { visibility:visible; }
.studio-filter-icon { display:flex; align-items:center; justify-content:center; width:18px; height:18px; flex:0 0 18px; opacity:.8; }
.studio-filter-icon svg { width:18px; height:18px; }
.studio-filter-empty { padding:15px 10px; color:var(--studio-muted,#6d7380); text-align:center; }
html body .works-head .tools>.studio-filter-trigger { flex:0 1 auto; min-width:108px; }
html body .works-head .tools>.studio-filter-trigger.project-filter { min-width:120px; max-width:200px; }
html body .asset-library-filter-more .studio-filter-trigger { width:100%; }
html body .asset-library-saved-views>.studio-filter-trigger { flex:1; min-width:0; width:0; }
html body .asset-picker-toolbar>.studio-filter-trigger { flex:1 1 110px; }
html body .asset-picker-extra-filters>.studio-filter-trigger { width:100%; }
@keyframes studio-filter-enter { from {opacity:0;transform:translateY(-4px)} to {opacity:1;transform:translateY(0)} }
@keyframes studio-filter-enter-up { from {opacity:0;transform:translateY(4px)} to {opacity:1;transform:translateY(0)} }
@media(prefers-reduced-motion:reduce) {
  .studio-filter-popover.is-opening { animation:none!important; }
  .studio-filter-chevron,.studio-filter-option { transition:none!important; }
}
@media(max-width:600px) {
  html body .works-head .tools>.studio-filter-trigger { flex:1 1 105px; min-width:0; }
  html body .works-head .tools>.studio-filter-trigger.project-filter { max-width:none; }
}
