/* Ripper OTC — light-first theme (Bizee-inspired surfaces and buttons), Dexscreener-style layout
   (left sidebar, ticker, stat strip, dense sortable table), #1A1A1A accent (inverts to near-white in dark mode), Poppins (bundled, OFL). */

@font-face { font-family: 'Poppins'; src: url('fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-700.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #F6F7FA;          /* page */
  --panel: #FFFFFF;       /* cards, sidebar, table */
  --raise: #F3F4F8;       /* table head, chips, hover */
  --line: #E6E9EF;
  --line-strong: #D5DAE3;
  --text: #081038;        /* navy */
  --muted: #6A7292;
  --accent: #1A1A1A;      /* near-black */
  --accent-hover: #333333;
  --accent-ink: #FFFFFF;
  --accent-tint: #EDEDED;
  --alt: #FAFAFA;          /* every other row */
  --ok: #0E9F6E; --warn: #B7791F; --bad: #E0344B;
  --up: #0E9F6E; --down: #E0344B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --radius: 14px;
  --side-w: 232px;
  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A0A0A; --panel: #111111; --raise: #1C1C1C; --line: #262626; --line-strong: #363636;
  --text: #EDEDED; --muted: #8F8F8F;
  --accent: #EDEDED; --accent-hover: #FFFFFF; --accent-ink: #1A1A1A; --accent-tint: #2A2A2A; --alt: #161616;
  --ok: #34D399; --warn: #F5B942; --bad: #FF6B7D; --up: #34D399; --down: #FF6B7D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0A0A0A; --panel: #111111; --raise: #1C1C1C; --line: #262626; --line-strong: #363636;
    --text: #EDEDED; --muted: #8F8F8F;
    --accent: #EDEDED; --accent-hover: #FFFFFF; --accent-ink: #1A1A1A; --accent-tint: #2A2A2A; --alt: #161616;
    --ok: #34D399; --warn: #F5B942; --bad: #FF6B7D; --up: #34D399; --down: #FF6B7D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; font-weight: 500; }
.small { font-size: 12px; }
.ic { flex: none; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- app shell */
.app { display: flex; min-height: 100vh; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px 28px 48px; flex: 1; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 28px; }
.banner { background: var(--accent-tint); color: var(--text); font-size: 13px; font-weight: 500; text-align: center; padding: 7px 16px; }
.banner strong { color: var(--accent); margin-right: 4px; font-weight: 700; }

/* sidebar (Dexscreener-style) */
.side {
  width: var(--side-w); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20;
  background: var(--panel); border-right: 1px solid var(--line); padding: 16px 14px; display: flex; flex-direction: column; gap: 6px;
}
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; }
.side .side-close { display: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -.4px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 15px; }
.logo-otc { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-tint); padding: 1px 6px; border-radius: 5px; letter-spacing: .04em; }
.side-search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; margin: 0 0 8px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: var(--raise); color: var(--muted); cursor: text;
}
.side-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); background: var(--panel); }
.side-search input { border: 0; background: none; height: 100%; padding: 0; font-size: 13px; box-shadow: none !important; flex: 1; min-width: 0; }
.side-search kbd { font: inherit; font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 6px; color: var(--muted); background: var(--panel); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-chain {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; width: 100%;
}
.side-nav a .ic { color: var(--muted); }
.side-nav a:hover, .side-chain:hover { background: var(--raise); text-decoration: none; }
.side-nav a.on { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.side-nav a.on .ic { color: var(--accent); }
.side-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 4px; }
.side-chains { display: flex; flex-direction: column; gap: 1px; }
.side-chain { height: 34px; font-size: 13.5px; }
.side-chain img { border-radius: 50%; }
.side-chain .all-ic { width: 18px; height: 18px; display: grid; place-items: center; color: var(--muted); }
.side-chain .all-ic .ic { width: 16px; height: 16px; }
.side-chain.on { background: var(--raise); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side-tag { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.side-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.side-bottom #who { min-width: 0; overflow: hidden; }
.me:hover { text-decoration: none; }
.mbar, .scrim { display: none; }

.icon-btn {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--text); }

/* ticker */
.ticker {
  display: flex; align-items: center; gap: 6px; padding: 8px 28px; background: var(--panel); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.tick-label { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 6px; }
.tick {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; flex: none;
}
.tick:hover { border-color: var(--line-strong); background: var(--raise); }
.tick img { border-radius: 50%; }
.tick strong { font-weight: 700; }
.tick .up { color: var(--up); font-weight: 600; }
.tick .down { color: var(--down); font-weight: 600; }

.status {
  max-width: 1480px; margin: 14px auto 0; padding: 11px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); width: calc(100% - 56px); box-shadow: var(--shadow);
}
.status.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.status.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }

/* ---------------------------------------------------------------- common */
.page-head { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; margin: 0; }
.title-sub { color: var(--muted); font-weight: 500; }
.title-chain { display: inline-flex; align-items: center; gap: 10px; }
.title-chain img { border-radius: 50%; }
.sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
h2 { font-size: 11.5px; margin: 0 0 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 > .panel { margin-top: 18px; }
.grid2.tight { gap: 14px; }
label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin: 14px 0 6px; }
label.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; margin-top: 18px; cursor: pointer; }
label.check.disabled { opacity: .5; cursor: not-allowed; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
input, select {
  width: 100%; height: 46px; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 0 14px; font: inherit; font-size: 14px; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236A7292' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
input::placeholder { color: var(--muted); font-weight: 400; }
input:hover, select:hover { border-color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input[type="checkbox"] { height: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 30px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.pill { font-size: 10.5px; font-weight: 600; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; font-weight: 500; margin-top: 14px; }
.alert.warn { background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.alert.bad { background: color-mix(in srgb, var(--bad) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.alert.ok { background: color-mix(in srgb, var(--ok) 9%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty strong { color: var(--text); display: block; font-size: 16px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.link-box { background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }

.name { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; color: var(--text); }
.name .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.big-name .name { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.big-name .dot { width: 13px; height: 13px; }
.name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* segmented control + chips (Dexscreener filter bar, Bizee pill styling) */
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text); padding: 0 12px; height: 32px;
  border-radius: 7px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.seg button .ic { color: var(--muted); }
.seg button:hover { background: var(--raise); }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg button.on .ic { color: var(--accent-ink); }
.chip {
  height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--raise); }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); font-weight: 600; }

/* ---------------------------------------------------------------- board */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat strong { font-size: 19px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 11px; color: var(--muted); }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters .grow { flex: 1; }

.board-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.board { min-width: 1180px; }
.row {
  display: grid; align-items: center; gap: 0 14px; padding: 0 16px; min-height: 52px; border-top: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--panel);
  /* pair  price  vs  size  selling  for  expires  listed  maker  chart */
  grid-template-columns: minmax(230px, 1.5fr) 96px 72px 88px minmax(130px, 1fr) minmax(130px, 1fr) 64px 56px minmax(120px, .9fr) 190px;
}
.row:first-child { border-top: 0; }
.row.head { min-height: 40px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--raise); }
.row.head > * { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; text-align: inherit; }
.row.head .sortable { cursor: pointer; }
.row.head .sortable:hover, .row.head .sortable.on { color: var(--accent); }
a.row { transition: background .12s; }
a.row:hover { background: color-mix(in srgb, var(--accent) 4%, var(--panel)); text-decoration: none; }
.row.mine .c-pair { box-shadow: inset 3px 0 0 var(--accent); }
.row.skeleton, .row.empty-row { display: block; color: var(--muted); text-align: center; padding: 30px; }
.row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row > .c-chart { overflow: visible; }
.row .c-price, .row .c-vs, .row .c-value, .row .c-exp, .row .c-age { text-align: right; }
.row.head .c-chart { text-align: right; }
.c-price { font-weight: 600; }
.c-vs.good { color: var(--up); font-weight: 600; }
.c-vs.bad { color: var(--down); font-weight: 600; }
.c-exp.soon { color: var(--warn); font-weight: 600; }
.c-age, .c-exp { color: var(--muted); }
.c-value { font-weight: 600; }

/* frozen pair column */
.c-pair { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 8px; align-self: stretch; background: inherit; margin-left: -16px; padding-left: 16px; }
.row.head .c-pair { display: flex; align-items: center; }
.rank { color: var(--muted); font-size: 12px; min-width: 26px; }
.chain-ic { border-radius: 50%; flex: none; }
.pair-ic { display: inline-flex; flex: none; }
.pair-ic > :first-child { position: relative; z-index: 1; }
.pair-ic > :last-child { margin-left: -7px; opacity: .95; }
.pair-name { display: inline-flex; align-items: baseline; min-width: 0; }
.pair-name strong { font-weight: 700; }
.pair-name .quote { color: var(--muted); font-size: 12.5px; }
.amt strong { font-weight: 600; }
.sym { color: var(--muted); font-weight: 500; font-size: 12px; }
.warn-dot {
  display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; flex: none;
  background: var(--warn); color: #fff; font-size: 10px; font-weight: 700; vertical-align: 1px;
}

/* token badge: logo (or monogram) + amount + symbol */
.tok { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.tok-ic {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; object-fit: cover;
  color: #fff; font-size: 11px; font-weight: 700; background: var(--raise); box-shadow: 0 0 0 2px var(--panel);
}
.tok-amt { font-weight: 700; flex: none; }
.tok-sym { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: var(--muted); }
.big .tok { gap: 12px; }
.big .tok-ic { width: 34px; height: 34px; font-size: 15px; }
.big .tok-sym { font-size: 15px; }

/* chain tag */
.chain { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 7px; background: var(--panel); }
.chain-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* chart cell */
.chart { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.chart-plot { position: relative; width: 100px; height: 34px; flex: none; touch-action: pan-y; cursor: crosshair; }
.spark { display: block; overflow: visible; width: 100%; height: 34px; }
.spark-line { fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.spark-line.up { stroke: var(--up); }
.spark-line.down { stroke: var(--down); }
.spark-mark { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .8; }
.spark-empty { fill: var(--muted); font-size: 11px; }
.chart-meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; min-width: 70px; }
.chart-now { font-weight: 600; font-size: 12.5px; }
.chart-chg { font-size: 11px; font-weight: 600; }
.chart-chg.up { color: var(--up); }
.chart-chg.down { color: var(--down); }
.chart-order { font-size: 11px; color: var(--muted); }
.chart-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted); opacity: .6; pointer-events: none; }
.chart-tip {
  position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; pointer-events: none; z-index: 3;
  background: var(--text); color: var(--panel); font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; box-shadow: var(--shadow);
}

/* transactions */
.board.tx { min-width: 1080px; }
.board.tx .row { grid-template-columns: minmax(200px, 1.2fr) 118px minmax(230px, 1.6fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(120px, 1fr) 196px; }
.board.tx .c-conf { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.board.tx .c-price { text-align: left; font-weight: 500; }
.explorer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.c-parties { display: flex; align-items: center; gap: 4px; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- deal + new deal */
.deal { max-width: 760px; margin: 0 auto; }
.deal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 22px 0; padding: 20px; background: var(--raise); border-radius: 12px; }
.swap > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.swap .arrow { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); font-size: 18px; color: var(--accent); }
.big { font-size: 22px; font-weight: 700; word-break: break-word; letter-spacing: -.3px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 14px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
details.addr summary { color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
details.addr[open] { flex-basis: 100%; }
.chain-pick { max-width: 440px; }
.chain-pick label { margin-top: 0; }
.deal .actions .btn.primary { height: 50px; padding: 0 30px; font-size: 16px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* sidebar becomes a drawer */
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  body.drawer .side { transform: none; }
  .side .side-close { display: grid; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 15; }
  body.drawer .scrim { opacity: 1; pointer-events: auto; }
  .mbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; height: 56px; padding: 0 14px;
    background: var(--panel); border-bottom: 1px solid var(--line);
  }
  .mbar .logo { flex: 1; font-size: 17px; }
  .ticker { padding: 8px 14px; }
  main { padding: 18px 14px 40px; }
  .status { width: calc(100% - 28px); }
  .page-head > .btn { display: none; } /* the top bar has + Deal */
}
@media (max-width: 720px) {
  html, body { font-size: 14px; }
  .page-title { font-size: 21px; }
  .sub { font-size: 13px; }
  .panel { padding: 18px; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .stats { gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat strong { font-size: 16px; }
  .filters .seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters .grow { display: none; }
  .board-scroll { border-radius: 12px; margin: 0 -2px; }
  .row { min-height: 48px; padding: 0 12px; font-size: 13px; }
  .c-pair { margin-left: -12px; padding-left: 12px; box-shadow: 6px 0 8px -6px rgba(0, 0, 0, .12); }
  .rank { display: none; }
  .board { min-width: 1040px; }
  .row { grid-template-columns: 158px 92px 68px 80px minmax(120px, 1fr) minmax(120px, 1fr) 60px 52px minmax(110px, .9fr) 180px; gap: 0 12px; }
  .c-pair { gap: 6px; }
  .c-pair .chain-ic { width: 14px; height: 14px; }
  .swap { grid-template-columns: 1fr; }
  .swap .arrow { transform: rotate(90deg); justify-self: start; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 10px; }
}

/* ---------------------------------------------------------------- token page (CoinMarketCap-style) */
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { font-weight: 500; }
.crumbs strong { color: var(--text); }
.tp-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; margin-bottom: 18px; }
.tp-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tp-logo .tok-ic { width: 44px; height: 44px; font-size: 20px; box-shadow: none; }
.tp-tags { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.tp-quote { text-align: right; }
.tp-price { font-size: 30px; font-weight: 700; letter-spacing: -.8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tp-chg { font-weight: 600; font-size: 14px; }
.tp-range { font-size: 12px; }
.tp-actions { display: flex; gap: 8px; }
.up { color: var(--up); }
.down { color: var(--down); }
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.tp-grid > * { min-width: 0; }
.tp-side { margin-top: 0; }

.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chart-card:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.chart-card:fullscreen .chart-wrap { flex: 1; }
.chart-card:fullscreen .chart-box { height: 100%; }
.chart-tools { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-tools .grow { flex: 1; }
.chart-tools .seg { box-shadow: none; }
.chart-tools .seg button { height: 28px; padding: 0 10px; font-size: 12px; }
.ind-bar { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chip.small { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; flex: none; }
.icon-btn.small { width: 30px; height: 30px; font-size: 15px; }
.chart-wrap { position: relative; }
.chart-box { height: 520px; position: relative; }
.chart-loading { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.legend {
  position: absolute; top: 8px; left: 12px; z-index: 3; pointer-events: none; font-size: 12px; font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; gap: 2px; background: color-mix(in srgb, var(--panel) 82%, transparent); padding: 4px 8px 4px 4px; border-radius: 6px;
}
.lg-row { display: flex; gap: 4px; flex-wrap: wrap; align-items: baseline; }
.lg-ind span { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.lg-ind i { width: 8px; height: 2px; border-radius: 1px; display: inline-block; }
.chart-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.tp-stats { display: flex; flex-direction: column; gap: 12px; }
.st-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.st-row strong { font-weight: 600; text-align: right; }
.st-row.small { font-size: 12px; }
.range-bar { position: relative; height: 6px; border-radius: 3px; margin-top: 8px; background: linear-gradient(90deg, var(--down), var(--line-strong), var(--up)); }
.range-bar i { position: absolute; top: -4px; width: 4px; height: 14px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.st-changes { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.st-changes > div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; font-size: 12.5px; font-weight: 600; border-left: 1px solid var(--line); }
.st-changes > div:first-child { border-left: 0; }
.st-changes .muted { font-size: 11px; font-weight: 500; }
.bs-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin: 6px 0 4px; background: var(--down); }
.bs-bar .b { background: var(--up); }
.bs-bar .s { flex: 1; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.section-head h2 { margin: 0; }
.board.tk { min-width: 760px; }
.board.tk .row { grid-template-columns: 90px minmax(170px, 1.4fr) 100px 80px 90px minmax(120px, 1fr) 70px; }
.board.tk .k2, .board.tk .k3, .board.tk .k4, .board.tk .k6 { text-align: right; }
.side-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 5px; }
.side-badge.ask { color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); }
.side-badge.bid { color: var(--up); background: color-mix(in srgb, var(--up) 10%, transparent); }
.small-empty { padding: 28px 16px; }
.c-chart { cursor: pointer; }

@media (max-width: 1100px) {
  .tp-grid { grid-template-columns: 1fr; }
  .tp-side { position: static; }
  .tp-head { grid-template-columns: 1fr auto; }
  .tp-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .tp-head { grid-template-columns: 1fr; gap: 12px; }
  .tp-quote { text-align: left; }
  .tp-price { font-size: 26px; }
  .chart-box { height: 420px; }
  .legend { font-size: 11px; left: 6px; }
  .lg-ind { display: none; }
}

/* ---------------------------------------------------------------- Ripper native chart */
.hc { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; }
.hc canvas { display: block; cursor: crosshair; }
.hc-dot {
  position: absolute; top: 0; left: 0; width: 0; height: 0; pointer-events: none; --c: var(--up);
}
.hc-dot::before, .hc-dot::after {
  content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--c);
}
.hc-dot::after { animation: hc-pulse 1.8s ease-out infinite; }
@keyframes hc-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hc-dot::after { animation: none; } }
.hc-tip {
  position: absolute; top: 0; left: 0; z-index: 4; pointer-events: none; min-width: 150px; padding: 8px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.hc-bell {
  position: absolute; left: 0; top: 0; z-index: 4; width: 24px; height: 24px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer;
}
.hc-bell:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hc-bell[hidden] { display: none; }
.hc-bell svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.hc-th { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.hc-tr { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); line-height: 1.6; }
.hc-tr b { color: var(--text); font-weight: 600; }
.hc-tr b.up { color: var(--up); }
.hc-tr b.down { color: var(--down); }

/* embedded chart (board rows, deal page) */
.ec { display: flex; flex-direction: column; }
.ec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
.ec-id { display: inline-flex; align-items: center; gap: 8px; }
.ec-price { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ec-chg { font-size: 12.5px; font-weight: 600; }
.ec-head .grow { flex: 1; }
.ec-head .seg { box-shadow: none; }
.ec-head .seg button { height: 26px; padding: 0 9px; font-size: 11.5px; }
.ec-full { font-size: 12.5px; }
.ec-title { padding: 0 14px 6px; }
.ec-box { position: relative; }
.ec-foot { display: flex; justify-content: space-between; gap: 10px; padding: 6px 14px 10px; }
.row-expand { border-top: 1px solid var(--line); background: var(--panel); position: sticky; left: 0; max-width: calc(100vw - var(--side-w) - 60px); }
@media (max-width: 900px) { .row-expand { max-width: calc(100vw - 28px); } }
.row.open { background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.row.open .expand-hint { transform: rotate(180deg); }
.expand-hint { margin-left: 6px; color: var(--muted); font-size: 11px; transition: transform .15s; }
.c-chart { display: flex; align-items: center; justify-content: flex-end; }
.deal-chart { padding: 0; margin-top: 16px; overflow: hidden; }

/* wrap ETH -> WETH helper on New deal */
.wrap-box { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--raise); border: 1px dashed var(--line-strong); }
.wrap-title { margin: 0 0 10px; font-size: 13px; }
.wrap-row { display: flex; gap: 8px; }
.wrap-row input { height: 38px; }
.wrap-box .note { margin-top: 8px; }

/* connected wallet in the sidebar: fixed two-word name + short address */
.wallet-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wallet-id .name { font-size: 13px; }
.wallet-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); padding-left: 16px; }

/* empty / loading states inside the wide scrolling tables stay in view on narrow screens */
.board-scroll .board > .empty, .board-scroll .row.skeleton, .board-scroll .row.empty-row {
  position: sticky; left: 0; max-width: calc(100vw - var(--side-w) - 60px);
}
@media (max-width: 900px) {
  .board-scroll .board > .empty, .board-scroll .row.skeleton, .board-scroll .row.empty-row { max-width: calc(100vw - 28px); }
}

/* ---------------------------------------------------------------- New deal: swap card */
.swap-wrap { max-width: 480px; margin: 8px auto 0; }
.swap-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.sc-top { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.sc-top .grow { flex: 1; }
.sc-title { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.chain-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); font-size: 13px; font-weight: 600; cursor: pointer; }
.chain-pill img { border-radius: 50%; }
.chain-pill .caret, .tok-pill .caret, .sc-summary .caret { color: var(--muted); font-size: 11px; }
.chain-pill-sel { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: auto; }
.sc-settings-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sc-settings-btn:hover { color: var(--text); }
.sc-box { background: var(--raise); border: 1px solid transparent; border-radius: 16px; padding: 14px 16px 12px; transition: border-color .15s; }
.sc-box:focus-within { border-color: var(--line-strong); background: var(--panel); }
.sc-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.sc-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.sc-amt { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0; height: 44px; font-size: 34px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.sc-amt::placeholder { color: var(--line-strong); font-weight: 500; }
.tok-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tok-pill:hover { border-color: var(--line-strong); }
.tok-pill .tok-ic { width: 26px; height: 26px; box-shadow: none; }
.tok-pill strong { font-weight: 700; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 20px; font-size: 12.5px; color: var(--muted); }
.sc-bal { margin-left: auto; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sc-vs .up { color: var(--up); font-weight: 600; }
.sc-vs .down { color: var(--down); font-weight: 600; }
.mkt-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.sc-flip-wrap { position: relative; height: 6px; z-index: 2; }
.sc-flip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 12px; border: 4px solid var(--panel); background: var(--raise); color: var(--text); font-size: 16px; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.sc-flip:hover { transform: translate(-50%, -50%) rotate(180deg); }
.sc-rate { font-size: 12.5px; padding: 12px 6px 4px; font-variant-numeric: tabular-nums; }
.sc-summary { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; padding: 6px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-align: left; }
.sc-summary .caret { margin-left: auto; }
.sc-settings { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 4px 0 8px; }
.sc-set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.sc-set-row.col { flex-direction: column; align-items: stretch; gap: 0; }
.sc-set-row .seg { box-shadow: none; }
.sc-set-row .seg button { height: 28px; padding: 0 10px; font-size: 12px; }
.sc-settings label.check { margin-top: 12px; font-size: 13px; }
.sc-settings input { height: 40px; }
.sc-wrap { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--raise); border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
.sc-cta { width: 100%; height: 54px; border-radius: 16px; font-size: 16px; margin-top: 8px; }
.sc-fine { font-size: 11.5px; color: var(--muted); text-align: center; margin: 10px 8px 2px; }
.swap-wrap .panel { margin-top: 16px; }

/* token picker modal */
.tp-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .35); display: grid; place-items: start center; padding: 10vh 16px 16px; }
.tp-modal { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 75vh; }
.tp-modal .tp-head { display: flex; align-items: center; gap: 4px; }
.tp-modal .tp-head .icon-btn { margin-left: auto; }
.tp-search { height: 44px; border-radius: 12px; }
.tp-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.tp-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.tp-item:hover { background: var(--raise); }
.tp-item.dim { opacity: .5; }
.tp-item .tok-ic { width: 30px; height: 30px; }
.tp-sym { font-weight: 700; }
.tp-addr { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.tp-loading { padding: 14px 10px; font-size: 13px; }

/* ---------------------------------------------------------------- markets (home) */
.m-views { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.m-view {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.m-view:hover { color: var(--text); }
.m-view.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.m-count { font-size: 11px; background: var(--raise); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.m-cats { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.m-cats > .muted { margin-right: 4px; }
.m-sel { display: inline-flex; align-items: center; gap: 6px; }
.m-sel select, .adm-sel {
  height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; padding: 0 8px;
}
.board.mk { min-width: 1100px; }
.board.mk .row { grid-template-columns: 24px 30px minmax(180px, 1.5fr) repeat(7, minmax(80px, 1fr)) 136px 62px; gap: 0 10px; min-height: 60px; }
.board.mk .row.head { min-height: 40px; }
.board.mk .row > .m-num { text-align: right; justify-self: stretch; }
.board.mk .row.head .m-num { text-align: right; }
.m-strong { font-weight: 600; }
.m-star { border: 0; background: none; padding: 0; cursor: pointer; font-size: 16px; color: var(--line-strong); line-height: 1; }
.m-star:hover, .m-star.on { color: #F5B400; }
.row.head .m-star { cursor: default; }
.m-rank { font-size: 12.5px; text-align: center; }
.m-name { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 10px; align-self: stretch; background: inherit; }
.m-name .tok-ic { width: 26px; height: 26px; font-size: 12px; }
.m-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.m-nm strong { overflow: hidden; text-overflow: ellipsis; }
.m-nm .muted { font-size: 12px; }
.m-chains { display: inline-flex; gap: 2px; margin-left: auto; opacity: .8; }
.m-stack { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.m-bar { display: block; width: 84px; height: 4px; border-radius: 4px; background: var(--raise); overflow: hidden; margin-top: 4px; position: relative; }
.m-bar i { display: block; height: 100%; background: var(--muted); border-radius: 4px; }
.m-bar.range { overflow: visible; background: linear-gradient(90deg, color-mix(in srgb, var(--down) 45%, transparent), color-mix(in srgb, var(--up) 45%, transparent)); }
.m-bar.range .dot { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); border: 2px solid var(--panel); }
.m-bar.breadth { width: 100%; background: color-mix(in srgb, var(--down) 35%, transparent); }
.m-bar.breadth i { background: var(--up); }
.m-chart { display: flex; justify-content: flex-end; }
.m-chart .spark { width: 132px; height: 42px; }
.m-orders { color: var(--accent); font-weight: 600; }
.m-act { text-align: right; }
.m-act .btn { height: 30px; padding: 0 12px; font-size: 12px; }
a.row:hover .m-act .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.up { color: var(--up); }
.down { color: var(--down); }
.pager { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pager .grow { flex: 1; }
.pg {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.pg:hover:not(:disabled) { background: var(--raise); }
.pg.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.pg:disabled { opacity: .4; cursor: default; }
.chain-tag-link { text-decoration: none !important; }
@media (max-width: 720px) {
  .m-views, .m-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px; }
  .m-views::-webkit-scrollbar, .m-cats::-webkit-scrollbar { display: none; }
  .m-view, .m-cats .chip { flex: none; }
  .m-filters { width: 100%; }
  .m-sel { flex: 1 1 30%; flex-direction: column; align-items: stretch; gap: 2px; }
  .m-sel select { width: 100%; }
  .board.mk .row { min-height: 56px; }
}

/* ---------------------------------------------------------------- admin */
.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; overflow-x: auto; }
.adm-tabs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--muted); font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important;
}
.adm-tabs a:hover { color: var(--text); }
.adm-tabs a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.adm-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.adm-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--raise); padding: 10px 12px; white-space: nowrap; }
.adm-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.adm-table .num { text-align: right; }
.adm-table .right { text-align: right; }
.adm-empty { text-align: center; padding: 30px !important; }
.adm-btns { display: flex; gap: 6px; justify-content: flex-end; }
.adm-btns .btn, .adm-table .btn.small { height: 30px; padding: 0 10px; font-size: 12px; }
.adm-amt { display: inline-flex; align-items: center; gap: 6px; }
.adm-amt .tok-ic { width: 18px; height: 18px; font-size: 9px; }
.adm-search { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; padding: 0 10px; min-width: 260px; }
.adm-search.narrow { min-width: 180px; }
.adm-inline { height: 30px; width: 170px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; padding: 0 8px; }
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; margin-top: 12px; }
.adm-day { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.adm-day i { flex: 1; border-radius: 3px 3px 0 0; min-height: 1px; }
.adm-day i.o, .adm-legend .k.o { background: var(--accent); }
.adm-day i.f, .adm-legend .k.f { background: var(--up); }
.adm-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.adm-legend .k { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.adm-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.adm-body .panel:first-child { margin-top: 0; }
@media (max-width: 900px) { .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- loading, empty states, motion */
.sk {
  display: inline-block; border-radius: 6px; vertical-align: middle; max-width: 100%;
  background: linear-gradient(90deg, var(--raise) 0%, color-mix(in srgb, var(--line) 70%, var(--raise)) 45%, var(--raise) 90%);
  background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
.sk.round { border-radius: 50%; flex: none; }
.sk.right { justify-self: end; }
.stat .sk { display: block; margin: 3px 0; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.row.sk-row { animation: fadeUp .35s ease both; }
.row.sk-row > .sk { justify-self: end; }
.row.sk-row .m-name, .row.sk-row .c-pair { gap: 8px; }

.chart-sk { position: relative; height: 100%; min-height: 180px; overflow: hidden; }
.chart-sk-bars { position: absolute; inset: 12% 64px 14% 12px; display: flex; gap: 1.2%; }
.chart-sk-bars i {
  position: relative; flex: 1; border-radius: 4px; background: var(--line); opacity: .55;
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .25; transform: scaleY(.85); } 50% { opacity: .7; transform: scaleY(1); } }
.chart-sk-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); box-shadow: var(--shadow);
}
.spinner { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 20px; gap: 6px; animation: fadeUp .4s ease both; }
.empty-state.compact { padding: 30px 16px; }
.empty-state .es-ic {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; color: var(--text);
  background: radial-gradient(circle at 30% 30%, var(--panel), var(--raise)); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: float 3.2s ease-in-out infinite;
}
.empty-state.compact .es-ic { width: 46px; height: 46px; margin-bottom: 4px; }
.empty-state.bad .es-ic { color: var(--bad); }
.empty-state strong { font-size: 16px; color: var(--text); }
.empty-state.compact strong { font-size: 14.5px; }
.empty-state p { margin: 0; max-width: 420px; color: var(--muted); font-size: 13.5px; }
.es-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.chart-box .empty-state, .ec-box .empty-state { height: 100%; justify-content: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto; position: relative; overflow: hidden; width: 100%; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 40px 16px 14px; border-radius: var(--radius); background: var(--panel); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .06);
  animation: toastIn .34s cubic-bezier(.2, .9, .3, 1.15) both;
}
.toast .t-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--raise); color: var(--text);
}
.toast .t-ic .tok-ic { width: 26px; height: 26px; }
.toast.ok .t-ic { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.toast.bad .t-ic { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.toast.warn .t-ic { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.t-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.t-body strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.t-body > span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.t-act {
  align-self: flex-start; margin-top: 8px; height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.t-act:hover { background: var(--raise); }
.t-x {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 7px; border: 0; background: none;
  color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.t-x:hover { background: var(--raise); color: var(--text); }
.t-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; background: var(--line-strong);
  animation: toastTimer linear forwards;
}
.toast.ok .t-bar { background: color-mix(in srgb, var(--ok) 55%, transparent); }
.toast.bad .t-bar { background: color-mix(in srgb, var(--bad) 55%, transparent); }
.toast.warn .t-bar { background: color-mix(in srgb, var(--warn) 55%, transparent); }
.toast:hover .t-bar { animation-play-state: paused; }
.toast.out { animation: toastOut .24s ease both; }
@keyframes toastTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
@media (max-width: 720px) { .toasts { right: 16px; bottom: 16px; } }

.copy-btn {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); cursor: pointer; margin-left: 6px; vertical-align: middle; transition: all .15s;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }
.st-addr { display: inline-flex; align-items: center; }

.flash-up { animation: flashUp 1.2s ease; }
.flash-down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { background: color-mix(in srgb, var(--up) 28%, transparent); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: color-mix(in srgb, var(--down) 28%, transparent); } 100% { background: transparent; } }
.row > .flash-up, .row > .flash-down { border-radius: 6px; }

.row.row-in { animation: fadeUp .32s ease both; }
#view.page-in { animation: none; } /* pages and charts appear at once */
.m-star.pop { animation: pop .35s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-12deg); } 100% { transform: scale(1); } }

.head-actions { display: flex; align-items: center; gap: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.btn { transition: transform .08s ease, background .15s, box-shadow .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.stat { transition: transform .15s ease, box-shadow .15s ease; }
.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.m-view { transition: color .15s, border-color .2s; }
.seg button { transition: background .15s, color .15s; }
.tp-loading { display: flex; flex-direction: column; gap: 14px; }
.tp-loading .tp-head { display: flex; align-items: center; gap: 14px; }
.tp-head .tp-tags { flex-wrap: wrap; }
@media (max-width: 720px) { .tp-actions { flex-wrap: wrap; } }
.tp-loading .chart-box { height: 420px; }

@media (prefers-reduced-motion: reduce) {
  *:not(.t-bar), *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .sk { animation: none; }
}
/* An empty or error screen inside a wide table: drop the table's min width so it centres on any screen. */
.board:has(> .empty-state) { min-width: 0 !important; }
.board:has(> .empty-state) > .row.head { display: none; }

/* ---------------------------------------------------------------- token search */
.mbar .grow { flex: 1; }
.mq {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; margin-bottom: 16px; cursor: text;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.mq:focus-within { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent), var(--shadow); }
.mq-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 15px; height: 100%; }
.mq-input::placeholder { color: var(--muted); }
.mq kbd, .ss-foot kbd {
  font: inherit; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 6px; background: var(--raise); line-height: 18px;
}
.ss-panel {
  position: fixed; z-index: 90; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18); padding: 6px; animation: ssIn .16s ease both;
}
@keyframes ssIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ss-sec + .ss-sec { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.ss-head { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; }
.ss-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); font-weight: 500;
  text-decoration: none !important; scroll-margin: 6px;
}
.ss-item.on { background: var(--raise); }
.ss-item .tok-ic { width: 26px; height: 26px; font-size: 12px; flex: none; }
.ss-nm { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ss-nm strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.ss-nm .muted { font-size: 11.5px; }
.ss-chains { display: inline-flex; gap: 2px; }
.ss-rank { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--raise); border-radius: 6px; padding: 1px 6px; }
.ss-item.on .ss-rank { background: var(--panel); }
.ss-price { font-size: 12.5px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-price span { font-weight: 500; font-size: 11.5px; }
.ss-loading { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--muted); font-size: 12.5px; }
.ss-none { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px; color: var(--text); }
.ss-none .ic { color: var(--muted); margin-bottom: 4px; }
.ss-none .muted { font-size: 12.5px; max-width: 300px; }
.ss-empty { padding: 16px 12px; color: var(--muted); font-size: 13px; }
.ss-tip { display: flex; align-items: center; gap: 6px; padding: 8px 10px 2px; }
.ss-foot { display: flex; gap: 14px; padding: 8px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.ss-foot kbd { margin-right: 2px; }
@media (max-width: 720px) { .mq kbd, .ss-foot { display: none; } .mq { height: 48px; } }
.tp-sym { display: inline-flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tp-name { font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.small-seg button { height: 26px; padding: 0 10px; font-size: 12px; }
.small-seg button:disabled { cursor: default; }
.adm-chains { display: inline-flex; gap: 3px; }
.adm-dim td { opacity: .72; }
/* category chips: dotted empty circle when off, filled check when on */
.cat-chip { display: inline-flex; align-items: center; gap: 7px; }
.cat-dot {
  width: 15px; height: 15px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  border: 1.5px dashed var(--line-strong); color: var(--accent-ink); transition: background .15s, border-color .15s, transform .15s;
}
.cat-chip:hover .cat-dot { border-color: var(--muted); }
.cat-chip.on .cat-dot { border: 1.5px solid var(--accent); background: var(--accent); animation: pop .3s cubic-bezier(.2, .9, .3, 1.6); }
.cat-dot .ic { stroke-width: 3; }

/* ---------------------------------------------------------------- pairs (Dexscreener-class) */
main:has(.board.pr) { max-width: 1920px; } /* wide screens: the table uses the room instead of squeezing */
.board.pr { min-width: 1230px; }
.board.pr .row { grid-template-columns: 30px minmax(250px, 2.4fr) minmax(84px, 1.1fr) 52px repeat(8, minmax(70px, 1fr)); gap: 0 14px; min-height: 66px; }
.board.pr .row.head { min-height: 38px; }
@media (max-width: 1560px) {
  .board.pr { min-width: 1120px; }
  .board.pr .row { grid-template-columns: 30px minmax(240px, 3.4fr) minmax(82px, 1fr) 40px repeat(8, minmax(70px, 1fr)); gap: 0 8px; }
}
.board.pr .row > .p-num, .board.pr .row.head > .sortable { text-align: right; justify-self: stretch; }
.p-rank { font-size: 12px; text-align: center; }
.p-pair { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 8px; align-self: stretch; background: inherit; min-width: 0; }
.p-pair .tok-ic { width: 26px; height: 26px; font-size: 12px; flex: none; }
.p-pair .tok-ic { margin-right: 4px; }
.p-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; line-height: 1.25; }
.p-l1, .p-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.p-l1 > *, .p-dex { flex: none; }
.p-l1 > .p-sym { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.p-l2 { font-size: 12px; }
.p-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.p-dex { text-transform: capitalize; }
.p-dex::before { content: '·'; margin-right: 6px; }
/* list controls: tabs + window on one line, chains and filters on the next */
.pl-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pl-top .m-views { border: 0; margin-bottom: -1px; }
.pl-top .seg { margin-bottom: 8px; }
.pl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.pl-bar .m-cats { margin: 0; gap: 8px; }
.pl-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-chain { display: inline-flex; align-items: center; gap: 7px; }
.pl-sel, .pl-chain, .pl-filters .chip { height: 34px; border-radius: 10px; font-size: 12.5px; font-weight: 500; }
.pl-sel { font-family: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 0 26px 0 10px; cursor: pointer; width: auto; appearance: none;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 14px center / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 9px center / 5px 5px no-repeat, var(--panel); }
.pl-sel.on { border-color: var(--accent); font-weight: 600; }
.pl-reset { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px; }
.pl-reset:hover { color: var(--text); }
@media (max-width: 720px) {
  .pl-top { flex-wrap: wrap; }
  .pl-top .m-views, .pl-bar .m-cats { margin-left: 0; margin-right: 0; padding: 0; width: 100%; }
  .pl-top .seg { width: 100%; }
  .pl-top .seg button { flex: 1; text-align: center; justify-content: center; }
  .pl-filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .pl-sel { width: 100%; }
  .pl-reset { grid-column: 1 / -1; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
}
.dex-tag, .new-tag, .boost-tag, .chain-tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; border-radius: 5px; padding: 1px 6px;
  background: var(--raise); color: var(--muted); text-transform: capitalize; white-space: nowrap;
}
.new-tag { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); text-transform: uppercase; }
.boost-tag { background: color-mix(in srgb, #F5B400 18%, transparent); color: #B98500; }
.chain-tag { font-size: 12px; padding: 2px 8px; color: var(--text); }
.p-num { font-size: 13px; }
.p-p { font-weight: 600; }
.board.pr:focus { outline: none; }
.p-meta, .pl-sort { display: none; }
@media (max-width: 720px) {
  .pl-bar { margin-bottom: 8px; }
  .pl-sort { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
  .pl-sort label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; margin: 0; font-size: 12.5px; color: var(--muted); }
  .pl-sort .pl-sel { flex: 1; min-width: 0; }
  .pl-sort .pl-dir { height: 34px; border-radius: 10px; font-size: 12.5px; min-width: 118px; }
  .pl-dir:disabled { opacity: .5; cursor: default; }
  /* one card-like row: token | price over change, then a muted line */
  .board.pr { min-width: 0; }
  .board.pr .row.head, .board.pr .p-rank, .board.pr .row > .p-num:not(.p-p, .p-win) { display: none; }
  .board.pr .row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; min-height: 0; padding: 8px 12px; line-height: 1.3; }
  .board.pr .row.head + .row { border-top: 0; }
  .board.pr .p-pair { grid-area: 1 / 1 / 3 / 2; position: relative; gap: 6px; }
  .p-pair .tok-ic { width: 32px; height: 32px; }
  .p-pair > .chain-ic { position: absolute; left: 20px; top: calc(50% + 4px); z-index: 1; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); background: var(--panel); }
  /* symbol on its own line; marks, DEX and name share the next, and what doesn't fit drops out */
  .p-nm { flex-flow: row wrap; gap: 2px 6px; height: 40px; overflow: hidden; align-content: flex-start; line-height: 19px; }
  .p-l1, .p-l2 { display: contents; }
  .p-l1 > .p-sym { flex: 0 0 100%; white-space: nowrap; }
  .p-l1 > :not(.p-sym) { align-self: center; line-height: 16px; }
  .p-dex, .p-name { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .p-dex { order: 1; }
  .p-dex::before { content: none; }
  .p-name { order: 2; flex: 1 1 40px; }
  .p-name::before { content: '· '; }
  .board.pr .row > .p-p { grid-area: 1 / 2; font-size: 14px; }
  .board.pr .row > .p-win { grid-area: 2 / 2; }
  .p-win::before { content: attr(data-w) ' '; font-size: 11px; color: var(--muted); }
  .board.pr .row > .p-meta { grid-area: 3 / 1 / 4 / 3; display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 3px; font-size: 12px; line-height: 16px; white-space: nowrap; }
  .p-meta b { font-weight: 600; }
  .board.pr .sk-row > .sk { width: 64px !important; }
  .board.pr .sk-row > .sk:first-child, .board.pr .sk-row > .sk:nth-child(n + 6) { display: none; }
  .board.pr .sk-row > .sk:nth-child(3) { grid-area: 1 / 2; }
  .board.pr .sk-row > .sk:nth-child(4) { grid-area: 2 / 2; margin-top: 6px; }
  .board.pr .sk-row > .sk:nth-child(5) { grid-area: 3 / 1 / 4 / 3; justify-self: start; width: 60% !important; margin-top: 9px; }
}
.bs-mini { display: block; width: 56px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--down) 55%, transparent); overflow: hidden; margin-top: 4px; margin-left: auto; }
.bs-mini i { display: block; height: 100%; background: var(--up); }

.pp-head { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.pp-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px 14px; }
.pp-id { min-width: 0; flex: 1; }
.pp-name { display: flex; align-items: baseline; gap: 2px 8px; flex-wrap: wrap; }
.pp-name > * { min-width: 0; overflow-wrap: anywhere; }
.pp-head .tp-quote, .pp-head .tp-logo { flex: none; }
.pp-foot { padding: 11px 18px; border-top: 1px solid var(--line); justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; }
.pp-changes { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: 600; }
.pp-changes > span { display: inline-flex; gap: 6px; background: var(--raise); border-radius: 8px; padding: 4px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-actions { display: flex; gap: 8px; }
.pp-actions .btn { white-space: nowrap; }
.pp-actions .pp-ic { width: 40px; padding: 0; flex: none; }
@media (max-width: 720px) {
  .pp-row { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .pp-head .tp-quote { flex-basis: 100%; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .pp-changes { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .pp-changes > span { flex-direction: column; align-items: center; gap: 0; padding: 5px 2px; }
  .pp-actions { width: 100%; flex-wrap: wrap; }
  .pp-actions .btn { flex: 1 1 0; padding: 0 14px; }
  .pp-actions .btn:nth-child(-n+2) { flex-basis: 46%; }
  .pp-actions a.btn { flex-grow: 4; }
  .pp-actions .pp-ic { width: auto; min-width: 40px; flex: 1 1 40px; padding: 0; }
}
.pp-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.pp-links .chip { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.section-head .seg { margin-left: 12px; }
.section-head .live-pill { margin-left: auto; }

.tape { min-width: 560px; }
.tr-row {
  display: grid; grid-template-columns: 56px 56px 1fr 1fr 1fr 110px; gap: 10px; align-items: center; padding: 8px 14px;
  border-top: 1px solid var(--line); font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text); text-decoration: none !important; font-weight: 500;
}
.tr-row:first-child { border-top: 0; }
.tr-row.head { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--raise); }
a.tr-row:hover { background: var(--raise); }
.tr-row.buy { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--up) 60%, transparent); }
.tr-row.sell { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--down) 60%, transparent); }
.tr-row.tr-new { animation: fadeUp .35s ease both, trFlash 1.4s ease; }
@keyframes trFlash { 0% { background: color-mix(in srgb, var(--text) 8%, transparent); } 100% { background: transparent; } }
.op-list { min-width: 520px; }
.op-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none !important; font-size: 13px; }
.op-row:first-child { border-top: 0; }
.op-row:hover { background: var(--raise); }
.op-row .grow { flex: 1; }

/* ---------------------------------------------------------------- safety */
.sf {
  display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: help;
}
.sf-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.sf-warn { background: color-mix(in srgb, var(--warn) 17%, transparent); color: var(--warn); }
.sf-bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.sf-pending { background: var(--raise); color: var(--muted); animation: breathe 1.4s ease-in-out infinite; }
.sf-panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 16px; background: var(--panel); }
.sf-panel.sf-bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 4%, var(--panel)); }
.sf-panel.sf-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.sf-panel.sf-ok, .sf-panel.sf-warn, .sf-panel.sf-bad { color: var(--text); }
.sf-head { display: flex; align-items: center; gap: 12px; }
.sf-ring {
  --c: var(--ok); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: none;
  background-image: conic-gradient(var(--c) calc(var(--p) * 1%), var(--raise) 0); position: relative;
}
.sf-ring.sf-warn { --c: var(--warn); } .sf-ring.sf-bad { --c: var(--bad); }
.sf-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel); }
.sf-ring strong { position: relative; font-size: 16px; color: var(--text); }
.sf-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sf-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; background: none; }
.sf-list li > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.sf-ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--raise); color: var(--muted); }
.sf-list .sf-ok .sf-ic { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.sf-list .sf-warn .sf-ic { background: color-mix(in srgb, var(--warn) 17%, transparent); color: var(--warn); }
.sf-list .sf-bad .sf-ic { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.sf-list li.sf-ok, .sf-list li.sf-warn, .sf-list li.sf-bad, .sf-list li.sf-info { background: none; color: var(--text); padding: 0; height: auto; min-width: 0; display: flex; }
.sf-warn.sf-warn, .sf-warn.sf-bad { }
div.sf-warn {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin: 10px 0; height: auto; min-width: 0;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 7%, var(--panel)); color: var(--text); font-weight: 500; font-size: 13px;
}
div.sf-warn.sf-bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, var(--panel)); }
div.sf-warn > .ic { color: var(--warn); margin-top: 2px; }
div.sf-warn.sf-bad > .ic { color: var(--bad); }
div.sf-warn ul { margin: 4px 0; padding-left: 18px; font-size: 12.5px; }
.sf-panel.sf-ok { background: var(--panel); }
.sf-panel.sf-warn { background: color-mix(in srgb, var(--warn) 4%, var(--panel)); }

