/* GENERATED by tools/assemble.cjs from src/css/axiom-token/{chart,panels,search}.css. Do not edit: edit the part sources. */

/* ---- src/css/axiom-token/chart.css ---- */
/* TX Arena: token page, part 1 (chart) styles. Spec: docs/specs/token-chart.md section 4.
   Assembled into public/css/axiom-token.css before panels.css (part 2) and search.css.
   Covers: page root + layout, header, badges, the launchpad legend card, the chart box and toolbar, chart overlays
   (legend, candle tooltip, peer tooltip, live / log buttons, empty state), profit heat over the chart, the migrating
   states (header badge, trade panel, Instant Trade), Not Found, the splitter and the container queries of this part.
   The KOL hover card (.axt-ktip) and the KOLs toggle colour (.axt-tbi.kols) live in css/kols.css (CONTRACT 3.5). */

/* ---------------------------------------------------------------------------------------------------------------------
   Page root and layout (4.2)
   --------------------------------------------------------------------------------------------------------------------- */
.axt {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  container-name: axt;
  background: var(--ax-bg);
  color: rgb(var(--text-primary));
  font-size: 12px;
}
.axt-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}
.axt-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgb(var(--primary-stroke));
}
.axt-chart {
  flex: 1 1 auto;
  min-height: 170px;
  display: flex;
  flex-direction: column;
}

/* shared bits */
.axt .up {
  color: rgb(var(--increase));
}
.axt .dn {
  color: rgb(var(--decrease));
}
.axt .dim {
  color: rgb(var(--text-secondary));
}
.axt-flex {
  flex: 1 1 auto;
}
.axt-ico {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  color: rgb(var(--text-secondary));
  font-size: 14px;
}
.axt-ico:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  border: 1px solid rgb(var(--secondary-stroke));
  background: rgb(var(--background-tertiary));
  color: rgb(var(--text-secondary));
}

/* SOL glyph: three slanted bars, gradient-filled through a mask (4.1) */
.axt-sol {
  display: inline-block;
  flex-shrink: 0;
  width: 0.95em;
  height: 0.76em;
  margin-right: 3px;
  vertical-align: -0.04em;
  background: linear-gradient(100deg, #9945ff, #5d8bf2 50%, #14f195);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M3.4 0H20l-3.4 3.4H0zM0 6.3h16.6L20 9.7H3.4zM3.4 12.6H20L16.6 16H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M3.4 0H20l-3.4 3.4H0zM0 6.3h16.6L20 9.7H3.4zM3.4 12.6H20L16.6 16H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* wallet picture (walletPfp) */
.axt-pfp {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: rgb(var(--background-tertiary));
}

/* ---------------------------------------------------------------------------------------------------------------------
   Header (4.3)
   --------------------------------------------------------------------------------------------------------------------- */
.axt-head {
  flex: 0 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
  padding: 6px 10px 6px 8px;
  border-bottom: 1px solid rgb(var(--primary-stroke));
}
.axt-back {
  flex: none;
  height: 28px;
  padding: 0 9px 0 3px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  border-radius: 4px;
  border: 1px solid rgb(var(--primary-stroke));
  color: rgb(var(--text-secondary));
  font-size: 12px;
  font-weight: 500;
}
.axt-back i {
  font-size: 19px;
}
.axt-back:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
  border-color: rgb(var(--secondary-stroke));
}
.axt-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 220px);
  flex: 0 1 auto;
  max-width: 440px;
}
.axt [data-platform],
.cb-plat {
  --plat: var(--pad-pump, #4fd18b);
}
.axt-av {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 4px;
  border: 1px solid var(--plat);
}
.axt-av img {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
}
.axt-av-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--plat);
  border: 1px solid var(--plat);
  background: color-mix(in srgb, var(--plat) 18%, var(--ax-bg));
  box-shadow: 0 0 0 1.5px var(--ax-bg);
}
.axt-idtxt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.axt-idr1 {
  display: flow-root;
  min-width: 0;
  font-size: 14px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.axt-ticker {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  margin-right: 6px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.axt-idr1 .axt-badges.wide {
  vertical-align: top;
  height: 22px;
  margin-right: 6px;
  white-space: nowrap;
}
.axt-icos {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  margin-left: 6px;
}
.axt-name {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  padding-top: 2px;
  font-size: 14px;
  line-height: 18px;
  color: rgb(var(--text-secondary));
}
.axt-star.on {
  color: rgb(var(--primary-yellow));
}
.axt-you {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgb(var(--primary-color));
  color: #fff;
}
.axt-idr2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}
.axt-age {
  color: rgb(var(--increase));
  font-weight: 500;
}
.axt-soc {
  color: rgb(var(--text-secondary));
  font-size: 14px;
  line-height: 1;
}
.axt-soc:hover {
  color: rgb(var(--primary-color-hover));
}
.axt-ca {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgb(var(--text-tertiary));
  white-space: nowrap;
}
.axt-ca:hover {
  color: rgb(var(--text-secondary));
}

/* stats: one row tall, overflow hidden, so stats that do not fit wrap to an invisible second row */
.axt-stats {
  flex: 1 1 0;
  min-width: 120px;
  height: 36px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 18px;
  row-gap: 12px;
  padding-left: 14px;
  border-left: 1px solid rgb(var(--primary-stroke));
}
.axt-mc {
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
}
.axt-mcv {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s;
}
.axt-mcv.ath {
  text-shadow: 0 0 16px rgb(var(--increase) / 0.85);
}
.axt-stat {
  flex: none;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.axt-sl {
  font-size: 11px;
  color: rgb(var(--text-secondary));
}
.axt-sv {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--text-primary));
}
.axt-sv.good {
  color: rgb(var(--increase));
}
.axt-sv.bad {
  color: rgb(var(--decrease));
}
.axt-sv.mig {
  color: rgb(var(--primary-yellow));
}
.axt-bcbar {
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgb(var(--secondary-stroke));
}
.axt-bcbar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgb(var(--primary-color)), rgb(var(--increase)));
  transition: width 0.3s;
}
.axt-head-r {
  display: flex;
  gap: 2px;
}

.axt-itbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  gap: 5px;
  border: 1px solid rgb(var(--secondary-stroke));
  color: rgb(var(--text-secondary));
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.axt-itbtn i {
  font-size: 13px;
  color: rgb(var(--primary-yellow));
}
.axt-itbtn:hover {
  color: rgb(var(--text-primary));
  border-color: rgb(var(--text-tertiary));
}
.axt-itbtn.on {
  color: rgb(var(--primary-color-hover));
  border-color: rgb(var(--primary-color) / 0.7);
  background: rgb(var(--primary-color) / 0.12);
}
.axt-vamp {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(var(--secondary-stroke));
  color: rgb(var(--text-secondary));
  font-size: 14px;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.axt-vamp:hover {
  color: rgb(var(--text-primary));
  border-color: rgb(var(--text-tertiary));
  background: rgb(var(--background-tertiary));
}
.axt-vamp:focus-visible {
  outline: 2px solid rgb(var(--primary-color));
  outline-offset: 1px;
}
.axt-vamp.fired {
  color: rgb(var(--primary-color-hover));
  border-color: rgb(var(--primary-color) / 0.7);
  background: rgb(var(--primary-color) / 0.14);
}

/* ---------------------------------------------------------------------------------------------------------------------
   Migrating state (3.6, 4.3): header badge, trade panel (part 2 elements), Instant Trade (part 2 panel)
   --------------------------------------------------------------------------------------------------------------------- */
.axt-migb,
.it-migb {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: rgb(var(--primary-yellow));
  background: rgb(var(--primary-yellow) / 0.14);
  box-shadow: inset 0 0 0 1px rgb(var(--primary-yellow) / 0.45);
}
.axt-migb i,
.it-migb i {
  font-size: 12px;
}
.axt-migb b,
.it-migb b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 2.6em;
}
.axt-idr2 .axt-migb,
.it-migb {
  height: 18px;
  padding: 0 7px 0 5px;
  font-size: 10.5px;
}
.it-migb {
  display: none;
}
.it.is-migrating .it-migb {
  display: inline-flex;
}
.axt-trade.is-migrating .axt-pill,
.axt-trade.is-migrating .axt-pill:hover {
  color: rgb(var(--text-tertiary));
  background: rgb(var(--background-secondary));
  border-color: rgb(var(--secondary-stroke));
  cursor: not-allowed;
}
.axt-trade.is-migrating .axt-pill:active {
  transform: none;
}
.axt-trade.is-migrating .axt-go,
.axt-trade.is-migrating .axt-go:hover {
  color: rgb(var(--primary-yellow));
  background: rgb(var(--primary-yellow) / 0.14);
  box-shadow: inset 0 0 0 1px rgb(var(--primary-yellow) / 0.45);
  cursor: not-allowed;
}
.it.is-migrating .it-cur,
.it.is-migrating .it-tip {
  display: none !important;
}
.it.is-migrating .it-pill,
.it.is-migrating .it-pill:hover {
  color: rgb(var(--text-tertiary));
  border-color: rgb(var(--secondary-stroke));
  background: none;
  cursor: not-allowed;
}
.it.is-migrating .it-pill:active {
  transform: none;
}
.it.is-migrating .it-init,
.it.is-migrating .it-init:hover {
  color: rgb(var(--text-tertiary));
  cursor: not-allowed;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Coin badges and the launchpad legend card (4.4)
   --------------------------------------------------------------------------------------------------------------------- */
.axt-badges {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
}
.axt-badges:empty {
  display: none;
}
.axt-badges.narrow {
  display: none;
}
.cb-pair,
.cb-fee {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 3px;
  height: 16px;
  padding: 0 5px 0 4px;
  border-radius: 3px;
  font: 600 10px/1 var(--font-ax);
  letter-spacing: 0.03em;
  white-space: nowrap;
  vertical-align: middle;
}
.cb-pair i,
.cb-fee i {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1;
}
.cb-pair.spacex {
  color: rgb(var(--pair-spacex, 125 196 255));
  background: rgb(var(--pair-spacex, 125 196 255) / 0.1);
  box-shadow: inset 0 0 0 1px rgb(var(--pair-spacex, 125 196 255) / 0.26);
}
.cb-pair.tesla {
  color: rgb(var(--pair-tesla, 255 118 102));
  background: rgb(var(--pair-tesla, 255 118 102) / 0.1);
  box-shadow: inset 0 0 0 1px rgb(var(--pair-tesla, 255 118 102) / 0.26);
}
.cb-pair.sol {
  color: rgb(var(--text-tertiary));
  background: rgb(var(--background-tertiary));
  font-weight: 500;
}
.cb-fee.div {
  color: rgb(var(--primary-yellow));
  background: rgb(var(--primary-yellow) / 0.09);
}
.cb-fee.split {
  color: rgb(var(--text-secondary));
  background: rgb(var(--secondary-stroke) / 0.55);
}
.cb-plat {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 3px;
  height: 18px;
  padding: 0 6px 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--plat);
  cursor: default;
  background: color-mix(in srgb, var(--plat) 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--plat) 28%, transparent);
}
.cb-plat i {
  font-size: 11px;
}

