/* The UI font (2026-10-16, the owner's pick): Plus Jakarta Sans, SIL OFL 1.1 (static/PlusJakartaSans-OFL.txt), one
   variable file for every weight (CSS is not templated, so the URL carries ?v=1: bump it if the file ever changes). Every page loads this sheet, so the face is declared here once; the font variables
   (--font, --sans, --q-font, --mono, --q-mono) name it first, the old stacks behind it. */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/static/term/PlusJakartaSans-Variable.ttf?v=1') format('truetype');
  font-weight: 200 800; font-style: normal; font-display: swap; }
/* Numbers are set in it too (the owner's call): tabular figures keep every column of digits aligned. */
body { font-variant-numeric: tabular-nums; }
/* The wordmark's face (the owner's call, 2026-10-23: the log-in dialog's "smell", everywhere the brand is written). The same
   file the dialog loads (web/privy-auth/src/dialog.css), so a page pays for it once. */
@font-face { font-family: 'Clash Display'; src: url('/static/term/ClashDisplay-Semibold.ttf?v=1') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap; }
/* the login dialog's text face, used by the first-login screen (fetched only when that screen shows) */
@font-face { font-family: 'Inter Tight'; src: url('/static/term/InterTight-500.ttf?v=1') format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/static/term/InterTight-600.ttf?v=1') format('truetype'); font-weight: 600 800; font-display: swap; }

/* ═══════════════════════════════════════════════════════════════════════════
   site-nav.css — the ONE header + status bar, shared by every Smell page.
   Ships with site-nav.js. Load it LAST (it must win over a page's own CSS).

   WHY THIS FILE EXISTS
   --------------------
   Before this, 13 pages carried 8 different navs and 6 brand variants — three
   of them still said "Hood Index / TEST" or "hood safety", and three pages
   (ranked / smart_track / backtest) had no header at all. The header is now
   built in exactly one place; a page opts in with one <script> tag.

   TWO RULES THAT LOOK ODD BUT ARE LOAD-BEARING
   --------------------------------------------
   1. Every custom property is `--q`-prefixed and declared ON THE COMPONENT
      ROOTS (.qnav / .qstatus / .sm-backdrop / .page-toast), never on :root.
      Most pages ship their own CSS with their own --bg/--text/--border; a
      :root block here would either lose to them or silently repaint them.
      Self-contained tokens = the header looks identical on all 13 pages.

   2. The ROOT classes are namespaced (.qnav, .qstatus) but the INNER class
      names are NOT (.brand, .nmenu, .net-dot, .balchip, .acc-drop …). That is
      deliberate: terminal.js binds these elements by ID and then writes
      classes onto them — `setLive()` does `el.className = 'net-dot on'`,
      clobbering whatever else was there (terminal.js:1496). Renaming the
      inner classes would break the flagship. Scoping by ancestor gives us
      collision-safety without touching what terminal.js writes.

   Values are lifted verbatim from terminal.css (the redesign block, ~940-1500)
   so the shared header is pixel-identical to the terminal's.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── tokens (mirrors terminal.css :root, --q-prefixed + component-scoped) ── */
.qnav,
.qstatus,
.sm-backdrop,
.ob-backdrop,
.qnav-drawer,
.page-toast,
.sp-toast,
.qft-stack,
.qa-ring {
  /* Each --q-* now DERIVES from the root theme var (terminal.css :root, live-overridden by
     appearance.js) with the original value as the fallback. Two wins: (1) the nav + every popover
     follows the active theme automatically — including ones created LATER (search modal, dropdowns),
     which a per-element JS mirror could never reach; (2) pages that don't define the root vars
     (smart-track, ranked…) still get the original palette from the fallbacks. */
  --q-bg: var(--bg, #0a0a0e);
  --q-surface: var(--surface, #13151f);
  --q-surface-2: var(--surface-2, #1e1e2b);
  --q-surface-3: var(--surface-3, #26283a);
  --q-surface-4: var(--surface-4, #2a2c39);
  --q-border: var(--border, #2a2c39);
  --q-border-soft: var(--border-soft, rgba(255, 255, 255, .07));
  --q-text: var(--text, #eef0f4);
  --q-text-dim: var(--text-dim, #c2c6d2);
  --q-text-mute: var(--text-mute, #8b8b9f);
  --q-accent: var(--accent, #d4e34c);
  --q-accent-soft: var(--accent-soft, rgba(212, 227, 76, .14));
  --q-up: var(--up, #26a69a);
  --q-down: var(--down, #f23645);
  --q-down-bg: var(--down-bg, rgba(242, 54, 69, .12));
  --q-dev: color-mix(in srgb, #8b5cf6 75%, var(--text, #eef0f4));
  --q-close: color-mix(in srgb, var(--warn, #f59e0c) 60%, var(--text, #eef0f4));
  --q-err: color-mix(in srgb, var(--down, #f23645) 70%, var(--text, #eef0f4));
  --q-font: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --q-mono: 'Plus Jakarta Sans', "SF Mono", ui-monospace, SFMono-Regular, "IBM Plex Mono", Menlo, Consolas, monospace;
}

/* ═══ header ═══════════════════════════════════════════════════════════════
   On the terminal, .qnav is .app's first in-flow child and lands in the 54px
   grid row by AUTO-PLACEMENT — .app names its rows but never assigns .nav a
   grid-area (terminal.css:957). So DOM order is the placement. site-nav.js
   inserts at firstChild for exactly this reason; don't append.
   On every other page it's a normal 54px flex bar at the top of the flow. */
.qnav {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 54px;
  padding: 0 16px;
  background: var(--q-bg);
  border-bottom: 1px solid var(--q-border-soft);
  font-family: var(--q-font);
}
.qnav *,
.qnav *::before,
.qnav *::after { box-sizing: border-box; }

.qnav .brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; letter-spacing: -.02em;
  color: var(--q-text); text-decoration: none; white-space: nowrap;
}
/* The mark is the whole logo (static/logo.png carries its own ground and corners, design/logo/render.py), the same in every
   theme; the box only sizes it. */
.qnav .brand .mk {
  width: 34px; height: 34px; border-radius: 9px;
  overflow: hidden; display: flex; flex: none;
}
.qnav .brand .mk img { width: 100%; height: 100%; object-fit: contain; margin: auto; }
/* The wordmark: lowercase "smell" in the dialog's face, in the theme's text colour. */
.qnav .brand .wm, .qnav-drawer .qd-brand .wm, .qstatus .brandlbl.wm {
  font-family: 'Clash Display', var(--q-font); font-weight: 600; letter-spacing: -.025em; line-height: 1; text-transform: none;
}
.qnav .brand .wm { font-size: 25px; margin-top: -2px; }

/* ── nav menu ── */
.qnav .nmenu { display: flex; align-items: center; gap: 2px; }
.qnav .nmenu > a,
.qnav .nmenu > .qm-wrap > .qm-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 7px;
  color: var(--q-text-mute); font-family: var(--q-font); font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.qnav .nmenu > a:hover,
.qnav .nmenu > a.on,
.qnav .nmenu > .qm-wrap > .qm-btn:hover,
.qnav .nmenu > .qm-wrap.open > .qm-btn,
.qnav .nmenu > .qm-wrap.on > .qm-btn {
  color: var(--q-text); background: var(--q-surface-2);
}
.qnav .nmenu .qm-cv { transition: transform .16s; flex: none; }
.qnav .nmenu .qm-wrap.open .qm-cv { transform: rotate(180deg); }

/* ── "Analyse" dropdown ── */
.qnav .qm-wrap { position: relative; display: flex; }
.qnav .qm-drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 216px;
  background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  padding: 6px; display: none; z-index: 70;
}
.qnav .qm-wrap.open .qm-drop { display: block; }
.qnav .qm-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  color: var(--q-text-dim); font-size: 13.5px; text-decoration: none; white-space: nowrap;
}
.qnav .qm-drop a:hover { background: var(--q-surface-2); color: var(--q-text); }
.qnav .qm-drop a.on { color: var(--q-accent); }
.qnav .qm-drop a svg {
  width: 16px; height: 16px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.qnav .grow { flex: 1; }

/* ── search ── */
.qnav .search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; width: 246px;
  min-width: 38px; overflow: hidden; /* gives way first when the bar is full (shrinks to its icon) */
  background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 9px;
  color: var(--q-text-mute); font-size: 12.5px; white-space: nowrap; cursor: pointer;
}
.qnav .search:hover { border-color: var(--q-accent-soft); color: var(--q-text-dim); }
.qnav .search svg { width: 14px; height: 14px; flex: none; }
.qnav .search span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qnav .search kbd {
  margin-left: auto; background: var(--q-surface-2); border: 1px solid var(--q-border);
  border-radius: 5px; padding: 1px 6px; font: 600 11px/1.4 var(--q-mono); color: var(--q-text-mute); /* 11px floor */
}

/* ── header gear: display settings anyone can change (theme, scale, font, logo shape), signed in or not.
      The panel is a .qn-drop (same card, same phone placement as the bell's). ── */
.qnav .setwrap { position: relative; flex: none; }
.qnav .set-btn svg, .set-drop .qn-head svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 721px) { .set-drop { width: 340px; } }
.set-drop .sd-body { padding: 2px 16px 16px; max-height: min(70vh, 560px); overflow-y: auto; }
.set-drop .sd-k { margin: 12px 0 7px; font: 600 11px/1 var(--q-font); letter-spacing: .06em; text-transform: uppercase; color: var(--q-text-mute); }
.set-drop .sd-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.set-drop .sd-theme, .set-drop .sd-pill {
  border: 1px solid var(--q-border); color: var(--q-text-dim); cursor: pointer; text-decoration: none; transition: .14s;
  font-family: var(--q-font);
}
.set-drop .sd-theme { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; font-size: 12.5px; font-weight: 500; }
.set-drop .sd-theme:hover, .set-drop .sd-pill:hover { color: var(--q-text); border-color: var(--q-accent-soft); }
.set-drop .sd-theme.on { color: var(--q-text); border-color: var(--q-accent); }
.set-drop .sd-sw { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .14); }
.set-drop .sd-sw i { width: 8px; height: 8px; border-radius: 50%; }
.set-drop .sd-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.set-drop .sd-pill { padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; }
.set-drop .sd-pill.on { color: var(--q-bg); background: var(--q-accent); border-color: var(--q-accent); }
.set-drop .sd-note { margin-top: 14px; font-size: 11.5px; line-height: 1.4; color: var(--q-text-mute); font-family: var(--q-font); }
/* the account section (privy mode): name, e-mail, Telegram, trading permission — drawn by site-nav.js accountMount */
.set-drop .sd-acct { font-family: var(--q-font); }
.set-drop .acct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--q-border-soft); }
.set-drop .acct-row:first-child { border-top: 0; }
.set-drop .acct-lbl { min-width: 0; }
.set-drop .acct-k { font-size: 12.5px; font-weight: 500; color: var(--q-text); }
.set-drop .acct-v { margin-top: 2px; font-size: 11.5px; color: var(--q-text-mute); overflow-wrap: anywhere; }
.set-drop .acct-btn { flex: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--q-border); background: transparent; color: var(--q-text-dim); font: 500 12px var(--q-font); cursor: pointer; text-decoration: none; transition: .14s; }
.set-drop .acct-btn:hover { color: var(--q-text); border-color: var(--q-accent-soft); }
.set-drop .acct-btn:disabled { opacity: .5; cursor: default; }
.set-drop .acct-note { margin: 0 0 6px; font-size: 11.5px; line-height: 1.4; color: var(--q-text-mute); }
.set-drop .acct-err { margin: 0 0 6px; font-size: 11.5px; line-height: 1.4; color: var(--q-err); }
.set-drop .acct-err-retry { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ── Smell Points chip (left of the bell): the season's SP and the streak flame; links to /points ── */
.qnav .sp-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; box-sizing: border-box; border-radius: 9px; background: var(--q-surface); border: 1px solid var(--q-border); color: var(--q-text-dim); font: 600 12.5px var(--q-font); text-decoration: none; white-space: nowrap; transition: .14s; }
.qnav .sp-chip:hover { color: var(--q-text); border-color: var(--q-accent-soft); }
.qnav .sp-chip .sp-fl { display: inline-flex; align-items: center; gap: 3px; color: #f0a24a; }
.qnav .sp-chip.sp-cold .sp-fl { color: var(--q-text-mute); }
.qnav .sp-chip .sp-fl svg { width: 13px; height: 13px; }
.qnav .sp-chip .sp-fl b { font-weight: 600; }
@media (max-width: 820px) { .qnav .sp-chip { padding: 0 8px; gap: 6px; font-size: 12px; } }

/* ── notifications bell (immediately left of search; ★ favourites removed) ── */
.qnav .bellwrap { position: relative; flex: none; }
.qnav .bell-btn {
  width: 36px; height: 34px; display: grid; place-items: center; position: relative;
  background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 9px;
  color: var(--q-text-mute); cursor: pointer; transition: .14s;
}
.qnav .bell-btn:hover { color: var(--q-text-dim); border-color: var(--q-accent-soft); }
.qnav .bell-btn.on { color: #4bb69f; border-color: rgba(75, 182, 159, .5); }
.qnav .bell-btn svg { width: 17px; height: 17px; }
/* perfect circle: fixed square + 50% radius, digit centred by grid (never padding-skewed) */
.qnav .bell-badge {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0;
  border-radius: 50%; background: #4bb69f; color: #04231d; box-sizing: content-box;
  font: 700 10px/1 var(--q-font); display: grid; place-items: center; border: 2px solid var(--q-bg);
}
.qnav .bell-badge.hide { display: none; }

.qn-drop {
  position: absolute; top: calc(100% + 9px); right: 0; width: 380px; max-width: calc(100vw - 24px);
  background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3);
  overflow: hidden; z-index: 70; opacity: 0; transform: translateY(-6px) scale(.98);
  pointer-events: none; transition: .16s cubic-bezier(.2, .7, .2, 1); font-family: var(--q-font);
}
.qn-drop.open { opacity: 1; transform: none; pointer-events: auto; }
.qn-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px 12px; }
.qn-head svg { width: 18px; height: 18px; color: var(--q-text-dim); }
.qn-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--q-text); }
.qn-clr {
  margin-left: auto; font-size: 11.5px; color: var(--q-text-mute); background: transparent;
  border: 1px solid var(--q-border); border-radius: 7px; padding: 5px 10px; cursor: pointer;
  transition: .14s; font-family: var(--q-font);
}
.qn-clr:hover:not(:disabled) { color: #4bb69f; border-color: rgba(75, 182, 159, .45); }
.qn-clr:disabled { opacity: .35; cursor: default; }
.qn-div { height: 1px; background: var(--q-border-soft); }
/* ~5 rows tall, scroll for the rest — notifications are never deleted */
.qn-list { max-height: 322px; overflow-y: auto; overscroll-behavior: contain; }
.qn-list::-webkit-scrollbar { width: 8px; }
.qn-list::-webkit-scrollbar-thumb { background: var(--q-surface-3); border-radius: 8px; }

.qn-row {
  display: flex; gap: 11px; padding: 12px 15px; cursor: pointer; position: relative;
  border-bottom: 1px solid var(--q-border-soft); transition: background .12s;
}
.qn-row:last-child { border-bottom: 0; }
.qn-row:hover { background: var(--q-surface-2); }
.qn-row.read { opacity: .62; }
.qn-row.read:hover { opacity: 1; }
.qn-row.unread::before {
  content: ""; position: absolute; left: 6px; top: 20px; width: 5px; height: 5px;
  border-radius: 50%; background: #4bb69f;
}
.qn-ic { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; margin-top: 1px; }
.qn-ic svg { width: 16px; height: 16px; }
.qn-ic.buy { background: rgba(75, 182, 159, .14); color: #4bb69f; }
.qn-ic.sell { background: rgba(196, 107, 100, .16); color: #c46b64; }
.qn-ic.tp { background: rgba(38, 166, 154, .12); color: var(--q-up); }
.qn-ic.sl { background: var(--q-down-bg); color: var(--q-down); }
.qn-ic.copy { background: var(--q-accent-soft); color: var(--q-accent); }
.qn-ic.alert_above { background: rgba(38, 166, 154, .14); color: #26a69a; }
.qn-ic.alert_below { background: rgba(242, 54, 69, .14); color: #f23645; }
.qn-ic.alert_cross { background: rgba(250, 115, 21, .14); color: #fa7315; }
.qn-ic.alert_dev { background: rgba(139, 92, 246, .16); color: #a78bfa; }
.qn-ic.alert_bundle { background: rgba(242, 54, 69, .14); color: #f23645; }
.qn-ic.sp_streak { background: rgba(250, 115, 21, .14); color: #fa7315; }
.qn-ic.sp_tasks { background: var(--q-accent-soft); color: var(--q-accent); }
.qn-ic.sp_alloc, .qn-ic.sp_level { background: rgba(75, 182, 159, .14); color: #4bb69f; }
.qn-ic.sp_invite { background: rgba(139, 92, 246, .16); color: #a78bfa; }
.qn-ic.sp_wallet_change { background: var(--q-surface-2, rgba(255,255,255,.06)); color: var(--q-text-dim, #b4b4c4); }
.qn-ic.alert_removed { background: var(--q-surface-2, rgba(255,255,255,.06)); color: var(--q-text-mute, #8b8b9f); }
.qn-body { flex: 1; min-width: 0; }
.qn-title { font-size: 13px; font-weight: 600; color: var(--q-text); display: flex; align-items: center; gap: 7px; }
.qn-title .sym { font-weight: 700; }
.qn-line { font-size: 12px; line-height: 1.5; color: var(--q-text-mute); margin-top: 3px; }
.qn-line b { color: var(--q-text-dim); font-weight: 600; }
.qn-line .mc { font-family: var(--q-mono); color: var(--q-text-dim); }
.qn-line .pos { color: var(--q-up); font-weight: 600; }
.qn-line .neg { color: var(--q-down); font-weight: 600; }
.qn-time { flex: none; font-size: 11px; color: var(--q-text-mute); margin-top: 1px; }
.qn-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 46px 24px 52px; text-align: center; }
.qn-empty svg { width: 44px; height: 44px; color: var(--q-surface-4); margin-bottom: 4px; }
.qn-empty .t1 { font-size: 15px; color: var(--q-text-dim); }
.qn-empty .t2 { font-size: 12.5px; line-height: 1.5; color: var(--q-text-mute); max-width: 260px; }

/* ── live chip ── */
.qnav .net-chip {
  flex: none; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--q-surface-2); border: 1px solid var(--q-border);
  border-radius: 999px; padding: 5px 11px;
  font: 600 10.5px/1 var(--q-mono); letter-spacing: .06em; color: var(--q-text-dim);
}
/* the owner, 2026-10-27: the connection state lives in the footer (every page has one, #statusBar); the header's
   copy was the same "Stable" twice on one screen */
.qnav .net-chip { display: none; }
/* terminal.js setLive() writes `className = 'net-dot'` / `'net-dot on'` — these
   two selectors must keep matching exactly what it writes. */
.qnav .net-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--q-text-mute); transition: background .2s;
}
.qnav .net-dot.on { background: var(--q-up); box-shadow: 0 0 7px var(--q-up); }

/* ── account bar ── */
.qnav .acctbar { display: flex; align-items: center; gap: 10px; }
.qnav .connect-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--q-surface-2); border: 1px solid var(--q-border); border-radius: 999px;
  padding: 8px 14px; color: var(--q-text-dim); font-weight: 600; font-size: 13px; cursor: pointer;
  white-space: nowrap; flex: none; /* one line beside the gear (2026-10-21) */
}
.qnav .connect-btn:hover { border-color: var(--q-surface-3); color: var(--q-text); }

.qnav .balchip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--q-surface-2); border: 1px solid var(--q-border); border-radius: 999px;
  padding: 7px 12px 7px 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.qnav .balchip:hover,
.qnav .balchip.on { border-color: var(--q-surface-3); background: var(--q-surface-3); }
.qnav .balchip .bc-eth { flex: none; }
.qnav .balchip .amt {
  font-family: var(--q-mono); font-size: 13.5px; font-weight: 700;
  color: var(--q-text); letter-spacing: -.01em;
}
.qnav .balchip .cur { font-size: 11.5px; color: var(--q-text-mute); font-weight: 600; }
.qnav .balchip .cv { color: var(--q-text-mute); transition: transform .18s; }
.qnav .balchip.on .cv { transform: rotate(180deg); }

.qnav .acc-av {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: var(--q-surface-2); border: 1px solid var(--q-border);
  display: grid; place-items: center; color: var(--q-text-dim); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.qnav .acc-av:hover,
.qnav .acc-av.on { border-color: var(--q-surface-3); background: var(--q-surface-3); color: var(--q-text); }

/* ── wallets dropdown (#wcDrop) ── */
.qnav .wc-drop {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 250px;
  background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  padding: 6px; display: none; z-index: 60; cursor: default;
  font-size: 12.5px; text-align: left;
}
.qnav .wc-drop.open { display: block; }
.qnav .wcap { display: flex; align-items: center; padding: 8px 10px 7px; font-size: 11px; color: var(--q-text-mute); }
.qnav .wcap .tot { margin-left: auto; font-family: var(--q-mono); color: var(--q-text-dim); font-weight: 600; }
.qnav .wfoot { margin-top: 5px; border-top: 1px solid var(--q-border-soft); padding-top: 4px; }
.qnav .wt-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid var(--q-border); font-size: 12.5px; cursor: pointer; border-radius: 6px;
}
.qnav .wt-row:hover { background: rgba(255, 255, 255, .03); }
.qnav .wc-drop .wt-row:last-of-type { border-bottom: none; }
.qnav .wt-name { color: var(--q-text); font-weight: 600; white-space: nowrap; }
.qnav .wt-addr { color: var(--q-text-mute); white-space: nowrap; font-size: 11px; }
.qnav .wt-bal { margin-left: auto; padding-left: 12px; color: var(--q-text); font-weight: 700; white-space: nowrap; }
.qnav .wt-copy {
  display: inline-flex; align-items: center; flex: none; padding: 3px; margin-left: -3px;
  color: var(--q-text-mute); background: none; border: 0; border-radius: 4px; cursor: pointer;
}
.qnav .wt-copy:hover { color: var(--q-text); background: var(--q-accent-soft); }
.qnav .wt-copy.copied { color: var(--q-up); }
/* the paper wallet D1 (site-nav.js walletRowsHtml): no address, no copy; one line says why */
.qnav .wt-row.wt-paper { cursor: default; }
.qnav .wt-paper-note { padding: 0 10px 8px; color: var(--q-text-mute); font-size: 11px; line-height: 1.35; }
.qnav .wt-cb {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 16px; height: 16px; margin: 0; border-radius: 5px;
  border: 1.5px solid #3a3d4e; background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background .12s, border-color .12s;
}
.qnav .wt-cb:checked { background: var(--q-up); border-color: var(--q-up); }
.qnav .wt-cb:checked::after {
  content: ""; width: 4px; height: 8px;
  border: solid #06231e; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px);
}
.qnav .wt-cb:disabled { opacity: .5; cursor: default; }
.qnav .wt-err { animation: qwtErr 1.4s ease; }
@keyframes qwtErr { 0%, 100% { background: transparent; } 22% { background: rgba(240, 80, 80, .16); } }
.qnav .wt-empty { padding: 16px 12px; color: var(--q-text-mute); font-size: 12.5px; line-height: 1.5; text-align: center; }

/* ── account dropdown (#accDrop) ── */
.qnav .acc-drop {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px;
  background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  padding: 6px; display: none; z-index: 60; cursor: default; text-align: left;
}
.qnav .acc-drop.open { display: block; }
.qnav .acc-head { padding: 11px 11px 10px; }
.qnav .acc-k { font-size: 11px; color: var(--q-text-mute); margin-bottom: 3px; }
.qnav .acc-v {
  font-size: 16px; font-weight: 700; color: var(--q-text);
  display: flex; align-items: center; gap: 8px; letter-spacing: -.01em;
}
.qnav .acc-v .d { width: 7px; height: 7px; border-radius: 50%; background: var(--q-up); flex: none; }
.qnav .acc-divide { height: 1px; background: var(--q-border-soft); margin: 3px 5px; }
.qnav .acc-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 8px;
  color: var(--q-text-dim); font-size: 13.5px; cursor: pointer; text-decoration: none;
}
.qnav .acc-item:hover { background: var(--q-surface-2); color: var(--q-text); }
.qnav .acc-item svg {
  width: 18px; height: 18px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.qnav .acc-sp { display: none; margin-left: auto; padding-left: 12px; color: var(--q-text-mute); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qnav .acc-item.out { color: var(--q-text-mute); }
.qnav .acc-item.out:hover { color: var(--q-down); background: var(--q-down-bg); }

/* ═══ status bar ═══════════════════════════════════════════════════════════
   On the terminal this is .app's last child → grid row 4 by auto-placement
   (terminal.css:499 also names it `grid-area: status`, which we keep so the
   footer can never wander into the main area). Elsewhere it is a normal
   bottom-of-flow bar; `margin-top:auto` pins it down on short pages when the
   host page makes <body> a flex column (site-nav.js does that for us). */
.qstatus {
  box-sizing: border-box;
  grid-area: status;
  display: flex; align-items: center; gap: 16px;
  height: 42px; padding: 0 16px;
  background: var(--q-bg); border-top: 1px solid var(--q-border-soft);
  font-family: var(--q-font); font-size: 12px; color: var(--q-text-mute);
}
.qstatus .si { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.qstatus .si b { color: var(--q-text-dim); font-weight: 600; }
.qstatus .mono { font-family: var(--q-mono); }
.qstatus .grow { flex: 1; }
/* setLive() writes `className = 'st-dot'` / `'st-dot on'` — keep matching. */
.qstatus .st-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--q-text-mute); transition: background .2s;
}
.qstatus .st-dot.on { background: var(--q-up); box-shadow: 0 0 6px var(--q-up); }
.qstatus .st-eth { color: var(--q-text-dim); font-weight: 600; }
.qstatus .brandlbl { color: var(--q-text-mute); }
.qstatus .brandlbl.wm { font-size: 15px; }
.qstatus .st-socials { display: inline-flex; align-items: center; gap: 13px; }
.qstatus .st-socials a {
  color: var(--q-text-mute); display: inline-flex; align-items: center; transition: color .12s;
}
.qstatus .st-socials a:hover { color: var(--q-text); }

/* ═══ search modal ═══ (body-level; #searchModal is unique across the app) */
.sm-backdrop {
  position: fixed; inset: 0; z-index: 1100; background: rgba(8, 9, 13, .62);
  backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center;
  padding: 88px 24px 24px; animation: q-sm-fade .14s ease-out; font-family: var(--q-font);
}
@keyframes q-sm-fade { from { opacity: 0; } to { opacity: 1; } }
.sm-backdrop .sm-pop {
  width: min(860px, 100%); max-height: calc(100vh - 120px);
  background: var(--q-surface); border: 1px solid var(--q-border); border-radius: 14px;
  box-shadow: 0 24px 80px -20px #000, 0 6px 18px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; overflow: hidden;
  animation: q-sm-in .18s cubic-bezier(.2, .8, .2, 1);
}
@keyframes q-sm-in { from { opacity: 0; transform: scale(.97) translateY(-6px); } to { opacity: 1; transform: none; } }
.sm-backdrop .sm-hd { padding: 14px 16px; border-bottom: 1px solid var(--q-border-soft); }
.sm-backdrop .sm-q {
  display: flex; align-items: center; gap: 10px; background: var(--q-surface-2);
  border: 1px solid var(--q-border); border-radius: 10px; padding: 10px 14px; color: var(--q-text-mute);
}
.sm-backdrop .sm-ic { width: 14px; height: 14px; flex: none; }
.sm-backdrop .sm-input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--q-text); font: 500 13px/1 var(--q-font);
}
.sm-backdrop .sm-input::placeholder { color: var(--q-text-mute); }
.sm-backdrop .sm-q kbd {
  font: 500 10px/1 var(--q-mono); color: var(--q-text-mute);
  border: 1px solid var(--q-border); border-radius: 4px; padding: 3px 6px;
}
.sm-backdrop .sm-tabs {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  border-bottom: 1px solid var(--q-border-soft);
}
.sm-backdrop .sm-chip {
  display: inline-flex; align-items: center; background: var(--q-surface-2);
  border: 1px solid var(--q-border); border-radius: 999px; padding: 6px 12px;
  font: 600 11.5px/1 var(--q-font); color: var(--q-text-dim); white-space: nowrap;
}
.sm-backdrop .sm-chip.on { background: var(--q-accent-soft); color: var(--q-accent); border-color: transparent; }
.sm-backdrop .sm-tbl-wrap { overflow: auto; min-height: 0; }
.sm-backdrop .sm-list { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.sm-backdrop .sm-empty { padding: 22px; text-align: center; color: var(--q-text-mute); font: 500 12px/1 var(--q-mono); }
.sm-backdrop .sm-card {
  display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 11px;
  cursor: pointer; background: var(--q-surface-2); border: 1.5px solid transparent;
  transition: background .12s ease, border-color .12s ease;
}
.sm-backdrop .sm-card:hover { background: var(--q-surface-3); }
.sm-backdrop .sm-av2 { position: relative; flex: none; width: 40px; height: 40px; }
.sm-backdrop .sm-av-box {
  width: 40px; height: 40px; border-radius: 11px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--q-surface-3), var(--q-surface-2));
  border: 1px solid var(--q-border-soft);
}
.sm-backdrop .sm-av-box img { width: 100%; height: 100%; object-fit: cover; }
.sm-backdrop .sm-av-letter { font: 700 16px/1 var(--q-font); color: var(--q-text-dim); }
.sm-backdrop .sm-av-proto {
  position: absolute; right: -4px; top: -4px; font: 700 8px/1 var(--q-mono); color: var(--q-accent);
  background: var(--q-surface-3); border: 1.5px solid var(--q-surface); border-radius: 5px; padding: 2px 3px;
}
.sm-backdrop .sm-id { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sm-backdrop .sm-id1 { display: flex; align-items: center; gap: 2px; font: 700 13.5px/1 var(--q-font); color: var(--q-text); }
.sm-backdrop .sm-id-q { color: var(--q-text-mute); font-weight: 600; }
.sm-backdrop .sm-new {
  margin-left: 6px; padding: 1px 5px; border: 1px solid #1fb6c9; border-radius: 3px;
  color: #1fb6c9; font-size: 9px; font-weight: 700; letter-spacing: .5px;
}
.sm-backdrop .sm-addr { color: var(--q-text-mute); font-size: 11px; }
.sm-backdrop .sm-mut { color: var(--q-text-mute); font-weight: 400; }
/* History (the empty box, GMGN's layout): a head per list with its bin, and the wallet rows — time since the visit, the
   address with a copy button, the balance the wallet page showed. */
.sm-backdrop .sm-hist-h { display: flex; align-items: center; gap: 6px; padding: 10px 4px 3px; font: 600 13px/1 var(--q-font); color: var(--q-text-dim); }
.sm-backdrop .sm-hist-clr, .sm-backdrop .sm-copy { display: inline-flex; align-items: center; padding: 3px; border: 0; border-radius: 5px; background: transparent; color: var(--q-text-mute); cursor: pointer; }
.sm-backdrop .sm-hist-clr:hover, .sm-backdrop .sm-copy:hover { color: var(--q-text); background: var(--q-surface-3); }
.sm-backdrop .sm-copy.done { color: var(--q-up); }
.sm-backdrop .sm-hist-clr svg { width: 14px; height: 14px; }
.sm-backdrop .sm-copy svg { width: 12px; height: 12px; }
.sm-backdrop .sm-id2 { display: flex; align-items: center; gap: 8px; }
.sm-backdrop .sm-ago { color: var(--q-text-dim); font: 600 11px/1 var(--q-mono); }
.sm-backdrop .sm-mx { margin-left: auto; display: flex; align-items: center; gap: 20px; flex: none; }
.sm-backdrop .sm-m { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.sm-backdrop .sm-m i { font: 600 9.5px/1 var(--q-font); font-style: normal; color: var(--q-text-mute); letter-spacing: .07em; }
.sm-backdrop .sm-m b { font: 700 12.5px/1 var(--q-mono); color: var(--q-text); font-variant-numeric: tabular-nums; }
.sm-backdrop .sm-m b.up { color: var(--q-up); }
.sm-backdrop .sm-m b.down { color: var(--q-down); }
.sm-backdrop .sm-m b.sm-mut { color: var(--q-text-mute); font-weight: 400; }
.sm-backdrop .sm-m:nth-child(1) { min-width: 92px; }
.sm-backdrop .sm-m:nth-child(2) { min-width: 60px; }
.sm-backdrop .sm-m:nth-child(3) { min-width: 80px; }
.sm-backdrop .sm-m:nth-child(4) { min-width: 80px; }
.sm-backdrop .sm-m:nth-child(5) { min-width: 80px; }

/* Phones (the owner, 2026-10-27: "search'e tıklayınca yazılar iç içe giriyor"): the five metric columns kept their
   desktop min-widths, so the name column shrank to nothing and the symbol, tax, venue, address and pool count drew
   over the numbers. On a phone the card is two floors: logo + who it is on top, the numbers below in equal columns. */
@media (max-width: 640px) {
  .sm-backdrop { padding: 56px 10px 10px; }
  .sm-backdrop .sm-pop { max-height: calc(100dvh - 66px); }
  .sm-backdrop .sm-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 11px; row-gap: 9px; padding: 10px 12px; }
  .sm-backdrop .sm-id { min-width: 0; }
  .sm-backdrop .sm-id1 { flex-wrap: wrap; row-gap: 5px; }
  .sm-backdrop .sm-id1 .sm-tax { margin-left: 8px; }
  .sm-backdrop .sm-id2 { min-width: 0; overflow: hidden; white-space: nowrap; }
  .sm-backdrop .sm-id2 .sm-addr { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sm-backdrop .sm-mx { grid-column: 1 / -1; margin-left: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px;
    padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .06); }
  .sm-backdrop .sm-m, .sm-backdrop .sm-m:nth-child(n) { min-width: 0; align-items: flex-start; }
  .sm-backdrop .sm-m b { font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .sm-backdrop .sm-q kbd { display: none; } /* no Esc key on a phone */
}

/* ═══ toast ═══ (pageToast() creates #pageToast on demand and appends to body) */
.page-toast {
  position: fixed; top: 18px; left: 50%; transform: translate(-50%, -12px); z-index: 200;
  display: flex; align-items: center; gap: 9px;
  background: var(--q-surface-3); border: 1px solid var(--q-border); border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55); padding: 10px 15px;
  font-family: var(--q-font); font-size: 13.5px; font-weight: 600; color: var(--q-text);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.page-toast.show { opacity: 1; transform: translate(-50%, 0); }
.page-toast .pt-ic {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--q-up); color: #06231e; flex: none;
}
.page-toast.rm .pt-ic { background: var(--q-surface-4); color: var(--q-text-dim); }
.page-toast.err .pt-ic { background: var(--q-down); color: #fff; }
.page-toast .pt-ic svg {
  width: 11px; height: 11px; stroke: currentColor; stroke-width: 3.2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.page-toast .pt-sub { color: var(--q-text-mute); font-weight: 500; font-family: var(--q-mono); font-size: 12px; }

/* ═══ "+N SP" (spToast() in site-nav.js): bottom right, above the status bar, 3 s ═══ */
.sp-toast {
  position: fixed; right: 16px; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  display: flex; align-items: center; gap: 9px;
  background: var(--q-surface-3); border: 1px solid var(--q-border); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55); padding: 10px 15px 10px 11px;
  font-family: var(--q-font); color: var(--q-text); text-decoration: none; white-space: nowrap;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.sp-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.sp-toast .spt-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(240, 162, 74, .16); color: #f0a24a; flex: none; }
.sp-toast .spt-ic svg { width: 15px; height: 15px; fill: currentColor; }
.sp-toast .spt-n { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-toast .spt-sub { color: var(--q-text-mute); font-size: 12px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .sp-toast { transition: opacity .2s ease; transform: none; } }

/* ── narrow screens: shed the search box first, then the nav labels.
      The account bar and the brand never collapse — they are the two things a
      user needs at every width. ── */
@media (max-width: 1600px) { .qnav .search kbd { display: none; } }
@media (max-width: 1500px) {
  .qnav { gap: 12px; }
  .qnav .connect-btn .cb-via { display: none; }
}
@media (max-width: 1180px) {
  .qnav .search { width: 150px; }
  .qnav .search kbd { display: none; }
}
@media (max-width: 900px) {
  .qnav .search span { display: none; }
  .qnav .search { width: auto; padding: 0 10px; }
  .qnav .net-chip { display: none; }
  .qnav .balchip .cur { display: none; }
}
@media (max-width: 820px), (pointer: coarse) and (orientation: portrait) and (max-width: 1100px) {
  /* Below this the four nav items cannot coexist with the account bar. The bar
     wins — but the nav is no longer lost: the hamburger (shown here) opens a
     drawer carrying the full NAV, so every destination stays reachable. */
  .qnav .nmenu { display: none; }
  .qnav .qnav-burger { display: grid; } /* .qnav-scoped so it beats the base display:none regardless of source order */
  /* the SP chip moves into the account menu's Points row: beside the balance it pushed the wordmark out (the owner, 2026-11-24) */
  .qnav .sp-chip { display: none !important; } /* spPaint shows it with an inline style */
  .qnav .acc-sp:not(:empty) { display: inline; }
  /* One phone header on every page (the owner, 2026-11-24): at 390 px the account and ☰ buttons ran off the screen —
     every button keeps its size and the wordmark is what gives way. */
  #qnavBar { height: 44px; gap: 4px; padding: 0 8px; }
  #qnavBar > * { flex-shrink: 0; }
  #qnavBar .brand { flex: 0 1 auto; min-width: 0; overflow: hidden; gap: 6px; margin-right: auto; }
  #qnavBar .brand .mk { width: 28px; height: 28px; border-radius: 7px; }
  #qnavBar .brand .wm { font-size: 19px; }
  #qnavBar .bell-btn, #qnavBar .search, #qnavBar .acc-av, #qnavBar .qnav-burger { width: 30px; height: 30px; min-width: 30px; padding: 0; border-radius: 9px; display: grid; place-items: center; }
  #qnavBar .qnav-burger { margin-left: 0; }
  #qnavBar .bell-btn svg, #qnavBar .search svg, #qnavBar .acc-av svg, #qnavBar .qnav-burger svg { width: 17px; height: 17px; }
  #qnavBar .balchip { height: 30px; padding: 0 7px; gap: 4px; font-size: 13px; }
  #qnavBar .acctbar { gap: 4px; }
}
@media (max-width: 720px) {
  .qnav .brand .wm { font-size: 22px; } /* the wordmark stays on phones (the owner, 2026-10-27), a size smaller */
  .qstatus .brandlbl { display: none; }
}
@media (max-width: 430px) {
  /* Measured at 375px: the status bar ran to 385 and scrolled every page sideways —
     dropping the brand label at 720 was not enough on a phone. The ETH price stays on
     every page (the owner, 2026-11-24); the X and e-mail links go instead (the menu and
     /press carry them). */
  .qstatus { gap: 10px; padding: 0 12px; }
  .qstatus .st-socials { display: none; }
}
@media (max-width: 440px) {
  /* The pages a phone shows at 100 % (wallet, smart lists, ranked, honeypot…; the terminal's are 85 %): brand + bell +
     search + settings + Log in + ☰ with 12px gaps came to 417 px on a 390 px phone, the ☰ half off the screen. */
  .qnav { gap: 6px; padding-left: 12px; padding-right: 10px; }
  .qnav .brand { gap: 7px; }
}
@media (max-width: 370px) { .qnav { gap: 4px; padding-left: 10px; padding-right: 8px; } .qnav .connect-btn { padding-left: 11px; padding-right: 11px; } }
/* Phones: anchor the notifications dropdown to the VIEWPORT, not to the bell. Right-anchored to the
   bell it slid off the LEFT edge on a phone — the bell isn't at the screen edge, and a 100vw-24px
   panel is wider than the gap from the bell to the left. `fixed` + symmetric margins centres it under
   the header and also escapes .qnav's `overflow-x: clip`. */
@media (max-width: 720px) {
  .qn-drop {
    position: fixed;
    top: 60px; /* clears the 54px bar */
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
  .qn-list { max-height: 70vh; }
}
/* Last line of defence: these bars are single rows that must never widen the page,
   whatever a future control adds to them. .qstatus needed this as much as .qnav — it
   is the one that actually escaped. */
.qnav,
.qstatus { max-width: 100vw; overflow-x: clip; }

/* ═══ mobile hamburger + off-canvas drawer (≤820px) ════════════════════════════════════════════
   Fills the mobile-nav gap: below 820 the .nmenu is hidden, so the burger (shown in the 820 block
   above) opens this drawer, built once from NAV in site-nav.js. The burger is display:none on
   desktop and the drawer is an inert fixed overlay until .open → the header is byte-identical at
   desktop widths on all 13 pages. Tokens are the --q- set (declared on .qnav-drawer). */
.qnav-burger {
  display: none; width: 38px; height: 38px; flex: none; margin-left: 2px;
  place-items: center; border: 1px solid var(--q-border); border-radius: 9px;
  background: var(--q-surface-2); color: var(--q-text-dim); cursor: pointer;
}
.qnav-burger svg { width: 20px; height: 20px; }

.qnav-drawer { position: fixed; inset: 0; z-index: 1200; visibility: hidden; font-family: var(--q-font); }
.qnav-drawer.open { visibility: visible; }
/* strictly mobile: never let a drawer left .open survive a resize up to desktop (burger is hidden there) */
@media (min-width: 821px) and (pointer: fine), (min-width: 821px) and (pointer: none), (min-width: 821px) and (orientation: landscape), (min-width: 1101px) { .qnav-drawer { display: none; } }
.qnav-drawer .qd-bd { position: absolute; inset: 0; background: rgba(3, 3, 6, .6); opacity: 0; transition: opacity .28s; }
.qnav-drawer.open .qd-bd { opacity: 1; }
.qnav-drawer .qd-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 82%; max-width: 320px;
  display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--q-surface-2), var(--q-surface));
  border-left: 1px solid var(--q-border); box-shadow: -24px 0 60px -14px rgba(0, 0, 0, .7);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.qnav-drawer.open .qd-panel { transform: none; }
.qnav-drawer .qd-panel::-webkit-scrollbar { width: 0; }

.qnav-drawer .qd-top { display: flex; align-items: center; gap: 11px; padding: calc(14px + env(safe-area-inset-top)) 14px 14px; border-bottom: 1px solid var(--q-border-soft); flex: none; }
.qnav-drawer .qd-brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 15.5px; letter-spacing: -.01em; color: var(--q-text); text-decoration: none; }
.qnav-drawer .qd-mk { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; display: flex; flex: none; }
.qnav-drawer .qd-mk img { width: 100%; height: 100%; object-fit: contain; margin: auto; }
.qnav-drawer .qd-brand .wm { font-size: 22px; margin-top: -2px; }
.qnav-drawer .qd-x { margin-left: auto; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--q-border); border-radius: 10px; background: var(--q-surface-2); color: var(--q-text-mute); cursor: pointer; }
.qnav-drawer .qd-x svg { width: 17px; height: 17px; }

.qnav-drawer .qd-nav { padding: 9px 10px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; }
.qnav-drawer .qd-sec { padding: 15px 12px 7px; font-family: var(--q-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--q-text-mute); }
.qnav-drawer .qd-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--q-text-dim); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.qnav-drawer .qd-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--q-border); border-radius: 9px; background: var(--q-surface-2); color: var(--q-text-mute); }
.qnav-drawer .qd-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qnav-drawer .qd-item.qd-sub { font-size: 13.5px; font-weight: 500; color: var(--q-text-mute); }
.qnav-drawer .qd-item.qd-sub .qd-ic { width: 28px; height: 28px; background: transparent; border: 0; }
.qnav-drawer .qd-item.qd-sub .qd-ic svg { width: 16px; height: 16px; }
.qnav-drawer .qd-item:active { background: var(--q-surface-2); }
.qnav-drawer .qd-item.on { color: var(--q-accent); background: var(--q-accent-soft); }
.qnav-drawer .qd-item.on .qd-ic { color: var(--q-accent); border-color: rgba(212, 227, 76, .35); background: rgba(212, 227, 76, .14); }
.qnav-drawer .qd-item.on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--q-accent); }

@media (prefers-reduced-motion: reduce) {
  .qnav *, .qstatus *, .sm-backdrop, .sm-backdrop *, .page-toast {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Clipboard CA chip ────────────────────────────────────────────────────────
   A token address copied ANYWHERE lands mid-header as an avatar + symbol + MC
   chip; one click opens its page (site-nav.js `caScan`). The slot is empty and
   borderless until something resolves, so an idle/denied header is unchanged.

   Placement: after .nmenu, before .grow — so it sits between the menu and the
   search box and is pushed left by .grow as the viewport narrows, instead of
   being absolutely centred where it would collide with the search input. */
.ca-slot { display: flex; align-items: center; }
.ca-slot:empty { display: none; }
/* ONE pill holds the link AND the ✕. They used to be two sibling pills, each with its own border
   and lime glow — the seam between them read as two separate chips (user, 2026-07-17). The wrapper
   owns border/background/glow/animation; the children are transparent and only divide with a hair
   rule. caRender re-creates the wrapper per chip, so the slide-in still replays. */
.ca-pill {
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, color-mix(in srgb, #c6f24e 7%, var(--q-surface)), var(--q-surface));
  border: 1px solid rgba(198, 242, 78, .45); border-radius: 999px;
  box-shadow: 0 4px 18px rgba(198, 242, 78, .10), 0 2px 10px rgba(0, 0, 0, .5);
  overflow: hidden; /* clips the children's hover tint to the pill's own rounding */
  animation: ca-in .3s cubic-bezier(.2, .9, .3, 1.25) both;
}
.ca-pill:hover { border-color: #c6f24e; }
@keyframes ca-in { from { transform: translateY(-22px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .ca-pill { animation: none } }
.ca-chip {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 5px 9px 5px 9px; background: transparent; border: 0;
}
.ca-chip:hover { background: rgba(198, 242, 78, .07); }
.ca-chip .cc-clip { color: var(--q-text-mute); display: flex; flex: none; }
.ca-chip .cc-av { width: 22px; height: 22px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--q-surface-3); border: 1px solid var(--q-border); }
.ca-chip .cc-noimg { display: grid; place-items: center; font: 700 11px var(--q-sans, system-ui); color: var(--q-text); }
/* The chip's own text is WHITE — it is the thing being offered, not a caption
   (user's call 2026-07-17). Only the MC rides muted beside it. */
.ca-chip .cc-sym { font: 700 13px var(--q-sans, system-ui); color: var(--q-text); white-space: nowrap; }
.ca-chip .cc-addr { font: 500 12px var(--q-mono, ui-monospace, monospace); color: #ffffff; }
.ca-chip .cc-mc { font: 500 11px var(--q-mono, ui-monospace, monospace); color: var(--q-text-mute); white-space: nowrap; }
.ca-chip .cc-go { font: 600 10.5px var(--q-sans, system-ui); color: #c6f24e;
  background: rgba(198, 242, 78, .12); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.ca-chip .cc-spin { width: 12px; height: 12px; flex: none; border: 2px solid #33362c;
  border-top-color: #c6f24e; border-radius: 50%; animation: ca-sp 1s linear infinite; }
@keyframes ca-sp { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .ca-chip .cc-spin { animation: none } }
/* ✕ lives INSIDE the pill: no border of its own, just a hair divider. */
.ca-x {
  display: flex; align-items: center; background: transparent; border: 0;
  border-left: 1px solid rgba(255, 255, 255, .08);
  padding: 0 9px; color: var(--q-text-mute); cursor: pointer;
}
.ca-x:hover { color: var(--q-text); background: rgba(255, 255, 255, .05); }
.ca-chip:focus-visible, .ca-x:focus-visible { outline: 2px solid #c6f24e; outline-offset: -2px; }

/* Narrow viewports: the menu + search already own the row — drop the chip rather
   than squeeze it (the copied CA is still one search away). */
@media (max-width: 1120px) { .ca-slot { display: none; } }

/* ── Wallet Tracker notification deck (canonical home) ───────────────────────────────────────────
   terminal.js renders this GLOBAL toast (tracked-wallet trade + trade-verdict cards) on ANY page it
   loads — explorer / pulse / terminal — but its styles used to live only in terminal.css, so on
   pages without it (the explorer) the deck rendered UNSTYLED: full-size, unconstrained avatar images
   (the giant pink blocks) stacked at the bottom. It belongs in the shared nav CSS, loaded on every
   page that has the nav. The four terminal-palette variables are pinned on #wtnDeck (and inherited by
   its .wtn-* children) so the deck looks identical no matter the host page's palette — the explorer
   uses --tp/--teal/--red, not --text/--up/--down. */
#wtnDeck { --text:#eef0f4; --surface:#13151f; --up:#26a69a; --down:#f23645;
  position: fixed; top: 38px; left: 50%; transform: translateX(-50%); width: 328px; z-index: 4000; pointer-events: none; }
#wtnDeck .wtn-bar, #wtnDeck .wtn-card { pointer-events: auto; }
.wtn-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; height: 22px; margin-bottom: 8px; }
.wtn-count { font: 600 11px var(--sans); color: var(--ts); }
.wtn-clear { font: 600 11px var(--sans); color: var(--tm); background: rgba(255,255,255,.06); border: 1px solid var(--hair); border-radius: 20px; padding: 3px 10px; cursor: pointer; }
.wtn-clear:hover { color: var(--text); }
.wtn-stack { position: relative; }
.wtn-card { position: absolute; top: 0; left: 0; right: 0; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 34px rgba(0,0,0,.55); transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .24s; }
.wtn-card.out { opacity: 0; transform: translateX(34px) scale(.96) !important; }
.wtn-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wtn-hd b { font: 500 12px var(--sans); color: var(--ts); }
.wtn-x { color: var(--tm); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; }
.wtn-x:hover { color: var(--text); }
.wtn-main { display: flex; gap: 11px; align-items: flex-start; }
.wtn-av { width: 46px; height: 46px; border-radius: 11px; flex: none; position: relative; display: flex; align-items: center; justify-content: center; font: 700 15px var(--sans); color: #fff; }
.wtn-av img { width: 100%; height: 100%; border-radius: 11px; object-fit: cover; }
.wtn-vb { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 2px solid var(--surface); display: flex; align-items: center; justify-content: center; font-size: 8px; }
.wtn-info { flex: 1; min-width: 0; }
.wtn-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wtn-nm { flex: 1; min-width: 0; font: 600 15px var(--sans); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtn-l2 { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 13px var(--sans); white-space: nowrap; }
.wtn-emo { font-size: 14px; flex: none; }
/* the token and the wallet on an alert are links: the token opens its page, the wallet its analysis (bindWtnDeck) */
.wtn-av[data-act], .wtn-nm[data-act], .wtn-who { cursor: pointer; }
.wtn-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wtn-nm[data-act]:hover, .wtn-who:hover .wtn-wn { text-decoration: underline; text-underline-offset: 2px; }
/* A tracked wallet's fomo / pump.fun picture over its emoji, in the emoji's box (trkFace). Here, not in terminal.css: the
   notification deck shows on pages without it (/explorer, 2026-10-31), where the picture drew at its own size, page-wide. */
.has-pfp { position: relative; display: inline-block; width: 1.25em; height: 1.25em; line-height: 1.25em; text-align: center; vertical-align: middle; }
.has-pfp > .trk-pfp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--surface); }
.has-pfp:has(> .trk-pfp) { color: transparent; overflow: hidden; border-radius: 50%; } /* the emoji under a loaded picture is not seen; a dropped picture shows it again */
.wtn-wn { color: var(--ts); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtn-dot { color: var(--tm); flex: none; }
.wtn-act { flex: none; }
.wtn-act.b { color: var(--up); } .wtn-act.s { color: var(--down); }
.wtn-venue { flex: none; background: rgba(255,255,255,.06); border-radius: 20px; padding: 3px 9px; font: 600 11px var(--sans); color: var(--ts); }
.wtn-mc { font: 12px var(--sans); color: var(--tm); margin-top: 5px; }
/* Trade-verdict card ('fill' kind) — same deck, same shell; only the status chip is tinted. */
.wtn-card.wtn-fill { border-left: 3px solid var(--hair); }
.wtn-card.wtn-fill.confirmed { border-left-color: var(--up); }
.wtn-card.wtn-fill.reverted { border-left-color: var(--down); }
.wtn-card.wtn-fill.pending { border-left-color: var(--tm); }
.wtn-fill.confirmed .wtn-venue { background: rgba(79,184,155,.16); color: var(--up); }
.wtn-fill.reverted .wtn-venue { background: rgba(242,54,69,.16); color: var(--down); }
.wtn-fill.pending .wtn-venue { background: rgba(255,255,255,.06); color: var(--ts); }
.wtn-ft { display: flex; margin: 11px -14px -12px; border-top: 1px solid var(--hair); }
.wtn-b { flex: 1; text-align: center; padding: 11px; font: 600 13px var(--sans); color: #fff; cursor: pointer; background: none; border: 0; }
.wtn-b:hover { background: rgba(255,255,255,.05); }
.wtn-b:first-child:not(:only-child) { border-right: 1px solid var(--hair); }
/* A desktop's alert is one line, in the pin row (the owner, 2026-10-29, option A of the mockups): the 328 × ~210px card
   sat over the token bar and the top of the chart. Same markup (terminal.js wtnCardHtml), laid out in a row: the logo,
   the symbol, the wallet · Bought $X, MC, View Token · View Tx, ✕; the count and Clear all beside it. Older alerts
   still peek behind the front one. A phone keeps the card. */
@media (min-width: 821px) and (pointer: fine), (min-width: 821px) and (pointer: none), (min-width: 821px) and (orientation: landscape), (min-width: 1101px) {
  /* in the header row (top 8px), over the menu if it must (the owner, 2026-10-29: "menüyle çakışması problem değil");
     centred on the screen; Clear all is one small button hung on its left (the menu side), outside the layout, so it never pushes the line off centre */
  /* centred by margin, not left:50% (that capped its width at half the screen: "SPE…" at 1280) */
  #wtnDeck { top: 8px; left: 0; right: 0; margin: 0 auto; transform: none; width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 8px; }
  /* behind every card and menu the page opens (a thesis 160–170, menus 40+), still over the token bar and the chart:
     what the user hovered or opened comes first (the owner, 2026-10-29) */
  #wtnDeck { z-index: 35; }
  #wtnDeck .wtn-stack { order: 1; flex: 0 1 auto; min-width: 0; }
  #wtnDeck .wtn-bar { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin: 0 8px 0 0; height: auto; } /* on the menu side, not over the search */
  #wtnDeck .wtn-count { display: none; }
  #wtnDeck .wtn-clear { display: block; padding: 4px 9px; font-size: 11px; line-height: 1.2; white-space: nowrap; background: var(--surface); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
  #wtnDeck .wtn-bar:empty { display: none; }
  #wtnDeck .wtn-stack > .wtn-card:first-child { position: relative; }
  #wtnDeck .wtn-stack > .wtn-card:not(:first-child):not(.out) { transform: translateY(3px) scale(.985) !important; } /* the older ones peek 3px, not 9: below is the token bar */
  #wtnDeck .wtn-card { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 5px 0 6px; border-radius: 11px; white-space: nowrap; }
  #wtnDeck .wtn-hd, #wtnDeck .wtn-main, #wtnDeck .wtn-info, #wtnDeck .wtn-toprow { display: contents; }
  #wtnDeck .wtn-hd b, #wtnDeck .wtn-card:not(.wtn-fill) .wtn-venue { display: none; }
  #wtnDeck .wtn-av { order: 1; width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
  #wtnDeck .wtn-av img { border-radius: 7px; }
  #wtnDeck .wtn-nm { order: 2; flex: 0 1 auto; max-width: 140px; font-size: 14px; font-weight: 700; }
  #wtnDeck .wtn-venue { order: 3; }
  #wtnDeck .wtn-l2 { order: 4; margin: 0; flex: 0 1 auto; min-width: 0; }
  #wtnDeck .wtn-wn { max-width: 220px; } /* the wallet's name whole ("OkayRichPu…" at 92px); only a very long one is cut */
  #wtnDeck .wtn-mc { order: 5; margin: 0; font-size: 13px; flex: none; }
  #wtnDeck .wtn-ft { order: 6; margin: 0 0 0 4px; padding-left: 10px; border-top: 0; border-left: 1px solid var(--hair); gap: 6px; flex: none; }
  #wtnDeck .wtn-b { flex: none; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; background: rgba(255,255,255,.06); }
  #wtnDeck .wtn-b:hover { background: rgba(255,255,255,.11); }
  #wtnDeck .wtn-b:first-child:not(:only-child) { border-right: 0; }
  #wtnDeck .wtn-x { order: 7; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; padding: 0; }
  #wtnDeck .wtn-x:hover { background: rgba(255,255,255,.06); }
  /* on the token page (renderWtnDeck adds .in-favs): inside the 38px pin row, 28px tall, its top and bottom clear of the
     row's edges: top = the 54px menu + (38 − 28) / 2 (the owner, 2026-11-07) */
  #wtnDeck.in-favs { top: 59px; }
  #wtnDeck.in-favs .wtn-card { height: 28px; gap: 8px; padding: 0 3px 0 4px; border-radius: 9px; box-shadow: none; }
  #wtnDeck.in-favs .wtn-av { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
  #wtnDeck.in-favs .wtn-av img { border-radius: 6px; }
  #wtnDeck.in-favs .wtn-nm { font-size: 13px; }
  #wtnDeck.in-favs .wtn-l2, #wtnDeck.in-favs .wtn-mc { font-size: 12.5px; }
  #wtnDeck.in-favs .wtn-ft { padding-left: 8px; gap: 4px; }
  #wtnDeck.in-favs .wtn-b { padding: 2px 8px; border-radius: 6px; font-size: 12px; }
  #wtnDeck.in-favs .wtn-x { width: 22px; height: 22px; font-size: 12px; }
  #wtnDeck.in-favs .wtn-stack > .wtn-card:not(:first-child):not(.out) { transform: translateY(2px) scale(.985) !important; }
  #wtnDeck.in-favs .wtn-bar { top: 14px; } /* Clear all on the front card's middle, not the stack's (the older cards add height below) */
}

/* Phones: an alert is the desktop's one line in the pin row, the fomo trending toast the same line under it — the 160px
   card covered the token's name, price, MC and tax, and the toast sat on top of it (the owner, 2026-11-14). View Tx is
   left out (no room); View Token and ✕ stay; several alerts show a "3 ✕" badge that clears them all. */
@media (max-width: 820px), (pointer: coarse) and (orientation: portrait) and (max-width: 1100px) {
  /* phone: an alert is one line in the pin row (the desktop's), not a 160px card over the token's header */
  #wtnDeck { top: 59px; left: 8px; right: 8px; width: auto; transform: none; margin: 0; z-index: 35; }
  #wtnDeck { display: flex; align-items: center; gap: 6px; }
  #wtnDeck .wtn-stack { order: 1; flex: 1 1 auto; min-width: 0; }
  /* more than one alert: Clear all is a badge after the line, the count and a ✕ (the owner, 2026-11-14) */
  #wtnDeck .wtn-bar { order: 2; flex: none; margin: 0; height: auto; }
  #wtnDeck .wtn-bar:empty, #wtnDeck .wtn-count { display: none; }
  #wtnDeck .wtn-clear { display: grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 9px; font-size: 0; white-space: nowrap;
    background: var(--surface); box-shadow: 0 6px 18px rgba(0,0,0,.45); position: relative; }
  #wtnDeck .wtn-clear::before { content: attr(data-n) " \2715"; font: 700 12px var(--sans); color: var(--text); }
  #wtnDeck .wtn-clear::after { content: ''; position: absolute; inset: -8px -4px; }
  #wtnDeck .wtn-stack > .wtn-card:first-child { position: relative; }
  #wtnDeck .wtn-stack > .wtn-card:not(:first-child):not(.out) { transform: translateY(2px) scale(.985) !important; }
  #wtnDeck .wtn-card { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 3px 0 4px; border-radius: 9px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
  #wtnDeck .wtn-hd, #wtnDeck .wtn-main, #wtnDeck .wtn-info, #wtnDeck .wtn-toprow { display: contents; }
  #wtnDeck .wtn-hd b, #wtnDeck .wtn-card:not(.wtn-fill) .wtn-venue { display: none; }
  #wtnDeck .wtn-av { order: 1; width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
  #wtnDeck .wtn-av img { border-radius: 6px; }
  #wtnDeck .wtn-vb { display: none; }
  #wtnDeck .wtn-nm { order: 2; flex: 0 0 auto; max-width: 84px; font-size: 13px; font-weight: 700; }
  #wtnDeck .wtn-venue { order: 3; }
  #wtnDeck .wtn-l2 { order: 4; margin: 0; flex: 1 1 auto; min-width: 0; gap: 4px; font-size: 12px; overflow: hidden; }
  #wtnDeck .wtn-who { display: inline-flex; flex: 0 1 auto; min-width: 34px; max-width: 120px; overflow: hidden; }
  #wtnDeck .wtn-wn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #wtnDeck .wtn-l2 .wtn-emo { display: none; } /* the wallet's name gets the room */
  #wtnDeck .wtn-l2 > :not(.wtn-who) { flex: none; } /* the amount is never cut: only the wallet's name gives way */
  #wtnDeck .wtn-mc { order: 5; margin: 0; font-size: 12px; flex: none; }
  #wtnDeck .wtn-ft { order: 6; margin: 0; padding: 0; border: 0; flex: none; }
  #wtnDeck .wtn-ft .wtn-b:not(:first-child) { display: none; }
  #wtnDeck .wtn-b { flex: none; padding: 3px 7px; border-radius: 6px; font-size: 12px; background: rgba(255,255,255,.08); border: 0 !important; }
  #wtnDeck .wtn-x { order: 7; width: 26px; height: 28px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; padding: 0; position: relative; }
  #wtnDeck .wtn-x::before { content: ''; position: absolute; inset: -8px -4px; }
}
/* ── Alert ring (static/term-alerts.js): the toast of a ring, on every page that has the nav (mockup 2.2). Colours
   come from the page's theme through the --q-* tokens above. ── */
.qa-ring { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 4050; display: flex; flex-direction: column; gap: 10px; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 78px); pointer-events: none; font-family: var(--q-font); }
.qa-toast { pointer-events: auto; overflow: hidden; background: var(--q-surface); color: var(--q-text); border: 1px solid var(--q-border); border-left: 3px solid var(--q-down); border-radius: 12px; box-shadow: 0 18px 46px rgba(0, 0, 0, .6); animation: qa-in .18s ease-out; }
.qa-toast.up { border-left-color: var(--q-up); }
.qa-toast.dev { border-left-color: var(--q-dev); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qa-toast { animation: none; } }
.qa-toast button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.qa-toast button:focus-visible { outline: 2px solid var(--q-accent); outline-offset: -2px; }
.qa-th { display: flex; align-items: center; gap: 8px; padding: 6px 6px 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--q-text-mute); }
.qa-when { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.qa-when.late { color: var(--q-close); }
.qa-x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--q-text-mute); }
.qa-x:hover { color: var(--q-text); background: var(--q-surface-2); }
.qa-x svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.qa-tb { display: flex; gap: 11px; padding: 4px 12px 10px; }
.qa-av { position: relative; flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; color: #fff; font: 700 13px var(--q-font); }
.qa-av i { font-style: normal; }
.qa-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qa-txt { min-width: 0; }
.qa-tt { font-size: 14.5px; font-weight: 700; }
.qa-tt .dn { color: var(--q-down); }
.qa-tt .up { color: var(--q-up); }
.qa-tt .dev { color: var(--q-dev); }
.qa-ts { margin-top: 2px; font-size: 12px; color: var(--q-text-mute); }
.qa-ts b { color: var(--q-text-dim); font-weight: 600; }
.qa-err { padding: 0 12px 8px; font-size: 12px; color: var(--q-err); }
.qa-tf { display: flex; border-top: 1px solid var(--q-border); }
.qa-tf button { flex: 1; height: 36px; font-size: 12.5px; font-weight: 600; color: var(--q-text); }
.qa-tf button + button { border-left: 1px solid var(--q-border); color: var(--q-text-dim); }
.qa-tf button:hover { background: var(--q-surface-2); }
@media (max-width: 620px) {
  .qa-ring { top: 8px; left: 16px; right: 16px; transform: none; width: auto; max-width: none; }
  .qa-x, .qa-tf button { min-height: 34px; min-width: 34px; }
}

/* ── fomo trending toast (site-nav.js fomoTrendToast): top centre under the header, compact, on every page ── */
.qft-stack { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 9000; display: flex; flex-direction: column;
  gap: 6px; width: min(400px, calc(100vw - 24px)); pointer-events: none; font-family: var(--q-font); }
.qft { pointer-events: auto; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: center;
  padding: 7px 8px 7px 10px; border-radius: 11px; background: var(--q-surface); border: 1px solid var(--q-border);
  box-shadow: inset 3px 0 0 var(--q-accent), 0 10px 30px rgba(0, 0, 0, .5); cursor: pointer;
  animation: qft-in .2s ease-out; transition: opacity .18s, transform .18s; }
.qft.out { opacity: 0; transform: translateY(-8px); }
@keyframes qft-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qft { animation: none; transition: none; } }
.qft-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: var(--q-surface-3); color: var(--q-text); font: 700 12px var(--q-font); }
.qft-tx { min-width: 0; }
.qft-tx b { display: block; font: 700 12.5px var(--q-font); color: var(--q-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qft-tx small { display: flex; align-items: center; gap: 4px; font: 11px var(--q-mono); color: var(--q-text-mute); margin-top: 1px; }
.qft-n { color: var(--q-accent); font-weight: 600; }
.qft-ch { width: 11px; height: 11px; }
.qft-act { display: flex; gap: 2px; }
.qft-act button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none;
  color: var(--q-text-mute); cursor: pointer; padding: 0; }
.qft-act button svg { width: 13px; height: 13px; }
.qft-act button:hover { background: var(--q-surface-3); color: var(--q-text); }
.qft-act button:focus-visible { outline: 2px solid var(--q-accent); outline-offset: 1px; }

/* Phones: the popups' close controls are a thumb's size (44pt is Apple's floor; the pages render at 0.85, so 52px) and
   search gets a Cancel beside its field (site-nav.js wireMobilePopups) */
@media (max-width: 820px), (pointer: coarse) and (orientation: portrait) and (max-width: 1100px) {
  .qnav-drawer .qd-x { width: 52px; height: 52px; border-radius: 14px; }
  .qnav-drawer .qd-x svg { width: 20px; height: 20px; }
  .st-x, .hmap-x { min-width: 52px; min-height: 52px; display: grid; place-items: center; }
  .sm-backdrop .sm-q { gap: 10px; }
  .sm-backdrop .sm-cancel { flex: none; margin-right: -6px; min-height: 44px; padding: 0 10px; border: 0; background: transparent;
    color: var(--q-accent, var(--accent)); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
}
@media (min-width: 821px) and (pointer: fine), (min-width: 821px) and (pointer: none), (min-width: 821px) and (orientation: landscape), (min-width: 1101px) { .sm-backdrop .sm-cancel { display: none; } }

/* Phones: the fomo trending toast's ✕ is a thumb's size, and a swipe sideways dismisses it (site-nav.js) */
@media (max-width: 820px), (pointer: coarse) and (orientation: portrait) and (max-width: 1100px) {
  .qft .qft-x, .qft .qft-bell { min-width: 30px; min-height: 28px; display: inline-grid; place-items: center; position: relative; }
  .qft .qft-x::after, .qft .qft-bell::after { content: ''; position: absolute; inset: -8px -4px; } /* a thumb's reach on a one-line toast */
  .qft { touch-action: pan-y; transition: translate .18s ease-out, opacity .18s ease-out; }
  /* the fomo trending toast: the same one line, right under it */
  .qft-stack { top: 97px; left: 8px; right: 8px; width: auto; transform: none; gap: 4px; }
  .qft { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; padding: 0 2px 0 6px; height: 30px; border-radius: 9px; }
  .qft-av { width: 20px; height: 20px; font-size: 10px; }
  .qft-tx { display: flex; align-items: baseline; gap: 8px; }
  .qft-tx b { font-size: 12.5px; }
  .qft-tx small { margin: 0; flex: none; }
}

/* Phones: the chart's cards in one sheet (site-nav.js wireMobilePopups; prototype designs/mobile-sheets-20261027):
   two detents set by height (the action bar is on screen at both), a grip, ‹ n / m ›, ✕, the dimmed chart behind */
.msheet, .msheet-bd { display: none; }
@media (max-width: 820px), (pointer: coarse) and (orientation: portrait) and (max-width: 1100px) {
  .msheet-bd:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1190; background: rgba(3, 4, 8, .42); transition: opacity .22s ease-out; }
  .msheet.hd-float .msheet-hd { position: absolute; top: 24px; right: 0; z-index: 2; min-height: 0; padding: 0 6px 0 0; }
  .msheet.hd-float .msheet-hd .msheet-pager { display: none; }
  .msheet.fill .msheet-body { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
  .msheet.fill .msheet-body > [data-msheet-fill] { flex: 1; min-height: 0; display: flex !important; flex-direction: column; }
  .msheet-bd.peek { background: transparent; pointer-events: none; } /* a card pointing at the chart (the tape's trade): the chart stays readable */
  .msheet:not([hidden]) { display: flex; }
  .msheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; flex-direction: column; background: var(--q-surface, #14141a);
    border-radius: 20px 20px 0 0; border-top: 1px solid var(--q-border, #2a2b33); box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
    padding-bottom: env(safe-area-inset-bottom, 0px); touch-action: none; will-change: transform; color: var(--q-text, #f3f3f6); font-family: var(--q-font, inherit); }
  .msheet.anim { transition: transform .26s cubic-bezier(.2, .8, .2, 1), height .26s cubic-bezier(.2, .8, .2, 1); }
  .msheet-grab { flex: none; height: 24px; display: grid; place-items: center; cursor: grab; }
  .msheet-grab span { width: 38px; height: 5px; border-radius: 3px; background: #4a4b55; }
  .msheet-hd { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 6px 4px 12px; min-height: 48px; }
  .msheet-pager { margin-right: auto; display: flex; align-items: center; gap: 2px; color: var(--q-text-mute, #a0a2ad); font: 600 13px/1 inherit; font-variant-numeric: tabular-nums; }
  .msheet-pager[hidden] { display: none; }
  .msheet-ib { width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--q-text-mute, #a0a2ad); display: grid; place-items: center; cursor: pointer; }
  .msheet-ib:active { background: rgba(255, 255, 255, .06); }
  .msheet-ib:disabled { opacity: .3; }
  .msheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 0 12px 8px; }
  .msheet-body.slide-l { animation: msheet-l .22s ease-out; }
  .msheet-body.slide-r { animation: msheet-r .22s ease-out; }
  @keyframes msheet-l { from { transform: translateX(36px); opacity: .4; } to { transform: none; opacity: 1; } }
  @keyframes msheet-r { from { transform: translateX(-36px); opacity: .4; } to { transform: none; opacity: 1; } }
  /* the terminal's own card, moved in: no more floating */
  .msheet-body > * {
    position: static !important; display: block !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important;
    transform: none !important; opacity: 1 !important; visibility: visible !important; translate: none !important; scale: none !important; animation: none !important;
    width: auto !important; max-width: none !important; max-height: none !important; overflow: visible !important; margin: 0 !important;
    box-shadow: none !important; border: 0 !important; background: transparent !important; pointer-events: auto !important; white-space: normal !important; }
  .msheet-body > .cbt { font-size: 14px; line-height: 1.7; padding: 2px 4px; }
  .msheet-body > #tkLogoPop { width: 100% !important; height: auto !important; border-radius: 14px; }
  .msheet-body > #spPop > *, .msheet-body > #tkAboutPop > * { width: auto !important; max-width: none !important; }
  /* menus moved in: a list of thumb-sized rows */
  .msheet-body > .ctx-menu > *, .msheet-body > .smart-menu > *, .msheet-body > .dp-menu > *, .msheet-body > #pMenu > * { min-height: 46px; display: flex; align-items: center; font-size: 15px; }
  .msheet-acts { flex: none; display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--q-border, #2a2b33); }
  .msheet-acts[hidden] { display: none; }
  .msheet-btn { flex: 1; min-height: 48px; border-radius: 13px; border: 1px solid var(--q-border, #2a2b33); background: var(--q-surface-2, #1c1d24);
    color: var(--q-text, #f3f3f6); font: 700 14.5px/1.1 inherit; font-family: inherit; cursor: pointer; padding: 0 10px; }
  .msheet-btn.pri { background: var(--q-text, #f3f3f6); color: #0b0d16; border-color: transparent; }
  .msheet-btn:focus-visible, .msheet-ib:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
  /* the pin whose card is open */
  .msheet-pin { z-index: 9 !important; outline: 3px solid #fff; outline-offset: 2px; border-radius: 50%; }
}
@media (prefers-reduced-motion: reduce) { .msheet.anim, .msheet-body.slide-l, .msheet-body.slide-r { transition: none; animation: none; } }

/* Phones (sweep 2026-10-27): icon buttons of 14–22 px got a finger-sized hit area (an invisible ring ~10 px around
   them), their look unchanged. */
@media (max-width: 820px), (pointer: coarse) and (orientation: portrait) and (max-width: 1100px) {
  #tkFav, #tkClock, .tk-act, .fav-mode, .wx-ib { position: relative; }
  #tkFav::before, #tkClock::before, .tk-act::before, .fav-mode::before, .wx-ib::before { content: ''; position: absolute; inset: -10px; }
}

/* ═══ first-login screen ═══ (site-nav.js `showOnboarding`: one ask for an invite code; only Continue or Skip closes it) */
.ob-backdrop {
  position: fixed; inset: 0; z-index: 1200; background: #04050aa8; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Inter Tight', var(--q-font);
  animation: q-sm-fade .14s ease-out;
}
/* the login dialog's look (privy-auth.css, the landing's #invite): dark radial modal, 60px field, white primary */
.ob-backdrop .ob-pop {
  box-sizing: border-box; width: 452px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; text-align: center;
  padding: 56px 31px 26px; border-radius: 25px; border: 1px solid #7e88e629; color: #f3f3f6;
  background: radial-gradient(130% 92% at 50% 42%, #060609 58%, #1a2154 100%); box-shadow: inset 0 0 90px #1a21549a, 0 30px 80px #0000008c;
  animation: obPop .24s cubic-bezier(.2, .9, .3, 1.08) both;
}
@keyframes obPop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.ob-backdrop h2 { margin: 0; font: 600 34px/1.05 'Clash Display', var(--q-font); letter-spacing: -.02em; color: #cfdcf2; text-wrap: balance; }
.ob-backdrop .ob-lbl { display: block; margin: 16px 0 0; font-size: 17px; font-weight: 600; color: #e8ecff; }
.ob-backdrop .ob-hint { margin: 6px auto 0; max-width: 340px; font-size: 15px; font-weight: 500; line-height: 1.45; color: #a3a5b9; text-wrap: balance; }
.ob-backdrop .ob-in {
  box-sizing: border-box; width: 100%; height: 60px; margin-top: 28px; padding: 0 18px; border-radius: 13px; outline: none;
  background: #ffffff08; border: 1px solid #ffffff24; color: #f3f3f6; font: 500 16.5px 'Inter Tight', var(--q-font);
}
.ob-backdrop .ob-in:focus { border-color: #8fb4ff; }
.ob-backdrop .ob-in::placeholder { color: #6b6d80; opacity: 1; }
.ob-backdrop .ob-err { min-height: 18px; margin: 8px 4px 0; font-size: 13.5px; color: var(--q-err); }
.ob-backdrop .ob-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.ob-backdrop .ob-go {
  width: 100%; height: 60px; border: 1px solid #f4f4f6; border-radius: 13px; background: #f4f4f6; color: #0b0b0d;
  font: 600 17.5px/1 'Inter Tight', var(--q-font); cursor: pointer; transition: background .14s, transform 80ms;
}
.ob-backdrop .ob-go:hover { background: #fff; }
.ob-backdrop .ob-go:active { transform: scale(.99); }
.ob-backdrop .ob-skip {
  padding: 6px 10px; border: 0; background: none; color: #a3a5b9; font: 600 15px 'Inter Tight', var(--q-font);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ob-backdrop .ob-skip:hover { color: #e8ecff; }
.ob-backdrop .ob-btns button:disabled { opacity: .6; cursor: default; }
.ob-backdrop :focus-visible { outline: 2px solid #8fb4ff; outline-offset: 2px; }
.ob-backdrop .ob-note { margin: 12px 0 0; font-size: 13px; color: #7d8094; }
@media (max-width: 420px) { .ob-backdrop .ob-pop { padding: 48px 20px 22px; } .ob-backdrop h2 { font-size: 28px; } }

/* Nightly badges beside a trader's name (site-nav.js, SmellBadges): the count, coloured by the best rank. */
.sb-bdg { display: inline-flex; flex: none; align-items: center; gap: 3px; margin-left: 5px; padding: 1px 6px 1px 4px; border-radius: 999px;
  font: 800 10.5px/1.25 var(--q-font, 'Plus Jakarta Sans', sans-serif); font-style: normal; vertical-align: 1px; white-space: nowrap;
  background: rgba(143,180,255,.14); color: #9db4ff; }
.sb-bdg i { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sb-bdg.m1 { background: rgba(255,209,102,.16); color: #ffd166; }
.sb-bdg.m2 { background: rgba(215,219,226,.14); color: #d7dbe2; }
.sb-bdg.m3 { background: rgba(224,163,122,.16); color: #e0a37a; }
html.theme-light .sb-bdg { background: rgba(59,91,219,.10); color: #3b5bdb; }
html.theme-light .sb-bdg.m1 { background: rgba(180,120,0,.12); color: #9a6700; }
html.theme-light .sb-bdg.m2 { background: rgba(90,96,110,.12); color: #4b5563; }
html.theme-light .sb-bdg.m3 { background: rgba(160,82,30,.12); color: #9a4a12; }
