/* Barbell Launchpad.
 *
 * Its own stylesheet, imported by the launchpad chunk rather than linked in v2.html, so it costs
 * nothing to anyone who never opens it. It borrows the design tokens from app.css (spacing, type
 * scale, --safe/--degen) and defines its own surface on top, because this is a different product from
 * the trading app: full width, dark, a wall of cards.
 *
 * The foil pastels are the brand's, same as the House page. Everything else is deliberately quiet so
 * the cards are the loudest thing on screen.
 */
.lpx {
  --lpx-bg: #07070A;
  --lpx-panel: #0E0E13;
  --lpx-panel-2: #14141B;
  --lpx-line: rgba(255, 255, 255, .09);
  --lpx-line-2: rgba(255, 255, 255, .16);
  --lpx-txt: #F4F4F6;
  --lpx-mute: #9A9AA6;
  --lpx-dim: #6B6B77;
  --foil-a: #c9b8ff;
  --foil-b: #9ff0d6;
  --foil-c: #ffc9a8;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--lpx-bg);
  color: var(--lpx-txt);
  font: var(--t-body);
  -webkit-font-smoothing: antialiased;
}

/* A soft wash behind the top of the page. One gradient, no images: the cards carry the colour. */
.lpx::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 560px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 70% at 15% 0%, rgba(201, 184, 255, .10), transparent 70%),
    radial-gradient(50% 60% at 85% 0%, rgba(159, 240, 214, .07), transparent 70%);
}
.lpx > * { position: relative; z-index: 1; }

/* ── nav ─────────────────────────────────────────────────────────────────────────────────────── */
.lpx-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--lpx-line);
  background: rgba(7, 7, 10, .82);
  backdrop-filter: blur(14px);
}
.lpx-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--lpx-txt);
  font: 600 19px/1 var(--serif, var(--sans));
  letter-spacing: -.02em;
  flex: none;
}
.lpx-brand img { align-self: center; border-radius: 6px }
.lpx-brand i {
  font: var(--t-label);
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--foil-a);
}
.lpx-nav-links { display: flex; align-items: center; gap: 4px; margin-left: var(--s3) }
.lpx-nav-links a,
.lpx-nav-links button {
  background: none;
  border: 0;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--lpx-mute);
  font: var(--t-small);
  text-decoration: none;
  cursor: pointer;
  transition: color .12s, background .12s;
}
.lpx-nav-links a:hover,
.lpx-nav-links button:hover { color: var(--lpx-txt); background: var(--lpx-panel) }
.lpx-nav-links button.on { color: var(--lpx-txt); background: var(--lpx-panel-2) }

.lpx-nav-r { display: flex; align-items: center; gap: 8px; margin-left: auto }
.lpx-search {
  width: 210px;
  background: var(--lpx-panel);
  border: 1px solid var(--lpx-line);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--lpx-txt);
  font: var(--t-small);
  outline: none;
  transition: border-color .12s, width .18s;
}
.lpx-search:focus { border-color: var(--lpx-line-2); width: 260px }
.lpx-search::placeholder { color: var(--lpx-dim) }

.lpx-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 15px;
  font: 600 13px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .12s, background .12s;
}
.lpx-btn:disabled { opacity: .35; cursor: not-allowed }
.lpx-btn.primary { background: linear-gradient(100deg, #c9b8ff, #9ff0d6, #ffc9a8); color: #000 }
.lpx-btn.primary:hover:not(:disabled) { opacity: .9 }
.lpx-btn.ghost { background: transparent; color: var(--lpx-mute); border: 1px solid var(--lpx-line-2) }
.lpx-btn.ghost:hover { color: var(--lpx-txt) }
.lpx-btn.lg { padding: 14px 22px; font-size: 15px; border-radius: 12px }

/* ── main column ─────────────────────────────────────────────────────────────────────────────── */
.lpx-main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s6) max(16px, env(safe-area-inset-left)) var(--s7) max(16px, env(safe-area-inset-right));
}

/* ── hero ────────────────────────────────────────────────────────────────────────────────────── */
.lpx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
  padding-bottom: var(--s6);
}
.lpx-hero h1 {
  margin: 0;
  font: 600 clamp(30px, 4.4vw, 52px)/1.04 var(--sans);
  letter-spacing: -.03em;
  max-width: 17ch;
}
.lpx-hero p {
  margin: var(--s4) 0 0;
  max-width: 54ch;
  font: var(--t-body);
  color: var(--lpx-mute);
}
.lpx-hero-cta { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s5); flex-wrap: wrap }
.lpx-hero-cta span { font: var(--t-cap); color: var(--lpx-dim) }

.lpx-hero-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px }
.lpx-hero-pts li {
  padding: var(--s4);
  background: var(--lpx-panel);
  border: 1px solid var(--lpx-line);
  border-radius: var(--radius);
  font: var(--t-small);
  color: var(--lpx-mute);
}
.lpx-hero-pts b { display: block; color: var(--lpx-txt); font-weight: 600; margin-bottom: 3px }