.pad-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9000;
  pointer-events: none;
  display: none;
  transition: none;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px 0 8px;
  border-radius: 6px;
  white-space: nowrap;
  font: 500 12px/1 var(--font-ax);
  color: rgb(var(--text-primary));
  background: rgb(16 17 23 / 0.97);
  border: 1px solid color-mix(in srgb, var(--plat, #888) 45%, rgb(var(--secondary-stroke)));
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.45);
}
.pad-tip.on {
  display: inline-flex;
}
.pad-tip i {
  font-size: 13px;
  color: var(--plat, #888);
}
.pad-tip b {
  font-weight: 600;
  color: var(--plat, #888);
}
.pad-tip span {
  font-size: 11px;
  color: rgb(var(--text-secondary));
}

/* ---------------------------------------------------------------------------------------------------------------------
   Chart toolbar (4.5)
   --------------------------------------------------------------------------------------------------------------------- */
.axt-tbar {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  border-bottom: 1px solid rgb(var(--primary-stroke));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.axt-tbar::-webkit-scrollbar {
  display: none;
}
.axt-tfs {
  display: flex;
  flex: none;
  gap: 1px;
}
.axt-tf {
  height: 24px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
}
.axt-tf:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt-tf.on {
  color: rgb(var(--primary-color-hover));
  background: rgb(var(--primary-color) / 0.13);
}
.axt-tsep {
  flex: 0 0 1px;
  height: 16px;
  margin: 0 6px;
  background: rgb(var(--primary-stroke));
}
.axt-tbi {
  flex: none;
  height: 24px;
  min-width: 24px;
  padding: 0 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgb(var(--text-secondary));
  font-size: 15px;
  white-space: nowrap;
}
.axt-tbi.txt {
  font-size: 12px;
  font-weight: 500;
}
.axt-tbi:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt-fx {
  font: italic 600 14px Georgia, "Times New Roman", serif;
}
.axt-seg {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin: 0 6px;
  font-size: 12px;
  font-weight: 500;
}
.axt-seg button {
  color: rgb(var(--text-tertiary));
  padding: 0 1px;
  white-space: nowrap;
}
.axt-seg button + button::before {
  content: "/";
  color: rgb(var(--text-tertiary));
  margin-right: 2px;
}
.axt-seg button:hover {
  color: rgb(var(--text-secondary));
}
.axt-seg button.on {
  color: rgb(var(--primary-color-hover));
}

/* ---------------------------------------------------------------------------------------------------------------------
   Chart wrapper, canvas and profit heat (4.5)
   --------------------------------------------------------------------------------------------------------------------- */
.axt-cvwrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.axt-cv {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.axt-cv.grabbing {
  cursor: grabbing;
}
.axt-cv.on-axis {
  cursor: ns-resize;
}
.axt-cvwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s;
  background: radial-gradient(110% 75% at 82% 0%, rgb(var(--increase) / 0.13), transparent 62%);
  box-shadow: inset 0 0 0 1px rgb(var(--increase) / 0.22), inset 0 0 60px rgb(var(--increase) / 0.08);
}
.axt-cvwrap[data-heat="2"]::after {
  opacity: 0.55;
}
.axt-cvwrap[data-heat="3"]::after {
  opacity: 1;
}
.axt-cvwrap[data-heat="4"]::after {
  opacity: 1;
  animation: axt-breathe 2.2s ease-in-out infinite;
  background: radial-gradient(110% 80% at 82% 0%, rgb(var(--increase) / 0.18), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, rgb(var(--primary-yellow) / 0.08), transparent 70%);
  box-shadow: inset 0 0 0 1px rgb(var(--primary-yellow) / 0.35), inset 0 0 80px rgb(var(--increase) / 0.12);
}
@keyframes axt-breathe {
  50% {
    opacity: 0.62;
  }
}
.axt-cvwrap.shake {
  animation: axt-shake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes axt-shake {
  10%,
  90% {
    transform: translate(-1px, 0);
  }
  20%,
  80% {
    transform: translate(2px, -1px);
  }
  30%,
  50%,
  70% {
    transform: translate(-4px, 1px);
  }
  40%,
  60% {
    transform: translate(4px, -1px);
  }
}

/* ---------------------------------------------------------------------------------------------------------------------
   Chart overlays (4.6)
   --------------------------------------------------------------------------------------------------------------------- */
.axt-legend {
  position: absolute;
  left: 10px;
  top: 7px;
  max-width: calc(100% - 100px);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgb(var(--text-secondary));
  text-shadow: 0 0 3px var(--ax-bg), 0 0 6px var(--ax-bg);
}
.axt-lg1 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.axt-lg-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
.axt-lg-sym {
  color: rgb(var(--text-primary));
  font-weight: 600;
}
.axt-lg-dot {
  color: rgb(var(--text-tertiary));
}
.axt-lg-sim {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 4px;
  border-radius: 3px;
  color: rgb(var(--primary-yellow));
  border: 1px solid rgb(var(--primary-yellow) / 0.45);
}
.axt-lg-ohlc {
  display: inline-flex;
  gap: 3px;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.axt-lg-ohlc b {
  font-weight: 500;
  margin-right: 6px;
  color: rgb(var(--increase));
}
.axt-lg-ohlc.dn b {
  color: rgb(var(--decrease));
}
.axt-legend.stack .axt-lg-ohlc {
  flex-basis: 100%;
  margin-left: 0;
  flex-wrap: wrap;
}
.axt-legend.stack .lg-x {
  display: none;
}
.axt-lg2 b {
  margin-left: 6px;
  font-weight: 500;
  color: rgb(var(--text-primary));
  font-variant-numeric: tabular-nums;
}

.axt-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 156px;
  padding: 6px 9px;
  pointer-events: none;
  background: rgb(var(--background-tertiary) / 0.95);
  border: 1px solid rgb(var(--secondary-stroke));
  border-radius: 4px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.5);
  font-size: 11px;
}
.axt-tip .tt {
  color: rgb(var(--text-secondary));
  margin-bottom: 3px;
  white-space: nowrap;
}
.axt-tip .tr {
  display: flex;
  justify-content: space-between;
  line-height: 1.55;
  color: rgb(var(--text-secondary));
}
.axt-tip .tr b {
  font-weight: 500;
  color: rgb(var(--text-primary));
  font-variant-numeric: tabular-nums;
}
.axt-tip .tr b.up {
  color: rgb(var(--increase));
}
.axt-tip .tr b.dn {
  color: rgb(var(--decrease));
}

.axt-live {
  position: absolute;
  right: 80px;
  bottom: 34px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(var(--background-tertiary));
  border: 1px solid rgb(var(--secondary-stroke));
  color: rgb(var(--text-primary));
  font-size: 16px;
}
.axt-live:hover {
  border-color: rgb(var(--primary-color));
}
.axt-cv-empty {
  position: absolute;
  left: 0;
  top: 0;
  right: 68px;
  bottom: 24px;
  display: grid;
  place-items: center;
  color: rgb(var(--text-tertiary));
  pointer-events: none;
}
.axt-logbtn {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 68px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(var(--text-tertiary));
}
.axt-logbtn:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt-logbtn.on {
  color: rgb(var(--primary-color-hover));
  background: rgb(var(--primary-color) / 0.12);
}

.axt-ptip {
  position: absolute;
  top: 0;
  right: 74px;
  z-index: 3;
  min-width: 120px;
  max-width: 220px;
  padding: 5px 8px;
  pointer-events: none;
  background: rgb(var(--background-tertiary) / 0.96);
  border: 1px solid rgb(var(--secondary-stroke));
  border-radius: 4px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.5);
  font-size: 11px;
  line-height: 1.6;
}
.axt-ptr {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.axt-ptr i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.axt-ptr .n {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgb(var(--text-primary));
}
.axt-ptr b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--text-secondary));
}
.axt-ptr b.up {
  color: rgb(var(--increase));
}
.axt-ptr b.dn {
  color: rgb(var(--decrease));
}
.axt-ptr.sold {
  opacity: 0.62;
}
.axt-ptm {
  color: rgb(var(--text-tertiary));
}

