@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap");

@font-face {
  font-family: "Fusion Pixel 12px Proportional SC";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("assets/fonts/fusion-pixel-12px-proportional-zh-hans.woff2") format("woff2");
  unicode-range: U+2E80-2EFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

:root {
  --font-pixel: "Pixelify Sans", "Fusion Pixel 12px Proportional SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-value: "Segoe UI", "Microsoft YaHei", Arial, system-ui, sans-serif;
  --ink: #101828;
  --ink-2: #263348;
  --muted: #5f6f86;
  --paper: #f8fbf2;
  --stone: #e8ece1;
  --stone-2: #cbd5c1;
  --sky: #0f91f4;
  --sky-deep: #0562d8;
  --grass: #69dd4f;
  --grass-dark: #2f9634;
  --dirt: #8c5427;
  --wood: #9a5f2c;
  --gold: #ffc22a;
  --gold-2: #f09a16;
  --gold-3: #ffe27a;
  --blue: #3c82f6;
  --pink: #ff4fab;
  --green: #22c973;
  --danger: #ff3b3b;
  --navy: #101827;
  --navy-2: #1d2636;
  --border: #2c3548;
  --radius: 18px;
  --bevel:
    inset 0 2px 0 rgba(255, 255, 255, .42),
    inset 0 -5px 0 rgba(0, 0, 0, .18),
    0 12px 0 rgba(0, 0, 0, .12),
    0 24px 44px rgba(12, 28, 58, .18);
  --gold-bevel:
    inset 0 2px 0 rgba(255, 255, 255, .65),
    inset 0 -6px 0 rgba(184, 105, 0, .34),
    0 7px 0 #a8650d,
    0 16px 34px rgba(112, 62, 4, .32);
  --dark-bevel:
    inset 0 2px 0 rgba(255, 255, 255, .2),
    inset 0 -5px 0 rgba(0, 0, 0, .34),
    0 7px 0 rgba(0, 0, 0, .45),
    0 20px 44px rgba(3, 10, 24, .32);
}

* {
  box-sizing: border-box;
  font-family: var(--font-pixel);
}

*::before,
*::after {
  font-family: inherit;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  scrollbar-width: none;
}

body {
  color: var(--ink);
  font-family: var(--font-pixel);
  background:
    linear-gradient(180deg, #0877e9 0 48%, #7add52 48% 76%, #3fac3a 76% 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
    radial-gradient(circle at 13% 18%, rgba(255, 255, 255, .34), transparent 18%),
    radial-gradient(circle at 78% 20%, rgba(255, 218, 86, .38), transparent 18%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 31vh;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(121, 224, 77, .96), rgba(42, 154, 47, .96));
  background-size: 50px 50px, 50px 50px, auto;
  box-shadow: inset 0 24px 38px rgba(255, 255, 255, .14);
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:active {
  transform: translateY(2px);
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(94vw, 1420px);
  height: 80px;
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 4px solid #26344b;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(38, 49, 67, .98), rgba(16, 24, 38, .98)),
    var(--navy);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .16),
    inset 0 -7px 0 rgba(0, 0, 0, .32),
    0 10px 0 rgba(0, 67, 139, .55),
    0 26px 58px rgba(0, 31, 83, .24);
}

.brand,
.nav,
.wallet,
.language-switch,
.hero-actions,
.tabs,
.filters,
.preview-tabs,
.trade-toggle,
.quick-row,
.socials {
  display: flex;
  align-items: center;
}

.brand {
  grid-column: 1;
  min-width: 0;
  gap: 12px;
  padding: 0;
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
  background: transparent;
  border: 0;
}

.brand span:last-child {
  font-size: 18px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .38);
}

.cube-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 5px;
  overflow: hidden;
  border: 3px solid #42536d;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 198, 42, .2), transparent 58%),
    linear-gradient(180deg, #25334b 0%, #121b2c 58%, #0a111f 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .18),
    inset 0 -7px 0 rgba(0, 0, 0, .36),
    0 0 0 4px rgba(255, 194, 42, .11),
    0 8px 0 rgba(0, 0, 0, .3),
    0 14px 28px rgba(255, 176, 16, .16);
}

.cube-logo::before,
.cube-logo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cube-logo::before {
  inset: 6px;
  z-index: 0;
  border: 1px solid rgba(255, 222, 92, .16);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(255, 230, 126, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 230, 126, .09) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 204, 35, .12), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .22));
  background-size: 9px 9px, 9px 9px, auto, auto;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .04),
    inset 0 -8px 14px rgba(0, 0, 0, .36),
    inset 0 0 18px rgba(255, 196, 0, .1);
}

.cube-logo::after {
  inset: 0;
  z-index: 1;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .16), transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, .18) 100%);
  opacity: .42;
}

.cube-logo img {
  position: relative;
  z-index: 2;
  display: block;
  width: 82%;
  height: 82%;
  border-radius: 13px;
  object-fit: contain;
  image-rendering: auto;
  filter:
    saturate(1.2)
    contrast(1.12)
    drop-shadow(0 3px 0 rgba(74, 44, 0, .52))
    drop-shadow(0 0 10px rgba(255, 202, 47, .52));
}

.nav {
  justify-self: center;
  gap: 7px;
  padding: 6px;
  border: 3px solid #3b485c;
  border-radius: 18px;
  background: #101827;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .16), 0 6px 0 rgba(0, 0, 0, .28);
}

.wallet {
  grid-column: 3;
  justify-self: end;
  gap: 10px;
}

.connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.connect::before {
  content: "";
  width: 14px;
  height: 12px;
  flex: 0 0 auto;
  border: 3px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor 0 0) right 2px center / 4px 4px no-repeat,
    rgba(255, 255, 255, .18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .36),
    0 2px 0 rgba(0, 0, 0, .18);
}

.language-switch {
  position: relative;
  grid-column: 2;
  justify-self: end;
  width: 134px;
  align-items: stretch;
}

.language-current,
.language-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 2px solid #344156;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-align: left;
  background: linear-gradient(180deg, #46536b, #263143 58%, #172132);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .25);
}

.language-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-width: 3px;
  border-radius: 14px;
}

.language-current i {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid currentColor;
  transition: transform .16s ease;
}

.language-switch.open .language-current i {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 158px;
  padding: 8px;
  border: 3px solid #26344b;
  border-radius: 16px;
  background: #101827;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .16),
    inset 0 -5px 0 rgba(0, 0, 0, .26),
    0 8px 0 rgba(0, 0, 0, .28),
    0 22px 36px rgba(0, 18, 56, .28);
}

.language-switch.open .language-menu {
  display: flex;
}

.language-menu button.active {
  color: #151515;
  border-color: #d88200;
  background: linear-gradient(180deg, #ffda5e 0%, #ffb526 58%, #ec8f12 100%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.nav button,
.chain,
.connect,
.primary,
.secondary,
.token-card button,
.tabs button,
.filters button,
.preview-tabs button,
.trade-toggle button,
.quick-row button,
.upload-cube button,
.socials button,
.charge-button {
  min-height: 44px;
  padding: 0 20px;
  border: 3px solid #344156;
  border-radius: 12px;
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
  background: linear-gradient(180deg, #46536b, #263143 58%, #172132);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .32),
    inset 0 -4px 0 rgba(0, 0, 0, .25),
    0 5px 0 rgba(0, 0, 0, .25);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.nav button.active,
.tabs .active,
.filters .active,
.preview-tabs .active,
.trade-toggle .active,
.quick-row .active,
.primary,
.connect,
.token-card button,
.charge-button {
  color: #151515;
  border-color: #d88200;
  background: linear-gradient(180deg, #ffda5e 0%, #ffb526 58%, #ec8f12 100%);
  box-shadow: var(--gold-bevel);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.chain,
.secondary {
  color: #fff;
  border-color: #3c4b63;
  background: linear-gradient(180deg, #556277, #2d394b 58%, #182334);
}

.connect.connected {
  color: #0f2617;
  border-color: #11964b;
  background: linear-gradient(180deg, #7df59a 0%, #31d86d 58%, #16aa51 100%);
}

.connect.connecting {
  cursor: wait;
  filter: saturate(.85);
  opacity: .82;
}

.connect.error,
.chain.wrong {
  color: #fff;
  border-color: #a20f18;
  background: linear-gradient(180deg, #ff6a6a, #e7353d 58%, #a91620);
}

main {
  position: relative;
  height: calc(100dvh - 98px);
  overflow: hidden;
}

.view {
  display: none;
}

.view.active {
  display: block;
  width: 100%;
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, .85fr) minmax(560px, 1.15fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(1480px, 96vw);
  min-height: calc(100dvh - 114px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 10px 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.tag-row span,
.eyebrow,
.token-title span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 3px solid rgba(38, 52, 75, .35);
  border-radius: 9px;
  color: #243247;
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .76), 0 5px 0 rgba(0, 0, 0, .12);
}

.hero h1,
.success-head h1,
.page-head h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: clamp(56px, 5.8vw, 92px);
  font-weight: 950;
  line-height: .88;
  letter-spacing: 0;
  text-shadow:
    0 5px 0 rgba(45, 82, 33, .42),
    0 12px 0 rgba(0, 0, 0, .08),
    0 20px 44px rgba(0, 38, 92, .2);
}

.hero-copy p,
.success-head p,
.page-head p,
.protocol-grid p,
.upload-cube p,
.token-meta,
.module-copy small,
.fee-options small {
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 20px;
  color: #0d315f;
  font-size: 17px;
}

.signal-grid,
.hero-strip,
.card-stats,
.info-grid,
.side-stats {
  display: grid;
  gap: 12px;
}

.signal-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
  margin: 20px 0 26px;
}

.signal-grid div,
.hero-strip div,
.token-card,
.cube-panel,
.success-head,
.page-head,
.stage-card,
.trade-box,
.chain-box {
  position: relative;
  border: 4px solid #33425a;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 250, 231, .9)),
    var(--paper);
  box-shadow: var(--bevel);
}

.signal-grid div,
.hero-strip div {
  min-height: 74px;
  padding: 16px;
}

.signal-grid div::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 228, 122, .44) 0 30%, rgba(37, 228, 122, .18) 52%, transparent 72%);
  box-shadow: 0 0 16px rgba(34, 201, 115, .72), 0 0 34px rgba(34, 201, 115, .42);
  pointer-events: none;
  animation: statusGlow 1.35s ease-in-out infinite;
}

.signal-grid div::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25e47a;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .45),
    0 0 0 4px rgba(34, 201, 115, .2),
    0 0 14px rgba(34, 201, 115, .95),
    0 0 28px rgba(34, 201, 115, .55);
  animation: statusBlink 1.35s ease-in-out infinite;
}

@keyframes statusGlow {
  0%,
  100% {
    opacity: .46;
    transform: scale(.78);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes statusBlink {
  0%,
  100% {
    transform: scale(.9);
    filter: brightness(.95);
  }

  50% {
    transform: scale(1.12);
    filter: brightness(1.35);
  }
}

.signal-grid span,
.hero-strip span,
.card-stats span,
.info-grid span,
.side-stats span,
.tax-summary span,
.module-ledger span,
.panel-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.signal-grid b,
.hero-strip b,
.card-stats b,
.info-grid b,
.side-stats b,
.tax-summary b,
.module-ledger b,
.module-copy b,
.fee-options b,
.range-grid b {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-actions {
  gap: 14px;
}

.primary,
.secondary,
.connect,
.token-card button {
  min-width: 116px;
}

.hero-strip {
  grid-template-columns: repeat(3, 1fr);
  max-width: 610px;
  margin-top: 28px;
}

.cube-stage {
  position: relative;
  isolation: isolate;
  min-height: 596px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, .64);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(19, 143, 246, .92) 0 46%, rgba(99, 233, 90, .94) 46% 76%, rgba(137, 85, 40, .98) 76% 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .54),
    inset 0 -8px 0 rgba(59, 39, 19, .22),
    0 20px 0 rgba(31, 128, 53, .32),
    0 42px 78px rgba(0, 55, 125, .22);
}

.cube-stage::after {
  content: "BNB.RICH";
  position: absolute;
  left: 26%;
  top: 34%;
  z-index: 7;
  color: #fff3d2;
  font-family: var(--font-pixel);
  font-size: clamp(72px, 7.3vw, 128px);
  line-height: .86;
  letter-spacing: 0;
  text-shadow:
    5px 5px 0 #ad6719,
    10px 10px 0 rgba(67, 35, 0, .28),
    0 0 18px rgba(255, 235, 137, .36);
  white-space: nowrap;
}

.portal-ring {
  position: absolute;
  left: 34%;
  top: 25%;
  z-index: 2;
  width: 260px;
  height: 260px;
  border: 20px solid rgba(255, 202, 47, .45);
  border-right-color: rgba(255, 79, 171, .36);
  border-bottom-color: rgba(60, 130, 246, .32);
  border-radius: 50%;
  filter: blur(.2px);
}

.island {
  position: absolute;
  left: 23%;
  right: 7%;
  bottom: 18%;
  z-index: 3;
  height: 108px;
  border: 4px solid #614428;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(180deg, #6f7580, #4b5360 52%, #87542c 52%, #764721);
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, .22), 0 15px 0 rgba(70, 47, 25, .45);
}

.mega-cube {
  position: absolute;
  right: 11%;
  top: 8%;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 12px;
  transform: rotate(-7deg);
}

.mega-cube i {
  display: block;
  width: 70px;
  height: 70px;
  border: 3px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .42), transparent 28%), var(--gold);
  box-shadow:
    inset 0 -7px 0 rgba(140, 74, 0, .2),
    8px 10px 0 rgba(0, 0, 0, .16),
    0 0 24px rgba(255, 209, 62, .35);
}