/* ── banner: one at a time, never a stack ────────────────────────────────────────────────────── */
.lpx-banner {
  margin: 0 0 var(--s5);
  padding: 13px 16px;
  border: 1px dashed var(--lpx-line-2);
  border-radius: var(--radius-sm);
  background: var(--lpx-panel);
  font: var(--t-small);
  color: var(--lpx-mute);
}

/* ── controls ────────────────────────────────────────────────────────────────────────────────── */
.lpx-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  padding: var(--s3) 0 var(--s4);
  border-top: 1px solid var(--lpx-line);
}
.lpx-chips { display: flex; gap: 6px; flex-wrap: wrap }
.lpx-sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.lpx-sort > span {
  font: var(--t-label);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--lpx-dim);
  margin-right: 2px;
}
.lpx-chip {
  background: var(--lpx-panel);
  border: 1px solid var(--lpx-line);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--lpx-mute);
  font: var(--t-small);
  cursor: pointer;
  transition: color .12s, background .12s, border-color .12s;
}
.lpx-chip:hover:not(:disabled) { color: var(--lpx-txt); border-color: var(--lpx-line-2) }
.lpx-chip.on { background: var(--lpx-txt); border-color: var(--lpx-txt); color: #000; font-weight: 600 }
.lpx-chip:disabled { opacity: .3; cursor: not-allowed }

/* ── the grid ────────────────────────────────────────────────────────────────────────────────── */
.lpx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: var(--s3);
}
.lpx-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  width: 100%;
  text-align: left;
  padding: var(--s4);
  border: 1px solid var(--lpx-line);
  border-radius: var(--radius);
  background: var(--lpx-panel);
  color: var(--lpx-txt);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color .14s, background .14s, transform .14s;
}
.lpx-card:hover { background: var(--lpx-panel-2); border-color: var(--lpx-line-2); transform: translateY(-2px) }
/* A graduated coin gets the foil ring: it is the one state worth looking twice at. */
.lpx-card.graduated::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  z-index: -1;
  background: conic-gradient(from var(--hs-a, 0deg), var(--foil-a), var(--foil-b), var(--foil-c), #e8e8f0, var(--foil-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .75;
  animation: hs-spin 14s linear infinite;
}
.lpx-card.skel { height: 196px; cursor: default; animation: v2pulse 1.2s ease-in-out infinite }
.lpx-card.skel:hover { transform: none; background: var(--lpx-panel) }

.lpx-card-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center }
.lpx-card-head img { border-radius: 10px }
.lpx-card-id { min-width: 0 }
.lpx-card-id b {
  display: block;
  font: var(--t-num-md);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lpx-card-id i {
  display: block;
  font: var(--t-cap);
  font-style: normal;
  color: var(--lpx-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lpx-tag {
  font: var(--t-label-sm);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #000;
  background: var(--foil-b);
  border-radius: 999px;
  padding: 4px 8px;
}

.lpx-card-cap em { display: block; font: var(--t-num-lg); font-style: normal; letter-spacing: -.02em }
.lpx-card-cap i { display: block; font: var(--t-label-sm); font-style: normal; color: var(--lpx-dim); margin-top: 2px }

/* The line that makes this launchpad different from every other one. */
.lpx-pair {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  background: rgba(201, 184, 255, .08);
  border: 1px solid rgba(201, 184, 255, .16);
}
.lpx-pair span { font: var(--t-label-sm); text-transform: uppercase; letter-spacing: .12em; color: var(--lpx-dim) }
.lpx-pair b { font: var(--t-num-xs); color: var(--foil-a); min-width: 0; overflow: hidden; text-overflow: ellipsis }

.lpx-prog i { display: block; margin-top: 6px; font: var(--t-cap); font-style: normal; color: var(--lpx-dim) }
.lpx-bar { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden }
.lpx-bar i {
  display: block;
  height: 100%;
  margin: 0;
  background: linear-gradient(90deg, var(--foil-a), var(--foil-c));
  transition: width .6s ease;
}

.lpx-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.lpx-badges span {
  font: var(--t-label-sm);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lpx-mute);
  border: 1px solid var(--lpx-line);
  border-radius: 999px;
  padding: 4px 8px;
}
.lpx-badges span.dim { border-color: transparent; color: var(--lpx-dim); padding-left: 2px }

.lpx-empty {
  padding: var(--s7) 0;
  text-align: center;
  font: var(--t-small);
  color: var(--lpx-dim);
}

/* ── a single screen: create, coin, basket ───────────────────────────────────────────────────── */
.lpx-page { max-width: 680px; margin: 0 auto }
.lpx-back {
  background: none;
  border: 0;
  padding: 0 0 var(--s4);
  color: var(--lpx-mute);
  font: var(--t-small);
  cursor: pointer;
}
.lpx-back:hover { color: var(--lpx-txt) }

/* ── footer ──────────────────────────────────────────────────────────────────────────────────── */
.lpx-foot {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  padding: var(--s5) max(16px, env(safe-area-inset-left)) calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--lpx-line);
  font: var(--t-cap);
  color: var(--lpx-mute);
}
.lpx-foot a { color: var(--lpx-mute); text-decoration: none }
.lpx-foot a:hover { color: var(--lpx-txt) }
.lpx-foot .dim { color: var(--lpx-dim); margin-left: auto }

/* ── the screens' own furniture, scoped here so the page owns its look ───────────────────────── */
.lpx-page .lp-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin: var(--s5) 0 var(--s2);
  padding-bottom: 6px;
  position: relative;
  font: 600 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lpx-txt);
}
.lpx-page .lp-h::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--foil-a), var(--foil-b) 40%, transparent 80%);
  opacity: .7;
}
.lpx-page .lp-h-n { font: var(--t-cap); letter-spacing: 0; text-transform: none; color: var(--lpx-mute); text-align: right }

