.filter-bar {
    position: relative;
    min-height: 52px;
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--surface-bar);
    border-bottom: 1px solid var(--border);
}
.filter-bar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-bar__count { margin-left: auto; color: var(--text-muted); white-space: nowrap; }
/* The bar wraps on narrow screens: a horizontal scroll would clip the dropdown panels. */
.filter-bar__reset { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.filter-bar__reset:hover { color: var(--text); }

@media (max-width: 767px) {
    .filter-bar { padding: 10px 16px; }
    /* A dropdown's panel hangs from the bar, across it: one near the right edge would leave the screen otherwise. */
    .filter-bar .dropdown { position: static; }
    .filter-bar .dropdown__panel { left: 16px; right: 16px; min-width: 0; max-width: none; }
}
