[hidden] { display: none !important; }
.filters-panel, .filter-menu {
  position: fixed;
  z-index: 20;
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%), 0 2px 5px rgb(0 0 0 / 5%);
}
.filters-panel { width: 455px; }
.filters-content { display: flex; flex-direction: column; gap: 16px; height: 320px; padding: 24px 24px 16px; }
.filters-heading { display: flex; align-items: center; justify-content: space-between; height: 28px; flex-shrink: 0; }
.filters-heading h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 26px; }
.filters-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--canvas-page-light); }
.filters-close img { width: 16px; height: 16px; }
.filters-field-row { display: grid; grid-template-columns: 196.5px 196.5px; align-items: end; gap: 12px; height: 68px; flex-shrink: 0; }
.filters-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.filters-field label, .filters-creators legend { color: var(--content-secondary); font-size: 12px; font-weight: 600; line-height: 20px; }
.filter-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 196.5px; height: 40px; padding: 0 12px; border: 1px solid var(--border-primary); border-radius: 16px; background: var(--surface); color: var(--content-primary); font-size: 14px; font-weight: 400; line-height: 20px; text-align: left; }
.filter-select span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-select > span { display: flex; gap: 3px; }
.filter-select small { flex-shrink: 0; font: inherit; }
.filter-select img { flex: 0 0 16px; width: 16px; height: 16px; }
.filter-select:disabled { border-color: var(--border-secondary); background: var(--canvas-page); color: var(--content-secondary); }
.filter-select:disabled img { opacity: 1; }
.filter-select[aria-expanded="true"] { border-color: var(--input-border-focus); }
.filters-creators { width: 405px; height: 68px; min-width: 0; margin: 0; padding: 0; border: 0; flex-shrink: 0; }
.filters-creators legend { padding: 0; margin-bottom: 8px; }
.creator-choices { display: flex; align-items: center; gap: 4px; height: 40px; }
.creator-choices button { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 6px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--content-secondary); font-size: 12px; font-weight: 400; line-height: 20px; white-space: nowrap; }
.creator-choices button[aria-checked="true"] { flex-basis: 2px; border-color: var(--border-secondary); background: var(--canvas-page-light); color: var(--content-primary); font-weight: 600; }
.filters-footer { display: flex; align-items: center; justify-content: space-between; height: 65px; padding: 12px 24px; border-top: 1px solid var(--border-secondary); }
.filters-panel[data-stage="selected"] .filters-footer { height: 69px; padding-top: 16px; }
.filters-footer .do-button { width: 122px; flex-shrink: 0; }
.filters-reset { border: 0; padding: 0; background: transparent; color: var(--content-secondary); font-size: 14px; font-weight: 600; line-height: 20px; }
.filter-menu { z-index: 21; width: 264px; }
.filter-menu-options { display: flex; flex-direction: column; gap: 2px; height: 224px; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.filter-menu[data-field="category"] .filter-menu-options { gap: 0; height: 208px; padding: 4px 0; }
.filter-menu[data-field="category"] .filter-menu-footer { display: none; }
.period-menu .filter-menu-options { gap: 0; height: auto; padding: 4px 0; }
.filter-menu-option { display: flex; flex: 0 0 40px; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 40px; min-width: 0; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--content-secondary); font-size: 14px; line-height: 20px; text-align: left; }
.filter-menu-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-menu-option img { width: 16px; height: 16px; flex-shrink: 0; visibility: hidden; }
.filter-menu-option[aria-checked="true"] img { visibility: visible; }
.filter-menu-option:focus-visible { outline-offset: -2px; }
.filter-menu-footer { display: flex; align-items: center; justify-content: space-between; height: 49px; padding: 8px 16px 8px 20px; border-top: 1px solid var(--border-secondary); }
.filter-menu-selection { display: inline-flex; align-items: center; height: 32px; padding-left: 10px; border-radius: 9999px; background: var(--canvas-page); color: var(--content-secondary); font-size: 12px; line-height: 18px; }
.filter-menu-clear { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; border-radius: 9999px; background: transparent; }
.filter-menu-clear img { width: 12px; height: 12px; }
.filter-menu-done { height: 32px; margin-left: auto; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--content-primary); font-size: 14px; font-weight: 500; line-height: 20px; }
.filter-button { position: relative; flex-shrink: 0; justify-content: flex-start; gap: 6px; padding: 0 18px; transition: width 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out; }
.filter-button > img, .filter-button > span:not(.filter-count) { flex-shrink: 0; }
.filter-button[data-applied] { width: 124px; border-color: var(--content-secondary); color: var(--content-primary); }
.filter-count { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; transform: translateY(-50%); border-radius: 50%; background: var(--content-primary); color: var(--content-inverse-primary); font-size: 12px; font-weight: 600; line-height: 16px; visibility: hidden; opacity: 0; transition: opacity 100ms ease-out, visibility 0s; }
.filter-button[data-applied] .filter-count { visibility: visible; opacity: 1; transition-delay: 100ms, 100ms; }
@media (prefers-reduced-motion: reduce) {
  .filter-button, .filter-count { transition: none; }
}
.filter-summary-slot { display: grid; grid-template-rows: 0fr; flex: 0 0 auto; width: 1198px; overflow: clip; opacity: 0; transition: grid-template-rows 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 160ms ease-out; }
.filter-summary-slot[data-open] { grid-template-rows: 1fr; opacity: 1; }
.filter-summary-clip { min-height: 0; overflow: hidden; }
.filter-summary-slot[data-instant] { transition: none; }
@media (prefers-reduced-motion: reduce) { .filter-summary-slot { transition: none; } }
.filter-summary { position: relative; display: flex; align-items: center; flex: 0 0 64px; gap: 12px; width: 1198px; height: 64px; min-height: 0; padding: 16px 24px; }
.filter-summary::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--border-secondary); pointer-events: none; content: ""; }
.filter-results-count { flex-shrink: 0; color: var(--content-secondary); font-size: 14px; font-weight: 600; line-height: 20px; }
.filter-chips { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-x: auto; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--border-secondary); border-radius: 9999px; background: var(--canvas-page-light); color: var(--content-secondary); font-size: 12px; line-height: 18px; }
.filter-chip span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip img { width: 12px; height: 12px; }
.filter-clear-all { display: inline-flex; align-items: center; gap: 8px; height: 32px; margin-left: auto; padding: 0 10px 0 12px; flex-shrink: 0; border: 0; border-radius: 9999px; background: var(--canvas-page); color: var(--content-secondary); font-size: 12px; font-weight: 400; line-height: 18px; }
.filter-clear-all > span:first-child { font-weight: 500; }
.filter-clear-count { color: var(--content-tertiary); }
.filter-clear-all img { width: 12px; height: 12px; }
.filter-clear-all:active { background: var(--button-bg-pressed); }
@media (hover: hover) {
  :is(.filter-select, .filter-menu-option, .creator-choices button, .filters-close, .filter-menu-clear, .filter-menu-done, .filter-chip):hover:not(:disabled) { background: var(--button-secondary-bg-hover); }
  :is(.filters-reset, .filter-clear-all):hover { color: var(--content-primary); }
  .filter-clear-all:hover { background: var(--button-muted-bg-hover); }
}
