/* Nearsight · Sightline identity. Derived from the mark: electric mint on true black,
   the diamond, the four-point sighting star, and the S-direction 45° chamfer. See DESIGN.md. */
:root {
  --mint: #00efae;            /* the logo, exactly */
  --mint-hi: #5bffcc;
  --mint-ink: #00140d;        /* text on mint */
  --flare: #ff4f73;           /* down / danger: pink, not red, so up/down never reads as red-vs-green */
  --flare-ink: #1f030a;
  --volt: #ffc247;            /* caution */
  --bg: #050807;
  --s1: #0b100e;
  --s2: #121916;
  --s3: #1a231f;
  --line: rgb(236 255 247 / 0.07);
  --line-2: rgb(236 255 247 / 0.13);
  --ink: #f1f6f3;
  --ink-2: #b1bdb7;
  --ink-3: #7f8c86;
  --up: var(--mint);
  --up-dim: rgb(0 239 174 / 0.12);
  --down: var(--flare);
  --down-dim: rgb(255 79 115 / 0.13);
  --amber: var(--volt);
  --amber-dim: rgb(255 194 71 / 0.13);
  --ice: var(--mint);
  --ice-dim: rgb(0 239 174 / 0.12);
  --on-light: var(--mint-ink);
  --lp-nearly: #00efae;
  --lp-shards: #b69cff;
  --lp-nearpad: #6fb6ff;
  --lp-nearrr: #ff9a5c;
  --lp-memecooking: #ffd84a;
  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --cut: 10px;                /* chamfer size, the S-direction corner cut from the mark */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  /* legacy aliases used by inline styles in JS */
  --panel: var(--s1); --panel-2: var(--s2); --text: var(--ink); --muted: var(--ink-2); --dim: var(--ink-3);
  --accent: var(--ice); --warn: var(--amber); --warn-bg: var(--amber-dim); --up-bg: var(--up-dim); --down-bg: var(--down-dim);
  --info: var(--ice); --info-bg: var(--ice-dim);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display:none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 13px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(0 239 174 / 0.3); }
