.xf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.xf-header__top { border-bottom: 1px solid var(--line-soft); }

.xf-header__row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
}

.xf-header__row--top {
  height: 38px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-3);
}

.xf-header__row--top .xf-delivery,
.xf-header__row--top .xf-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}
.xf-header__row--top .xf-phone { font-family: var(--font-mono); }

.xf-header__top-right {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.xf-header__top-right .xf-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

/* M3: xf-utility-bot удалён из top-bar — бот переехал в floating-кнопку
   (см. footer.php + .xf-floating-bot в ui.css). Снимает один gradient в
   header'е (теперь только xf-configurator-pill держит gradient). */

.xf-header__row--main {
  height: 72px;
  gap: 28px;
}

.xf-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  color: var(--text);
  flex: 0 0 auto;
}
.xf-logo > svg {
  margin-right: -9px;
}
.xf-logo__dash {
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.xf-logo__text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  font-family: var(--font-sans);
  transform: translateY(-1px);
}

/* M6.2 redux: configurator-pill возвращён в исходную позицию рядом с лого, но
   в quieter форме — gradient + glow сняты. Прозрачный фон, тонкая
   accent-окантовка как subtle highlight для key-feature. Icon-tile внутри
   tinted flat (без `var(--grad)`). Hover — лёгкий accent-wash. */
.xf-configurator-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 7px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--accent-line);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s, border-color .18s, transform .18s;
  flex: 0 0 auto;
}
@media (hover: hover) {
  .xf-configurator-pill:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    transform: translateY(-1px);
  }
}
.xf-configurator-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.xf-configurator-pill.is-active {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.xf-configurator-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  flex: 0 0 auto;
}
.xf-configurator-pill__label {
  display: inline-block;
}

.xf-search {
  flex: 1;
  position: relative;
  max-width: 560px;
}
.xf-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  display: inline-flex;
}
.xf-search input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.xf-search input::placeholder { color: var(--text-3); }
.xf-search input:focus { border-color: var(--accent-line); }

.xf-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.xf-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  color: var(--text-2);
  transition: all .15s;
}
@media (hover: hover) {
  .xf-iconbtn:hover {
  background: var(--surface-2);
  color: var(--text);
}
}
.xf-iconbtn__count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
/* Wishlist badge — red, to match the emotional cue on card hearts. */
.xf-iconbtn[data-xf-wish-icon] .xf-iconbtn__count { background: #e11d48; }
/* Header pill — залогиненный статус (аватар+имя) рядом с иконками. */
.xf-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 13px;
  transition: background .15s, border-color .15s;
  max-width: 180px;
}
@media (hover: hover) {
  .xf-account-pill:hover {
  background: var(--accent-dim);
  border-color: var(--accent-line);
}
}
.xf-account-pill__avatar {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.3px;
}
.xf-account-pill__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
  line-height: 1;
}

.xf-header__actions .xf-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
  margin: 0 6px;
}
.xf-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 18px -8px var(--accent);
  transition: transform .15s, box-shadow .15s;
}
@media (hover: hover) {
  .xf-cart-btn:hover { transform: translateY(-1px); }
}
.xf-cart-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #fff;
  color: var(--accent-3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}

.xf-header__nav { border-top: 1px solid var(--line-soft); }
/* M9.3: row сделан компактнее (52→42), pills сняты hover-tint, nav-item
   text-only и легче — closes 4-я critique P2 #4 «top-nav competes with
   cat-grid». Quick-shortcut text strip, не pill-row. */
.xf-header__row--nav {
  height: 42px;
  gap: 2px;
  /* Rail-aligned: компенсируем 12px внутренний padding pill'ов
     (`.xf-catalog-btn`, `.xf-nav-item`) — glyph первого и последнего
     элемента встаёт на ту же вертикальную линию, что truck-иконка в
     topbar'е и SVG-лого в main-row'е (x = --container-pad). */
  padding-inline: calc(var(--container-pad) - 12px);
}

/* M3: tiered visibility — «Каталог» = primary entrypoint в megamenu;
   pill-row = тише, secondary shortcuts. Различие через size + color +
   icon-presence, не через одинаковый pill-уровень. */
.xf-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  margin-right: 4px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
@media (hover: hover) {
  .xf-catalog-btn:hover { background: var(--surface); color: var(--text); }
}

