/* ============================================================
   ZALUT — мобильная версия (телефоны до 760 px).
   Подключается на всех страницах после стилей страницы (seo.js) и перекрывает их.
   Цвета — только токены темы (var(--…)): осенний слой перекрашивает их сам,
   поэтому копия в css/autumn/ этому файлу не нужна.
   Разметку нижней панели рисует сервер (seo.js → .mnav), поведение — js/mobile.js.
   ============================================================ */

.mnav { display: none; }

/* ---------- Шторка снизу (js/mobile.js openSheet) ---------- */
.msheet { position: fixed; inset: 0; z-index: 9400; display: flex; flex-direction: column; justify-content: flex-end; }
.msheet__back {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .58);
  opacity: 0; transition: opacity .22s ease; touch-action: none;
}
.msheet__panel {
  position: relative; display: flex; flex-direction: column;
  max-height: calc(100dvh - 48px); box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-1); border: 1px solid var(--line-hi); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 48px -24px rgba(0, 0, 0, .9);
  transform: translateY(104%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.msheet__panel:focus { outline: none; }
.msheet.is-open .msheet__back { opacity: 1; }
.msheet.is-open .msheet__panel { transform: none; }
.msheet.is-closing .msheet__panel { transition-duration: .2s; }
.msheet__grab { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.msheet__grab::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: var(--line-hi); }
.msheet__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 2px 14px 10px 18px; touch-action: none;
}
.msheet__title { font: 800 18px/1.2 var(--font-display, inherit); letter-spacing: -.02em; color: var(--txt); }
.msheet__x {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--glass-hi); color: var(--txt);
}
.msheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 14px; }
.msheet__foot { flex: none; padding: 12px 12px 14px; border-top: 1px solid var(--line); background: var(--bg-1); }
@media (prefers-reduced-motion: reduce) { .msheet__panel, .msheet__back { transition: none; } }
/* msheet--side: на компьютере — панель справа во всю высоту (фильтры-списки каталога, как на Playerok);
   на телефоне — обычная шторка снизу */
@media (min-width: 761px) {
  .msheet--side { flex-direction: row; justify-content: flex-end; }
  .msheet--side .msheet__panel {
    width: min(460px, 100vw); height: 100%; max-height: none;
    border: 1px solid var(--line-hi); border-right: 0; border-radius: 22px 0 0 22px;
    box-shadow: -18px 0 48px -24px rgba(0, 0, 0, .9); transform: translateX(104%);
  }
  .msheet--side .msheet__grab { display: none; }
  .msheet--side .msheet__head { padding: 20px 16px 14px 24px; }
  .msheet--side .msheet__body { padding: 0 24px 18px; }
  .msheet--side .msheet__foot { padding: 14px 24px 20px; }
}

/* меню профиля в шторке — то же меню, что под аватаркой в шапке компьютера */
.hd-menu.hd-menu--sheet {
  position: static; width: auto; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; animation: none;
}
.hd-menu--sheet .hd-menu__me { padding: 6px 8px 12px; }
.hd-menu--sheet .hd-menu__me .hd-ava { width: 52px; height: 52px; }
.hd-menu--sheet .hd-menu__who b { font-size: 18px; }
.hd-menu--sheet .hd-menu__who small { font-size: 13.5px; }
.hd-menu--sheet .hd-menu__bal { margin: 0 0 8px; padding: 15px 16px; font-size: 14px; }
.hd-menu--sheet .hd-menu__bal b { font-size: 20px; }
.hd-menu--sheet .hd-menu__item { min-height: 48px; padding: 0 10px; font-size: 15.5px; gap: 14px; }
.hd-menu--sheet .hd-menu__ico svg { width: 21px; height: 21px; }
.hd-menu--sheet .hd-menu__out { margin-top: 6px; border-radius: 12px; }

/* пока открыта шторка или окно — страница под ними не прокручивается */
html.m-locked, html.m-locked body { overflow: hidden; }

/* касания: без серой вспышки WebKit — отклик дают свои :active */
@media (hover: none) {
  a, button, summary, label, [role="button"], [role="tab"] { -webkit-tap-highlight-color: transparent; }
}

