[data-sf-template] .bnr { position: sticky; top: 0; z-index: 30; min-width: 0; padding: var(--sf-space-xs) 0 0; margin: 0 0 var(--sf-space-md);
  background: var(--sf-color-surface-default); border-bottom: 1px solid var(--sf-color-line-default); }
@media (min-width: 900px) { [data-sf-template] .bnr { border-bottom: 0; margin-bottom: var(--sf-space-sm); } }
[data-sf-template] .bnr-track { display: flex; gap: var(--sf-space-xl); overflow-x: auto; scrollbar-width: none; padding: 0 2px; }
[data-sf-template] .bnr-track::-webkit-scrollbar { display: none; }
[data-sf-template] .bnr-chip { flex: none; position: relative; padding: var(--sf-space-md) 0 calc(var(--sf-space-md) + 2px); white-space: nowrap; text-decoration: none;
  font-weight: 500; font-size: 16px; color: var(--sf-color-text-muted); transition: color .15s; }
[data-sf-template] .bnr-chip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: var(--sf-radius-pill); background: transparent; }
[data-sf-template] .bnr-chip:hover { color: var(--sf-color-text-primary); }
/* Длинное название раздела — в одну строку с «…»: остальные разделы остаются в ленте, целиком оно в заголовке секции. */
[data-sf-template] .bnr-cut { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-sf-template] .bnr-chip.is-on { color: var(--sf-color-text-primary); font-weight: 700; }
[data-sf-template] .bnr-chip.is-on::after { background: var(--sf-color-brand-default); }
[data-sf-template] .bnr-chip:focus-visible { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; border-radius: var(--sf-radius-sm); }