.lpx-page .lp-note {
  margin: var(--s2) 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--lpx-line-2);
  background: var(--lpx-panel);
  font: var(--t-small);
  color: var(--lpx-mute);
}
.lpx-page .lp-note b { color: var(--lpx-txt); font-weight: 600 }
.lpx-page .lp-note.err { border-color: rgba(255, 90, 60, .5); color: var(--lpx-txt) }
.lpx-page .lp-empty { padding: 14px 0; font: var(--t-small); color: var(--lpx-dim) }
.lpx-page .lp-fine { margin: var(--s2) 0; font: var(--t-cap); color: var(--lpx-dim); line-height: 1.6 }
.lpx-page .lp-fine b { color: var(--lpx-mute); font-weight: 600 }

.lpx-page .lp-hero { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; margin: var(--s3) 0 }
.lpx-page .lp-hero-id b { display: block; font: var(--t-title) }
.lpx-page .lp-hero-id i { display: block; font: var(--t-cap); font-style: normal; color: var(--lpx-mute) }
.lpx-page .lp-hero-n { text-align: right }
.lpx-page .lp-hero-n em { display: block; font: var(--t-num-md); font-style: normal }
.lpx-page .lp-hero-n i { display: block; font: var(--t-label-sm); font-style: normal; color: var(--lpx-dim) }

.lpx-page .lp-bar { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden }
.lpx-page .lp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--foil-a), var(--foil-c)); transition: width .6s ease }
.lpx-page .lp-track-wrap { margin: var(--s3) 0 }
.lpx-page .lp-track-l { display: flex; justify-content: space-between; gap: var(--s3); margin-top: 6px; font: var(--t-cap); color: var(--lpx-mute) }

.lpx-page .lp-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px;
  border: 1px solid var(--lpx-line);
  border-radius: var(--radius-sm);
  background: var(--lpx-panel);
  color: var(--lpx-txt);
  cursor: pointer;
  transition: background .12s;
}
.lpx-page .lp-row:hover { background: var(--lpx-panel-2) }
.lpx-page .lp-row-id b { display: block; font: var(--t-strong) }
.lpx-page .lp-row-id i { display: block; font: var(--t-cap); font-style: normal; color: var(--lpx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lpx-page .lp-go { color: var(--lpx-dim); font: var(--t-num-sm) }

.lpx-page .lp-field-row { display: grid; grid-template-columns: auto minmax(0, 150px) minmax(0, 1fr); gap: 10px; align-items: center; margin: var(--s2) 0 }
.lpx-page .lp-label { font: var(--t-label); text-transform: uppercase; letter-spacing: .1em; color: var(--lpx-mute) }
.lpx-page .lp-unit { font: var(--t-cap); color: var(--lpx-dim) }

.lpx-page .lp-table { display: flex; flex-direction: column; margin: var(--s2) 0 }
.lpx-page .lp-trow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 110px 96px;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--lpx-line);
  font: var(--t-num-xs);
}
.lpx-page .lp-trow.short { box-shadow: inset 3px 0 0 var(--degen); padding-left: 8px }
.lpx-page .lp-tsym { font: var(--t-strong) }
.lpx-page .lp-tnum { text-align: right }
.lpx-page .lp-tnum.dim { color: var(--lpx-dim) }
.lpx-page .lp-tstate { text-align: right; font: var(--t-cap); color: var(--lpx-mute) }
.lpx-page .lp-trow.short .lp-tstate { color: var(--degen) }

.lpx-page .lp-leg-note { display: block; font: var(--t-cap); font-style: normal; color: var(--lpx-dim) }
.lpx-page .lp-leg-right { font: var(--t-num-xs); color: var(--lpx-mute); white-space: nowrap }
.lpx-page .lp-need.short { color: var(--degen) }
.lpx-page .lp-need.ok { color: var(--safe) }