.mega-cube i:nth-child(3n + 2) { background-color: var(--pink); }
.mega-cube i:nth-child(3n) { background-color: #5b9aff; }

.launch-rail {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 9%;
  z-index: 8;
  height: 54px;
  border: 4px solid #5f3c1c;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, #d8c49a 0 36px, #9d6b2e 36px 50px),
    #b88339;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, .2),
    0 11px 0 rgba(74, 42, 18, .42);
}

.launch-rail::before,
.launch-rail::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 8%;
  right: 8%;
  height: 8px;
  border-radius: 8px;
  background: #ff3b31;
  box-shadow:
    0 0 18px rgba(255, 59, 49, .8),
    0 26px 0 #ff3b31,
    0 26px 18px rgba(255, 59, 49, .8);
}

.coin-cube,
.avatar,
.image-cube,
.module-icon {
  display: inline-grid;
  place-items: center;
  color: #121827;
  font-weight: 950;
  border: 3px solid rgba(255, 255, 255, .4);
  background: linear-gradient(145deg, rgba(255, 255, 255, .42), transparent 30%), var(--gold);
  box-shadow:
    inset 0 -8px 0 rgba(146, 82, 0, .2),
    8px 10px 0 rgba(0, 0, 0, .14);
}

.coin-cube {
  position: absolute;
  z-index: 9;
  width: 90px;
  height: 90px;
  border-radius: 17px;
  font-size: 16px;
}

.coin-cube.one { left: 7%; bottom: 21%; }
.coin-cube.two { right: 6%; bottom: 34%; background-color: var(--pink); }
.coin-cube.three { right: 20%; top: 17%; background-color: var(--blue); }

.stage-card {
  position: absolute;
  left: 8%;
  right: 7%;
  bottom: 7%;
  z-index: 12;
  padding: 12px 16px 16px;
  color: #fff;
  border: 4px solid #3a2b22;
  border-radius: 15px;
  background: linear-gradient(180deg, #2f2017 0%, #1c130e 82%, #120c08 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .12),
    inset 0 -7px 0 rgba(0, 0, 0, .35),
    0 10px 0 rgba(59, 37, 15, .56);
}

.stage-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 20px;
}

.stage-card b,
.stage-card span {
  color: #fff3d4;
}

.stage-card-head b {
  font-size: 15px;
}

.stage-card-head span {
  color: #d7cbb7;
  font-size: 12px;
  font-weight: 950;
}

.progress,
.token-meter {
  overflow: hidden;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .22);
}

.stage-card .progress {
  height: 14px;
  margin-top: 7px;
}

.progress i,
.token-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--green));
}

.stage-stats,
.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 13px;
}

.stage-stats span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  background: rgba(255, 255, 255, .2);
}

.stage-stats i {
  font-style: normal;
}

.stage-stats b {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.market,
.token-layout,
.protocol-grid {
  width: min(1340px, 94vw);
  margin: 0 auto 48px;
}

.market {
  padding: 24px 0 64px;
}

.section-head,
.success-head,
.page-head,
.panel-title,
.token-top,
.token-id,
.tax-summary,
.launch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2,
.panel-title h2,
.token-title h2,
.protocol-grid h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: .95;
  letter-spacing: 0;
}

.protocol-deployment-card {
  grid-column: 1 / -1;
}

.protocol-testnet-card {
  grid-column: 1 / -1;
}

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.deployment-grid div {
  min-width: 0;
  padding: 10px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
}

.deployment-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.deployment-grid b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.protocol-risk-card {
  border-color: rgba(238, 157, 18, .62);
  background: linear-gradient(135deg, rgba(255, 247, 190, .92), rgba(255, 255, 250, .9));
}

.protocol-checklist-card {
  border-color: rgba(39, 198, 117, .48);
}

.protocol-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.protocol-checklist div {
  min-width: 0;
  padding: 12px;
  border: 2px solid rgba(52, 65, 86, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.protocol-checklist b,
.protocol-checklist span {
  display: block;
}

.protocol-checklist b {
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 18px;
}

.protocol-checklist span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.testnet-run-kpis,
.testnet-mode-summary {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.testnet-run-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testnet-mode-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.testnet-run-kpis div,
.testnet-mode-summary article {
  min-width: 0;
  padding: 11px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .65);
}

.testnet-mode-summary article {
  border-color: rgba(34, 201, 115, .42);
  background: linear-gradient(135deg, rgba(226, 255, 236, .82), rgba(255, 255, 255, .65));
}

.testnet-mode-summary article.failed {
  border-color: rgba(255, 59, 59, .42);
  background: linear-gradient(135deg, rgba(255, 231, 231, .82), rgba(255, 255, 255, .65));
}

.testnet-run-kpis span,
.testnet-mode-summary span,
.testnet-mode-summary small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.testnet-run-kpis b,
.testnet-mode-summary b {
  display: block;
  min-width: 0;
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-value);
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.testnet-mode-summary small {
  margin-top: 5px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.testnet-runs-table {
  margin-top: 16px;
}

.testnet-runs-table th,
.testnet-runs-table td {
  white-space: nowrap;
}

.run-status {
  display: inline-grid;
  place-items: center;
  min-width: 68px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  background: var(--muted);
}

.run-status.success {
  background: var(--green);
}

.run-status.failed {
  background: var(--danger);
}

@media (max-width: 760px) {
  .deployment-grid,
  .testnet-run-kpis,
  .testnet-mode-summary {
    grid-template-columns: 1fr;
  }
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(420px, 100%);
  height: 54px;
  padding: 0 14px;
  border: 4px solid #33425a;
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .74), 0 7px 0 rgba(0, 0, 0, .13);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-weight: 850;
  background: transparent;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.tabs,
.filters,
.preview-tabs,
.trade-toggle,
.quick-row {
  gap: 8px;
  flex-wrap: wrap;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.token-card {
  padding: 18px;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.token-card:hover,
.token-card:focus-visible {
  transform: translateY(-5px);
  filter: saturate(1.08);
}

.token-card:focus-visible {
  outline: 4px solid rgba(255, 191, 36, .75);
  outline-offset: 4px;
}

.token-card::before,
.cube-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(38, 52, 75, .11);
  pointer-events: none;
}

.token-card > *,
.cube-panel > * {
  position: relative;
  z-index: 1;
}

.avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.avatar.big {
  width: 74px;
  height: 74px;
  font-size: 24px;
}

.avatar img,
.poly-asset-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.avatar.ai { background-color: var(--gold); }
.avatar.rush { background-color: #46df71; }
.avatar.xmode { background-color: #61a4ff; }

.token-top h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
}

.token-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.token-top em {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 8px;
  color: #1d1400;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  background: var(--gold);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .48), 0 4px 0 rgba(132, 83, 0, .24);
}

.token-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.token-meta span {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  border: 2px solid rgba(52, 65, 86, .16);
}

.token-meta i {
  font-style: normal;
}

.token-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.voxel-chart,
.cube-chart {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 106px;
  padding: 12px;
  border: 3px solid rgba(52, 65, 86, .26);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(22, 35, 54, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 35, 54, .08) 1px, transparent 1px),
    rgba(255, 255, 255, .42);
  background-size: 24px 24px;
}

.voxel-chart span,
.cube-chart span {
  flex: 1;
  min-width: 10px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--gold-3), var(--gold), var(--green));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 0 rgba(60, 92, 38, .2);
}

.card-stats {
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0;
}

.card-stats span,
.info-grid div,
.side-stats div,
.tax-summary span,
.module-ledger span {
  padding: 10px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
}

.token-meter {
  margin-bottom: 16px;
}

.launch-layout {
  width: min(1320px, 94vw);
  min-height: 100%;
  margin: 0 auto;
  padding: 18px 0 28px;
}

.launch-command {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(520px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 94px;
  margin-bottom: 18px;
  padding: 16px 18px;
  overflow: hidden;
  border: 4px solid #2b3b53;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(135deg, #151e2e 0%, #26344c 48%, #101827 100%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .18),
    inset 0 -7px 0 rgba(0, 0, 0, .32),
    0 10px 0 rgba(0, 0, 0, .18),
    0 24px 54px rgba(0, 45, 104, .24);
}

.launch-command::before {
  content: "";
  position: absolute;
  right: 22px;
  top: -38px;
  width: 122px;
  height: 122px;
  border: 5px solid rgba(255, 194, 42, .45);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .28), transparent 30%),
    var(--gold);
  box-shadow:
    inset 0 -12px 0 rgba(140, 74, 0, .18),
    12px 16px 0 rgba(0, 0, 0, .16),
    0 0 34px rgba(255, 194, 42, .36);
  transform: rotate(9deg);
  opacity: .88;
}

.launch-command::after {
  content: "";
  position: absolute;
  left: 40%;
  right: 70px;
  bottom: 17px;
  height: 8px;
  border-radius: 99px;
  background: #ff3b31;
  box-shadow:
    0 0 18px rgba(255, 59, 49, .78),
    0 -22px 0 rgba(255, 194, 42, .9),
    0 -22px 18px rgba(255, 194, 42, .56);
}

.command-copy,
.command-track {
  position: relative;
  z-index: 1;
}

.command-copy h1 {
  max-width: 560px;
  margin: 8px 0 0;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: .9;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .36), 0 0 22px rgba(255, 194, 42, .18);
}

.command-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.command-track span {
  min-height: 54px;
  padding: 10px 11px;
  border: 3px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .13), 0 5px 0 rgba(0, 0, 0, .2);
}

.command-track b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

.craft-form {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(330px, .94fr) minmax(370px, .96fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "profile pool tax"
    "profile modes tax"
    "profile action tax";
  align-items: start;
  gap: 18px;
}

.launch-profile { grid-area: profile; }
.launch-economics { grid-area: pool; }
.launch-modes { grid-area: modes; }
.launch-tax { grid-area: tax; }
.launch-actions { grid-area: action; }

.cube-panel {
  overflow: hidden;
  padding: 20px;
}

.launch-profile,
.launch-economics,
.launch-modes,
.launch-tax {
  border-color: #33425a;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 252, 229, .98), rgba(225, 245, 219, .96));
  background-size: 34px 34px, 34px 34px, auto;
}

.launch-profile {
  min-height: 0;
}

.panel-title {
  margin-bottom: 14px;
}

.panel-title h2 {
  font-size: clamp(28px, 2.7vw, 42px);
}

.readiness-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.readiness-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 2px solid rgba(34, 201, 115, .45);
  border-radius: 10px;
  color: #247d4b;
  font-size: 11px;
  font-weight: 950;
  background: rgba(238, 255, 236, .82);
}

.readiness-row b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 201, 115, .18);
}

.upload-cube {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 120px;
  margin: 10px 0 14px;
  padding: 16px;
  border: 3px solid rgba(134, 95, 23, .32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 204, 45, .44), transparent 30%),
    linear-gradient(135deg, rgba(255, 230, 101, .45), rgba(153, 234, 255, .22));
}