/* M9.3: nav-item — pure text shortcut. Без pill-tint (background) и
   border-radius на hover, мельче font-size (12→11.5), уже padding (7→4),
   opacity + летающий accent-color вместо background-tint. */
.xf-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: 0.1px;
  transition: color .15s;
  white-space: nowrap;
}
@media (hover: hover) {
  .xf-nav-item:hover { color: var(--accent-2); }
}
.xf-catalog-btn.is-open {
  color: var(--accent-2);
}

/* ───────────────────────────────────────────────────────────
   Megamenu panel — opened by .xf-catalog-btn
   ─────────────────────────────────────────────────────────── */

.xf-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  z-index: 45;
  max-height: min(560px, 70vh);
  overflow: hidden;
}
.xf-mega__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--container-pad) 22px;
}

.xf-mega__layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 28px;
  min-height: 380px;
}

/* Left — vertical list of 16 top-level categories */
.xf-mega__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: 1px solid var(--line-soft);
  padding-right: 12px;
  max-height: 500px;
  overflow-y: auto;
}
.xf-mega__nav-item {
  border-radius: 10px;
  transition: background .12s;
}
.xf-mega__nav-item.is-active {
  background: var(--surface);
}
@media (hover: hover) {
  .xf-mega__nav-item:hover {
  background: var(--surface);
}
}
.xf-mega__nav-item.is-active .xf-mega__nav-name { color: var(--text); font-weight: 500; }
.xf-mega__nav-item.is-active .xf-mega__nav-arrow { color: var(--accent-2); opacity: 1; }
.xf-mega__nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.3;
}
@media (hover: hover) {
  .xf-mega__nav-link:hover { color: var(--text); }
}
.xf-mega__nav-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}
.xf-mega__nav-item.is-active .xf-mega__nav-icon { color: var(--accent-2); }
@media (hover: hover) {
  .xf-mega__nav-item:hover .xf-mega__nav-icon { color: var(--accent-2); }
}
.xf-mega__nav-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xf-mega__nav-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--text-3);
  opacity: 0;
  transition: opacity .12s, color .12s;
}
@media (hover: hover) {
  .xf-mega__nav-item:hover .xf-mega__nav-arrow { opacity: .7; }
}

/* Right — pane with hovered category's children */
.xf-mega__panes {
  position: relative;
  min-width: 0;
  padding: 4px 4px 4px 8px;
}
.xf-mega__pane { display: none; }
.xf-mega__pane.is-active { display: block; }

.xf-mega__pane-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text);
  transition: color .15s;
}
@media (hover: hover) {
  .xf-mega__pane-head:hover { color: var(--accent-2); }
}
.xf-mega__pane-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.xf-mega__pane-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-family: var(--font-mono, inherit);
}

.xf-mega__pane-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}
.xf-mega__pane-list a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.35;
  transition: color .12s;
}
@media (hover: hover) {
  .xf-mega__pane-list a:hover { color: var(--accent-2); }
}

@media (max-width: 1100px) {
  .xf-mega__layout { grid-template-columns: 240px 1fr; gap: 20px; }
  .xf-mega__pane-list { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .xf-mega { display: none; }
}

/* [M17b] Theme toggle — 56×24 pill со sliding knob. Живёт в
   xf-header__top-right после телефона. Default state (без
   data-theme на <html>) = light: knob справа над sun-слотом,
   moon-иконка видна слева как "куда поедешь". В dark — зеркально. */
.xf-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 56px;
  height: 32px;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  flex: 0 0 auto;
}
@media (hover: hover) {
  .xf-theme-toggle:hover { border-color: var(--accent-line); }
}
.xf-theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.xf-theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: var(--text-3);
  pointer-events: none;
  transition: opacity .2s;
}
/* Track icon = hint "куда поедешь" (dim), knob icon = current state (accent).
   Track at 0.45 разводит visual weight — current явно крикливее, target тише. */
.xf-theme-toggle__icon--moon { opacity: 0.45; }
.xf-theme-toggle__icon--sun  { opacity: 0; }
html[data-theme="dark"] .xf-theme-toggle__icon--moon { opacity: 0; }
html[data-theme="dark"] .xf-theme-toggle__icon--sun  { opacity: 0.45; }
@media (hover: hover) {
  .xf-theme-toggle:hover .xf-theme-toggle__icon { opacity: 0.7; }
}