.lpx-page .lp-lines { margin: var(--s2) 0 }
.lpx-page .lp-tick { font: 600 22px/1 var(--mono); color: var(--safe); margin-bottom: 6px }

.lpx-page .lp-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font: var(--t-small); color: var(--lpx-mute); cursor: pointer }
.lpx-page .lp-check input { accent-color: var(--foil-a); width: 15px; height: 15px }
.lpx-page .lp-checks { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s2) 0 }

.lpx-page .lp-linkish { background: none; border: 0; padding: 0 0 0 8px; color: var(--foil-a); font: var(--t-cap); cursor: pointer; text-decoration: underline }
.lpx-page .lp-linkish:hover { opacity: .8 }

/* The shared v2 primitives need to read correctly on this darker surface. */
.lpx-page .v2-cta { background: var(--lpx-txt); color: #000 }
.lpx-page .v2-cta.ghost { background: transparent; color: var(--lpx-mute); border: 1px solid var(--lpx-line-2) }
.lpx-page .v2-cta:disabled { background: var(--lpx-panel-2); color: var(--lpx-dim) }
.lpx-page .lp-cta { background: linear-gradient(100deg, #c9b8ff, #9ff0d6, #ffc9a8); color: #000 }
.lpx-page .lp-cta:disabled { background: var(--lpx-panel-2); color: var(--lpx-dim) }
.lpx-page .v2-field {
  width: 100%;
  background: var(--lpx-panel);
  border: 1px solid var(--lpx-line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--lpx-txt);
  font: var(--t-body);
  outline: none;
  margin: 6px 0;
}
.lpx-page .v2-field:focus { border-color: var(--lpx-line-2) }
.lpx-page .v2-leg { border-color: var(--lpx-line) }
.lpx-page .v2-line { color: var(--lpx-mute) }
.lpx-page .v2-line span:last-child { color: var(--lpx-txt) }

/* ── responsive ──────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lpx-hero { grid-template-columns: 1fr; gap: var(--s5) }
  .lpx-nav-links { display: none }
  .lpx-search { width: 150px }
  .lpx-search:focus { width: 180px }
}
@media (max-width: 640px) {
  .lpx-grid { grid-template-columns: 1fr }
  .lpx-search { display: none }
  .lpx-main { padding-top: var(--s5) }
  .lpx-page .lp-trow { grid-template-columns: minmax(0, 1fr) 90px 90px }
  .lpx-page .lp-trow .lp-tnum.dim { display: none }
  .lpx-page .lp-field-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px }
  .lpx-page .lp-field-row .lp-unit { grid-column: 1 / -1 }
  .lpx-controls { flex-direction: column; align-items: flex-start }
}
@media (prefers-reduced-motion: reduce) {
  .lpx-card { transition: none }
  .lpx-card:hover { transform: none }
  .lpx-card.graduated::before { animation: none }
  .lpx-bar i, .lpx-page .lp-bar i { transition: none }
}

/* ── the launch form: identity, presets, links ───────────────────────────────────────────────── */
.lpx-page .lp-idrow { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s3); align-items: start; margin: var(--s2) 0 }
.lpx-page .lp-preview {
  width: 76px; height: 76px; border-radius: 14px; object-fit: cover;
  background: var(--lpx-panel); border: 1px solid var(--lpx-line);
}
.lpx-page .lp-idfields { display: flex; flex-direction: column; gap: 0 }
.lpx-page textarea.v2-field { resize: vertical; min-height: 58px; font: var(--t-body) }

/* A disclosure, for the things pons puts behind "advanced" too. */
.lpx-page .lp-more { margin: var(--s3) 0; border-top: 1px solid var(--lpx-line); padding-top: var(--s3) }
.lpx-page .lp-more > summary {
  cursor: pointer; list-style: none; font: var(--t-label); text-transform: uppercase;
  letter-spacing: .14em; color: var(--lpx-mute); padding: 2px 0;
}
.lpx-page .lp-more > summary::-webkit-details-marker { display: none }
.lpx-page .lp-more > summary::after { content: " +"; color: var(--lpx-dim) }
.lpx-page .lp-more[open] > summary::after { content: " \2212" }
.lpx-page .lp-more > summary:hover { color: var(--lpx-txt) }

/* The launch config picker. Three cards, one choice, frozen at launch. */
.lpx-page .lp-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: var(--s2) 0 }
.lpx-page .lp-preset {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--lpx-line); background: var(--lpx-panel); color: var(--lpx-txt);
  transition: border-color .12s, background .12s;
}
.lpx-page .lp-preset:hover { border-color: var(--lpx-line-2) }
.lpx-page .lp-preset.on { border-color: var(--foil-a); background: rgba(201, 184, 255, .08) }
.lpx-page .lp-preset b { font: var(--t-strong) }
.lpx-page .lp-preset i { font: var(--t-cap); font-style: normal; color: var(--lpx-mute); line-height: 1.45 }
.lpx-page .lp-preset em { font: var(--t-num-xs); font-style: normal; color: var(--lpx-dim); margin-top: 2px }