.upload-cube p {
  max-width: 330px;
  margin: 6px 0 0;
  color: #7a837d;
  overflow-wrap: anywhere;
}

.image-cube,
.module-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.image-cube {
  overflow: hidden;
}

.image-cube img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.logo-file-input {
  display: none;
}

.field-grid,
.economic-grid,
.tax-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  color: #536377;
  font-size: 12px;
  font-weight: 950;
}

.trade-box label {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 10px;
}

.trade-box label input {
  grid-column: 1 / -1;
}

.trade-box label small {
  color: #6b7586;
  font-size: 11px;
  font-weight: 950;
  text-align: right;
}

label.wide,
.tax-fields .wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 14px;
  border: 3px solid rgba(52, 65, 86, .22);
  border-radius: 13px;
  color: #141c2b;
  font-size: 14px;
  font-weight: 900;
  outline: none;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(0, 0, 0, .04);
}

textarea {
  min-height: 76px;
  padding-top: 13px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 5px rgba(255, 194, 42, .2), inset 0 2px 0 rgba(255, 255, 255, .8);
}

.split-rail {
  display: grid;
  grid-template-columns: 4fr 1fr;
  min-height: 58px;
  margin: 12px 0;
  border: 3px solid rgba(52, 65, 86, .2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .6);
}

.split-rail span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 14px;
  color: #314056;
  font-size: 12px;
  font-weight: 950;
  background: linear-gradient(90deg, rgba(255, 208, 55, .62), rgba(255, 255, 255, .14));
}

.split-rail span + span {
  border-left: 3px solid rgba(52, 65, 86, .18);
}

.split-rail b {
  color: var(--ink);
  font-size: 19px;
}

.route-grid,
.mode-grid,
.fee-options {
  display: grid;
  gap: 10px;
}

.route-grid {
  grid-template-columns: 1fr;
}

.route-card,
.mode-cube,
.fee-options label {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 64px;
  padding: 10px;
  border: 3px solid rgba(52, 65, 86, .18);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .74), 0 4px 0 rgba(0, 0, 0, .06);
}

.route-card {
  grid-template-columns: 46px 1fr;
  min-height: 76px;
}

.route-card .module-icon {
  width: 46px;
  height: 46px;
}

.route-card .module-copy b {
  font-size: 15px;
}

.route-card:has(input:checked),
.mode-cube:has(input:checked),
.fee-options label:has(input:checked) {
  border-color: var(--gold-2);
  background:
    radial-gradient(circle at 18% 0, rgba(255, 246, 174, .88), transparent 42%),
    linear-gradient(135deg, rgba(255, 219, 72, .74), rgba(255, 239, 163, .56));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .74),
    inset 0 -4px 0 rgba(179, 101, 0, .12),
    0 5px 0 rgba(141, 82, 0, .18);
}

.route-card input,
.mode-cube input,
.fee-options input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--gold-2);
}

.module-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.module-copy b,
.module-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.module-copy small {
  font-size: 11px;
  line-height: 1.2;
}

.module-copy em {
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
  padding: 3px 7px;
  border-radius: 7px;
  color: #775100;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  background: rgba(255, 255, 255, .5);
}

.module-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.module-ledger span {
  min-height: 50px;
  font-size: 11px;
}

.token-kind-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 10px;
}

.token-kind-grid .mode-cube {
  grid-template-columns: 22px 52px 1fr;
  min-height: 84px;
}

.token-kind-grid .module-icon {
  width: 52px;
  height: 52px;
}

.tax-mode-grid {
  grid-template-columns: repeat(5, 1fr);
}

.tax-mode-grid .mode-cube {
  grid-template-columns: auto;
  justify-items: center;
  min-height: 86px;
  padding: 10px 6px;
  text-align: center;
}

.tax-mode-grid .module-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.tax-mode-grid .module-copy small {
  display: none;
}

.tax-mode-grid .module-copy em {
  display: none;
}

.tax-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  margin-bottom: 10px;
}

.tax-summary span {
  min-height: 62px;
}

.fee-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.fee-options label {
  grid-template-columns: auto 1fr;
  min-height: 62px;
}

.range-grid {
  display: grid;
  gap: 10px;
}

.range-grid label {
  display: grid;
  grid-template-columns: 84px 1fr 38px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 11px;
  border: 3px solid rgba(52, 65, 86, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .56);
}

.range-grid input {
  min-height: 8px;
  margin: 0;
  padding: 0;
  accent-color: var(--gold-2);
  background: transparent;
  box-shadow: none;
}

.launch-actions {
  min-height: 118px;
  padding: 18px;
  border: 4px solid #7b4d14;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 252, 188, .22) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .15) 1px, transparent 1px),
    linear-gradient(135deg, #f6bd2a, #ffe171);
  background-size: 30px 30px, 30px 30px, auto;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .55),
    inset 0 -6px 0 rgba(142, 82, 0, .18),
    0 9px 0 rgba(108, 67, 9, .35);
}

.launch-actions > div {
  max-width: 360px;
}

.launch-actions b {
  display: block;
  color: #241703;
  font-size: 18px;
  font-weight: 950;
}

.launch-actions span {
  color: #5b4214;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.launch-actions em {
  display: block;
  margin-top: 6px;
  color: #384456;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.charge-button {
  --charge: 0%;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 14px;
  min-width: 242px;
  min-height: 78px;
  overflow: hidden;
  padding: 0 20px;
  border-radius: 18px;
}

.charge-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: var(--charge);
  background: linear-gradient(90deg, #16d979, #7dfb7b);
  transition: width .08s linear;
}

.charge-arrow {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #172235;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 5px 0 rgba(0, 0, 0, .18);
}

.charge-arrow::before,
.charge-arrow::after {
  content: "";
  position: absolute;
  background: #8ea4c3;
}

.charge-arrow::before {
  left: 12px;
  top: 19px;
  width: 19px;
  height: 6px;
  border-radius: 8px;
}

.charge-arrow::after {
  right: 10px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-top: 6px solid #8ea4c3;
  border-right: 6px solid #8ea4c3;
  background: transparent;
  transform: rotate(45deg);
}

.charge-button.charging .charge-arrow {
  animation: arrowPulse .45s infinite alternate ease-in-out;
}

@keyframes arrowPulse {
  from { transform: translateX(0); }
  to { transform: translateX(8px); }
}

.charge-copy {
  display: grid;
  justify-items: start;
}

.charge-copy b {
  color: #1b1200;
  font-size: 20px;
}

.charge-copy small {
  color: rgba(34, 22, 0, .7);
  font-size: 12px;
  font-weight: 950;
}

.success-head,
.page-head {
  width: min(1340px, 94vw);
  margin: 28px auto 22px;
  padding: 24px;
}

.view-token .success-head {
  width: min(962px, calc(94vw - 378px));
  margin-left: max(3vw, calc((100vw - 1340px) / 2));
  margin-right: auto;
}

.success-head h1,
.page-head h1 {
  color: var(--ink);
  font-size: clamp(48px, 6vw, 84px);
  text-shadow: none;
}

.token-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.token-main,
.token-side {
  display: grid;
  gap: 18px;
}

.token-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.token-id {
  justify-content: flex-start;
}

.token-id p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cube-panel.polymarket-panel {
  padding: 28px 30px 22px;
  overflow: visible;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  color: #020617;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

.cube-panel.polymarket-panel::before {
  display: none;
}

.poly-market-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.poly-market-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.poly-asset-icon {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  color: #fff;
  background: #ff9500;
  font-size: 30px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.poly-market-title h2 {
  margin: 0;
  color: #020617;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

.poly-market-title p {
  margin: 8px 0 0;
  color: #7b8494;
  font-size: 20px;
  font-weight: 760;
}

.poly-market-actions {
  display: flex;
  gap: 18px;
  padding-top: 10px;
}

.poly-market-actions button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #0f172a;
  background: transparent;
  box-shadow: none;
  font-size: 22px;
  font-weight: 900;
}

.poly-market-metrics {
  display: grid;
  grid-template-columns: minmax(150px, .85fr) minmax(190px, 1.1fr) auto;
  align-items: end;
  gap: 28px;
  margin: 34px 0 22px;
}

.poly-market-metrics > div:not(.poly-countdown) {
  min-width: 0;
}

.poly-market-metrics > div + div:not(.poly-countdown) {
  padding-left: 26px;
  border-left: 1px solid #e5e7eb;
}

.poly-market-metrics span {
  display: block;
  color: #8a93a3;
  font-size: 15px;
  font-weight: 850;
}

.poly-market-metrics b {
  display: block;
  margin-top: 8px;
  color: #7b8494;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.poly-market-metrics [data-kline-current] {
  color: #ff9500;
}

.lightweight-kline {
  position: absolute;
  inset: 0 58px 34px 8px;
  z-index: 5;
  min-height: 320px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.poly-chart-stage.lightweight-ready svg,
.poly-chart-stage.lightweight-ready .poly-y-axis,
.poly-chart-stage.lightweight-ready .poly-x-axis {
  opacity: 0;
}

.poly-chart-stage.lightweight-ready .lightweight-kline {
  opacity: 1;
  pointer-events: auto;
}

.poly-market-metrics em {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  color: #ef4444;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.poly-market-metrics em.up {
  color: #16a34a;
}

.poly-countdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  column-gap: 18px;
  min-width: 140px;
}

.poly-countdown b {
  margin: 0;
  color: #ef4444;
  font-size: clamp(36px, 4.2vw, 48px);
}

.poly-countdown span {
  margin-top: 8px;
  color: #7b8494;
  font-size: 15px;
  font-weight: 850;
}

.poly-chart {
  position: relative;
  min-height: 430px;
  border-top: 1px solid transparent;
}

.poly-chart-stage {
  position: relative;
  min-height: 430px;
  padding-right: 86px;
}

.poly-chart-stage svg {
  position: absolute;
  inset: 0 86px 44px 0;
  width: calc(100% - 86px);
  height: calc(100% - 44px);
  overflow: visible;
}

.poly-grid-line {
  stroke: #e8ecf1;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.poly-target-line {
  stroke: #c8ced8;
  stroke-width: 1.4;
  stroke-dasharray: 8 8;
  vector-effect: non-scaling-stroke;
}

.poly-current-line {
  stroke: #ff9500;
  stroke-width: 1.4;
  stroke-dasharray: 6 6;
  vector-effect: non-scaling-stroke;
}

.poly-current-line.down {
  stroke: #ef4444;
}

.poly-candle line {
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.poly-candle rect {
  stroke-width: 0;
}

.poly-candle.up line,
.poly-candle.up rect {
  stroke: #22c55e;
  fill: #22c55e;
}

.poly-candle.down line,
.poly-candle.down rect {
  stroke: #ef4444;
  fill: #ef4444;
}

.poly-y-axis {
  position: absolute;
  top: 28px;
  right: 0;
  bottom: 88px;
  width: 74px;
}

.poly-y-axis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  color: #7b8494;
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.poly-target-pill,
.poly-current-pill {
  position: absolute;
  right: 0;
  top: var(--pin-top);
  z-index: 3;
  transform: translateY(-50%);
  min-width: 64px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.poly-target-pill {
  background: #9ca3af;
}

.poly-current-pill {
  background: #ff9500;
}

.poly-current-pill.down {
  background: #ef4444;
}

.poly-x-axis {
  position: absolute;
  left: 0;
  right: 86px;
  bottom: 2px;
  display: flex;
  justify-content: space-around;
  color: #7b8494;
  font-size: 17px;
  font-weight: 750;
}

.poly-chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 22px;
}

.poly-filter,
.poly-time-tabs,
.poly-mode-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poly-filter,
.poly-mode-tabs {
  padding: 8px;
  border-radius: 24px;
  background: #f4f5f7;
}

.poly-filter span {
  width: 1px;
  height: 28px;
  background: #d5dae2;
}

.poly-chart-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 22px;
  color: #111827;
  background: #f4f5f7;
  box-shadow: none;
  font-size: 18px;
  font-weight: 900;
}

.poly-filter button {
  min-width: 44px;
  padding: 0 14px;
}

.poly-filter .up,
.poly-filter .down,
.poly-mode-tabs button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
}

.poly-filter .up {
  background: #2ca76f;
}

.poly-filter .down {
  background: #ef4444;
}

.poly-time-tabs {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e1e5eb;
}

.poly-time-tabs::-webkit-scrollbar {
  display: none;
}

.poly-time-tabs button.active {
  color: #fff;
  background: #111827;
}

.poly-mode-tabs {
  border: 1px solid #e1e5eb;
  background: #fff;
}

.poly-mode-tabs button {
  color: #687386;
  background: transparent;
  border-radius: 14px;
  font-size: 20px;
}

.poly-mode-tabs button.active {
  color: #2155f5;
  background: #e8eefc;
}

.poly-market-source {
  margin-top: 14px;
  color: #9aa3b2;
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.cube-chart {
  height: 300px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(24, minmax(8px, 1fr));
  align-items: stretch;
  gap: 7px;
  min-height: 300px;
  padding: 18px 88px 28px 16px;
  overflow: hidden;
}

.cube-chart::before {
  content: "";
  position: absolute;
  inset: 16px 78px 26px 16px;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(52, 65, 86, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 65, 86, .12) 1px, transparent 1px);
  background-size: 100% 25%, 9.09% 100%;
  opacity: .72;
  pointer-events: none;
}

.kline-candle {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
}

.kline-candle i,
.kline-candle b {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
}

.kline-candle i {
  top: var(--wick-top);
  width: 3px;
  height: var(--wick-height);
  border-radius: 999px;
  background: rgba(31, 45, 64, .7);
}

.kline-candle b {
  top: var(--body-top);
  width: min(18px, 76%);
  height: var(--body-height);
  min-height: 4px;
  border: 2px solid;
  border-radius: 5px 5px 2px 2px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .42), 0 4px 0 rgba(36, 44, 58, .16);
}