/* ---------------------------------------------------------------------------------------------------------------------
   Not found (4.8)
   --------------------------------------------------------------------------------------------------------------------- */
.axt.axt-nf {
  display: grid;
  place-items: center;
}
.axt-nf-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.axt-nf-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: rgb(var(--text-secondary));
  background: rgb(var(--background-tertiary));
}
.axt-nf-t {
  font-size: 18px;
  font-weight: 600;
}
.axt-nf-s {
  font-size: 13px;
  color: rgb(var(--text-secondary));
}
.axt-nf-btn {
  margin-top: 8px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(var(--primary-color));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.axt-nf-btn:hover {
  background: rgb(var(--primary-color-hover));
}
.axt-nf-k {
  font-size: 11px;
  color: rgb(var(--text-tertiary));
}

/* ---------------------------------------------------------------------------------------------------------------------
   Splitter and maximized chart (4.9)
   --------------------------------------------------------------------------------------------------------------------- */
.axt-split {
  flex: 0 0 5px;
  cursor: row-resize;
  border-top: 1px solid rgb(var(--primary-stroke));
}
.axt-split:hover,
.axt-split.drag {
  background: rgb(var(--primary-color) / 0.35);
}
.axt.chart-max .axt-tables,
.axt.chart-max .axt-split {
  display: none;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Container queries on the page root (4.2)
   --------------------------------------------------------------------------------------------------------------------- */
@container axt (max-width: 1150px) {
  .axt-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .axt-stat.opt {
    display: none;
  }
}
@container axt (max-width: 940px) {
  .axt-grid {
    grid-template-columns: minmax(0, 1fr) 268px;
  }
  .axt-stat.opt2,
  .axt-head-r,
  .axt-back .lbl {
    display: none;
  }
  .axt-back {
    padding: 0 3px;
  }
  .axt-stats {
    gap: 14px;
  }
  .axt-tbi.txt .lbl,
  .axt-tbi.cdl {
    display: none;
  }
  .axt-tf {
    padding: 0 5px;
  }
  .axt-seg {
    margin: 0 3px;
  }
  /* wide badges: only the SPACEX / TESLA pair goes glyph-only; the fee keeps its word, /SOL keeps its text */
  .axt-badges.wide .cb-pair:not(.sol) .cb-t,
  .axt-badges.wide .ax-pair .ax-pair-l {
    display: none;
  }
  .axt-badges.wide .cb-pair:not(.sol),
  .axt-badges.wide .ax-pair {
    padding: 0 4px;
  }
  .axt-star {
    display: none;
  }
  .axt-itbtn {
    padding: 0 7px;
  }
  .axt-itbtn .lbl {
    display: none;
  }
}
@container axt (max-width: 720px) {
  .axt-grid {
    grid-template-columns: minmax(0, 1fr) 244px;
  }
  .axt-stat.opt3 {
    display: none;
  }
  .axt-mcv {
    font-size: 17px;
  }
  .axt-id {
    max-width: 300px;
  }
  .axt-ca,
  .axt-star,
  .axt-badges.wide {
    display: none;
  }
  .axt-badges.narrow {
    display: inline-flex;
  }
  .axt-badges.narrow .cb-pair:not(.sol),
  .axt-badges.narrow .cb-fee,
  .axt-badges.narrow .ax-pair,
  .axt-badges.narrow .ax-fee {
    width: 20px;
    padding: 0;
    justify-content: center;
  }
  .axt-badges.narrow .cb-pair:not(.sol) .cb-t,
  .axt-badges.narrow .cb-fee .cb-t {
    display: none;
  }
  .axt-idr2 {
    gap: 6px;
  }
  .axt-idr2 .cb-plat-l,
  .axt-idr2 .axt-soc {
    display: none;
  }
  .axt-av {
    width: 40px;
    height: 40px;
  }
  .axt-stats {
    min-width: 84px;
    padding-left: 10px;
  }
}
@container axt (max-width: 640px) {
  .axt-head {
    flex-wrap: wrap;
  }
  .axt-id {
    flex: 1 1 0;
  }
  .axt-stats {
    order: 9;
    padding-left: 0;
    border-left: 0;
  }
  .axt-vamp,
  .axt-itbtn {
    order: 10;
  }
}

/* ---------------------------------------------------------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .axt-cvwrap.shake,
  .axt-cvwrap[data-heat="4"]::after {
    animation: none;
  }
}

/* ---- src/css/axiom-token/panels.css ---- */
/* TX Arena: token page, part 2 (panels). Spec: docs/specs/token-panels.md section 4.
   Tables, side panel, YOUR PNL card + heat levels + fx (stamps, confetti, MIGRATED banner), Instant Trade (with its
   heat and migrating looks), the container-query responsive rules of this part and reduced motion.
   Colours are the base.css "R G B" triplets used as rgb(var(--x)) / rgb(var(--x) / alpha).
   Page-level rules both specs describe (.axt .up/.dn/.dim, .axt-flex, .axt-ico, the .axt-sol glyph, .axt-pfp, the side
   column width .axt-grid, the header .axt-itbtn, the profit-heat overlay .axt-cvwrap::after, the shake, the migrating
   trade controls and .it-migb) are owned by the chart part (src/css/axiom-token/chart.css, assembled first). */

/* ---------------------------------------------------------------------------------------------------------------
   4.1 Shared bits
   --------------------------------------------------------------------------------------------------------------- */
.it .axt-sol {
  font-size: 0.92em;
}
.axt-amt-u .axt-sol {
  margin: 0;
  font-size: 15px;
}

/* ---------------------------------------------------------------------------------------------------------------
   4.2 Tables
   --------------------------------------------------------------------------------------------------------------- */
.axt-tables {
  flex: 0 0 auto;
  height: 34%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.axt-tabs {
  flex: 0 0 38px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  border-bottom: 1px solid rgb(var(--primary-stroke));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.axt-tabs::-webkit-scrollbar {
  display: none;
}
.axt-tab {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
}
.axt-tab:hover {
  color: rgb(var(--text-primary));
}
.axt-tab.on {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt-tcnt {
  color: rgb(var(--text-tertiary));
  font-weight: 400;
}
.axt-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid rgb(var(--secondary-stroke));
  font-size: 11px;
  font-weight: 500;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
}
.axt-chip:hover {
  color: rgb(var(--text-primary));
}
.axt-chip.on {
  color: rgb(var(--primary-color-hover));
  border-color: rgb(var(--primary-color));
  background: rgb(var(--primary-color) / 0.1);
}
.axt-paused {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: rgb(var(--primary-yellow));
}

/* panes: absolutely stacked, one visible */
.axt-panes {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.axt-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.axt-th,
.axt-tr {
  display: grid;
  column-gap: 8px;
  padding: 0 12px;
  align-items: center;
}
.axt-th {
  flex: 0 0 26px;
  font-size: 11px;
  color: rgb(var(--text-tertiary));
  border-bottom: 1px solid rgb(var(--border-subtle));
  white-space: nowrap;
  overflow: hidden;
}
.axt-th > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.axt-tb {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.axt-tr {
  height: 28px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border-bottom: 1px solid rgb(var(--border-subtle) / 0.7);
}
.axt-tr > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.axt-tr:hover {
  background: rgb(var(--background-secondary));
}

/* grid columns per pane (every fr column is minmax(0, ...)) */
.axt-pane[data-pane='trades'] .axt-th,
.axt-pane[data-pane='trades'] .axt-tr {
  grid-template-columns: 50px 46px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) 18px;
}
.axt-pane[data-pane='positions'] .axt-th,
.axt-pane[data-pane='positions'] .axt-tr {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) 128px;
}
.axt-pane[data-pane='holders'] .axt-th,
.axt-pane[data-pane='holders'] .axt-tr {
  grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
}
.axt-pane[data-pane='top'] .axt-th,
.axt-pane[data-pane='top'] .axt-tr {
  grid-template-columns: 26px minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
}
.axt-pane[data-pane='devtok'] .axt-th,
.axt-pane[data-pane='devtok'] .axt-tr {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}

/* alignment and colours */
.axt-th .c-n,
.axt-tr .c-n,
.axt-th .c-tot,
.axt-th .c-act {
  text-align: right;
}
.axt-tr .c-age {
  color: rgb(var(--text-secondary));
}
.axt-tr.buy .c-type,
.axt-tr.buy .c-mc,
.axt-tr.buy .c-amt,
.axt-tr.buy .c-tot {
  color: rgb(var(--increase));
}
.axt-tr.sell .c-type,
.axt-tr.sell .c-mc,
.axt-tr.sell .c-amt,
.axt-tr.sell .c-tot {
  color: rgb(var(--decrease));
}
.axt-tr .c-tot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

/* trader cells */
.c-trader {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgb(var(--text-secondary));
}
.c-trader .truncate {
  max-width: 90px;
}
.c-trader .dim {
  color: rgb(var(--text-tertiary));
}
.c-trader.trk {
  color: rgb(var(--primary-light-blue));
}
.c-trader.bot {
  color: rgb(var(--text-primary));
  font-weight: 500;
}
.c-trader.bot i {
  font-size: 13px;
  color: rgb(var(--primary-color-hover));
}
.c-trader.bot em {
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  padding: 0 4px;
  border-radius: 3px;
  color: rgb(var(--primary-yellow));
  background: rgb(var(--primary-yellow) / 0.1);
}
.axt-tr .c-x {
  color: rgb(var(--text-tertiary));
  font-size: 13px;
  text-align: right;
}

/* row states */
.axt-tr.mine {
  background: rgb(var(--primary-color) / 0.1);
  box-shadow: inset 2px 0 0 rgb(var(--primary-color));
}
.axt-tr.mine.new {
  animation: axt-flash 1s ease-out;
}
@keyframes axt-flash {
  from {
    background: rgb(var(--primary-color) / 0.45);
  }
  to {
    background: rgb(var(--primary-color) / 0.1);
  }
}
.axt-youtag {
  flex: none;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgb(var(--primary-color));
}
.axt-tr.peer {
  background: color-mix(in srgb, var(--peer, #5b8cff) 8%, transparent);
  box-shadow: inset 2px 0 0 var(--peer, #5b8cff);
}
.axt-tr.peer:hover {
  background: color-mix(in srgb, var(--peer, #5b8cff) 14%, transparent);
}
.c-trader.peer {
  color: var(--peer, #5b8cff);
  font-weight: 600;
}
.axt-peer-ic {
  font-size: 11px;
  filter: saturate(0.85);
}
.axt-pane.only-mine .axt-tr:not(.mine) {
  display: none;
}

/* token cell (Positions, Dev Tokens) */
.axt-tr .c-tok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: normal;
  overflow: visible;
}
.c-tok img {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}
.c-tkn {
  min-width: 0;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.c-tkn b {
  margin-right: 6px;
}
.c-tkn .dim {
  display: inline-block;
  max-width: 100%;
}
.axt-tr.pos,
.axt-tr.dev {
  height: auto;
  min-height: 28px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.axt-tr.cur {
  background: rgb(var(--background-secondary));
}
.axt-tr.cur .c-tok {
  cursor: default;
}

/* Positions actions */
.axt-tr .c-act {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.axt-mini {
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgb(var(--secondary-stroke));
  font-size: 11px;
  font-weight: 600;
  color: rgb(var(--text-secondary));
}
.axt-mini.sell:hover {
  color: rgb(var(--decrease));
  border-color: rgb(var(--decrease) / 0.7);
  background: rgb(var(--decrease) / 0.08);
}

/* Holders / Top Traders cells */
.axt-tr .c-rank,
.axt-th .c-rank {
  color: rgb(var(--text-tertiary));
}
.axt-tr .c-w {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--text-secondary));
}
.c-w b {
  color: rgb(var(--text-primary));
  font-weight: 500;
}
.axt-pool-ic {
  flex: none;
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: rgb(var(--increase));
}
.axt-tr .c-pct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.c-pct > span:first-child {
  flex: none;
  width: 48px;
  text-align: right;
}
.axt-pbar {
  flex: 1 1 auto;
  max-width: 110px;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgb(var(--secondary-stroke));
}
.axt-pbar i {
  display: block;
  height: 100%;
  background: rgb(var(--primary-color));
}
.axt-tr.mine .axt-pbar i {
  background: rgb(var(--increase));
}

/* tags */
.axt-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: rgb(var(--text-secondary));
  background: rgb(var(--background-tertiary));
}
.axt-tag.dev {
  color: rgb(var(--primary-orange));
}
.axt-tag.sniper {
  color: rgb(var(--decrease));
}
.axt-tag.insider {
  color: rgb(var(--primary-yellow));
}
.axt-tag.bundler {
  color: rgb(var(--primary-light-blue));
}
.axt-tag.pool {
  color: rgb(var(--increase));
}
.axt-tag.you {
  color: #fff;
  background: rgb(var(--primary-color));
}

/* empty state */
.axt-empty {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 18px;
  color: rgb(var(--text-secondary));
}
.axt-empty > i {
  font-size: 26px;
  color: rgb(var(--text-tertiary));
}
.axt-empty .t {
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--text-primary));
}
.axt-empty .s {
  font-size: 12px;
  max-width: 320px;
}
.axt-tb > .axt-empty {
  height: 100%;
  justify-content: center;
}

/* ---------------------------------------------------------------------------------------------------------------
   4.3 Side panel
   --------------------------------------------------------------------------------------------------------------- */
.axt-side {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.axt-side > .axt-sbox,
.axt-side > .axt-trade,
.axt-side > .axt-info {
  flex: none;
}
.axt-sbox {
  padding: 10px 12px;
  border-bottom: 1px solid rgb(var(--primary-stroke));
}

/* window stats */
.axt-wins {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.axt-win {
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 4px;
  border: 1px solid rgb(var(--primary-stroke));
}
.axt-win:hover {
  border-color: rgb(var(--secondary-stroke));
}
.axt-win.on {
  background: rgb(var(--background-tertiary));
  border-color: rgb(var(--secondary-stroke));
}
.axt-win .l {
  font-size: 11px;
  color: rgb(var(--text-secondary));
}
.axt-win .v {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.axt-svs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}
.axt-svs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.axt-svs span {
  font-size: 11px;
  color: rgb(var(--text-secondary));
}
.axt-svs b {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.axt-svs i {
  font-size: 11px;
  font-style: normal;
  color: rgb(var(--text-secondary));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.axt-ratio {
  display: flex;
  height: 3px;
  gap: 2px;
  margin-top: 7px;
  border-radius: 2px;
  overflow: hidden;
}
.axt-ratio i {
  display: block;
  height: 100%;
  transition: width 0.4s;
}
.axt-ratio .b {
  background: rgb(var(--increase));
}
.axt-ratio .s {
  background: rgb(var(--decrease));
}

/* trade panel */
.axt-trade {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgb(var(--primary-stroke));
}
.axt-bsrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  background: rgb(var(--background-secondary));
  border: 1px solid rgb(var(--primary-stroke));
}
.axt-bs {
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--text-secondary));
}
.axt-bs:hover {
  color: rgb(var(--text-primary));
}
.axt-bs.buy.on {
  background: rgb(var(--increase));
  color: #06070b;
}
.axt-bs.sell.on {
  background: rgb(var(--decrease));
  color: #fff;
}
.axt-otrow {
  display: flex;
  align-items: center;
  gap: 2px;
}
.axt-ot {
  height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--text-secondary));
}
.axt-ot:hover {
  color: rgb(var(--text-primary));
}
.axt-ot.on {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt-wchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgb(var(--primary-stroke));
  font-size: 12px;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
  cursor: pointer;
}
.axt-wchip > span:last-child {
  color: rgb(var(--text-primary));
  font-weight: 500;
}
.axt-wchip:hover {
  color: rgb(var(--text-primary));
  border-color: rgb(var(--secondary-stroke));
}
.axt-amt {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: 4px;
  background: rgb(var(--background-secondary));
  border: 1px solid rgb(var(--secondary-stroke));
  cursor: text;
}
.axt-amt:focus-within {
  border-color: rgb(var(--primary-color));
}
.axt-amt .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgb(var(--text-secondary));
}
.axt-amt-in {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  background: transparent;
  border: 0;
  outline: 0;
}
.axt-amt-u {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: rgb(var(--text-secondary));
}
.axt-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.axt-pill {
  height: 30px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--text-primary));
  background: rgb(var(--background-secondary));
  border: 1px solid rgb(var(--secondary-stroke));
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.06s;
}
.axt-pill:active {
  transform: scale(0.95);
}
.axt-pill.buy:hover {
  color: rgb(var(--increase));
  border-color: rgb(var(--increase) / 0.7);
  background: rgb(var(--increase) / 0.08);
}
.axt-pill.sell:hover {
  color: rgb(var(--decrease));
  border-color: rgb(var(--decrease) / 0.7);
  background: rgb(var(--decrease) / 0.08);
}
.axt-pill.buy.fired {
  background: rgb(var(--increase) / 0.3);
  border-color: rgb(var(--increase));
}
.axt-pill.sell.fired {
  background: rgb(var(--decrease) / 0.3);
  border-color: rgb(var(--decrease));
}
.axt-presets-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
  font-size: 11px;
  color: rgb(var(--text-tertiary));
}
.axt-presets-h .axt-ico {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 14px;
  color: rgb(var(--text-secondary));
}
.axt-presets-h .axt-ico:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt-opts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.axt-opt {
  height: 26px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
}
.axt-opt i {
  font-size: 13px;
}
.axt-opt:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt-opt.set {
  color: rgb(var(--primary-yellow));
}
.axt-adv {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgb(var(--text-secondary));
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.axt-adv input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: rgb(var(--primary-color));
}
.axt-go {
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  overflow-wrap: anywhere;
  transition: background 0.12s, box-shadow 0.15s;
}
.axt-go.buy {
  background: rgb(var(--increase));
  color: #06070b;
}
.axt-go.buy:hover {
  background: rgb(var(--increase-hover));
}
.axt-go.sell {
  background: rgb(var(--decrease));
  color: #fff;
}
.axt-go.sell:hover {
  background: rgb(var(--decrease-hover));
}
.axt-go.buy.fired {
  box-shadow: 0 0 0 4px rgb(var(--increase) / 0.3);
}
.axt-go.sell.fired {
  box-shadow: 0 0 0 4px rgb(var(--decrease) / 0.3);
}

/* position box */
.axt-posbox {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 4px;
  border: 1px solid rgb(var(--primary-stroke));
}
.axt-posbox > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-right: 1px solid rgb(var(--primary-stroke));
}
.axt-posbox > div:last-child {
  border-right: 0;
}
.axt-posbox > div > span {
  font-size: 10px;
  color: rgb(var(--text-secondary));
}
.axt-posbox .pv {
  display: flex;
  align-items: center;
  min-width: 0;
}
.axt-posbox b {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.axt-posbox i {
  font-size: 10px;
  font-weight: 500;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.axt-posbox b.up,
.axt-posbox i.up {
  color: rgb(var(--increase));
}
.axt-posbox b.dn,
.axt-posbox i.dn {
  color: rgb(var(--decrease));
}
.axt-posbox.hero {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.axt-posbox.hero .axt-pos-pnl {
  display: none;
}
.axt-posbox.hero > div:nth-child(3) {
  border-right: 0;
}
.axt-posbox .axt-sup {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-style: normal;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
}
.axt-posbox .axt-sup:empty {
  display: none;
}

/* PRESET 1 / 2 / 3 */
.axt-p123 {
  display: flex;
  gap: 4px;
}
.axt-p123 button {
  flex: 1 1 0;
  height: 24px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgb(var(--text-tertiary));
}
.axt-p123 button:hover {
  color: rgb(var(--text-secondary));
}
.axt-p123 button.on {
  color: rgb(var(--primary-color-hover));
  background: rgb(var(--primary-color) / 0.13);
}

/* Token Info */
.axt-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.axt-info-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}
.axt-info-h i {
  font-weight: 400;
  color: rgb(var(--text-secondary));
}
.axt-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.axt-tile {
  height: 54px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 4px;
  border: 1px solid rgb(var(--primary-stroke));
}
.axt-tile .v {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.axt-tile .v.good {
  color: rgb(var(--increase));
}
.axt-tile .v.bad {
  color: rgb(var(--decrease));
}
.axt-tile .l {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
}
.axt-carow {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 4px;
  border: 1px solid rgb(var(--primary-stroke));
  font-size: 12px;
  color: rgb(var(--text-secondary));
}
.axt-carow .k {
  flex: none;
  color: rgb(var(--text-tertiary));
}
.axt-carow .mono {
  flex: 1 1 auto;
  text-align: left;
  color: rgb(var(--text-primary));
}
.axt-carow:hover {
  color: rgb(var(--text-primary));
  border-color: rgb(var(--secondary-stroke));
}

/* ---------------------------------------------------------------------------------------------------------------
   4.4 YOUR PNL card, profit heat, fx
   --------------------------------------------------------------------------------------------------------------- */
.axt-hero {
  position: absolute;
  left: 10px;
  top: 60px;
  z-index: 1;
  pointer-events: none;
  transform-origin: top left;
  min-width: 176px;
  padding: 8px 12px 9px;
  border-radius: 8px;
  background: rgb(6 7 11 / 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgb(var(--secondary-stroke));
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.45);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.axt-hero-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--text-tertiary));
}
.axt-hero-x {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.axt-hero-v {
  margin-top: 3px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--text-primary));
}
.axt-hero-v small {
  margin-left: 5px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.72;
}
.axt-hero-s {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.axt-hero-pct {
  font-size: 14px;
  font-weight: 700;
  color: rgb(var(--text-primary));
}
.axt-hero-f {
  font-size: 11px;
  color: rgb(var(--text-secondary));
}
/* heat levels (data-heat on the card) */
.axt-hero[data-heat='-1'] .axt-hero-v,
.axt-hero[data-heat='-1'] .axt-hero-pct {
  color: rgb(var(--decrease));
}
.axt-hero[data-heat='1'] .axt-hero-v,
.axt-hero[data-heat='1'] .axt-hero-pct,
.axt-hero[data-heat='2'] .axt-hero-v,
.axt-hero[data-heat='2'] .axt-hero-pct,
.axt-hero[data-heat='3'] .axt-hero-v,
.axt-hero[data-heat='3'] .axt-hero-pct {
  color: rgb(var(--increase));
}
.axt-hero[data-heat='2'] {
  border-color: rgb(var(--increase) / 0.45);
}
.axt-hero[data-heat='2'] .axt-hero-v {
  text-shadow: 0 0 18px rgb(var(--increase) / 0.35);
}
.axt-hero[data-heat='2'] .axt-hero-x,
.axt-hero[data-heat='3'] .axt-hero-x {
  color: #06070b;
  background: rgb(var(--increase));
}
.axt-hero[data-heat='3'] {
  border-color: rgb(var(--increase) / 0.75);
  box-shadow: 0 0 0 1px rgb(var(--increase) / 0.25), 0 0 34px rgb(var(--increase) / 0.22), 0 10px 30px rgb(0 0 0 / 0.45);
}
.axt-hero[data-heat='3'] .axt-hero-v {
  font-size: 34px;
  text-shadow: 0 0 22px rgb(var(--increase) / 0.5);
}
.axt-hero[data-heat='4'] {
  border-color: rgb(var(--primary-yellow) / 0.8);
  box-shadow: 0 0 0 1px rgb(var(--primary-yellow) / 0.3), 0 0 44px rgb(var(--primary-yellow) / 0.25), 0 10px 30px rgb(0 0 0 / 0.45);
}
.axt-hero[data-heat='4'] .axt-hero-v {
  font-size: 38px;
  color: transparent;
  background: linear-gradient(100deg, rgb(var(--increase)) 0%, #fff3b0 30%, rgb(var(--primary-yellow)) 50%, rgb(var(--increase)) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: axt-shimmer 1.8s linear infinite;
  filter: drop-shadow(0 0 14px rgb(var(--primary-yellow) / 0.35));
}
.axt-hero[data-heat='4'] .axt-hero-v small,
.axt-hero[data-heat='4'] .axt-hero-pct {
  color: rgb(var(--primary-yellow));
}
.axt-hero[data-heat='4'] .axt-hero-x {
  color: #06070b;
  background: linear-gradient(90deg, rgb(var(--primary-yellow)), rgb(var(--primary-orange)));
}
@keyframes axt-shimmer {
  from {
    background-position: 110% 0;
  }
  to {
    background-position: -110% 0;
  }
}
.axt-hero.pop {
  animation: axt-pop 0.55s cubic-bezier(0.2, 1.7, 0.4, 1);
}
@keyframes axt-pop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

/* effects layer: the plot only */
.axt-fxl {
  position: absolute;
  left: 0;
  top: 0;
  right: 68px;
  bottom: 24px;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.axt-stamp {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  animation: axt-stamp 1.85s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes axt-stamp {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5) rotate(-8deg);
  }
  13% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.93) rotate(-4deg);
  }
  21% {
    transform: translate(-50%, -50%) scale(1.03) rotate(-4deg);
  }
  74% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-4deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -64%) scale(0.97) rotate(-4deg);
  }
}
.axt-stamp-x {
  font-size: min(92px, 13cqw);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: rgb(var(--increase));
  text-shadow: 0 0 34px rgb(var(--increase) / 0.6), 0 5px 0 rgb(0 0 0 / 0.35);
}
.axt-stamp.mid .axt-stamp-x {
  font-size: min(112px, 15cqw);
}
.axt-stamp.big .axt-stamp-x {
  font-size: min(136px, 18cqw);
  color: transparent;
  text-shadow: none;
  background: linear-gradient(180deg, #fffbe0 0%, rgb(var(--primary-yellow)) 48%, rgb(var(--primary-orange)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 26px rgb(var(--primary-yellow) / 0.6));
}

/* confetti */
.axt-burst {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 0;
  height: 0;
}
.axt-burst i {
  position: absolute;
  left: -4px;
  top: -6px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: rgb(var(--increase));
  opacity: 0;
  animation: axt-confetti 1.15s cubic-bezier(0.12, 0.75, 0.3, 1) forwards;
}
.axt-burst i.c1 {
  background: rgb(var(--primary-yellow));
}
.axt-burst i.c2 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--primary-color-hover));
}
@keyframes axt-confetti {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1.1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0px), calc(var(--dy, 0px) + 70px)) rotate(var(--r, 0deg)) scale(0.6);
  }
}

