/* xprhub.com/swaps (2026-11-07, redesigned 2026-11-08). The hub's purple look (the same tokens as talks/talks.css, Inter only),
   copied here so this page stands on its own. The memorable part is the swap itself: every listing is "X for Y" with both
   amounts big and a lettered badge per coin, and the Swap form is a widget (you give on top, you get below, an arrow chip
   between). Four views (Market, Swap, My trades, History) in one segmented control: on a phone one view per screen; from
   900 px the Market and the Swap widget sit side by side. Every piece of chain text (names, asks, addresses, transaction
   ids) wraps instead of pushing the page sideways. */
:root {
  --bg: #0d0a17; --panel: #17112a; --panel2: #1e1636; --panel3: #120d22; --well: #0f0b1c; --line: #2e2350;
  --white: #f6f4ff; --muted: #a9a0c9; --purple: #7543e3; --purple-hi: #9b7bff; --live: #4ade80; --bad: #ff8f8f; --warn: #fbbf24;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .btn's display must not bring back a hidden button */
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(117, 67, 227, .28), transparent 60%), var(--bg);
  color: var(--white); font: 16px/1.55 var(--font); min-height: 100vh; overflow-x: hidden;
  display: flex; flex-direction: column;
}
/* the header and footer are the shared ones in /site.css */
main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 32px 20px 48px; flex: 1; }

