:root {
  --bg: #07090e;
  --bg-2: #0c0f14;
  --card: #12161c;
  --line: rgba(255,255,255,.08);
  --text: #f3f5f7;
  --muted: #8b939e;
  --faint: #5c6570;
  --green: #5ed68c;
  --green-2: #3DDC84;
  --red: #e5546f;
  --pink: #ff4d8d;
  --jup: #7dff6b;
  --chip: #1a1f27;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #000; color: var(--text); }
body { min-height: 100vh; }
.phone {
  width: min(100vw, 430px);
  height: 100dvh;
  margin: 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px 4px; font-size: 15px; font-weight: 650;
}
.status .right { display: flex; gap: 6px; align-items: center; color: #fff; font-size: 12px; }
.browser {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 8px;
}
.tok-av img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
button { font: inherit; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f0c27a, #c47a2a 70%);
  display: grid; place-items: center; font-size: 18px; flex: none;
}
.url {
  flex: 1; height: 36px; border-radius: 18px;
  background: #161a20; display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--jup); font-weight: 650; font-size: 15px;
}
.url .lock { color: var(--jup); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #1c2128; color: #d7dde4; display: grid; place-items: center;
}
.scroll { flex: 1; overflow: auto; padding-bottom: 8px; }
.ticker {
  display: flex; gap: 14px; align-items: center;
  padding: 4px 12px 8px; font-size: 12px; color: #c9d0d6;
  border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap;
}
.ticker b { font-weight: 650; }
.up { color: var(--green); }
.down { color: var(--red); }
.token-head, .stats, .tf, .chart-foot, .tabs, .panel, .hold-meta, .mc-line, .rc-line {
  padding-left: 12px; padding-right: 12px;
}
.nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.token-head { display: flex; align-items: flex-start; gap: 10px; padding-top: 8px; }
.token-head .tok-av, .token-head .tok-av img { width: 42px; height: 42px; }
.tok-name .sym { font-weight: 750; font-size: 16px; display: flex; gap: 4px; align-items: center; min-width: 0; }
/* A 7-letter ticker plus a 12-letter name (TRUMPED TRUMPINSIDER) was 9px
   past a 16px name box, so the name ellipsized while the copy hit target
   still had room. Keep the ticker from eating the row; the name uses the rest. */
.tok-name .tok-sym { flex: none; min-width: 0; max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-name .tok-full { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-name .sub { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 8px; align-items: center; min-width: 0; }
.sub .age { color: var(--muted); font-weight: 650; }
.sub .mint { color: var(--muted); }
.copy { background: none; border: 0; color: var(--muted); font: inherit; padding: 0; display: inline-grid; place-items: center; }
/* Keep the glyphs compact, but make adjacent mobile actions tappable. */
.token-head .copy, .token-head .soc { width: 32px; height: 32px; flex: none; touch-action: manipulation; }
.token-head .sub { gap: 4px; flex-wrap: wrap; margin-top: 0; }
#toast-lite { top: auto; bottom: calc(110px + env(safe-area-inset-bottom)); pointer-events: none; }
.copy svg, .soc svg, .round svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.soc svg { fill: currentColor; stroke: none; }
.soc svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.sub .soc { color: var(--muted); display: inline-grid; place-items: center; }
.tok-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.round {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: #1c2128; color: #c5ccd4; display: grid; place-items: center;
}
.round.star.on { color: #e6c84a; }
.round.star.on svg { fill: currentColor; }
.mc { text-align: right; }
.mc .px { display: block; color: var(--text); font-size: 22px; font-weight: 750; letter-spacing: -0.3px; }
.mc-line { display: flex; align-items: baseline; gap: 8px; padding-top: 10px; padding-bottom: 2px; }
.mc-line .px { color: var(--text); font-size: 28px; font-weight: 750; letter-spacing: -0.4px; line-height: 1.1; }
.mc-line .chg { font-size: 15px; font-weight: 650; }
.stats { display: flex; align-items: flex-end; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
.stats > div { flex: 1; min-width: 0; }
.stats > div:first-child { flex: 1.1; }
.stats > div:nth-child(2) { flex: 1.25; }
.stats > div:nth-child(3) { flex: 1.15; }
.stats > div:nth-child(4) { flex: 1.2; }
.stats .k { color: var(--faint); font-size: 11px; white-space: nowrap; }
.stats .v { font-size: 11px; font-weight: 650; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-more {
  width: 28px; height: 28px; border-radius: 50%; border: 0; flex: none;
  background: #1c2128; color: #d7dde4; font-size: 16px; line-height: 1;
}
.tok-av .badge.rc {
  width: 16px; height: 16px; border: 2px solid var(--bg); padding: 0;
  font-size: 10px; font-weight: 800; line-height: 1; color: #111; cursor: pointer;
}
.badge.rc.ok { background: #3DDC84; }
.badge.rc.bad { background: #e5546f; color: #fff; }
.badge.rc.wait { background: #5c6570; color: #eee; }
.rc-line { color: var(--muted); font-size: 11px; padding-top: 4px; white-space: nowrap; }
.rc-line .ok { color: var(--green); }
.rc-line .bad { color: var(--red); }
.gmgn-line { color: var(--muted); font-size: 11px; padding-top: 2px; line-height: 1.35; }
.gmgn-line strong { color: var(--text); font-weight: 650; }
.gmgn-line .bad { color: var(--red); }
.gmgn-line .bwin { opacity: .75; margin-left: 2px; }
.tok-av {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; flex: none;
  background: #1b2430; position: relative;
}
.tok-av .badge {
  position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px;
  border-radius: 50%; background: #123; border: 2px solid var(--bg);
  display: grid; place-items: center; font-size: 8px; color: var(--green);
}
.tok-name { min-width: 0; flex: 1; }
.tf { display: flex; gap: 0; align-items: center; color: var(--muted); font-size: 12px; padding-bottom: 6px; overflow: hidden; }
.tf-scroll { display: flex; gap: 7px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tf-scroll::-webkit-scrollbar { display: none; }
.tf-tools { margin-left: 0; flex: none; display: flex; gap: 2px; padding-left: 6px; border-left: 1px solid var(--line); }
#fx { font-style: italic; font-weight: 700; padding: 4px 6px; }
#chart-style { display: grid; place-items: center; width: 28px; height: 28px; }
#chart-style svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
#fx.on, #chart-style.on { color: var(--text); }
.set-wrap { position: relative; }
.set-menu { top: 22px; right: 0; }
.tf button {
  background: none; border: 0; color: var(--muted); font: inherit; padding: 4px 0;
}
.tf button.on { color: var(--text); font-weight: 700; }
.chart-load-status { margin: 0 12px; min-height: 16px; line-height: 16px; font-size: 10px; color: var(--muted); }
.chart-load-status button { color: var(--text); background: none; border: 0; text-decoration: underline; font-size: inherit; }
.chart-wrap { position: relative; height: 260px; margin: 0 4px; padding-bottom: 14px; box-sizing: border-box; }
.tools {
  position: absolute; left: 0; top: 24px; z-index: 6; width: 28px;
  /* 24px clears the legend. 40px is the 26px time axis plus the wrap's 14px
     bottom pad. A content-sized strip ran 14px into that clock and covered
     the left time. Cap the strip; do not stretch it (fullscreen stays short). */
  max-height: calc(100% - 64px);
  display: flex; flex-direction: column; gap: 0; color: #8b939e;
  background: #07090e; border-radius: 8px; padding: 2px 0;
}
.tools button {
  width: 28px; height: 26px; max-height: 26px; min-height: 0; flex: 1 1 26px;
  display: grid; place-items: center;
  padding: 0; border: 0; background: transparent; color: inherit;
}
.tools button.on { color: #c7f284; }
.tools svg { width: 15px; height: 15px; max-width: 100%; max-height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }
.al { position: absolute; right: 2px; display: grid; gap: 1px; z-index: 2; }
.al-price { top: 28px; }
.al-vol { top: 122px; }
.al-chop { top: 152px; }
.al button { width: 22px; height: 16px; border-radius: 3px; border: 0; background: #1c222b; color: #fff; font-weight: 700; font-size: 10px; padding: 0; }
.al button.on { background: #fff; color: #111; }
.avg { position: absolute; right: 44px; top: 108px; font-size: 11px; font-weight: 650; color: var(--green); background: #07090ecc; padding: 1px 4px; border-radius: 4px; }
canvas.chart { width: 100%; height: 100%; display: block; }
.chart-label {
  position: absolute; left: 42px; top: 2px; right: 72px; z-index: 5;
  font-size: 11px; font-weight: 650; line-height: 14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,9,14,.94) 0%, rgba(7,9,14,.82) 72%, rgba(7,9,14,0));
  padding: 1px 4px 8px; border-radius: 4px;
}
.chart-label .lg-sym { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-label .lg-ohlc, .chart-label .lg-inds {
  display: block; white-space: normal; overflow-wrap: anywhere;
  font-size: 10px; line-height: 13px; max-width: 100%;
  text-shadow: 0 1px 2px #000;
}
.chart-label .lg-ohlc:empty, .chart-label .lg-inds:empty { display: none; }
@media (max-width: 420px) {
  .chart-label .lg-ohlc, .chart-label .lg-inds { font-size: 9px; line-height: 12px; }
}
.avg.entry { color: var(--green); }
.chart-foot {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 11px; padding: 6px 12px 8px; gap: 8px;
}
.range { background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; padding: 0; }
.chart-foot .on { color: var(--text); }
.tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line); padding-bottom: 0;
}
.tabs button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px;
  padding: 8px 0 10px; white-space: nowrap; position: relative; text-align: center;
}
.tabs button.on { color: var(--text); font-weight: 700; }
.tab-n { color: var(--faint); font-size: 11px; font-weight: 500; }
.tabs button.on:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff;
}
.manage {
  margin-left: auto; background: #1c222b; color: var(--text);
  border: 0; border-radius: 16px; padding: 4px 8px; font-size: 11px; flex: none;
}
.panel { padding-top: 8px; padding-bottom: 12px; }
.cols, .row {
  display: grid; grid-template-columns: 1.3fr .9fr 1fr .7fr; gap: 6px; align-items: center;
}
.cols { color: var(--faint); font-size: 12px; padding: 6px 0; }
.row {
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px;
}
.row .who { display: flex; gap: 8px; align-items: center; min-width: 0; }
.row .who .meta { min-width: 0; }
.row .who b { display: block; font-size: 13px; overflow-wrap: anywhere; }
.row .who span { color: var(--green); font-size: 11px; }
.hold-n { font-weight: 700; }
.hold-q { color: var(--muted); font-size: 12px; }
.pnl b, .pnl span { display: block; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.share { color: var(--muted); font-size: 14px; }
.sell {
  background: none; border: 0; color: var(--red); font-weight: 700; font-size: 13px;
}
.bar {
  flex: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #07090e;
  border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 700;
}
.mode {
  display: flex; gap: 8px; align-items: center; padding: 4px 10px 6px;
  font-size: 12px; color: var(--muted);
}
.pill {
  border: 0; border-radius: 12px; padding: 4px 8px; background: transparent; color: var(--muted); font: inherit;
}
.pill.on { background: #143024; color: var(--green); font-weight: 750; }
.nav {
  position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #0b0e13; border-top: 1px solid var(--line); padding: 6px 0 10px;
}
.nav button {
  background: none; border: 0; color: var(--faint); font-size: 10px; display: grid; gap: 2px; justify-items: center;
}
.nav button.on { color: var(--text); }
.nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.holder-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.holder-warning { padding: 10px 0; font-size: 12px; line-height: 1.5; }
.holder-retry { display: grid; min-width: 64px; min-height: 44px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #12171e; }
.holder-retry:disabled { opacity: .6; }
.bubblemaps {
  flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  color: var(--text); text-decoration: none; font-size: 12px; font-weight: 650;
}
.hcols, .hrow {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 58px 64px; gap: 6px; align-items: center;
}
.hcols { color: var(--faint); font-size: 11px; padding: 6px 0 2px; }
.hrow { font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.hrank { color: var(--faint); font-size: 12px; }
.hwho { display: flex; align-items: center; gap: 4px; min-width: 0; }
.haddr { color: var(--text); text-decoration: none; font-weight: 650; }
.htag { flex: none; font-size: 10px; font-weight: 750; border-radius: 6px; padding: 1px 4px; }
.htag.lp { color: #e6c84a; background: #3a3214; }
.htag.dev { color: #7ec8ff; background: #142433; }
.hpct, .hamt { text-align: right; font-variant-numeric: tabular-nums; }
.hamt { color: var(--muted); }
.trade-top, .presets, .amt-row { display: flex; align-items: center; gap: 8px; }
.trade-top { justify-content: space-between; color: var(--text); font-size: 14px; margin-bottom: 10px; }
.trade-right { display: flex; align-items: center; gap: 8px; }
.bal { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.mini { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; background: #1b2430; font-size: 11px; }
.mini img { width: 18px; height: 18px; object-fit: cover; }
.pct-unit { color: var(--muted); font-size: 14px; margin-right: 4px; }
.pencil, .market { background: none; border: 0; color: var(--muted); font: inherit; }
.market { background: #1a2028; border-radius: 16px; padding: 6px 10px; color: var(--text); }
.market-wrap { position: relative; }
.market-menu {
  position: fixed; z-index: 80; top: -999px; left: 8px;
  background: #1a2028; border-radius: 10px; padding: 4px; min-width: 148px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.market-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; border-radius: 8px; }
.market-menu button.on { background: #2a3340; }
.otype { margin: 2px 0 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.otype-row, .otype-chips, .stop-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.otype-row input {
  width: 64px; flex: none; background: #12171e; border: 1px solid #2a3340; border-radius: 8px;
  color: var(--text); padding: 6px 8px; font-size: 14px; outline: none;
}
.live-stop { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; font-size: 12px; }
.otype .note { font-size: 11px; color: var(--faint); line-height: 1.35; }
.mini-seg { display: flex; background: #1a2028; border-radius: 8px; padding: 2px; flex: none; }
.mini-seg button, .otype-chips button, .stop-row button { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 650; }
.mini-seg button.on, .otype-chips button.on { background: #2a3340; color: var(--text); }
.otype-chips button { border: 1px solid #2a3340; }
.stop-row { font-size: 12px; color: var(--muted); }
.stop-row button { margin-left: auto; color: var(--red); padding: 2px 0; }
.seg { display: flex; gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--muted); border-radius: 16px; padding: 6px 12px; font-weight: 700; }
.seg button.on.buy { background: #1f8f4a; color: #fff; }
.seg button.on.sell { background: #c23b55; color: #fff; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.presets button { border: 1px solid #2a3340; border-radius: 12px; background: transparent; color: var(--text); padding: 10px 0; font-weight: 650; }
/* A #3d4a5c border on #2a3340 read as unselected at 390px. Fill the active spend. */
.presets button.on { background: #2a3340; border-color: #d7dde4; color: var(--text); }
.amt-row { display: flex; align-items: stretch; gap: 8px; margin: 8px 0; min-width: 0; }
.go { flex: none; width: auto; min-width: 108px; margin: 0; border: 0; border-radius: 12px; padding: 0 10px; font-size: 14px; font-weight: 750; white-space: nowrap; }
.amt-box { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; background: #12171e; border-radius: 12px; padding: 8px 10px; }
.amt-box input { flex: 1 1 0; width: 0; background: transparent; border: 0; color: var(--text); font-size: 16px; min-width: 0; outline: none; }
.chev { color: var(--muted); }
.go.buy { background: #1f8f4a; color: #fff; }
.go.sell { background: #c23b55; color: #fff; }
.fine { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; margin-top: 8px; align-items: center; }
.est-right { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.est-right b { font-weight: 650; }
.est-usd { color: var(--muted); }
.badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #3a2a12; color: #e6c84a; font-size: 10px; margin-left: 4px; }
.badge[hidden] { display: none; }
.quote-detail { color: var(--muted); font-size: 11px; line-height: 1.35; padding: 2px 0 0; }
.quote-detail[hidden] { display: none; }
#est-more { background: none; border: 0; color: var(--muted); font: inherit; padding: 0 0 0 2px; line-height: 1; }
.lwc-host #tv-attr-logo { z-index: 8; pointer-events: auto; }
.axis-edge {
  position: absolute; left: 0; bottom: 0; z-index: 5; pointer-events: none;
  width: max-content; max-width: none; height: 26px; padding: 0 4px 0 2px;
  display: flex; align-items: center; background: #07090e; color: #8b939e;
  font-size: 10px; line-height: 14px; white-space: nowrap;
}
.axis-edge:empty { display: none; }
.axis-edge-r { left: auto; right: auto; bottom: 0; min-width: 0; max-width: none; width: max-content; height: 26px; justify-content: flex-end; align-items: center; padding-left: 16px; }
.axis-cross { left: auto; max-width: none; z-index: 7; justify-content: center; padding: 0 4px; background: #1a2028; color: #f3f5f7; border-radius: 4px; }
.axis-cut { position: absolute; bottom: 0; height: 26px; background: #07090e; z-index: 5; pointer-events: none; }
.scale-cut { position: absolute; background: #07090e; z-index: 4; pointer-events: none; }
.ultra { color: var(--green); font-size: 13px; margin-top: 8px; }
.tcols, .trow { display: grid; grid-template-columns: 48px 78px minmax(0, 1fr) 72px 40px; gap: 4px; align-items: center; }
.tcols { color: var(--faint); font-size: 12px; padding: 4px 0; }
.tcols button { background: none; border: 0; color: inherit; font: inherit; padding: 0; text-align: left; white-space: nowrap; }
.tcols > :nth-child(4), .tcols > :nth-child(5) { text-align: right; }
.trow { font-size: 12px; padding: 7px 0; }
.trow > span, .trow > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.age { color: #3DDC84; font-weight: 650; }
.vol { text-align: right; }
.trader { color: var(--muted); text-align: right; text-decoration: none; }
#lag { color: var(--faint); font-size: 11px; font-weight: 500; }
.sheet-root { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .18s; }
.sheet-root.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 50%; bottom: 0; width: min(100vw, 430px); max-height: 88dvh; transform: translateX(-50%);
  background: #10141a; border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -12px 40px #000a; transition: transform .2s;
}
.sheet-root .sheet { transform: translateY(0); left: 0; right: 0; margin: 0 auto; }
.sheet-head { flex: none; position: relative; padding: 10px 14px 0; touch-action: none; cursor: grab; }
.sheet-x { position: absolute; top: 14px; right: 10px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: #1c222b; color: #fff; font-size: 16px; }
.sheet-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 14px calc(20px + env(safe-area-inset-bottom)); }
.sheet-close-btn { width: 100%; padding: 14px 0; margin-top: 12px; }
#search-sheet.sheet { position: absolute; left: 0; right: 0; top: 92px; bottom: 0; width: auto; max-height: none; transform: none; display: block; overflow: auto; padding: 10px 14px 28px; z-index: 90; }
.grab { width: 42px; height: 4px; border-radius: 4px; background: #3a4250; margin: 4px auto 12px; }
.sheet h2 { font-size: 20px; margin: 0 0 12px; }
/* Reserve the close button's lane; long token names must wrap, not paint under X. */
#sheet-title { padding-right: 42px; overflow-wrap: anywhere; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 10px 0; }
.grid4 button { background: none; border: 0; color: var(--text); padding: 8px 0; font: inherit; }
.grid4 button small { display: block; font-weight: 700; }
.grid4 button small.up { color: var(--green); }
.grid4 button small.down { color: var(--red); }
.grid4 button small.flat { color: var(--muted); }
.grid4 button.on { background: #182028; }
.sheet-stats { display: grid; grid-template-columns: 1fr 1fr minmax(104px, 34%); gap: 10px 8px; align-items: center; }
.mix-pill { position: relative; height: 26px; border-radius: 999px; background: #161b22; overflow: hidden; display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.mix-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.mix-pill .lab { position: relative; z-index: 1; }
.mix-pill.buy { color: var(--green-2); }
.mix-pill.buy .mix-fill { background: #1c4a32; }
.mix-pill.sell { color: var(--pink); }
.mix-pill.sell .mix-fill { background: #4a1c32; }
.fee-sol { display: flex; align-items: center; gap: 4px; color: var(--green); }
.fee-sol img { width: 14px; height: 14px; border-radius: 50%; }
.stats .fee-sol { gap: 2px; font-size: 11px; }
.stats .fee-sol img { width: 11px; height: 11px; flex: none; }
.trend-box { margin: 10px 0 2px; }
.trend { height: 96px; margin: 4px 0; color: var(--faint); font-size: 12px; }
.trend .collecting { height: 96px; display: flex; align-items: center; color: var(--faint); }
.trend canvas { display: block; width: 100%; height: 96px; }
.delta3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; text-align: center; }
.delta3 .v.flat { color: var(--muted); }
.v.pink { color: var(--pink); }
[data-sf-curve][hidden], [data-sf-snip][hidden] { display: none !important; }
.k { color: var(--faint); font-size: 12px; }
.v { font-weight: 750; margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tile {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; font-size: 12px; color: var(--muted);
}
.tile b { display: block; font-size: 16px; margin-bottom: 2px; }
.tile b.flat { color: var(--muted); }
.filters { display: flex; gap: 3px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none;
  border: 0; border-radius: 12px; padding: 6px 5px; background: #1a2028; color: var(--text); font-size: 10px;
  white-space: nowrap;
}
.filters button.on { background: #2a3340; }
.holder-stats { font-size: 13px; line-height: 1.7; color: #d5dbe2; }
.toast {
  position: absolute; left: 16px; right: 16px; top: 78px; z-index: 9;
  background: #141a22; border-radius: 14px; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 8px 24px #0008;
}
.hidden { display: none !important; }
.flash { animation: flash .45s ease; }
@keyframes flash { from { filter: brightness(1.8); } to { filter: none; } }

/* Lightweight Charts host + resize */
.chart-slot { position: absolute; inset: 0 0 14px 0; }
.lwc-host { position: absolute; inset: 0; isolation: isolate; }
.lwc-host .tv-lightweight-charts { position: relative; z-index: 1; }
.lwc-legend { display: none; }
.draw-layer { position: absolute; inset: 0; z-index: 3; touch-action: none; }
.draw-layer.off { pointer-events: none; }
.pane-tags { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.pane-tag { position: absolute; left: 32px; font-size: 10px; color: #c5ccd4; font-weight: 650; text-shadow: 0 1px 2px #000; }
.pane-grips { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.pane-grip { position: absolute; left: 32px; right: 0; height: 18px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; pointer-events: auto; touch-action: none; cursor: ns-resize; user-select: none; -webkit-user-select: none; }
.pane-grip span { width: 44px; height: 4px; border-radius: 3px; background: #647181; box-shadow: 0 0 0 2px #07090e; }
.pane-grip:hover span, .pane-grip.active span, .pane-grip:focus-visible span { background: var(--green-2); }
.pane-grip:focus-visible { outline: 1px solid var(--green-2); outline-offset: -2px; }
.draw-text-inp { position: absolute; z-index: 7; width: 128px; font-size: 16px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: #12171e; color: #fff; }
.scale-btns { display: flex; gap: 10px; }
.scale-btns button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; padding: 0; }
.scale-btns button.on { color: var(--text); font-weight: 700; }
#ind-sheet { z-index: 40; padding: 10px 14px 24px; max-height: 72dvh; overflow: auto; }
#ind-sheet h2 { display: flex; justify-content: space-between; align-items: center; }
#ind-sheet h2 button { background: none; border: 0; color: var(--muted); font-size: 18px; }
.ind-row { width: 100%; display: flex; gap: 8px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; padding: 12px 0; text-align: left; }
.ind-row .ind-kind { margin-left: auto; color: var(--faint); font-size: 11px; }
.ind-row.on { color: var(--green-2); }
.ind-check { width: 18px; text-align: right; font-weight: 700; }
.lg-ohlc span { color: var(--muted); margin-right: 2px; }
.lg-ohlc b { font-weight: 650; margin-right: 4px; }
.chart-label { z-index: 5; pointer-events: none; }
.tf-tools .chart-full-btn { width: 28px; height: 28px; padding: 0; font-size: 15px; line-height: 28px; }
.tf-full { justify-content: flex-start; }
.tf-full .chart-full-btn { flex: none; width: 32px; height: 32px; margin-left: 8px; border-radius: 8px; background: rgba(28,34,43,.85); color: #fff; font-size: 16px; line-height: 32px; padding: 0; }
.chart-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; display: flex; align-items: center; justify-content: center; cursor: ns-resize; touch-action: none; z-index: 4; user-select: none; -webkit-user-select: none; }
.chart-grip span { width: 44px; height: 4px; border-radius: 2px; background: #3a4350; }
.chart-grip:hover span, .chart-wrap.resizing .chart-grip span { background: #8b939e; }
.chart-wrap.resizing { user-select: none; -webkit-user-select: none; }
.chart-wrap.full { position: fixed; inset: 0; z-index: 60; margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(env(safe-area-inset-bottom) + 40px) env(safe-area-inset-left); background: #07090e; height: auto !important; }
.chart-wrap.full .chart-slot { inset: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 40px) 0; }
.chart-wrap.full .tf-full { position: absolute; left: 0; right: 0; bottom: env(safe-area-inset-bottom); height: 40px; display: flex; gap: 4px; align-items: center; padding: 0 8px; overflow-x: auto; }
#chart-mode { background: none; border: 0; color: var(--muted); font: inherit; padding: 0; }
#chart-mode.on { color: var(--text); }

/* Alpha screener */
.alpha { padding: 8px 12px 16px; }
.al-top { display: flex; align-items: center; justify-content: space-between; }
.al-top h2 { margin: 4px 0 6px; font-size: 20px; }
.al-refresh { background: #1c222b; color: #fff; border: 0; border-radius: 8px; width: 32px; height: 32px; font-size: 16px; }
.alpha .chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.alpha .chips::-webkit-scrollbar, .al-sort::-webkit-scrollbar { display: none; }
.alpha .chips button, .al-sort button, .al-actions button { flex: none; background: #12171e; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; white-space: nowrap; }
.alpha .chips.small button { padding: 4px 10px; font-size: 12px; }
.alpha .chips button.on, .al-sort button.on { color: var(--text); border-color: #c7f284; background: #1a2410; }
.preset { display: inline-flex; flex: none; }
.preset .x { margin-left: -6px; padding: 4px 8px !important; border-left: 0 !important; border-radius: 0 999px 999px 0 !important; }
.preset:has(.x) > button:first-child { border-radius: 999px 0 0 999px; }
.al-filters { background: #0d1117; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 6px 0; }
.al-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.al-grid label { display: grid; gap: 3px; font-size: 11px; color: var(--muted); min-width: 0; }
.al-grid input { width: 100%; box-sizing: border-box; background: #12171e; border: 1px solid var(--line); border-radius: 8px; color: #fff; padding: 8px; font-size: 16px; }
.al-grid input.bad { border-color: #f6465d; }
.al-bools { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 4px; font-size: 13px; }
.al-bools input { accent-color: #c7f284; width: 16px; height: 16px; vertical-align: -3px; }
.al-note { font-size: 11px; margin: 6px 0; }
.al-actions { display: flex; gap: 8px; justify-content: flex-end; }
.al-actions .save { color: #111; background: #c7f284; border-color: #c7f284; }
.al-sort { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; }
.al-sort button { padding: 4px 10px; font-size: 12px; }
.al-head, .al-row { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, .88fr) minmax(0, .8fr) minmax(64px, .72fr); gap: 4px; align-items: center; }
.al-head { font-size: 10px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.al-head span:not(:first-child), .al-num { text-align: right; }
.al-count { font-size: 11px; color: var(--muted); padding: 6px 0 2px; }
.al-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 9px 0; font: inherit; text-align: left; }
.al-row:active { background: #12171e; }
.al-tok { display: flex; align-items: center; gap: 8px; min-width: 0; }
.al-tok .tok-av { width: 30px; height: 30px; flex: none; }
.al-tok .tok-av img { width: 30px; height: 30px; border-radius: 50%; }
.al-meta { display: grid; min-width: 0; }
.al-meta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-meta span, .al-num span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-num { display: grid; min-width: 0; overflow: hidden; }
.al-num b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-num b.al-change-long { font-size: 11px; }
.al-meta .b { font-style: normal; font-size: 9px; font-weight: 700; padding: 0 3px; border-radius: 3px; margin-left: 2px; }
.al-meta .b.ok { color: #2ebd85; background: rgba(46,189,133,.12); }
.al-meta .b.bad { color: #f6465d; background: rgba(246,70,93,.12); }
.al-head button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-head button:not(:first-child) { text-align: right; }
.al-head button.on { color: var(--text); }
.al-meta .b.mid { color: #f0b90b; background: rgba(240,185,11,.12); }
.al-meta .b.wait { color: var(--muted); background: rgba(255,255,255,.06); }
.al-note a { color: #c7f284; }
.al-grid label:nth-last-child(-n+2) span { color: #c7f284; }
.al-meta span { overflow: hidden; text-overflow: clip; }
.al-meta .al-rc { margin-top: 2px; }
.al-meta .al-rc .b:first-child { margin-left: 0; }
.al-meta .vf { font-style: normal; color: #2ebd85; font-size: 11px; margin-right: 3px; }
.al-tools { display: flex; gap: 8px; padding: 4px 0 2px; }
.market-tabs { display: flex; gap: 6px; padding: 6px 0; }
.market-tabs button { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 10px 8px; background: #12171e; color: var(--muted); font: inherit; font-weight: 700; }
.market-tabs button.on { color: var(--green-2); border-color: var(--green-2); background: #1a2410; }
.market-search { margin-left: auto; }
.al-filter-btn { display: inline-flex; align-items: center; gap: 6px; background: #12171e; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; }
.al-filter-btn.on { border-color: #c7f284; color: #c7f284; }
.al-feed { margin: 0 0 4px; }
.al-lpnote { font-size: 11px; color: #c7f284; padding: 4px 0 2px; line-height: 1.35; }
.lp-pull { color: #f6465d; font-size: 10px; font-weight: 750; white-space: nowrap; }
#search-sheet .scan-chips, #search-sheet .chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; }
#search-sheet .chips button { flex: none; background: #12171e; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; }
#search-sheet .chips button.on { color: #111; background: #c7f284; border-color: #c7f284; }
#search-sheet [data-search-retry], #search-sheet [data-scan-retry] { min-width: 64px; min-height: 44px; margin: 8px 0 0; display: grid; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #12171e; }
#search-sheet .row { width: 100%; display: flex; gap: 6px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 10px 0; font: inherit; text-align: left; min-width: 0; }
#search-sheet .row b { flex: none; font-size: 14px; }
#search-sheet .row .k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#search-sheet .row .b { flex: none; font-style: normal; font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; color: var(--muted); background: rgba(255,255,255,.06); }
#search-sheet .row .lp-pull { flex: none; }
#search-sheet .row span:last-child { flex: none; margin-left: auto; }
.af-root { z-index: 120; }
.af-sheet { width: min(100vw, 430px); max-height: 88dvh; }
.af-sheet h2 { padding-right: 42px; }
.af-top { flex: none; }
.af-top .chips { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.af-top .chips::-webkit-scrollbar { display: none; }
.af-top .chips button { flex: none; background: #12171e; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; white-space: nowrap; }
.af-top .chips button.on { color: #111; border-color: #c7f284; background: #c7f284; }
.af-top .presets-row { padding: 0 14px 8px; }
.af-sortrow { display: grid; grid-template-columns: 1fr 92px; gap: 8px; align-items: end; padding: 0 14px 8px; }
.af-field { display: grid; gap: 4px; font-size: 11px; color: var(--muted); min-width: 0; }
.af-field input, .af-field select, .af-pair input, .af-dir {
  width: 100%; box-sizing: border-box; background: #12171e; border: 1px solid var(--line); border-radius: 8px;
  color: #fff; padding: 8px; font-size: 16px; font-family: inherit;
}
.af-field select { color-scheme: dark; }
.af-dir { height: 40px; background: #1c222b; color: var(--text); border-radius: 8px; }
.af-lab { font-size: 11px; color: var(--muted); margin: 8px 0 4px; }
.af-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.af-pair span { color: var(--faint); }
.af-row, .af-age { display: grid; gap: 8px; margin-top: 8px; }
.af-row { grid-template-columns: 1fr 1fr; }
.af-age { grid-template-columns: 1fr 1fr 64px; }
.af-field input.bad, .af-pair input.bad { border-color: #f6465d; }
.af-sec { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; font-weight: 650; padding: 14px 0; text-align: left; }
.af-sec .chev { margin-left: auto; color: var(--muted); font-weight: 500; }
.af-sec.on { color: #c7f284; }
.af-body { padding: 4px 0 12px; }
.af-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #c7f284; color: #111; font-size: 11px; font-weight: 750; display: inline-grid; place-items: center; }
.af-badge[hidden] { display: none; }
.af-bools { display: grid; gap: 2px; margin: 4px 0 8px; }
.af-sw { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text); }
.af-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-sw .knob { width: 40px; height: 24px; border-radius: 999px; background: #2a313c; position: relative; flex: none; }
.af-sw .knob:after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.af-sw input:checked + .knob { background: #c7f284; }
.af-sw input:checked + .knob:after { transform: translateX(16px); }
.af-note { font-size: 11px; margin: 8px 0 0; }
.af-note a { color: #c7f284; }
.af-foot { flex: none; display: flex; gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #10141a; }
.af-foot button { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #1c222b; color: #fff; font: inherit; font-size: 15px; font-weight: 650; }
.af-foot .apply { flex: 1.4; background: #c7f284; color: #111; border-color: #c7f284; }
.wp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-bottom: 8px; border: 1px solid #232a34; border-radius: 12px; background: #161b22; color: #fff; font-size: 16px; text-align: left; }
.wp-row img, .wp-dot { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wp-dot { display: grid; place-items: center; background: #2a313c; font-weight: 700; }
.wp-row small { margin-left: auto; color: #3ddc84; }
.wp-link { display: block; text-align: center; text-decoration: none; padding: 14px 0; border-radius: 12px; }

/* ---- Polish pass (2026-11-28): type, contrast, depth, motion. No box sizes change. ---- */
:root {
  --line-2: rgba(255,255,255,.12);
  --card-hi: #161c24;
  --buy-a: #27a85a; --buy-b: #1b8445;
  --sell-a: #d4466a; --sell-b: #b3334f;
  --accent: #7dff6b;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
/* The bundler line sat flush against the left edge, 12px off every other header row. */
.gmgn-line { padding-left: 12px; padding-right: 12px; }
/* Live numbers keep their width while they tick. */
.mc-line .px, .mc-line .chg, .stats .v, .tile b, .gmgn-line strong, .rc-line, .tab-n,
[data-holder-count], [data-sf], .est-right, .row, .cols, .al-num, .amt-box input, .presets button {
  font-variant-numeric: tabular-nums;
}
.mc-line .px { letter-spacing: -0.6px; }
.stats .k, .k { letter-spacing: .01em; }
.stats .v { color: #e9edf1; }
.rc-line, .gmgn-line { color: #9aa3ad; }
/* Active timeframe reads as a pill instead of only bold text (same box). */
.tf button { border-radius: 6px; transition: color .15s, background-color .15s; }
.tf button.on { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)); box-shadow: 0 0 0 3px rgba(255,255,255,.07); }
/* Tab underline uses the accent with a soft glow. */
.tabs button { transition: color .15s; }
.tabs button.on:after { background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent); box-shadow: 0 0 10px rgba(125,255,107,.45); border-radius: 2px; }
/* Buy/sell depth: gradient fill, top highlight, colored glow. */
.go.buy, .seg button.on.buy { background: linear-gradient(180deg, var(--buy-a), var(--buy-b)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px rgba(39,168,90,.28); }
.go.sell, .seg button.on.sell { background: linear-gradient(180deg, var(--sell-a), var(--sell-b)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 6px 16px rgba(212,70,106,.26); }
.go, .seg button, .presets button, .mini-seg button, .otype-chips button, .icon-btn, .round, .sheet-x, .tf button, .tabs button, .nav button {
  -webkit-tap-highlight-color: transparent;
}
.go, .seg button, .presets button, .icon-btn, .round, .sheet-x { transition: transform .08s ease-out, background-color .15s, border-color .15s, box-shadow .15s; }
.go:active, .seg button:active, .presets button:active, .icon-btn:active, .round:active, .sheet-x:active { transform: scale(.97); }
.presets button { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.presets button.on { box-shadow: 0 0 0 1px rgba(215,221,228,.35), 0 4px 12px rgba(0,0,0,.35); }
.amt-box { box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: box-shadow .15s; }
.amt-box:focus-within { box-shadow: inset 0 0 0 1px rgba(125,255,107,.45), 0 0 0 3px rgba(125,255,107,.10); }
/* Cards: one radius family, a hairline top highlight. */
.tile { background: linear-gradient(180deg, var(--card-hi), #0f1318); border-color: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.tile b { letter-spacing: -0.2px; }
.sheet { background: linear-gradient(180deg, #131820, #0e1217 140px); border-top: 1px solid var(--line-2); }
.sheet-x { background: #1c222b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.grab { background: #4a5363; }
.nav { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(7,9,14,.92), #07090e); }
.nav button.on { color: #fff; }
:focus-visible { outline: 2px solid rgba(125,255,107,.6); outline-offset: 2px; border-radius: 6px; }
/* Value-change tint is a short color/glow animation from startValueFlash in trench.js. */
@media (prefers-reduced-motion: reduce) {
  .tf button, .tabs button, .go, .seg button, .presets button, .icon-btn, .round, .sheet-x, .amt-box { transition: none; }
}

/* Drop alerts: red badges that sit in the top browser bar (over the "jup.ag" pill), never over
   token values. pointer-events none, so the pill below stays tappable. */
#drop-alerts{position:fixed;top:calc(env(safe-area-inset-top,0px) + 9px);left:50%;transform:translateX(-50%);width:min(290px,calc(100vw - 100px));height:28px;z-index:9000;display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:4px;pointer-events:none}
#drop-alerts .drop-badge{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;padding:0 6px;border-radius:999px;background:#e5243b;color:#fff;font-weight:800;font-size:12px;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 0 0 1.5px rgba(255,255,255,.2),0 4px 14px rgba(229,36,59,.55);animation:drop-pop .28s ease-out,drop-pulse 1.2s ease-in-out .3s infinite}
.drop-hit{color:#ff3b4e !important;text-shadow:0 0 10px rgba(255,59,78,.55)}
@keyframes drop-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes drop-pulse{50%{box-shadow:0 0 0 1.5px rgba(255,255,255,.2),0 4px 20px rgba(229,36,59,.95)}}
@media (prefers-reduced-motion:reduce){#drop-alerts .drop-badge{animation:none}}

/* Touch: no 300 ms double-tap wait or double-tap zoom on controls; instant press state
   (".pressed" is set on pointerdown by startTouchFeedback). */
button, a[href], [role=button], [role=tab], summary, label[for], input, select, textarea { touch-action: manipulation; }
button, a[href], [role=button], [role=tab] { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
button, [role=button], [role=tab] { -webkit-user-select: none; user-select: none; }
.pressed { opacity: .78; transition: none !important; }
.go.pressed, .seg button.pressed, .presets button.pressed, .icon-btn.pressed, .round.pressed, .sheet-x.pressed, .tabs button.pressed, .nav button.pressed, .tf button.pressed { transform: scale(.95); opacity: 1; filter: brightness(1.25); }

/* Touch: bigger hit areas without changing the look. Each ::before is invisible and only
   reaches into empty space or the gap to the next control, never over another control. */
.icon-btn, .round, .token-head .copy, .token-head .soc, .stat-more, .tf-scroll button, .tf-tools button,
.scale-btns button, #chart-mode, .tools button, .seg button, .market, #est-more { position: relative; }
.icon-btn::before, .round::before, .token-head .copy::before, .token-head .soc::before, .stat-more::before,
.tf-scroll button::before, .tf-tools button::before, .scale-btns button::before, #chart-mode::before,
.tools button::before, .seg button::before, .market::before, #est-more::before { content: ""; position: absolute; }
.url { position: relative; }
/* The address/search pill was omitted from the expanded touch targets. Keep its
   36px reference shape; the 44px hit box stays inside the browser row's padding. */
.url::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 44px; transform: translateY(-50%); }
.icon-btn::before { inset: -4px; }
.round::before { inset: -6px -4px; }
.token-head .copy::before { inset: -6px -5px 0; }
/* The 16px audit badge is too small to hit on a phone. Use the token icon's
   otherwise inert area, keeping the badge and every neighboring control in place. */
.token-head .badge.rc::before { content: ""; position: absolute; right: -2px; bottom: -2px; width: 44px; height: 44px; }
.token-head .soc::before { inset: 0 -2px -6px; }
.stat-more::before { inset: -16px -8px 0; }
/* Timeframe row: the stats' bottom padding moves into the row so buttons can reach it. */
.stats { padding-bottom: 0; }
.tf { padding-top: 8px; }
.tf-scroll { padding: 8px 0 6px; margin: -8px 0 -6px; }
.tf-scroll button::before { top: -11px; bottom: -10px; left: -3.5px; right: -3.5px; }
.tf-tools button::before { top: -8px; bottom: -6px; left: -1px; right: -1px; }
.scale-btns button::before { top: -6px; bottom: -10px; left: -5px; right: -5px; }
.scale-btns button:first-child::before { left: -12px; }
#chart-mode::before { top: -6px; bottom: -10px; left: -6px; right: -12px; }
.tools button::before { top: 0; bottom: 0; left: -4px; right: -12px; }
.seg button::before, .market::before { top: -6px; bottom: -9px; left: -2px; right: -2px; }
#est-more::before { top: -7px; bottom: -14px; left: -30px; right: -12px; }

/* Visual haptic ring (startTapHaptics): overlay only, never takes a tap. */
.tap-ring { position: fixed; pointer-events: none; z-index: 8999; box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 14px rgba(125,255,107,.35); }

/* Swipe ergonomics: horizontal rows scroll on their own without bouncing the page or
   chaining into a back-swipe; sheets and the main scroller never drag the page behind. */
.tf-scroll, .filters, .alpha .chips, .al-sort, #search-sheet .scan-chips, #search-sheet .chips, .af-top .chips { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.al-sort, #search-sheet .scan-chips, #search-sheet .chips { scrollbar-width: none; }
.al-sort::-webkit-scrollbar, #search-sheet .scan-chips::-webkit-scrollbar, #search-sheet .chips::-webkit-scrollbar { display: none; }
#search-sheet.sheet, #ind-sheet, .scroll { overscroll-behavior: contain; }
html, body { overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Bottom nav: full 44 px tap rows in the same height, readable labels, accent marker on the active tab. */
.nav { padding-top: 0; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
.nav button { min-height: 44px; font-size: 11px; font-weight: 600; letter-spacing: .01em; position: relative; align-content: center; }
.nav button.on::after { content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 2px; transform: translateX(-50%); border-radius: 0 0 2px 2px; background: var(--accent); box-shadow: 0 0 8px rgba(125,255,107,.5); }

/* Timeframe row: full 44 px tap height without taking more space. The scroller's own padding
   carries the hit area (overflow clips pseudo-elements), pulled back with negative margins so
   the row keeps its height; it overlaps only the non-interactive stat text above. */
.tf { overflow: visible; position: relative; z-index: 2; }
.tf-scroll { padding: 11px 0 10px; margin: -11px 0 -10px; }
.tf-tools { position: relative; }
.tf-tools button::before { top: -6px; bottom: -10px; }
.tf-full .tf-scroll { padding: 0; margin: 0; }

/* Header polish (same heights): 24h change as a tinted pill, stat labels slightly dimmer,
   hairline dividers between the stat cells. */
.mc-line .chg { align-self: center; padding: 2px 8px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.06); }
.mc-line .chg.up { background: rgba(94,214,140,.13); box-shadow: inset 0 0 0 1px rgba(94,214,140,.22); }
.mc-line .chg.down { background: rgba(229,84,111,.14); box-shadow: inset 0 0 0 1px rgba(229,84,111,.24); }
.stats .k { font-size: 10.5px; letter-spacing: .01em; color: #6f7a87; }
.stats > div { position: relative; }
.stats > div:not(:first-child)::before { content: ""; position: absolute; left: -3px; top: 2px; bottom: 1px; width: 1px; background: rgba(255,255,255,.06); }

/* Holders: thin share bar under each row. Trades: side edge + faint tint, neutral age. */
.hrow { position: relative; }
.hbar { position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(125,255,107,.55), rgba(125,255,107,.08)); pointer-events: none; }
.trow { position: relative; padding-left: 8px; margin-left: -2px; border-radius: 4px; }
.trow::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: currentColor; pointer-events: none; }
.trow.side-buy { color: var(--green); background: linear-gradient(90deg, rgba(94,214,140,.07), transparent 40%); }
.trow.side-sell { color: var(--red); background: linear-gradient(90deg, rgba(229,84,111,.07), transparent 40%); }
.trow > * { color: var(--text); }
.trow .up { color: var(--green); }
.trow .down { color: var(--red); }
.trow .age { color: var(--muted); }
.tcols { padding-left: 8px; margin-left: -2px; }

/* Alpha: 44 px touch rows at (almost) the same height. Scroller / header padding carries the
   hit area, pulled back with negative margins. */
.al-refresh { position: relative; }
.al-refresh::before { content: ""; position: absolute; inset: -6px; }
.alpha .chips { padding: 7px 0; margin: -3px 0; }
.alpha .chips button { position: relative; }
.alpha .chips button::before { content: ""; position: absolute; left: -3px; right: -3px; top: -8px; bottom: -8px; }
.al-filter-btn { position: relative; }
.al-filter-btn::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; bottom: -3px; }
.al-head { padding: 0; margin: -3px 0 -9px; position: relative; z-index: 1; }
.al-head button { padding: 13px 0; }

/* Holders tab count: readable, same weight as the label, tabular so it does not jitter. */
.tabs .tab-n { color: var(--text); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; margin-left: 2px; }
.tabs button:not(.on) .tab-n { color: #aab3be; }

/* Short phone viewports (Safari with toolbars, ~660px): slimmer Holding bar so the amount box and
   Buy row keep more room above the bottom nav. */
.bar { white-space: nowrap; }
.bar > * { overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 740px) {
  .bar { padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
}

/* Drag handles of the search / indicators sheets: let the finger pull the sheet instead of scrolling. */
#search-sheet .grab, #search-sheet h2, #ind-sheet .grab, #ind-sheet h2 { touch-action: none; cursor: grab; }
#search-sheet h2, #ind-sheet h2 { padding-bottom: 4px; }

/* Bundlers header line: tappable, with a plain-words popover. */
.gmgn-line { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#bund-tip { position: fixed; left: 12px; right: 12px; max-width: 406px; margin: 0 auto; z-index: 8000; padding: 10px 12px; border-radius: 12px; background: #1a212b; color: var(--text); font-size: 12.5px; line-height: 1.4; border: 1px solid var(--line-2); box-shadow: 0 10px 30px #000b; animation: bundTip .14s ease-out; }
@keyframes bundTip { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #bund-tip { animation: none; } }

/* Round 4 polish ------------------------------------------------------------------------------ */
/* Holding rows: tickers of 8+ characters step down a size so NEVERDOOM stays on one line instead of
   breaking as NEVERDO / OM (anything longer still wraps safely). */
.row .who b.long { font-size: 11px; letter-spacing: 0; }
.row .who b.xlong { font-size: 10px; letter-spacing: -.01em; }
/* Sell in the Holding list is a soft red pill: a real tap target that still reads as secondary. */
.row .actions .sell { position: relative; isolation: isolate; padding: 0 12px; background: none; box-shadow: none; }
.row .actions .sell::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 30px; transform: translateY(-50%); border-radius: 999px; z-index: -1; background: rgba(255, 91, 110, .12); box-shadow: inset 0 0 0 1px rgba(255, 91, 110, .22); transition: background-color .15s; }
.row .actions .sell:active::before { background: rgba(255, 91, 110, .26); }
/* Rows answer the finger. */
.row[data-mint] { transition: background-color .15s; }
.row[data-mint]:active { background: rgba(255, 255, 255, .035); }
/* Column heads: a touch quieter and tighter so the numbers carry the hierarchy. */
.cols { letter-spacing: .01em; }
/* Chart frame: faint hairlines top and bottom so the chart reads as one inset card. */
.chart-wrap { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), inset 0 -1px 0 rgba(255, 255, 255, .045); border-radius: 6px; }
/* Buy/Sell: the segmented toggle gets a clearer selected state. */
.seg button.on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* Scrolling feel: native momentum, and long-press on list rows does not start a text selection. */
.scroll, .sheet-body { -webkit-overflow-scrolling: touch; }
.trow, .tcols, .row[data-mint], .stats, .mc-line { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.trow a.trader { -webkit-user-select: auto; user-select: auto; }

/* Portfolio header: net worth with the wallet's unrealised PnL under it. */
.pf-pnl { font-size: 12px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pf-pnl.up { color: var(--green); }
.pf-pnl.down { color: var(--red); }
.pf-pnl[hidden] { display: none; }

/* Token Info sheet readability: brighter captions, roomier tiles, tidier title. */
.sheet .k { color: #8e98a5; font-size: 12.5px; letter-spacing: .01em; }
.sheet .v { font-size: 15.5px; }
.sheet .tile { color: #9aa4b0; font-size: 12.5px; padding: 12px 6px; line-height: 1.25; }
.sheet .tile b { font-size: 17px; margin-bottom: 3px; }
.sheet .delta3 { padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 12px; }
.sheet .delta3 .v { font-size: 16px; }
#sheet-title { font-size: 18px; line-height: 1.25; padding-right: 48px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Alpha rows: soft press highlight with a green edge, no text selection on long press. */
.al-row { transition: background-color .12s, box-shadow .12s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.al-row:active { background: rgba(255, 255, 255, .045); box-shadow: inset 3px 0 0 rgba(125, 255, 107, .55); }
[data-pf-sol] { -webkit-user-select: none; user-select: none; }

/* Crosshair price chip on the right axis (drawn by us; the library's label is masked). */
.xh-price { position: absolute; right: 0; z-index: 8; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 4px 0 0 4px; background: #2c3542; color: #f3f5f7; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }
.xh-price[hidden] { display: none; }
/* Crosshair OHLC readout: readable on a phone and always on a dark pill. */
@media (max-width: 420px) { .chart-label .lg-ohlc { font-size: 10px; line-height: 13px; } }
.lg-ohlc .oh { font-style: normal; white-space: nowrap; display: inline-block; }

/* Quote freshness (beside "Est. Received") */
.quote-age { margin-left: 6px; font-size: 10.5px; color: #6f7a87; font-variant-numeric: tabular-nums; }
.quote-age.stale { color: #e0a63a; }
.quote-age:empty { display: none; }
/* Busy Go button: spinner + stage label */
.go .spin { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: go-spin .7s linear infinite; }
@keyframes go-spin { to { transform: rotate(360deg); } }
.go.busy:disabled { opacity: 1; }
.go:disabled:not(.busy) { filter: saturate(.55) brightness(.8); }
/* Toast tone + exit */
.toast { border-left: 3px solid #3a4452; animation: toast-in .22s ease-out; }
.toast.ok { border-left-color: #2fbf71; }
.toast.err { border-left-color: #e5536f; background: #1d1519; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
.toast .toast-tx { color: #8fb4ff; margin-left: 6px; font-weight: 650; text-decoration: none; }
.toast button { margin-left: 10px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
/* Skeleton rows */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sk { position: relative; display: block; }
.sk-row { display: grid; grid-template-columns: 34px 1fr 64px; gap: 12px; align-items: center; padding: 9px 0; }
.sk-row:nth-child(n+3) { opacity: .75; } .sk-row:nth-child(n+5) { opacity: .5; } .sk-row:nth-child(n+7) { opacity: .3; }
.sk i { display: block; border-radius: 6px; background: linear-gradient(90deg, #151b24 0%, #232c39 45%, #151b24 90%); background-size: 220% 100%; animation: sk-shine 1.5s ease-in-out infinite; }
.sk-av { width: 34px; height: 34px; border-radius: 50% !important; }
.sk-l { display: grid; gap: 7px; } .sk-l i { height: 9px; width: 62%; } .sk-l i + i { width: 38%; height: 8px; }
.sk-r i { height: 10px; width: 100%; }
@keyframes sk-shine { from { background-position: 130% 0; } to { background-position: -90% 0; } }
@media (prefers-reduced-motion: reduce) { .sk i, .go .spin { animation-duration: 3s; } .toast { animation: none; } }

/* Bundlers (GMGN token-page style): grey "Bundler" label, plain % in green/red, then the
   buy / sell split for the chart window. The sell side is always red and gets louder as it grows. */
.gmgn-line .b1, .gmgn-line .b2 { display: block; min-height: 1.35em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmgn-line .bl { color: #8b939e; }
.gmgn-line strong.up { color: var(--green); }
.gmgn-line strong.down { color: var(--red); }
.gmgn-line strong.flat { color: #9aa3ad; }
.gmgn-line .bc { color: #8b939e; }
.gmgn-line .b2.dim, .gmgn-line .b2 .bwin { color: #7d8691; }
.gmgn-line .bb b { color: var(--green); font-weight: 650; }
.gmgn-line .bs, .bsplit-row .bs { color: var(--red); border-radius: 6px; }
.gmgn-line .bs b, .bsplit-row .bs b { color: var(--red); font-weight: 650; }
.gmgn-line .bs.zero, .bsplit-row .bs.zero, .gmgn-line .bs.zero b, .bsplit-row .bs.zero b { color: #8b939e; font-weight: 500; }
.gmgn-line .bs.high, .bsplit-row .bs.high { padding: 0 5px; margin: 0 -1px; background: rgba(229,84,111,.15); box-shadow: inset 0 0 0 1px rgba(229,84,111,.3); }
.gmgn-line .bs.high b, .bsplit-row .bs.high b { font-weight: 800; }
.gmgn-line .bs.hot, .bsplit-row .bs.hot { padding: 0 5px; margin: 0 -1px; background: rgba(229,84,111,.3); box-shadow: inset 0 0 0 1px rgba(229,84,111,.7); }
.gmgn-line .bs.hot b, .bsplit-row .bs.hot b { font-weight: 800; color: #ff7a93; }
.gmgn-line .bup, .bsplit-row .bup { font-style: normal; font-size: 9px; margin-left: 3px; color: #ff7a93; }
.bsplit-row { margin-top: 8px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 13px; color: #9aa4b0; text-align: center; min-height: 20px; font-variant-numeric: tabular-nums; }
.bsplit-row .bb b { color: var(--green); font-weight: 650; }
.bsplit-row .b2.dim { color: #7d8691; }
.bsplit-row .bwin { opacity: .75; }