/* MIGRATED banner */
.axt-migban {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 13px;
  border-radius: 999px;
  font-size: 13px;
  color: rgb(var(--text-primary));
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(90deg, rgb(247 196 51 / 0.2), rgb(255 138 61 / 0.16)), rgb(6 7 11 / 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgb(var(--primary-yellow) / 0.75);
  box-shadow: 0 0 36px rgb(var(--primary-yellow) / 0.28), 0 12px 32px rgb(0 0 0 / 0.5);
  animation: axt-mig 4.2s ease forwards;
}
.axt-migban i {
  font-size: 19px;
  color: rgb(var(--primary-yellow));
}
.axt-migban b {
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgb(var(--primary-yellow));
}
.axt-migban::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -90px;
  width: 60px;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.35), transparent);
  animation: axt-shine 1.1s ease-in-out 0.35s 2;
}
@keyframes axt-shine {
  to {
    left: calc(100% + 90px);
  }
}
@keyframes axt-mig {
  0% {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.88);
  }
  8% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.05);
  }
  13% {
    transform: translate(-50%, 0) scale(1);
  }
  86% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   4.5 Instant Trade
   --------------------------------------------------------------------------------------------------------------- */
.it {
  display: flex;
  flex-direction: column;
  container: it / inline-size;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--font-ax);
  font-size: 12px;
  color: rgb(var(--text-primary));
  background: rgb(var(--background-secondary));
  border: 1px solid rgb(var(--secondary-stroke));
  border-radius: 8px;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.it .up {
  color: rgb(var(--increase));
}
.it .dn {
  color: rgb(var(--decrease));
}
.it-flex {
  flex: 1 1 auto;
  min-width: 4px;
}
.it.docked {
  position: relative;
  flex: none;
  margin: 8px 8px 0;
}
.it.floating {
  position: fixed;
  z-index: 640;
  width: 300px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.62), 0 0 0 1px rgb(0 0 0 / 0.35);
}
.it.floating.dragging {
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.72), 0 0 0 1px rgb(var(--primary-color) / 0.45);
}
.it.floating.compact {
  width: 264px;
}
.it.compact .it-head {
  flex-basis: 30px;
  height: 30px;
}
.it.compact .it-opts,
.it.compact .it-foot {
  display: none;
}
.it.compact .it-body {
  gap: 6px;
  padding: 7px 9px 6px;
}
.it.mini .it-pill:nth-child(n + 5) {
  display: none;
}
.it.mini .it-initk {
  display: none;
}
.it.mini .it-initrow {
  justify-content: flex-end;
  gap: 6px;
}