.num, td.n, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--ink-2); } .dim { color: var(--ink-3); } .warn-t { color: var(--amber); }
.spacer { flex: 1; }
.loading, .empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.pending { padding: 12px 16px; color: var(--ink-3); font-size: 12px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 52px; padding: 0 16px; background: var(--s1); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; letter-spacing: -0.02em; white-space: nowrap; }
.logo-mark { display: block; width: 28px; height: 28px; border-radius: 5px; flex: none; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: 7px; color: var(--ink-3); font-weight: 500; transition: color .15s var(--ease), background .15s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ice); background: var(--ice-dim); }
.search { flex: 1; max-width: 520px; position: relative; }
.search input { width: 100%; height: 34px; background: var(--s2); border: 1px solid transparent; border-radius: 9px; padding: 0 44px 0 12px; outline: none; transition: border-color .15s var(--ease), background .15s var(--ease); }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--ice); background: var(--s2); }
.search::after { content: '⌘K'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 10.5px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; pointer-events: none; }
#wallet { flex: none; margin-left: auto; }
.wmenu { position: relative; }
.wdot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); margin-right: 8px; vertical-align: 1px; }
.pro-badge { margin-left: 8px; color: var(--up); font: 600 10px var(--mono); letter-spacing: .04em; }
.wpop { position: absolute; right: 0; top: 40px; z-index: 30; min-width: 200px; background: var(--s2); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px; box-shadow: 0 20px 44px -16px oklch(0.05 0 0 / 0.8); }
.wpop a, .wpop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; background: none; border: 0; color: var(--ink); }
.wpop a:hover, .wpop button:hover { background: var(--s3); }
main { padding: 16px; min-height: calc(100vh - 110px); }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 16px 22px; color: var(--ink-3); font-size: 11.5px; border-top: 1px solid var(--line); }
kbd { font: 500 10.5px var(--mono); color: var(--ink-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--s1); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--s2); border: 1px solid transparent; border-radius: 8px; color: var(--ink); font-weight: 500; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), opacity .15s; }
.btn:hover { background: var(--s3); }
.btn.primary { background: var(--ice); color: var(--on-light); border-color: var(--ice); font-weight: 600; }
.btn.primary:hover { background: #4fffc5; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn .cnt { min-width: 16px; padding: 0 5px; border-radius: 8px; background: var(--ice); color: var(--on-light); font-size: 10.5px; font-weight: 700; text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ice); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.dim { color: var(--ink-3); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab { height: 30px; background: none; border: 0; padding: 0 10px; border-radius: 7px; color: var(--ink-3); font-weight: 500; transition: color .15s var(--ease), background .15s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ice); background: var(--ice-dim); }
.seg { display: inline-flex; background: var(--s2); border: 1px solid transparent; border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { height: 24px; background: none; border: 0; padding: 0 9px; border-radius: 6px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--s3); color: var(--ice); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { height: 24px; background: var(--s2); border: 1px solid transparent; border-radius: 7px; padding: 0 8px; font-size: 11.5px; color: var(--ink-3); transition: all .15s var(--ease); }
.chip:hover { color: var(--ink); background: var(--s3); }
.chip.on { background: var(--s3); color: var(--ink); }
.copy { background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; font: 11px var(--mono); color: var(--ink-3); }
.copy:hover { color: var(--ink); }

/* ---------- Home: radar · market · tape ---------- */
.home { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.rail { position: sticky; top: 68px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 84px); }
.rail.left { order: -1; }
.panel { background: var(--s1); border: 0; border-radius: 12px; overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 10px; font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.panel-h small { font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
.lpbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 12px 10px; }
.lpbar .chip { display: inline-flex; align-items: center; gap: 6px; }
.lpbar .chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.lpbar .chip[data-lp="nearly"] { --c: var(--lp-nearly); } .lpbar .chip[data-lp="shards"] { --c: var(--lp-shards); } .lpbar .chip[data-lp="nearpad"] { --c: var(--lp-nearpad); }
.lpbar .chip[data-lp="nearrr"] { --c: var(--lp-nearrr); } .lpbar .chip[data-lp="memecooking"] { --c: var(--lp-memecooking); } .lpbar .chip[data-lp="all"]::before { display: none; }

.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 14px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.filters label { display: flex; flex-direction: column; gap: 5px; color: var(--ink-3); font-size: 11.5px; font-weight: 500; }
.filters input, .filters select { height: 30px; background: var(--s1); border: 1px solid var(--line-2); border-radius: 7px; padding: 0 9px; font-size: 12.5px; outline: none; }
.filters .chk { flex-direction: row; align-items: center; gap: 8px; color: var(--ink-2); padding-top: 18px; }
.filters .actions { display: flex; align-items: flex-end; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; z-index: 1; background: var(--s1); text-align: right; font-weight: 500; color: var(--ink-3); font-size: 11.5px; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
th.l, td.l { text-align: left; }
th[data-sort] { cursor: pointer; transition: color .15s; }
th[data-sort]:hover { color: var(--ink); }
th.sorted { color: var(--ink); }
td { padding: 10px 12px; border-bottom: 1px solid rgb(237 250 243 / 0.06); text-align: right; white-space: nowrap; vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .7s var(--ease); }
tbody tr:hover { background: var(--s2); }
tbody tr.sel { background: var(--s2); }
tr.fl-buy { background: var(--up-dim); transition: none; }
tr.fl-sell { background: var(--down-dim); transition: none; }
td .sub { display: block; margin-top: 2px; color: var(--ink-3); font-size: 11px; }
.more { display: block; width: 100%; padding: 12px; background: none; border: 0; color: var(--ink-3); }
.more:hover { color: var(--ink); }

/* token cell */
.tk { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.tk img, .ic { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--s3); flex: none; }
.ic { display: grid; place-items: center; color: var(--ink-3); font-weight: 600; font-size: 12px; }
.tk-name { display: flex; align-items: baseline; gap: 7px; font-weight: 600; letter-spacing: -0.01em; }
.tk-name .nm { font-weight: 400; color: var(--ink-3); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.tk-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--ink-3); font-size: 11.5px; max-width: 260px; overflow: hidden; }
.pair { font: 500 10.5px var(--mono); color: var(--ink-3); }
.lpb { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.lpb::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.lp-nearly { --c: var(--lp-nearly); } .lp-shards { --c: var(--lp-shards); } .lp-nearpad { --c: var(--lp-nearpad); } .lp-nearrr { --c: var(--lp-nearrr); } .lp-memecooking { --c: var(--lp-memecooking); }
.stage { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); color: var(--ink-2); }
.stage i { position: relative; display: inline-block; width: 34px; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.stage i b { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: 2px; }
.stage.presale i b { background: var(--amber); }
.soc { display: inline-flex; gap: 6px; }
.soc a { color: var(--ink-3); font-size: 11px; }
.soc a:hover { color: var(--ink); }
.soc .off { display: none; }
.official { font: 600 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--up); }
.bsbar { display: inline-block; position: relative; width: 56px; height: 3px; border-radius: 2px; background: var(--down); opacity: .8; vertical-align: middle; margin-left: 6px; }
.bsbar b { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--up); }

/* risk read */
.read { display: inline-flex; align-items: center; gap: 8px; min-width: 170px; text-align: left; }
.meter { display: inline-flex; gap: 2px; flex: none; }
.meter i { width: 4px; height: 12px; border-radius: 1.5px; background: var(--line-2); }
.read.safe .meter i.on { background: var(--up); } .read.caution .meter i.on { background: var(--amber); } .read.danger .meter i.on { background: var(--down); }
.read .phr { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.read.caution .phr { color: var(--amber); } .read.danger .phr { color: var(--down); }
.read .more-f { font: 500 10.5px var(--mono); color: var(--ink-3); }
/* legacy score badge (dev tab etc.) */
.sbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 1px 6px; border-radius: 6px; font: 600 11.5px var(--mono); }
.g-safe { background: var(--up-dim); color: var(--up); } .g-caution { background: var(--amber-dim); color: var(--amber); } .g-danger { background: var(--down-dim); color: var(--down); }
.flags { display: inline-flex; gap: 4px; margin-left: 6px; }
.flag { font-size: 10.5px; font-weight: 500; padding: 1px 6px; border-radius: 5px; }
.flag.bad { background: var(--down-dim); color: var(--down); } .flag.warn { background: var(--amber-dim); color: var(--amber); } .flag.good { background: var(--up-dim); color: var(--up); }

/* who's in */
.whos { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.stackav { display: inline-flex; }
.stackav > * { width: 20px; height: 20px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px var(--s1); display: grid; place-items: center; font: 600 9.5px var(--sans); color: var(--on-light); background: var(--ink-2); object-fit: cover; }
.stackav > *:first-child { margin-left: 0; }
.stackav .k-smart { background: var(--up); } .stackav .k-caller { background: var(--ice); } .stackav .k-follow { background: var(--amber); }
.whos .lbl2 { font-size: 11.5px; color: var(--ink-2); }

/* ---------- Launch radar ---------- */
.radar-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.radar-h h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.radar-h .sweep { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 var(--up-dim); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 oklch(0.80 0.13 168 / 0.45); } 70%, 100% { box-shadow: 0 0 0 8px oklch(0.80 0.13 168 / 0); } }
.feed { overflow-y: auto; overscroll-behavior: contain; }
.newl { max-height: calc(100vh - 170px); }
.nl-row { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line); cursor: pointer; transition: background .2s var(--ease); }
.nl-row:hover { background: var(--s2); }
.nl-row .nl-age { font: 500 12px var(--mono); color: var(--ink-3); padding-top: 2px; }
.nl-row .nl-age.up { color: var(--up); }
.nl-row img, .nl-row .ic { width: 28px; height: 28px; border-radius: 7px; }
.nl-row.fresh { background: var(--ice-dim); }
.nl-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nl-top { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.nl-top b { font-weight: 600; letter-spacing: -0.01em; }
.nl-top .mc { margin-left: auto; font: 500 12px var(--mono); color: var(--ink-2); }
.nl-new { font: 600 9.5px var(--sans); letter-spacing: .08em; color: var(--ice); }
.nl-stats { display: flex; flex-wrap: wrap; gap: 3px 10px; font: 11px var(--mono); color: var(--ink-3); }
.nl-stats b { color: var(--ink-2); font-weight: 500; }
.nl-safe { font-size: 12px; }
.newl .who, .feed-row .who { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tape */
.feed-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.feed-row:hover { background: var(--s2); }
.feed-row img, .feed-row .ic { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.feed-row .amt { text-align: right; font: 500 12.5px var(--mono); }
.feed-row .amt small { display: block; color: var(--ink-3); font-size: 10.5px; font-weight: 400; }
.feed-row.whale .amt { font-weight: 700; }
.feed-row.whale { background: var(--amber-dim); }
.feed-new { animation: reveal .7s var(--ease); }
@keyframes reveal { from { background: var(--s3); } to { background: transparent; } }
.side { font-weight: 600; } .side.buy { color: var(--up); } .side.sell { color: var(--down); }

/* labels on wallets */
.lbl { display: inline-block; font: 600 9.5px var(--sans); letter-spacing: .05em; padding: 1px 5px; border-radius: 4px; margin-left: 5px; vertical-align: 1px; background: var(--s3); color: var(--ink-2); }
.lbl.dev { background: oklch(0.74 0.12 300 / 0.2); color: var(--lp-shards); }
.lbl.lp { background: var(--ice-dim); color: var(--ice); }
.lbl.smart { background: var(--up-dim); color: var(--up); }
.lbl.snipe { background: var(--down-dim); color: var(--down); }
.lbl.bundle { background: var(--amber-dim); color: var(--amber); }
.lbl.whale { color: var(--amber); }
.lbl.follow { background: var(--amber-dim); color: var(--amber); }
.acct { color: var(--ink); }
.acct:hover { color: var(--ice); }

/* ---------- Token page ---------- */
.tp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tp-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px; flex-wrap: wrap; }
.tp-head img, .tp-head .ic { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
.tp-title { min-width: 0; }
.tp-title h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.tp-title h1 > span { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.tp-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; color: var(--ink-3); font-size: 12px; flex-wrap: wrap; }
.verdict { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; flex-wrap: wrap; }
.verdict .v-lvl { font-weight: 600; }
.verdict.safe .v-lvl { color: var(--up); } .verdict.caution .v-lvl { color: var(--amber); } .verdict.danger .v-lvl { color: var(--down); }
.verdict .v-why { color: var(--ink-2); }
.tp-price { margin-left: auto; text-align: right; }
.tp-price .p { font: 600 26px var(--mono); letter-spacing: -0.03em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 11px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .k { color: var(--ink-3); font-size: 11.5px; }
.stat .v { font: 500 14px var(--mono); margin-top: 3px; letter-spacing: -0.01em; }
.stat .v small { font-size: 11px; }
.desc { padding: 0 16px 16px; color: var(--ink-2); max-width: 72ch; }
.chart-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#chart { position: relative; height: 420px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); z-index: 3; pointer-events: none; }

/* safety */
.score { display: flex; align-items: center; gap: 14px; padding: 4px 16px 14px; }
.ring { --p: 0; --c: var(--up); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); flex: none; }
.ring b { width: 46px; height: 46px; border-radius: 50%; background: var(--s1); display: grid; place-items: center; font: 600 16px var(--mono); }
.score h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0 0 6px; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 9px 16px; }
.checks li + li { border-top: 1px solid var(--line); }
.checks li .d { color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.checks li b { font-weight: 500; }
.ck { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; margin-top: 1px; }
.ck.ok { background: var(--up-dim); color: var(--up); } .ck.warn { background: var(--amber-dim); color: var(--amber); } .ck.bad { background: var(--down-dim); color: var(--down); }
.ck.info, .ck.na { background: var(--s3); color: var(--ink-3); }
details.allchecks summary { list-style: none; cursor: pointer; padding: 10px 16px; color: var(--ink-3); font-size: 12px; border-top: 1px solid var(--line); }
details.allchecks summary::-webkit-details-marker { display: none; }
details.allchecks summary:hover { color: var(--ink); }
details.allchecks[open] summary { color: var(--ink-2); }

/* distribution / facts */
.dist { padding: 4px 16px 16px; }
.dist-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); gap: 2px; }
.dist-bar i { display: block; height: 100%; }
.dist-legend { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.dist-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; background: var(--c); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 4px 16px 16px; margin: 0; font-size: 12.5px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; text-align: right; font-family: var(--mono); }
.pbar { position: relative; display: inline-block; width: 70px; height: 3px; background: var(--line-2); border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.pbar i { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: 2px; }

/* people panel */
.people { padding: 0 0 6px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.prow .pwho { min-width: 0; flex: 1; }
.prow .pwho b { font-weight: 500; }
.prow .pwho div { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgroup { padding: 10px 16px 4px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; border-top: 1px solid var(--line); }

/* ---------- Trade panel ---------- */
.trade { border-color: var(--line-2); }
.tp-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.pro-note { padding: 10px 12px; border-radius: 9px; background: var(--up-dim); color: var(--ink-2); font-size: 11.5px; line-height: 1.45; }
.pro-note b { color: var(--up); }
.seg.full { display: grid; grid-template-columns: 1fr 1fr; }
.seg.full button { height: 32px; font-size: 13px; font-weight: 600; }
.seg.full button.on.buy { background: var(--up-dim); color: var(--up); }
.seg.full button.on.sell { background: var(--down-dim); color: var(--down); }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.tinput { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; transition: border-color .15s var(--ease); }
.tinput:focus-within { border-color: var(--ice); }
.tinput input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 12px 0; font: 500 22px var(--mono); letter-spacing: -0.02em; }
.tinput span { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); }
.presets .chip { height: 28px; font-family: var(--mono); }
.tq { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.tq.err { color: var(--down); }
.btn.big { width: 100%; height: 44px; font-size: 14px; font-weight: 650; border: 0; border-radius: 10px; }
.buybtn { background: var(--up); color: var(--on-light); border-color: var(--up); }
.buybtn:hover { background: #4fffc5; }
.sellbtn { background: var(--down); color: var(--on-light); border-color: var(--down); }
.sellbtn:hover { background: oklch(0.76 0.165 28); }
.taxchip { font-size: 11px; font-weight: 500; color: var(--amber); }
.gate { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--down-dim); font-size: 12px; cursor: pointer; }
.gate input { margin-top: 2px; accent-color: var(--down); }
.tstatus { padding: 10px 12px; border-radius: 10px; font-size: 12px; }
.tstatus a { color: inherit; text-decoration: underline; }
.tstatus.ok { background: var(--up-dim); color: var(--up); }
.tstatus.err { background: var(--down-dim); color: var(--down); }
.tstatus.info { background: var(--ice-dim); color: var(--ice); }
.tfoot { color: var(--ink-3); font-size: 11px; }
.thbanner { font-size: 12px; padding: 9px 12px; border-radius: 10px; background: var(--ice-dim); color: var(--ink); }
.orders-title { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.order-row { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.order-row:first-of-type { border-top: 0; }
.order-row .mono { overflow-wrap: anywhere; }
.order-actions { display: flex; gap: 8px; }

/* ---------- Wallet / profile ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.wh { padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wh h1 { margin: 0; font-size: 16px; font-family: var(--mono); font-weight: 500; word-break: break-all; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--s1); }
.card { padding: 12px 16px; border-right: 1px solid var(--line); }
.card:last-child { border-right: 0; }
.card .k { color: var(--ink-3); font-size: 11.5px; } .card .v { font: 600 18px var(--mono); margin-top: 4px; letter-spacing: -0.02em; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--s3); flex: none; }
.avatar.ph { display: grid; place-items: center; color: var(--ink-2); font-weight: 600; }
.pbox { display: flex; gap: 16px; align-items: flex-start; padding: 16px; flex-wrap: wrap; }
.pmain { flex: 1; min-width: 220px; }
.pname { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pname a { font-size: 12px; font-weight: 500; }
.pbio { margin-top: 4px; color: var(--ink-2); max-width: 64ch; }
.pstats { display: flex; gap: 16px; margin-top: 10px; color: var(--ink-3); font-size: 12px; }
.pstats b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.pact { display: flex; gap: 8px; flex-wrap: wrap; }
.earn { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0 16px 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.earn > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.earn .k { color: var(--ink-3); font-size: 11.5px; } .earn b { font: 600 16px var(--mono); } .earn small { color: var(--ink-3); font-size: 11px; }
.earn .earn-note { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; color: var(--ink-2); font-size: 12px; }

/* theses */
.thlist { display: flex; flex-direction: column; }
.thesis { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.thesis header, .thesis footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.thesis p { margin: 0; white-space: pre-wrap; word-break: break-word; max-width: 72ch; line-height: 1.55; }
.thauthor { display: inline-flex; align-items: center; gap: 8px; }
.thauthor b { font-weight: 600; }
.thtoken { font-weight: 600; color: var(--ice); }
.stance { font-size: 11.5px; font-weight: 600; }
.stance.bull { color: var(--up); } .stance.bear { color: var(--down); }
.composer { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.composer textarea, .modal input, .modal textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; resize: vertical; outline: none; font: inherit; color: var(--ink); line-height: 1.5; }
.composer textarea:focus, .modal input:focus, .modal textarea:focus { border-color: var(--ice); }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: oklch(0.1 0.005 70 / 0.7); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .18s var(--ease); }
.modal { width: min(440px, 100%); background: var(--s1); border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal h3 { margin: 0; font-size: 16px; font-weight: 650; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.merr { color: var(--down); font-size: 12px; min-height: 1em; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; padding: 10px 16px; border-radius: 10px; font-weight: 500; background: var(--ink); color: var(--on-light); box-shadow: 0 16px 40px -12px oklch(0.05 0 0 / 0.7); animation: fade .18s var(--ease); }
.toast.err { background: var(--down); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1759px) {
  .home { grid-template-columns: 300px minmax(0, 1fr); }
  .rail.right { display: none; }
}
@media (max-width: 1100px) {
  .home, .tp { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; }
  .newl { max-height: 340px; }
}
/* ---------- Phone-only parts (hidden on desktop) ---------- */
.tabbar, .actionbar, .sheet-bg, .searchbtn, .grabber, .sheet-x, .mlist { display: none; }
.iconbtn { display: grid; place-items: center; width: 36px; height: 36px; background: none; border: 0; border-radius: 9px; color: var(--ink-2); touch-action: manipulation; }
.iconbtn:hover { background: var(--s2); color: var(--ink); }
.iconbtn.searchbtn { display: none; }
.me-empty { max-width: 460px; margin: 24px auto; padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.me-empty h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -0.02em; }
.me-empty p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.me-empty .btn.big { width: 100%; height: 46px; }
.logo-mark.big { width: 44px; height: 44px; border-radius: 8px; }

/* ---------- Phone: first-class layout ---------- */
@media (max-width: 760px) {
  html, body { font-size: 14px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
  button, a { touch-action: manipulation; }
  .top { height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; gap: 8px; }
  .logo { font-size: 15px; }
  .nav, .foot .kbds { display: none; }
  .iconbtn.searchbtn { display: grid; margin-left: auto; }
  .search { display: none; }
  body.searching .search { display: block; position: absolute; left: 12px; right: 12px; bottom: 8px; max-width: none; }
  body.searching .search input { height: 40px; font-size: 16px; }
  body.searching .logo, body.searching #wallet, body.searching .searchbtn { visibility: hidden; }
  .search::after { display: none; }
  #wallet { margin-left: 0; }
  #wallet .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .wide-only { display: none; }
  main { padding: 0 0 12px; }
  .foot { padding: 16px 16px 24px; font-size: 11px; }
  .panel { border-radius: 0; border-left: 0; border-right: 0; }
  .stack { gap: 10px; }

  /* home: one screen at a time, driven by the tab bar */
  .home { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .rail { position: static; max-height: none; }
  .rail.right { display: none; }
  body[data-route="home"] .rail.left { display: none; }
  body[data-route="radar"] #main { display: none; }
  body[data-route="radar"] .rail.right { display: flex; }
  .newl { max-height: none; }
  #feed { max-height: none !important; }
  .radar-h { padding: 14px 16px 10px; }
  .nl-row { grid-template-columns: 40px 36px minmax(0, 1fr); padding: 12px 16px; }
  .nl-row img, .nl-row .ic { width: 36px; height: 36px; border-radius: 9px; }
  .nl-top b { font-size: 15px; }
  .toolbar { padding: 10px 12px 6px; flex-wrap: nowrap; }
  .tabs { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .home > *, .tp > *, .tp .panel, #main, .toolbar, .lpbar, .chart-bar { min-width: 0; max-width: 100vw; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .tabs::-webkit-scrollbar, .lpbar::-webkit-scrollbar, .chart-bar::-webkit-scrollbar { display: none; }
  .tab { height: 36px; flex: none; padding: 0 12px; }
  .lpbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 12px 12px; }
  .lpbar .chip { flex: none; }
  .chip { height: 32px; padding: 0 11px; font-size: 12.5px; }
  #main .tablewrap { display: none; }
  .mlist { display: block; }
  .mrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid rgb(237 250 243 / 0.06); min-height: 68px; transition: background .6s var(--ease); }
  .mrow:active { background: var(--s2); }
  .mrow.fl-buy { background: var(--up-dim); transition: none; } .mrow.fl-sell { background: var(--down-dim); transition: none; }
  .mrow img, .mrow .ic { width: 40px; height: 40px; border-radius: 10px; }
  .mr-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mr-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .mr-top b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
  .mr-read .read { min-width: 0; } .mr-read .phr { max-width: 46vw; }
  .mr-who .whos { min-width: 0; }
  .mr-num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; }
  .mr-num b { font-size: 14px; font-weight: 600; }
  .more { padding: 16px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input, .filters select, .composer textarea, .modal input, .modal textarea { font-size: 16px; }

  /* tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 7px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar svg .f { fill: currentColor; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg { stroke-width: 2; }
  body[data-route="token"] .tabbar { display: none; }

  /* token page: read first, trade in a bottom sheet */
  .tp { display: flex; flex-direction: column; gap: 10px; }
  .tp .col { display: contents; }
  #tpHead { order: 1; }
  .tp .col:first-child > .panel:nth-child(2) { order: 2; }
  #safety { order: 3; } #people { order: 4; }
  .tp .col:first-child > .panel:nth-child(3) { order: 5; }
  #dist { order: 6; } #facts { order: 7; }
  .tp-head { padding: 14px 16px 12px; gap: 12px; }
  .tp-head img, .tp-head .ic { width: 44px; height: 44px; }
  .tp-title { flex: 1; }
  .tp-title h1 { font-size: 18px; }
  .tp-price { margin-left: 0; width: 100%; display: flex; align-items: baseline; gap: 10px; text-align: left; }
  .tp-price .p { font-size: 24px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(3n) { border-right: 0; }
  .desc { padding: 0 16px 14px; }
  .chart-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chart-bar > * { flex: none; }
  #chart { height: 280px; }
  .t-trades th:nth-child(4), .t-trades td:nth-child(4), .t-trades th:nth-child(5), .t-trades td:nth-child(5),
  .t-trades th:nth-child(6), .t-trades td:nth-child(6), .t-trades th:nth-child(8), .t-trades td:nth-child(8),
  .t-holders th:nth-child(4), .t-holders td:nth-child(4) { display: none; }
  #tfilter { overflow-x: auto; scrollbar-width: none; }
  #tfilter .chips { flex-wrap: nowrap; }
  #ttabs + .spacer { display: none; }
  .actionbar { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .actionbar .btn.big { height: 46px; }
  .actionbar .iconbtn { width: 44px; height: 46px; border: 1px solid var(--line-2); }
  #trade { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--s1); padding-bottom: env(safe-area-inset-bottom); transform: translateY(104%); transition: transform .3s var(--ease); box-shadow: 0 -24px 60px -20px oklch(0.05 0 0 / 0.8); }
  body.sheet-open #trade { transform: none; }
  .sheet-bg { display: block; position: fixed; inset: 0; z-index: 55; background: oklch(0.1 0.005 70 / 0.6); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
  body.sheet-open .sheet-bg { opacity: 1; pointer-events: auto; }
  body.sheet-open { overflow: hidden; }
  .grabber { display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; }
  .sheet-x { display: grid; margin-left: 4px; }
  #trade .panel-h { gap: 10px; }
  #trade .panel-h .taxchip { margin-left: auto; }
  .presets .chip { height: 40px; font-size: 13px; }
  .seg.full button { height: 40px; }
  .btn.big { height: 50px; }

  /* wallet / profile */
  .cards { grid-template-columns: 1fr 1fr; border-radius: 0; border-left: 0; border-right: 0; }
  .card { border-bottom: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .pbox { padding: 16px; }
  .earn { margin: 0 12px 14px; }
  .wh h1 { font-size: 14px; }
  .modal-bg { align-items: end; padding: 0; }
  .modal { width: 100%; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  tr.fl-buy, tr.fl-sell { background: inherit; }
}

/* Market desk */
#calloutFollow[hidden], #tokenResults[hidden], #radarResults[hidden], #lpbar[hidden], #filters[hidden], #fbtn[hidden] { display:none !important; }
.tape-strip { position:fixed; top:0; left:0; right:0; z-index:30; height:40px; display:flex; align-items:center; gap:14px; padding:0 16px; background:var(--s1); border-bottom:1px solid var(--line-2); }
.tape-track { display:flex; align-items:center; gap:0; min-width:0; flex:1; height:100%; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
.tape-track::-webkit-scrollbar { display:none; }
.tape-item { flex:none; display:flex; align-items:center; gap:7px; height:100%; padding:0 16px; border-left:1px solid var(--line); font-size:11.5px; white-space:nowrap; }
.tape-item:first-child { border-left:0; padding-left:0; }
.tape-item:hover { background:var(--s2); }
.tape-item b { font-weight:600; }
.tape-item small { color:var(--ink-3); font-size:10.5px; }
.top { margin-top:40px; top:40px; }
.market-home { display:grid; grid-template-columns:320px minmax(0,1fr); gap:12px; align-items:start; }
.market-home #main { min-width:0; }
.callouts-sidebar { position:sticky; top:108px; height:calc(100vh - 124px); min-width:0; display:flex; flex-direction:column; }
.callouts-head { display:flex; align-items:start; justify-content:space-between; gap:8px; padding:15px 14px 12px; }
.callouts-head b { display:block; font-size:15px; }
.callouts-head small { display:block; color:var(--ink-3); font-size:11px; margin-top:2px; }
.callouts-head .linkbtn { font-size:11px; white-space:nowrap; }
.callout-switch { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:0 12px 12px; padding:3px; background:var(--s2); border-radius:8px; }
.callout-switch button { height:30px; border:0; border-radius:6px; background:none; color:var(--ink-3); font-weight:550; }
.callout-switch button.on { color:var(--ink); background:var(--s3); }
.callout-follow { border-top:1px solid var(--line); padding-top:12px; }
.callout-list { flex:1; min-height:0; overflow-y:auto; }
.callout-list .thesis { padding:13px 14px; gap:7px; }
.callout-list .thesis p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; font-size:12.5px; }
.callout-list .thesis header { gap:5px 8px; }
.callout-list .thesis footer { font-size:11px; }
.callout-list .thauthor { max-width:100%; }
.callout-list .thauthor b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:155px; }
.market-home #main .tablewrap { overflow-x:auto; }
.market-home #main table { min-width:1030px; }
.market-home #main th:last-child, .market-home #main td:last-child { position:sticky; right:0; background:var(--s1); box-shadow:-8px 0 12px -10px oklch(0.05 0 0 / .9); }
.market-home #main td:last-child { white-space:nowrap; }
.market-home #radarResults .newl { max-height:none; }
.market-home #radarResults .nl-row { grid-template-columns:44px 28px minmax(0,1fr); }
.market-home #radarResults .nl-top { max-width:520px; }
.market-home #radarResults .nl-safe { max-width:520px; }
.module-scroll { max-height:340px; overflow:auto; }
.module-row { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding:9px 12px; border-top:1px solid var(--line); }
.module-row a { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; flex:1; }
.module-row a:hover { color:var(--ice); }
.module-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.follow-form { display:flex; gap:7px; padding:0 12px 8px; }
.follow-form input { min-width:0; flex:1; height:30px; padding:0 8px; border:1px solid var(--line-2); border-radius:7px; background:var(--s2); }
#followError { padding:0 12px; }
.follow-list { display:flex; flex-wrap:wrap; gap:5px; padding:0 12px 8px; }
.follow-chip { display:inline-flex; align-items:center; gap:6px; padding:3px 5px 3px 8px; border:1px solid var(--line-2); border-radius:6px; font-size:11px; }
.follow-chip button { border:0; background:none; color:var(--ink-3); }
.follow-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:8px; padding:10px 12px; border-top:1px solid var(--line); }
.follow-row > div { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.follow-row .mono { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.feed-pages { display:flex; align-items:center; justify-content:center; gap:12px; padding:14px; border-top:1px solid var(--line); }
.nl-row, .feed-row, .follow-row { position:relative; }
.row-actions { position:absolute; right:7px; top:7px; display:none; align-items:center; background:var(--s2); border-radius:6px; }
.nl-row:hover .row-actions, .feed-row:hover .row-actions, .follow-row:hover .row-actions,
.nl-row:focus-within .row-actions, .feed-row:focus-within .row-actions, .follow-row:focus-within .row-actions { display:flex; }
@media (hover:none) { .row-actions { display:flex; } }
.mini-action { border:0; background:none; color:var(--ink-3); padding:3px 5px; font-size:15px; border-radius:5px; }
.mini-action:hover, .mini-action.active { color:var(--amber); background:var(--amber-dim); }
.thlist .follow-row { padding:14px; }
@media (min-width:761px) and (max-width:1100px) {
  .market-home { grid-template-columns:280px minmax(0,1fr); }
}
@media (max-width:760px) {
  .tape-strip { height:32px; padding:0 8px; gap:8px; }
  .tape-item { padding:0 10px; }
  .tape-item small { display:none; }
  .top { margin-top:32px; top:32px; }
  .market-home { display:flex; flex-direction:column; gap:0; }
  .market-home .callouts-sidebar { display:none; }
  body[data-route="radar"] #main { display:block; }
  .market-home #main table { min-width:0; }
  .market-home #radarResults .newl { max-height:none; }
  .market-home #radarResults .nl-row { grid-template-columns:40px 36px minmax(0,1fr); }
  .mrow .mr-main > a { display:block; }
  .mrow .mr-num { gap:0; }
}

/* =====================================================================
   SIGHTLINE · the Nearsight identity layer
   Everything below derives from the mark:
   · mint #00efae as a solid surface (black-on-mint), never just an accent
   · the diamond (45° square) as marker, pip and selection
   · the four-point sighting star for anything newly seen
   · the S-direction chamfer (top-left + bottom-right cut) instead of rounded cards
   · Archivo expanded + heavy as the voice; normal width for UI
   ===================================================================== */
:root { --wide: 125%; --semi: 112%; }
html, body { font-family: var(--sans); font-size: 13.5px; letter-spacing: -0.005em; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 520px at 50% -180px, rgb(0 239 174 / 0.09), transparent 70%),
    repeating-linear-gradient(45deg, rgb(0 239 174 / 0.028) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgb(0 239 174 / 0.028) 0 1px, transparent 1px 34px);
  background-attachment: fixed;
}
::selection { background: var(--mint); color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 2px; }
.num, td.n, .mono { font-family: var(--sans); font-stretch: var(--semi); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.acct.mono, .copy, .t-trades .mono, .wh h1 { font-family: var(--mono); font-stretch: 100%; }
.up { color: var(--mint); } .down { color: var(--flare); } .warn-t { color: var(--volt); }

/* chamfer: the corner cut from the mark */
.panel, .cards, .earn, .tq, .gate, .tstatus, .modal, .spec-cut {
  border-radius: 0 !important;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.panel { background: rgb(11 16 14 / 0.92); box-shadow: inset 0 0 0 1px var(--line); }

/* sighting star */
.spark { display: inline-block; flex: none; fill: currentColor; vertical-align: -1px; }
.spark.spin { color: var(--mint); animation: sightSpin 6s cubic-bezier(.25,1,.5,1) infinite; }
@keyframes sightSpin { 0%, 70% { transform: rotate(0) scale(1); } 80% { transform: rotate(90deg) scale(1.25); } 100% { transform: rotate(90deg) scale(1); } }

/* loader: the mark blinks */
.loading { display: grid; justify-items: center; gap: 14px; font-stretch: var(--semi); letter-spacing: .02em; }
.loading::before { content: ''; width: 38px; height: 38px; background: url(nearsight-logo.svg) center / contain no-repeat; animation: blink 2.6s cubic-bezier(.25,1,.5,1) infinite; }
@keyframes blink { 0%, 86%, 100% { transform: scaleY(1); } 92% { transform: scaleY(.12); } }
.empty { display: grid; justify-items: center; gap: 10px; }
.empty::before { content: ''; width: 18px; height: 18px; background: var(--mint); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-10C1.5-3.6 3.6-1.5 10 0 3.6 1.5 1.5 3.6 0 10-1.5 3.6-3.6 1.5-10 0-3.6-1.5-1.5-3.6 0-10Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-10C1.5-3.6 3.6-1.5 10 0 3.6 1.5 1.5 3.6 0 10-1.5 3.6-3.6 1.5-10 0-3.6-1.5-1.5-3.6 0-10Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- header ---------- */
.top { background: rgb(5 8 7 / 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); height: 58px; gap: 22px; }
.logo { gap: 11px; }
.logo-mark { width: 32px; height: 32px; border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.logo-t { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.nav a { font-weight: 600; font-stretch: var(--semi); color: var(--ink-3); border-radius: 0; padding: 7px 11px; }
.nav a.on { color: var(--mint-ink); background: var(--mint); clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.search input { height: 38px; border-radius: 0; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); border: 0; font-size: 13.5px;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.search input:focus { box-shadow: inset 0 0 0 1px var(--mint); }
.search::after { border-radius: 2px; border-color: var(--line-2); }

/* ---------- tape: the sightline ---------- */
.tape-strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.tape-item { gap: 8px; border-left: 0; padding: 0 18px 0 14px; font-stretch: var(--semi); position: relative; }
.tape-item::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--line-2); transform: rotate(45deg); }
.tape-item:first-child::before { display: none; }
.tape-item b { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: 11.5px; letter-spacing: .02em; }
.tape-item .up, .tape-item .down { font-size: 10px; }
.tape-item .mono { font-weight: 600; }

/* ---------- controls ---------- */
.btn { border-radius: 0; height: 34px; font-weight: 600; font-stretch: var(--semi); background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); border: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.btn:hover { background: var(--s3); }
.btn.primary, .buybtn { background: var(--mint); color: var(--mint-ink); box-shadow: none; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .02em; font-size: 12px; }
.btn.primary:hover, .buybtn:hover { background: var(--mint-hi); }
.sellbtn { background: var(--flare); color: var(--flare-ink); box-shadow: none; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .02em; }
.sellbtn:hover { background: #ff7391; }
.btn.big { height: 48px; font-size: 14px; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.btn .cnt { border-radius: 0; background: var(--mint); color: var(--mint-ink); transform: none; }
.linkbtn { color: var(--mint); text-decoration: none; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }
.tabs { gap: 2px; }
.tab { border-radius: 0; height: 32px; padding: 0 12px; font-weight: 600; font-stretch: var(--semi); color: var(--ink-3); }
.tab:hover { color: var(--ink); background: var(--s2); }
.tab.on { color: var(--mint-ink); background: var(--mint); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.seg { border-radius: 0; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); border: 0; padding: 2px; }
.seg button { border-radius: 0; font-weight: 600; font-stretch: var(--semi); }
.seg button.on { background: var(--mint); color: var(--mint-ink); }
.seg.full button.on.buy { background: var(--mint); color: var(--mint-ink); }
.seg.full button.on.sell { background: var(--flare); color: var(--flare-ink); }
.chip { border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-stretch: var(--semi); color: var(--ink-2); }
.chip:hover { background: var(--s2); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip.on .dim { color: rgb(5 8 7 / .55); }
.lpbar .chip::before, .lpb::before { border-radius: 0; transform: rotate(45deg); width: 6px; height: 6px; }
.lpbar { padding: 2px 12px 12px; }
.mini-action { border-radius: 0; color: var(--ink-3); }
.mini-action:hover { color: var(--mint); background: var(--up-dim); }
.mini-action.active { color: var(--volt); background: var(--amber-dim); }
.mini-action[data-quick]:hover { color: var(--mint-ink); background: var(--mint); }

/* ---------- market table ---------- */
th { background: rgb(11 16 14 / 0.98); font-size: 10.5px; font-weight: 700; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 11px 12px; }
th.sorted { color: var(--mint); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
tbody tr { transition: background .5s var(--ease); }
tbody tr:hover { background: rgb(0 239 174 / 0.045); }
tbody tr.sel { background: rgb(0 239 174 / 0.07); box-shadow: inset 0 0 0 1px rgb(0 239 174 / .45); }
tr.fl-buy { background: rgb(0 239 174 / 0.16); } tr.fl-sell { background: rgb(255 79 115 / 0.15); }
.tk { position: relative; gap: 12px; }
tbody tr:hover .tk::before, tbody tr.sel .tk::before { content: ''; position: absolute; left: -10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--mint); transform: rotate(45deg); }
.tk img, .ic { width: 34px; height: 34px; border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.tk-name { font-size: 14px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .01em; gap: 8px; }
.tk-name .nm { font-weight: 500; font-stretch: 100%; text-transform: none; font-size: 12.5px; letter-spacing: 0; }
.official { color: var(--mint-ink); background: var(--mint); padding: 1px 5px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.tk-sub { font-size: 11.5px; gap: 7px; }
td.n { font-size: 13.5px; font-weight: 600; }
td .sub { font-weight: 500; font-size: 11px; }
.chg { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px 3px 6px; font-weight: 800; font-stretch: var(--semi); font-size: 12.5px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }
.chg.up { background: var(--mint); color: var(--mint-ink); }
.chg.down { background: var(--flare); color: var(--flare-ink); }
.chg.flat { background: var(--s3); color: var(--ink-2); }
.bsbar { height: 3px; border-radius: 0; background: var(--flare); opacity: 1; }
.bsbar b { border-radius: 0; background: var(--mint); }

/* the read: diamond pips */
.read { gap: 9px; }
.meter { gap: 4px; padding-left: 1px; }
.meter i { width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: var(--line-2); }
.read.safe .meter i.on { background: var(--mint); }
.read.caution .meter i.on { background: var(--volt); }
.read.danger .meter i.on { background: var(--flare); }
.read .phr { font-weight: 600; font-size: 12.5px; }
.read.safe .phr { color: var(--ink-2); }
.read.caution .phr { color: var(--volt); } .read.danger .phr { color: var(--flare); }
.stackav > * { border-radius: 0; transform: rotate(45deg) scale(.78); box-shadow: 0 0 0 2px var(--s1); margin-left: -4px; }
.stackav > * > *, .stackav > span { font-size: 9px; }
.stackav .k-smart { background: var(--mint); } .stackav .k-caller { background: var(--ink); } .stackav .k-follow { background: var(--volt); }
.whos .lbl2 { font-weight: 600; }
.stage i, .stage i b { border-radius: 0; }
.stage i b { background: var(--mint); }
.lbl { border-radius: 0; font-stretch: var(--semi); }
.lbl.smart { background: var(--mint); color: var(--mint-ink); }

/* ---------- desk layout: sightings · market · callouts ---------- */
.market-home { grid-template-columns: 290px minmax(0, 1fr) 330px; gap: 14px; }
.sightings { position: sticky; top: 114px; height: calc(100vh - 130px); display: flex; flex-direction: column; min-width: 0; order: -1; }
.market-home #main { order: 0; }
.callouts-sidebar { order: 1; top: 114px; height: calc(100vh - 130px); }
.sight-head, .callouts-head { display: flex; align-items: center; gap: 10px; padding: 15px 14px 12px; border-bottom: 1px solid var(--line); }
.sight-head b, .callouts-head b, .dock-head b { display: block; font-size: 13px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .03em; }
.sight-head small, .callouts-head small { display: block; color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.callouts-head { align-items: start; }
.sight-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sight-list .nl-row, .newl .nl-row { grid-template-columns: 36px 28px minmax(0, 1fr); gap: 10px; padding: 11px 14px; border-top: 0; border-bottom: 1px solid var(--line); }
.nl-row .nl-age { font-weight: 700; font-stretch: var(--semi); font-size: 11.5px; }
.nl-row .nl-age.up { color: var(--mint); }
.nl-row img, .nl-row .ic { border-radius: 0; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.nl-top b { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: 13px; letter-spacing: .01em; }
.nl-top .mc { font-weight: 700; font-stretch: var(--semi); }
.nl-row.fresh { background: rgb(0 239 174 / 0.08); }
.nl-new { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 5px; background: var(--mint); color: var(--mint-ink); font-size: 9px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .06em; animation: none; }
.nl-row.fresh .nl-new .spark { animation: sightIn .9s cubic-bezier(.25,1,.5,1) both; }
@keyframes sightIn { from { transform: rotate(-90deg) scale(0); } to { transform: none; } }
.callout-switch { border-radius: 0; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); margin: 12px; }
.callout-switch button { border-radius: 0; font-weight: 700; font-stretch: var(--semi); }
.callout-switch button.on { background: var(--mint); color: var(--mint-ink); }
.following-dock { flex: none; max-height: 40%; display: flex; flex-direction: column; border-top: 1px solid var(--line-2); background: rgb(5 8 7 / .5); }
.dock-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; }
.dock-head small { color: var(--ink-3); font-size: 11px; }
.dock-list { overflow-y: auto; min-height: 0; }
.dock-list .empty { padding: 18px 14px; font-size: 12px; }
.follow-row { padding: 9px 14px; font-size: 12.5px; }
.follow-row b { font-weight: 800; font-stretch: var(--semi); }
.side { font-weight: 800; font-stretch: var(--semi); text-transform: uppercase; font-size: 11px; letter-spacing: .03em; }

/* ---------- callouts / theses ---------- */
.thesis { gap: 9px; }
.stance { display: inline-flex; align-items: center; padding: 2px 7px; font-size: 10px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .05em; }
.stance.bull { background: var(--mint); color: var(--mint-ink); }
.stance.bear { background: var(--flare); color: var(--flare-ink); }
.thtoken { color: var(--ink); font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; }
.thesis p { font-size: 13px; line-height: 1.55; color: var(--ink); }
.avatar { border-radius: 0; clip-path: polygon(22% 0, 100% 0, 100% 78%, 78% 100%, 0 100%, 0 22%); }
.composer textarea, .modal input, .modal textarea, .follow-form input, .filters input, .filters select { border-radius: 0; }

/* ---------- token page ---------- */
.tp-head img, .tp-head .ic { width: 56px; height: 56px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); border-radius: 0; }
.tp-title h1 { font-size: 30px; font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.tp-title h1 > span { font-stretch: 100%; text-transform: none; font-weight: 500; font-size: 15px; letter-spacing: 0; }
.tp-price .p { font-family: var(--sans); font-stretch: var(--wide); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; }
.verdict { gap: 10px; margin-top: 12px; }
.verdict .v-lvl { padding: 4px 9px; font-size: 11px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .05em;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.verdict.safe .v-lvl { background: var(--mint); color: var(--mint-ink); }
.verdict.caution .v-lvl { background: var(--volt); color: #1d1300; }
.verdict.danger .v-lvl { background: var(--flare); color: var(--flare-ink); }
.stat .k, .card .k, .earn .k, .kv dt { font-size: 10.5px; font-weight: 700; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.stat .v, .card .v { font-family: var(--sans); font-stretch: var(--semi); font-weight: 700; font-size: 16px; }
.kv dd { font-family: var(--sans); font-stretch: var(--semi); font-weight: 600; }
.panel-h { font-size: 12px; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .04em; padding: 14px 16px 10px; }
.panel-h small { text-transform: none; font-stretch: 100%; letter-spacing: 0; font-weight: 500; }
.ring { background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--s3) 0); }
.ring b { font-family: var(--sans); font-stretch: var(--wide); font-weight: 800; }
.score h3 { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.ck { border-radius: 0; transform: rotate(45deg); width: 13px; height: 13px; margin: 3px 0 0 2px; font-size: 0; }
.ck.ok { background: var(--mint); } .ck.warn { background: var(--volt); } .ck.bad { background: var(--flare); } .ck.info, .ck.na { background: var(--s3); }
.dist-bar { border-radius: 0; gap: 2px; height: 10px; }
.pbar, .pbar i { border-radius: 0; }
.pbar i { background: var(--mint); }
.tinput { border-radius: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); border: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.tinput:focus-within { box-shadow: inset 0 0 0 1px var(--mint); }
.tinput input { font-family: var(--sans); font-stretch: var(--wide); font-weight: 800; font-size: 26px; }
.presets .chip { font-family: var(--sans); font-weight: 700; }
.thbanner { border-radius: 0; background: var(--mint); color: var(--mint-ink); font-weight: 600; }
.thbanner .linkbtn { color: var(--mint-ink); text-decoration: underline; }
.tstatus.ok { background: var(--mint); color: var(--mint-ink); } .tstatus.err { background: var(--flare); color: var(--flare-ink); }
.tstatus.ok a, .tstatus.err a { color: inherit; }
.taxchip { color: var(--volt); font-weight: 700; }
.pname { font-stretch: var(--wide); font-weight: 900; text-transform: uppercase; font-size: 22px; }
.toast { border-radius: 0; font-weight: 700; background: var(--mint); color: var(--mint-ink); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.toast.err { background: var(--flare); color: var(--flare-ink); }
.foot { border-top: 1px solid var(--line); }
kbd { border-radius: 0; }

/* ---------- responsive desk ---------- */
@media (max-width: 1439px) {
  .market-home { grid-template-columns: minmax(0, 1fr) 320px; }
  .market-home .sightings { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .market-home { grid-template-columns: minmax(0, 1fr); }
  .market-home .callouts-sidebar { display: none; }
}
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .market-home .sightings { display: none; }
  .top { height: calc(54px + env(safe-area-inset-top)); }
  .logo-t { font-size: 14px; }
  .panel { clip-path: none; box-shadow: none; border-top: 1px solid var(--line); }
  .mrow .mr-top b { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: 14.5px; }
  .mrow img, .mrow .ic { border-radius: 0; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
  .mr-num b { font-stretch: var(--semi); font-weight: 800; }
  .tabbar { background: rgb(5 8 7 / .96); backdrop-filter: blur(10px); }
  .tabbar a.on { color: var(--mint); }
  #trade { border-radius: 0; clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); }
  .tp-title h1 { font-size: 24px; }
  .tp-price .p { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .spark.spin, .loading::before, .nl-row.fresh .nl-new .spark { animation: none !important; } }
/* market table responds to its own width, not the window */
@media (min-width: 761px) { .market-home #main { container-type: inline-size; container-name: market; } }
@media (max-width: 760px) { .market-home { align-items: stretch; } .market-home #main { width: 100%; } }
.market-home #main table { min-width: 0; }
.market-home #main th:last-child, .market-home #main td:last-child { position: static; box-shadow: none; background: transparent; }
td.c-act { white-space: nowrap; width: 1%; }
#main .tk { min-width: 0; }
#main .read { min-width: 0; }
#main .read .phr { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#main .tk-sub { white-space: nowrap; }
@container market (max-width: 1240px) { .c-liq { display: none; } }
@container market (max-width: 1120px) { .c-hold { display: none; } #main .tk-name .nm { display: none; } }
@container market (max-width: 1000px) { .c-who { display: none; } #main .tk-sub .soc { display: none; } #main .read .phr { max-width: 140px; } }
.nl-safe .read { max-width: 100%; }
.nl-safe .phr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-main { min-width: 0; }
.nl-row .tk-sub { white-space: nowrap; overflow: hidden; }
.tab.on .dim, .tab.on span { color: rgb(0 20 13 / .62); }
@media (min-width: 761px) { .sheet-x, .grabber { display: none !important; } }

/* ---------- share cards ---------- */
.share-btn { margin-top: 10px; height: 32px; font-size: 11px; }
.share-btn .spark { margin-right: 2px; }
.hero-who { margin-top: 10px; }
.share-sheet { display: flex; flex-direction: column; gap: 14px; }
.share-img { width: 100%; height: auto; display: block; box-shadow: 0 0 0 1px var(--line-2); }
.share-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-actions .big { grid-column: 1 / -1; }
.share-note { margin: 0; color: var(--ink-3); font-size: 12px; }
.modal:has(.share-sheet) { width: min(640px, 100%); }
@media (max-width: 760px) { .share-actions { grid-template-columns: 1fr 1fr; } .share-btn { margin-top: 0; } }
@media (max-width: 760px) { .tp-price { flex-wrap: wrap; } .share-btn { width: 100%; margin-top: 6px; height: 40px; } }
.share-trade { width: 100%; margin-top: 8px; height: 40px; }
.share-fmt { align-self: flex-start; }
.share-stage { display: flex; justify-content: center; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 10px; }
.share-stage.story .share-img { width: auto; max-height: 52vh; }
.share-stage.square .share-img { width: auto; max-height: 52vh; }
.lbl.top10 { background: var(--ink); color: var(--bg); }

/* ---------- audit fixes ---------- */
/* tab rows: one line, scroll, soft fade at the edge instead of wrapping or cutting mid-word */
.toolbar .tabs, #cTabs, #ttabs { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
.toolbar .tabs::-webkit-scrollbar, #cTabs::-webkit-scrollbar, #ttabs::-webkit-scrollbar { display: none; }
.toolbar .tab { flex: none; }
.toolbar { flex-wrap: nowrap; }
.toolbar > .btn, .toolbar > #tfilter { flex: none; }
/* the Sightings column needs ≥1600px so the market keeps every key column */
@media (max-width: 1599px) {
  .market-home { grid-template-columns: minmax(0, 1fr) 320px; }
  .market-home .sightings { display: none; }
}
@media (min-width: 1600px) { .tab[data-tab="radar"] { display: none; } }
@media (max-width: 760px) { .wide-only { display: none; } }
