/* Тема «Кошелёк (B)»: Биржа (panel/auth/exchange). Разметка и JS модуля без изменений —
 * здесь только перекрытие assets/panel/css/exchange.css и HUD. Mobile-first: база = телефон 360–430px. */

html.dark.lk-theme-wallet .lk-exch {
  --ex-surface: #1d1e23;
  --ex-row: #26272c;
  --ex-border: #3a3b42;
  --ex-border-soft: #2c2d33;
  --ex-text: #ececee;
  --ex-dim: #a6a7ad;
  --ex-accent: #f2b94b;
  --ex-accent-2: #ffd27a;
  --ex-ok: #7fd6a3;
  --ex-danger: #ff8f86;
  --lk-b-ex-radius: 18px;
  font-family:"Onest", "Segoe UI", system-ui, sans-serif !important;
  font-size:15px !important;
  color:#ececee !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Линейки-разделители HUD в B не нужны: отступы задаёт gap */
html.dark.lk-theme-wallet .lk-exch__rule { display: none !important; }

/* ---------- Шапка: заголовок, справка, статистика ---------- */
html.dark.lk-theme-wallet .lk-exch__hero {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding:18px !important;
  border-radius:22px !important;
  border:1px solid #2c2d33 !important;
  box-shadow:none !important;
  background:#1d1e23 !important;
}
html.dark.lk-theme-wallet .lk-exch__hero-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
html.dark.lk-theme-wallet .lk-exch__title {
  margin: 0;
  font-family:"Unbounded", "Onest", sans-serif !important;
  font-size:24px !important;
  font-weight:700 !important;
  line-height: 1.15;
  color:#ececee !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
html.dark.lk-theme-wallet .lk-exch__lead,
html.dark.lk-theme-wallet .lk-exch__howto,
html.dark.lk-theme-wallet .lk-exch__fee {
  margin: 0;
  color:#a6a7ad !important;
  font-size:14px !important;
  line-height: 1.5;
  max-width: 72ch;
}
html.dark.lk-theme-wallet .lk-exch__fee b,
html.dark.lk-theme-wallet .lk-exch__fee strong { color: #f2b94b; }

html.dark.lk-theme-wallet .lk-exch__help-btns { display: flex; flex-wrap: wrap; gap: 6px; }
html.dark.lk-theme-wallet .lk-exch__help-btn {
  min-height: 40px;
  padding:8px 14px !important;
  border-radius:999px !important;
  border:0 !important;
  background:#26272c !important;
  color:#ececee !important;
  font: inherit;
  font-size:14px !important;
  font-weight:600 !important;
  cursor: pointer;
}
html.dark.lk-theme-wallet .lk-exch__help-btn:hover { background: #2c2d33; }

/* Статистика: на телефоне — плитки 2×2 */
html.dark.lk-theme-wallet .lk-exch__meta {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: 100%;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  gap: 8px;
}
html.dark.lk-theme-wallet .lk-exch__stats-title {
  font-size:12px !important;
  font-weight:700 !important;
  letter-spacing:0.06em !important;
  color:#a6a7ad !important;
}
html.dark.lk-theme-wallet .lk-exch__stats,
html.dark.lk-theme-wallet .lk-exch__stats-more:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
html.dark.lk-theme-wallet .lk-exch__stats-more[hidden] { display: none !important; }
html.dark.lk-theme-wallet .lk-exch__stats li,
html.dark.lk-theme-wallet .lk-exch__stats-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  padding:12px !important;
  border-radius:14px !important;
  border:0 !important;
  background:#26272c !important;
  font-size:13px !important;
  color:#a6a7ad !important;
}
html.dark.lk-theme-wallet .lk-exch__stats li strong,
html.dark.lk-theme-wallet .lk-exch__stats-balance strong {
  font-size:18px !important;
  font-weight:700 !important;
  color:#ececee !important;
  font-variant-numeric: tabular-nums;
}
html.dark.lk-theme-wallet .lk-exch__stats-balance { background: #2a2416; }
html.dark.lk-theme-wallet .lk-exch__stats-balance strong { color: #f2b94b; }
html.dark.lk-theme-wallet .lk-exch__stats-toggle {
  min-height: 40px;
  border-radius:12px !important;
  border:0 !important;
  background:transparent !important;
  color:#f2b94b !important;
  font: inherit;
  font-size:14px !important;
  font-weight:600 !important;
  text-align: left;
  padding:6px 2px !important;
  cursor: pointer;
}

/* ---------- Вкладки: на телефоне листаются вбок ---------- */
html.dark.lk-theme-wallet .lk-exch__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding:4px !important;
  border-radius:14px !important;
  background:#1d1e23 !important;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
html.dark.lk-theme-wallet .lk-exch__tabs::-webkit-scrollbar { display: none; }
html.dark.lk-theme-wallet .lk-exch__tab {
  flex: 0 0 auto;
  height: auto;
  min-height: 44px;
  max-height: none;
  padding:0 16px !important;
  border-radius:10px !important;
  border:0 !important;
  background:transparent !important;
  color:#a6a7ad !important;
  font-size:15px !important;
  font-weight:600 !important;
}
html.dark.lk-theme-wallet .lk-exch__tab:hover { background: #26272c; color: #ececee; }
html.dark.lk-theme-wallet .lk-exch__tab.is-active,
html.dark.lk-theme-wallet .lk-exch__tab--filter[aria-expanded="true"] {
  background:#2c2d33 !important;
  color:#ececee !important;
  border:0 !important;
}
html.dark.lk-theme-wallet .lk-exch__tab--filter.is-active,
html.dark.lk-theme-wallet .lk-exch__tab--filter[aria-expanded="true"] { color: #f2b94b; }

/* ---------- Фильтры ---------- */
html.dark.lk-theme-wallet .lk-exch__filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding:0 !important;
  border:0 !important;
  border-radius:18px !important;
  background:transparent !important;
}
html.dark.lk-theme-wallet .lk-exch__filters-wrap.is-open .lk-exch__filters {
  padding:14px !important;
  background:#1d1e23 !important;
  border:1px solid #2c2d33 !important;
}
html.dark.lk-theme-wallet .lk-exch__filters input[type="text"] { grid-column: 1 / -1; }
html.dark.lk-theme-wallet .lk-exch__filter-note { grid-column: 1 / -1; color: #a6a7ad; font-size: 13px; }

/* Все поля модуля */
html.dark.lk-theme-wallet .lk-exch input:not([type="checkbox"]):not([type="radio"]),
html.dark.lk-theme-wallet .lk-exch select,
html.dark.lk-theme-wallet .lk-exch textarea {
  min-height: 44px;
  padding:10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid #3a3b42 !important;
  background: #131417 !important;
  color: #ececee !important;
  font: inherit;
  font-size:15px !important;
  box-sizing: border-box;
  max-width: 100%;
}
html.dark.lk-theme-wallet .lk-exch input:focus-visible,
html.dark.lk-theme-wallet .lk-exch select:focus-visible,
html.dark.lk-theme-wallet .lk-exch textarea:focus-visible {
  outline:2px solid #f2b94b !important;
  outline-offset: 1px;
  border-color: #f2b94b !important;
}
html.dark.lk-theme-wallet .lk-exch input::placeholder,
html.dark.lk-theme-wallet .lk-exch textarea::placeholder { color: #6f7077; }

/* ---------- Кнопки ---------- */
html.dark.lk-theme-wallet .lk-exch__btn {
  min-height: 44px;
  padding:10px 16px !important;
  border-radius:12px !important;
  border:0 !important;
  background:#26272c !important;
  color:#ececee !important;
  font: inherit;
  font-size:15px !important;
  font-weight:700 !important;
  gap: 6px;
}
html.dark.lk-theme-wallet .lk-exch__btn:hover { background: #2c2d33; color: #ececee; }
html.dark.lk-theme-wallet .lk-exch__btn--accent {
  background:#f2b94b !important;
  color:#1a1408 !important;
}
html.dark.lk-theme-wallet .lk-exch__btn--accent:hover { background: #ffd27a; color: #1a1408; }
html.dark.lk-theme-wallet .lk-exch__btn--ghost {
  background:transparent !important;
  border:1px solid #3a3b42 !important;
}
html.dark.lk-theme-wallet .lk-exch__btn--danger {
  background:#3a1d1b !important;
  color:#ffd9d5 !important;
  border:0 !important;
}
html.dark.lk-theme-wallet .lk-exch__btn--sm {
  min-height: 40px;
  padding:8px 12px !important;
  font-size:14px !important;
}
html.dark.lk-theme-wallet .lk-exch__btn:focus-visible,
html.dark.lk-theme-wallet .lk-exch__tab:focus-visible,
html.dark.lk-theme-wallet .lk-exch__help-btn:focus-visible {
  outline:2px solid #f2b94b !important;
  outline-offset: 2px;
}
html.dark.lk-theme-wallet .lk-exch__btn[disabled],
html.dark.lk-theme-wallet .lk-exch__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Лоты: без вложенной прокрутки, сетка карточек ---------- */
html.dark.lk-theme-wallet .lk-exch__lots-scroll {
  max-height: none;
  overflow: visible;
  padding:0 !important;
  margin: 0;
}
html.dark.lk-theme-wallet .lk-exch__list--cards {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
html.dark.lk-theme-wallet .lk-exch__card {
  gap: 12px;
  padding:16px !important;
  border-radius:var(--lk-b-ex-radius) !important;
  border:1px solid #2c2d33 !important;
  background:#1d1e23 !important;
}
html.dark.lk-theme-wallet .lk-exch__card:hover { border-color: #3a3b42; }
html.dark.lk-theme-wallet .lk-exch__card--auction { border-color: #4a3d1f; }
html.dark.lk-theme-wallet .lk-exch__card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  padding-top:12px !important;
  border-top:1px solid #2c2d33 !important;
}
html.dark.lk-theme-wallet .lk-exch__price {
  font-family:"Unbounded", "Onest", sans-serif !important;
  font-size:20px !important;
  font-weight:700 !important;
  color:#f2b94b !important;
  font-variant-numeric: tabular-nums;
}
html.dark.lk-theme-wallet .lk-exch__price span { color: #a6a7ad; font-family: "Onest", sans-serif; font-size: 13px; font-weight: 500; }
html.dark.lk-theme-wallet .lk-exch__fee-hint,
html.dark.lk-theme-wallet .lk-exch__muted,
html.dark.lk-theme-wallet .lk-exch__card-meta { color: #a6a7ad; font-size: 13px; }
html.dark.lk-theme-wallet .lk-exch__note {
  margin: 0;
  padding:10px 12px !important;
  border-radius:12px !important;
  background:#26272c !important;
  color:#c9cad0 !important;
  font-size:14px !important;
}

/* Действия карточки: на телефоне на всю ширину */
html.dark.lk-theme-wallet .lk-exch__card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
html.dark.lk-theme-wallet .lk-exch__card-actions form { margin: 0; }
html.dark.lk-theme-wallet .lk-exch__card-actions .lk-exch__btn,
html.dark.lk-theme-wallet .lk-exch__card-actions .lk-exch__order { width: 100%; }
html.dark.lk-theme-wallet .lk-exch__card-actions .lk-exch__offer-form { display: flex; gap: 6px; }
html.dark.lk-theme-wallet .lk-exch__card-actions .lk-exch__offer-form input { flex: 1 1 auto; min-width: 0; }
html.dark.lk-theme-wallet .lk-exch__card-actions .lk-exch__offer-form .lk-exch__btn { width: auto; flex: 0 0 auto; }
html.dark.lk-theme-wallet .lk-exch__order {
  min-height: 48px;
  border-radius:12px !important;
  border:0 !important;
  background:#f2b94b !important;
  color:#1a1408 !important;
  font-weight:700 !important;
}
html.dark.lk-theme-wallet .lk-exch__order:hover { background: #ffd27a; }
html.dark.lk-theme-wallet .lk-exch__order strong { color: #1a1408; }

/* Строка предмета */
html.dark.lk-theme-wallet .lk-exch__line {
  gap: 10px;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  min-width: 0;
}
html.dark.lk-theme-wallet .lk-exch__icon-wrap {
  border-radius:10px !important;
  border:1px solid #2c2d33 !important;
  background:#26272c !important;
  overflow: hidden;
  flex-shrink: 0;
}
html.dark.lk-theme-wallet .lk-exch__icon-wrap.is-aug { border-color: #8a6a2a; }
html.dark.lk-theme-wallet .lk-exch__iname { color: #ececee; font-weight: 600; font-size: 15px; min-width: 0; }
html.dark.lk-theme-wallet .lk-exch__ench { color: #f2b94b; font-weight: 700; }
html.dark.lk-theme-wallet .lk-exch__grade { color: #a6a7ad; }
html.dark.lk-theme-wallet .lk-exch__aug-mark { color: #ffd27a; }
html.dark.lk-theme-wallet .lk-exch__qty { color: #a6a7ad; font-size: 13px; }

/* Чипы и статусы */
html.dark.lk-theme-wallet .lk-exch__chip {
  border-radius:999px !important;
  border:0 !important;
  padding:4px 10px !important;
  background:#26272c !important;
  color:#ececee !important;
  font-size:12px !important;
  font-weight:700 !important;
}
html.dark.lk-theme-wallet .lk-exch__chip--auction { background: #2a2416; color: #f2b94b; }
html.dark.lk-theme-wallet .lk-exch__chip--soft { background: #23263a; color: #c8cffc; }
html.dark.lk-theme-wallet .lk-exch__auction-timer {
  font-variant-numeric: tabular-nums;
  font-weight:700 !important;
  color:#f2b94b !important;
}
html.dark.lk-theme-wallet .lk-exch__status {
  border-radius:999px !important;
  border:0 !important;
  padding:4px 10px !important;
  background:#26272c !important;
  color:#c9cad0 !important;
  font-size:12px !important;
  font-weight:700 !important;
}
html.dark.lk-theme-wallet .lk-exch__status.is-active { background: #173326; color: #bfe9cf; }
html.dark.lk-theme-wallet .lk-exch__status.is-paused { background: #2e2611; color: #f5e3b8; }

/* Чат предложений (polling) */
html.dark.lk-theme-wallet .lk-exch__chat {
  border-radius:14px !important;
  border:1px solid #2c2d33 !important;
  background:#131417 !important;
  padding:10px !important;
}
html.dark.lk-theme-wallet .lk-exch__chat-log { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
html.dark.lk-theme-wallet .lk-exch__chat-msg,
html.dark.lk-theme-wallet .lk-exch__auction-msg-bubble {
  align-self: flex-start;
  max-width: 85%;
  padding:8px 12px !important;
  border-radius:14px 14px 14px 4px !important;
  background:#26272c !important;
  color:#ececee !important;
  font-size:14px !important;
}
html.dark.lk-theme-wallet .lk-exch__chat-form { display: flex; gap: 6px; margin-top: 8px; }
html.dark.lk-theme-wallet .lk-exch__chat-form input { flex: 1 1 auto; min-width: 0; }
html.dark.lk-theme-wallet .lk-exch__offer-user { color: #ffd27a; font-weight: 700; }

/* Пусто, пагинация */
html.dark.lk-theme-wallet .lk-exch__empty {
  padding:28px 18px !important;
  border-radius:18px !important;
  border:1px dashed #3a3b42 !important;
  background:transparent !important;
  color:#a6a7ad !important;
  font-family:inherit !important;
  font-size:14px !important;
}
html.dark.lk-theme-wallet .lk-exch__empty strong { color: #ececee; font-size: 16px; }
html.dark.lk-theme-wallet .lk-exch__pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
html.dark.lk-theme-wallet .lk-exch__pager a,
html.dark.lk-theme-wallet .lk-exch__pager span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius:12px !important;
  background:#26272c !important;
  color:#ececee !important;
  text-decoration: none;
}

/* ---------- Мои лоты, создание лота, история ---------- */
html.dark.lk-theme-wallet .lk-exch__my-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
html.dark.lk-theme-wallet .lk-exch__panel {
  padding:16px !important;
  border-radius:22px !important;
  border:1px solid #2c2d33 !important;
  background:#1d1e23 !important;
  box-shadow:none !important;
}
html.dark.lk-theme-wallet .lk-exch__section-title,
html.dark.lk-theme-wallet .lk-exch__deal-detail-title {
  margin: 0 0 10px;
  font-family:"Onest", sans-serif !important;
  font-size:18px !important;
  font-weight:700 !important;
  color:#ececee !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
html.dark.lk-theme-wallet .lk-exch__section-hint { color: #a6a7ad; font-size: 13px; }
html.dark.lk-theme-wallet .lk-exch__create-head,
html.dark.lk-theme-wallet .lk-exch__create-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
html.dark.lk-theme-wallet .lk-exch__create-submit { width: 100%; }
html.dark.lk-theme-wallet .lk-exch__sale-type-opts { display: flex; flex-wrap: wrap; gap: 6px; }
html.dark.lk-theme-wallet .lk-exch__sale-opt {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding:8px 14px !important;
  border-radius:12px !important;
  background:#26272c !important;
  cursor: pointer;
}

/* Склад для выставления: сетка слотов */
html.dark.lk-theme-wallet .lk-exch__wh-scroll { max-height: 50vh; overflow-y: auto; }
html.dark.lk-theme-wallet .lk-exch__wh-grid {
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
html.dark.lk-theme-wallet .lk-exch__slot {
  border-radius:12px !important;
  border:1px solid #2c2d33 !important;
  background:#26272c !important;
}
html.dark.lk-theme-wallet .lk-exch__slot:hover { border-color: #55565c; }
html.dark.lk-theme-wallet .lk-exch__slot.is-selected,
html.dark.lk-theme-wallet .lk-exch__slot.is-checked { border-color: #f2b94b; background: #2a2416; }
html.dark.lk-theme-wallet .lk-exch__slot-ench { color: #f2b94b; }

/* Списки (история, вывод) */
html.dark.lk-theme-wallet .lk-exch__list {
  border-radius:18px !important;
  border:1px solid #2c2d33 !important;
  background:#1d1e23 !important;
}
html.dark.lk-theme-wallet .lk-exch__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding:14px 16px !important;
  border-bottom:1px solid #2c2d33 !important;
}
html.dark.lk-theme-wallet .lk-exch__row:hover { background: #222328; }
html.dark.lk-theme-wallet .lk-exch__row-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  text-align: left;
}
html.dark.lk-theme-wallet .lk-exch__deal-card {
  border-radius:16px !important;
  border:1px solid #2c2d33 !important;
  background:#1d1e23 !important;
  padding:14px !important;
}
html.dark.lk-theme-wallet .lk-exch__deal-card:hover { border-color: #3a3b42; }
html.dark.lk-theme-wallet .lk-exch__deal-card-price { color: #f2b94b; font-weight: 700; }
html.dark.lk-theme-wallet .lk-exch__deal-label { color: #a6a7ad; }

/* ---------- Модалки: на телефоне — нижний лист ---------- */
html.dark.lk-theme-wallet .lk-exch__help-modal-backdrop,
html.dark.lk-theme-wallet .lk-exch__deal-modal-backdrop { background: rgba(8, 9, 11, 0.72); }
html.dark.lk-theme-wallet .lk-exch__help-modal-panel,
html.dark.lk-theme-wallet .lk-exch__deal-modal-panel,
html.dark.lk-theme-wallet .lk-exch-confirm__panel {
  border-radius:22px 22px 0 0 !important;
  border:1px solid #2c2d33 !important;
  background:#1d1e23 !important;
  color:#ececee !important;
  box-shadow:0 -10px 40px rgba(0, 0, 0, 0.45) !important;
  font-family:"Onest", sans-serif !important;
}
html.dark.lk-theme-wallet .lk-exch__help-close {
  width: 44px;
  height: 44px;
  border-radius:12px !important;
  border:0 !important;
  background:#26272c !important;
  color:#ececee !important;
  font-size:20px !important;
}
html.dark.lk-theme-wallet .lk-exch__help-intro,
html.dark.lk-theme-wallet .lk-exch__help-list { color: #c9cad0; }
html.dark.lk-theme-wallet .lk-exch__help-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding:6px 12px !important;
  border-radius:999px !important;
  background:#26272c !important;
  color:#ececee !important;
  text-decoration: none;
}
html.dark.lk-theme-wallet .lk-exch-confirm__title { font-family: "Onest", sans-serif; font-size: 18px; font-weight: 700; color: #ececee; }
html.dark.lk-theme-wallet .lk-exch-confirm__btn {
  min-height: 48px;
  border-radius:14px !important;
  border:0 !important;
  background:#26272c !important;
  color:#ececee !important;
  font: inherit;
  font-weight:700 !important;
}
html.dark.lk-theme-wallet .lk-exch-confirm__btn--gold { background: #f2b94b; color: #1a1408; }

/* Тосты и подсказка предмета */
html.dark.lk-theme-wallet .lk-exch__toast,
html.dark.lk-theme-wallet .lk-exch-flash {
  border-radius: 14px !important;
  border: 0 !important;
  background: #26272c !important;
  color: #ececee !important;
  font-family:"Onest", sans-serif !important;
  box-shadow:0 10px 30px rgba(0, 0, 0, 0.45) !important;
}
html.dark.lk-theme-wallet .lk-exch__flash.is-ok { background: #173326; color: #e3f6ea; border-radius: 14px; border: 0; }
html.dark.lk-theme-wallet .lk-exch__flash.is-err { background: #3a1d1b; color: #ffd9d5; border-radius: 14px; border: 0; }
html.dark.lk-theme-wallet .lk-exch__tip {
  border-radius: 14px !important;
  border: 1px solid #3a3b42 !important;
  background: #1d1e23 !important;
  color: #ececee !important;
  box-shadow:0 12px 30px rgba(0, 0, 0, 0.5) !important;
}
html.dark.lk-theme-wallet .lk-exch__tip-name { color: #ececee; }
html.dark.lk-theme-wallet .lk-exch__tip-meta,
html.dark.lk-theme-wallet .lk-exch__tip-desc { color: #a6a7ad; }

/* ---------- Планшет и шире ---------- */
@media (min-width: 640px) {
  html.dark.lk-theme-wallet .lk-exch__list--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.dark.lk-theme-wallet .lk-exch__filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.dark.lk-theme-wallet .lk-exch__filters input[type="text"] { grid-column: auto; }
  html.dark.lk-theme-wallet .lk-exch__row { flex-direction: row; align-items: center; justify-content: space-between; }
  html.dark.lk-theme-wallet .lk-exch__row-side { justify-content: flex-end; text-align: right; }
  html.dark.lk-theme-wallet .lk-exch__create-submit { width: auto; }
  html.dark.lk-theme-wallet .lk-exch__help-modal-panel,
  html.dark.lk-theme-wallet .lk-exch__deal-modal-panel,
  html.dark.lk-theme-wallet .lk-exch-confirm__panel { border-radius: 22px; }
}

@media (min-width: 1024px) {
  html.dark.lk-theme-wallet .lk-exch { gap: 18px; }
  html.dark.lk-theme-wallet .lk-exch__hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding:24px !important;
  }
  html.dark.lk-theme-wallet .lk-exch__title { font-size: 28px; }
  html.dark.lk-theme-wallet .lk-exch__meta { flex: 0 1 380px; max-width: 420px; }
  html.dark.lk-theme-wallet .lk-exch__tabs { flex-wrap: wrap; overflow: visible; align-self: flex-start; }
  html.dark.lk-theme-wallet .lk-exch__filters { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  html.dark.lk-theme-wallet .lk-exch__card-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  html.dark.lk-theme-wallet .lk-exch__card-actions .lk-exch__btn,
  html.dark.lk-theme-wallet .lk-exch__card-actions .lk-exch__order { width: auto; }
  html.dark.lk-theme-wallet .lk-exch__card-actions .lk-exch__offer-form { flex: 1 1 220px; }
  html.dark.lk-theme-wallet .lk-exch__my-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html.dark.lk-theme-wallet .lk-exch__panel { padding: 22px; }
}

@media (min-width: 1280px) {
  html.dark.lk-theme-wallet .lk-exch__list--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html.dark.lk-theme-wallet .lk-exch * { transition: none !important; animation: none !important; }
}

/* ---------- Чистовая правка биржи ---------- */
html.dark.lk-theme-wallet .lk-exch__meta,
html.dark.lk-theme-wallet .lk-exch__stats {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 16px !important;
}
html.dark.lk-theme-wallet .lk-exch__stats-title { letter-spacing: 0 !important; text-transform: none !important; font-size: 14px !important; color: #a6a7ad !important; margin-bottom: 8px !important; }
html.dark.lk-theme-wallet .lk-exch__rule { display: none !important; }