/* ПК v3 (16.11): разделы, сколько влезает, «Ещё» с подборками и лишними разделами, справа «Фильтры» по составу. */
[data-sf-template] .bnr.is-wide { display: flex; align-items: center; gap: var(--sf-space-xl); }
[data-sf-template] .bnr.is-wide .bnr-track { flex: 0 1 auto; min-width: 0; overflow: visible; position: relative; }
[data-sf-template] .bnr.is-wide .bnr-track.is-empty { position: absolute; width: 0; pointer-events: none; }
[data-sf-template] .bnr-chip.is-over { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
[data-sf-template] .bnr-more-box, [data-sf-template] .bnr-side { position: relative; flex: none; }
[data-sf-template] .bnr-more { height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 var(--sf-space-sm) 0 var(--sf-space-md);
  border: 0; border-radius: var(--sf-radius-pill); background: transparent; color: var(--sf-color-text-muted); font: inherit; font-size: 16px; font-weight: 500;
  white-space: nowrap; cursor: pointer; touch-action: manipulation; }
[data-sf-template] .bnr-more svg { transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
[data-sf-template] .bnr-more[aria-expanded="true"] svg { transform: rotate(180deg); }
[data-sf-template] .bnr-more.is-on { color: var(--sf-color-text-primary); font-weight: 600; background: var(--sf-color-surface-sunken); }
[data-sf-template] .bnr-picked { height: 36px; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 var(--sf-space-sm) 0 var(--sf-space-md); border: 0;
  border-radius: var(--sf-radius-pill); background: color-mix(in srgb, var(--sf-color-brand-default) 12%, var(--sf-color-surface-default)); color: var(--sf-color-brand-active);
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
[data-sf-template] .bnr-side { margin-left: auto; }
[data-sf-template] .bnr-filters { height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 var(--sf-space-md); box-sizing: border-box;
  border: 1.5px solid var(--sf-color-line-default); border-radius: var(--sf-radius-pill); background: var(--sf-color-surface-default); color: var(--sf-color-text-primary);
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
[data-sf-template] .bnr-filters.is-on { border-color: var(--sf-color-text-primary); background: var(--sf-color-text-primary); color: var(--sf-color-text-inverse); }
[data-sf-template] .bnr-count { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: var(--sf-radius-pill); display: inline-flex; align-items: center;
  justify-content: center; background: var(--sf-color-surface-default); color: var(--sf-color-text-primary); font-size: 12px; font-weight: 800; }

[data-sf-template] .bnr-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(340px, calc(100vw - 32px)); box-sizing: border-box; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 2px; border-radius: var(--sf-radius-lg); background: var(--sf-color-surface-overlay); box-shadow: var(--sf-shadow-lg);
  transform: translateX(var(--bnr-pop-shift, 0px)); transform-origin: top left;
  max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; }
[data-sf-template] .bnr-pop > * { flex: none; }
[data-sf-template] .bnr-pop.is-filters { left: auto; right: 0; padding: 16px 20px 20px; transform-origin: top right; }
[data-sf-template] .bnr-pop-head { padding: 0 8px 6px; font-size: 13px; font-weight: 700; color: var(--sf-color-text-muted); text-transform: uppercase; letter-spacing: .04em; }
[data-sf-template] .bnr-pop-line { height: 1px; margin: 8px; background: var(--sf-color-line-default); }
[data-sf-template] .bnr-row { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 6px 8px; border: 0; border-radius: var(--sf-radius-md);
  background: transparent; color: var(--sf-color-text-primary); font: inherit; text-align: left; cursor: pointer; }
[data-sf-template] .bnr-row-icon { width: 36px; height: 36px; flex: none; border-radius: var(--sf-radius-sm); display: flex; align-items: center; justify-content: center;
  background: var(--sf-color-surface-sunken); color: var(--sf-color-text-muted); }
[data-sf-template] .bnr-row-icon.is-tone { background: color-mix(in srgb, var(--sf-color-brand-default) 12%, var(--sf-color-surface-default)); color: var(--sf-color-brand-active); }
[data-sf-template] .bnr-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
[data-sf-template] .bnr-row-text b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
[data-sf-template] .bnr-row-text small { font-size: 13px; color: var(--sf-color-text-muted); }
[data-sf-template] .bnr-row-check { color: var(--sf-color-brand-active); display: flex; }
[data-sf-template] .bnr-row.is-on .bnr-row-text b { color: var(--sf-color-brand-active); }
[data-sf-template] a.bnr-row { text-decoration: none; }
[data-sf-template] .bnr-row:disabled { opacity: .5; cursor: default; }

[data-sf-template] .bnr-pop-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
[data-sf-template] .bnr-check { position: relative; min-height: 52px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
[data-sf-template] .bnr-check.is-off { opacity: .45; }
[data-sf-template] .bnr-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
[data-sf-template] .bnr-box { width: 24px; height: 24px; flex: none; box-sizing: border-box; border: 2px solid var(--sf-color-line-strong); border-radius: var(--sf-radius-sm);
  display: flex; align-items: center; justify-content: center; color: var(--sf-color-text-inverse); }
[data-sf-template] .bnr-check input:checked + .bnr-box { border-color: var(--sf-color-brand-default); background: var(--sf-color-brand-default); }
[data-sf-template] .bnr-check-name { flex: 1; font-size: 16px; font-weight: 500; }
[data-sf-template] .bnr-check-count { font-size: 14px; color: var(--sf-color-text-muted); }
[data-sf-template] .bnr-pop-actions { display: flex; gap: 10px; margin-top: 12px; }
[data-sf-template] .bnr-reset, [data-sf-template] .bnr-apply { height: 48px; border: 0; border-radius: var(--sf-radius-pill); font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; touch-action: manipulation; }
[data-sf-template] .bnr-reset { flex: 1; background: var(--sf-color-surface-sunken); color: var(--sf-color-text-primary); }
[data-sf-template] .bnr-apply { flex: 1.4; background: var(--sf-color-brand-default); color: var(--sf-color-text-inverse); }
[data-sf-template] :is(.bnr-reset, .bnr-apply):disabled { opacity: .5; cursor: default; }

[data-sf-template] :is(.bnr-more, .bnr-picked, .bnr-filters, .bnr-row, .bnr-reset, .bnr-apply):focus-visible,
[data-sf-template] .bnr-check input:focus-visible + .bnr-box { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  [data-sf-template] .bnr-more:hover { color: var(--sf-color-text-primary); }
  [data-sf-template] .bnr-row:not(:disabled):hover { background: var(--sf-color-surface-sunken); }
  [data-sf-template] .bnr-filters:not(.is-on):hover { border-color: var(--sf-color-line-strong); }
}
[data-sf-template] :is(.bnr-more, .bnr-picked, .bnr-filters, .bnr-reset, .bnr-apply):active:not(:disabled) { transform: scale(.97); }
[data-sf-template] .bnr-row:active:not(:disabled) { background: var(--sf-color-surface-sunken); }
