.exchange-den {
  --xd-red: #d21426;
  --xd-red-dark: #740914;
  --xd-paper: #f1ede7;
  --xd-muted: #8f8585;
  --xd-line: #3b171d;
  min-height: 100%;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--xd-paper);
  background: #070707;
  font-family: Outfit, system-ui, sans-serif;
}

#app-container.exchange-view-open {
  background: #070707;
  box-shadow: none;
}

.exchange-view-open .app-header { display: none; }
.exchange-view-open .app-main { padding: 0 !important; }
.exchange-view-open .exchange-den {
  gap: 0 !important;
  min-height: 100dvh;
  overflow: visible;
}
.exchange-view-open .exchange-den::after { display: none; }

.xd-topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--xd-line);
  background: rgba(7, 7, 7, .96);
}

.xd-back,
.xd-mark {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  color: var(--xd-paper);
  background: transparent;
  font: 700 12px/1 ui-monospace, monospace;
  letter-spacing: .04em;
}

.xd-back { justify-self: start; }
.xd-mark {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 54px;
  padding: 0;
  border-left: 1px solid var(--xd-line);
  color: var(--xd-red);
  font-size: 18px;
  font-style: italic;
}

.xd-topbar-name {
  color: #b3a8a8;
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: .16em;
}

.xd-layout {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(360px, 56fr);
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 54px);
  margin: 0 auto;
}

.xd-visual {
  position: sticky;
  top: 54px;
  align-self: start;
  height: calc(100vh - 54px);
  margin: 0;
  border-right: 1px solid var(--xd-line);
  overflow: hidden;
  background: #0b0607;
}

.xd-visual img {
  display: block;
  width: 100%;
  height: calc(100% - 66px);
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(.92) contrast(1.04);
}

.xd-visual figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  padding: 12px 18px;
  border-top: 1px solid var(--xd-line);
  background: #090909;
}

.xd-visual figcaption strong { font-size: 13px; }
.xd-visual figcaption span {
  color: var(--xd-muted);
  font: 500 9px/1.3 ui-monospace, monospace;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.xd-ledger { min-width: 0; }

.xd-intro,
.xd-service { padding: 26px; }

.xd-intro { border-bottom: 1px solid var(--xd-line); }
.xd-index,
.xd-service-head span {
  margin: 0 0 12px;
  color: var(--xd-red);
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: .13em;
}

.xd-intro h1 {
  margin: 0 0 12px;
  font: 800 clamp(36px, 6vw, 70px)/.9 Syne, sans-serif;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.xd-intro > p:last-child {
  max-width: 510px;
  margin: 0;
  color: #a99f9f;
  font-size: 13px;
  line-height: 1.5;
}

.xd-balances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--xd-line);
}

.xd-balances > div {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid var(--xd-line);
}

.xd-balances > div:last-child { border-right: 0; }
.xd-balances span {
  display: block;
  margin-bottom: 7px;
  color: var(--xd-muted);
  font: 600 9px/1 ui-monospace, monospace;
  text-transform: uppercase;
}

.xd-balances b {
  display: block;
  overflow: hidden;
  color: var(--xd-paper);
  font-size: 19px;
  text-overflow: ellipsis;
}

.xd-market {
  padding: 26px;
  border-bottom: 1px solid var(--xd-line);
  background: #090707;
}

.xd-market-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 18px;
}

.xd-market-head > div:first-child > span {
  display: block;
  margin-bottom: 8px;
  color: var(--xd-red);
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.xd-market-head h2 {
  margin: 0;
  font: 800 clamp(25px, 3.4vw, 42px)/.95 Syne, sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.xd-market-head p {
  max-width: 470px;
  margin: 10px 0 0;
  color: var(--xd-muted);
  font-size: 11px;
  line-height: 1.45;
}

.xd-market-clock {
  min-width: 142px;
  padding-left: 18px;
  border-left: 1px solid var(--xd-line);
  text-align: right;
}

.xd-market-clock span,
.xd-market-clock b { display: block; }
.xd-market-clock span {
  margin-bottom: 8px;
  color: var(--xd-muted);
  font: 600 9px/1 ui-monospace, monospace;
  text-transform: uppercase;
}
.xd-market-clock b {
  color: var(--xd-red);
  font: 800 18px/1 ui-monospace, monospace;
  letter-spacing: -.03em;
}

.xd-market-offers {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, .75fr);
  grid-template-rows: repeat(2, minmax(164px, auto));
  gap: 1px;
  border: 1px solid var(--xd-line);
  background: var(--xd-line);
}

.xd-market-offers > :first-child { grid-row: 1 / 3; }

.xd-market-offers.is-empty {
  display: block;
  border-color: var(--xd-line);
  background: #0a0a0a;
}

.xd-offer,
.xd-offer-skeleton {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #0b0b0b;
}

.xd-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  min-height: 164px;
}