.xf-theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 29px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px -1px oklch(0 0 0 / 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: left .22s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
html[data-theme="dark"] .xf-theme-toggle__knob { left: 3px; }

.xf-theme-toggle__knob-ico {
  position: absolute;
  display: inline-flex;
  transition: opacity .2s;
}
.xf-theme-toggle__knob-ico--sun  { opacity: 1; }
.xf-theme-toggle__knob-ico--moon { opacity: 0; }
html[data-theme="dark"] .xf-theme-toggle__knob-ico--sun  { opacity: 0; }
html[data-theme="dark"] .xf-theme-toggle__knob-ico--moon { opacity: 1; }

/* ───────────────────────────────────────────────────────────
   [M24-m1] Mobile burger + drawer
   Бургер спрятан на desktop, показан < 768px. Drawer — slide-in
   слева, хранит весь functional-overflow: каталог-категории,
   личные ссылки, контакты, theme-toggle.
   ─────────────────────────────────────────────────────────── */

.xf-burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 2px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
  flex: 0 0 auto;
}
@media (hover: hover) {
  .xf-burger-btn:hover { background: var(--surface-2); }
}
.xf-burger-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Drawer — полностью скрыт на desktop. На mobile живёт, но closed by default. */
.xf-drawer { display: none; }

/* ───────────────────────────────────────────────────────────
   Mobile layout (< 768px)
   ─────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  /* Прячем desktop-only ряды и mega-menu */
  .xf-header__top,
  .xf-header__nav,
  .xf-mega { display: none !important; }

  /* Main-row → 2 строки: [burger][logo][actions] + [search full-width] */
  .xf-header__row--main {
    height: auto;
    min-height: 56px;
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .xf-burger-btn { display: inline-flex; }

  /* Лого компактнее — 28×22 SVG + text 22px */
  .xf-logo {
    gap: 3px;
    margin-right: auto;
  }
  .xf-logo > svg { width: 28px; height: 22px; margin-right: -7px; }
  .xf-logo__dash { width: 8px; height: 3px; }
  .xf-logo__text {
    font-size: 22px;
    letter-spacing: -0.4px;
    transform: translateY(0);
  }

  /* Configurator pill + account pill + user-btn + divider — переезжают в drawer */
  .xf-configurator-pill { display: none; }
  .xf-header__actions .xf-account-pill,
  .xf-header__actions > .xf-iconbtn[href$="auth/"],
  .xf-header__actions > .xf-iconbtn[href$="personal/"] { display: none; }
  .xf-header__actions .xf-divider { display: none; }

  .xf-header__actions { gap: 2px; margin-left: 0; }

  /* Cart → compact icon-only (без label), с count'ом рядом */
  .xf-cart-btn {
    padding: 9px 11px;
    gap: 6px;
    font-size: 12px;
  }
  .xf-cart-btn > span:not(.xf-cart-btn__count) { display: none; }
  .xf-cart-btn__count {
    min-width: 18px;
    height: 18px;
    font-size: 10.5px;
    padding: 0 5px;
  }

  /* Search → full-width отдельный ряд под верхней линией */
  .xf-search {
    order: 10;
    flex: 1 0 100%;
    max-width: 100%;
  }
  .xf-search input {
    font-size: 14.5px;
    padding: 12px 14px 12px 40px;
    height: 44px;
    box-sizing: border-box;
  }

  /* Drawer visible container (closed by default via translateX) */
  .xf-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
  }
  /* override native [hidden] так, чтобы transition мог работать —
     visibility управляется classList + pointer-events ниже */
  .xf-drawer[hidden] { display: block; }

  .xf-drawer__overlay {
    position: absolute;
    inset: 0;
    background: oklch(0 0 0 / 0.5);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
  }
  .xf-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85vw;
    max-width: 360px;
    background: var(--bg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    pointer-events: auto;
    will-change: transform;
  }
  .xf-drawer.is-open { pointer-events: auto; }
  .xf-drawer.is-open .xf-drawer__overlay { opacity: 1; pointer-events: auto; }
  .xf-drawer.is-open .xf-drawer__panel   { transform: translateX(0); }

  .xf-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    flex: 0 0 auto;
  }
  .xf-drawer__logo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text);
    line-height: 1;
  }
  .xf-drawer__logo > svg { margin-right: -7px; }
  .xf-drawer__logo-dash {
    width: 8px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    flex: 0 0 auto;
  }
  .xf-drawer__logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
  }
  .xf-drawer__close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--surface-2);
    border: 0;
    border-radius: 10px;
    color: var(--text-2);
    cursor: pointer;
    transition: background .15s, color .15s;
  }
  @media (hover: hover) {
  .xf-drawer__close:hover { background: var(--surface-3); color: var(--text); }
}

  .xf-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Primary CTA — Конфигуратор ПК (единственный в drawer'е) */
  .xf-drawer__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(
      135deg,
      oklch(0.55 0.23 var(--accent-h) / 0.10) 0%,
      oklch(0.75 0.20 320 / 0.06) 100%
    );
    border: 1px solid var(--accent-line);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
  }
  .xf-drawer__cta.is-active {
    background: linear-gradient(
      135deg,
      oklch(0.55 0.23 var(--accent-h) / 0.22) 0%,
      oklch(0.75 0.20 320 / 0.12) 100%
    );
  }
  html[data-theme="dark"] .xf-drawer__cta {
    background: linear-gradient(
      135deg,
      oklch(0.68 0.22 var(--accent-h) / 0.16) 0%,
      oklch(0.75 0.20 320 / 0.08) 100%
    );
  }
  html[data-theme="dark"] .xf-drawer__cta.is-active {
    background: linear-gradient(
      135deg,
      oklch(0.68 0.22 var(--accent-h) / 0.28) 0%,
      oklch(0.75 0.20 320 / 0.18) 100%
    );
  }
  .xf-drawer__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 0 14px -3px oklch(0.68 0.22 var(--accent-h) / 0.60);
    flex: 0 0 auto;
  }

  /* Group: title + stacked rows */
  .xf-drawer__group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .xf-drawer__group-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-3);
    font-family: var(--font-mono);
    padding: 0 4px 8px;
  }

  /* Nav / row — one-line clickable list items */
  .xf-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .xf-drawer__nav-item,
  .xf-drawer__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    transition: background .12s, color .12s;
  }
  .xf-drawer__nav-item { color: var(--text-2); }
  @media (hover: hover) {
  .xf-drawer__nav-item:hover,
.xf-drawer__row:hover { background: var(--surface); color: var(--text); }
}

  .xf-drawer__nav-icon,
  .xf-drawer__row-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
  }
  .xf-drawer__nav-label,
  .xf-drawer__row-label { flex: 1 1 auto; }
  .xf-drawer__nav-arrow {
    flex: 0 0 auto;
    color: var(--text-3);
  }

  .xf-drawer__nav-item--all {
    border-top: 1px solid var(--line-soft);
    margin-top: 4px;
    padding-top: 14px;
  }
  .xf-drawer__nav-item--all .xf-drawer__nav-icon { color: var(--accent-2); }
  .xf-drawer__nav-item--all .xf-drawer__nav-label {
    font-weight: 500;
    color: var(--text);
  }

  .xf-drawer__row-icon--brand {
    background: var(--grad);
    color: #fff;
    border-radius: 7px;
    box-shadow: 0 0 10px -2px oklch(0.68 0.22 var(--accent-h) / 0.55);
  }
  .xf-drawer__row-label--mono {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: -0.2px;
  }
  .xf-drawer__row-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
  }
  .xf-drawer__row-count--wish { background: #e11d48; }

  /* Info — non-clickable hint row */
  .xf-drawer__info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-3);
    font-size: 12.5px;
  }
  .xf-drawer__info > svg { flex: 0 0 auto; }

  /* Theme toggle row — pinned к нижней границе body (внутри scroll-блока) */
  .xf-drawer__theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 0;
    border-top: 1px solid var(--line-soft);
    margin-top: 6px;
  }
  .xf-drawer__theme-label {
    font-size: 14px;
    color: var(--text-2);
  }
}

/* Body scroll-lock when drawer is open */
body.xf-drawer-open { overflow: hidden; }