@media (max-width: 760px) {
  :root {
    --mnav-h: 60px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --mnav-space: calc(var(--mnav-h) + var(--safe-b));
    --nav-h: 58px;
    --nav-offset: var(--nav-h);   /* сколько сверху занимает шапка сейчас (0 — уехала) */
  }
  /* шапка уехала — переменную меняем только у того, кому она нужна (меню настроек): смена переменной на <html>
     заставляла браузер пересчитывать всю страницу при каждом скрытии/показе шапки */
  html.nav-away .set-nav { --nav-offset: 0px; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: var(--mnav-space);
  }

  /* ---------- Нижняя панель разделов ---------- */
  .mnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: var(--mnav-space); box-sizing: border-box;
    padding: 0 env(safe-area-inset-right, 0px) var(--safe-b) env(safe-area-inset-left, 0px);
    background: var(--bg-1); border-top: 1px solid var(--line);
    transition: transform .2s ease, visibility .2s;
  }
  .mnav__i {
    position: relative; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--txt-3); text-decoration: none;
    font: 600 12px/1 var(--font-body, inherit); letter-spacing: 0;
    -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  }
  .mnav__ico, .mnav__plus { display: grid; place-items: center; height: 30px; transition: transform .12s ease; }
  .mnav__i:active .mnav__ico, .mnav__i:active .mnav__plus { transform: scale(.88); }
  .mnav__lbl { max-width: calc(100% - 4px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mnav__i.is-active { color: var(--txt); }
  .mnav__i.is-active .mnav__ico { color: var(--acc); }
  .mnav__i--sell { color: var(--txt-2); }
  .mnav__plus { width: 46px; height: 30px; border-radius: 11px; background: var(--grad); color: #fff; }
  .mnav__plus svg { width: 20px; height: 20px; stroke-width: 2.5; }
  .mnav__badge {
    position: absolute; top: 5px; left: calc(50% + 4px);
    min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
    display: inline-grid; place-items: center;
    background: #E5484D; color: #fff; font: 800 11px/1 var(--font-body, inherit);
    box-shadow: 0 0 0 2px var(--bg-1);
  }
  .mnav__badge[hidden] { display: none; }
  /* клавиатура открыта — панель уходит вниз, чтобы не висеть над полем ввода */
  html.kb-open .mnav { transform: translateY(110%); visibility: hidden; }

  /* ---------- Шапка: одна строка [лого] [поиск] [уведомления] ---------- */
  .nav { transition: transform .22s ease; }
  /* с запасом: в осенней теме под шапкой свисает гирлянда (.nav::after, ~20 px) — она уезжает вместе с шапкой */
  .nav.nav--away { transform: translateY(calc(-100% - 24px)); }
  .nav .nav__inner, .nav--scrolled .nav__inner {
    flex-wrap: nowrap; height: var(--nav-h); min-height: 0; padding: 0; gap: 10px; row-gap: 0;
  }
  .nav .nav__logo { flex: none; display: flex; align-items: center; }
  .nav .nav__logo img, .nav:has(.nav__actions--user) .nav__logo img { width: 66px; height: auto; }
  .nav__games { display: none; }
  .nav .search, .nav .nav__games ~ .search {
    order: 0; flex: 1 1 auto; flex-basis: auto; min-width: 0; height: 40px; padding: 0 14px; gap: 8px;
  }
  .nav .search__icon { width: 18px; height: 18px; }
  .nav .search__input { font-size: 16px; }
  .nav .search .fx-kbd { display: none; }
  /* разделы, баланс, «Продать», сделки и аватар — в нижней панели и шторке «Профиль» */
  .nav .nav__actions { margin-left: 0; gap: 0; flex: none; }
  .nav .nav__actions > :not(.bell) { display: none; }
  .nav .nav__actions .bell .hd-ico { width: 40px; height: 40px; }
  .nav .bell__panel {
    position: fixed; top: calc(var(--nav-h) + 6px); left: 8px; right: 8px; width: auto;
    max-height: calc(100dvh - var(--nav-h) - var(--mnav-space) - 20px); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav .bell__list { max-height: none; }

  /* всплывашки, плашка про cookie, «ты на N месте» в топе и док сотрудника — над нижней панелью */
  .fx-toasts, body .tp-toasts { bottom: calc(var(--mnav-space) + 10px); }
  html.kb-open .fx-toasts { bottom: 10px; }
  body .cc { bottom: calc(var(--mnav-space) + 10px); }
  body .tp-me { bottom: calc(var(--mnav-space) + 8px); }
  body .stf-dock { bottom: calc(var(--mnav-space) + 8px); }
  body .stf-fab, body .stf-2fa { bottom: calc(var(--mnav-space) + 10px); }
  html.is-staff:root body { padding-bottom: calc(var(--mnav-space) + 70px); }
  html.is-staff:root .fx-toasts, html.is-staff:root .tp-toasts { bottom: calc(var(--mnav-space) + 72px); }
  html.is-staff:root .tp-me { bottom: calc(var(--mnav-space) + 66px); }
  html.stf-fab-on:root .fx-toasts, html.stf-fab-on:root .tp-toasts { bottom: calc(var(--mnav-space) + 62px); }

  /* ---------- Поля ввода: 16 px, иначе iPhone приближает страницу при касании ---------- */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="reset"]),
  textarea, select {
    font-size: 16px !important;
  }

  /* ---------- Скорость: переливы раскрасок ников — только в шапке профиля ----------
     Перелив перерисовывает ник каждый кадр: четыре таких ника на главной занимали ~70% процессора телефона
     в простое. В карточках, списках и чатах на телефоне раскраска остаётся, но застывшим кадром. */
  .nick, .nick::before, .nick::after { animation-play-state: paused !important; }
  .p-name .nick, .p-name .nick::before, .p-name .nick::after { animation-play-state: running !important; }
  /* карусель лотов в первом экране главной: плавно меняется только прозрачность, без пересчёта раскладки */
  .hx-stage__card { transition-property: opacity, rotate, scale !important; }
  /* наши рисунки на телефоне не парят (сейф, герои карточек и афиш, картинки пустых состояний) — меньше работы в простое */
  .hx-stage__vault, .ax__hero, .gx-back__hero, .pg-empty__art { animation: none !important; }

  /* длинные страницы: что ниже первых экранов, браузер раскладывает и рисует, только когда до него долистали */
  main > .hx-section ~ .hx-section ~ .hx-section, .ct-info, .footer { content-visibility: auto; contain-intrinsic-size: auto 640px; }
  .footer { contain-intrinsic-size: auto 1100px; }   /* с пейзажем сверху подвал выше — иначе полоса прокрутки прыгала */

  /* ---------- Липкие полосы под шапкой: шапка уехала — они поднимаются к краю ---------- */
  .set-nav { top: calc(var(--nav-offset) + 8px); transition: top .22s ease; }

  /* ---------- Подвал: компактнее, ссылки — удобные для пальца ---------- */
  .footer { padding: 36px 0 20px; }
  .footer__inner { gap: 26px; }
  .footer__legal a, .footer__col a { display: inline-block; padding: 6px 0; font-size: 15px; }
  .footer__links { gap: 22px 28px; }
  .footer__bar { margin-top: 26px; padding: 16px 0; flex-wrap: wrap; gap: 12px; }
}

/* ---------- Каталог ---------- */
.ct-mfbtn { display: none; }
@media (max-width: 760px) {
  .ct { padding-top: 14px; }
  .ct-crumbs { margin-bottom: 12px; }
  .ct-crumbs ol { display: none; }                  /* на телефоне путь — одной кнопкой «‹ Назад» */
  .ct-back { height: 36px; }
  .ct-head { gap: 12px; align-items: center; }
  .ct-head__icon { margin-top: 0; }
  .ct-head__tile { width: 44px; height: 44px; border-radius: 13px; }
  .ct-title { font-size: 24px; line-height: 1.12; }
  .ct-desc { margin-top: 10px; font-size: 14px; }
  .ct-desc:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
  /* гарантии — одной строкой с прокруткой */
  .ct-trust { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px; gap: 16px; }
  .ct-trust::-webkit-scrollbar { display: none; }
  .ct-trust li { flex: none; white-space: nowrap; font-size: 12.5px; }
  .ct .ct-mnav:not([hidden]) { margin: 0 -16px; }   /* строка разделов под поиском — от края до края */
  .ct .ct-mnav .cat-chip { height: 40px; padding: 0 14px; font-size: 14px; }
  .ct-tools { margin-top: 14px; gap: 10px; }
  .ct-search input { height: 46px; border-radius: 13px; }
  .ct-filters { display: none; }                    /* фильтры — в шторке по кнопке «Фильтры» */
  .msheet .ct-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* пилюли (пакеты UC, звёзды) — одной строкой с прокруткой */
  .ct-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .ct-pills::-webkit-scrollbar { display: none; }
  .ct-pill { flex: none; height: 38px; }
  /* строка: «Фильтры», сортировка, вид; число лотов — над ней */
  .ct-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 14px 0 12px; }
  .ct-count { font-size: 18px; }
  .ct-bar__right { flex-wrap: nowrap; gap: 8px; min-width: 0; }
  .ct-mfbtn {
    flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--glass); color: var(--txt);
    font: 700 14.5px/1 var(--font-body, inherit); cursor: pointer;
  }
  .ct-mfbtn > span:first-child { display: grid; color: var(--txt-2); }
  .ct-mfbtn.is-on { border-color: var(--acc); }
  .ct-mfbtn__n {
    min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px;
    display: inline-grid; place-items: center; background: var(--acc); color: #fff; font-size: 12px;
  }
  .ct-mfbtn__n[hidden] { display: none; }
  .ct-sort { flex: 1 1 auto; min-width: 0; }
  .ct-sort > span { display: none; }
  .ct-sort select { width: 100%; height: 42px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ct-view { flex: none; }
  .ct-view__b { height: 34px; padding: 0 10px; }
  .ct-view__b > .ct-view__t { display: none; }      /* на телефоне — только значки (правило 560px в catalog.css не срабатывало) */
}
@media (max-width: 420px) {
  /* узкий телефон: «Фильтры» — одним значком (с числом включённых), чтобы сортировка читалась */
  .ct-mfbtn { padding: 0 12px; }
  .ct-mfbtn__t { display: none; }
}
@media (max-width: 760px) {
  /* шторка фильтров: всё во всю ширину, окошко цены раскрыто */
  .msheet--filters .ct-fbtn, .msheet--filters .ct-fsel { width: 100%; height: 48px; justify-content: flex-start; }
  .msheet--filters .ct-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .msheet--filters .ct-dd > * { min-width: 0; }
  .msheet--filters .ct-dd > summary { pointer-events: none; border: 0; background: none; height: auto; padding: 4px 2px 0; }
  .msheet--filters .ct-dd .ct-chev { display: none; }
  .msheet--filters .ct-dd__pop { position: static; width: auto; padding: 12px; box-shadow: none; }
  .msheet--filters .ct-dd__row input { height: 46px; }
  .msheet--filters .ct-reset { justify-self: start; padding: 8px 2px; }
  .ct-mfgo {
    width: 100%; height: 50px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--grad); color: #fff; font: 800 16px/1 var(--font-body, inherit);
  }

  /* карточка лота: фото слева, название и описание справа; характеристики, продавец и цена — ниже во всю ширину */
  .ct-grid { gap: 10px; }
  .ct-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding: 12px; border-radius: 16px; }
  .ct-card > * { grid-column: 1 / -1; min-width: 0; }
  .ct-card__media { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 96px; aspect-ratio: 1; border-radius: 12px; }
  .ct-card__top { grid-column: 2; grid-row: 1; gap: 6px; }
  .ct-card__desc { grid-column: 2; grid-row: 2; align-self: start; font-size: 13px; }
  .ct-card__title, .ct-card.is-stats .ct-card__title { font-size: 15px; line-height: 1.3; }
  .ct-card__fast { width: 20px; height: 20px; border-radius: 6px; }
  .ct-card__fast svg { width: 12px; height: 12px; }
  /* «в избранное» — в углу фото, как на главной */
  .ct-card .lcard__fav { position: absolute; top: 16px; left: 76px; width: 30px; height: 30px; background: rgba(0, 0, 0, .55); }
  .ct-card__ph img { width: 52px; height: 52px; border-radius: 15px; }
  .ct-card__ph b { font-size: 22px; }
  .ct-card__badges { left: 5px; top: auto; bottom: 5px; gap: 4px; }
  .ct-badge { padding: 3px 7px; font-size: 10.5px; }
  .ct-card__badges .ct-badge + .ct-badge { display: none; }
  .ct-card__pics { display: none; }
  .ct-card__attrs li { padding: 5px 9px; font-size: 12.5px; }
  .ct-card__seller { margin-top: 0; }
  .ct-card__price { font-size: 20px; }
  .ct-card__buy { padding: 10px 18px; font-size: 14px; }
  .ct-card:hover .ct-card__media > img { transform: none; }
  /* «Показать ещё» вместо страниц */
  .ct-more {
    width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line-hi); background: var(--glass);
    color: var(--txt); font: 700 15px/1 var(--font-body, inherit); cursor: pointer;
  }
  .ct-more span { color: var(--txt-3); font-weight: 600; }
  .ct-info { margin-top: 32px; padding: 22px 16px; border-radius: 20px; }
}