.xd-market-offers > .xd-offer:first-child {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(150px, 1fr) auto;
}

.xd-offer-skeleton { min-height: 164px; }
.xd-market-offers > .xd-offer-skeleton:first-child { min-height: 329px; }

@media (prefers-reduced-motion: no-preference) {
  .xd-offer-skeleton { animation: xd-market-pulse 1.1s ease-in-out infinite alternate; }
}

@keyframes xd-market-pulse {
  from { opacity: .48; }
  to { opacity: .9; }
}

.xd-offer-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--xd-line);
  background: #16080a;
}

.xd-market-offers > .xd-offer:first-child .xd-offer-media {
  order: -1;
  min-height: 150px;
  border-bottom: 1px solid var(--xd-line);
  border-left: 0;
}

.xd-offer-media img,
.xd-offer-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xd-offer-code {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 122px;
  place-items: center;
  color: #6e2029;
  font: 900 clamp(27px, 5vw, 64px)/1 Syne, sans-serif;
  letter-spacing: -.08em;
  text-transform: uppercase;
}

.xd-offer-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
}

.xd-offer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--xd-muted);
  font: 700 9px/1 ui-monospace, monospace;
  text-transform: uppercase;
}

.xd-offer-meta b { color: var(--xd-red); font-weight: 800; }
.xd-offer h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.05;
}
.xd-market-offers > .xd-offer:first-child h3 { font-size: 24px; }
.xd-offer-subtitle {
  margin: 0 0 9px;
  color: #c2b7b7;
  font-size: 11px;
  line-height: 1.3;
}
.xd-offer-description {
  margin: 0 0 15px;
  color: var(--xd-muted);
  font-size: 10px;
  line-height: 1.4;
}
.xd-offer-buy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid var(--xd-red);
  border-radius: 0;
  color: var(--xd-paper);
  background: var(--xd-red);
  text-align: left;
  text-transform: uppercase;
}
.xd-offer-buy span { font: 800 10px/1 ui-monospace, monospace; }
.xd-offer-buy b { font: 800 14px/1 Syne, sans-serif; white-space: nowrap; }
.xd-offer-buy:active { transform: translateY(1px); background: #a50e1c; }
.xd-offer-buy.is-sold,
.xd-offer-buy.is-bought {
  border-color: #35282a;
  color: #847879;
  background: #151112;
}

.xd-market-note {
  min-height: 16px;
  margin-top: 12px;
  color: var(--xd-muted);
  font: 600 9px/1.4 ui-monospace, monospace;
}

.xd-market-empty {
  padding: 24px;
  color: var(--xd-muted);
  font-size: 12px;
  line-height: 1.5;
}

.xd-service { border-bottom: 1px solid var(--xd-line); }
.xd-service-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.xd-service-head span { display: block; margin-bottom: 7px; }
.xd-service-head h2 { margin: 0; font-size: 19px; line-height: 1.1; }
.xd-service-head > b {
  color: var(--xd-red);
  font: 800 17px/1 Syne, sans-serif;
  white-space: nowrap;
}

.xd-quote-row {
  display: grid;
  grid-template-columns: 1fr minmax(90px, 150px) auto;
  align-items: center;
  min-height: 54px;
  border-block: 1px solid var(--xd-line);
}

.xd-quote-row label,
.xd-quote-row span { color: var(--xd-muted); font-size: 12px; }
.xd-quote-row span { padding-left: 12px; }
.xd-quote-row input,
.xd-custom-buy input {
  width: 100%;
  border: 0;
  border-inline: 1px solid var(--xd-line);
  border-radius: 0;
  outline: 0;
  color: var(--xd-paper);
  background: #0d0d0d;
  font: 700 18px/1 ui-monospace, monospace;
  text-align: center;
}
.xd-quote-row input { height: 52px; }

.xd-quick { display: grid; grid-template-columns: repeat(4, 1fr); }
.xd-quick button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--xd-line);
  border-bottom: 1px solid var(--xd-line);
  border-radius: 0;
  color: #c6bcbc;
  background: #0a0a0a;
  font: 700 11px/1 ui-monospace, monospace;
}
.xd-quick button:first-child { border-left: 1px solid var(--xd-line); }