/* What the creator wrote, on the coin page. */
.lpx-page .lp-desc { margin: var(--s3) 0; font: var(--t-body); color: var(--lpx-mute); white-space: pre-wrap; overflow-wrap: anywhere }
.lpx-page .lp-links { display: flex; gap: 8px; flex-wrap: wrap; margin: var(--s2) 0 }
.lpx-page .lp-links a {
  font: var(--t-cap); color: var(--lpx-mute); text-decoration: none;
  border: 1px solid var(--lpx-line); border-radius: 999px; padding: 5px 11px;
}
.lpx-page .lp-links a:hover { color: var(--lpx-txt); border-color: var(--lpx-line-2) }

@media (max-width: 640px) {
  .lpx-page .lp-idrow { grid-template-columns: 56px minmax(0, 1fr) }
  .lpx-page .lp-preview { width: 56px; height: 56px }
}

/* ── the create screen: form on the left, live preview on the right ──────────────────────────── */
.lpx-page.wide { max-width: 1140px }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s6); align-items: start }
.lp-split-form { min-width: 0 }
.lp-side-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: var(--s2) }
.lp-side-h {
  font: var(--t-label); text-transform: uppercase; letter-spacing: .14em;
  color: var(--lpx-dim); margin-top: var(--s2);
}
/* The preview is not clickable, so it must not look like it is. */
.lpx-card.preview { cursor: default }
.lpx-card.preview:hover { transform: none; background: var(--lpx-panel); border-color: var(--lpx-line) }
.lp-side-legs { display: flex; flex-direction: column }
.lp-side-leg {
  display: flex; justify-content: space-between; gap: var(--s3);
  padding: 7px 0; border-bottom: 1px solid var(--lpx-line);
  font: var(--t-cap); color: var(--lpx-mute);
}
.lp-side-leg b { font: var(--t-num-xs); color: var(--lpx-txt) }

/* ── the picture: click or drop, never an upload ─────────────────────────────────────────────── */
.lpx-page .lp-drop {
  width: 76px; height: 76px; padding: 0; flex: none; cursor: pointer; overflow: hidden;
  border-radius: 14px; border: 1px dashed var(--lpx-line-2); background: var(--lpx-panel);
  color: var(--lpx-dim); transition: border-color .12s, background .12s, color .12s;
  display: flex; align-items: center; justify-content: center;
}
.lpx-page .lp-drop:hover { border-color: var(--foil-a); color: var(--lpx-txt) }
.lpx-page .lp-drop.over { border-color: var(--foil-a); background: rgba(201, 184, 255, .1); color: var(--lpx-txt) }
.lpx-page .lp-drop.has { border-style: solid; border-color: var(--lpx-line) }
.lpx-page .lp-drop-hint { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 18px/1 var(--sans) }
.lpx-page .lp-drop-hint i { font: var(--t-label-sm); font-style: normal; letter-spacing: .1em; text-transform: uppercase }
.lpx-page .lp-preview { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0 }

@media (max-width: 900px) {
  .lp-split { grid-template-columns: 1fr; gap: var(--s4) }
  /* Preview first on a phone: it is the thing that tells you whether the picture worked. */
  .lp-split-side { order: -1 }
  .lp-side-sticky { position: static }
  .lp-side-legs { display: none }
}

/* ── charts, the two factors, and the tape ───────────────────────────────────────────────────── */
.lpx-page .lp-chart { width: 100%; margin: var(--s2) 0 }
.lpx-page .lp-chart svg { display: block }
.lpx-page .lp-chart-x {
  display: flex; justify-content: space-between; gap: var(--s3);
  font: var(--t-cap); color: var(--lpx-dim);
}

/* The claim the whole product rests on, as two numbers side by side. */
.lpx-page .lp-factors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: var(--s3) 0 }
.lpx-page .lp-factor {
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--lpx-line); background: var(--lpx-panel);
}
.lpx-page .lp-factor i {
  display: block; font: var(--t-label); font-style: normal;
  text-transform: uppercase; letter-spacing: .14em; color: var(--lpx-dim);
}
.lpx-page .lp-factor em { display: block; font: var(--t-num-lg); font-style: normal; margin: 4px 0 2px }
.lpx-page .lp-factor em.up { color: var(--safe) }
.lpx-page .lp-factor em.down { color: var(--degen) }
.lpx-page .lp-factor span { display: block; font: var(--t-cap); color: var(--lpx-mute); line-height: 1.45 }