/* ---------- Страница лота: полоска «Купить» снизу, «Поделиться» ---------- */
.pdp-mbar { display: none; }
.pdp-share {
  margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass); color: var(--txt-2);
}
.pdp-share:hover { color: var(--txt); border-color: var(--line-hi); }
@media (max-width: 760px) {
  .pdp-mbar {
    position: fixed; left: 0; right: 0; bottom: var(--mnav-space); z-index: 790;
    display: flex; align-items: center; gap: 10px; box-sizing: border-box;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg-1); border-top: 1px solid var(--line);
    transform: translateY(calc(100% + var(--mnav-space))); transition: transform .22s ease;
  }
  .pdp-mbar.is-on { transform: none; }
  html.kb-open .pdp-mbar, html.m-locked .pdp-mbar { visibility: hidden; }
  html.has-mbar body { padding-bottom: calc(var(--mnav-space) + 68px); }
  .pdp-mbar__price { flex: 1; min-width: 0; display: grid; gap: 2px; }
  .pdp-mbar__sum { font: 800 21px/1.1 var(--font-display, inherit); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-mbar__price small { color: var(--txt-3); font-size: 12px; font-weight: 600; }
  .pdp-mbar__chat {
    flex: none; width: 48px; height: 48px; border-radius: 14px; cursor: pointer;
    display: grid; place-items: center; border: 1px solid var(--line-hi); background: var(--glass); color: var(--txt);
  }
  .pdp-mbar__chat svg { width: 21px; height: 21px; }
  .pdp-mbar__buy {
    flex: none; height: 48px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--grad); color: #fff; font: 800 16px/1 var(--font-body, inherit);
  }
  .pdp-mbar__buy:active, .pdp-mbar__chat:active { transform: scale(.97); }
  /* характеристики — в две колонки: восемь строк по одной занимали полтора экрана */
  .pdp-attrs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pdp-attrs div { padding: 10px 12px; }
  .pdp-attrs dd { overflow-wrap: anywhere; }
}