.kline-candle.up b {
  border-color: #1a8f4a;
  background: linear-gradient(180deg, #74ff9a, #2bd66c);
}

.kline-candle.down b {
  border-color: #bb3f47;
  background: linear-gradient(180deg, #ff9b8f, #f0525c);
}

.kline-axis {
  position: absolute;
  top: 16px;
  right: 12px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 68px;
  pointer-events: none;
}

.kline-axis span {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
  color: rgba(31, 45, 64, .72);
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.kline-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.kline-summary div {
  min-width: 0;
  padding: 10px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
}

.kline-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.kline-summary b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kline-source {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 2px solid rgba(52, 65, 86, .12);
  border-radius: 12px;
  color: rgba(31, 45, 64, .76);
  background: rgba(255, 255, 255, .46);
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 950;
}

.kline-source span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kline-source b {
  flex: 0 0 auto;
  color: var(--ink);
}

.detail-pane {
  display: none;
  margin-top: 16px;
}

.detail-pane.active {
  display: block;
}

.info-grid {
  grid-template-columns: repeat(3, 1fr);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

th,
td {
  padding: 13px;
  text-align: left;
  border-bottom: 2px solid rgba(52, 65, 86, .12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.buy { color: var(--green); }
.sell { color: var(--danger); }
.sync { color: #2d74d6; }

.event-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 2px solid currentColor;
  border-radius: 7px;
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 950;
}

.detail-note {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
}

.holder-list {
  display: grid;
  gap: 10px;
}

.holder-list div {
  display: grid;
  grid-template-columns: 44px minmax(120px, 1.25fr) minmax(120px, 1fr) 80px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
}

.holder-list b,
.holder-list span,
.holder-list em,
.holder-list small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.holder-list em,
.holder-list small,
.holder-rank {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.holder-list b {
  color: var(--ink);
  font-size: 13px;
}

.fourmeme-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.fourmeme-stats div,
.fourmeme-holder-head div {
  min-width: 0;
  padding: 12px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 251, 242, .68));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7);
}

.fourmeme-stats span,
.fourmeme-holder-head span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.fourmeme-stats b,
.fourmeme-holder-head b {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-value);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fourmeme-progress {
  margin-top: 12px;
  padding: 14px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
}

.fourmeme-progress div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.fourmeme-progress b {
  color: var(--green);
  font-family: var(--font-value);
  font-size: 18px;
}

.fourmeme-progress i {
  display: block;
  height: 12px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #d7ddd0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .16);
}

.fourmeme-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcf36, #33cf70);
}

.fourmeme-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.fourmeme-table th,
.fourmeme-table td {
  padding: 11px 12px;
  font-family: var(--font-value);
  font-size: 12px;
}

.fourmeme-table th {
  color: #7b8494;
  background: rgba(248, 250, 252, .8);
}

.fourmeme-table td:nth-child(3),
.fourmeme-table td:nth-child(4),
.fourmeme-table td:nth-child(5) {
  text-align: right;
  white-space: nowrap;
}

.fourmeme-holder-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fourmeme-holder-list div {
  grid-template-columns: 52px minmax(170px, 1.4fr) minmax(120px, 1fr) 92px;
  border: 1px solid rgba(52, 65, 86, .12);
  background: rgba(255, 255, 255, .78);
}

@media (max-width: 760px) {
  .fourmeme-stats,
  .fourmeme-holder-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fourmeme-holder-list div {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .fourmeme-holder-list span:nth-child(3),
  .fourmeme-holder-list em {
    grid-column: 2;
  }
}

.source-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.source-flow div,
.quote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
}

.source-flow div {
  display: block;
  min-width: 0;
}

.source-flow span,
.source-flow b {
  display: block;
  overflow-wrap: anywhere;
}

.source-flow span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.source-flow b {
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.kline-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.kline-pipeline div {
  min-width: 0;
  padding: 13px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .66);
}

.kline-pipeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 950;
}

.kline-pipeline b,
.kline-pipeline em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kline-pipeline b {
  margin-top: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.kline-pipeline em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.45;
}

.pipeline-boundary {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 2px dashed rgba(239, 68, 68, .34);
  border-radius: 14px;
  color: #b42328;
  background: rgba(255, 241, 242, .72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.trade-box {
  display: grid;
  gap: 14px;
}

.trade-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trade-head .trade-toggle {
  flex: 1 1 auto;
  min-width: 0;
}

.trade-tax-setting {
  position: relative;
  flex: 0 0 auto;
}

.tax-setting-toggle {
  display: inline-flex;
  min-width: 58px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 3px solid #d88200;
  border-radius: 12px;
  color: #151515;
  font-size: 12px;
  font-weight: 950;
  background: linear-gradient(180deg, #ffda5e 0%, #ffb526 58%, #ec8f12 100%);
  box-shadow: var(--gold-bevel);
}

.tax-setting-toggle.open {
  filter: saturate(1.08);
}

.slippage-icon-toggle {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.slippage-icon-toggle.open {
  filter: none;
}

.slippage-icon-toggle:hover .pixel-slippage-face {
  transform: translateY(-1px);
}

.pixel-slippage-face {
  position: relative;
  width: 30px;
  height: 30px;
  border: 3px solid #111827;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffe66b 0%, #ffc22b 58%, #ff970f 100%);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, .34),
    4px 4px 0 rgba(91, 54, 0, .28);
  image-rendering: pixelated;
}

.pixel-slippage-face::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  width: 5px;
  height: 5px;
  background: #111827;
  box-shadow: 11px 0 0 #111827;
}

.pixel-slippage-face::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 7px;
  width: 14px;
  height: 4px;
  background: #111827;
}

.tax-setting-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 268px;
  gap: 8px;
  padding: 10px;
  border: 4px solid #33425a;
  border-radius: 14px;
  background: rgba(255, 255, 249, .98);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .86),
    0 8px 0 rgba(0, 0, 0, .18),
    0 20px 44px rgba(0, 30, 90, .24);
}

.tax-setting-panel[hidden] {
  display: none;
}

.tax-setting-group {
  display: grid;
  gap: 7px;
}

.tax-setting-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.tax-setting-panel input {
  min-height: 38px;
  padding: 0 10px;
  border: 3px solid rgba(52, 65, 86, .22);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
}

.tax-preset-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.tax-preset-row button {
  min-height: 30px;
  padding: 0 3px;
  border: 2px solid #344156;
  border-radius: 9px;
  color: #fff;
  font-family: ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-weight: 950;
  background: linear-gradient(180deg, #46536b, #263143 58%, #172132);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .32), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 5px 0 rgba(0, 0, 0, .25);
}

.tax-preset-row button.active {
  color: #151515;
  border-color: #d88200;
  background: linear-gradient(180deg, #ffda5e 0%, #ffb526 58%, #ec8f12 100%);
  box-shadow: var(--gold-bevel);
}

.trade-status {
  display: none;
  padding: 10px 12px;
  border: 3px solid rgba(34, 197, 94, .42);
  border-radius: 14px;
  color: #118344;
  background: rgba(236, 253, 245, .86);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.trade-status.active {
  display: block;
}

.trade-status.error {
  color: #b42328;
  border-color: rgba(239, 68, 68, .4);
  background: rgba(255, 241, 242, .86);
}

.full {
  width: 100%;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.side-stats {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.profile-head {
  align-items: end;
  justify-content: space-between;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(94vw, 1420px);
  margin: 28px auto 0;
  padding-bottom: 126px;
}

.profile-main {
  display: grid;
  align-content: start;
  gap: 18px;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 18px;
  align-items: center;
  min-height: 260px;
  padding: 24px 26px 22px;
}

.profile-card-title {
  grid-column: 1 / -1;
  max-width: 980px;
}

.profile-card-title .eyebrow {
  margin-bottom: 8px;
}

.profile-card-title h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: clamp(44px, 5vw, 76px);
  line-height: .9;
}

.profile-card-title p {
  max-width: 980px;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.5;
}

.profile-identity {
  display: flex;
  gap: 16px;
  min-width: 0;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border: 4px solid #33425a;
  border-radius: 20px;
  color: #101827;
  font-family: var(--font-pixel);
  font-size: 22px;
  font-weight: 950;
  background:
    linear-gradient(135deg, #ffda5e 0 48%, #35d36d 48% 100%);
  box-shadow: var(--gold-bevel);
}

.profile-kicker,
.profile-actions,
.poster-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-kicker span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 2px solid rgba(52, 65, 86, .22);
  border-radius: 8px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 950;
}

.profile-identity h2 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  overflow-wrap: anywhere;
}

.profile-identity p,
.profile-invite,
.profile-mini-card small,
.profile-toast {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-invite {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 2px solid rgba(52, 65, 86, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
}

.profile-invite b {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-metrics,
.profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-metrics div,
.profile-mini-card {
  min-width: 0;
  padding: 16px;
  border: 3px solid rgba(52, 65, 86, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 5px 0 rgba(38, 52, 75, .12);
}

.profile-metrics span,
.profile-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.profile-metrics b,
.profile-mini-card b {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.profile-workbench {
  min-height: 440px;
}

.profile-tabs {
  flex-wrap: wrap;
}

.profile-panel {
  display: none;
  margin-top: 16px;
}

.profile-panel.active {
  display: block;
}

.profile-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.search.compact {
  min-width: 240px;
  flex: 1 1 240px;
}

.profile-toolbar select,
.profile-check {
  min-height: 44px;
  padding: 0 12px;
  border: 3px solid rgba(52, 65, 86, .18);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .74);
  font-size: 12px;
  font-weight: 950;
}

.profile-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-table {
  min-width: 780px;
}

.profile-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.profile-table a {
  color: #236ccf;
  text-decoration: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 950;
}

.status-badge.success,
.status-badge.settled,
.status-badge.claimable,
.status-badge.active {
  color: var(--green);
}

.status-badge.pending,
.status-badge.upcoming {
  color: #d88400;
}

.status-badge.failed,
.status-badge.expired {
  color: var(--danger);
}

.status-badge.refunded,
.status-badge.withdrawn,
.status-badge.ended,
.status-badge.claimed {
  color: #65758c;
}

.mini-action {
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid #d88200;
  border-radius: 10px;
  color: #151515;
  background: linear-gradient(180deg, #ffda5e 0%, #ffb526 58%, #ec8f12 100%);
  font-size: 12px;
  font-weight: 950;
}

.mini-action:disabled {
  color: #5f6c80;
  border-color: rgba(52, 65, 86, .22);
  background: rgba(255, 255, 255, .54);
  box-shadow: none;
}

.profile-empty {
  text-align: center;
  color: var(--muted);
}

.share-action {
  min-width: 70px;
}

.pnl-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 15, 27, .72);
  backdrop-filter: blur(6px);
}

.pnl-modal.active {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.pnl-modal-card {
  width: min(94vw, 980px);
  max-height: min(92vh, 920px);
  padding: 18px;
  border: 4px solid #33425a;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 250, 231, .92)),
    var(--paper);
  box-shadow: var(--bevel);
  overflow: auto;
}

.pnl-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pnl-modal-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 42px);
}

.pnl-modal img {
  display: block;
  width: 100%;
  border: 4px solid #101827;
  border-radius: 12px;
  background: #030501;
}

.poster-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.poster-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.profile-toast {
  min-height: 18px;
  margin: 0;
  opacity: 0;
}

.profile-toast.active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (min-width: 881px) {
  .nav {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 50;
    width: min(610px, calc(100vw - 32px));
    transform: translateX(-50%);
    justify-content: center;
    gap: 7px;
    padding: 7px;
    border-radius: 18px;
    backdrop-filter: blur(8px);
  }

  .nav button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 14px;
  }

  .wallet .chain,
  .wallet .connect {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 14px;
    font-size: 12px;
  }

  .wallet .chain {
    min-width: 124px;
  }

  .wallet .connect {
    min-width: 150px;
  }

  .wallet .connect.connected {
    min-width: 132px;
  }

  .view-launch .view.active {
    padding-bottom: 120px;
  }

  .view-launch .launch-actions {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 30;
    width: min(620px, calc(100vw - 720px));
    min-width: 520px;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .cube-stage {
    min-height: 520px;
  }

  .launch-command {
    grid-template-columns: 1fr;
  }

  .command-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .craft-form {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "profile profile"
      "pool tax"
      "modes tax"
      "action action";
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .launch-profile {
    min-height: auto;
  }

  .token-grid,
  .protocol-grid {
    grid-template-columns: 1fr 1fr;
  }

  .source-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holder-list div {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  }

  .holder-list small {
    grid-column: 2 / -1;
  }
}

@media (max-width: 880px) {
  body::after {
    height: 62vh;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 72px;
    margin: 0;
    border-radius: 0 0 18px 18px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 10px 14px;
  }

  .brand span:last-child {
    font-size: 17px;
  }

  .language-switch {
    grid-column: 2;
    justify-self: end;
    width: 108px;
  }

  .language-current,
  .language-menu button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }

  .language-menu {
    width: 148px;
    border-width: 2px;
  }

  .wallet {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 0;
  }

  .wallet .chain {
    display: none;
  }

  .connect {
    min-height: 34px;
    min-width: 118px;
    padding: 0 10px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 10px;
  }

  .connect::before {
    width: 12px;
    height: 10px;
    border-width: 2px;
  }

  .nav {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 50;
    width: min(calc(100vw - 24px), 430px);
    transform: translateX(-50%);
    justify-content: center;
    gap: 5px;
    padding: 6px;
    border-radius: 16px;
  }

  .nav button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 0 6px;
    font-size: 11px;
  }

  main {
    height: calc(100dvh - 72px);
  }

  .view.active {
    padding-bottom: 80px;
  }

  .profile-layout {
    width: 100%;
  }

  .profile-layout {
    margin-top: 14px;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 104px;
  }

  .profile-hero-card,
  .profile-metrics,
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-card {
    min-height: 0;
    padding: 18px 16px;
  }

  .profile-card-title h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .profile-actions,
  .profile-invite {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-actions button {
    width: 100%;
  }

  .poster-actions {
    grid-template-columns: 1fr;
  }

  .pnl-modal {
    align-items: flex-start;
    padding: 12px;
    overflow: auto;
  }

  .hero {
    width: 100%;
    min-height: auto;
    padding: 24px 14px 120px;
  }

  .tag-row {
    gap: 7px;
    margin-bottom: 16px;
  }

  .tag-row span {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
    line-height: .92;
  }

  .hero-copy p {
    margin: 18px 0;
    font-size: 14px;
  }

  .signal-grid,
  .hero-strip,
  .token-grid,
  .protocol-grid,
  .info-grid,
  .kline-summary,
  .source-flow,
  .kline-pipeline,
  .token-layout {
    grid-template-columns: 1fr;
  }

  .holder-list div {
    grid-template-columns: 1fr;
  }

  .holder-list small {
    grid-column: auto;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions button {
    min-width: 0;
    width: 100%;
  }

  .cube-stage {
    min-height: 440px;
    border-width: 4px;
    border-radius: 20px;
  }

  .cube-stage::after {
    left: 20%;
    top: 35%;
    font-size: clamp(46px, 14vw, 68px);
  }

  .mega-cube {
    right: 5%;
    top: 11%;
    grid-template-columns: repeat(3, 42px);
    gap: 8px;
  }

  .mega-cube i {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  .portal-ring {
    left: 30%;
    top: 28%;
    width: 170px;
    height: 170px;
    border-width: 14px;
  }

  .coin-cube {
    width: 58px;
    height: 58px;
    border-radius: 13px;
    font-size: 12px;
  }

  .stage-card {
    left: 6%;
    right: 6%;
    bottom: 6%;
    padding: 14px;
  }

  .stage-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market,
  .launch-layout,
  .success-head,
  .page-head,
  .token-layout,
  .protocol-grid {
    width: 100%;
  }

  .market,
  .launch-layout,
  .token-layout,
  .protocol-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .view-token .success-head {
    width: auto;
    margin: 18px 14px 22px;
  }

  .cube-chart {
    grid-template-columns: repeat(24, minmax(7px, 1fr));
    gap: 5px;
    min-height: 250px;
    padding: 14px 68px 22px 12px;
  }

  .cube-chart::before {
    inset: 14px 60px 22px 12px;
  }

  .kline-candle b {
    width: min(14px, 82%);
    border-width: 1px;
  }

  .kline-axis {
    top: 14px;
    right: 8px;
    bottom: 22px;
    width: 54px;
  }

  .kline-axis span,
  .kline-source {
    font-size: 9px;
  }

  .kline-source {
    display: grid;
  }

  .kline-source b {
    flex: none;
  }

  .cube-panel.polymarket-panel {
    padding: 18px 14px 16px;
    border-radius: 18px;
  }

  .poly-market-head {
    display: grid;
  }

  .poly-market-title {
    align-items: flex-start;
    gap: 12px;
  }

  .poly-asset-icon {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 22px;
  }

  .poly-market-title h2 {
    font-size: 24px;
    line-height: 1.08;
  }

  .poly-market-title p {
    font-size: 14px;
  }

  .poly-market-actions {
    justify-self: end;
    padding-top: 0;
    gap: 10px;
  }

  .poly-market-actions button {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .poly-market-metrics {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    margin: 22px 0 16px;
  }

  .poly-market-metrics > div + div:not(.poly-countdown) {
    padding-left: 0;
    border-left: 0;
  }

  .poly-market-metrics b,
  .poly-countdown b {
    font-size: 30px;
  }

  .poly-countdown {
    justify-content: start;
    justify-items: start;
    width: max-content;
  }

  .poly-chart,
  .poly-chart-stage {
    min-height: 340px;
  }

  .poly-chart-stage {
    padding-right: 62px;
  }

  .poly-chart-stage svg {
    right: 62px;
    bottom: 42px;
    width: calc(100% - 62px);
  }

  .poly-y-axis {
    bottom: 78px;
    width: 54px;
  }

  .poly-y-axis span {
    font-size: 12px;
  }

  .poly-target-pill,
  .poly-current-pill {
    min-width: 48px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .poly-x-axis {
    right: 62px;
    font-size: 12px;
  }

  .poly-chart-controls {
    width: 100%;
  }

  .poly-time-tabs {
    width: 100%;
  }

  .poly-time-tabs {
    justify-content: flex-start;
  }

  .poly-chart-controls button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 15px;
  }

  .section-head,
  .toolbar,
  .success-head,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    min-width: 0;
  }

  .craft-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "pool"
      "modes"
      "tax"
      "action";
    gap: 14px;
  }

  .cube-panel,
  .token-card {
    padding: 16px;
    border-width: 3px;
    border-radius: 18px;
  }

  .launch-layout {
    padding-top: 14px;
    padding-bottom: 104px;
  }

  .launch-command {
    min-height: 0;
    margin-bottom: 14px;
    padding: 14px;
    border-width: 3px;
    border-radius: 18px;
  }

  .launch-command::before {
    right: -22px;
    top: -42px;
    width: 96px;
    height: 96px;
  }

  .launch-command::after {
    left: 20px;
    right: 20px;
    bottom: 12px;
    height: 5px;
  }

  .command-copy h1 {
    max-width: 320px;
    font-size: 34px;
  }

  .command-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-track span {
    min-height: 48px;
    padding: 8px 9px;
    font-size: 11px;
  }

  .command-track b {
    font-size: 14px;
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .panel-title h2 {
    font-size: 30px;
  }

  .readiness-row,
  .field-grid,
  .economic-grid,
  .tax-fields,
  .fee-options,
  .tax-summary,
  .module-ledger,
  .token-kind-grid {
    grid-template-columns: 1fr;
  }

  .upload-cube {
    grid-template-columns: 58px 1fr;
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }

  .upload-cube button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tax-mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-card,
  .token-kind-grid .mode-cube {
    grid-template-columns: 22px 46px 1fr;
    min-height: 78px;
  }

  .route-card .module-icon,
  .token-kind-grid .module-icon {
    width: 46px;
    height: 46px;
  }

  .tax-mode-grid .mode-cube {
    min-height: 76px;
  }

  .range-grid label {
    grid-template-columns: 76px 1fr 32px;
    gap: 8px;
  }

  .launch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-actions > div {
    max-width: none;
  }

  .charge-button {
    width: 100%;
    min-width: 0;
  }

  .card-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-row,
  .quote {
    grid-template-columns: repeat(2, 1fr);
  }

  .trade-head {
    gap: 10px;
  }

  .tax-setting-panel {
    width: min(268px, calc(100vw - 56px));
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 0;
  }

  .brand span:last-child {
    display: none;
  }

  .cube-logo {
    width: 52px;
    height: 52px;
    padding: 5px;
  }

  .cube-logo img {
    width: 100%;
    height: 100%;
    border-radius: 11px;
  }

  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .cube-stage {
    min-height: 388px;
  }

  .cube-stage::after {
    left: 18%;
    top: 35%;
    font-size: 42px;
  }

  .stage-card {
    bottom: 5%;
  }

  .market,
  .launch-layout,
  .token-layout,
  .protocol-grid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .view-token .success-head {
    margin-left: 12px;
    margin-right: 12px;
  }

  .field-grid input,
  .field-grid textarea,
  .economic-grid input {
    font-size: 13px;
  }

  .tax-mode-grid {
    grid-template-columns: 1fr;
  }
}

/* Standard single-column launch page */
.view-launch .launch-layout {
  width: min(820px, 94vw);
  height: auto;
  min-height: 100%;
  padding: 20px 0 110px;
}

.view-launch .craft-form {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "profile"
    "pool"
    "modes"
    "tax"
    "action";
  gap: 16px;
  height: auto;
  align-items: stretch;
}

.view-launch .launch-profile,
.view-launch .launch-economics,
.view-launch .launch-modes,
.view-launch .launch-tax,
.view-launch .launch-actions {
  width: 100%;
  height: auto;
}

.view-launch .cube-panel {
  padding: 18px;
}

.view-launch .panel-title h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.view-launch .readiness-row,
.view-launch .field-grid,
.view-launch .economic-grid,
.view-launch .tax-fields,
.view-launch .tax-summary,
.view-launch .fee-options,
.view-launch .module-ledger,
.view-launch .token-kind-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-launch .token-kind-grid .mode-cube {
  grid-template-columns: 58px minmax(0, 1fr);
  justify-items: stretch;
  text-align: left;
  min-height: 90px;
}

.view-launch .token-kind-grid .module-copy {
  align-self: center;
  justify-items: start;
  text-align: left;
}

.view-launch .token-kind-grid .module-copy b,
.view-launch .token-kind-grid .module-copy small,
.view-launch .token-kind-grid .module-copy em {
  text-align: left;
}

.token-kind-grid .mode-cube > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.token-kind-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, .5);
  border-radius: 16px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  background: linear-gradient(145deg, rgba(255, 255, 255, .42), transparent 30%), var(--gold);
  box-shadow:
    inset 0 -8px 0 rgba(146, 82, 0, .2),
    8px 10px 0 rgba(0, 0, 0, .14);
  overflow: hidden;
}

.token-kind-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-launch .token-kind-grid .mode-cube {
  grid-template-columns: 58px minmax(0, 1fr);
  justify-items: stretch;
  text-align: left;
}

.view-launch .token-kind-grid .mode-cube .module-copy {
  align-self: center;
  justify-items: start;
  text-align: left;
}

.view-launch .token-kind-grid .mode-cube .module-copy b,
.view-launch .token-kind-grid .mode-cube .module-copy small,
.view-launch .token-kind-grid .mode-cube .module-copy em {
  text-align: left;
}

.view-launch .upload-cube {
  grid-template-columns: 64px 1fr auto;
  min-height: 104px;
}

.view-launch .upload-cube > div {
  min-width: 0;
}

.view-launch .route-grid {
  grid-template-columns: 1fr;
}

.view-launch .tax-mode-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.view-launch .range-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-launch .launch-actions {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  min-width: 0;
  width: 100%;
  transform: none;
  display: flex;
  min-height: 96px;
}

.view-launch .launch-actions > div {
  max-width: 430px;
}

.view-launch .charge-button {
  margin-left: auto;
}

@media (min-width: 881px) {
  .view-launch .view.active {
    padding-bottom: 0;
  }

  .view-launch .launch-actions {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    transform: none;
  }
}

@media (max-width: 880px) {
  .view-launch .launch-layout {
    width: calc(100vw - 24px);
    padding: 14px 0 96px;
  }

  .view-launch .readiness-row,
  .view-launch .field-grid,
  .view-launch .economic-grid,
  .view-launch .tax-fields,
  .view-launch .tax-summary,
  .view-launch .fee-options,
  .view-launch .module-ledger,
  .view-launch .token-kind-grid,
  .view-launch .tax-mode-grid,
  .view-launch .range-grid {
    grid-template-columns: 1fr;
  }

  .view-launch .upload-cube {
    grid-template-columns: 54px 1fr;
  }

  .view-launch .upload-cube button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .view-launch .launch-actions {
    flex-direction: column;
  }

  .view-launch .charge-button {
    width: 100%;
    margin-left: 0;
  }
}

/* Normal launchpad layout: compact single-page creator screen */
.view-launch main {
  height: calc(100dvh - 98px);
}

.view-launch .view.active {
  padding-bottom: 0;
}

.view-launch .launch-layout {
  width: min(1360px, 94vw);
  height: 100%;
  min-height: 0;
  padding: 18px 0;
}

.view-launch .craft-form {
  height: auto;
  display: grid;
  grid-template-columns: minmax(360px, 1.06fr) minmax(340px, .94fr) minmax(360px, .98fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "profile pool tax"
    "profile modes tax"
    "profile action tax";
  gap: 14px;
  align-items: start;
}

.view-launch .launch-profile,
.view-launch .launch-economics,
.view-launch .launch-modes,
.view-launch .launch-tax,
.view-launch .launch-actions {
  border-width: 3px;
  border-radius: 18px;
}

.view-launch .cube-panel {
  padding: 16px;
}

.view-launch .launch-profile,
.view-launch .launch-tax {
  height: auto;
}

.view-launch .panel-title {
  margin-bottom: 10px;
}

.view-launch .panel-title h2 {
  font-size: clamp(28px, 2.3vw, 38px);
}

.view-launch .panel-title span {
  font-size: 11px;
}

.view-launch .readiness-row {
  gap: 7px;
  margin-bottom: 10px;
}

.view-launch .readiness-row span {
  min-height: 30px;
  padding: 0 8px;
  font-size: 10px;
}

.view-launch .upload-cube {
  grid-template-columns: 58px 1fr auto;
  min-height: 92px;
  gap: 14px;
  margin: 8px 0 10px;
  padding: 12px;
}

.view-launch .upload-cube p {
  font-size: 14px;
  line-height: 1.35;
}

.view-launch .image-cube,
.view-launch .module-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.view-launch .field-grid,
.view-launch .economic-grid,
.view-launch .tax-fields {
  gap: 9px 10px;
}

.view-launch label {
  font-size: 11px;
}

.view-launch input,
.view-launch textarea,
.view-launch select {
  min-height: 38px;
  margin-top: 5px;
  padding: 0 12px;
  border-width: 2px;
  border-radius: 11px;
  font-size: 13px;
}

.view-launch textarea {
  min-height: 58px;
  padding-top: 10px;
}

.view-launch .split-rail {
  min-height: 50px;
  margin: 9px 0;
  border-width: 2px;
}

.view-launch .split-rail span {
  padding: 8px 12px;
  font-size: 11px;
}

.view-launch .split-rail b {
  font-size: 18px;
}

.view-launch .route-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.view-launch .route-card {
  grid-template-columns: 20px 42px 1fr;
  min-height: 64px;
  gap: 9px;
  padding: 8px 10px;
  border-width: 2px;
}

.view-launch .module-ledger {
  gap: 7px;
  margin-top: 8px;
}

.view-launch .module-ledger span {
  min-height: 46px;
  padding: 8px;
  font-size: 10px;
}

.view-launch .token-kind-grid {
  margin-bottom: 8px;
}

.view-launch .token-kind-grid .mode-cube {
  grid-template-columns: 20px 42px 1fr;
  min-height: 52px;
  padding: 6px 9px;
  gap: 9px;
  border-width: 2px;
}

.view-launch .tax-mode-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.view-launch .tax-mode-grid .mode-cube {
  grid-template-columns: 14px 1fr;
  min-height: 34px;
  padding: 4px 7px;
  border-width: 2px;
  text-align: left;
}

.view-launch .tax-mode-grid .module-copy {
  width: 100%;
}

.view-launch .tax-mode-grid .module-icon {
  display: none;
}

.view-launch .tax-mode-grid .module-copy b {
  font-size: 10px;
  line-height: 1.1;
}

.view-launch .tax-mode-grid input {
  width: 14px;
  min-height: 14px;
}

.view-launch .tax-summary {
  gap: 8px;
  margin-bottom: 9px;
}

.view-launch .tax-summary span {
  min-height: 52px;
  padding: 8px;
  font-size: 10px;
}

.view-launch .fee-options {
  gap: 8px;
  margin-bottom: 9px;
}

.view-launch .fee-options label {
  min-height: 56px;
  padding: 8px;
  border-width: 2px;
}

.view-launch .range-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.view-launch .range-grid label {
  grid-template-columns: 70px 1fr 28px;
  min-height: 45px;
  gap: 8px;
  padding: 7px 9px;
  border-width: 2px;
}

.view-launch .launch-actions {
  min-height: 82px;
  padding: 10px 14px;
}

.view-launch .launch-actions > div {
  max-width: 320px;
}

.view-launch .launch-actions b {
  font-size: 16px;
}

.view-launch .launch-actions span {
  font-size: 11px;
}

.view-launch .charge-button {
  min-height: 58px;
  min-width: 216px;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  border-radius: 15px;
}

.view-launch .launch-actions span.error {
  color: var(--danger);
}

.view-launch .charge-button:disabled {
  opacity: .62;
  cursor: not-allowed;
  filter: grayscale(.25);
}

.view-launch .charge-arrow {
  width: 38px;
  height: 38px;
}

.view-launch .charge-copy b {
  font-size: 18px;
}

@media (max-width: 1180px) {
  .view-launch .launch-layout {
    height: auto;
    min-height: 100%;
  }

  .view-launch .craft-form {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "profile profile"
      "pool tax"
      "modes tax"
      "action action";
  }

  .view-launch .launch-profile,
  .view-launch .launch-tax {
    height: auto;
  }
}

@media (max-width: 880px) {
  .view-launch main {
    height: calc(100dvh - 72px);
  }

  .view-launch .view.active {
    padding-bottom: 86px;
  }

  .view-launch .launch-layout {
    width: 100%;
    padding: 14px 12px 18px;
  }

  .view-launch .craft-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "pool"
      "modes"
      "tax"
      "action";
    gap: 12px;
  }

  .view-launch .cube-panel {
    padding: 14px;
  }

  .view-launch .readiness-row,
  .view-launch .field-grid,
  .view-launch .economic-grid,
  .view-launch .tax-fields,
  .view-launch .tax-summary,
  .view-launch .fee-options,
  .view-launch .module-ledger,
  .view-launch .token-kind-grid {
    grid-template-columns: 1fr;
  }

  .view-launch .upload-cube {
    grid-template-columns: 52px 1fr;
  }

  .view-launch .upload-cube button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .view-launch .tax-mode-grid {
    grid-template-columns: 1fr;
  }

  .view-launch .tax-mode-grid .mode-cube {
    grid-template-columns: 18px 1fr;
    min-height: 42px;
  }

  .view-launch .tax-mode-grid .module-copy b {
    font-size: 11px;
  }

  .view-launch .range-grid {
    grid-template-columns: 1fr;
  }

  .view-launch .tax-mode-grid .mode-cube {
    grid-template-columns: 18px 30px 1fr;
    justify-items: stretch;
    text-align: left;
  }

  .view-launch .launch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .view-launch .launch-actions > div {
    max-width: none;
  }

  .view-launch .charge-button {
    width: 100%;
    min-width: 0;
  }
}

/* Final override: launch page must be a standard single-column form. */
.view-launch .launch-layout {
  width: min(820px, 94vw);
  height: auto;
  min-height: 100%;
  padding: 20px 0 110px;
}

.view-launch .craft-form {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "profile"
    "pool"
    "modes"
    "tax"
    "action";
  gap: 16px;
  height: auto;
  align-items: stretch;
}

.view-launch .launch-profile,
.view-launch .launch-economics,
.view-launch .launch-modes,
.view-launch .launch-tax,
.view-launch .launch-actions {
  width: 100%;
  height: auto;
}

.view-launch .launch-actions {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  min-width: 0;
  transform: none;
  display: flex;
  align-items: center;
}

.view-launch .launch-actions > div {
  max-width: 430px;
}

.view-launch .charge-button {
  margin-left: auto;
}

.view-launch .readiness-row,
.view-launch .field-grid,
.view-launch .economic-grid,
.view-launch .tax-fields,
.view-launch .tax-summary,
.view-launch .fee-options,
.view-launch .module-ledger,
.view-launch .token-kind-grid,
.view-launch .range-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-launch .route-grid {
  grid-template-columns: 1fr;
}

.view-launch .tax-mode-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (min-width: 881px) {
  .view-launch .view.active {
    padding-bottom: 0;
  }

  .view-launch .launch-actions {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    transform: none;
  }
}

@media (max-width: 880px) {
  .view-launch .launch-layout {
    width: 100%;
    padding: 14px 12px 96px;
  }

  .view-launch .craft-form {
    grid-template-columns: 1fr;
  }

  .view-launch .readiness-row,
  .view-launch .field-grid,
  .view-launch .economic-grid,
  .view-launch .tax-fields,
  .view-launch .tax-summary,
  .view-launch .fee-options,
  .view-launch .module-ledger,
  .view-launch .token-kind-grid,
  .view-launch .tax-mode-grid,
  .view-launch .range-grid {
    grid-template-columns: 1fr;
  }

  .view-launch .upload-cube {
    grid-template-columns: 54px 1fr;
  }

  .view-launch .upload-cube button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .view-launch .launch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .view-launch .launch-actions > div {
    max-width: none;
  }

  .view-launch .charge-button {
    width: 100%;
    margin-left: 0;
  }
}

/* Contract-aligned launch controls */
.launch-mechanism {
  grid-area: mechanism;
}

.view-launch .craft-form {
  grid-template-areas:
    "profile"
    "pool"
    "modes"
    "mechanism"
    "tax"
    "action";
}

.view-launch .launch-mechanism {
  width: 100%;
  height: auto;
}

.asset-toggle,
.settlement-strip,
.subsection-title,
.exclusion-strip {
  display: grid;
  gap: 8px;
}

.asset-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
  padding: 5px;
  border: 3px solid rgba(52, 65, 86, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .52);
}

.asset-toggle label,
.toggle-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.asset-toggle label {
  justify-content: center;
  min-height: 64px;
  margin: 0;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
}

.asset-toggle label:has(input:checked) {
  background: linear-gradient(180deg, #ffda5e, #ffb526);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .64), 0 4px 0 rgba(141, 82, 0, .18);
}

.asset-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asset-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 950;
}

.asset-option img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .72),
    0 4px 0 rgba(0, 0, 0, .14);
}

.toggle-line input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--gold-2);
}

.route-config {
  grid-template-columns: 22px 46px 1fr 74px;
}

.route-weight {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 68px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.route-weight input {
  width: 54px;
  min-height: 34px;
  margin: 0;
  padding: 0 7px;
  text-align: center;
}

.optional-route {
  opacity: .82;
}

.mechanism-grid,
.fixed-grid,
.mechanism-tax-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
}

.mechanism-tax-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tax-advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 10px;
  margin: 10px 0 12px;
}

.tax-advanced-grid label {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-width: 0;
}

.tax-advanced-grid label span {
  grid-column: 1 / -1;
}

.tax-advanced-grid input {
  width: 100%;
  min-width: 0;
}

.tax-advanced-grid small {
  min-width: 42px;
  padding-left: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.burn-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
}

.subsection-title {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin: 14px 0 9px;
  padding-top: 12px;
  border-top: 2px dashed rgba(52, 65, 86, .22);
}

.subsection-title b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.subsection-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-align: right;
}