.lpx-page .lp-trades { display: flex; flex-direction: column; margin: var(--s2) 0 }
.lpx-page .lp-trade {
  display: grid; grid-template-columns: 58px 96px minmax(0, 1fr) minmax(0, 1fr) 68px;
  gap: 10px; align-items: baseline; padding: 9px 0;
  border-bottom: 1px solid var(--lpx-line);
  font: var(--t-num-xs); color: var(--lpx-mute);
  text-decoration: none; transition: background .12s;
}
.lpx-page .lp-trade:hover { background: var(--lpx-panel) }
.lpx-page .lp-trade-k {
  font: var(--t-label-sm); text-transform: uppercase; letter-spacing: .1em;
}
.lpx-page .lp-trade.buy  .lp-trade-k { color: var(--safe) }
.lpx-page .lp-trade.sell .lp-trade-k { color: var(--degen) }
.lpx-page .lp-trade-who { color: var(--lpx-dim) }
.lpx-page .lp-trade-n { color: var(--lpx-txt); text-align: right }
.lpx-page .lp-trade-s { text-align: right }
.lpx-page .lp-trade-t { text-align: right; font: var(--t-cap); color: var(--lpx-dim) }

@media (max-width: 640px) {
  .lpx-page .lp-factors { grid-template-columns: 1fr }
  .lpx-page .lp-trade { grid-template-columns: 52px minmax(0, 1fr) 62px }
  .lpx-page .lp-trade-who, .lpx-page .lp-trade-s { display: none }
}

/* ── the coin page: a reading column and a doing column ──────────────────────────────────────── */
/*
 * 680px was right for a form and wrong for this. A coin page is a chart people read and a box they
 * act in, and at 680 the charts were postage stamps while the buy box sat a screenful below them.
 */
.lp-coin { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); align-items: start }
.lp-coin-main { min-width: 0 }
.lp-coin-side { min-width: 0 }
/* The sticky offset clears the nav, which is sticky too. */
.lp-coin-side .lp-side-sticky { position: sticky; top: 84px; display: block }

/* In the narrow column the section rules should not shout as loudly as they do in the wide one. */
.lp-coin-side .lp-h { margin-top: var(--s4) }
.lp-coin-side .lp-h:first-child { margin-top: 0 }
.lp-coin-side .lp-trow { grid-template-columns: minmax(0, 1fr) auto }
.lp-coin-side .lp-trow .lp-tnum.dim { display: none }
.lp-coin-side .lp-trow .lp-tstate { display: none }
/* Your position is the exception: its third column IS the point. */
.lp-coin-side .lp-table:first-of-type .lp-trow { grid-template-columns: minmax(0, 1fr) auto auto }
.lp-coin-side .lp-table:first-of-type .lp-trow .lp-tnum.dim { display: inline; color: var(--lpx-txt) }

@media (max-width: 980px) {
  .lp-coin { grid-template-columns: 1fr; gap: var(--s4) }
  /* Buying comes before reading the tape on a phone. */
  .lp-coin-side { order: -1 }
  .lp-coin-side .lp-side-sticky { position: static }
}

/* Paying with dollars or with the basket you already hold. Only shown when you hold some. */
.lpx-page .lp-pay { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--s3) }

/* Position P&L: holding, worth now, and the two reasons it moved. */
.lpx-page .lp-pnl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: var(--s2) 0 }
.lpx-page .lp-pnl > div { padding: 10px 12px; background: var(--lpx-panel); border: 1px solid var(--lpx-line) }
.lpx-page .lp-pnl i {
  display: block; font: var(--t-label-sm); font-style: normal;
  text-transform: uppercase; letter-spacing: .1em; color: var(--lpx-dim);
}
.lpx-page .lp-pnl b { display: block; font: var(--t-num-sm); margin-top: 3px }
.lpx-page .lp-pnl b.up { color: var(--safe) }
.lpx-page .lp-pnl b.down { color: var(--degen) }

/* ── the swap ────────────────────────────────────────────────────────────────────────────────────
 *
 * Two boxes and an arrow, in place of a Buy/Sell segmented control over one ambiguous field. The
 * shape is the point: the direction of the trade is visible at rest, so the amount box never has to
 * be read together with a toggle somewhere else to know what unit it wants.
 *
 * The arrow overlaps both boxes, which is why the second one carries a negative margin and the
 * button sits above them in the stacking order.
 */
.lpx-page .lp-swap { margin: var(--s2) 0 }

.lpx-page .lp-swap-box {
  background: var(--lpx-panel);
  border: 1px solid var(--lpx-line);
  border-radius: 14px;
  padding: 12px 14px 10px;
}
.lpx-page .lp-swap-box + .lp-swap-box { margin-top: -1px }

.lpx-page .lp-swap-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font: var(--t-cap);
  color: var(--lpx-dim);
}
.lpx-page .lp-swap-top .lp-linkish { margin-left: 8px }
/* The balance sat flush against the button: "41.05m SMOKEmax". */
.lpx-page .lp-swap-top > span:last-child { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap }

.lpx-page .lp-swap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px;
}