/* ---------- Окно оплаты (и правки лота) — шторкой снизу ---------- */
.co-grab { display: none; }
@media (max-width: 760px) {
  .co-modal[data-open="1"] { align-items: flex-end; }
  .co-modal__body {
    width: 100%; max-width: none; max-height: calc(100dvh - 24px); margin: 0; box-sizing: border-box;
    border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
    animation: co-sheet .26s cubic-bezier(.2, .8, .2, 1);
  }
  @keyframes co-sheet { from { transform: translateY(100%); } to { transform: none; } }
  .co-grab { display: block; flex: none; width: 40px; height: 5px; margin: 0 auto -4px; border-radius: 3px; background: var(--line-hi); }
  .co-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .co-modal__title { font-size: 20px; }
  .co-btn { padding: 15px 20px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .co-modal__body { animation: none; } }

/* ---------- Мои лоты: главное действие и «⋯», остальное — шторкой ---------- */
@media (max-width: 760px) {
  .ml-row {
    grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: 'thumb main side' 'ctl ctl more';
    gap: 10px 12px; padding: 12px; align-items: start;
  }
  .ml-row > .ml-thumb { grid-area: thumb; width: 52px; height: 52px; border-radius: 13px; }
  .ml-main { grid-area: main; }
  .ml-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.3; }
  .ml-meta { font-size: 12.5px; line-height: 1.4; }
  .ml-offers { display: block; margin: 2px 0 0; }
  .ml-side { grid-area: side; }
  .ml-ctl { grid-area: ctl; justify-content: flex-start; flex-wrap: nowrap; min-width: 0; align-self: center; }
  .ml-ctl > :not(.ml-ctl__main) { display: none; }
  .ml-ctl__main { height: 40px; display: inline-flex !important; align-items: center; padding: 0 16px !important; font-size: 13.5px !important; }
  .ml-more {
    grid-area: more; display: grid; place-items: center; width: 46px; height: 40px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--line-hi); background: var(--glass); color: var(--txt);
  }
  .ml-panel { grid-column: 1 / -1; }
}
/* шторка действий — те же кнопки, списком во всю ширину */
.msheet--acts .ml-acts { display: grid; gap: 8px; }
.msheet--acts .ml-acts > * {
  display: flex !important; align-items: center; justify-content: flex-start; width: 100%; height: 52px; box-sizing: border-box;
  padding: 0 16px !important; border-radius: 14px !important; font-size: 15px !important; text-decoration: none;
}