/* header */
.it-head {
  flex: 0 0 34px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 4px 0 2px;
  cursor: grab;
  border-bottom: 1px solid rgb(var(--primary-stroke));
  touch-action: none;
}
.it.dragging .it-head {
  cursor: grabbing;
}
.it-grip {
  flex: none;
  width: 16px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: rgb(var(--text-tertiary));
}
.it-ib {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 14px;
  color: rgb(var(--text-secondary));
  cursor: pointer;
}
.it-ib:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.it-ib.on {
  color: rgb(var(--primary-color-hover));
  background: rgb(var(--primary-color) / 0.15);
}
.it-ptabs {
  flex: none;
  display: flex;
  gap: 1px;
  margin: 0 3px;
}
.it-ptab {
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--text-tertiary));
  cursor: pointer;
}
.it-ptab:hover {
  color: rgb(var(--text-secondary));
}
.it-ptab.on {
  color: rgb(var(--primary-color-hover));
  background: rgb(var(--primary-color) / 0.16);
}

/* body */
.it-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 7px;
}
.it-sec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.it-sh {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  min-width: 0;
  font-size: 11px;
  color: rgb(var(--text-secondary));
  white-space: nowrap;
}
.it-st {
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--text-primary));
}
.it-cur {
  display: inline-flex;
  padding: 1px;
  border-radius: 4px;
  background: rgb(var(--background-tertiary));
}
.it-cur button {
  height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  color: rgb(var(--text-tertiary));
}
.it-cur button.on {
  color: rgb(var(--text-primary));
  background: rgb(var(--secondary-stroke));
}
.it-pctt {
  height: 16px;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  color: rgb(var(--text-secondary));
  background: rgb(var(--background-tertiary));
}
.it-bal {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--text-primary));
  font-variant-numeric: tabular-nums;
}
/* holdings: the $ and SOL parts wrap onto the clipped second line whole instead of being cut */
.it-hold {
  display: inline-flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  height: 18px;
  min-width: min-content;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.it-hold > span {
  height: 18px;
  display: inline-flex;
  align-items: center;
}
.it-hold > span:first-child {
  flex-shrink: 0;
  font-weight: 500;
  color: rgb(var(--text-primary));
}
.it-hv {
  gap: 4px;
}
.it-dot {
  font-style: normal;
  color: rgb(var(--text-tertiary));
}

/* pills */
.it-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.it-pill {
  height: 26px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.1s, color 0.1s, border-color 0.1s, transform 0.07s;
}
.it-pill:active {
  transform: scale(0.93);
}
.it-pill.buy {
  color: rgb(var(--increase));
  border-color: rgb(var(--increase) / 0.5);
}
.it-pill.buy:hover {
  color: rgb(var(--increase-hover));
  background: rgb(var(--increase) / 0.07);
}
.it-pill.sell {
  color: rgb(var(--decrease));
  border-color: rgb(var(--decrease) / 0.5);
}
.it-pill.sell:hover {
  color: rgb(var(--decrease-hover));
  background: rgb(var(--decrease) / 0.07);
}
.it-pill.buy.fired {
  color: #06070b;
  background: rgb(var(--increase));
  border-color: rgb(var(--increase));
  transition: none;
}
.it-pill.sell.fired {
  color: #fff;
  background: rgb(var(--decrease));
  border-color: rgb(var(--decrease));
  transition: none;
}
.it-pills.empty .it-pill:not(.fired):not(.ed) {
  opacity: 0.5;
}
/* amount editor pills */
.it-pill.ed,
.it-pill.ed:hover {
  gap: 1px;
  padding: 0 8px;
  cursor: text;
  color: rgb(var(--text-primary));
  border-color: rgb(var(--primary-color));
  background: rgb(var(--primary-color) / 0.22);
}
.it-pill.ed:active {
  transform: none;
}
.it-pill.ed:focus-within {
  background: rgb(var(--primary-color) / 0.38);
  box-shadow: 0 0 0 2px rgb(var(--primary-color) / 0.35);
}
.it-pin {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.it-pill.ed em {
  flex: none;
  font-style: normal;
  font-size: 11px;
  color: rgb(var(--text-secondary));
}

/* options strip and settings editor */
.it-opts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  height: 22px;
  border-radius: 4px;
  font-size: 11px;
  color: rgb(var(--text-secondary));
  cursor: pointer;
}
.it-opts:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--background-tertiary));
}
.it-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.it-o i {
  font-size: 12px;
  color: rgb(var(--text-tertiary));
}
.it-o.set,
.it-o.set i {
  color: rgb(var(--primary-yellow));
}
.it-gear {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 6px;
  padding: 8px;
  border-radius: 6px;
  background: rgb(var(--background-tertiary) / 0.55);
  border: 1px solid rgb(var(--primary-stroke));
}
.it-gf {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 10px;
  color: rgb(var(--text-tertiary));
}
.it-gv {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--ax-bg);
  border: 1px solid rgb(var(--secondary-stroke));
}
.it-gv:focus-within {
  border-color: rgb(var(--primary-color));
}
.it-gin {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
  color: rgb(var(--text-primary));
  font-variant-numeric: tabular-nums;
}
.it-gv em {
  font-style: normal;
  font-size: 10px;
  color: rgb(var(--text-tertiary));
}
.it-gear > .it-gf:nth-child(4) {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.it-mev {
  display: flex;
  gap: 3px;
}
.it-mev button {
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid rgb(var(--primary-stroke));
  font-size: 11px;
  color: rgb(var(--text-secondary));
}
.it-mev button:hover {
  color: rgb(var(--text-primary));
}
.it-mev button.on {
  color: rgb(var(--primary-color-hover));
  background: rgb(var(--primary-color) / 0.12);
  border-color: rgb(var(--primary-color) / 0.7);
}
.it-gnote {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  line-height: 1.3;
  color: rgb(var(--text-tertiary));
}
.it-gnote button {
  flex: none;
  height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgb(var(--primary-color));
}
.it-gnote button:hover {
  background: rgb(var(--primary-color-hover));
}

/* Sell Init. row */
.it-initrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 18px;
  font-size: 11px;
  color: rgb(var(--text-tertiary));
}
.it-initk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.it-initk b {
  font-weight: 500;
  color: rgb(var(--text-secondary));
  font-variant-numeric: tabular-nums;
}
.it-clip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  color: rgb(var(--decrease));
  background: rgb(var(--decrease) / 0.1);
  border: 1px solid rgb(var(--decrease) / 0.3);
}
.it-clip i {
  font-size: 11px;
}
.it-clip b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.it-init {
  height: 18px;
  padding: 0 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgb(var(--primary-color-hover));
  cursor: pointer;
}
.it-init:hover {
  text-decoration: underline;
}
.it-init.off {
  color: rgb(var(--text-tertiary));
}
.it-init.fired {
  color: rgb(var(--decrease));
}