.settlement-strip {
  grid-template-columns: 1fr 1fr;
  margin: 10px 0 4px;
}

.settlement-strip span,
.exclusion-strip {
  min-height: 42px;
  padding: 10px;
  border: 2px solid rgba(52, 65, 86, .15);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  background: rgba(255, 255, 255, .58);
}

.settlement-strip b {
  color: var(--ink);
}

.exclusion-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.exclusion-strip span {
  color: var(--ink);
}

.exclusion-strip b {
  padding: 5px 7px;
  border-radius: 8px;
  color: #24553b;
  background: rgba(34, 201, 115, .14);
}

.craft-form:not(.is-tax-token) .launch-tax,
.craft-form:not(.is-tax-token) .launch-mechanism,
.craft-form:not(.is-tax-token) .tax-advanced-grid,
.craft-form:not(.is-tax-token) .tax-mode-grid {
  display: none;
}

.readiness-row i {
  font-style: normal;
}

.view-launch .readiness-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.view-launch .mechanism-grid,
.view-launch .fixed-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-launch .mechanism-tax-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.view-launch .tax-advanced-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.view-launch .burn-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-launch .settlement-strip,
.view-launch .asset-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-note,
.mode-tax-title {
  padding: 10px 12px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  background: rgba(255, 255, 255, .58);
}