h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--purple-hi); letter-spacing: .01em; }
.intro h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.intro p { margin: 0; font-size: 17px; color: var(--muted); max-width: 42em; }
.intro p:first-of-type { color: var(--white); }
.intro p.contract { margin-top: 8px; font-size: 14px; }
.intro .hint { margin-top: 10px; }
.hint { color: var(--muted); font-size: 14px; }
.lead { margin: 0 0 14px; color: var(--muted); }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.plain { color: var(--muted); max-width: 72ch; }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 13.5px; }
.wrap, .mono, .who-name { overflow-wrap: anywhere; word-break: break-word; }
.ask { overflow-wrap: break-word; } /* "5.000000 XUSDT" moves to the next line whole; a 64-letter ask still breaks */
.bad { color: var(--bad); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* status chips: a dot and the word */
.tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; color: var(--purple-hi); border: 1px solid var(--line); white-space: nowrap; }
.tag.net { color: #2b1a00; background: var(--warn); border-color: var(--warn); font-size: 11px; }
.tag[class*="st-"]::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.tag.st-0 { color: var(--muted); }
.tag.st-1 { color: var(--live); border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .08); }
.tag.st-2 { color: #ffd58a; border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .08); }
.tag.st-3 { color: #9ff3e6; border-color: rgba(45, 212, 191, .55); background: rgba(45, 212, 191, .08); }
.tag.st-4 { color: var(--bad); border-color: rgba(255, 143, 143, .55); background: rgba(255, 143, 143, .08); }
.tag.closing { color: var(--warn); border-color: rgba(251, 191, 36, .5); }

/* the testnet wallet login and the banners */
.test-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; padding: 10px 14px; font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.test-wallet #who { color: var(--white); font-weight: 700; overflow-wrap: anywhere; }
.banner { margin-top: 16px !important; padding: 10px 14px; font-size: 15px !important; color: var(--warn) !important; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .4); border-radius: 12px; }
.banner.bad { color: var(--bad) !important; background: rgba(255, 143, 143, .08); border-color: rgba(255, 143, 143, .4); }
/* paused: impossible to miss, a full-width amber bar with a warning mark */
.banner.paused { position: relative; max-width: none !important; padding: 14px 16px 14px 56px; font-size: 16px !important; font-weight: 700; line-height: 1.45; color: #ffe29a !important; background: rgba(251, 191, 36, .16); border: 2px solid var(--warn); border-radius: 14px; }
.banner.paused::before { content: "!"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; font: 800 18px/1 var(--font); color: #2b1a00; background: var(--warn); border-radius: 50%; }

/* buttons, links and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; font: 700 15px var(--font); background: var(--purple); color: #fff; text-decoration: none; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer; }
.btn:hover { background: #8455f0; }
.btn.small { font-size: 14px; padding: 0 16px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--purple-hi); background: transparent; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(255, 143, 143, .5); }
.btn.danger:hover { background: rgba(255, 143, 143, .08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--purple); }
.btn.ghost:disabled:hover, .btn.danger:disabled:hover { background: transparent; }
.link { color: var(--purple-hi); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link:hover { color: var(--white); }
.refresh { min-height: 44px; padding: 0 16px; font: 600 14px var(--font); color: var(--white); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.refresh:hover { border-color: var(--purple-hi); }
.copy { min-height: 32px; font: 600 12px var(--font); color: var(--purple-hi); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; margin-left: 6px; cursor: pointer; vertical-align: 1px; }
.copy:hover { border-color: var(--purple-hi); color: var(--white); }
input, select { font: 500 16px var(--font); color: var(--white); background: var(--well); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 44px; min-width: 0; }
input::placeholder { color: #8f86b3; }
.btn:focus-visible, .link:focus-visible, .copy:focus-visible, .refresh:focus-visible, .tab:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { width: 100%; }
.field .hint { font-size: 13px; }
.status { min-height: 1.5em; margin: 10px 0 0; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.status:empty { min-height: 0; margin: 0; }
.status.good { color: var(--live); }
.status.bad { color: var(--bad); }
.status a { color: var(--purple-hi); }
.sum { margin: 0; font-size: 14px; color: var(--white); }
.sum p { margin: 0 0 6px; }
.sum p:last-child { margin-bottom: 0; }
.buy-panel .sum { margin: 10px 0 0; min-height: 1.4em; }
.field label.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.field label.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--purple); margin: 0; }

/* section heads */
.box-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.box-tools { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.filter { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.filter select { padding: 0 10px; font-size: 14px; }
.more { margin-top: 12px; }

/* the four views: a segmented control */
.tabs { display: flex; gap: 4px; width: 100%; margin: 28px 0 22px; padding: 4px; background: var(--panel3); border: 1px solid var(--line); border-radius: 16px; }
.tab { flex: 1 1 auto; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font: 600 15px var(--font); color: var(--muted); white-space: nowrap; background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.tab:hover { color: var(--white); }
.tab[aria-current="true"] { color: #fff; background: var(--purple); box-shadow: 0 4px 14px rgba(117, 67, 227, .4); }
.tab-n { min-width: 20px; padding: 1px 6px; font-size: 12px; font-weight: 800; line-height: 18px; color: var(--white); background: rgba(255, 255, 255, .14); border-radius: 999px; }
.tab[aria-current="true"] .tab-n { background: rgba(255, 255, 255, .26); }
.pane { display: none; min-width: 0; }
.panes[data-view="market"] .p-market, .panes[data-view="swap"] .p-swap, .panes[data-view="mine"] .p-mine, .panes[data-view="history"] .p-history { display: block; }

/* my trades */
.mine { padding: 20px 22px; border: 1px solid rgba(117, 67, 227, .55); border-radius: 18px; background: linear-gradient(180deg, rgba(30, 22, 54, .9), rgba(23, 17, 42, .9)); }
.mine-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.claims { margin-bottom: 18px; }
.claim-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px; margin-bottom: 8px; background: rgba(74, 222, 128, .07); border: 1px solid rgba(74, 222, 128, .35); border-radius: 12px; }
.claim-row .what { overflow-wrap: anywhere; }
.empty, .empty-pane { margin: 0 0 16px; padding: 22px 18px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.empty-pane h2 { margin-bottom: 6px; }
.empty-pane .lead { margin: 0; }

/* the listing and trade cards */
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.items > .msg { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 20px; color: var(--muted); font-size: 16px; border: 1px dashed var(--line); border-radius: 16px; }
.start-swap { min-width: 120px; }
.item { min-width: 0; container-type: inline-size; container-name: item; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.item.warn { border-color: rgba(251, 191, 36, .55); }
.item-top { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.item-top > .btn, .item-top > .tag { align-self: stretch; }
.item-top > .tag { text-align: center; justify-content: center; min-height: 44px; font-size: 14px; }
.item-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* the deal: you give X for Y. Stacked on a phone, side by side when the card is wide */
.deal { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.deal .give, .deal .ask { display: block; min-width: 0; max-width: 100%; }
.deal .for { width: 42px; padding: 1px 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: var(--panel3); }
.tside { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tbody { min-width: 0; }
.tline { overflow-wrap: anywhere; line-height: 1.2; }
.tline .amt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tline .sym { font-size: 16px; font-weight: 700; color: var(--muted); }
.usd { margin-top: 2px; font-size: 13px; color: var(--muted); }
.badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; font: 800 12px/1 var(--font); letter-spacing: -.02em; color: #fff; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); }
.badge.b4 { font-size: 10px; letter-spacing: -.04em; }
.tkusdt { background: #26a17b; } .tkusdc { background: #2775ca; } .tkxmd { background: #9b4fe0; }
.tk0 { background: #6b3fd9; } .tk1 { background: #0f8f86; } .tk2 { background: #b4741a; } .tk3 { background: #b8438f; } .tk4 { background: #2f6fcf; } .tk5 { background: #3d8f4f; }
@container item (min-width: 480px) {
  .item-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .item-top > .btn, .item-top > .tag { align-self: center; flex: none; min-width: 110px; }
  .deal { flex: 1 1 auto; }
}
a.who-name { color: var(--white); font-weight: 600; text-decoration: none; }
a.who-name:hover { color: var(--purple-hi); text-decoration: underline; }
.item .status:empty, .claims .status:empty { display: none; }
.meta { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.item.listing .meta { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.meta a { color: var(--white); font-weight: 600; text-decoration: none; }
.meta a:hover { color: var(--purple-hi); text-decoration: underline; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 12px 0 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv .ask { font-weight: 800; }
.say { margin: 10px 0 0; font-size: 14.5px; }
.say.warn { color: var(--warn); }
.pay { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(117, 67, 227, .14); border: 1px solid rgba(155, 123, 255, .45); }
.pay .big { font-size: 18px; font-weight: 800; }
.pay p { margin: 0 0 6px; }
.pay p:last-child { margin-bottom: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.row input { flex: 1 1 200px; }
.row select { flex: 0 1 auto; }
.buy-panel { margin-top: 14px; padding: 14px; background: var(--panel3); border: 1px solid rgba(155, 123, 255, .35); border-radius: 14px; }
.buy-panel label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.buy-panel .field input { width: 100%; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.notes { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px; }
.notes li { padding-left: 14px; position: relative; color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.notes li.warn { color: var(--warn); }
.notes li.warn::before { background: var(--warn); }

/* the swap widget: you give on top, you get below, an arrow chip between, the fee lines right above the button */
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 22px; padding: 22px; min-width: 0; }
.card h2 { margin-bottom: 6px; }
.card .lead { font-size: 15px; }
.sell { border-color: rgba(117, 67, 227, .55); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(117, 67, 227, .12); }
.leg { padding: 14px 16px 12px; background: var(--well); border: 1px solid var(--line); border-radius: 18px; }
.leg:focus-within { border-color: var(--purple-hi); }
.leg-title, .mode legend { display: block; padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.leg-row { display: flex; align-items: center; gap: 10px; }
.leg-amt { flex: 1 1 0; min-width: 0; }
.leg .big-in { width: 100%; padding: 0; min-height: 52px; font: 800 28px/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: transparent; border: 0; border-radius: 8px; }
.leg .big-in::placeholder { color: #6d6492; }
.tok-pick { flex: none; min-width: 112px; max-width: 46%; min-height: 44px; padding: 0 12px; font: 800 16px var(--font); background: var(--panel2); border-radius: 999px; }
.leg-foot { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; }
.leg-foot .hint { font-size: 13px; }
.leg-foot .hint:empty { display: none; }
.swap-mid { position: relative; height: 14px; z-index: 2; }
.swap-arrow { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); background: var(--panel2); border: 3px solid var(--panel); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.swap-arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -7px 0 0 -5px; border-right: 2.5px solid var(--purple-hi); border-bottom: 2.5px solid var(--purple-hi); transform: rotate(45deg); }
.get #sell-partial-box { margin-top: 14px; }
.get .field { margin-bottom: 12px; }
.get .field:last-child { margin-bottom: 0; }
.get .field.opt { margin: 12px 0 0; gap: 2px; }
.sell .sum { margin: 14px 0 0; padding: 10px 14px; font-size: 13.5px; color: var(--muted); background: rgba(117, 67, 227, .08); border: 1px solid var(--line); border-radius: 14px; }
.sell .sum:empty { display: none; }
.sell .btn.go { width: 100%; min-height: 54px; margin-top: 12px; font-size: 17px; border-radius: 16px; }
/* the two kinds of listing: a segmented choice */
.mode { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.mode legend { width: 100%; float: left; }
.mode legend + * { clear: both; }
.mode label { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 14px; font-size: 14px; font-weight: 600; text-align: center; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.mode label:has(input:checked) { border-color: var(--purple-hi); background: rgba(117, 67, 227, .24); }
.mode label:has(input:focus-visible) { outline: 3px solid var(--purple-hi); outline-offset: 2px; }
.mode input { width: 18px; height: 18px; min-height: 0; accent-color: var(--purple); margin: 0; }

/* the arbiter */
.arb { margin-top: 28px; }
.sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.side { min-width: 0; padding: 10px 12px; background: var(--panel3); border: 1px solid var(--line); border-radius: 12px; }
.side h4 { margin: 0 0 4px; font-size: 13px; color: var(--purple-hi); letter-spacing: .02em; }
.side .kv { margin-top: 6px; grid-template-columns: minmax(0, 1fr); gap: 0 0; }
.side .kv dt { margin-top: 6px; font-size: 12.5px; }

/* How it works, What you are trusting, Fee and times: folded away, always on the page */
.folds { display: flex; flex-direction: column; gap: 10px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.fold { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.fold[open] { border-color: rgba(117, 67, 227, .55); }
.fold summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 18px; cursor: pointer; list-style: none; border-radius: 16px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h2 { font-size: 17px; }
.fold summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2.5px solid var(--purple-hi); border-bottom: 2.5px solid var(--purple-hi); transform: rotate(45deg); transition: transform .15s ease; }
.fold[open] summary::after { transform: rotate(-135deg); }
.fold-body { padding: 2px 18px 18px; }
.fold-body > :first-child { margin-top: 0; }
.steps { margin: 0 0 14px; padding-left: 22px; max-width: 72ch; }
.steps li { margin-bottom: 8px; }
.trust { margin: 0; padding-left: 20px; max-width: 72ch; color: var(--white); }
.trust li { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 0 0 14px; }
.facts > div { padding: 10px 14px; background: var(--panel3); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.changes { margin: 0 0 14px; padding: 10px 14px 10px 32px; color: var(--warn); border: 1px solid rgba(251, 191, 36, .4); border-radius: 12px; max-width: 72ch; }

.est { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
p.est:empty { display: none; }

/* history (owner 2026-11-08): one card per trade, its steps in time order */
.lookup { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.lookup label:first-child { font-size: 14px; font-weight: 600; }
.lookup input { width: 190px; max-width: 100%; }
.lookup .filter { margin-left: auto; }
.hitem { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hdeal .amt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hitem .deal.hdeal { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hmeta { display: flex; flex-wrap: wrap; gap: 0 12px; margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.hitem .say { margin: 0; }
.hdetails { align-self: stretch; margin-top: 2px; border-top: 1px solid var(--line); }
.hdetails summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 2px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; color: var(--purple-hi); border-radius: 10px; }
.hdetails summary::-webkit-details-marker { display: none; }
.hdetails summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2.5px solid var(--purple-hi); border-bottom: 2.5px solid var(--purple-hi); transform: rotate(45deg); transition: transform .15s ease; }
.hdetails[open] summary::after { transform: rotate(-135deg); }
.hdetails summary:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 2px; }
.hsteps { list-style: none; margin: 2px 0 4px 5px; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.hstep { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; font-size: 14.5px; }
.hstep::before { content: ""; position: absolute; left: -22px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--purple-hi); }
.hstep .ht { grid-column: 1 / -1; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hstep .hl { grid-column: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.hstep .link { grid-column: 2; grid-row: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 13px; }
.hstep .hnote { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13.5px; }
.hstep .hnote:last-child { margin-bottom: 4px; }
@container item (min-width: 560px) {
  .hstep { grid-template-columns: 9.5em minmax(0, 1fr) auto; }
  .hstep .ht { grid-column: 1; grid-row: 1; }
  .hstep .hl { grid-column: 2; grid-row: 1; }
  .hstep .link { grid-column: 3; grid-row: 1; }
  .hstep .hnote { grid-column: 2 / -1; }
}

/* wide screens: the Market and the Swap widget side by side; My trades and History use the full width */
@media (min-width: 900px) {
  .tabs { width: auto; display: inline-flex; }
  .tab { flex: none; padding: 0 22px; }
  .tab-swap { display: none; }
  .panes { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 24px; align-items: start; }
  .panes .p-market { grid-column: 1; grid-row: 1; }
  .panes .p-swap { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
  .panes .p-mine, .panes .p-history { grid-column: 1 / -1; }
  .panes[data-view="market"] .p-swap, .panes[data-view="swap"] .p-market, .panes[data-view="swap"] .p-swap { display: block; }
  .start-swap { display: none; }
}
@media (max-width: 760px) {
  .mine-cols, .sides { grid-template-columns: minmax(0, 1fr); }
  .mine { padding: 16px; }
  .lookup .filter { margin-left: 0; }
}
@media (max-width: 520px) {
  main { padding-top: 24px; padding-left: 16px; padding-right: 16px; }
  .intro p { font-size: 16px; }
  .tabs { margin-top: 22px; }
  .tab { padding: 0 6px; font-size: 14px; gap: 4px; }
  .card { padding: 18px 14px; }
  .leg { padding: 12px 14px 10px; }
  .item { padding: 14px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dt { margin-top: 6px; font-size: 13px; }
  .acts .btn { flex: 1 1 auto; }
  .box-tools { width: 100%; justify-content: space-between; }
  .tline .amt { font-size: 22px; }
  .banner.paused { padding-left: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .fold summary::after, .hdetails summary::after { transition: none; }
}
/* tokens made on xprhub: the mark, the reason it is unavailable, the warnings */
.reg-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.reg-note p { margin: 4px 0 0; overflow-wrap: anywhere; }
.reg-note p.warn { color: var(--warn); }
.reg-note p.bad { color: var(--bad); }
.reg-note a { color: var(--purple-hi); }