/* quote tip over a pill */
.it-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  transform: translate(-50%, -100%);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--text-secondary));
  background: rgb(var(--background-tertiary));
  border: 1px solid rgb(var(--secondary-stroke));
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.55);
}
.it-tip b {
  font-weight: 600;
  color: rgb(var(--text-primary));
}
.it-tip b.hi {
  color: rgb(var(--decrease));
}

/* footer */
.it-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  border-top: 1px solid rgb(var(--primary-stroke));
}
.it-foot.hero {
  grid-template-columns: 1fr 1fr 1fr;
}
.it-foot.hero .it-fc.pnl {
  display: none;
}
.it-foot.hero .it-fc:nth-child(3) {
  border-right: 0;
}
.it-fc {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px 7px;
  border-right: 1px solid rgb(var(--primary-stroke));
}
.it-fc:last-child {
  border-right: 0;
}
.it-fc > span {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  color: rgb(var(--text-tertiary));
  white-space: nowrap;
}
.it-fc > span i {
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.it-fv {
  display: flex;
  align-items: center;
  min-width: 0;
}
.it-fv b {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* panel heat (data-heat "0".."4") */
.it[data-heat='2'] .it-fc.pnl b {
  text-shadow: 0 0 12px rgb(var(--increase) / 0.5);
}
.it[data-heat='3'],
.it[data-heat='4'] {
  border-color: rgb(var(--increase) / 0.6);
  box-shadow: 0 0 0 1px rgb(var(--increase) / 0.18), 0 0 28px rgb(var(--increase) / 0.16);
}
.it.floating[data-heat='3'],
.it.floating[data-heat='4'] {
  box-shadow: 0 0 0 1px rgb(var(--increase) / 0.2), 0 0 32px rgb(var(--increase) / 0.2), 0 18px 50px rgb(0 0 0 / 0.62);
}
.it[data-heat='3'] .it-fc.pnl b,
.it[data-heat='4'] .it-fc.pnl b {
  text-shadow: 0 0 14px rgb(var(--increase) / 0.65);
}
.it[data-heat='4'] .it-fc.pnl b,
.it[data-heat='4'] .it-fc.pnl i {
  color: rgb(var(--primary-yellow));
}

/* migrating */
.it.is-migrating .it-cur,
.it.is-migrating .it-tip {
  display: none;
}
.it.is-migrating .it-pill,
.it.is-migrating .it-pill:hover {
  color: rgb(var(--text-tertiary));
  border-color: rgb(var(--secondary-stroke));
  background: none;
  cursor: not-allowed;
}
.it.is-migrating .it-pill:active {
  transform: none;
}
.it.is-migrating .it-init,
.it.is-migrating .it-init:hover {
  color: rgb(var(--text-tertiary));
  cursor: not-allowed;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------------------------------------------
   4.6 Responsive rules (the page root .axt is the "axt" container, Instant Trade the "it" container)
   --------------------------------------------------------------------------------------------------------------- */
@container axt (max-width: 1020px) {
  .axt-pane[data-pane='positions'] .axt-th,
  .axt-pane[data-pane='positions'] .axt-tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) 128px;
  }
  .axt-pane[data-pane='positions'] .axt-th > :first-child,
  .axt-pane[data-pane='positions'] .axt-tr > .c-tok {
    grid-column: 1 / -1;
  }
  .axt-pane[data-pane='positions'] .axt-th {
    flex-basis: auto;
    height: auto;
    row-gap: 2px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}
@container axt (max-width: 940px) {
  .axt-pane[data-pane='trades'] .axt-th,
  .axt-pane[data-pane='trades'] .axt-tr {
    grid-template-columns: 44px 40px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 14px;
  }
  .axt-pane[data-pane='trades'] .c-amt {
    display: none;
  }
  .axt-trade,
  .axt-info,
  .axt-sbox {
    padding-left: 10px;
    padding-right: 10px;
  }
  .axt-pane[data-pane='devtok'] .axt-th,
  .axt-pane[data-pane='devtok'] .axt-tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .axt-pane[data-pane='devtok'] .axt-th > :first-child,
  .axt-pane[data-pane='devtok'] .axt-tr > .c-tok {
    grid-column: 1 / -1;
  }
  .axt-pane[data-pane='devtok'] .axt-th {
    flex-basis: auto;
    height: auto;
    row-gap: 2px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .axt-hero-v {
    font-size: 24px;
  }
  .axt-hero[data-heat='3'] .axt-hero-v,
  .axt-hero[data-heat='4'] .axt-hero-v {
    font-size: 27px;
  }
}
@container axt (max-width: 720px) {
  .axt-wchip {
    padding: 0 7px;
  }
  .axt-ot {
    padding: 0 6px;
  }
  .axt-opt span {
    display: none;
  }
  .axt-pill {
    font-size: 11px;
  }
  .axt-hero {
    min-width: 0;
    padding: 5px 8px 6px;
  }
  .axt-hero-h {
    justify-content: flex-start;
  }
  .axt-hero-k,
  .axt-hero-f {
    display: none;
  }
  .axt-hero-v,
  .axt-hero[data-heat='3'] .axt-hero-v,
  .axt-hero[data-heat='4'] .axt-hero-v {
    font-size: 20px;
  }
  .axt-hero-v small {
    font-size: 11px;
  }
  .axt-hero-pct {
    font-size: 12px;
  }
  .axt-migban {
    height: 34px;
    padding: 0 13px 0 10px;
    font-size: 12px;
  }
  .axt-migban .tk {
    display: none;
  }
}
@container it (max-width: 276px) {
  .it:not(.compact) .it-grip {
    display: none;
  }
  .it-head {
    padding-left: 4px;
  }
  .it-body {
    padding: 7px 8px 6px;
  }
  .it-pills {
    gap: 4px;
  }
  .it-pill {
    font-size: 12px;
  }
  .it-cur,
  .it-dot,
  .it-hold > .it-hv:last-child {
    display: none;
  }
  .it-fc {
    padding: 5px 6px 6px;
  }
  .it-fv b {
    font-size: 11px;
  }
}
@container it (max-width: 240px) {
  .it-ptabs {
    margin: 0 1px;
  }
  .it-ptab {
    padding: 0 5px;
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   4.7 Reduced motion
   --------------------------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .axt-hero[data-heat='4'] .axt-hero-v,
  .axt-hero.pop {
    animation: none;
  }
  .axt-burst {
    display: none;
  }
}

/* ---- src/css/axiom-token/search.css ---- */
/* TX Arena: the ANXIOM token search modal (TX.search). Spec: docs/specs/axiom-search.md section 4.
   Part 3 of public/css/axiom-token.css (after chart.css and panels.css; assembled by tools/assemble.cjs).
   Covers: the backdrop over the ANXIOM pane, the modal (top bar, chips row, head, list, empty state, footer), result
   rows (picture + launchpad corner badge, info lines, age pill, numbers, quick-buy button in four sizes), the hover
   preview card, the container queries on the modal's own width (4.5) and the shared .axs-sol glyph.
   Tokens are "R G B" triplets from base.css (rgb(var(--x))); --pair-* come from the shell part, --pad-* from TX.pads. */

/* ---------------------------------------------------------------------------------------------------------------------
   Shared bits: launchpad colour default (an inline --plat from TX.pads overrides it)
   --------------------------------------------------------------------------------------------------------------------- */
.axs-backdrop [data-platform],
.axs-pchip {
  --plat: var(--pad-pump, #4fd18b);
}

/* SOL glyph (defined for this modal, used by the token page) */
.axs-sol {
  display: inline-block;
  flex-shrink: 0;
  width: 0.95em;
  height: 0.76em;
  margin-right: 3px;
  vertical-align: -0.04em;
  background: linear-gradient(100deg, #9945ff, #5d8bf2 50%, #14f195);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M3.4 0H20l-3.4 3.4H0zM0 6.3h16.6L20 9.7H3.4zM3.4 12.6H20L16.6 16H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M3.4 0H20l-3.4 3.4H0zM0 6.3h16.6L20 9.7H3.4zM3.4 12.6H20L16.6 16H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Backdrop (4.4): fixed over the #axiom rectangle (inline left/top/width/height from place()), z-index 700
   --------------------------------------------------------------------------------------------------------------------- */
.axs-backdrop {
  position: fixed;
  z-index: 700;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 7vh 16px 16px;
  background: rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  font-family: var(--font-ax);
  color: rgb(var(--text-primary));
  font-size: 13px;
}
.axs-backdrop kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  border: 1px solid rgb(var(--secondary-stroke));
  background: rgb(var(--background-tertiary));
  color: rgb(var(--text-secondary));
}

/* ---------------------------------------------------------------------------------------------------------------------
   Modal: an inline-size query container named axs (4.5 reacts to the modal's width, not the viewport's)
   --------------------------------------------------------------------------------------------------------------------- */
.axs-modal {
  width: 720px;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  container-type: inline-size;
  container-name: axs;
  background: rgb(var(--background-secondary));
  border: 1px solid rgb(var(--secondary-stroke));
  border-radius: 8px;
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.7);
  animation: axs-in 0.12s ease-out;
}
@keyframes axs-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* top bar */
.axs-top {
  flex: 0 0 54px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid rgb(var(--primary-stroke));
}
.axs-ico {
  font-size: 19px;
  color: rgb(var(--text-secondary));
}
.axs-in {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: none;
  font-size: 16px;
  color: rgb(var(--text-primary));
}
.axs-in::placeholder {
  color: rgb(var(--text-tertiary));
}
.axs-clear {
  color: rgb(var(--text-tertiary));
  font-size: 17px;
  line-height: 1;
}
.axs-clear:hover {
  color: rgb(var(--text-secondary));
}
.axs-esc {
  cursor: pointer;
}

/* chips row: sort chips left, launchpad chips right */
.axs-chips {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgb(var(--primary-stroke));
}
.axs-sorts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.axs-sl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 3px;
  font-size: 11px;
  color: rgb(var(--text-tertiary));
}
.axs-chip {
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgb(var(--secondary-stroke));
  color: rgb(var(--text-secondary));
}
.axs-chip:hover {
  color: rgb(var(--text-primary));
}
.axs-chip.on {
  color: rgb(var(--primary-color-hover));
  border-color: rgb(var(--primary-color));
  background: rgb(var(--primary-color) / 0.14);
}
.axs-plats {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.axs-pchip {
  width: 27px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid rgb(var(--primary-stroke));
  color: rgb(var(--text-tertiary));
  font-size: 13px;
}
.axs-pchip span {
  display: none;
}
.axs-pchip i {
  color: color-mix(in srgb, var(--plat) 55%, transparent);
}
.axs-pchip:hover i {
  color: var(--plat);
}
.axs-pchip.on {
  color: var(--plat);
  border-color: color-mix(in srgb, var(--plat) 70%, transparent);
  background: color-mix(in srgb, var(--plat) 13%, transparent);
}
.axs-pchip.on i {
  color: var(--plat);
}

/* head line */
.axs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 16px 5px;
}
.axs-label {
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--text-secondary));
}
.axs-count {
  font-size: 11px;
  color: rgb(var(--text-tertiary));
}

/* list */
.axs-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 6px 6px;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Rows (4.4): picture | info | age | MC | V | L | holders | quick buy
   --------------------------------------------------------------------------------------------------------------------- */
.axs-row {
  --axs-info-min: 122px; /* fits the longest ticker (13 chars) at 14px semibold: a ticker is never split */
  display: grid;
  grid-template-columns: 44px minmax(var(--axs-info-min), 1fr) 74px 82px 74px 70px 54px auto;
  align-items: center;
  column-gap: 10px;
  min-height: 60px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.axs-row + .axs-row {
  margin-top: 1px;
}
.axs-row.sel {
  background: rgb(var(--background-tertiary));
  box-shadow: inset 2px 0 0 rgb(var(--primary-color));
}

/* picture with the launchpad ring and corner badge */
.axs-av {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 4px;
  border: 1px solid var(--plat);
}
.axs-av img {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
  background: rgb(var(--background-tertiary));
}
.axs-av-b {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
  line-height: 1;
  color: var(--plat);
  border: 1px solid var(--plat);
  background: color-mix(in srgb, var(--plat) 18%, rgb(var(--background-secondary)));
  box-shadow: 0 0 0 1.5px rgb(var(--background-secondary));
}
.axs-row.sel .axs-av-b {
  box-shadow: 0 0 0 1.5px rgb(var(--background-tertiary));
}

/* info column */
.axs-info {
  min-width: 0;
}
.axs-l1 {
  display: flow-root;
  min-width: 0;
  line-height: 17px;
  overflow-wrap: break-word;
}
.axs-tk {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  margin-right: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}
.axs-nw {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  padding-top: 1px;
}
.axs-nm {
  font-size: 13px;
  color: rgb(var(--text-secondary));
}
.axs-you {
  display: inline-block;
  vertical-align: top;
  margin: 2px 0 0 6px;
  line-height: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgb(var(--primary-color));
  color: #fff;
}
.axs-l2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: rgb(var(--text-tertiary));
  white-space: nowrap;
  overflow: hidden;
}
.axs-l2 .cb-pair,
.axs-l2 .cb-fee {
  height: 16px;
  font-size: 10px;
  flex-shrink: 0;
}
.axs-ca {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
}
.axs-ca:hover {
  color: rgb(var(--text-primary));
}
.axs-soc {
  font-size: 13px;
  line-height: 1;
  color: rgb(var(--text-secondary));
}
.axs-soc:hover {
  color: rgb(var(--text-primary));
}
.axs-mig {
  font-size: 13px;
  line-height: 1;
  color: rgb(var(--primary-yellow));
}

/* age pill, coloured by bucket */
.axs-age {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.axs-age i {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
}
.axs-age.a-s,
.axs-age.a-m {
  color: rgb(var(--increase));
  background: rgb(var(--increase) / 0.1);
}
.axs-age.a-h {
  color: rgb(var(--primary-light-blue));
  background: rgb(var(--primary-light-blue) / 0.1);
}
.axs-age.a-d {
  color: rgb(var(--primary-yellow));
  background: rgb(var(--primary-yellow) / 0.1);
}
.axs-age.a-mo {
  color: rgb(var(--primary-orange));
  background: rgb(var(--primary-orange) / 0.13);
}
.axs-age.a-y {
  color: #ff6a3d;
  background: rgb(255 106 61 / 0.17);
  box-shadow: inset 0 0 0 1px rgb(255 106 61 / 0.4);
}

/* numbers */
.axs-num {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
  min-width: 0;
}
.axs-num .k {
  font-size: 11px;
  color: rgb(var(--text-tertiary));
}
.axs-num b {
  font-size: 13px;
  font-weight: 600;
}
.axs-num.mc b {
  color: rgb(var(--primary-light-blue));
}
.axs-num.mc b.up {
  color: rgb(var(--increase));
}
.axs-num.mc b.dn {
  color: rgb(var(--decrease));
}
.axs-num.hold {
  align-items: center;
  color: rgb(var(--text-secondary));
}
.axs-num.hold i {
  font-size: 12px;
}
.axs-num.hold b {
  font-weight: 500;
  color: rgb(var(--text-primary));
}

/* quick buy: "small" is the base; data-qb on the modal picks the size */
.axs-qb {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgb(var(--primary-color));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.12s, transform 0.06s, box-shadow 0.15s;
}
.axs-qb:hover {
  background: rgb(var(--primary-color-hover));
}
.axs-qb:active {
  transform: scale(0.95);
}
.axs-qb.fired {
  box-shadow: 0 0 0 4px rgb(var(--primary-color) / 0.35);
}
.axs-modal[data-qb='large'] .axs-qb {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}
.axs-modal[data-qb='mega'] .axs-qb {
  height: 38px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 14px;
}
.axs-modal[data-qb='ultra'] .axs-qb {
  height: 46px;
  min-width: 96px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
}
.axs-modal[data-qb='mega'] .axs-row,
.axs-modal[data-qb='ultra'] .axs-row {
  min-height: 64px;
}
.axs-modal.no-qb .axs-qb {
  display: none; /* the last grid column collapses; the gap stays */
}

/* ---------------------------------------------------------------------------------------------------------------------
   Empty state and footer
   --------------------------------------------------------------------------------------------------------------------- */
.axs-empty {
  padding: 34px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  color: rgb(var(--text-secondary));
}
.axs-empty > i {
  font-size: 28px;
  line-height: 1;
  color: rgb(var(--text-tertiary));
}
.axs-empty .t {
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--text-primary));
}
.axs-empty .s {
  font-size: 12px;
}

.axs-foot {
  flex: 0 0 34px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-top: 1px solid rgb(var(--primary-stroke));
  font-size: 11px;
  color: rgb(var(--text-tertiary));
  white-space: nowrap;
  overflow: hidden;
}
.axs-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.axs-foot b {
  color: rgb(var(--text-secondary));
  font-weight: 600;
}
.axs-foot > .axs-flex {
  flex: 1 1 auto;
}
.axs-sim {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 3px;
  color: rgb(var(--primary-yellow));
  border: 1px solid rgb(var(--primary-yellow) / 0.45);
}

/* ---------------------------------------------------------------------------------------------------------------------
   Hover preview (3.11): absolute child of the backdrop, inline left / top
   --------------------------------------------------------------------------------------------------------------------- */
.axs-prev {
  position: absolute;
  z-index: 3;
  width: 176px;
  height: 176px;
  overflow: hidden;
  pointer-events: none;
  border-radius: 10px;
  background: rgb(var(--background-tertiary));
  border: 1px solid rgb(var(--secondary-stroke));
  box-shadow: 0 20px 54px rgb(0 0 0 / 0.7);
  animation: axs-in 0.1s ease-out;
}
.axs-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.axs-prev span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 2px 7px;
  border-radius: 4px;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  background: rgb(0 0 0 / 0.65);
  color: #fff;
}

/* ---------------------------------------------------------------------------------------------------------------------
   Responsive column sets (4.5): the query measures the modal's content box (outer width - 2 px of border)
   --------------------------------------------------------------------------------------------------------------------- */
@container axs (max-width: 716px) {
  .axs-row {
    grid-template-columns: 40px minmax(var(--axs-info-min), 1fr) 66px 74px auto;
  }
  .axs-num.vol,
  .axs-num.liq,
  .axs-num.hold,
  .axs-plats {
    display: none;
  }
}
@container axs (max-width: 420px) {
  .axs-row {
    grid-template-columns: 40px minmax(var(--axs-info-min), 1fr) 74px auto;
  }
  .axs-age {
    display: none;
  }
}