.xd-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.xd-result span { color: var(--xd-muted); font-size: 12px; }
.xd-result strong { color: var(--xd-red); font-size: 19px; }

.xd-primary,
.xd-custom-buy button {
  min-height: 50px;
  border: 1px solid var(--xd-red);
  border-radius: 0;
  color: #fff;
  background: var(--xd-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.xd-primary { width: 100%; }

.xd-spin-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--xd-line); }
.xd-spin-grid button {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 76px;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--xd-line);
  border-radius: 0;
  color: var(--xd-paper);
  background: #0b0b0b;
  text-align: left;
}
.xd-spin-grid button:last-child { border-right: 0; }
.xd-spin-grid span { color: #b1a6a6; font-size: 11px; }
.xd-spin-grid b { color: var(--xd-red); font: 800 17px/1 Syne, sans-serif; }

.xd-custom-buy {
  display: grid;
  grid-template-columns: 1fr 110px 140px;
  align-items: stretch;
  margin-top: 12px;
  border: 1px solid var(--xd-line);
}
.xd-custom-buy label { align-self: center; padding: 0 14px; color: var(--xd-muted); font-size: 11px; }
.xd-custom-buy input { min-height: 48px; }
.xd-custom-buy button { min-height: 48px; border-width: 0 0 0 1px; font-size: 10px; }

.xd-forge { background: #080707; }
.xd-forge-head > b { color: #fff; background: var(--xd-red); }
.xd-forge-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--xd-line);
}
.xd-forge-rates > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--xd-line);
  background: #0b0b0b;
}
.xd-forge-rates > div:last-child { border-right: 0; }
.xd-forge-rates span,
.xd-forge-rates b { display: block; }
.xd-forge-rates span { margin-bottom: 8px; color: var(--xd-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.xd-forge-rates b { color: var(--xd-red); font: 800 16px/1 Syne, sans-serif; }
.xd-forge-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
  border-block: 1px solid var(--xd-line);
}
.xd-forge-ledger > div { min-width: 0; padding: 12px 10px; border-right: 1px solid var(--xd-line); }
.xd-forge-ledger > div:last-child { border-right: 0; }
.xd-forge-ledger span,
.xd-forge-ledger b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-forge-ledger span { margin-bottom: 5px; color: var(--xd-muted); font-size: 9px; text-transform: uppercase; }
.xd-forge-ledger b { color: var(--xd-paper); font: 700 12px/1.2 ui-monospace, monospace; }
.xd-forge-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 430px;
  overflow-y: auto;
  gap: 1px;
  border: 1px solid var(--xd-line);
  background: var(--xd-line);
  scrollbar-width: thin;
  scrollbar-color: var(--xd-red-dark) #090909;
}
.xd-forge-cards > .xd-empty { grid-column: 1 / -1; }
.xd-forge-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--xd-paper);
  background: #090909;
  text-align: left;
}
.xd-forge-card.is-selected { z-index: 1; box-shadow: inset 0 0 0 2px var(--xd-red); background: #17080a; }
.xd-forge-media {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 118px;
  overflow: hidden;
  border-bottom: 1px solid var(--xd-line);
  color: #72202a;
  background: #14080a;
  font: 900 42px/1 Syne, sans-serif;
}
.xd-forge-media img,
.xd-forge-media video { width: 100%; height: 100%; object-fit: cover; }
.xd-forge-card-copy { min-width: 0; padding: 11px 8px 12px 10px; }
.xd-forge-card-copy strong,
.xd-forge-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-forge-card-copy strong { margin-bottom: 5px; font-size: 11px; }
.xd-forge-card-copy small { color: var(--xd-muted); font-size: 9px; }
.xd-forge-card > b { align-self: center; padding: 0 10px 0 0; color: var(--xd-red); font: 800 11px/1 ui-monospace, monospace; }
.xd-forge-rule { margin: 12px 0; color: #817778; font-size: 10px; line-height: 1.45; }
.xd-forge-actions { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--xd-red); }
.xd-forge-actions button {
  min-width: 0;
  min-height: 52px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.xd-forge-burn { color: #fff; background: #13090a; }
.xd-forge-craft { border-left: 1px solid var(--xd-red) !important; color: #fff; background: var(--xd-red); }
.xd-forge-status { min-height: 15px; margin-top: 12px; color: var(--xd-muted); font: 600 10px/1.45 ui-monospace, monospace; }

.xd-service-note { margin: -7px 0 18px; color: var(--xd-muted); font-size: 11px; line-height: 1.45; }
.xd-theme-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 12px;
  border: 1px solid var(--xd-line);
}
.xd-theme-tools > input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  color: var(--xd-paper);
  background: #0b0b0b;
  font: 600 12px/1 Outfit, sans-serif;
}
.xd-theme-tools > input::placeholder { color: #766c6d; }
.xd-theme-tools > input:focus { box-shadow: inset 0 -2px 0 var(--xd-red); }
.xd-theme-pager { display: grid; grid-template-columns: 42px 58px 42px; border-left: 1px solid var(--xd-line); }
.xd-theme-pager button,
.xd-theme-pager span {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
  border-radius: 0;
  color: var(--xd-paper);
  background: #0b0b0b;
  font: 700 10px/1 ui-monospace, monospace;
}
.xd-theme-pager span { border-inline: 1px solid var(--xd-line); color: var(--xd-muted); }
.xd-theme-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--xd-line);
  border: 1px solid var(--xd-line);
}
.xd-theme-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #0a0a0a;
}
.xd-theme-media { width: 100%; height: 122px; overflow: hidden; background: #16080a; }
.xd-theme-media img,
.xd-theme-media video { width: 100%; height: 100%; object-fit: cover; }
.xd-theme-copy { min-width: 0; padding: 12px; flex: 1; }
.xd-theme-copy strong,
.xd-theme-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-theme-copy strong { margin-bottom: 6px; font-size: 13px; }
.xd-theme-copy span { color: var(--xd-muted); font-size: 10px; }
.xd-theme-sell {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--xd-line);
  border-radius: 0;
  color: var(--xd-paper);
  background: #111;
  font-size: 10px;
  font-weight: 700;
}
.xd-theme-sell b { display: block; margin-top: 6px; color: var(--xd-red); font-size: 14px; }
.xd-empty { padding: 22px; color: var(--xd-muted); background: #0a0a0a; font-size: 12px; line-height: 1.5; }
.xd-status { min-height: 18px; padding: 16px 26px; color: var(--xd-muted); font: 600 10px/1.4 ui-monospace, monospace; }

.xd-back:active,
.xd-quick button:active,
.xd-spin-grid button:active,
.xd-forge-card:active,
.xd-forge-burn:active,
.xd-theme-sell:active { color: #fff; background: var(--xd-red-dark); }
.xd-primary:active,
.xd-forge-craft:active,
.xd-custom-buy button:active { transform: translateY(1px); background: #a50e1c; }
.exchange-den button:disabled { opacity: .45; pointer-events: none; }

@media (max-width: 720px) {
  .xd-topbar { grid-template-columns: 1fr auto 44px; }
  .xd-back { padding: 0 14px; }
  .xd-topbar-name { font-size: 8px; }
  .xd-mark { width: 44px; }
  .xd-layout { display: block; min-height: 0; }
  .xd-visual {
    position: relative;
    top: auto;
    display: grid;
    grid-template-rows: auto auto;
    width: 100%;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--xd-line);
  }
  .xd-visual img {
    width: 100% !important;
    max-width: none !important;
    height: clamp(250px, 64vw, 360px) !important;
    object-fit: cover !important;
    object-position: 50% 27%;
  }
  .xd-visual figcaption { min-height: 58px; padding: 10px 14px; }
  .xd-intro, .xd-service { padding: 22px 18px; }
  .xd-intro h1 { font-size: clamp(42px, 13vw, 54px); }
  .xd-balances > div { padding: 14px 12px; }
  .xd-balances b { font-size: 16px; }
  .xd-market { padding: 22px 18px; }
  .xd-market-head { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .xd-market-clock { min-width: 0; padding: 12px 0 0; border-top: 1px solid var(--xd-line); border-left: 0; text-align: left; }
  .xd-market-clock span, .xd-market-clock b { display: inline; }
  .xd-market-clock span { margin-right: 10px; }
  .xd-market-offers { display: block; }
  .xd-offer,
  .xd-market-offers > .xd-offer:first-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 180px auto;
    min-height: 0;
    border-bottom: 1px solid var(--xd-line);
  }
  .xd-offer .xd-offer-media,
  .xd-market-offers > .xd-offer:first-child .xd-offer-media {
    order: -1;
    width: 100%;
    min-height: 0;
    height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--xd-line);
    border-left: 0;
  }
  .xd-offer .xd-offer-media.is-code,
  .xd-market-offers > .xd-offer:first-child .xd-offer-media.is-code {
    height: 82px;
    background: #18080b;
  }
  .xd-offer.is-code-offer,
  .xd-market-offers > .xd-offer:first-child.is-code-offer {
    grid-template-rows: 82px auto;
  }
  .xd-offer-code {
    min-height: 0;
    padding: 8px 14px;
    color: #8d2631;
    font-size: clamp(34px, 13vw, 54px);
    letter-spacing: -.06em;
    white-space: nowrap;
  }
  .xd-market-offers > .xd-offer:last-child { border-bottom: 0; }
  .xd-offer-skeleton, .xd-market-offers > .xd-offer-skeleton:first-child { min-height: 260px; border-bottom: 1px solid var(--xd-line); }
  .xd-offer-body { padding: 14px; }
  .xd-market-offers > .xd-offer:first-child h3 { font-size: 21px; }
  .xd-spin-grid { grid-template-columns: 1fr; }
  .xd-spin-grid button { min-height: 60px; border-right: 0; border-bottom: 1px solid var(--xd-line); }
  .xd-spin-grid button:last-child { border-bottom: 0; }
  .xd-custom-buy { grid-template-columns: 1fr 100px; }
  .xd-custom-buy label { grid-column: 1 / -1; min-height: 38px; border-bottom: 1px solid var(--xd-line); }
  .xd-custom-buy button { min-width: 0; }
  .xd-forge-rates { grid-template-columns: 1fr; }
  .xd-forge-rates > div { display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--xd-line); }
  .xd-forge-rates > div:last-child { border-bottom: 0; }
  .xd-forge-rates span { margin-bottom: 0; }
  .xd-forge-ledger { grid-template-columns: 1fr 1fr; }
  .xd-forge-ledger > div:nth-child(2) { border-right: 0; }
  .xd-forge-ledger > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--xd-line); text-align: right; }
  .xd-forge-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 390px; }
  .xd-forge-media { height: 108px; }
  .xd-forge-actions { grid-template-columns: 1fr; }
  .xd-forge-craft { border-top: 1px solid var(--xd-red) !important; border-left: 0 !important; }
  .xd-theme-tools { grid-template-columns: 1fr; }
  .xd-theme-pager { min-height: 42px; grid-template-columns: 1fr 74px 1fr; border-top: 1px solid var(--xd-line); border-left: 0; }
  .xd-theme-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xd-theme-media { height: 104px; }
  .xd-theme-copy { padding: 10px; }
  .xd-theme-copy strong { font-size: 12px; }
  .xd-theme-copy span { font-size: 9px; }
  .xd-theme-sell { min-height: 44px; text-align: right; }
  .xd-theme-sell b { display: inline; margin-left: 8px; }
  .xd-status { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .exchange-den * { scroll-behavior: auto !important; transition: none !important; }
}