.mode-note {
  margin-bottom: 10px;
}

.mode-tax-board {
  display: grid;
  gap: 10px;
}

.mode-tax-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.mode-tax-title b {
  color: var(--ink);
  font-size: 16px;
}

.mode-tax-title span {
  text-align: right;
}

.tax-route-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tax-route-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 2px solid rgba(52, 65, 86, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
}

.tax-route-card h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 15px;
}

.tax-route-card label {
  display: grid;
  grid-template-columns: minmax(84px, .65fr) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.tax-route-card label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.tax-route-card input {
  min-height: 38px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .view-launch .nav {
    left: 50%;
    right: auto;
    width: min(calc(100vw - 24px), 430px);
    max-width: 430px;
    transform: translateX(-50%);
    gap: 5px;
    padding: 6px;
  }

  .view-launch .nav button {
    width: 100%;
    min-height: 42px;
    padding: 0 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  .view-launch .launch-layout {
    max-width: 100%;
    padding-bottom: 132px;
  }

  .route-config,
  .view-launch .route-config {
    grid-template-columns: 18px 38px 1fr;
  }

  .route-weight {
    grid-column: 2 / -1;
  }

  .view-launch .readiness-row,
  .view-launch .mechanism-grid,
  .view-launch .fixed-grid,
  .view-launch .mechanism-tax-grid,
  .view-launch .tax-advanced-grid,
  .view-launch .settlement-strip {
    grid-template-columns: 1fr;
  }

  .view-launch .burn-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-launch .asset-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-launch .tax-mode-grid {
    grid-template-columns: 1fr;
  }

  .view-launch .tax-mode-grid .mode-cube {
    grid-template-columns: 18px 1fr;
    min-height: 42px;
  }

  .mode-tax-title,
  .tax-route-columns,
  .tax-route-card label {
    grid-template-columns: 1fr;
  }

.mode-tax-title span {
  text-align: left;
}

.subsection-title {
  grid-template-columns: 1fr;
}

.subsection-title span {
  text-align: left;
}
}

.view-launch .route-grid {
  position: static;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.view-launch .route-config {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 132px;
  padding: 12px 8px;
  text-align: center;
}

.view-launch .route-config .route-weight {
  grid-column: auto;
  justify-content: center;
}

.view-launch .route-config .route-weight input {
  width: 58px;
}

.view-launch .readiness-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 10px;
}

.view-launch .readiness-row span {
  min-width: 0;
  min-height: 28px;
  padding: 0 6px;
  gap: 5px;
  border-width: 2px;
  border-radius: 9px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.view-launch .readiness-row b {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px rgba(34, 201, 115, .16);
}

.view-launch .readiness-row i {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swap-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 46px;
  padding: 7px 4px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, .58);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .72),
    0 4px 0 rgba(0, 0, 0, .08);
}

.pancake-logo {
  color: #6b3d08;
  background: linear-gradient(180deg, #ffd77a, #f7a927);
}

.uniswap-logo {
  color: #8d165c;
  background: linear-gradient(180deg, #ffd5ef, #ff7bc9);
}

.fstswap-logo {
  color: #123b73;
  background: linear-gradient(180deg, #d7f0ff, #73b8ff);
}

.view-launch .craft-form {
  grid-template-areas:
    "profile"
    "pool"
    "modes"
    "mechanism"
    "action";
}

.view-launch .token-kind-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-launch .tax-mode-grid {
  display: none;
}

.mechanism-select {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.mechanism-select select {
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.mechanism-tax-dock {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mechanism-tax-dock .subsection-title {
  margin-top: 0;
}

.craft-form:not(.is-tax-token) .tax-mode-select {
  display: none;
}

@media (min-width: 881px) {
  .view-launch .craft-form {
    grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.05fr);
    grid-template-areas:
      "profile pool"
      "profile modes"
      "profile mechanism"
      "profile action";
  }
}

@media (max-width: 880px) {
  .view-launch .craft-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "pool"
      "modes"
      "mechanism"
      "action";
  }

  .view-launch .token-kind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

input,
textarea,
select,
option,
input::placeholder,
textarea::placeholder,
.connect.connected,
.signal-grid b,
.hero-strip b,
.stage-card > div:first-child b,
.stage-stats span,
.token-top p,
.token-meta .meta-value,
.card-stats b,
.token-id p,
.token-title span,
.panel-title span,
.kline-axis span,
.kline-summary b,
.kline-source b,
.info-grid b,
.side-stats b,
.tax-summary b,
.module-ledger b,
.split-rail b,
.route-weight input,
.fee-options b,
.range-grid b,
.quote b,
.quick-row button,
.holder-list b,
.holder-list small,
.source-flow b,
.exclusion-strip b,
td {
  font-family: var(--font-value);
  font-weight: 700;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

input,
textarea,
select,
.quote b,
.info-grid b,
.side-stats b,
.card-stats b {
  font-weight: 750;
}

th,
label,
.signal-grid span,
.hero-strip span,
.card-stats span,
.info-grid span,
.side-stats span,
.tax-summary span,
.module-ledger span,
.source-flow span {
  font-family: var(--font-pixel);
}

.view-launch .token-kind-grid .mode-cube {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 12px !important;
  justify-items: stretch !important;
  text-align: left !important;
}

.view-launch .token-kind-grid .mode-cube > input {
  display: none !important;
}

.view-launch .token-kind-grid .mode-cube [data-token-kind-logo] {
  grid-column: 1 !important;
}

.view-launch .token-kind-grid .mode-cube .module-copy {
  grid-column: 2 !important;
  align-self: center !important;
  justify-items: start !important;
  text-align: left !important;
  min-width: 0 !important;
  width: 100% !important;
}

.view-launch .token-kind-grid .mode-cube .module-copy b,
.view-launch .token-kind-grid .mode-cube .module-copy small,
.view-launch .token-kind-grid .mode-cube .module-copy em {
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
}

.view-launch .pool-mode-block {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(52, 65, 86, .18);
}

.view-launch .pool-mode-block .panel-title {
  margin: 0;
}

.view-launch .pool-mode-block + .panel-title {
  margin-top: 0;
}

.view-launch .craft-form {
  grid-template-areas:
    "profile"
    "pool"
    "mechanism"
    "action" !important;
}

.view-launch .craft-form:not(.is-tax-token) {
  grid-template-areas:
    "profile"
    "pool"
    "action" !important;
}

@media (min-width: 881px) {
  .view-launch .craft-form {
    grid-template-areas:
      "profile pool"
      "profile mechanism"
      "profile action" !important;
  }

  .view-launch .craft-form:not(.is-tax-token) {
    grid-template-areas:
      "profile pool"
      "profile action" !important;
  }
}

@media (max-width: 880px) {
  .view-launch .craft-form {
    grid-template-areas:
      "profile"
      "pool"
      "mechanism"
      "action" !important;
  }

  .view-launch .craft-form:not(.is-tax-token) {
    grid-template-areas:
      "profile"
      "pool"
      "action" !important;
  }
}

/* Final override: faster hold-to-launch button and clearer arrow mark. */
.view-launch .charge-button {
  min-height: 66px;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 0 18px;
}

.view-launch .charge-button::before {
  background: linear-gradient(90deg, #20d879, #a4ff5d);
  transition: width .045s linear;
}

.view-launch .charge-button.charging {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .62),
    inset 0 -7px 0 rgba(145, 85, 0, .24),
    0 8px 0 rgba(128, 74, 0, .72),
    0 0 0 3px rgba(255, 244, 188, .46);
}

.view-launch .charge-arrow {
  width: 50px;
  height: 50px;
  border: 3px solid #334763;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 44%),
    linear-gradient(180deg, #263853, #142033);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .14),
    inset 0 -4px 0 rgba(3, 10, 22, .32),
    0 5px 0 rgba(8, 15, 27, .45);
}

.view-launch .charge-arrow::before {
  left: 11px;
  top: 20px;
  width: 22px;
  height: 10px;
  border-radius: 3px;
  background: #fff4c7;
  box-shadow: 0 3px 0 rgba(92, 107, 134, .55);
}

.view-launch .charge-arrow::after {
  right: 8px;
  top: 12px;
  width: 21px;
  height: 25px;
  border: 0;
  background: #fff4c7;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 0 67%, 38% 50%, 0 33%);
  transform: none;
  filter: drop-shadow(0 3px 0 rgba(92, 107, 134, .55));
}

.view-launch .charge-button.charging .charge-arrow {
  animation: launchArrowNudge .42s infinite alternate ease-out;
}

@keyframes launchArrowNudge {
  from { transform: translateX(0) scale(1); }
  to { transform: translateX(7px) scale(1.04); }
}

@media (max-width: 560px) {
  .view-launch .charge-button {
    grid-template-columns: 52px 1fr;
    min-height: 62px;
    padding: 0 14px;
  }

  .view-launch .charge-arrow {
    width: 46px;
    height: 46px;
  }
}

/* Final PC restore: desktop uses the top navigation and a wide launch workbench. */
@media (min-width: 1181px) {
  .topbar {
    grid-template-columns: minmax(190px, .85fr) auto auto auto;
    width: min(94vw, 1880px);
  }

  .brand {
    grid-column: 1;
  }

  .nav {
    position: static;
    grid-column: 2;
    justify-self: center;
    width: auto;
    min-width: 520px;
    transform: none;
    backdrop-filter: none;
  }

  .nav button {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 0 17px;
  }

  .language-switch {
    grid-column: 3;
  }

  .wallet {
    grid-column: 4;
  }

  .view-launch .view.active {
    padding-bottom: 0;
  }

  .view-launch .launch-layout {
    width: min(1480px, 94vw);
    padding: 26px 0 64px;
  }

  .view-launch .craft-form {
    grid-template-columns: minmax(390px, .92fr) minmax(390px, .94fr) minmax(420px, 1fr);
    grid-template-areas:
      "profile pool mechanism"
      "profile pool mechanism"
      "profile action mechanism" !important;
    gap: 18px;
    align-items: start;
  }

  .view-launch .craft-form:not(.is-tax-token) {
    grid-template-columns: minmax(430px, 1fr) minmax(430px, 1fr) minmax(320px, .7fr);
    grid-template-areas:
      "profile pool action" !important;
  }

  .view-launch .launch-profile,
  .view-launch .launch-economics,
  .view-launch .launch-mechanism,
  .view-launch .launch-actions {
    min-width: 0;
  }

  .view-launch .launch-actions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
    backdrop-filter: none;
  }

  .view-launch .launch-actions > div {
    max-width: 430px;
  }

  .view-launch .charge-button {
    width: auto;
    min-width: 238px;
    margin-left: auto;
  }
}

/* Final token detail restore: merge launch summary and token identity into one compact block. */
.view-token .token-layout {
  margin-top: 28px;
}

.view-token .token-side {
  align-content: start;
  align-items: start;
}

.view-token .token-side > .cube-panel {
  align-self: start;
  width: 100%;
  min-height: 0;
}

.view-token .quick-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.view-token .quick-row button {
  min-width: 0;
  padding: 0 8px;
}

.view-token .token-side > .cube-panel:nth-child(2) .side-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.view-token .token-side > .cube-panel:nth-child(2) .side-stats div {
  min-height: 52px;
  padding: 9px 8px;
  text-align: center;
}

.view-token .token-main {
  align-content: start;
  align-items: start;
}

.view-token .token-header {
  display: grid;
  gap: 22px;
  min-height: 0;
  padding: 26px 30px;
}

.view-token .token-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.view-token .token-hero-row h1 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: clamp(54px, 6vw, 94px);
  line-height: .9;
}

.view-token .token-hero-row p {
  max-width: 980px;
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
}

.view-token .token-hero-row .primary {
  min-width: 178px;
}

.view-token .token-id {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  justify-content: stretch;
  gap: 18px;
  padding-top: 18px;
  border-top: 2px dashed rgba(52, 65, 86, .18);
}

.view-token .token-id .avatar.big {
  width: 88px;
  height: 88px;
  font-size: 22px;
}

.view-token .token-identity-body {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-width: 0;
}

.view-token .token-title {
  justify-content: flex-start;
  gap: 8px;
  min-height: 36px;
}

.view-token .token-title h2 {
  display: none;
}

.view-token .token-title span {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.view-token .token-id p {
  margin: 0;
  font-family: var(--font-value);
  font-size: 15px;
  font-weight: 800;
}

.view-token .poly-market-actions,
.view-token .poly-market-metrics > div:first-child,
.view-token .poly-countdown,
.view-token .poly-filter,
.view-token .poly-market-source,
.view-token .token-tax-settlement-panel,
.view-token .token-realtime-panel {
  display: none !important;
}

.view-token [data-detail-tab="overview"],
.view-token [data-detail-tab="protocol"],
.view-token [data-detail="overview"],
.view-token [data-detail="protocol"] {
  display: none !important;
}

.view-token .poly-market-metrics {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  margin: 24px 0 18px;
}

.view-token .poly-market-metrics > div:not(.poly-countdown) {
  padding-left: 0 !important;
  border-left: 0 !important;
  text-align: left;
}

.view-token .poly-market-metrics span,
.view-token .poly-market-metrics em,
.view-token .poly-market-metrics b {
  text-align: left;
}

.view-token .poly-chart-controls {
  justify-content: flex-start;
}

.token-contract-row {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.token-contract-row p {
  display: inline;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.copy-contract-button {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 0;
  margin-left: 6px;
  padding: 0;
  border: 2px solid #aeb6c2;
  border-radius: 5px;
  color: #101827;
  background: #fffef4;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .8),
    0 5px 0 rgba(0, 0, 0, .2);
  cursor: pointer;
}

.copy-contract-button::before,
.copy-contract-button::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: #fffef4;
}

.copy-contract-button::before {
  top: 5px;
  left: 5px;
}

.copy-contract-button::after {
  right: 4px;
  bottom: 4px;
}

.copy-contract-button:hover {
  transform: translateY(-1px);
}

.view-token .token-header .socials {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.view-token .token-header .socials button {
  min-width: 112px;
  min-height: 46px;
  padding: 0 16px;
}

@media (max-width: 880px) {
  .view-token .token-layout {
    margin-top: 14px;
  }

  .view-token .token-main {
    display: contents;
  }

  .view-token .token-header {
    order: 1;
  }

  .view-token .token-side {
    order: 2;
  }

  .view-token .polymarket-panel {
    order: 3;
  }

  .view-token .details {
    order: 4;
  }

  .view-token .token-header {
    gap: 18px;
    padding: 20px 16px;
  }

  .view-token .token-hero-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .view-token .token-hero-row h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .view-token .token-hero-row p {
    font-size: 14px;
  }

  .view-token .token-id {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .view-token .token-id .avatar.big {
    width: 68px;
    height: 68px;
    font-size: 18px;
  }

  .view-token .token-title span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .view-token .token-header .socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .view-token .token-header .socials button {
    min-width: 0;
    width: 100%;
  }
}

/* Final launch flow: one vertical column from top to bottom on every viewport. */
.view-launch .launch-layout {
  width: min(860px, 94vw);
  padding: 22px 0 120px;
}

.view-launch .craft-form,
.view-launch .craft-form:not(.is-tax-token) {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto !important;
  grid-template-areas:
    "profile"
    "pool"
    "mechanism"
    "action" !important;
  gap: 14px;
  align-items: stretch;
}

.view-launch .craft-form:not(.is-tax-token) {
  grid-template-areas:
    "profile"
    "pool"
    "action" !important;
}

.view-launch .launch-profile,
.view-launch .launch-economics,
.view-launch .launch-mechanism,
.view-launch .launch-actions {
  width: 100%;
  min-width: 0;
}

.view-launch .launch-actions {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  transform: none;
  backdrop-filter: none;
}

@media (min-width: 881px) {
  .view-launch .view.active {
    padding-bottom: 0;
  }

  .view-launch .launch-layout {
    width: min(860px, 94vw);
    padding-top: 24px;
    padding-bottom: 96px;
  }

  .view-launch .craft-form,
  .view-launch .craft-form:not(.is-tax-token) {
    grid-template-columns: 1fr !important;
  }

  .view-launch .launch-actions > div {
    max-width: 430px;
  }

  .view-launch .charge-button {
    width: auto;
    min-width: 238px;
    margin-left: auto;
  }
}

@media (max-width: 880px) {
  .view-launch .launch-layout {
    width: 100%;
    padding: 14px 12px 132px;
  }

  .view-launch .craft-form,
  .view-launch .craft-form:not(.is-tax-token) {
    grid-template-columns: 1fr !important;
  }
}

/* Launch page hard reset: keep the creator form as one full-width vertical rail. */
body.view-launch main {
  height: calc(100dvh - 98px);
  overflow: hidden;
}

body.view-launch .view.active {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body.view-launch .launch-layout,
body.view-launch .launch-layout.clean-launch,
body.view-launch .launch-layout.rich-launch {
  display: block;
  width: min(900px, calc(100vw - 32px));
  max-width: 900px;
  min-width: 0;
  margin: 0 auto;
  padding: 24px 0 120px;
}

body.view-launch .craft-form,
body.view-launch .craft-form:not(.is-tax-token) {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  gap: 14px;
  transform: none !important;
}

body.view-launch .launch-profile,
body.view-launch .launch-economics,
body.view-launch .launch-modes,
body.view-launch .launch-mechanism,
body.view-launch .launch-tax,
body.view-launch .launch-actions {
  position: relative;
  inset: auto;
  display: block;
  flex: 0 0 auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto;
  min-height: 0;
  margin: 0;
  transform: none !important;
}

body.view-launch .launch-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (min-width: 1181px) {
  body.view-launch .launch-layout,
  body.view-launch .launch-layout.clean-launch,
  body.view-launch .launch-layout.rich-launch {
    width: min(900px, calc(100vw - 48px));
    padding-top: 28px;
  }
}

@media (max-width: 720px) {
  body.view-launch .launch-layout,
  body.view-launch .launch-layout.clean-launch,
  body.view-launch .launch-layout.rich-launch {
    width: 100%;
    padding: 14px 12px 132px;
  }

  body.view-launch .launch-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Tax info page: contract-scoped tax ledger in the BNB.RICH voxel style. */
.taxinfo-layout {
  display: grid;
  gap: 18px;
  width: min(1380px, 94vw);
  margin: 0 auto;
  padding: 28px 0 96px;
}

.taxinfo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
}

.taxinfo-title-block h1 {
  max-width: 980px;
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: clamp(48px, 5.2vw, 88px);
  line-height: .9;
}

.taxinfo-title-block p {
  max-width: 960px;
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.taxinfo-contract-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 3px solid rgba(52, 65, 86, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 247, 203, .82), rgba(255, 255, 255, .72));
}

.taxinfo-contract-body {
  min-width: 0;
}

.taxinfo-contract-row {
  display: block;
  min-width: 0;
}

.taxinfo-contract-card span,
.taxinfo-contract-card b,
.taxinfo-contract-card em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.taxinfo-contract-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.taxinfo-contract-card b {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-value);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.taxinfo-contract-card em {
  display: inline;
  flex: 0 1 auto;
  margin-top: 0;
  color: var(--ink-2);
  font-family: var(--font-value);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.45;
}

.taxinfo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr);
  gap: 18px;
  align-items: start;
}

.taxinfo-panel {
  padding: 24px;
}

.taxinfo-summary {
  grid-column: 1 / -1;
}

.taxinfo-kpis,
.taxinfo-mechanism-grid,
.taxinfo-ledger-grid {
  display: grid;
  gap: 12px;
}

.taxinfo-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 18px;
}

.taxinfo-kpis div,
.taxinfo-ledger-grid div,
.taxinfo-mechanism-grid article {
  min-width: 0;
  padding: 14px;
  border: 3px solid rgba(52, 65, 86, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .76), 0 5px 0 rgba(37, 49, 66, .09);
}

.taxinfo-kpis span,
.taxinfo-ledger-grid span,
.taxinfo-mechanism-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.taxinfo-kpis b,
.taxinfo-ledger-grid b,
.taxinfo-mechanism-grid b {
  display: block;
  min-width: 0;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-value);
  font-size: 19px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.taxinfo-route-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.taxinfo-route-bars div {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 226, 122, .72), rgba(255, 255, 255, .68));
}

.taxinfo-route-bars span,
.taxinfo-route-bars b {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.taxinfo-route-bars span {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 950;
}

.taxinfo-route-bars b {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-value);
  font-size: 18px;
  font-weight: 900;
}

.taxinfo-route-bars i {
  display: block;
  height: 12px;
  margin-top: 10px;
  border: 2px solid rgba(52, 65, 86, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  overflow: hidden;
}

.taxinfo-route-bars em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.taxinfo-mechanism-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.rwa-basket-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.taxinfo-mechanism-grid .rwa-stock-card {
  padding: 12px;
  border-color: rgba(255, 194, 42, .45);
  background:
    linear-gradient(135deg, rgba(255, 194, 42, .2), rgba(255, 255, 255, .78)),
    rgba(255, 255, 255, .7);
}

.taxinfo-mechanism-grid p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.45;
}

.taxinfo-ledger-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.taxinfo-ledger table {
  margin-top: 16px;
}

.taxinfo-ledger td:nth-child(2),
.taxinfo-ledger td:nth-child(3) {
  color: var(--gold-2);
  font-family: var(--font-value);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .taxinfo-hero,
  .taxinfo-grid {
    grid-template-columns: 1fr;
  }

  .taxinfo-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .taxinfo-layout {
    width: 100%;
    padding: 14px 12px 132px;
  }

  .taxinfo-hero,
  .taxinfo-panel {
    padding: 20px 16px;
  }

  .taxinfo-title-block h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .taxinfo-contract-card,
  .taxinfo-kpis,
  .taxinfo-route-bars,
  .taxinfo-mechanism-grid,
  .rwa-basket-strip,
  .taxinfo-ledger-grid {
    grid-template-columns: 1fr;
  }
}