/* ---------- Кабинет: баланс, дашборд, профиль продавца ---------- */
@media (max-width: 760px) {
  .bal-hero { padding: 22px 20px; }
  .bal-hero__val { font-size: 40px; letter-spacing: -.03em; overflow-wrap: anywhere; }
  /* способ оплаты: значки слева, название и подпись справа — не налезают друг на друга */
  .bal-shell .pm-tile {
    display: grid; grid-template-columns: 124px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
    align-items: center; text-align: left; padding: 12px 14px;
  }
  .bal-shell .pm-tile__ico { grid-row: 1 / span 2; min-width: 0; flex-wrap: nowrap; }
  .bal-shell .pm-tile__name { align-self: end; }
  .bal-shell .pm-tile__sub { align-self: start; }
  .bal-shell .pm-brand { padding: 0 6px; font-size: 10px; }
  .bal-shell .pm-brand--mc { padding-right: 19px; }
  /* дашборд: крупные суммы в две колонки не переносятся посреди числа */
  .dash-tile { padding: 16px !important; }
  .dash-tile__ico { width: 34px; height: 34px; margin-bottom: 4px; }
  .dash-tile__val { font-size: clamp(16px, 4.6vw, 24px) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .promo-row { grid-template-columns: minmax(0, 1fr) auto !important; }
  /* профиль продавца: блок открытых претензий — текст во всю ширину, «Проиграно…» отдельной строкой */
  .sp-claims { flex-wrap: wrap; }
  .sp-claims__body { flex: 1 1 calc(100% - 56px); }
  .sp-claims__lost { position: static; flex: 1 1 100%; margin-top: 0; }
  .sp-claims__body b { font-size: 17px; }
}

/* ---------- Сообщения: ветка на весь экран телефона ---------- */
@media (max-width: 760px) {
  /* список — между шапкой и нижней панелью; открытая ветка — весь экран, со своей шапкой и полем ввода */
  body.page-chats:has(.chx.is-thread) { padding-bottom: 0; }
  body.page-chats:has(.chx.is-thread) .mnav,
  body.page-chats:has(.chx.is-thread) > .nav,
  body.page-chats:has(.chx.is-thread) > .mt-bar { display: none; }
  /* выбор сделки над полем — одной строкой */
  .cp-target { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Keep language selection accessible to guests and members on phones. */
.nav .nav__actions > .hd-lang { display:inline-flex; }
@media (max-width:720px) { .nav .hd-lang { padding:2px; gap:1px; } .nav .hd-lang button { min-width:27px; height:30px; padding:0 5px; font-size:11px; } }