/* The input and the read-only output share a class so the two rows line up to the pixel. */
.lpx-page .lp-swap-in {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  color: var(--lpx-txt);
  font: 500 26px/1.15 var(--f-num, inherit);
  letter-spacing: -.01em;
  outline: none;
  -moz-appearance: textfield;
}
.lpx-page .lp-swap-in::-webkit-outer-spin-button,
.lpx-page .lp-swap-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.lpx-page .lp-swap-in::placeholder { color: var(--lpx-dim) }
.lpx-page .lp-swap-in.out { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lpx-page .lp-swap-in.out.ghost { color: var(--lpx-dim) }

.lpx-page .lp-swap-tok {
  flex: 0 0 auto;
  font: var(--t-strong);
  color: var(--lpx-txt);
  background: var(--lpx-panel-2);
  border: 1px solid var(--lpx-line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}

.lpx-page .lp-swap-sub { font: var(--t-cap); color: var(--lpx-dim); min-height: 1.1em }

/* Straddles the seam between the two boxes. */
.lpx-page .lp-swap-flip {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px auto;
  border-radius: 11px;
  background: var(--lpx-panel-2);
  border: 1px solid var(--lpx-line-2);
  color: var(--lpx-mute);
  cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.lpx-page .lp-swap-flip:hover {
  color: var(--lpx-txt);
  border-color: var(--foil-a);
  transform: rotate(180deg);
}
.lpx-page .lp-swap-flip:active { transform: rotate(180deg) scale(.94) }

@media (prefers-reduced-motion: reduce) {
  .lpx-page .lp-swap-flip { transition: none }
  .lpx-page .lp-swap-flip:hover, .lpx-page .lp-swap-flip:active { transform: none }
}

@media (max-width: 560px) {
  .lpx-page .lp-swap-in { font-size: 22px }
}

/* ── a line you can interrogate ──────────────────────────────────────────────────────────────────
 *
 * The readout sits in the top-left over the plot and the range sits in the two right corners, so
 * nothing overlaps the line itself at the point people actually look. All of it is pointer-inert:
 * the SVG underneath owns the hover, and a label stealing the pointer would make the crosshair
 * stutter as it passed beneath.
 */
.lpx-page .lp-chart-live { position: relative }
.lpx-page .lp-chart-live svg { display: block; cursor: crosshair }

.lpx-page .lp-chart-read {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  pointer-events: none;
}
.lpx-page .lp-chart-read b { font: var(--t-num-sm, 600 14px/1 inherit); color: var(--lpx-txt) }
.lpx-page .lp-chart-read i { font: var(--t-cap); font-style: normal; color: var(--lpx-dim) }

.lpx-page .lp-chart-hi,
.lpx-page .lp-chart-lo {
  position: absolute;
  right: 2px;
  font: var(--t-cap);
  color: var(--lpx-dim);
  pointer-events: none;
}
.lpx-page .lp-chart-hi { top: 0 }
.lpx-page .lp-chart-lo { bottom: 18px }

@media (max-width: 560px) {
  /* The range labels and the readout collide on a narrow plot; the readout is the useful one. */
  .lpx-page .lp-chart-hi, .lpx-page .lp-chart-lo { display: none }
}

/* ── the coins behind it, as faces ───────────────────────────────────────────────────────────────
 *
 * A basket was only ever spelled out in tickers, which is the least recognisable form a memecoin
 * has. The ring and the dark border are what let overlapping circles stay legible on the panel.
 */
.lpx-page .lp-legicon,
.lpx-pair .lp-legicon {
  border-radius: 50%;
  object-fit: cover;
  background: var(--lpx-panel-2);
  border: 1px solid var(--lpx-line);
  flex: 0 0 auto;
  vertical-align: middle;
}
.lpx-page .lp-tsym .lp-legicon { margin-right: 7px }

/* Overlapped, the way a group of avatars is read as "these, together". */
.lpx-page .lp-facepile,
.lpx-pair .lp-facepile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lpx-page .lp-facepile { margin: 6px 0 2px }
.lpx-page .lp-facepile > span {
  font: var(--t-cap);
  color: var(--lpx-mute);
  margin-left: 2px;
}
.lp-facepile.tight { gap: 0; margin-right: 8px }
.lp-facepile.tight .lp-legicon { margin-left: -6px; box-shadow: 0 0 0 2px var(--lpx-panel) }
.lp-facepile.tight .lp-legicon:first-child { margin-left: 0 }

.lpx-pair b { display: inline-flex; align-items: center; min-width: 0 }

/* ── the chart ───────────────────────────────────────────────────────────────────────────────────
 *
 * One frame, a metric toggle and a window toggle. The line draws itself in on every change of
 * either, which is not decoration: switching from a 1H window to ALL redraws the same colour in the
 * same box, and without the sweep there is nothing to tell you the thing you are looking at is new.
 */
.lpx-page .lp-mc {
  position: relative;
  margin: var(--s2) 0 var(--s3);
  padding: 12px 12px 8px;
  background: var(--lpx-panel);
  border: 1px solid var(--lpx-line);
  border-radius: 16px;
}

.lpx-page .lp-mc-ctl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lpx-page .lp-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--lpx-bg); border-radius: 999px }
.lpx-page .lp-seg button {
  border: 0;
  background: none;
  color: var(--lpx-dim);
  font: var(--t-cap);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.lpx-page .lp-seg button:hover { color: var(--lpx-txt) }
.lpx-page .lp-seg button.on { color: var(--lpx-txt); background: var(--lpx-panel-2); box-shadow: inset 0 0 0 1px var(--lpx-line) }
.lpx-page .lp-seg.tf button { padding: 5px 9px; font-variant-numeric: tabular-nums }

.lpx-page .lp-mc-head { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 -18px; position: relative; z-index: 2 }
.lpx-page .lp-mc-head b { font: 600 24px/1.1 inherit; letter-spacing: -.02em }
.lpx-page .lp-mc-head em { font: var(--t-cap); font-style: normal }
.lpx-page .lp-mc-head em.up { color: var(--safe) }
.lpx-page .lp-mc-head em.down { color: var(--degen) }
.lpx-page .lp-mc-head i { font: var(--t-cap); font-style: normal; color: var(--lpx-dim); margin-left: auto }

.lpx-page .lp-mc svg { display: block; width: 100%; cursor: crosshair }

.lpx-page .lp-mc-x {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: var(--t-cap);
  color: var(--lpx-dim);
}
.lpx-page .lp-mc-x > span:nth-child(2) { color: var(--lpx-mute); text-align: center; flex: 1 1 auto; min-width: 0 }

.lpx-page .lp-mc-empty {
  display: grid;
  place-items: center;
  font: var(--t-cap);
  color: var(--lpx-dim);
}

/* The sweep. `pathLength` is not set, so a large dash covers any line this box can hold. */
.lpx-page .lp-mc-line {
  stroke-dasharray: 6000;
  stroke-dashoffset: 6000;
  animation: lp-draw .85s cubic-bezier(.22, .61, .36, 1) forwards;
}
.lpx-page .lp-mc-area { animation: lp-fade .9s ease forwards; opacity: 0 }
@keyframes lp-draw { to { stroke-dashoffset: 0 } }
@keyframes lp-fade { from { opacity: 0 } to { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  .lpx-page .lp-mc-line { animation: none; stroke-dasharray: none; stroke-dashoffset: 0 }
  .lpx-page .lp-mc-area { animation: none; opacity: 1 }
}

@media (max-width: 560px) {
  .lpx-page .lp-mc-ctl { gap: 6px }
  .lpx-page .lp-seg button { padding: 5px 8px }
  .lpx-page .lp-mc-head b { font-size: 20px }
  .lpx-page .lp-mc-head i { display: none }
  /* The note in the middle has nowhere to go at this width; the caption below says the same. */
  .lpx-page .lp-mc-x > span:nth-child(2) { display: none }
}

/* The launch row is neither a buy nor a sell: it is the coin coming into existence. */
.lpx-page .lp-trade.launch { box-shadow: inset 3px 0 0 var(--foil-a); padding-left: 8px }
.lpx-page .lp-trade.launch .lp-trade-k { color: var(--foil-a) }

/* The legend for the comparison view: a colour, a face, a ticker, a number. */
.lpx-page .lp-mc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 2px 0 6px;
  font: var(--t-cap);
  color: var(--lpx-mute);
}
.lpx-page .lp-mc-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap }
.lpx-page .lp-mc-legend span.lead { color: var(--lpx-txt); font-weight: 600 }
.lpx-page .lp-mc-legend i { width: 9px; height: 2px; border-radius: 2px; flex: 0 0 auto }
.lpx-page .lp-mc-legend span.lead i { height: 3px }
.lpx-page .lp-mc-legend img {
  width: 16px; height: 16px; border-radius: 50%;
  object-fit: cover; background: var(--lpx-panel-2); border: 1px solid var(--lpx-line);
}
.lpx-page .lp-mc-legend b { font-weight: 600; font-variant-numeric: tabular-nums }
.lpx-page .lp-mc-legend b.up { color: var(--safe) }
.lpx-page .lp-mc-legend b.down { color: var(--degen) }

/* In the comparison view the headline is the percentage, so it carries the colour. */
.lpx-page .lp-mc-head b.up { color: var(--safe) }
.lpx-page .lp-mc-head b.down { color: var(--degen) }
.lpx-page .lp-mc-head em { color: var(--lpx-mute) }

/* A note's button ran flush into the last word of its sentence. */
.lpx-page .lp-note .v2-cta.sm { display: block; margin-top: 10px }
.lpx-page .lp-note b { color: var(--lpx-txt); font-weight: 600 }