/* ---------------------------------------------------------------- alerts */
.ad-modal { gap: 14px; }
.ad-types { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-body { display: flex; flex-direction: column; gap: 8px; }
.ad-row { display: flex; align-items: center; gap: 10px; }
.ad-unit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ad-input, .m-sel-in { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; padding: 0 12px; width: 160px; }
.m-sel-in { width: auto; font-size: 13px; }
.al-list { display: flex; flex-direction: column; gap: 8px; }
.al-row {
  display: grid; grid-template-columns: 36px 1fr auto auto 32px; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; animation: fadeUp .3s ease both;
}
.al-row.off { opacity: .6; }
.al-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--raise); display: grid; place-items: center; }
.al-main { display: flex; flex-direction: column; min-width: 0; }
.al-main a { color: var(--text); }

/* ---------------------------------------------------------------- multichart */
.mc-grid { display: grid; gap: 12px; }
.mc-grid.mc-1 { grid-template-columns: 1fr; }
.mc-grid.mc-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-grid.mc-9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mc-cell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 320px; display: flex; flex-direction: column; overflow: hidden; }
.mc-1 .mc-cell { min-height: 560px; }
.mc-9 .mc-cell { min-height: 280px; }
.mc-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.mc-head .tok-ic { width: 20px; height: 20px; font-size: 10px; }
.mc-title { color: var(--text); font-weight: 700; white-space: nowrap; }
.mc-head .grow { flex: 1; }
.mc-tf button { height: 24px; padding: 0 7px; font-size: 11px; }
.mc-x { width: 28px; height: 28px; }
.mc-chart { flex: 1; min-height: 240px; position: relative; }
.mc-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; color: var(--muted); }
.mc-empty .es-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); color: var(--text); }
.mc-mq { width: min(320px, 100%); height: 42px; margin: 6px 0 0; box-shadow: none; }
.mc-search { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; }
@media (max-width: 900px) { .mc-grid.mc-4, .mc-grid.mc-9 { grid-template-columns: 1fr; } }
.mc-tf { overflow-x: auto; max-width: 52%; scrollbar-width: none; }
.mc-tf::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------- launch */
.ln-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ln-grid .panel { margin-top: 0; }
.ln-form { display: flex; flex-direction: column; gap: 16px; }
.ln-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.ln-field { display: flex; flex-direction: column; gap: 6px; }
.ln-label { font-size: 12.5px; font-weight: 600; }
.ln-label strong { color: var(--text); }
.ln-input { height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; padding: 0 12px; width: 100%; }
.ln-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent); }
.ln-range { width: 100%; accent-color: var(--accent); }
.ln-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ln-meta { display: flex; align-items: center; gap: 6px; }
.ln-cta { width: 100%; height: 52px; border-radius: 14px; font-size: 15px; }
.ln-preview { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 6px; }
.ln-card { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.ln-card .tok-ic { width: 44px; height: 44px; font-size: 20px; }
.ln-h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 0 4px; }
.ln-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.ln-recent { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ln-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.ln-item:first-child { border-top: 0; }
.ln-item:hover { background: var(--raise); }
.ln-item .grow { flex: 1; }
.ln-nm { display: flex; flex-direction: column; line-height: 1.25; }
.ln-vest { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.ln-bar { margin: 8px 0; }
@media (max-width: 900px) { .ln-grid { grid-template-columns: 1fr; } .ln-preview { position: static; } .ln-row { grid-template-columns: 1fr; } }
.sol-allow { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; }
.sol-allow:empty { display: none; }
.warn-text { color: var(--warn); }
.sol-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------------------------------------------------------------- pair page: token info card (Dexscreener-style) */
.ti-card { display: flex; flex-direction: column; gap: 8px; }
.ti-banner { margin: -4px -4px 2px; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 1; background: var(--raise); }
.ti-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-links { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.ti-btn { justify-content: center; gap: 6px; font-size: 13px; }
.ti-btn.on { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.ti-x { font-weight: 700; font-size: 14px; line-height: 1; }
.ti-grid { display: grid; gap: 8px; }
.ti-grid.two { grid-template-columns: 1fr 1fr; }
.ti-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.ti-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ti-box strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti-k { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ti-lock { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--up); }
.ti-wins { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ti-wins button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); }
.ti-wins button:first-child { border-left: 0; }
.ti-wins button.on { background: var(--raise); box-shadow: inset 0 -2px 0 var(--accent); }
.ti-stats { border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.ti-split { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ti-split:first-child { border-top: 0; }
.ti-main { display: flex; flex-direction: column; gap: 2px; padding-right: 10px; border-right: 1px solid var(--line); }
.ti-main strong, .ti-lr strong { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ti-lr { display: flex; justify-content: space-between; }
.ti-side .bs-bar { margin: 4px 0 0; height: 4px; }
.ti-buy, .ti-sell { justify-content: center; font-weight: 600; color: #fff !important; border: 0; }
.ti-buy { background: var(--up); }
.ti-sell { background: var(--down); }
.ti-buy:hover, .ti-sell:hover { filter: brightness(1.08); }
.ti-addrs { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* built-in swap */
.swap-box { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); }
.swap-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.swap-tabs button { padding: 8px 0; border-radius: 8px; border: 1px solid var(--line); background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.swap-tabs button.buy.on { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.swap-tabs button.sell.on { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.swap-field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); }
.swap-field:focus-within { border-color: var(--line-strong); }
.swap-row { display: flex; align-items: center; gap: 8px; }
.swap-in { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 22px; font-weight: 600; color: var(--text); outline: none; padding: 0; }
.swap-unit { font-weight: 600; font-size: 14px; }
.swap-bal { background: none; border: 0; padding: 2px 0 0; cursor: pointer; font: inherit; font-size: 12px; }
.swap-bal:empty { display: none; }
.swap-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.swap-out { display: flex; flex-direction: column; gap: 4px; }
.swap-get { display: flex; flex-direction: column; gap: 2px; }
.swap-get strong { font-size: 16px; }
.swap-slip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.swap-cta { width: 100%; justify-content: center; }
.swap-box:not(.sell) .swap-cta:not(:disabled) { background: var(--up); border-color: var(--up); color: #fff; }
.swap-box.sell .swap-cta:not(:disabled) { background: var(--down); border-color: var(--down); color: #fff; }
.swap-note { margin: 0; }
.warn { color: var(--warn); }

/* holders tab */
.hd-sum { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.hd-count { display: block; font-size: 22px; font-weight: 700; }
.hd-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--raise); }
.hd-bar i, .hd-dot { display: block; }
.hd-bar .a, .hd-dot.a { background: var(--down); }
.hd-bar .b, .hd-dot.b { background: var(--warn); }
.hd-bar .c, .hd-dot.c { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.hd-bar .d, .hd-dot.d { background: var(--up); }
.hd-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
.hd-seg { display: inline-flex; align-items: center; gap: 6px; }
.hd-dot { width: 8px; height: 8px; border-radius: 50%; }
.tr-row.hd-row { grid-template-columns: 40px 1fr 110px 1fr; }
.hd-row .dex-tag { margin-left: 6px; }
.hd-mini { height: 5px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.hd-mini i { display: block; height: 100%; background: var(--accent); }

/* pair page: transaction filters, maker view */
.tx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.tx-maker { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; text-align: left; }
.tx-maker:hover { color: var(--text); text-decoration: underline; }
.tr-row a.muted { text-decoration: none; }
.tr-row a.muted:hover { color: var(--text); }
button.tr-row.tr-btn { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
button.tr-row.tr-btn:hover { background: var(--raise); }
.mk-sum { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--raise); }
.mk-sum > div { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 720px) { .mk-sum { grid-template-columns: 1fr 1fr; } }

/* wallet picker */
.wp-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.wp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.wp-row:hover, .wp-row:focus-visible { border-color: var(--accent); }
.wp-row.on { border-color: var(--accent); }
.wp-row img, .wp-mono { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.wp-mono { display: grid; place-items: center; background: var(--line); font-weight: 600; }
.wp-name { flex: 1; }

#who { display: flex; align-items: center; gap: 4px; }
#who > .me { min-width: 0; flex: 1; }
.wallet-switch, .wallet-off { flex: none; width: 26px; height: 26px; min-width: 26px; padding: 0; border: 0; background: transparent; font-size: 14px; display: grid; place-items: center; border-radius: 6px; }
.wallet-switch:hover, .wallet-off:hover { background: var(--line); }
#who { gap: 0; }
.wallet-off:hover { color: var(--down, #E5484D); }
.wp-sec { margin: 8px 2px 0; font-size: 12px; font-weight: 600; color: var(--muted, #8A94A6); text-transform: uppercase; letter-spacing: .04em; }
.wp-sec:first-child { margin-top: 0; }
.wp-row { text-decoration: none; }
.wp-name { display: flex; flex-direction: column; gap: 1px; }
.wp-sub { font-weight: 400; }
.wp-wc { background: #3B99FC; color: #fff; font-size: 18px; }

/* Coin/token header: wraps as a whole instead of squeezing the title and chain chips into a thin column */
.tp-head:not(.tp-modal .tp-head):not(.tp-loading .tp-head) { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.tp-head > .tp-id { flex: 1 1 360px; }
.tp-head > .tp-quote { flex: none; margin-left: auto; }
.tp-head > .tp-actions { flex: none; flex-wrap: wrap; }
.tp-id .page-title { white-space: nowrap; }
@media (max-width: 720px) { .tp-head > .tp-quote { margin-left: 0; } .tp-id .page-title { white-space: normal; } }

/* Wallet corner: name + address get the room, actions stay compact */
.side-bottom #who { flex: 1; min-width: 0; }
#who > .me { flex: 1; min-width: 0; overflow: hidden; }
#who .wallet-id > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* Stats panel: labels never break; a third note (ATH change + date) drops under the value instead of squeezing */
.st-row { flex-wrap: wrap; row-gap: 2px; }
.st-row > :first-child { white-space: nowrap; }
.st-row > :nth-child(3) { flex-basis: 100%; text-align: right; }
.ti-box { padding: 8px 4px; }
.ti-box strong { font-size: 13px; letter-spacing: -.2px; }
@media (max-width: 720px) { .tp-head > .tp-quote, .tp-head > .tp-actions { flex: 1 1 100%; min-width: 0; } .tp-head > .tp-id { flex-basis: 100%; } }

/* Chart unit switches (Price / MCap, USD / quote token): the pill slides */
.ut-wrap { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ut { position: relative; }
.ut button { position: relative; z-index: 1; transition: color .25s; }
.ut button.on, .ut button.on:hover { background: none; }
.ut button.off { opacity: .4; }
.ut-thumb { position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 7px; background: var(--accent); transition: transform .38s cubic-bezier(.34, 1.4, .64, 1), width .3s ease; }
.ut.busy .ut-thumb { animation: ut-busy .8s ease-in-out infinite alternate; }
@keyframes ut-busy { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ut-thumb { transition: none; } .ut.busy .ut-thumb { animation: none; } }

/* New pairs (live feed) */
.np-bar, .np-flags, .np-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.np-bar { margin: 12px 0; } .np-bar .grow { flex: 1; }
.np-bar .chip { display: inline-flex; align-items: center; gap: 6px; }
.np-x { opacity: .55; font-size: 10px; } .np-x:hover { opacity: 1; }
.np-n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; } .chip.on .np-n { color: inherit; opacity: .75; }
.np-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 14px; animation: fadeUp .25s ease both; }
.np-panel[hidden] { display: none; }
.np-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.np-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.np-mm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.np-in { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); color: var(--text); font: inherit; font-size: 13px; }
.np-in:focus { outline: none; border-color: var(--accent); }
.np-save .np-in { max-width: 200px; }
.np-wrap { position: relative; }
.np-pill { position: sticky; top: 12px; z-index: 5; display: block; margin: 0 auto -34px; height: 34px; padding: 0 16px; border: 0; border-radius: 17px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); animation: pop .3s cubic-bezier(.2, .9, .3, 1.6); }
.np-pill[hidden] { display: none; }
.np-table { min-width: 1080px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.np-row { display: grid; grid-template-columns: 66px minmax(230px, 2.2fr) repeat(4, minmax(78px, 1fr)) 72px 70px minmax(190px, 1.7fr); gap: 0 10px; align-items: center; min-height: 60px; padding: 0 14px; border-top: 1px solid var(--line); color: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.np-row:hover { background: var(--raise); text-decoration: none; }
.np-row.head { min-height: 38px; border-top: 0; font-size: 11.5px; color: var(--muted); font-weight: 600; } .np-row.head:hover { background: none; }
.np-c0 { color: var(--up); font-weight: 600; white-space: nowrap; } .np-row.head .np-c0 { color: inherit; }
.np-c1 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np-c2, .np-c3, .np-c4, .np-c5, .np-c6, .np-c7 { text-align: right; justify-self: end; border-radius: 6px; padding: 2px 4px; }
.np-c2 { font-weight: 600; }
.np-c8 { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 10px; }
.np-ic { position: relative; flex: none; display: inline-flex; } .np-ic .tok-ic { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; object-fit: cover; }
.np-ic .chain-ic { position: absolute; right: -5px; bottom: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); background: var(--panel); }
.np-nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .np-nm > span { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.np-copies { margin-left: 8px; padding: 1px 6px; border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }
.np-nm strong { overflow: hidden; text-overflow: ellipsis; } .np-nm > span:first-child { gap: 0; } .np-nm .new-tag { margin-left: 8px; }
.np-nme { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.np-so { color: var(--text); font-size: 11px; font-weight: 600; padding: 0 3px; cursor: pointer; } .np-so:hover { text-decoration: underline; }
.np-nm > .np-bond { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 3px; max-width: 190px; }
.np-bond i { display: block; height: 100%; border-radius: 2px; background: var(--up); transition: width .6s ease; }
.np-chk { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.np-chk.dg { font-variant-numeric: tabular-nums; } .dg-A, .dg-B { color: var(--up); background: color-mix(in srgb, var(--up) 11%, transparent); } .dg-C { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); } .dg-D { color: #B7791F; background: color-mix(in srgb, #D69E2E 15%, transparent); } .dg-F { color: var(--down); background: color-mix(in srgb, var(--down) 11%, transparent); }
.np-chk.ok { color: var(--up); background: color-mix(in srgb, var(--up) 11%, transparent); } .np-chk.bad { color: var(--down); background: color-mix(in srgb, var(--down) 11%, transparent); } .np-chk.warn { color: #B7791F; background: color-mix(in srgb, #D69E2E 15%, transparent); }
.np-enter { animation: np-glow 1.6s ease-out; } /* rows appear at once and push the rest down; only a brief tint marks them */
.np-leave { display: none; }
@keyframes np-glow { from { background: color-mix(in srgb, var(--up) 20%, transparent); } to { background: transparent; } }
.live-pill.off i { background: #D69E2E; animation: none; }
@media (max-width: 720px) {
  .np-table { min-width: 0; }
  .np-row.head { display: none; }
  .np-row { grid-template-columns: 1fr auto auto; gap: 4px 12px; padding: 10px 12px; }
  .np-c1 { grid-column: 1 / 2; grid-row: 1; } .np-c2 { grid-column: 2; grid-row: 1; } .np-c0 { grid-column: 3; grid-row: 1; min-width: 46px; text-align: right; font-size: 12px; }
  .np-c8 { grid-column: 1 / 2; grid-row: 2; padding-left: 46px; } .np-c5 { grid-column: 2 / 4; grid-row: 2; }
  .np-c3, .np-c4, .np-c6, .np-c7 { display: none; }
  .np-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px; } .np-bar .chip { flex: none; } .np-bar .grow { display: none; }
  .np-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .np-enter, .np-panel, .np-pill { animation: none; } }
.np-wrap { overflow-x: clip; }

/* Swap box: fixed rows, one line each, so a new price never moves anything */
.swap-1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.swap-get strong.swap-1 { min-height: 1.35em; }
.swap-line { flex-wrap: nowrap; min-height: 20px; }
.swap-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.swap-quick { display: grid; grid-template-columns: 1fr 1fr; }
.swap-quick .chip { width: 100%; justify-content: center; text-align: center; }
.swap-slip { display: flex; flex-wrap: nowrap; } .swap-slip .chip { flex: 1; padding-left: 0; padding-right: 0; text-align: center; justify-content: center; }
.swap-bal { min-height: 18px; display: block; }
.swap-note { min-height: 4.2em; }

/* ---------------------------------------------------------------- pair activity (transactions, top traders, holders) */
.ac-card { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ac-tabs { display: flex; align-items: center; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 10px 12px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ac-tab:hover { color: var(--text); }
.ac-tab.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.ac-tabs .grow { flex: 1; }
.ac-wins { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-right: 6px; }
.ac-wins button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 9px; cursor: pointer; }
.ac-wins button.on { background: var(--accent); color: var(--accent-ink); }
.ac-pop { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--raise); border-bottom: 1px solid var(--line); }
.ac-pop .grow { flex: 1; }
.ac-in { height: 32px; width: 110px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; padding: 0 9px; }
.ac-in.wide { width: 210px; max-width: 100%; }
.ac-wf { display: flex; gap: 8px; }
.ac-body { height: 560px; overflow: auto; overscroll-behavior-x: contain; }
.ac-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ac-t.tx, .ac-t.hd { min-width: 760px; } .ac-t.tt { min-width: 860px; }
.ac-t th { position: sticky; top: 0; z-index: 2; background: var(--raise); color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-t td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-t .l { text-align: left; } .ac-t .c { text-align: center; }
.ac-t tbody tr:hover td { background: var(--raise); }
.ac-t.tt td { padding: 7px 12px; } .ac-t.hd td { padding: 11px 12px; }
.ac-t.tx tr.up td { color: var(--up); } .ac-t.tx tr.down td { color: var(--down); }
.ac-t.tx tr td.muted { color: var(--muted); }
.ac-t.tx tr.up td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--up) 55%, transparent); }
.ac-t.tx tr.down td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--down) 55%, transparent); }
.ac-new td { animation: trFlash 1.4s ease; }
.ac-th { display: inline-flex; align-items: center; gap: 4px; }
.ac-sort { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.ac-sort i { font-style: normal; font-size: 9px; opacity: .6; } .ac-sort.on { color: var(--text); } .ac-sort.on i { opacity: 1; }
.ac-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none !important; }
.ac-ic:hover { background: var(--line); color: var(--text); } .ac-ic.on { background: var(--accent); color: var(--accent-ink); }
.ac-type { display: inline-flex; align-items: center; gap: 7px; }
.ac-type i { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-style: normal; font-size: 11px; background: color-mix(in srgb, currentColor 16%, transparent); }
.ac-who { display: inline-flex; align-items: center; gap: 7px; }
.ac-wallet { position: relative; background: none; border: 0; padding: 2px 0; font-size: 12px; color: inherit; cursor: pointer; }
.ac-wallet:hover { text-decoration: underline; }
.ac-t.tt .ac-wallet { color: var(--text); font-size: 12.5px; }
.ac-bag { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.ac-bag i, .ac-bar i { display: block; height: 100%; background: var(--text); border-radius: inherit; }
.ac-two { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.35; } .ac-two .muted { font-size: 11px; }
.ac-pnl { font-size: 14px; }
.ac-bal { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; min-width: 120px; font-size: 12px; }
.ac-bar { display: block; height: 4px; border-radius: 4px; background: var(--line-strong); overflow: hidden; width: 100%; }
.ac-amt { display: grid; grid-template-columns: 64px minmax(90px, 1fr) 64px; gap: 10px; align-items: center; min-width: 250px; } .ac-amt > :last-child { text-align: left; }
.ac-t.hd th:nth-child(4), .ac-t.hd td:nth-child(4) { width: 42%; }
.ac-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; text-transform: none; display: inline-block; }
.ac-load { padding: 6px 14px; } .ac-skel { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ac-more { display: block; width: 100%; border: 0; background: none; padding: 12px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; } .ac-more:hover { background: var(--raise); }
.ac-note { margin: 0; padding: 9px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); min-height: 38px; }
.ac-mk { display: flex; gap: 8px; flex-wrap: wrap; } .ac-mk .btn.small { flex: none; }
@media (max-width: 720px) { .ac-body { height: 480px; } .ac-t th, .ac-t td { padding-left: 9px; padding-right: 9px; } .ac-mk { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- pair desk: full screen (price bar, chart over activity, trade panel) */
.dk { display: flex; flex-direction: column; gap: 14px; }
.pp-head.dk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 10px 16px; margin: 0; }
.dk-back { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); font-size: 24px; line-height: 1; font-weight: 500; }
.dk-back span { margin-top: -4px; }
.dk-back:hover { background: var(--raise); border-color: var(--text); text-decoration: none; }
.dk-bar .tp-logo { flex: none; margin-right: -8px; } .dk-bar .tp-logo .tok-ic { width: 36px; height: 36px; font-size: 16px; }
.dk-name h1 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dk-name .tp-tags { margin-top: 3px; gap: 5px; flex-wrap: nowrap; } .dk-name .chain-tag { font-size: 10.5px; padding: 1px 6px; }
.dk-price .tp-price { font-size: 22px; letter-spacing: -.4px; white-space: nowrap; } .dk-price .small { font-size: 11.5px; white-space: nowrap; }
.dk-chg { display: flex; gap: 16px; }
.dk-stat { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dk-stat > span { font-size: 11px; color: var(--muted); line-height: 1.2; } .dk-stat strong { font-weight: 600; line-height: 1.2; }
.dk-bar .pp-actions { margin-left: auto; }
.dk-body { display: flex; flex-direction: column; gap: 14px; }
.dk-divider { display: none; }
.dk .chart-tools { gap: 6px 8px; padding: 8px 12px; }
.dk .ind-bar { padding: 0; border: 0; gap: 4px; } .dk .ind-bar .chip, .dk .chart-tools > .chip { height: 28px; padding: 0 8px; font-size: 12px; border-color: transparent; background: none; color: var(--muted); }
.dk .ind-bar .chip:hover, .dk .chart-tools > .chip:hover { color: var(--text); }
.dk .ind-bar .chip.on, .dk .chart-tools > .chip.on { background: var(--raise); border-color: var(--line-strong); color: var(--text); }
.dk .chart-tools .live-pill { font-size: 11px; } .dk-vr { width: 1px; height: 16px; background: var(--line-strong); }
.dk-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dk-sidetabs { display: none; }
.dk-scroll { padding: 14px; } .dk-scroll > * + * { margin-top: 16px; }
.dk-others h2 { font-size: 13px; margin: 0 0 8px; } .dk-others .board-scroll { box-shadow: none; } .dk-others .op-list { min-width: 0; } .dk-others .op-row .small { display: none; }
@media (min-width: 1100px) {
  body.desk { overflow: hidden; }
  body.desk .app { height: 100vh; height: 100dvh; min-height: 0; }
  body.desk .side { height: 100%; }
  body.desk .main-col { height: 100%; min-height: 0; }
  body.desk #ticker, body.desk .foot { display: none; }
  body.desk .status { margin: 8px 12px 0; max-width: none; }
  body.desk main { max-width: none; padding: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  body.desk main > .tp-loading { padding: 16px; }
  .dk { flex: 1; min-height: 0; gap: 0; }
  .pp-head.dk-bar { flex: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .dk-bar .pp-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; } .dk-bar .pp-actions .pp-ic { width: 34px; padding: 0; }
  .dk-bar .pp-actions button:not(.pp-ic) { display: none; } /* Buy and Sell sit in the trade panel, always in view */
  .dk-body { flex: 1; min-height: 0; flex-direction: row; gap: 0; }
  .dk-left { --list: 38%; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
  .dk-left .chart-card { flex: 1; min-height: 0; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
  .dk-left .chart-tools { flex: none; flex-wrap: nowrap; }
  .dk-left .chart-tools > * { flex: none; } .dk-left .chart-tools .ind-bar { flex: 0 1 auto; min-width: 0; overscroll-behavior: contain; } .dk-left .chart-tools .grow { flex: 1 0 0; }
  .dk-left .chart-wrap { flex: 1; min-height: 0; } .dk-left .chart-box { height: 100% !important; }
  .dk-left .chart-foot { flex: none; padding: 4px 12px; font-size: 11px; } .dk-left .chart-foot .small { font-size: 11px; }
  .dk-divider { flex: none; display: grid; place-items: center; height: 9px; cursor: row-resize; touch-action: none; background: var(--raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .dk-divider i { width: 44px; height: 3px; border-radius: 3px; background: var(--line-strong); transition: width .15s, background .15s; }
  .dk-divider:hover i, .dk-divider.on i, .dk-divider:focus-visible i { width: 84px; background: var(--accent); }
  .dk-divider:focus-visible { outline: none; }
  .dk-left .ac-card { flex: none; height: var(--list); min-height: 48px; margin: 0; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
  .dk-left .ac-tabs { flex: none; min-height: 46px; } .dk-left .ac-tab { padding: 12px 10px 11px; }
  .dk-left .ac-pop { flex: none; } .dk-left .ac-body { flex: 1; height: auto; min-height: 0; } .dk-left .ac-note { flex: none; min-height: 0; padding: 6px 14px; font-size: 11.5px; }
  .dk-side { flex: none; width: 372px; margin: 12px; border-color: var(--line-strong); display: flex; flex-direction: column; min-height: 0; }
  .dk-sidetabs { flex: none; display: flex; gap: 4px; margin: 8px; padding: 4px; border-radius: 10px; background: var(--raise); }
  .dk-sidetabs button { flex: 1; border: 0; border-radius: 7px; background: none; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
  .dk-sidetabs button:hover { color: var(--text); } .dk-sidetabs button.on { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
  .dk-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 14px; position: relative; }
}
@media (min-width: 1700px) { .dk-side { width: 430px; } }
@media (max-width: 1500px) and (min-width: 1100px) { .dk-left .chart-tools .seg button { padding: 0 7px; } .dk-left .chart-tools { gap: 6px; } .dk-left .chart-tools .live-pill { display: none; } .dk-left .chart-tools .ind-bar { padding-right: 26px; mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); } .dk-bar { gap: 8px 14px !important; } .dk-chg { gap: 12px; } .dk-side { width: 340px; } }
@media (max-width: 720px) { .dk-bar .pp-actions { margin: 0; } .dk-chg { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; } .dk .ind-bar { order: 9; width: 100%; } .dk-vr { display: none; } .dk-price { width: 100%; display: flex; align-items: baseline; gap: 10px; } .dk-stat { flex: 1 1 40px; } }

/* coin desk */
.dk-trade h2, .dk-info h2 { font-size: 15px; margin: 0 0 12px; } .dk-buy { display: flex; gap: 8px; } .dk-buy .btn { flex: 1; } .dk-trade p { margin: 10px 0 0; }
.dk-trade { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.dk-price .tp-chg { font-size: 12px; white-space: nowrap; }
.dk-orders h2.ac-tab { margin: 0; } .dk-orders .board-scroll { border: 0; border-radius: 0; box-shadow: none; } .dk-orders .ac-body { height: auto; }
.dk-coin .chart-tools .icon-btn.small { width: 28px; height: 28px; }
.dk-coin .tp-tags a { line-height: 1; } .dk-coin .dk-name { min-width: 0; }
@media (min-width: 1100px) { .dk-coin .dk-name .tp-tags { max-width: 300px; overflow-x: auto; scrollbar-width: none; } }
@media (min-width: 1100px) and (max-width: 1900px) { .dk-coin .dk-left .chart-tools { flex-wrap: wrap; } .dk-coin .dk-left .chart-tools .ind-bar { order: 9; flex: 1 0 100%; padding-right: 0; mask-image: none; -webkit-mask-image: none; flex-wrap: wrap; } .dk-coin .dk-vr { display: none; } }
.dk-orders h2.ac-tab, .dk-trade h2, .dk-info h2 { text-transform: none; letter-spacing: 0; color: var(--text); }
.dk-coin .st-changes { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); }
@media (max-width: 1099px) { .dk-coin .dk-name .tp-tags { flex-wrap: wrap; } }
@media (max-width: 720px) { .dk-coin .chart-tools .seg.tf { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .dk-coin .dk-name { flex: 1 1 200px; } }

/* No scroll bars anywhere (Ben, 2026-11-24); everything still scrolls. */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* drawing tools */
.dt { position: relative; flex: none; } .dt-btn { white-space: nowrap; }
.dk .dt .chip { height: 28px; padding: 0 8px; font-size: 12px; border-color: transparent; background: none; color: var(--muted); } .dk .dt .chip:hover { color: var(--text); } .dk .dt .chip.on { background: var(--raise); border-color: var(--line-strong); color: var(--text); }
.dt-menu { position: fixed; z-index: 60; width: 224px; max-height: 70vh; overflow-y: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.dt-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 8px; background: none; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--text); text-align: left; cursor: pointer; }
.dt-item:hover { background: var(--raise); } .dt-item.bad { color: var(--bad); }
.dt-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dt-colors { display: flex; gap: 8px; padding: 8px 10px; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dt-colors button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--panel); cursor: pointer; padding: 0; } .dt-colors button.on { box-shadow: 0 0 0 2px var(--text); }
.dt-note { position: absolute; z-index: 5; width: 210px; height: 32px; border: 1px solid var(--accent); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; padding: 0 9px; box-shadow: var(--shadow); }

/* marks, creator, position, quick buy, screener, trending */
.mk-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .dt-item .grow { flex: 1; } .mk-note { margin: 6px 10px 4px; }
.ti-dev { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; } .ti-devh { display: flex; justify-content: space-between; align-items: center; }
.swap-pos { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; } .swap-pos[hidden] { display: none; } .swap-poshead { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.swap-posgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; } .swap-posgrid > div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; } .swap-posgrid strong { font-size: 13.5px; font-variant-numeric: tabular-nums; } .swap-pos p { margin: 0; }
.swap-possell { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .swap-possell .chip { justify-content: center; padding: 0 4px; font-size: 12px; text-align: center; }
.swap-edit { grid-column: 1 / -1; justify-self: end; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; } .swap-edit:hover { color: var(--text); }
.swap-pin { width: 100%; height: 34px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; text-align: center; }
.board.pr a.row { position: relative; } .p-buy { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .12s; } .p-buy .chip { background: var(--up); border-color: var(--up); color: #fff; font-weight: 600; }
.board.pr a.row:hover .p-buy, .board.pr a.row:focus-within .p-buy { opacity: 1; pointer-events: auto; } @media (hover: none) { .p-buy { display: none; } }
.sc { display: flex; flex-direction: column; gap: 12px; margin: -4px 0 16px; } .sc-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 14px; } .sc-panel[hidden] { display: none; } .np-in.bad { border-color: var(--bad); }
.tick-n { color: var(--muted); font-size: 11px; } .tick .tok-ic { width: 18px; height: 18px; font-size: 9px; box-shadow: none; } .tick .boost-tag { padding: 0 4px; }

/* limit orders, wallets, bubbles, locks */
.dk-mode { width: 100%; margin-bottom: 10px; } .dk-mode button { flex: 1; text-align: center; justify-content: center; }
.lim-at { margin-top: 8px; } .lim-chips { grid-template-columns: repeat(4, 1fr) !important; } .lim-chips .chip { padding: 0 4px; } .lim-out { min-height: 66px; } .lim-list h3 { font-size: 13px; margin: 14px 0 6px; }
.lim-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--line); } .lim-row .chip { margin-left: auto; }
.wl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; } .wl-head .grow { flex: 1; } .wl-label { max-width: 180px; }
.wl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; } .wl-stat { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; } .wl-stat strong { font-size: 20px; letter-spacing: -.3px; }
.wl-table { margin: 0; } .wl-row { cursor: pointer; } .wl-tok { display: inline-flex; align-items: center; gap: 10px; } .wl-tok .tok-ic { width: 26px; height: 26px; } .wl-trades { background: var(--raise); padding: 8px 16px !important; text-align: left !important; } .wl-trades .ac-t { min-width: 0; }
.wl-follow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); } .wl-follow .grow { flex: 1; }
.bb { position: relative; display: flex; height: 100%; min-height: 240px; } .bb-main { flex: 1; min-width: 0; } .bb-svg { width: 100%; height: 100%; display: block; touch-action: pan-y; } .bb-link { stroke-width: 1.5; stroke-opacity: .5; } .bb-n { cursor: pointer; } .bb-n text { fill: #fff; font-size: 11px; font-weight: 600; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.bb-tip { position: absolute; left: 0; top: 0; z-index: 3; width: 180px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); font-size: 12px; } .bb-tip[hidden] { display: none; }
.bb-side { flex: none; width: 190px; padding: 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; overflow-y: auto; font-size: 13px; } .bb-g { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 5px 6px; border-radius: 8px; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; text-align: left; } .bb-g:hover { background: var(--raise); } .bb-g i { width: 10px; height: 10px; border-radius: 50%; } .bb-g strong { margin-left: auto; }
@media (max-width: 720px) { .bb { flex-direction: column; } .bb-side { width: auto; border-left: 0; border-top: 1px solid var(--line); } .bb-main { min-height: 280px; } }
.lk-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--raise); } .lk-bar i { display: block; height: 100%; }

/* stars */
.p-star { border: 0; background: none; padding: 4px; margin: -4px; display: inline-grid; place-items: center; color: var(--muted); cursor: pointer; opacity: .45; border-radius: 6px; } .p-star:hover { opacity: 1; color: #F5B400; } .p-star.on, .pp-star.on { opacity: 1; color: #F5B400; } .p-star.on .ic, .pp-star.on .ic { fill: #F5B400; }
.board.pr .p-rank { display: flex; flex-direction: column; align-items: center; gap: 3px; } .p-no { font-size: 11px; line-height: 1; }
.np-row { position: relative; } .np-star { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; background: var(--panel); opacity: 0; } .np-row:hover .np-star, .np-star.on, .np-star:focus-visible { opacity: 1; }
@media (hover: none) { .np-star { opacity: .6; } }
/* One-click buy on New pairs rows (to the left of the star) */
.np-qb { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); }
@media (min-width: 901px) { .np-row:not(.head) { padding-right: 150px; } .np-row.head { padding-right: 150px; } }
@media (max-width: 900px) { .np-qb { position: static; transform: none; grid-column: 1 / -1; justify-self: end; } }
/* New pairs: columns view */
.np-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.np-cols[hidden] { display: none; }
.np-col { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0; display: flex; flex-direction: column; max-height: calc(100vh - 260px); }
.np-colhead { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); border-radius: 14px 14px 0 0; z-index: 1; }
.np-col .np-list { overflow-y: auto; flex: 1; }
.np-col .np-list:empty::after { content: 'Nothing here yet. It fills in live.'; display: block; padding: 18px 12px; color: var(--muted); font-size: 13px; }
.np-cols .np-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; padding: 8px 10px; min-height: 0; gap: 2px 8px; padding-right: 10px !important; }
.np-cols .np-c3, .np-cols .np-c4, .np-cols .np-c5, .np-cols .np-c6, .np-cols .np-c7 { display: none; }
.np-cols .np-c0 { grid-column: 1; grid-row: 1; font-size: 12px; text-align: left; min-width: 0; } .np-cols .np-c1 { grid-column: 2; grid-row: 1; min-width: 0; } .np-cols .np-c2 { grid-column: 3; grid-row: 1; text-align: right; font-size: 13px; }
.np-cols .np-c8 { grid-column: 2 / 3; grid-row: 2; padding-left: 0 !important; } .np-cols .np-qb { position: static; transform: none; grid-column: 3; grid-row: 2; justify-self: end; }
.np-cols .np-star { top: 10px; transform: none; right: 6px; }
@media (max-width: 1100px) { .np-cols { grid-template-columns: 1fr; } .np-col { max-height: 70vh; } }

.lk-soon { color: #B7791F; }

.paper-pill { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: #B7791F; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.paper-pill[hidden] { display: none; }
.paper-card { display: flex; flex-direction: column; gap: 8px; }
.paper-card.on { border-color: #D69E2E; background: color-mix(in srgb, #D69E2E 7%, var(--panel)); }
.paper-bal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.xc-row { display: grid; grid-template-columns: 1fr auto 64px 64px; gap: 8px; align-items: center; padding: 4px 0; color: inherit; text-decoration: none; font-size: 13px; }
.xc-row:hover { color: var(--accent); } .xc-row.me { font-weight: 600; }
.xc-row > :nth-child(n+2) { text-align: right; }
.xc-cheap { margin-left: 6px; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 5px; color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }

.vt-row { align-items: center; } .vt-row .ti-k { margin-right: auto; }
.btn.vt { gap: 6px; } .btn.vt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Row details (rowinfo.js, 2026-11-28): eyebrow (tax, paid…), colored icon strip, details line, hover cards (tip.js). */
.np-eb { display: flex; gap: 4px; align-items: center; margin-bottom: 1px; line-height: 1; }
.eb { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 2px 5px; white-space: nowrap; color: var(--muted); background: color-mix(in srgb, var(--muted) 10%, transparent); }
.eb.ok { color: var(--up); background: color-mix(in srgb, var(--up) 10%, transparent); }
.eb.warn { color: #B7791F; background: color-mix(in srgb, #D69E2E 14%, transparent); }
.eb.bad { color: var(--down); background: color-mix(in srgb, var(--down) 11%, transparent); }
.eb.mu { color: var(--muted); }
.ri { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; padding: 2px 4px; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.ri b { font-weight: 600; } .ri .ic { flex: none; }
.ri.ok { color: var(--up); background: color-mix(in srgb, var(--up) 9%, transparent); }
.ri.warn { color: #B7791F; background: color-mix(in srgb, #D69E2E 13%, transparent); }
.ri.bad { color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); }
.ri.mu { color: var(--muted); background: color-mix(in srgb, var(--muted) 9%, transparent); }
.ri-g { font-style: normal; font-size: 10px; margin-left: 2px; padding: 0 3px; border: 1px solid currentColor; line-height: 1.3; }
.ri-sep { width: 1px; height: 14px; background: var(--line-strong); margin: 0 2px; }
.np-c8 { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.np-meta { display: flex; gap: 10px; align-items: center; margin-top: 2px; flex-wrap: wrap; row-gap: 2px; }
.rm { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.rm i { font-style: normal; font-weight: 600; } .rm i.up, .rm.up { color: var(--up); } .rm i.down, .rm.down { color: var(--down); }
.hv-card { position: fixed; z-index: 1000; max-width: 280px; min-width: 170px; padding: 8px 10px; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); font-size: 12px; line-height: 1.45; pointer-events: none; }
.hv-card[hidden] { display: none; }
.hv-t { font-weight: 600; margin-bottom: 2px; } .hv-p { color: var(--muted); }
.hv-k { display: flex; justify-content: space-between; gap: 14px; } .hv-k span:first-child { color: var(--muted); } .hv-k span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.p-l3 { display: flex; align-items: center; gap: 3px 8px; flex-wrap: wrap; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.p-l3 .bs-mini { width: 34px; }
.p-nm .np-eb { margin-bottom: 2px; }
@media (max-width: 720px) {
  .p-nm { height: auto; max-height: none; }
  .p-nm > .np-eb { flex: 0 0 100%; order: -1; }
  .p-nm > .p-l3 { flex: 0 0 100%; order: 5; }
}
@media (min-width: 901px) { .np-row:not(.head), .np-row.head { padding-right: 184px; } }
.board .row:not(.head):has(.np-eb) { padding-top: 8px; padding-bottom: 8px; }

/* Chart callouts popover (candles.js) */
.hc-cl { position: absolute; z-index: 6; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 12px; }
.hc-cl-h { color: var(--muted); padding: 2px 6px 6px; font-weight: 600; }
.hc-cl-r { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 7px; color: var(--text); text-decoration: none; }
.hc-cl-r:hover { background: var(--raise); }
.hc-cl-r img, .hc-cl-i { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.hc-cl-i { display: grid; place-items: center; background: var(--accent-tint); font-weight: 700; }
.hc-cl-n { min-width: 0; } .hc-cl-n i { color: var(--muted); font-style: normal; } .hc-cl-n span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-cl-w { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Homepage (views/home.js) and Callouts (callouts.js, views/calloutsview.js) */
.hp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px 12px; height: calc(100dvh - 110px); min-height: 520px; }
.hp-panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; }
.hp-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; }
.hp-more { color: var(--muted); font-size: 12px; text-decoration: none; } .hp-more:hover { color: var(--text); }
.hp-tabs { display: flex; align-items: center; gap: 4px; padding: 2px 10px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hp-tab { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; padding: 6px 8px; border-radius: 7px; cursor: pointer; }
.hp-tab.on { color: var(--text); background: var(--raise); }
.hp-body { flex: 1; overflow-y: auto; min-height: 0; }
.hp-wait { padding: 16px; }
.hp-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.hp-row:nth-child(even) { background: var(--alt); }
.hp-row:hover { background: var(--raise); }
.hp-ic { position: relative; display: inline-flex; } .hp-ic .tok-ic { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.hp-ic .chain-ic { position: absolute; right: -4px; bottom: -3px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); background: var(--panel); }
.hp-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hp-nm strong, .hp-n, .hp-eb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-n, .hp-eb { font-size: 11.5px; }
.hp-num { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-num strong { font-size: 13.5px; }
.hp-buy .qb { padding: 3px 7px; font-size: 11.5px; height: 24px; }
.hp-tt { grid-template-columns: 26px minmax(0, 1fr) auto; }
.hp-rank { text-align: center; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; } .hp-rank.top { color: var(--warn, #F59E0B); }
@media (max-width: 1400px) { .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; } .hp-panel { height: 70vh; } }
@media (max-width: 760px) { .hp-grid { grid-template-columns: 1fr; padding: 8px; } .hp-panel { height: 75vh; } }

.cl-page { height: calc(100vh - 210px); margin: 0 12px 12px; }
.cl-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.cl-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.cl-av-i { display: grid; place-items: center; background: var(--accent-tint); font-weight: 700; }
.cl-main { min-width: 0; }
.cl-who { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ver { color: #1D9BF0; margin-left: 3px; font-weight: 700; }
.cl-src { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 4px; background: var(--raise); font-size: 10px; font-weight: 700; vertical-align: 1px; }
.cl-text { margin: 4px 0 8px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.cl-coin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); color: var(--text); text-decoration: none; font-size: 12.5px; }
.cl-coin .tok-ic { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.cl-coin:hover { border-color: var(--line-strong); }
.cl-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; }
.cl-open { color: var(--muted); text-decoration: none; } .cl-open:hover { color: var(--text); }
.cl-post { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cl-input { width: 100%; resize: vertical; background: var(--raise); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; }
.cl-post-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
