/* S:970–990. Keep the production 44px targets, 14px type and 12px padding. */
[data-home-filters=true]{--home-chip-gap:8px;--home-row-gap:0px;--home-switch-width:32px}
[data-home-filters=true]>.filter-inset{position:sticky!important;top:var(--header-top,80px)!important;padding:6px 16px 18px!important;overflow:visible!important;z-index:8}
[data-home-filters=true] .discovery-filters{display:flex!important;flex-direction:column;gap:var(--home-row-gap);padding:0!important;transform:none!important;opacity:1!important;visibility:visible!important;transition:none!important}
[data-home-filters=true] .filter-rail{display:flex!important;gap:var(--home-chip-gap);padding:0!important;min-width:0;width:100%}
[data-home-filters=true] .filter-rail>.home-primary{display:flex!important;gap:var(--home-chip-gap);overflow:visible!important;flex:1 1 auto;width:calc(100% - 40px)!important;max-width:none!important;padding:0!important;margin:0!important;mask-image:none!important;-webkit-mask-image:none!important;white-space:nowrap;flex-wrap:nowrap}
[data-home-filters=true] .home-primary::after{display:none!important}
[data-home-filters=true] .filter-rail>[data-feed-layout-switch]{position:absolute!important;right:0!important;flex:0 0 var(--home-switch-width)!important;margin:0!important;top:0!important}
[data-home-filters=true] .home-secondary{display:flex!important;gap:var(--home-chip-gap);flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;width:100%;padding:0!important;margin:0!important;white-space:nowrap;mask-image:none!important;touch-action:pan-x pan-y pinch-zoom}
[data-home-filters=true] .home-secondary>*{flex-shrink:0}
[data-home-filters=true] .legacy-filter-controls{display:none!important}
[data-home-filters=true] .home-filter-trigger{position:relative!important;width:auto!important;border-radius:999px!important;background:var(--grouped)!important}
[data-home-filters=true] .home-filter-trigger::before{content:none!important}
[data-home-filters=true] .home-bookmark{width:44px!important;min-width:44px!important;padding-inline:12px!important}
[data-home-filters=true] .home-bookmark>span{display:none}
[data-home-single=true] .discovery-filters{flex-direction:row!important;gap:16px}
[data-home-single=true] .filter-rail{width:max-content;flex:0 0 auto}
[data-home-single=true] .home-secondary{flex:1;min-width:0}
#filter-sheet[data-home-sheet=true]{height:100dvh!important;max-height:100dvh!important;width:min(100%,880px);max-width:100%;inset:0!important;margin:0 auto!important;border-radius:0!important;transform:none!important;padding:16px;display:none;flex-direction:column}
#filter-sheet[data-home-sheet=true][open]{display:flex}
#filter-sheet[data-home-sheet=true] .filter-sheet-top{flex-shrink:0;min-height:44px;touch-action:none}
#filter-sheet[data-home-sheet=true] .filter-options{height:auto;flex:1;min-height:0;overflow:auto;padding-bottom:16px}
#filter-sheet[data-home-sheet=true] .filter-sheet-bottom{position:static;flex-shrink:0;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:var(--page)}
#filter-sheet[data-home-sheet=true] :is(button,select){min-height:44px}
#filter-sheet[data-home-sheet=true] .option-chips label{display:flex;align-items:center;gap:8px}

#filter-sheet[data-home-sheet=true].shared-sheet{max-width:100%!important;width:min(100%,880px)!important;max-height:100dvh!important;box-sizing:border-box;padding:16px!important}
[data-home-filters=true] .home-primary>*{flex-shrink:0}

[data-home-single=true] .filter-rail{padding-right:40px!important}

[data-home-single=true] .filter-rail{width:auto!important}
[data-home-single=true] .filter-rail>.home-primary{flex:0 0 auto!important;width:auto!important}

@media(min-width:744px){
 .desktop-source [data-home-filters=true]>.filter-inset{top:0!important;padding-top:12px!important;height:auto!important}
}
[data-home-filters=true]>[data-home-result-count]{margin:0;padding:0 16px 16px}
[data-home-filters=true]>[data-home-result-count][hidden]{display:none!important}

[data-home-filters=true] .home-primary>[data-browse-chip=sort]{max-width:181px}
[data-home-filters=true] [data-browse-chip=sort]>.icon{flex:none;width:16px;height:16px}
[data-home-filters=true] .order-label{display:flex;min-width:0;gap:0;white-space:pre}
[data-home-filters=true] .order-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:0 1 auto}
[data-home-filters=true] .order-word{flex:none}
[data-home-filters=true] [data-browse-chip=sort]>[data-chevron]{flex:none;width:8px;text-align:center}
