/* Review & launch: a pen on every summary section opens that section's editor stacked over the review.
   The review stays underneath (dimmed, inert); the editor sits above it on its own light veil. */

/* pens: quiet ice-glass discs at the right edge of each section title */
.rv-s h4 { min-height: 24px; }
.rv-pen { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 8px; cursor: pointer;
  color: rgba(201, 220, 242, .5); border: 1px solid rgba(201, 220, 242, .08);
  background: linear-gradient(160deg, rgba(240, 247, 255, .06), rgba(240, 247, 255, .015));
  box-shadow: inset 1px 1px 0 rgba(240, 247, 255, .07);
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.rv-pen .i { width: 12px; height: 12px; color: inherit !important; }
.rv-pen:hover, .rv-pen:focus-visible { color: #f0f7ff; border-color: rgba(201, 220, 242, .22);
  background: linear-gradient(160deg, rgba(240, 247, 255, .14), rgba(143, 179, 217, .06));
  box-shadow: inset 1px 1px 0 rgba(240, 247, 255, .16), 0 0 14px -4px rgba(143, 179, 217, .55); }
.rv-pen:active { transform: scale(.94); }
.rv-pen:focus-visible { outline: 2px solid rgba(201, 220, 242, .55); outline-offset: 2px; }
.rv-s { transition: border-color .2s, background .2s; }
.rv-s:has(.rv-pen:hover) { border-color: rgba(201, 220, 242, .14); }

/* ===== One sheet: all nine sections on three columns, every value editable in place, no scrolling =====
   1440x900 and 1280x800 fit without a scrollbar; below ~1000px wide it falls back to two columns (and may scroll). */
html:root .wpop:is(.rv-pop, .rv-under):has(.rv-grid) { width: min(1180px, calc(100vw - 48px)); max-height: calc(100vh - 28px); }
html:root .wpop:is(.rv-pop, .rv-under) > .wpop-b { gap: 10px; padding: 12px 20px 14px !important; }
html:root .wpop:is(.rv-pop, .rv-under) > .wpop-f { padding: 10px 20px !important; }
.wpop:is(.rv-pop, .rv-under) .rv-head { padding: 8px 12px; gap: 10px; }
.wpop:is(.rv-pop, .rv-under) .rv-head b { font-size: 14px; } .wpop:is(.rv-pop, .rv-under) .rv-head small { font-size: 11.5px; }
.rv-hint { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-size: 11.5px; color: rgba(201, 220, 242, .45); }
.rv-hint .i { width: 11px; height: 11px; }
.wpop:is(.rv-pop, .rv-under) .rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wpop:is(.rv-pop, .rv-under) .rv-s { gap: 2px; padding: 9px 12px 10px; }
.wpop:is(.rv-pop, .rv-under) .rv-s h4 { margin: 0 0 3px; min-height: 22px; }
.wpop:is(.rv-pop, .rv-under) .rv-pen { width: 22px; height: 22px; border-radius: 7px; }
/* rows: 26px tall whatever they hold, so typing or toggling never moves the layout */
.wpop:is(.rv-pop, .rv-under) .rv-r { min-height: 26px; align-items: center; margin: 0 -6px; padding: 0 6px; border-radius: 8px; font-size: 12.5px; }
.wpop:is(.rv-pop, .rv-under) .rv-r > span:first-child { flex: none; white-space: nowrap; }
.wpop:is(.rv-pop, .rv-under) .rv-r b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* rows that open a picker: the whole row is the button, a quiet chevron on hover */
.rv-go { width: calc(100% + 12px); display: flex; justify-content: space-between; gap: 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background .18s ease; }
.rv-go b { margin-left: auto; }
.rv-go > .i { flex: none; width: 11px; height: 11px; margin-right: -2px; color: rgba(201, 220, 242, .35); transition: color .18s ease, transform .18s ease; }
.rv-go:hover, .rv-go:focus-visible { background: rgba(240, 247, 255, .045); }
.rv-go:hover > .i, .rv-go:focus-visible > .i { color: rgba(240, 247, 255, .8); transform: translateX(2px); }
.rv-go:focus-visible { outline: 1px solid rgba(201, 220, 242, .4); outline-offset: -1px; }
/* typed-in-place values: small frosted fields, right-aligned like the plain values */
.rv-e { gap: 10px; }
.rv-in { display: inline-flex; align-items: center; gap: 4px; height: 23px; min-width: 0; max-width: 62%; padding: 0 8px; margin-left: auto; border-radius: 7px;
  border: 1px solid rgba(201, 220, 242, .1); background: linear-gradient(160deg, rgba(240, 247, 255, .05), rgba(240, 247, 255, .015));
  box-shadow: inset 0 1px 0 rgba(240, 247, 255, .05); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.rv-in input { width: 7ch; min-width: 0; flex: 1 1 auto; padding: 0; border: 0; outline: 0; background: none; color: var(--tx, #f0f7ff); font: 500 12.5px/21px var(--f); text-align: right; }
.rv-in.txt { flex: 1 1 auto; max-width: 64%; } .rv-in.txt input { width: 100%; }
.rv-in.sm input { width: 4.2ch; }
.rv-in em { flex: none; font-style: normal; font-size: 11px; line-height: 21px; padding-top: 1px; color: rgba(201, 220, 242, .45); }
.rv-in em.pre { margin-right: -2px; }
.rv-in:hover { border-color: rgba(201, 220, 242, .2); }
.rv-in:focus-within { border-color: rgba(143, 190, 240, .55); background: linear-gradient(160deg, rgba(240, 247, 255, .09), rgba(143, 179, 217, .04));
  box-shadow: inset 0 1px 0 rgba(240, 247, 255, .08), 0 0 0 3px rgba(127, 184, 255, .12); }
.rv-two { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.rv-two .rv-in { margin: 0; max-width: none; }
.rv-two > i { font-style: normal; font-size: 11px; color: rgba(201, 220, 242, .4); }
/* small segmented choice (launch mode, priority, MM direction) */
.rv-seg { display: inline-flex; margin-left: auto; padding: 2px; gap: 2px; border-radius: 8px; border: 1px solid rgba(201, 220, 242, .08); background: rgba(6, 9, 14, .35); }
.rv-seg button { height: 19px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: rgba(201, 220, 242, .55); font: 500 11.5px var(--f); cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.rv-seg button:hover { color: #f0f7ff; }
.rv-seg button.on { color: #f0f7ff; background: linear-gradient(160deg, rgba(240, 247, 255, .16), rgba(143, 179, 217, .07)); box-shadow: inset 0 1px 0 rgba(240, 247, 255, .14), 0 0 10px -4px rgba(127, 184, 255, .6); }
@media (max-width: 1000px) { .wpop:is(.rv-pop, .rv-under) .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rv-hint { display: none; } }
@media (max-width: 700px) { .wpop:is(.rv-pop, .rv-under) .rv-grid { grid-template-columns: 1fr; } .rv-fire { width: 160px; } .rvf-line { width: 48px; } .rvf-cap { display: none; } }

/* ===== Footer: the line that says what happens, and "Run it", the one fire button in the app =====
   red/orange glass, the flame mark as its icon, a soft living glow under it that breathes; quiet when not funded yet. */
.rv-fnote { display: grid; gap: 1px; line-height: 1.3; }
.rv-fnote b { font: 500 13px var(--f); color: #f0f5fb; }
.rv-fnote small { font-size: 11.5px; color: rgba(201, 220, 242, .5); }
.rv-runwrap { display: inline-flex; align-items: center; gap: 14px; margin-left: 6px; }
.rv-runnote { display: grid; text-align: right; line-height: 1.3; font-size: 12px; color: rgba(255, 196, 160, .82); }
.rv-runnote small { font-size: 10.5px; color: rgba(201, 220, 242, .4); }
.fl-glyph { flex: none; display: block; overflow: visible; }
.rv-ht .fl-glyph { filter: drop-shadow(0 0 4px rgba(255, 80, 30, .55)); }
html:root[data-look] .wpop .btn.rv-run.rv-run { position: relative; isolation: isolate; height: 40px; min-height: 40px; padding: 0 22px 0 18px; gap: 8px; border-radius: 12px !important;
  font: 600 14px var(--f); letter-spacing: .01em; color: #fff6ee !important; cursor: pointer; overflow: visible;
  border: 1px solid rgba(255, 150, 100, .38) !important;
  background: linear-gradient(160deg, rgba(255, 120, 60, .5), rgba(224, 36, 15, .42) 48%, rgba(122, 13, 8, .55)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 230, 200, .35), inset 0 -1px 0 rgba(90, 8, 4, .5), 0 8px 24px -10px rgba(224, 36, 15, .8) !important;
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease; }
.btn.rv-run > span { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(80, 6, 2, .5); }
.btn.rv-run .fl-glyph { position: relative; z-index: 1; filter: drop-shadow(0 0 3px rgba(255, 210, 120, .7)); transform-origin: 50% 90%; animation: rvRunFl 2.2s ease-in-out infinite; }
@keyframes rvRunFl { 0%, 100% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(.97, 1.06) skewX(-3deg); } 60% { transform: scale(1.02, .97) skewX(2deg); } }
/* the living glow: a warm bloom under the glass, breathing */
.rv-run-glow { position: absolute; inset: -6px -4px; z-index: -1; border-radius: 16px; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 60%, rgba(255, 90, 30, .45), rgba(224, 36, 15, .18) 55%, transparent 80%);
  filter: blur(6px); animation: rvRunGlow 2.4s ease-in-out infinite; will-change: opacity, transform; }
@keyframes rvRunGlow { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.04); } }
html:root[data-look] .wpop .btn.rv-run.rv-run:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08) saturate(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 230, 200, .45), inset 0 -1px 0 rgba(90, 8, 4, .5), 0 12px 30px -10px rgba(255, 80, 20, .9) !important; }
html:root[data-look] .wpop .btn.rv-run.rv-run:active:not(:disabled) { transform: translateY(0) scale(.98); }
html:root[data-look] .wpop .btn.rv-run.rv-run:focus-visible { outline: 2px solid rgba(255, 170, 120, .7); outline-offset: 3px; }
html:root[data-look] .wpop .btn.rv-run.rv-run:disabled { cursor: not-allowed; filter: saturate(.75); opacity: .55; }
.btn.rv-run:disabled .rv-run-glow, .btn.rv-run:disabled .fl-glyph { animation: none; opacity: .35; }
.btn.rv-run:disabled .fl-glyph { opacity: .8; }
@media (max-width: 760px) { .rv-runnote { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn.rv-run .fl-glyph, .rv-run-glow { animation: none; } .btn.rv-run { transition: none; } }

/* ===== Editors opened from the review (and the same editors elsewhere): one spacing scale =====
   12px between fields, 16px between groups, 8px from a label to its field. No card surface behind an editor's
   fields inside a pop-up, so every frosted field keeps its own outline and nothing shares an edge. */
html:root[data-look] .wpop .tq.card { display: grid; gap: 16px; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
html:root[data-look] .wpop .tq.card > .ch { display: none; }
html:root[data-look] .wpop .tq.card .g2 { gap: 12px; }
html:root[data-look] .wpop .tq.card .field { gap: 8px; }
html:root[data-look] .wpop .tq.card .xc { padding: 0; }
html:root[data-look] .wpop .tq.card details.adv > summary { cursor: pointer; }
html:root[data-look] .wpop .tq.card details.adv[open] { display: grid; gap: 12px; }
html:root[data-look] .wpop .tq.card details.adv[open] > summary { margin-bottom: 4px; }
/* Volume / Market making: the long form in two balanced columns so it fits without scrolling
   (left: start, mode, wallets, amount; right: timing and the summary) */
@media (min-width: 1000px) {
  html:root .wpop:has(> .wpop-b > .tt-form) { width: min(1080px, calc(100vw - 48px)); max-height: calc(100vh - 32px); }
  html:root .wpop > .wpop-b > .tt-form { display: block; column-count: 2; column-gap: 32px; column-rule: 1px solid rgba(201, 220, 242, .06); }
  html:root .wpop > .wpop-b > .tt-form > * { break-inside: avoid; margin-bottom: 10px; }
  html:root .wpop > .wpop-b > .tt-form > :last-child { margin-bottom: 0; }
  html:root .wpop:has(> .wpop-b > .tt-form) > .wpop-b > p.hint:first-child { display: none; }   /* the on/off row already says it */
  html:root .wpop > .wpop-b > .tt-form .tt-dir { padding: 10px 14px; min-height: 0; }
  html:root .wpop > .wpop-b > .tt-form .tt-dir { gap: 10px; }
  html:root .wpop > .wpop-b > .tt-form .tt-dir > svg { display: block; flex: none; width: 44px; height: 16px; }   /* the little chart of what each direction does */
  html:root .wpop > .wpop-b > .tt-form > .tt-amt + .tt-time { break-before: column; border-top: 0; padding-top: 0; }   /* left: setup + amount, right: timing + summary */
  html:root .wpop > .wpop-b > .tt-form :is(.tt-modes button, .tt-dir) small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html:root .wpop > .wpop-b > .tt-form :is(.tt-modes button, .tt-dir) > span { min-width: 0; }
  html:root .wpop > .wpop-b > .tt-form :is(.tt-modes button, .tt-dir) { padding-block: 10px; }
  html:root .wpop > .wpop-b > .tt-form { margin-top: 4px; padding-top: 12px; }
  html:root .wpop > .wpop-b > .tt-form .tt-dir small { display: none; }   /* the line under the cards explains the chosen direction */
  html:root .wpop:has(> .wpop-b > .tt-form) > .wpop-b { gap: 10px; }   /* direction cards: words only, so they sit at the height of the mode cards */
  /* Funding: choices on the left, the numbers and the steps on the right */
  html:root .wpop:has(> .wpop-b > ol.steps) { width: min(1000px, calc(100vw - 48px)); }
  html:root .wpop > .wpop-b:has(> ol.steps) { display: block; column-count: 2; column-gap: 32px; column-rule: 1px solid rgba(201, 220, 242, .06); }
  html:root .wpop > .wpop-b:has(> ol.steps) > * { break-inside: avoid; margin: 0 0 12px; }
  html:root .wpop > .wpop-b:has(> ol.steps) > dl.kv { break-before: column; }
  html:root .wpop > .wpop-b:has(> ol.steps) > :last-child { margin-bottom: 0; }
  html:root .wpop > .wpop-b > .tt-form > .fl { margin: 2px 0 8px; }
}

/* ===== One z-scale for everything that floats over the page =====
   Each layer is a scrim + its panel, one step above the layer it was opened from. Anything opened from inside a pop-up
   (the PFP / banner cropper, the wallets / marketplace overlay, the launch finale) sits above every pop-up level, and
   popovers (tooltips, info cards, toasts) sit above all of them.
     page chrome ............ < 60
     review (under an editor)  78 scrim / 79 panel
     pop-up / review ......... 80 / 81
     editor over the review .. 80 / 81 (own light veil, the review dims under it)
     nested pop-up / market .. 82 / 83
     overlay opened from a pop-up (wallets, marketplace page) .. 95
     tool over a pop-up (PFP / banner cropper, sheets) ....... 100
     launch finale / name modal .............................. 110 / 135
     popovers, info cards, toasts ............................. 200+ */
:root { --z-rv-scrim: 78; --z-rv: 79; --z-scrim: 80; --z-pop: 81; --z-nest-scrim: 82; --z-nest: 83; --z-ov: 95; --z-tool: 100; --z-finale: 110; --z-popover: 200; --z-toast: 210; }
.wpop-bg.rv-ubg { z-index: var(--z-rv-scrim) !important; }
.wpop.rv-under { z-index: var(--z-rv) !important; pointer-events: none; user-select: none; }
.wpop.rv-under, .wpop.rv-pop { transition: filter .2s ease, opacity .2s ease, scale .2s ease; }
.wpop.rv-under { filter: brightness(.72) saturate(.85); opacity: .92; scale: .975; }
html:root .wpop-bg.rv-obg { z-index: var(--z-scrim); background: rgba(6, 8, 12, .22) !important;
  -webkit-backdrop-filter: blur(2px) !important; backdrop-filter: blur(2px) !important; animation: wpopIn .2s ease-out; }
.wpop.rv-over { z-index: var(--z-pop); animation-duration: .2s; }
.wpop.rv-over:not(.wide):not(.mkp) { box-shadow: inset 1px 1px 0 rgba(240, 247, 255, .13), inset -1px -1px 0 rgba(127, 184, 255, .18), 0 50px 110px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(201, 220, 242, .05) !important; }
.ov:not(.docked) { z-index: var(--z-ov); }
html:root .cr-back { z-index: var(--z-tool); }
html:root .sh-wrap { z-index: var(--z-tool); }
.lf-scrim { z-index: var(--z-finale); } .lf { z-index: calc(var(--z-finale) + 1); }
html:root :is(.ti-pop, #taginfo) { z-index: var(--z-popover); }
html:root .wm-pop { z-index: calc(var(--z-popover) + 1); }
:is(#flash-stack, #toast) { z-index: var(--z-toast); }
.wpop:focus { outline: none; }
body:has(.wpop.rv-under) .page > .trk { opacity: 0; }

/* the launch-mode editor: three modes and three numbers, as on the Launch settings card */
.rv-lq { display: grid; gap: 14px; }

@media (prefers-reduced-motion: reduce) { .rv-pen, .rv-s, .rv-go, .rv-go > .i, .rv-in, .rv-seg button, .wpop.rv-under, .wpop.rv-pop { transition: none; } .wpop-bg.rv-obg, .wpop.rv-over { animation: none; } }

/* ===== Token banner (pump.fun DEX banner) and the 3:1 cropper =====
   Empty: one slim frosted row under the PFP head. Set: the head turns into a profile header, the banner on top at 3:1
   and the PFP overlapping its bottom-left edge. Same 12px radius, 1px soft inner ring and ice hover as the inputs. */
.tq-bn-add { position: relative; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px 0 12px; border-radius: 12px; cursor: pointer;
  color: var(--tx2); font-size: 12.5px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), rgba(10,13,18,.18);
  --e1: rgba(240,247,255,.2); --e2: rgba(201,220,242,.08); --e3: rgba(143,179,217,.03);
  transition: --e1 .2s ease, --e2 .2s ease, --e3 .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.tq-bn-add::before, .tq-head.has-bn .tq-bn::after { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, var(--e1), var(--e2) 38%, var(--e3) 78%, var(--e3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.tq-bn-add > .i { width: 14px; height: 14px; flex: none; color: rgba(201,220,242,.55); }
.tq-bn-add b { font-weight: 600; color: var(--tx); }
.tq-bn-add span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx3); font-size: 11.5px; }
.tq-bn-add em { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 8px; font: 600 11.5px var(--f); font-style: normal;
  color: rgba(223,233,245,.8); background: rgba(201,220,242,.05); box-shadow: inset 0 0 0 1px rgba(201,220,242,.1); transition: color .2s, background .2s, box-shadow .2s; }
.tq-bn-add em .i { width: 12px; height: 12px; }
.tq-bn-add:hover, .tq-bn-add.over, .tq-bn-add:focus-within { --e1: rgba(240,247,255,.4); --e2: rgba(201,220,242,.16); --e3: rgba(143,179,217,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(10,13,18,.16); box-shadow: 0 0 20px -10px rgba(127,184,255,.45); }
.tq-bn-add:hover em, .tq-bn-add.over em { color: #f0f7ff; background: rgba(201,220,242,.1); box-shadow: inset 0 0 0 1px rgba(201,220,242,.22); }
.tq-bn-add.over { --e1: rgba(240,247,255,.78); --e2: rgba(201,220,242,.42); --e3: rgba(143,179,217,.26); }

/* set: profile header */
html:root .tq-head.has-bn { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 14px; row-gap: 0; padding: 0 12px 10px !important; }
.tq-head.has-bn .tq-bn { grid-column: 1 / -1; position: relative; margin: 0 -12px; aspect-ratio: 3; border-radius: 12px 12px 0 0; overflow: hidden;
  --e1: rgba(240,247,255,.2); --e2: rgba(201,220,242,.08); --e3: rgba(143,179,217,.03); transition: --e1 .2s ease, --e2 .2s ease, --e3 .2s ease; }
.tq-head.has-bn .tq-bn::after { z-index: 2; border-radius: 12px 12px 0 0; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); }
.tq-bn-pick { display: block; width: 100%; height: 100%; cursor: pointer; }
.tq-bn-pick img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease, transform .35s ease; }
.tq-bn-pick::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,8,12,0) 45%, rgba(6,8,12,.5)); }
.tq-bn-rep { position: absolute; z-index: 1; right: 10px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
  font: 600 11.5px var(--f); color: #f0f7ff; background: rgba(10,13,18,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(201,220,242,.18); opacity: 0; transform: translateY(3px); transition: opacity .2s ease, transform .2s ease; }
.tq-bn-rep .i { width: 13px; height: 13px; }
.tq-bn:hover, .tq-bn:focus-within, .tq-bn:has(.over) { --e1: rgba(240,247,255,.4); --e2: rgba(201,220,242,.16); --e3: rgba(143,179,217,.07); }
.tq-bn:hover .tq-bn-rep, .tq-bn:focus-within .tq-bn-rep, .tq-bn-pick.over .tq-bn-rep { opacity: 1; transform: none; }
.tq-bn:hover .tq-bn-pick img { filter: brightness(1.06) saturate(1.05); transform: scale(1.012); }
.tq-bn-x { position: absolute; z-index: 3; top: 7px; right: 7px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 7px; cursor: pointer;
  color: rgba(240,247,255,.85); background: rgba(10,13,18,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(201,220,242,.16);
  opacity: .75; transition: opacity .2s, color .2s, background .2s, box-shadow .2s; }
.tq-bn-x .i { width: 12px; height: 12px; }
.tq-bn:hover .tq-bn-x, .tq-bn-x:focus-visible { opacity: 1; }
.tq-bn-x:hover, .tq-bn-x:focus-visible { color: #fff; background: rgba(10,13,18,.72); box-shadow: inset 0 0 0 1px rgba(201,220,242,.32), 0 0 14px -4px rgba(143,179,217,.5); outline: none; }
.tq-head.has-bn .tq-art { z-index: 2; margin-top: -30px; }
.tq-head.has-bn .tq-art .tlogo { border-radius: 16px; box-shadow: 0 0 0 3px rgba(12,15,20,.92), 0 8px 22px -8px rgba(0,0,0,.8); }
.tq-head.has-bn .tq-id { align-self: center; padding-top: 6px; }
@media (prefers-reduced-motion: reduce) { .tq-bn-add, .tq-bn, .tq-bn-pick img, .tq-bn-rep, .tq-bn-x { transition: none; } }

/* the cropper at 3:1: a wider card, the stage spans it */
.cr-card.cr-wide { width: min(520px, 100%); }
.cr-wide .cr-stage { width: 100%; }
/* review: PFP and Banner share one row (two half-width pickers) so the sheet still fits 1280x800 without scrolling */
.rv-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; margin: 0 -6px; }
.wpop:is(.rv-pop, .rv-under) .rv-pair > .rv-r.rv-go { width: auto; margin: 0; min-width: 0; gap: 8px; }
/* Token info: the whole PFP head (PFP, name, ticker) opens the PFP pop-up; the banner on top keeps its own buttons.
   Ice outline + a touch brighter on hover, ring on keyboard focus (the PFP span is the focus target), dashed on drag-over */
.tq-head[data-pfp-open] { position: relative; cursor: pointer; transition: box-shadow .2s ease, background-color .2s ease, filter .2s ease; }
.tq-head[data-pfp-open] .tq-bn { cursor: auto; }
.tq-head[data-pfp-open] .tq-art { cursor: pointer; outline: none; }
html:root .tq-head[data-pfp-open]:hover:not(:has(.tq-bn:hover)) { box-shadow: inset 0 0 0 1px rgba(201,220,242,.3), 0 0 22px -10px rgba(127,184,255,.5) !important; background-color: rgba(201,220,242,.035) !important; }
.tq-head[data-pfp-open]:hover:not(:has(.tq-bn:hover)) .tq-art small { color: var(--ac-ice, #dfe9f5); }
html:root .tq-head[data-pfp-open]:has(.tq-art:focus-visible) { box-shadow: 0 0 0 2px rgba(201,220,242,.55), 0 0 22px -10px rgba(127,184,255,.5) !important; }
html:root .tq-head[data-pfp-open].over { box-shadow: inset 0 0 0 1px rgba(223,233,245,.6), 0 0 22px -8px rgba(127,184,255,.55) !important; }
/* the PFP pop-up: always centred in the viewport, on the tool layer (above the page, the review and its editors) */
html:root .cr-back { inset: 0; width: 100vw; height: 100dvh; display: flex; align-items: center; justify-content: center; }
html:root .cr-back > .cr-card { margin: auto; flex: none; }
.cr-card:has(.cr-extra) { width: min(400px, 100%); }
/* its socials and logo URL, where the Card/List previews were: one 2-column grid, Logo URL full width, 38px inputs */
.cr-soc { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(201,220,242,.08); }
.cr-soc h4 { margin: 0; display: flex; align-items: baseline; gap: 5px; font: 600 12.5px var(--f); color: var(--tx); }
.cr-soc h4 em { font: 500 11.5px var(--f); font-style: normal; color: var(--tx3); }
.cr-soc-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cr-f { display: block; min-width: 0; }
.cr-f.cr-f-w { grid-column: 1 / -1; }
html:root .cr-f .inp { height: 38px; min-height: 38px; padding-top: 0; padding-bottom: 0; }
.cr-f .inp > em { display: grid; place-items: center; flex: none; color: rgba(201,220,242,.55); }
.cr-f .inp > em svg, .cr-f .inp > em .i { width: 12px; height: 12px; }
.cr-f .inp input { min-width: 0; font-size: 12.5px; }
/* "Use PFP" (switch back to the PFP banner) and "Upload your own": quiet text buttons in the banner pop-up footer */
.cr-foot .cr-pfp, .cr-foot .cr-up { display: inline-flex; align-items: center; gap: 6px; }
.cr-foot .cr-pfp { margin-right: auto; }
.cr-foot .cr-pfp[hidden] { display: none; }
.cr-foot :is(.cr-pfp, .cr-up) svg { width: 14px; height: 14px; }
/* the row and the set banner are buttons now (they open the Banner pop-up, no file picker first) */
button.tq-bn-add, button.tq-bn-pick { border: 0; font: inherit; text-align: left; color: inherit; }
button.tq-bn-add { width: 100%; }
button.tq-bn-pick { padding: 0; background: none; }
:is(button.tq-bn-add, button.tq-bn-pick):focus-visible { outline: 2px solid rgba(201,220,242,.55); outline-offset: 2px; }
/* the banner pop-up's empty state: a clean 3:1 drop zone filling the stage */
.cr-drop { display: none; }
.cr-card.cr-empty .cr-drop { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px; width: 100%; padding: 12px; border: 0; cursor: pointer; text-align: center;
  color: var(--tx2); font: inherit; background: radial-gradient(120% 140% at 50% 0%, rgba(201,220,242,.07), rgba(201,220,242,.015) 60%), rgba(10,13,18,.5); transition: background .2s ease; }
.cr-card.cr-empty .cr-drop::before { content: ""; position: absolute; inset: 8px; border-radius: 10px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(201,220,242,.14); transition: box-shadow .2s ease; }
.cr-card.cr-empty .cr-drop:hover::before, .cr-card.cr-empty .cr-stage.over .cr-drop::before, .cr-card.cr-empty .cr-drop:focus-visible::before { box-shadow: inset 0 0 0 1px rgba(223,233,245,.42), 0 0 22px -8px rgba(127,184,255,.5); }
.cr-card.cr-empty .cr-drop:hover, .cr-card.cr-empty .cr-stage.over .cr-drop { background: radial-gradient(120% 140% at 50% 0%, rgba(201,220,242,.11), rgba(201,220,242,.025) 60%), rgba(10,13,18,.45); }
.cr-card.cr-empty .cr-drop:focus-visible { outline: none; }
.cr-drop-ic { color: rgba(201,220,242,.6); display: grid; }
.cr-drop b { font-size: 13.5px; color: var(--tx); font-weight: 600; }
.cr-drop small { font-size: 11.5px; color: var(--tx3); }
.cr-drop-btn { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
.cr-drop-btn svg { width: 13px; height: 13px; }
.cr-card.cr-empty .cr-corners { visibility: hidden; }
.cr-card.cr-empty .cr-zoom { display: none; }
.cr-card.cr-empty .cr-up { display: none; }
.cr-stage.over { box-shadow: 0 0 0 2px rgba(201,220,242,.5); }

/* PFP crop: show the round avatar as Pump.fun / token pages render it — a circle, with the square corners dimmed */
.cr-stage { position: relative; }
.cr-stage .cr-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  box-shadow: 0 0 0 999px rgba(8, 10, 14, .62), inset 0 0 0 1px rgba(214, 236, 255, .55), 0 0 0 1px rgba(0, 0, 0, .25); }
.cr-card.cr-empty .cr-ring { display: none; }
.cr-stage .cr-corners { z-index: 2; }
/* Token info pop-up: breathing room on both sides, so fields (and their focus glow) never touch the edges */
html:root:root[data-look] .wpop:has(.tq.card) .wpop-b { padding: 20px 28px 24px !important; overflow-x: hidden; }
html:root:root[data-look] .wpop:has(.tq.card) .wpop-b .tq.card { overflow: visible; }
html:root[data-look] .wpop .tq.card details > summary { display: flex; align-items: center; gap: 8px; list-style: none; }
html:root[data-look] .wpop .tq.card details > summary::-webkit-details-marker { display: none; }
html:root[data-look] .wpop .tq.card details > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: -45deg; opacity: .7; transition: rotate .15s ease; }
html:root[data-look] .wpop .tq.card details[open] > summary::before { rotate: 45deg; }
html:root[data-look] .wpop .tq.card .inp :is(input, textarea):focus-visible { outline: none; }   /* the field's own ring is enough */
html:root:root[data-look] .wpop .tq.card .inp.ta textarea:is(:focus, :focus-visible) { box-shadow: none !important; outline: none !important; background: transparent !important; }   /* one ring: the field's own */
/* Volume: Max trades per wallet opens the right column, so the two columns end about level */
html:root .wpop > .wpop-b > .tt-form > .tt-amt + .tt-cap, .pf-body .tt-form > .tt-amt + .tt-cap { break-before: column; border-top: 0; padding-top: 0; }
html:root .wpop > .wpop-b > .tt-form > .tt-cap + .tt-time, .pf-body .tt-form > .tt-cap + .tt-time { break-before: auto; }
.tt-cap .tt-mm { margin-top: 8px; } .tt-cap .mm-b input::placeholder { color: var(--tx3); }
