/* Kairos. Design language shared with Arrakeen Finance: monochrome ink and
   paper, IBM Plex Mono micro-labels, pill controls,
   rounded cards with depth, and a leopard pixel field. */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --ink: #050505;
  --ink-2: #2f2f31;
  --muted: #6a6a6c;
  --line: #e2e1dc;
  --line-strong: #c9c8c2;
  --tile-off: #e4e3de;
  --tile-on: #050505;
  --tile-hi: #8a8a8f;
  --invert-bg: #050505;
  --invert-ink: #ffffff;
  --shadow: 0 1px 2px rgba(5,5,5,.04);
  --shadow-lift: 0 28px 54px -20px rgba(5,5,5,.2), 0 6px 16px rgba(5,5,5,.06);
  /* pixel field: shade range (0-255), cursor glow (signed), bevel edges */
  --field-lo: 247; --field-hi: 219; --field-glow: -15;
  --field-bevel-hi: rgba(255,255,255,.55); --field-bevel-lo: rgba(5,5,5,.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050505; --surface: #0c0c0c; --surface-2: #080808; --ink: #f5f5f3; --ink-2: #cfcfd1;
    --muted: #9d9da0; --line: #1f1f21; --line-strong: #3a3a3d; --tile-off: #1a1a1c; --tile-on: #f5f5f3;
    --tile-hi: #6f6f74; --invert-bg: #f5f5f3; --invert-ink: #050505;
    --shadow: none; --shadow-lift: 0 28px 54px -22px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.04);
    --field-lo: 6; --field-hi: 46; --field-glow: 24;
    --field-bevel-hi: rgba(255,255,255,.06); --field-bevel-lo: rgba(0,0,0,.28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #050505; --surface: #0c0c0c; --surface-2: #080808; --ink: #f5f5f3; --ink-2: #cfcfd1;
  --muted: #9d9da0; --line: #1f1f21; --line-strong: #3a3a3d; --tile-off: #1a1a1c; --tile-on: #f5f5f3;
  --tile-hi: #6f6f74; --invert-bg: #f5f5f3; --invert-ink: #050505;
  --shadow: none; --shadow-lift: 0 28px 54px -22px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.04);
  --field-lo: 6; --field-hi: 46; --field-glow: 24;
  --field-bevel-hi: rgba(255,255,255,.06); --field-bevel-lo: rgba(0,0,0,.28);
  color-scheme: dark;
}
/* Phones: the pixel field's tile edges at about half strength, so the background reads as soft
   blobs rather than a grid. Desktop keeps the values above. */
@media (max-width: 640px) {
  :root { --field-bevel-hi: rgba(255,255,255,.28); --field-bevel-lo: rgba(5,5,5,.035); }
  :root[data-theme="dark"] { --field-bevel-hi: rgba(255,255,255,.03); --field-bevel-lo: rgba(0,0,0,.14); }
}
@media (max-width: 640px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --field-bevel-hi: rgba(255,255,255,.03); --field-bevel-lo: rgba(0,0,0,.14); }
}
/* Always-dark surfaces (opt-in brief, featured plan) reuse the dark tokens. */
.ink-card {
  --bg: #050505; --surface: #0c0c0c; --surface-2: #121212; --ink: #ffffff; --ink-2: rgba(255,255,255,.82);
  --muted: rgba(255,255,255,.58); --line: rgba(255,255,255,.16); --line-strong: rgba(255,255,255,.4);
  --tile-off: #1f1f21; --invert-bg: #ffffff; --invert-ink: #050505;
  color-scheme: dark; color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s ease, color .3s ease; }
/* Film grain over everything, so flat fills pick up a little material texture. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.muted-ink { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* ---------- nav: floating pill ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 14px max(16px, calc((100vw - 1272px) / 2)) 0; pointer-events: none; display: flex; align-items: stretch; gap: 10px; }
.nav-inner {
  pointer-events: auto; flex: 1 1 auto; min-width: 0; max-width: 1200px; margin: 0; height: 62px; padding: 0 8px 0 22px;
  display: flex; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 100px;
  background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 30px -18px rgba(5,5,5,.25);
}
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color .2s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
/* Light / dark switch in the top-right corner: level with the nav where there's
   room beside the pill, otherwise tucked just below it. */
.theme-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -12px rgba(5,5,5,.35); transition: background .2s ease, border-color .2s ease, transform .45s var(--ease);
}
.theme-toggle:hover { border-color: var(--line-strong); transform: rotate(-15deg) scale(1.05); }
.brand .logo { height: 26px; width: auto; display: block; }
.brand.small .logo { height: 22px; }

/* ---------- buttons: pills with a fill that sweeps up on hover ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; height: 52px; padding: 0 28px; border-radius: 100px; font: 600 15px var(--sans); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: color .35s ease, border-color .3s ease;
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn-solid { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.btn-solid::before { background: var(--bg); }
.btn-solid:hover { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost::before { background: var(--invert-bg); }
.btn-ghost:hover { color: var(--invert-ink); border-color: var(--invert-bg); }
.btn .arr { display: inline-block; transition: transform .3s ease; }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible, .feed-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- pixel field (canvas drawn in app.js) ---------- */
.has-field { position: relative; isolation: isolate; overflow: hidden; }
.pixel-field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, transparent 100%);
}

/* Outline buttons and quiet copy stay legible where they sit over the field. */
.has-field .btn-ghost { background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.final .pixel-field { opacity: .8; }
.final p.muted { color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { padding: 168px 0 120px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 22px; }
.eyebrow b { font-weight: 500; color: var(--ink); }
.dot { width: 7px; height: 7px; background: var(--ink); display: inline-block; }
.dot.live { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 .line { display: block; }
.lede { font-size: 19px; line-height: 1.7; color: var(--ink-2); margin: 28px 0 38px; max-width: 32em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.chips { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 100px; }
.chips b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.matrix-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lift); min-width: 0; }
.matrix-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.matrix-head span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.matrix-head span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: .04em; }
.matrix-canvas-wrap { width: 100%; }
#matrix { display: block; width: 100%; cursor: crosshair; }
.matrix-card figcaption { font-size: 13px; margin-top: 14px; }

/* ---------- sections ---------- */
.section { padding: 128px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; font-size: 18px; line-height: 1.7; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.lift { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s ease; }
.lift:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }

/* Icon tile: a 3x3 pixel glyph that inverts and tilts on card hover. */
.icon-tile { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; transition: all .45s var(--ease); flex: none; }
.pix { display: grid; grid-template-columns: repeat(3, 6px); gap: 2px; }
.pix i { width: 6px; height: 6px; background: var(--tile-off); transition: background .45s var(--ease); }
.pix i.on { background: var(--ink); }
.lift:hover .icon-tile { background: var(--invert-bg); border-color: var(--invert-bg); transform: scale(1.05) rotate(-4deg); box-shadow: 0 10px 22px -8px rgba(5,5,5,.4); }
.lift:hover .pix i { background: color-mix(in srgb, var(--invert-ink) 22%, transparent); }
.lift:hover .pix i.on { background: var(--invert-ink); }
.ghost-n { font-family: var(--sans); font-weight: 400; font-size: 40px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); opacity: .16; transition: opacity .4s ease; }
.lift:hover .ghost-n { opacity: .3; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }

/* ---------- scanner ---------- */
.scanner { padding: 24px; border-radius: 24px; }
.controls { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; }
.controls > .field:nth-child(1) { grid-column: span 2; }
.controls > .field:nth-child(2) { grid-column: span 3; }
.controls > .field:nth-child(3) { grid-column: span 4; }
.controls > .field:nth-child(4) { grid-column: span 3; }
.controls > .field:nth-child(n+5) { grid-column: span 4; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
select, input[type=search], input[type=email], input:not([type]), textarea {
  font: 15px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; height: 46px; padding: 0 16px; width: 100%; min-width: 0;
  transition: border-color .25s ease, background .25s ease;
}
select:focus, input:focus, textarea:focus { border-color: var(--line-strong); outline: none; }
textarea { height: auto; padding: 12px 16px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 100px; padding: 4px; height: 46px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); font: 600 14px var(--sans); border-radius: 100px; cursor: pointer; transition: all .25s ease; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--invert-bg); color: var(--invert-ink); }
.seg button:disabled, .seg button:disabled:hover { color: var(--muted); opacity: .35; cursor: not-allowed; }
.field-range input { accent-color: var(--ink); height: 46px; width: 100%; }
.peer-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.peer-picker button { border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: 500 13px var(--sans); padding: 6px 13px; border-radius: 100px; cursor: pointer; transition: all .2s ease; }
.peer-picker button:hover { border-color: var(--line-strong); color: var(--ink); }
.peer-picker button.on { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.peer-picker button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-k { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat-v { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-sub { font-size: 12.5px; color: var(--muted); }
.stat-bar { height: 6px; background: var(--tile-off); margin-top: 10px; }
.stat-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s steps(12); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table.gaps { width: 100%; border-collapse: collapse; font-size: 14px; }
.gaps th { text-align: left; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.gaps th.num { text-align: right; white-space: normal; vertical-align: bottom; }  /* long number headers stack, so names and flags keep their line */
.gaps th { vertical-align: bottom; }
.gaps td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
/* Tags inside table cells: compact, and kept on the name's line so rows stay even. */
.gaps td .tag { padding: 2px 8px; }
.gaps .asset > div { white-space: nowrap; }
.gaps tbody tr.row { cursor: pointer; transition: background .2s ease; }
.gaps tbody tr.row:hover, .gaps tbody tr.row.open { background: var(--bg); }
.gaps tbody tr:last-child td { border-bottom: 0; }
.c-rank { width: 48px; color: var(--muted); font-variant-numeric: tabular-nums; }
.asset { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.asset small { font: 11px var(--mono); color: var(--muted); font-weight: 400; }
/* Zero count in micro-cap prices ($0.0₅1234); line-height 0 keeps the row height steady. */
sub { font-size: .75em; line-height: 0; }
.glyph { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--invert-bg); color: var(--invert-ink); font: 600 10.5px var(--mono); border-radius: 9px; }
.score { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.score b { width: 26px; font-variant-numeric: tabular-nums; }
.score-bar { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; max-width: 110px; }
.score-bar i { height: 10px; background: var(--tile-off); }
.score-bar i.on { background: var(--tile-on); }
.pips { display: flex; gap: 2px; flex-wrap: wrap; max-width: 180px; }
.pips i { width: 8px; height: 8px; background: var(--tile-off); }
.pips i.on { background: var(--tile-on); }
.pips-label { font: 11.5px var(--mono); color: var(--muted); margin-top: 5px; }
.signal { font-size: 12px; }
.tag { display: inline-block; font: 500 11px var(--mono); padding: 4px 10px; border-radius: 100px; background: var(--invert-bg); color: var(--invert-ink); white-space: nowrap; }
.tag.soft { background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); }
/* Asset category (exchange token, privacy coin...): shown, never excluded. */
.tag.flag { background: transparent; color: var(--ink-2); border: 1px dashed var(--line-strong); margin-left: 6px; }
td.empty { text-align: center; color: var(--muted); padding: 44px; }
td.empty code { font: 12px var(--mono); }
.detail td { background: var(--bg); padding: 0 16px 20px; }
.detail-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding-top: 6px; }
.venue-bars { display: flex; flex-direction: column; gap: 7px; }
.venue-bar { display: grid; grid-template-columns: 100px 1fr 80px; gap: 10px; align-items: center; font-size: 13px; }
.venue-bar .track { height: 8px; background: var(--tile-off); }
.venue-bar .track i { display: block; height: 100%; background: var(--ink); }
.venue-bar .meta { text-align: right; color: var(--muted); font: 12px var(--mono); }
.detail h4 { margin: 14px 0 8px; font: 500 11px var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.detail .missing { font-size: 13px; color: var(--muted); line-height: 1.7; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; flex-wrap: wrap; }
.table-actions { display: flex; gap: 8px; }

/* Estimated opportunity strip: what listing the gaps is worth at the venue's usual share. */
.opportunity { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; margin: 0 0 22px; box-shadow: 0 24px 50px -30px rgba(5,5,5,.5); }
.opp-k { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.opp-line { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.opp-line b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.opp-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.opp-fees { border-left: 1px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; gap: 2px; }
.opp-v { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.opp-sub { font-size: 13px; color: var(--muted); }
.bps { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.bps input { flex: 1; accent-color: var(--ink); max-width: 160px; }
.bps b { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 52px; }
.est { color: var(--ink); font-weight: 600; }

/* ---------- alert preview: editor window with rule and deliveries ---------- */
.alert-grid { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: 40px; align-items: start; }
.alert-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.alert-side .field { gap: 10px; }
.alert-side .range-row { display: flex; align-items: center; gap: 12px; }
.alert-side .range-row input { flex: 1; accent-color: var(--ink); }
.alert-side .range-row b { font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.alert-facts { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.alert-facts b { color: var(--ink); font-weight: 600; }

.codewin { background: #0a0a0b; color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -36px rgba(5,5,5,.6), 0 10px 24px rgba(5,5,5,.14); min-width: 0; }
.codewin-bar { display: flex; align-items: center; gap: 18px; padding: 0 14px; height: 48px; border-bottom: 1px solid rgba(255,255,255,.08); background: #0e0e10; }
.dots { display: flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3e; }
.dots i:nth-child(2) { background: #56565b; }
.dots i:nth-child(3) { background: #75757b; }
.codewin-tabs { display: flex; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.codewin-tabs button { font: 500 12.5px var(--mono); color: rgba(255,255,255,.5); background: transparent; border: 0; padding: 0 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s ease; }
.codewin-tabs button:hover { color: rgba(255,255,255,.85); }
.codewin-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #fff; background: rgba(255,255,255,.04); }
.codewin-body { height: 500px; overflow: auto; position: relative; }
.code { margin: 0; padding: 20px 0; font: 13px/1.75 var(--mono); color: rgba(255,255,255,.72); counter-reset: ln; white-space: pre; }
.code .l { display: block; padding: 0 22px 0 0; }
.code .l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 44px; padding-right: 18px; text-align: right; color: rgba(255,255,255,.2); user-select: none; }
.code .kw { color: #fff; font-weight: 600; }
.code .str { color: #e8e8e8; background: rgba(255,255,255,.06); border-radius: 3px; }
.code .num { color: #fff; }
.code .com { color: rgba(255,255,255,.34); }
.code .key { color: rgba(255,255,255,.62); }
.code .pun { color: rgba(255,255,255,.4); }
.code .hdr { color: rgba(255,255,255,.5); }
.codewin-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); background: #0e0e10; font: 12px var(--mono); color: rgba(255,255,255,.45); }
.codewin-foot .btn { height: 36px; padding: 0 16px; font-size: 13px; }
.run-status { display: inline-flex; align-items: center; gap: 8px; }
.run-status .dot { background: #fff; }
.codewin.running .run-status .dot { animation: blink .5s steps(1) infinite; }

/* Editable query: a transparent textarea laid exactly over the highlighted <pre>. */
.codewin { position: relative; }
.editor { position: relative; display: inline-block; min-width: 100%; min-height: 100%; }
.editor .code { padding-bottom: 40px; }
/* Only the quoted values are editable: each one is an inline input styled as a string literal. */
.code .slot {
  font: inherit; line-height: inherit; height: auto; margin: 0; padding: 0 1px; vertical-align: baseline;
  color: #fff; background: rgba(255,255,255,.1); border: 0; border-bottom: 1px dashed rgba(255,255,255,.55);
  border-radius: 3px 3px 0 0; caret-color: #fff; outline: none; min-width: 2ch; transition: background .15s ease;
}
.code .slot:hover { background: rgba(255,255,255,.16); }
.code .slot:focus { background: rgba(255,255,255,.22); border-bottom: 1px solid #fff; }
.codewin:has(.slot:focus) { border-color: rgba(255,255,255,.28); }
.foot-actions { display: flex; gap: 8px; }
kbd { font: 500 11px var(--mono); padding: 2px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; color: var(--ink); }
.try { display: flex; flex-wrap: wrap; gap: 8px; }
.try button { font: 500 13px var(--sans); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 7px 13px; cursor: pointer; transition: all .2s ease; }
.try button:hover { border-color: var(--invert-bg); background: var(--invert-bg); color: var(--invert-ink); }

/* Results tab */
.results { padding: 18px 20px 24px; font: 13px var(--mono); }
.res-head { display: flex; flex-wrap: wrap; gap: 8px 16px; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.res-head b { color: #fff; font-weight: 500; }
.res-note { border: 1px dashed rgba(255,255,255,.22); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; color: rgba(255,255,255,.7); font: 13px/1.5 var(--sans); }
.res-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rtable { width: 100%; border-collapse: collapse; }
.rtable th { text-align: left; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: 8px 12px 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.rtable td { padding: 9px 12px 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.85); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtable td:first-child { color: #fff; font-weight: 500; }
.rtable .r { text-align: right; }
.res-error { color: #fff; font: 14px/1.6 var(--sans); }
.res-error b { display: block; margin-bottom: 6px; }
.res-error p { color: rgba(255,255,255,.6); font-size: 13.5px; }
.res-error code { font: 12.5px var(--mono); color: #fff; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; }

/* Easter egg: tiles snap over the window, then the block notice. */
.egg { position: absolute; inset: 48px 0 0; z-index: 3; display: grid; place-items: center; overflow: hidden; }
.egg-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(16, 1fr); grid-auto-rows: 1fr; }
.egg-tiles i { background: #0a0a0b; box-shadow: inset 1px 1px 0 rgba(255,255,255,.05), inset -1px -1px 0 rgba(0,0,0,.55); animation: tile-snap .01s steps(1) both; animation-delay: var(--d); }
@keyframes tile-snap { from { opacity: 0; } to { opacity: 1; } }
.egg-card { position: relative; max-width: 440px; margin: 0 20px; padding: 30px 28px; text-align: center; background: #0c0c0d; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); animation: egg-in .5s var(--ease) .42s both; }
@keyframes egg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.egg-lock { display: grid; grid-template-columns: repeat(7, 6px); gap: 2px; width: max-content; margin: 0 auto 18px; }
.egg-lock i { width: 6px; height: 6px; }
.egg-lock i.on { background: #fff; }
.egg-k { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.egg-card h4 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.egg-card p { color: rgba(255,255,255,.66); font-size: 14.5px; line-height: 1.6; }
.egg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .egg-tiles i, .egg-card { animation: none; } }

.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.partner-band { margin-top: 22px; padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-style: dashed; border-color: var(--line-strong); }
.partner-band h3 { font-size: 24px; margin-bottom: 8px; }
.partner-band p { max-width: 560px; }
.partner-band .btn { flex: none; }

/* ---------- volume monitor page ---------- */
.nav-links a[aria-current="page"] { color: var(--ink); }
.vol-hero { padding-top: 150px; }
.wrap.vol-wide { max-width: 1300px; }  /* room for the Volume table's twelve columns */
.vol-stats { margin: 0 0 22px; }
.vol-card { padding: 22px; border-radius: 24px; }
.vol-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.vol-controls .seg { flex: 0 1 auto; }
.vol-controls .seg button { padding: 0 16px; white-space: nowrap; }
.vol-controls input { max-width: 240px; margin-left: auto; }
.vol-table th .sort, .gaps th .sort { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.vol-table th .sort.on, .gaps th .sort.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.vol-table td small { font: 11px var(--mono); white-space: nowrap; }
.vol-table th.c-check { white-space: normal; line-height: 1.4; vertical-align: bottom; }
/* Tighter than the scanner so eleven columns fit the 1104px card without scrolling. */
.vol-table th, .vol-table td { padding-left: 8px; padding-right: 8px; }
.vol-table .c-rank { padding-right: 4px; }
.vol-table .c-check { padding-left: 4px; padding-right: 4px; }
.vol-table .chip { gap: 5px; padding: 3px 8px 3px 7px; }
.vol-note { font-size: 13px; margin-top: 14px; }
.vol-notice { font-size: 13.5px; color: var(--muted); max-width: 860px; margin: 0 0 22px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.vol-notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Late listings: the venue picker and fee slider share the volume page's control row. */
.late-controls select { width: auto; min-width: 190px; }
.late-controls .late-fee { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.late-controls .late-fee input { margin-left: 0; width: 120px; accent-color: var(--ink); }
.late-controls .late-fee b { font: 500 13px var(--mono); color: var(--ink); min-width: 52px; }
.late-table td small { font: 11px var(--mono); }
#late-more { margin-top: 14px; }
.audits { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* Volume table: every column but the venue name sits centred under its heading. */
.vol-table th, .vol-table td, .vol-table th.num, .vol-table td.num { text-align: center; }
.vol-table th.c-venue, .vol-table td.c-venue { text-align: left; }
.vol-table .audits, .vol-table .flags { align-items: center; }
.flags { display: flex; flex-direction: column; gap: 4px; }
.flags .none { font: 12px var(--sans); color: var(--muted); }
.audits a.tag.old { border-style: dashed; color: var(--muted); }
.audits a.tag:hover { color: var(--ink); border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 7px; font: 500 12px var(--sans); padding: 4px 10px 4px 8px; border-radius: 100px; border: 1px solid var(--line); white-space: nowrap; cursor: help; }
.chip i { width: 8px; height: 8px; flex: none; }
.chip.in_line i { background: var(--ink); }
.chip.mixed i { background: linear-gradient(90deg, var(--ink) 50%, var(--tile-off) 50%); }
.chip.outlier { border-color: var(--line-strong); }
.chip.outlier i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.none, .chip.ref { color: var(--muted); }
.chip.none i { background: var(--tile-off); }
.chip.ref i { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge { display: inline-block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.badge.high { background: var(--invert-bg); color: var(--invert-ink); }
.badge.medium { border: 1px solid var(--ink); color: var(--ink); }
.badge.low { border: 1px dashed var(--line-strong); color: var(--muted); }
.badge.unrated { color: var(--muted); border: 1px solid var(--line); }
.method { display: grid; gap: 16px; }
.method-item { padding: 28px 30px; }
.method-n { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.method-item h3 { font-size: 22px; margin: 8px 0 10px; }
.method-item p { color: var(--ink-2); line-height: 1.7; }
/* Independent activity illustration: monochrome lines on the page's own tokens. */
.fig { margin: 22px 0 0; display: grid; gap: 10px; }
.fig[hidden] { display: none; }
.fig-key { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12px var(--mono); color: var(--muted); }
.fig-key span { display: inline-flex; align-items: center; gap: 8px; }
.fig-key svg { width: 26px; height: 8px; flex: none; }
#indep-svg { width: 100%; height: auto; display: block; overflow: visible; }
#indep-svg .grid { stroke: var(--line); stroke-width: 1; }
#indep-svg .base { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
#indep-svg text { font: 500 11px var(--mono); fill: var(--muted); }
#indep-svg .l { fill: none; stroke-linejoin: round; stroke-linecap: round; }
#tape-svg { width: 100%; height: auto; display: block; overflow: visible; }
#tape-svg .row { fill: var(--surface-2, var(--bg)); stroke: var(--line); }
#tape-svg .tick { stroke: var(--ink); stroke-width: 1.4; opacity: .62; }
#tape-svg text { font: 500 11px var(--mono); fill: var(--muted); }
#tape-svg text.name { font: 600 13px var(--sans); fill: var(--ink); }
.figsvg { width: 100%; height: auto; display: block; overflow: visible; }
.figsvg .grid { stroke: var(--line); stroke-width: 1; }
.figsvg .base { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.figsvg .limit { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.figsvg .l { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.figsvg .bar { fill: var(--ink); }
.figsvg .bar.soft { fill: var(--tile-hi); }
.figsvg text { font: 500 11px var(--mono); fill: var(--muted); }
.figsvg text.name { font: 600 12px var(--sans); fill: var(--ink); }
.figsvg text.val { fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.fig-legend { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.fig-legend li::marker { font: 600 12px var(--mono); color: var(--ink); }
.figsvg .hollow { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.figsvg .blk { fill: var(--ink); }
.figsvg .blk.none { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 4 3; }
.figsvg .dot { fill: var(--ink); }
.figsvg .dot.off { fill: var(--surface); stroke: var(--ink); stroke-width: 1.8; }
.figsvg text.pin { font: 700 11px var(--mono); fill: var(--surface); text-anchor: middle; }
.figsvg text.pin.off { fill: var(--ink); }
.fig-note { font-size: 13px; color: var(--muted); margin: 0; }
.method-grades { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.method-grades .chip { min-width: 96px; margin-right: 10px; cursor: default; }
.method-rating { margin-top: 16px; padding: 28px 30px; }
.method-rating > p { margin-top: 8px; }
.rating-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.rating-scale p { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.method-notes { margin-top: 40px; }
.method-notes .ticks li { color: var(--ink-2); line-height: 1.65; }
.review { margin-top: 28px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.review p { margin-top: 6px; font-size: 15px; }
.review .btn { flex: none; }
.method-refs { margin: -8px 0 22px; font-size: 15px; line-height: 1.65; }
.method-aside { margin-top: 20px; font-size: 14px; line-height: 1.6; }
.method-source { margin-top: 28px; padding: 26px 28px; }
.method-source .cite { margin: 10px 0 12px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.method-source p.muted { font-size: 14px; line-height: 1.65; }

/* Email preview: a light message rendered inside the dark window. */
.mail { padding: 22px; min-height: 100%; background: #16161a; }
.mail-meta { font: 12px/1.9 var(--mono); color: rgba(255,255,255,.55); padding: 0 4px 16px; }
.mail-meta b { color: #fff; font-weight: 500; }
.mail-doc { background: #f7f6f3; color: #050505; border-radius: 14px; padding: 30px 30px 26px; font: 14.5px/1.6 var(--sans); }
.mail-doc img { height: 22px; width: auto; display: block; margin-bottom: 24px; }
.mail-doc h4 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.mail-doc p { color: #4a4a4c; }
.mail-doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.mail-doc th { text-align: left; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #6a6a6c; padding: 8px 6px; border-bottom: 1px solid #e2e1dc; }
.mail-doc td { padding: 9px 6px; border-bottom: 1px solid #ecebe6; font-variant-numeric: tabular-nums; }
.mail-doc td:first-child { font-weight: 600; }
.mail-doc .r { text-align: right; }
.mail-btn { display: inline-block; background: #050505; color: #fff; border-radius: 100px; padding: 11px 20px; font-weight: 600; font-size: 14px; }
.mail-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e2e1dc; font-size: 12px; color: #8a8a8c; }

/* Telegram preview: a bot message on a tiled chat background. */
.tg { min-height: 100%; padding: 24px 22px; background-color: #0d0d0f; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 14px 14px; }
.tg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; }
.tg-head img { width: 38px; height: 38px; border-radius: 50%; background: #000; padding: 7px; border: 1px solid rgba(255,255,255,.14); }
.tg-head small { display: block; font: 11.5px var(--mono); color: rgba(255,255,255,.45); }
.tg-msg { max-width: 460px; background: #1c1c20; border-radius: 16px 16px 16px 4px; padding: 14px 16px 10px; font: 14px/1.6 var(--sans); color: rgba(255,255,255,.88); }
.tg-msg b { color: #fff; }
.tg-msg .mono { font-size: 12.5px; color: rgba(255,255,255,.7); }
.tg-msg ol { margin: 10px 0; padding-left: 20px; }
.tg-msg li { margin-bottom: 4px; }
.tg-time { text-align: right; font: 11px var(--mono); color: rgba(255,255,255,.35); margin-top: 4px; }
.tg-actions { max-width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.tg-actions span { text-align: center; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 500; color: #fff; }

/* ---------- how it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { padding: 36px 32px; }
.steps h3 { font-size: 24px; margin-bottom: 12px; }
.steps p { font-size: 15px; line-height: 1.7; }
.score-explainer { margin-top: 22px; padding: 36px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.score-explainer p { margin-top: 10px; }
.weights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.weights li { display: grid; grid-template-columns: 120px 44px 1fr; align-items: center; gap: 12px; color: var(--ink-2); }
.w-bar { height: 10px; background: linear-gradient(90deg, var(--ink) var(--w), var(--tile-off) var(--w)); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.features .card { padding: 32px 28px; }
.features .card-top { margin-bottom: 24px; }
.features h3 { font-size: 19px; }
.features p { margin-top: 10px; font-size: 15px; line-height: 1.65; }

/* ---------- feed ---------- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feed-item { padding: 20px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.feed-top { display: flex; align-items: center; gap: 10px; }
.feed-top b { font-size: 17px; }
.feed-meta { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--muted); }

/* ---------- opt in: the dark brief card ---------- */
.optin-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.optin-grid .section-head { margin-bottom: 0; }
.next { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-direction: column; gap: 18px; max-width: 460px; counter-reset: next; }
.next li { display: flex; align-items: flex-start; gap: 16px; font-size: 15.5px; line-height: 1.6; color: var(--muted); counter-increment: next; }
.next li::before { content: counter(next, decimal-leading-zero); flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 600 11px var(--mono); color: var(--ink); margin-top: -4px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 11px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--ink); }

.brief { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 34px 34px 36px; box-shadow: 0 34px 70px -28px rgba(5,5,5,.5), 0 8px 22px rgba(5,5,5,.12); position: relative; overflow: hidden; }
.brief-progress { height: 3px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; margin-bottom: 24px; }
.brief-progress i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; transition: width .5s var(--ease); }
.brief-head { display: flex; justify-content: space-between; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 26px; }
.brief-ghost { position: absolute; top: 14px; right: 18px; font-family: var(--sans); font-weight: 400; font-size: 112px; letter-spacing: -0.04em; line-height: 1; color: #fff; opacity: .045; pointer-events: none; }
.form { display: flex; flex-direction: column; gap: 18px; position: relative; }
.brief select, .brief input:not([type=checkbox]), .brief textarea { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); }
.brief select:focus, .brief input:focus, .brief textarea:focus { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.brief ::placeholder { color: rgba(255,255,255,.38); }
.brief option { background: #111; color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; transition: all .25s ease; background: rgba(255,255,255,.03); }
.checks label:hover { border-color: var(--line-strong); }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks label::before { content: ""; width: 7px; height: 7px; background: var(--line-strong); transition: background .25s ease; }
.checks label:has(input:checked) { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.checks label:has(input:checked)::before { background: var(--invert-ink); }
.checks label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.optin-agree { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.optin-agree input { accent-color: var(--ink); margin-top: 3px; }
.form .btn { align-self: flex-start; }
.form-msg { font-size: 14px; min-height: 1em; }
.form-msg.err { color: var(--ink); font-weight: 500; }
.digest { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 10px; }
.digest ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #050505; display: grid; place-items: center; font-size: 22px; margin-bottom: 6px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan-for { font-size: 14px; color: var(--muted); margin-top: 10px; min-height: 2.9em; }
.plan { padding: 36px 32px; display: flex; flex-direction: column; }
.plan h3 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.plan .price { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; margin-top: 14px; line-height: 1; }
.plan .price span { font: 400 15px var(--sans); color: var(--muted); letter-spacing: 0; }
.plan .ticks { margin: 28px 0 32px; flex: 1; font-size: 15px; }
.plan .btn { width: 100%; }
.plan-hi { background: var(--bg); border-color: var(--line-strong); box-shadow: 0 34px 70px -28px rgba(5,5,5,.45), 0 8px 22px rgba(5,5,5,.12); }

/* ---------- faq: numbered accordion ---------- */
.faq-list { border-top: 1px solid var(--line); counter-reset: faq; }
details { border-bottom: 1px solid var(--line); counter-increment: faq; }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 28px; padding: 26px 6px; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.01em; transition: padding .35s ease; }
summary:hover { padding-left: 16px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: counter(faq, decimal-leading-zero); font: 500 12px var(--mono); color: var(--muted); flex: 0 0 26px; }
summary::after { content: "+"; margin-left: auto; font: 400 26px var(--sans); color: var(--muted); transition: transform .35s var(--ease); }
details[open] summary::after { transform: rotate(45deg); color: var(--ink); }
details p { padding: 0 6px 28px 60px; max-width: 680px; line-height: 1.75; }

/* ---------- final cta ---------- */
.final { text-align: center; padding: 160px 0; }
.final-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.final h2 { font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -0.03em; }
.final p { font-size: 18px; }
.final-inner .cta-row { margin-top: 14px; }
.final-mark { width: 64px; height: auto; margin-bottom: 10px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; }
.footer-inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ---------- motion: scroll reveals (only when app.js confirms it is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .motion .reveal.in { opacity: 1; transform: none; }
  .motion .hero h1 .line { animation: rise 1.1s var(--ease) both; }
  .motion .hero h1 .line + .line { animation-delay: .09s; }
  @keyframes rise { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
}

@media (max-width: 1040px) {
  .alert-grid, .opportunity { grid-template-columns: 1fr; }
  .rating-scale { grid-template-columns: 1fr 1fr; }
  .alert-side { position: static; }
  .opp-fees { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .hero-grid, .optin-grid, .score-explainer { grid-template-columns: 1fr; gap: 48px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls > .field:nth-child(n) { grid-column: auto; }
  .stats, .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .detail-inner { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-inner { gap: 16px; }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; padding-left: 18px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 10px 10px 0; }
  .nav-inner { height: 56px; }
  .theme-toggle { bottom: 14px; right: 12px; width: 42px; height: 42px; }
  .brand .logo { height: 22px; }
  .hero { padding: 124px 0 72px; }
  .section { padding: 84px 0; }
  .final { padding: 104px 0; }
  .section-head { margin-bottom: 36px; }
  .controls, .features, .form-row, .plans { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }
  .stat-v { font-size: 22px; }
  .c-venues, .c-signal, .c-est, .gaps td.c-venues, .gaps td.c-signal, .gaps td.c-est { display: none; }
  .opp-line { font-size: 17px; }
  .codewin-body { height: 440px; }
  .code { font-size: 12px; }
  .code .l::before { width: 34px; padding-right: 12px; }
  .partner-band { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .vol-hero { padding-top: 110px; }
  .vol-card { padding: 16px 12px; }
  .vol-controls input { max-width: none; margin-left: 0; }
  .vol-table .c-check { display: none; }
  .gaps th.c-late-hide, .gaps td.c-late-hide { display: none; }
  .late-table .c-rank, .late-table .glyph { display: none; }
  .late-table .asset > div { white-space: normal; }
  .gaps.late-table th, .gaps.late-table td { padding-left: 6px; padding-right: 6px; }
  .late-controls select, .late-controls .late-fee { width: 100%; margin-left: 0; }
  .rating-scale { grid-template-columns: 1fr; }
  .review { flex-direction: column; align-items: flex-start; }
  .method-item, .method-rating, .method-source { padding: 22px 20px; }
  .mail { padding: 14px; }
  .mail-doc { padding: 22px 18px; }
  .score-bar { display: none; }
  .score { min-width: 0; }
  .gaps td, .gaps th { padding: 10px; }
  .weights li { grid-template-columns: 70px 40px 1fr; }
  .venue-bar { grid-template-columns: 80px 1fr 64px; }
  .scanner, .brief { padding: 22px 18px; }
  .score-explainer { padding: 26px 22px; }
  summary { gap: 16px; }
  details p { padding-left: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .dot.live { animation: none; }
  html { scroll-behavior: auto; }
  .lift:hover { transform: none; }
}

/* Legal pages (terms, privacy, disclaimer) and the footer links to them. */
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.legal-links .footer-mail { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px 0; border: 1px solid var(--line); border-radius: 8px; transition: color .2s ease, border-color .2s ease; }
.legal-links .footer-mail:hover, .legal-links .footer-mail:focus-visible { border-color: var(--line-strong); }
.legal-links a, .legal-switch a { color: var(--muted); text-decoration: none; }
.legal-links a:hover, .legal-switch a:hover, .legal-links a[aria-current], .legal-switch a[aria-current] { color: var(--ink); }
.legal-page .footer { margin-top: 40px; }
.legal { padding-top: 150px; padding-bottom: 40px; }
.legal h1 { font: 600 clamp(32px, 5vw, 46px)/1.08 var(--sans); letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.legal-meta { font: 500 12px var(--mono); color: var(--muted); margin: 0 0 18px; }
.legal-intro { font-size: 18px; color: var(--ink-2); max-width: 66ch; margin: 0 0 22px; }
.legal-switch { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; padding: 14px 0; border-block: 1px solid var(--line); margin: 0 0 26px; }
.legal-toc { columns: 2; column-gap: 32px; margin: 0 0 40px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.legal-toc li { break-inside: avoid; margin: 3px 0; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal section { padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.legal h2 { font: 600 20px/1.3 var(--sans); margin: 0 0 12px; }
.legal p { margin: 0 0 12px; max-width: 72ch; color: var(--ink-2); }
.legal ul { margin: 0 0 12px; padding-left: 22px; max-width: 72ch; color: var(--ink-2); }
.legal li { margin: 6px 0; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
mark.fill { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.draft-note { font: 500 13px/1.5 var(--mono); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px 14px; margin: 0 0 26px; color: var(--ink-2); max-width: 72ch; }
@media (max-width: 640px) { .legal { padding-top: 120px; } .legal-toc { columns: 1; } }

/* Free teaser, the Signal modal and the unlock demo bar (web/gate.js). */
.teaser-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 22px; }
.teaser-bar .field { min-width: 0; }
.teaser-bar select { min-width: 220px; }
.teaser-head { margin-bottom: 14px; }
.teaser-line { font: 600 22px/1.3 var(--sans); letter-spacing: -.01em; margin: 0 0 6px; max-width: 760px; text-wrap: balance; }
.teaser-line b { font-weight: 700; }
.teaser-sub { margin: 0; max-width: 760px; }
.teaser-sub b { color: var(--ink); font-weight: 600; }
.teaser-foot { margin: 14px 4px 0; font-size: 14px; text-align: center; }
.teaser-lock { position: relative; margin-top: 4px; overflow: hidden; border-radius: 14px; }
.teaser-ghost { display: grid; gap: 8px; filter: blur(5px); opacity: .55; padding: 12px 6px; }
.teaser-ghost i { height: 44px; border-radius: 10px; background: var(--tile-off); }
.teaser-lock-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 12px 18px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 20%, transparent), color-mix(in srgb, var(--surface) 82%, transparent)); }
.teaser-more { margin: 0; max-width: 520px; font-size: 15px; color: var(--ink-2); }
.teaser-more b { color: var(--ink); }
.teaser-pad { display: inline-grid; grid-template-columns: repeat(7, 4px); gap: 1px; }
.teaser-pad i { width: 4px; height: 4px; background: transparent; }
.teaser-pad i.on { background: var(--ink); }
.unlocked-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: 500 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

dialog.unlock { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; border: 1px solid var(--line-strong); border-radius: 24px; margin: auto; }
dialog.unlock::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.unlock section[hidden] { display: none; }
dialog.unlock h2 { font: 600 28px/1.15 var(--sans); letter-spacing: -.02em; margin: 6px 0 12px; }
dialog.unlock p { margin: 0 0 14px; }
dialog.unlock .ticks { margin: 0 0 20px; }
dialog.unlock .form { display: grid; gap: 14px; }
dialog.unlock .optin-agree { font-size: 13px; }
dialog.unlock .optin-agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
dialog.unlock .unlock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
dialog.unlock .unlock-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
dialog.unlock .unlock-demo { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 16px; margin: 6px 0 14px; }
dialog.unlock .done-icon { margin-bottom: 8px; }
@media (max-width: 560px) { dialog.unlock { padding: 24px 20px; } .teaser-line { font-size: 19px; } .teaser-bar select { min-width: 0; width: 100%; } .teaser-bar .field { flex: 1 1 100%; } }
/* Centred: "Showing 10 of N gaps", then the button to the full scanner beneath it. */
.teaser-seemore { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin-top: 16px; }
.teaser-seemore[hidden] { display: none; }
.teaser-seemore .muted { order: -1; flex-basis: 100%; text-align: center; font-size: 13px; }

/* Webhooks page (web/webhooks.js). */
.wh-head { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.wh-form { padding: 24px; margin: 0 0 22px; }
.wh-form[hidden] { display: none; }
.wh-form h3 { margin: 0 0 16px; font: 600 20px var(--sans); }
.wh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-bottom: 14px; }
.wh-grid .wh-wide { grid-column: 1 / -1; }
.wh-grid .field { min-width: 0; }
.wh-grid input[type=number] { width: 100%; }
.wh-list { display: grid; gap: 14px; }
.wh-card { padding: 20px 22px; display: grid; gap: 8px; }
.wh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wh-host { font: 600 16px var(--mono); word-break: break-all; }
.wh-rule { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.wh-last { margin: 0; font-size: 12.5px; word-break: break-word; }
.wh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wh-log { overflow-x: auto; margin-top: 6px; }
.wh-empty { padding: 28px; }
.wh-empty h3 { margin: 0 0 6px; }
.wh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wh-table th { text-align: left; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wh-table th.r, .wh-table td.r { text-align: right; }
.wh-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wh-docs h3 { margin: 30px 0 10px; font: 600 18px var(--sans); }
.wh-docs code { font: 500 13px var(--mono); background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 6px; border-radius: 5px; }
.wh-code { margin: 0 0 14px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font: 12.5px/1.6 var(--mono); }
.wh-code code { background: none; padding: 0; font: inherit; white-space: pre; }
.wh-secret-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; margin: 6px 0 14px; }
.wh-secret-box code { flex: 1; min-width: 0; font: 600 13px var(--mono); word-break: break-all; user-select: all; }
@media (max-width: 640px) { .wh-grid { grid-template-columns: minmax(0, 1fr); } .wh-form, .wh-card { padding: 16px; } }

/* Command-K exchange search (web/palette.js). */
/* the exchange search: a slim bar inside the nav pill, before Opt in */
.kbar-btn { flex: 0 0 auto; width: 214px; height: 38px; display: inline-flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; border: 1px solid var(--line-strong); border-radius: 100px; background: transparent; color: var(--muted); font: 500 13.5px var(--sans); white-space: nowrap; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.kbar-btn:hover { color: var(--ink); border-color: var(--ink); }
.kbar-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.kbar-btn svg { flex: 0 0 auto; }
.kbar-btn .kbar-btn-text { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.kbar-btn kbd, #kbar kbd { font: 500 11px var(--mono); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); background: transparent; }
@media (max-width: 1360px) { .kbar-btn { width: 176px; padding-right: 14px; } .kbar-btn kbd { display: none; } }
@media (max-width: 1180px) { .kbar-btn { width: 38px; padding: 0; justify-content: center; } .kbar-btn .kbar-btn-text { display: none; } }

/* the profile: a small round button flush in the top-right corner of the window. The nav keeps
   room for it on the right, so the pill never runs underneath it. */
.nav { padding: 14px max(72px, calc((100vw - 1200px) / 2)) 0 max(16px, calc((100vw - 1200px) / 2)); }
.nav > .nav-user { position: fixed; top: 25px; right: 16px; z-index: 41; pointer-events: auto; }
.nav > .nav-user .nav-avatar { width: 40px; height: 40px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 8px 22px -14px rgba(5,5,5,.3); color: var(--ink-2); }
.nav > .nav-user .nav-avatar:hover, .nav > .nav-user.open .nav-avatar { border-color: var(--ink); color: var(--ink); }
.nav > .nav-user.is-in .nav-avatar { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-ink); }
.nav > .nav-user .nav-avatar svg { width: 18px; height: 18px; }
.nav > .nav-user .nav-avatar-dot { width: 9px; height: 9px; right: -1px; bottom: -1px; border-radius: 2px; }
.nav > .nav-user .nav-dd-menu { right: 0; top: calc(100% + 10px); }
.nav > .nav-user .nav-dd-menu::before { top: -12px; height: 12px; }
@media (max-width: 640px) {
  .nav { padding: 10px 60px 0 10px; }
  .nav > .nav-user { top: 18px; right: 10px; }
}
html.kbar-open { overflow: hidden; }
#kbar { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
#kbar[hidden] { display: none; }
.kbar-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.kbar-panel { position: relative; width: min(560px, 100%); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.kbar-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.kbar-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 17px var(--sans); padding: 0; height: auto; }
.kbar-search input::placeholder { color: var(--muted); }
#kbar-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
#kbar-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
#kbar-list li[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 12%, transparent); }
#kbar-list li.kbar-empty { color: var(--muted); cursor: default; justify-content: flex-start; font-size: 14px; }
.kbar-name { font: 600 15px var(--sans); color: var(--ink); min-width: 0; }
.kbar-name mark { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.kbar-cur { font: 500 10.5px var(--mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 100px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }
.kbar-meta { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.kbar-foot { display: flex; gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font: 12px var(--sans); color: var(--muted); }
.kbar-foot kbd { margin-right: 4px; }
.kbar-count { margin-left: auto; font-family: var(--mono); }
@media (max-width: 560px) { #kbar { padding-top: 8vh; } .kbar-meta { display: none; } }
#kbar-list li.kbar-bench { border: 1px dashed var(--line-strong); }
#kbar-list li.kbar-bench .kbar-meta { color: var(--ink); }
#kbar-list li.kbar-note { display: block; cursor: default; color: var(--muted); font-size: 13px; padding: 6px 12px 10px; }

/* webhook builder: assets per delivery and the live preview */
#wh-max button { padding: 0 10px; }
.wh-preview { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 16px 18px; margin: 4px 0 16px; background: var(--bg); }
.wh-pv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.wh-pv-sub { font: 12px var(--mono); letter-spacing: .04em; }
.wh-pv-line { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; }
.wh-pv-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.wh-pv-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.wh-pv-list li.wh-pv-more { display: block; border-style: dashed; background: transparent; font-size: 13px; }
.wh-pv-asset { font: 600 14px var(--mono); }
.wh-pv-meta { font: 12.5px var(--mono); color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-pv-score { font: 600 13px var(--mono); padding: 2px 9px; border-radius: 100px; background: var(--invert-bg); color: var(--invert-ink); }
.wh-pv-sample summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 4px 0; }
.wh-pv-sample .wh-code { margin: 8px 0 0; max-height: 260px; overflow: auto; }
.wh-pv-note { margin: 10px 0 0; font-size: 13px; }
@media (max-width: 640px) { .wh-pv-list li { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; } }

/* A nav link to a section lands the heading just under the floating nav: the section's own top
   padding (128px, 84px on phones) is already empty space, so the scroll offset cancels most of it. */
.section[id] { scroll-margin-top: -124px; }
@media (max-width: 640px) { .section[id] { scroll-margin-top: -80px; } }

/* webhook builder: compact market toggle, peer venues, listed-on meter */
.seg-fit { display: inline-flex; width: fit-content; max-width: 100%; flex-wrap: nowrap; }
.seg-fit button { flex: 0 0 auto; padding: 0 18px; white-space: nowrap; }
.wh-peers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.wh-peer { font: 500 12.5px var(--sans); padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all .2s ease; }
.wh-peer:hover { color: var(--ink); border-color: var(--ink); }
.wh-peer.on { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.wh-hint { font-size: 12.5px; line-height: 1.5; margin: 2px 0 0; }
.wh-dots { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.wh-dots i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--line-strong); }
.wh-dots i.on { background: var(--invert-bg); border-color: var(--invert-bg); }
.wh-dots em { font: normal 12px var(--mono); color: var(--muted); margin-left: 8px; }
@media (max-width: 640px) { .seg-fit button { padding: 0 12px; font-size: 13px; } }

/* landing teaser: more controls and a summary strip */
.teaser-bar { gap: 16px 24px; }
.teaser-min { min-width: 220px; flex: 1 1 220px; max-width: 320px; }
.teaser-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.tstat { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tstat .tk { font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tstat b { font: 600 24px/1.15 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tstat b small, .tstat > small { font: 13px var(--sans); color: var(--muted); letter-spacing: 0; }
.tmeter { display: grid; grid-template-columns: repeat(25, 1fr); gap: 2px; margin-top: 4px; }
.tmeter i { aspect-ratio: 1; border-radius: 2px; border: 1px solid var(--line-strong); }
.tmeter i.on { background: var(--invert-bg); border-color: var(--invert-bg); }
@media (max-width: 900px) { .teaser-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .teaser-min { max-width: none; } .tstat b { font-size: 21px; } }
.teaser-bar .seg { width: fit-content; max-width: 100%; }
.teaser-bar .seg button { white-space: nowrap; padding: 0 16px; flex: 0 0 auto; }
@media (max-width: 560px) { .teaser-bar .seg { width: 100%; } .teaser-bar .seg button { flex: 1 1 auto; padding: 0 8px; } }

/* webhook preview: tabs, run button, channel mock-ups, coming-soon event */
.wh-pv-head .btn { margin-left: auto; }
.wh-pv-tabs { margin: 0 0 12px; max-width: 100%; overflow-x: auto; }
.wh-pv-tabs button { padding: 0 14px; }
.wh-pv-list li { grid-template-columns: 64px minmax(0, 1fr) auto auto; }
.wh-pv-est { font: 600 13px var(--mono); }
.wh-code-wrap { max-height: 300px; overflow: auto; margin: 0; }
.wh-code-wrap code { white-space: pre-wrap; word-break: break-word; }
.mock { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 16px; font-size: 14px; line-height: 1.5; display: flex; gap: 12px; }
.mock .m-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: var(--invert-bg); color: var(--invert-ink); display: grid; place-items: center; font: 700 15px var(--sans); }
.mock .m-main { min-width: 0; flex: 1; }
.mock .m-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 2px; }
.mock time, .mock .m-dim { color: var(--muted); font-size: 12.5px; }
.mock .m-tag { font: 600 10px var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--line); color: var(--muted); }
.mock ul { margin: 8px 0; padding-left: 18px; }
.mock li { margin-bottom: 6px; }
.mock code { font: 600 12.5px var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--line); }
.mock .m-btn { display: inline-block; margin-top: 4px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 6px; font-weight: 600; font-size: 13px; }
.mock-tg { background: transparent; border: 0; padding: 0; }
.mock-tg .m-bubble { max-width: 440px; padding: 10px 14px 8px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); }
.mock-tg time { display: block; text-align: right; margin-top: 4px; }
.mock-dc .m-embed { margin-top: 4px; padding: 10px 14px; border-left: 4px solid var(--ink); border-radius: 4px; background: var(--bg); display: grid; gap: 8px; }
.mock-x .m-av { border-radius: 50%; }
.mock-x .m-text { white-space: pre-wrap; margin: 4px 0; }
.mock-x .m-count { text-align: right; }
.wh-soon { opacity: .6; cursor: not-allowed; }
.soon { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--muted); margin-left: 6px; white-space: nowrap; }
@media (max-width: 640px) { .wh-pv-list li { grid-template-columns: 56px minmax(0, 1fr) auto; } .wh-pv-est { display: none; } }

.wh-only { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 4px; cursor: pointer; }
.wh-only input { accent-color: var(--ink); }

/* scanner: sort arrows, and a market the venue lacks */
.gaps th .sort::after { content: "\2195"; margin-left: 6px; opacity: .35; text-decoration: none; display: inline-block; }
.gaps th .sort.on::after { content: "\2193"; opacity: 1; }
.gaps th .sort.on[data-sort="rank"]::after { content: "\2191"; }
.gaps th .sort:hover::after { opacity: .8; }
.seg button.off { color: var(--muted); opacity: .45; }
.seg button.off:hover { opacity: .8; }
/* volume table: headers that wrap to two lines and ones that fit on one line share a centre line */
.vol-table th { vertical-align: middle; }

/* the adjusted figure sits on the row's line like the other numbers; "counted at" hangs below it */
.vol-table .adj { position: relative; display: inline-block; }
.vol-table .adj small { position: absolute; right: 0; top: 100%; margin-top: 1px; white-space: nowrap; font-size: 11px; line-height: 1.2; }

/* the adjusted column is wider, with the figure and its "counted at" note centred in it */
.vol-table th.c-adj, .vol-table td.c-adj { width: 148px; min-width: 148px; text-align: center; }
.vol-table .adj { display: block; }
.vol-table .adj small { left: 0; right: 0; text-align: center; }

/* ===================================================================== flow maps (flows.html, flows-exchange.html) */
.flow-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; }
.flow-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--muted); }
#flow-asset button.locked { color: var(--muted); }
/* Padlock: one SVG shape (shackle and solid body), painted in the text color. */
.flock { display: inline-block; width: 9px; height: 11px; margin-left: 6px; vertical-align: -1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2.75 5.5V3.75a2.25 2.25 0 0 1 4.5 0V5.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Crect x='1' y='5.25' width='8' height='6.25' rx='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2.75 5.5V3.75a2.25 2.25 0 0 1 4.5 0V5.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Crect x='1' y='5.25' width='8' height='6.25' rx='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.flow-back { display: inline-block; margin-bottom: 18px; font-size: 14px; }
.flow-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .flow-main { grid-template-columns: minmax(0, 1fr); } }

/* the flow map card: always dark, like a trading-desk panel */
.fmap { border-radius: 22px; padding: 22px 24px 18px; background: #070707; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lift); }
.fmap-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fmap-title { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.fmap-live { display: inline-flex; align-items: center; gap: 7px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fmap-live i { width: 7px; height: 7px; background: var(--ink); animation: fpulse 1.6s steps(2) infinite; }
@keyframes fpulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .fmap-live i { animation: none; } }
.fmap-k { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fmap-scn { margin: 20px 0 16px; }
.fmap-scn-main { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 12px; }
.fmap-scn-main b { font: 600 30px/1.1 var(--sans); letter-spacing: -.02em; }
.fmap-score { font: 600 34px/1 var(--mono); font-variant-numeric: tabular-nums; }
.fmap-detail { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.fmap-rows { margin: 0; border-top: 1px solid var(--line); }
.frow { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto minmax(118px, auto); align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.frow dt { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.frow dd { margin: 0; min-width: 0; }
.frow-v { text-align: right; }
.frow-v b { font: 600 15px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.frow-v small { display: block; margin-top: 2px; font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.fstate { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fstate-flat, .fstate-none { color: var(--muted); }
.farrow { font-family: var(--mono); margin-right: 6px; }
.fmap-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 14px; font: 12px var(--mono); color: var(--ink-2); }
.fmap-cov { margin-left: auto; color: var(--muted); }

/* pixel meter: tiles either side of a centre line */
.fmeter { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.fmeter i { width: 9px; height: 9px; border-radius: 2px; border: 1px solid var(--line-strong); }
.fmeter i.on { background: var(--ink); border-color: var(--ink); }
.fmeter b { width: 2px; height: 15px; margin: 0 3px; background: var(--muted); border-radius: 1px; }
.fmeter-lg { gap: 4px; }
.fmeter-lg i { width: 15px; height: 15px; border-radius: 3px; }
.fmeter-lg b { height: 22px; margin: 0 4px; }
.fmap .fmeter-lg { display: flex; justify-content: space-between; }
.fmap .fmeter-lg i { flex: 1; height: 16px; max-width: 34px; }

/* charts beside the card */
.flow-charts { padding: 18px 20px 12px; display: grid; gap: 8px; }
.fchart { margin: 0; }
.fchart figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 2px; }
.fchart-v { font: 600 14px var(--mono); font-variant-numeric: tabular-nums; }
.fchart-key { display: inline-flex; gap: 14px; font: 12px var(--mono); color: var(--muted); }
.fchart-key span { display: inline-flex; align-items: center; gap: 6px; }
.fchart-key i { width: 20px; height: 0; border-top: 2px solid var(--ink); }
.fchart-key i.k-dash { border-top: 2px dashed var(--muted); }
.fchart-plot { position: relative; }
.fchart-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.fchart-plot text { font: 10.5px var(--mono); fill: var(--muted); }
.fchart-plot .grid { stroke: var(--line); stroke-width: 1; }
.fchart-plot .base { stroke: var(--line-strong); stroke-width: 1.5; }
.fchart-plot .fline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fchart-plot .fcross { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.fchart-plot circle { fill: var(--surface); stroke-width: 2; }
.fchart-plot .fhit { fill: transparent; cursor: crosshair; }
.ftip { position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; display: grid; gap: 2px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-lift); font: 11.5px var(--mono); white-space: nowrap; z-index: 2; }
.ftip-t { color: var(--muted); }
.fchart-empty { margin: 0; padding: 36px 0; text-align: center; font-size: 13px; color: var(--muted); }

/* sections below */
.flow-block { margin-top: 48px; }
.flow-block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.flow-block-head h3 { margin: 0; font: 600 22px var(--sans); letter-spacing: -.01em; }
.flow-block-head p { margin: 0; font-size: 14px; }

/* exchange tiles */
.xmaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .xmaps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .xmaps { grid-template-columns: minmax(0, 1fr); } }
.xmap { display: block; padding: 18px 18px 14px; color: inherit; text-decoration: none; text-align: left; font: inherit; }
.xmap-head { display: flex; justify-content: space-between; align-items: center; }
.xmap-head b { font: 600 16px var(--sans); }
.xmap-go { font: 12px var(--mono); color: var(--muted); transition: color .2s ease; }
.xmap:hover .xmap-go { color: var(--ink); }
.xmap-scn { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 10px; }
.xmap-scn span { font: 600 16px var(--sans); }
.xmap-scn b { font: 600 18px var(--mono); }
.xmap .fmeter-lg { display: flex; }
.xmap .fmeter-lg i { flex: 1; height: 12px; }
.xmap-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.xmap-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.xmap-rows li > span:first-child { color: var(--muted); }
.xmap-foot { margin-top: 8px; font: 11.5px var(--mono); color: var(--muted); }
.xmap-locked { border-style: dashed; cursor: pointer; background: transparent; }
.xmap-ghost i { display: block; height: 10px; margin: 14px 0; border-radius: 4px; background: var(--tile-off); }
.xmap-ghost i:nth-child(2) { width: 70%; } .xmap-ghost i:nth-child(3) { width: 85%; } .xmap-ghost i:nth-child(4) { width: 55%; }
.xmap-unlock { font: 12px var(--mono); color: var(--muted); }
.xmap-locked:hover .xmap-unlock { color: var(--ink); }

/* tables */
.flow-table tr.row { cursor: pointer; }
.flow-table tr.row.on td { background: var(--surface-2); }
.flow-table td { vertical-align: middle; }
.fcell { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fcell small { display: block; font: 11.5px var(--mono); color: var(--muted); }
.fscn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.fscn small { font: 12px var(--mono); color: var(--muted); }
.fside { display: inline-block; padding: 2px 9px; border-radius: 100px; border: 1px solid var(--line-strong); font: 500 12px var(--mono); white-space: nowrap; }
.fside-buy { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.frow-locked td { color: var(--muted); }
@media (max-width: 560px) {
  .fmap { padding: 18px 16px 14px; }
  .frow { grid-template-columns: 86px minmax(0, 1fr) auto; }
  .frow-v { max-width: 132px; }
  .frow-v small { white-space: normal; }
  .frow-meter { display: none; }
  .fmap-scn-main b { font-size: 24px; }
  .flow-status { margin-left: 0; }
}
.flow-note { margin: 18px auto 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 760px; text-align: center; }
.flow-note-end { margin-top: 18px; }
/* when the card itself is narrow, the words win over the row meters */
.fmap { container-type: inline-size; }
@container (max-width: 560px) {
  .frow { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .frow-meter { display: none; }
}
/* the flow card and the charts card share a top and a bottom edge */
.flow-main { align-items: stretch; }
#flow-card { display: flex; }
#flow-card > .fmap { flex: 1; display: flex; flex-direction: column; }
#flow-card > .fmap .fmap-foot { margin-top: auto; }
.flow-charts { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }

/* nav menus: Listings and Flows */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; transition: color .2s ease; }
.nav-dd-btn:hover, .nav-dd-btn:focus-visible, .nav-dd.open .nav-dd-btn, .nav-dd.is-current .nav-dd-btn { color: var(--ink); }
.nav-caret { transition: transform .25s var(--ease); }
.nav-dd:not(.click-only):hover .nav-caret, .nav-dd.open .nav-caret { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: calc(100% + 22px); left: -16px; width: 340px; padding: 8px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .25s var(--ease), visibility 0s linear .25s; z-index: 60; }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }   /* keeps hover alive across the gap */
.nav-dd:not(.click-only):hover .nav-dd-menu, .nav-dd.open .nav-dd-menu, .nav-dd-menu:focus-within { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .25s var(--ease); }
.nav-dd-item { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; cursor: pointer; padding: 10px 12px; border-radius: 12px; color: var(--ink); white-space: normal; }
.nav-dd-item b { display: block; font: 600 14px var(--sans); }
.nav-dd-item small { display: block; margin-top: 2px; font: 400 12.5px/1.4 var(--sans); color: var(--muted); }
a.nav-dd-item:hover, button.nav-dd-item:hover, .nav-dd-item:focus-visible, .nav-links .nav-dd-item[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-dd-item.is-soon { cursor: default; opacity: .6; }
.nav-dd-item.has-ic { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.nav-dd-item.has-ic > b, .nav-dd-item.has-ic > small { grid-column: 2; white-space: normal; }
.nav-dd-ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); transition: border-color .2s ease, background .2s ease; }
a.nav-dd-item:hover .nav-dd-ic, .nav-dd-item:focus-visible .nav-dd-ic, .nav-links .nav-dd-item[aria-current="page"] .nav-dd-ic { border-color: var(--line-strong); }
.nav-dd-item.is-soon i { font: normal 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 1px 7px; margin-left: 6px; border: 1px solid var(--line-strong); border-radius: 100px; vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) { .nav-dd-menu, .nav-caret { transition: none; } }

/* nav reflects access: paid items tagged for visitors, a Signal badge once unlocked */
.nav-dd-item i.nav-tag { display: none; font: normal 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 1px 7px; margin-left: 6px; border: 1px solid var(--line-strong); border-radius: 100px; vertical-align: 1px; color: var(--muted); }
:root[data-access="free"] .nav-dd-item i.nav-tag { display: inline-block; }
.nav-signal { display: inline-flex; align-items: center; gap: 7px; }
.nav-signal svg { flex: 0 0 auto; }

/* profile: a round button at the right of the nav, its menu opens on click */
.nav-user { margin-left: 2px; }
.nav-avatar { position: relative; width: 40px; height: 40px; justify-content: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.nav-avatar:hover, .nav-user.open .nav-avatar { color: var(--ink); border-color: var(--ink); }
.nav-user.is-in .nav-avatar { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-ink); }
.nav-avatar-dot { display: none; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); border: 2px solid var(--surface); }
.nav-user.is-in .nav-avatar-dot { display: block; }
.nav-user .nav-dd-menu { left: auto; right: -2px; top: calc(100% + 18px); width: 292px; }
.nav-user .nav-dd-menu::before { top: -20px; height: 20px; }
.nav-user-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nav-user-head b { display: block; font: 600 14px var(--sans); color: var(--ink); }
.nav-user-head small { display: block; margin-top: 3px; font: 12.5px/1.45 var(--sans); color: var(--muted); }
.nav-user-plan { display: inline-block; margin-bottom: 8px; padding: 2px 9px; border-radius: 100px; background: var(--invert-bg); color: var(--invert-ink); font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav-user-rule { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.nav-dd-item.is-danger b { color: var(--muted); font-weight: 500; }
.nav-dd-item.is-danger:hover b { color: var(--ink); }

/* account page */
.acct .section-head { margin-bottom: 28px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-card { padding: 22px 24px; margin-bottom: 16px; scroll-margin-top: 110px; }
.acct-card header h3 { margin: 0 0 12px; font: 600 19px var(--sans); }
.acct-rows { margin: 0; }
.acct-rows > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.acct-rows dt { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.acct-rows dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
.acct-rows code { font: 600 13.5px var(--mono); }
.acct-note { margin: 12px 0 0; font-size: 13.5px; }
.acct-danger { border-style: dashed; }
.acct-danger p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; }
.acct-avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-avatar { display: grid; justify-items: center; gap: 6px; width: 76px; padding: 12px 6px 8px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink); font: 11px var(--mono); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.acct-avatar span { color: var(--muted); }
.acct-avatar:hover { border-color: var(--line-strong); }
.acct-avatar.on { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-ink); }
.acct-avatar.on span { color: var(--invert-ink); }
@media (max-width: 560px) { .acct-rows > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } .acct-card { padding: 18px 16px; } }

/* account: compare plans inside Plan & billing */
.acct-compare { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.acct-compare-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 14px; }
.acct-compare-head h4 { margin: 0; font: 600 16px var(--sans); }
.acct-compare-head span { font-size: 13px; }
.acct-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 980px) { .acct-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .acct-plans { grid-template-columns: minmax(0, 1fr); } }
.acct-plan { position: relative; display: flex; flex-direction: column; padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: 16px; }
.acct-plan.is-current { border-color: var(--ink); }
.acct-plan-badge { position: absolute; top: -9px; left: 12px; padding: 1px 8px; border-radius: 100px; background: var(--invert-bg); color: var(--invert-ink); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.acct-plan h5 { margin: 0; font: 600 15px var(--sans); }
.acct-plan-price { margin: 6px 0 2px; }
.acct-plan-price b { font: 600 22px var(--sans); letter-spacing: -.02em; }
.acct-plan-price span { font-size: 13px; color: var(--muted); }
.acct-plan-for { margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.acct-plan .ticks { margin: 0 0 14px; flex: 1; }
.acct-plan .ticks li { font-size: 12.5px; line-height: 1.45; margin-bottom: 6px; }
.acct-plan .btn { width: 100%; justify-content: center; }
#plan-msg:empty { display: none; }
/* profile: a touch bigger, and glass in both states (frosted like the nav pill) instead of a solid fill */
.nav > .nav-user { top: 22px; }
.nav > .nav-user .nav-avatar, .nav > .nav-user.is-in .nav-avatar {
  width: 46px; height: 46px; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px -16px rgba(5,5,5,.4);
}
.nav > .nav-user .nav-avatar { color: var(--ink-2); }
.nav > .nav-user .nav-avatar:hover, .nav > .nav-user.open .nav-avatar { border-color: color-mix(in srgb, var(--ink) 45%, transparent); color: var(--ink); }
.nav > .nav-user .nav-avatar svg { width: 21px; height: 21px; }
.nav > .nav-user .nav-avatar-dot { width: 10px; height: 10px; right: 0; bottom: 0; border-radius: 3px; border-color: var(--bg); }
@media (max-width: 640px) { .nav > .nav-user { top: 15px; } }

/* exchange picker: a searchable, grouped stand-in for long exchange dropdowns */
.xpick { position: relative; }
.xpick-native { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; }
.xpick-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 38px 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg) linear-gradient(45deg, transparent 50%, var(--muted) 50%) no-repeat calc(100% - 20px) 20px / 5px 5px;
  font: 15px var(--sans); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .25s ease; }
.xpick-btn { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.xpick-btn:hover, .xpick.open .xpick-btn, .xpick-btn:focus-visible { border-color: var(--line-strong); outline: none; }
.xpick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpick-meta { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.xpick-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: max(100%, 340px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lift); overflow: hidden; }
.xpick-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.xpick-search input { border: 0; background: transparent; height: 46px; padding: 0; border-radius: 0; }
.xpick-search input:focus { border: 0; }
.xpick-list { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; overscroll-behavior: contain; }
.xpick-group { padding: 10px 10px 4px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.xpick-list li[role="option"] { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.xpick-list li[aria-selected="true"] { background: var(--surface-2); }
.xpick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpick-name mark { background: none; color: var(--ink); font-weight: 700; }
li.is-cur .xpick-name { font-weight: 600; }
.xpick-vol { font: 12px var(--mono); color: var(--muted); }
.xpick-tag { font: 500 9.5px var(--mono); letter-spacing: .06em; padding: 0 6px; margin-left: 6px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--muted); vertical-align: 1px; }
.xpick-check { flex: 0 0 12px; width: 12px; height: 12px; color: var(--ink); }
.xpick-empty { padding: 14px; font-size: 13.5px; color: var(--muted); }
.late-controls .xpick { min-width: 220px; }
.teaser-bar .xpick { min-width: 240px; }
@media (max-width: 560px) { .teaser-bar .xpick, .late-controls .xpick { min-width: 0; width: 100%; } }
.xpick-btn:disabled { opacity: .5; cursor: not-allowed; }
.xpick-list:focus { outline: none; }

/* new listings page */
.nl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.nl-pick { width: 230px; }
.nl-pick-sm { width: 210px; }
.nl-filters input[type=search] { width: 200px; flex: 1 1 160px; max-width: 260px; }
.nl-toggle { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s ease; user-select: none; }
.nl-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.nl-toggle::before { content: ""; width: 9px; height: 9px; border-radius: 2px; border: 1px solid var(--line-strong); }
.nl-toggle:has(input:checked) { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.nl-toggle:has(input:checked)::before { background: var(--invert-ink); border-color: var(--invert-ink); }
.nl-toggle:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.nl-vol { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--muted); transition: border-color .2s ease; user-select: none; }
.nl-vol.on { border-color: var(--line-strong); color: var(--ink); }
.nl-vol b { font: 500 13px var(--mono); color: var(--ink); min-width: 56px; }
.nl-vol input { --fill: 0%; -webkit-appearance: none; appearance: none; width: 130px; height: 4px; margin: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--line-strong) var(--fill)); }
.nl-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); }
.nl-vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); }
.nl-vol input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
#nl-days button.locked { color: var(--muted); }
.nl-table td small, .nl-firstcol small { display: block; font: 11.5px var(--mono); color: var(--muted); margin-top: 2px; }
.nl-ago { display: block; }
.tag.nl-first { margin-left: 6px; background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
@media (max-width: 760px) { .nl-pick, .nl-pick-sm { width: 100%; } .nl-vol { width: 100%; } .nl-vol input { flex: 1; width: auto; } .nl-filters input[type=search] { max-width: none; } }
.feed-more { display: flex; justify-content: center; margin-top: 22px; }

/* ===================================================================== assets overview and asset pages */
.as-split { display: block; height: 4px; margin: 8px 0 2px; border-radius: 4px; background: var(--tile-off); overflow: hidden; }
.as-split i { display: block; height: 100%; background: var(--ink); }
.as-panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
@media (max-width: 1100px) { .as-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .as-panels { grid-template-columns: minmax(0, 1fr); } }
.as-panel { padding: 16px 16px 10px; }
.as-panel header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.as-panel h3 { margin: 0; font: 600 15px var(--sans); }
.as-panel header span, .as-panel header a { font-size: 12px; }
.as-panel ol { list-style: none; margin: 0; padding: 0; }
.as-panel li a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: 8px; }
.as-panel li a:hover { background: var(--surface-2); }
.as-panel li .glyph { width: 26px; height: 26px; font-size: 9px; }
.as-n { width: 14px; font: 12px var(--mono); color: var(--muted); }
.as-panel li b { font-size: 14px; }
.as-v { margin-left: auto; text-align: right; font: 600 13px var(--mono); white-space: nowrap; }
.as-v small { display: block; font: 400 11px var(--mono); color: var(--muted); }
.as-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; scroll-margin-top: 110px; }
.as-bar input[type=search] { max-width: 280px; }
#as-tabs { max-width: 100%; overflow-x: auto; }
#as-tabs button { padding: 0 14px; }
.as-table tr.row { cursor: pointer; }
.as-star { width: 34px; }
.as-fav { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; }
.as-fav:hover, .as-fav.on { color: var(--ink); }
.asx-actions .as-fav { border: 1px solid var(--line-strong); padding: 0 14px; }
.as-chg { font-family: var(--mono); white-space: nowrap; }
.as-chg.down { color: var(--muted); }
.as-sub { display: block; font: 11.5px var(--mono); color: var(--muted); margin-top: 2px; }
.as-cover { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 6px; font: 10px var(--mono); color: var(--muted); }
.as-tiles { display: inline-flex; gap: 2px; }
.as-tiles i { width: 7px; height: 7px; border-radius: 2px; border: 1px solid var(--line-strong); }
.as-tiles i.on { background: var(--ink); border-color: var(--ink); }
.as-pager { display: flex; align-items: center; gap: 10px; font-size: 13px; }

.asx-head { margin-bottom: 22px; }
.asx-id { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 20px; }
.asx-glyph { width: 56px; height: 56px; font-size: 15px; border-radius: 14px; }
.asx-id h1 { margin: 0; font: 600 34px/1.1 var(--sans); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.asx-id h1 .tag { font-size: 12px; }
.asx-price { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.asx-price b { font: 600 22px var(--mono); }
.asx-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.asx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (max-width: 1100px) { .asx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .asx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.asx-stats > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.asx-stats dt { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.asx-stats dd { margin: 6px 0 0; font: 600 18px var(--sans); }
.asx-stats small { display: block; margin-top: 3px; font: 400 12px var(--sans); color: var(--muted); }
.asx-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
@media (max-width: 980px) { .asx-grid { grid-template-columns: minmax(0, 1fr); } }
.asx-card { padding: 20px 22px; margin-bottom: 16px; }
.asx-grid .asx-card { margin-bottom: 0; }
.asx-card > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.asx-card > header h3 { margin: 0; font: 600 18px var(--sans); }
.asx-card > header .muted { font-size: 13px; }
.asx-note { margin: 12px 0 0; font-size: 13px; }
.asx-treemap { position: relative; width: 100%; }
.tm-tile { position: absolute; box-sizing: border-box; border: 2px solid var(--surface); border-radius: 8px; padding: 8px 10px; overflow: hidden;
  background: color-mix(in srgb, var(--ink) var(--ink-mix), var(--surface)); color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.tm-tile.dark { color: var(--invert-ink); }
.tm-tile b { font: 600 calc(14px * var(--s, 1)) var(--sans); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-tile span { font: calc(11.5px * var(--ms, 1)) var(--mono); line-height: 1.25; opacity: .85; white-space: nowrap; }
.asx-cov { margin-bottom: 14px; }
.asx-cov-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.asx-cov-head span { font: 12px var(--mono); color: var(--muted); }
.asx-cov ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.asx-cov li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; color: var(--muted); }
.asx-cov li.on { color: var(--ink); }
.asx-cov li i { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--line-strong); flex: 0 0 auto; }
.asx-cov li.on i { background: var(--ink); border-color: var(--ink); }
.asx-cov li span { margin-left: auto; font: 11px var(--mono); }
.asx-more { display: flex; width: fit-content; margin: 14px auto 0; }
.asx-more[hidden] { display: none; }
.asx-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.asx-timeline li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0 8px 22px; border-left: 2px solid var(--line); font-size: 14px; }
.asx-timeline li i { position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 2px; background: var(--surface); border: 2px solid var(--ink); }
.asx-timeline li.first i { background: var(--ink); }
.asx-tl-date { font: 12.5px var(--mono); color: var(--muted); min-width: 104px; }
.asx-tl-gap { margin-left: auto; font: 12px var(--mono); color: var(--muted); }
.asx-table th:nth-child(2), .asx-table th:nth-child(3), .asx-table th:nth-child(4), .asx-table th:last-child,
.asx-table td:nth-child(2), .asx-table td:nth-child(3), .asx-table td:nth-child(4), .asx-table td:last-child { text-align: left; }
.as-table th:nth-child(3), .as-table th:nth-child(11), .as-table th:nth-child(12), .as-table td:nth-child(11), .as-table td:nth-child(12) { text-align: left; }
.tm-tile { padding: calc(7px * var(--s, 1)) calc(9px * var(--s, 1)); gap: calc(2px * var(--s, 1)); }
.tm-tile b, .tm-tile span { overflow: visible; text-overflow: clip; }
.tm-tile.tm-only { justify-content: center; align-items: center; padding: 2px; }
.tm-tile.tm-only span { font-size: 11px; }
.tm-tile span.tm-tiny { font-size: 10px; }
.asx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.asx-bar .muted { font-size: 13px; }

/* Empty states: a pixel ghost looking around over a row of tiles being scanned. */
.asx-treemap:has(> .es) { display: grid; place-items: center; }
.es { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 16px; max-width: 420px; }
.es-scene { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.es-ghost { width: 60px; height: 60px; color: var(--ink); animation: es-float 2.4s ease-in-out infinite; }
.es-eyes { fill: var(--surface); }
.es-pupils { animation: es-look 4.8s steps(1) infinite; }
.es-skirt-b { opacity: 0; }
.es-skirt-a { animation: es-wiggle .5s steps(1) infinite; }
.es-skirt-b { animation: es-wiggle .5s steps(1) infinite reverse; }
.es-shadow { width: 34px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--ink); opacity: .14; animation: es-shadow 2.4s ease-in-out infinite; }
.es-tiles { display: grid; grid-template-columns: repeat(12, 8px); gap: 3px; margin-top: 14px; }
.es-tiles i { width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--line-strong); animation: es-scan 2.4s steps(1) infinite; animation-delay: calc(var(--i) * .1s); }
.es-title { font: 600 17px var(--sans); letter-spacing: -0.01em; margin-bottom: 6px; color: var(--ink); }
.es-body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
@keyframes es-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes es-shadow { 0%, 100% { transform: scaleX(1); opacity: .14; } 50% { transform: scaleX(.7); opacity: .07; } }
@keyframes es-look { 0%, 30% { transform: translateX(0); } 30.01%, 55% { transform: translateX(1px); } 55.01%, 80% { transform: translateX(0); } 80.01%, 100% { transform: translateX(1px) translateY(-1px); } }
@keyframes es-wiggle { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes es-scan { 0% { background: var(--ink); border-color: var(--ink); } 12% { background: color-mix(in srgb, var(--ink) 30%, transparent); border-color: var(--line-strong); } 24%, 100% { background: transparent; } }
.es-line { display: inline-flex; align-items: center; gap: 10px; }
.es-mini { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.es-mini .es-skirt-b { display: none; }
.es-mini .es-skirt-a, .es-mini .es-pupils { animation: none; }
.asx-timeline li.asx-tl-empty { border-left: 0; padding-left: 0; }
@media (prefers-reduced-motion: reduce) {
  .es-ghost, .es-shadow, .es-tiles i, .es-pupils, .es-skirt-a { animation: none; }
  .es-skirt-b { display: none; }
}

/* Treemap hover: the whole tile lights up with a ring, the rest step back, and one card follows
   the pointer. No text cursor or selection on tiles. */
.tm-tile { cursor: default; user-select: none; -webkit-user-select: none; transition: opacity .15s var(--ease), box-shadow .15s var(--ease); }
.tm-tile:focus-visible { outline: none; }
.asx-treemap.hovering .tm-tile:not(.hot) { opacity: .42; }
.tm-tile.hot { z-index: 1; box-shadow: 0 0 0 2px var(--ink); }
.tm-more { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 9%, transparent) 0 2px, transparent 2px 7px); }
.tm-tip { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; min-width: 210px; max-width: min(440px, calc(100vw - 16px));
  padding: 13px 15px 14px; border-radius: 14px; background: var(--invert-bg); color: var(--invert-ink);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--invert-ink) 12%, transparent); }
.tm-tip-k { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .16em; opacity: .55; margin-bottom: 5px; }
.tm-tip-h { font: 600 16px var(--sans); letter-spacing: -0.01em; margin-bottom: 2px; }
.tm-tip-v { font: 600 14px var(--mono); }
.tm-tip-v em { font: 400 11.5px var(--mono); font-style: normal; opacity: .6; margin-left: 6px; }
.tm-meter { display: grid; grid-template-columns: repeat(20, 6px); gap: 2px; margin: 9px 0 2px; }
.tm-meter i { height: 6px; border-radius: 1px; background: color-mix(in srgb, var(--invert-ink) 16%, transparent); }
.tm-meter i.on { background: var(--invert-ink); }
.tm-tip-split { display: flex; gap: 16px; margin-top: 9px; padding-top: 9px; border-top: 1px solid color-mix(in srgb, var(--invert-ink) 14%, transparent); font: 11.5px var(--mono); }
.tm-tip-split span { opacity: .7; }
.tm-tip-split b { font-weight: 600; opacity: 1; color: var(--invert-ink); margin-left: 4px; }
.tm-tip-list { list-style: none; margin: 10px 0 0; padding: 9px 0 0; border-top: 1px solid color-mix(in srgb, var(--invert-ink) 14%, transparent); display: grid; gap: 3px 18px; font: 11.5px var(--mono); }
.tm-tip-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 15), auto); }
.tm-tip-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; }
.tm-tip-list li span { font-family: var(--sans); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-tip-list li em { font-style: normal; opacity: .5; min-width: 38px; text-align: right; }
@media (prefers-reduced-motion: reduce) { .tm-tile { transition: none; } }

/* Asset page: price chart (TradingView widget). */
.asx-chartcard { margin-bottom: 18px; }
.asx-chartcard > header { align-items: center; }
.asx-chart-src { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.asx-chart { position: relative; height: 340px; border-radius: 12px; overflow: hidden; }
.asx-chart iframe { filter: grayscale(1) contrast(1.25); }
:root[data-theme="dark"] .asx-chart iframe { filter: grayscale(1) brightness(1.35) contrast(1.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .asx-chart iframe { filter: grayscale(1) brightness(1.35) contrast(1.1); } }
@media (max-width: 640px) { .asx-chart { height: 280px; } }

/* Asset page: Tier 1 coverage as a listing race. */
.cov-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.cov-stats b em { font: 500 10px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: 4px; }
.cov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 8px 32px; }
.cov-stats > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.cov-stats span { display: block; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cov-stats b { display: block; margin: 4px 0 2px; font: 600 17px var(--sans); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-stats small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.cov-cols, .cov-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) 66px 52px 62px; align-items: center; column-gap: 8px; }
.cov-cols { grid-template-columns: minmax(0, 1fr) 66px 52px 62px; padding: 2px 8px 6px 30px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font: 500 9.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cov-cols span:not(:first-child) { text-align: right; }
.cov { margin-bottom: 12px; }
.cov-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 14px; }
.cov-meter { display: flex; gap: 2px; margin-left: auto; }
.cov-meter i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--tile-off, var(--line)); }
.cov-meter i.on { background: var(--ink); }
.cov-n { font: 12px var(--mono); color: var(--muted); min-width: 52px; text-align: right; }
.cov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cov-list li { position: relative; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--muted); isolation: isolate; }
.cov-list li.on { color: var(--ink); }
.cov-list li.on::after { content: ""; position: absolute; left: 30px; bottom: 1px; height: 2px; width: calc((100% - 38px) * var(--w)); border-radius: 1px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.cov-list li:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.cov-list li > i { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--line-strong); }
.cov-list li.on > i { background: var(--ink); border-color: var(--ink); }
.cov-name { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-first { font: 500 9.5px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; padding: 1px 5px; border-radius: 4px; background: var(--ink); color: var(--invert-ink, var(--surface)); }
.cov-date, .cov-lag, .cov-vol { font: 11.5px var(--mono); text-align: right; white-space: nowrap; }
.cov-date { color: var(--muted); }
.cov-lag { font-weight: 600; }
.cov-miss { grid-column: 3 / -1; text-align: right; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .cov-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) {
  .cov-grid { grid-template-columns: minmax(0, 1fr); }
  .cov-cols, .cov-list li { grid-template-columns: 14px minmax(0, 1fr) 46px 58px; }
  .cov-cols { grid-template-columns: minmax(0, 1fr) 46px 58px; }
  .cov-date, .cov-cols span:nth-child(2) { display: none; }
}

/* Coverage beside the map: a compact card. Four one-line stats (details on hover), the Spot /
   Perps switch, then one tight list. */
.asx-grid .cov-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.asx-grid .cov-stats > div { padding: 7px 9px; border-radius: 10px; }
.asx-grid .cov-stats span { font-size: 9px; letter-spacing: .1em; }
.asx-grid .cov-stats b { font-size: 14px; margin: 3px 0 0; }
.asx-grid .cov-stats b em { font: 400 11px var(--mono); margin-left: 1px; }
.asx-grid .cov-stats small { display: none; }
.asx-grid .cov-grid { grid-template-columns: minmax(0, 1fr); }
.asx-grid .cov { margin-bottom: 4px; }
.asx-grid .cov-cols { padding-top: 0; padding-bottom: 4px; }
.asx-grid .cov-list { gap: 0; }
.asx-grid .cov-list li { padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.asx-grid .asx-cover > header { margin-bottom: 10px; }
.asx-grid .asx-cover > header .muted { display: none; }
.asx-grid .asx-cover .asx-note { margin-top: 8px; font-size: 12.5px; }
.cov-tabs { margin: 0 0 8px; }
.cov-tabs span { font: 11px var(--mono); opacity: .6; margin-left: 4px; }

/* Asset page: derivatives charts, coming soon. */
.asx-deriv > header { align-items: center; }
.asx-soon { position: relative; height: 260px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.asx-soon-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.asx-soon-art .bars rect { fill: var(--ink); opacity: .1; }
.asx-soon-art .bars rect.neg { opacity: .05; }
.asx-soon-art .base { stroke: var(--line); stroke-width: 1; }
.asx-soon-art .price { fill: none; stroke: var(--ink); stroke-width: 2; opacity: .22; vector-effect: non-scaling-stroke; }
.asx-soon-card { position: relative; max-width: 380px; margin: 0 16px; padding: 18px 22px; text-align: center; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-lift); }
.asx-soon-tag { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--invert-ink, var(--surface)); font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.asx-soon-card b { display: block; font: 600 16px var(--sans); letter-spacing: -0.01em; }
.asx-soon-card p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 640px) { .asx-soon { height: 220px; } #asx-deriv-tabs { overflow-x: auto; max-width: 100%; } }

/* Open interest anomaly: a small pixel warning triangle, and the site's hover card (palette.js). */
.oi-flag { display: inline-block; position: relative; width: 11px; height: 10px; padding: 7px; margin: -7px -1px -7px -7px; vertical-align: -1px;
  cursor: help; color: var(--ink); box-sizing: content-box; }
/* The mark is drawn inside a padded box, so the hover target is ~25px while the triangle stays 11px
   (a mask on the box itself would clip the hover area to the triangle). */
.oi-flag::after { content: ""; position: absolute; inset: 7px; background: currentColor;
  -webkit-mask: var(--tri) no-repeat center / contain; mask: var(--tri) no-repeat center / contain;
  --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10' shape-rendering='crispEdges'%3E%3Cpath d='M5 0h1v1h1v2h1v2h1v2h1v2h1v1H0V9h1V7h1V5h1V3h1V1h1z M5 3v3h1V3z M5 7v1h1V7z' fill-rule='evenodd'/%3E%3C/svg%3E") }
.oi-flag:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 4px; }
.oi-legend { display: flex; align-items: baseline; gap: 2px; }
.oi-legend .oi-flag { cursor: default; flex: 0 0 auto; }
.ktip { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; max-width: min(340px, calc(100vw - 16px)); padding: 11px 13px 12px; border-radius: 12px;
  background: var(--invert-bg); color: var(--invert-ink); box-shadow: 0 18px 40px -14px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--invert-ink) 12%, transparent); }
.ktip b { display: block; margin-bottom: 4px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.ktip p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.ktip p + p { margin-top: 4px; opacity: .75; }
.oi-legend .oi-flag { padding: 0; margin: 0 6px 0 0; }
.oi-legend .oi-flag::after { inset: 0; }

/* Assets overview: OI change panel. */
.as-oi header { align-items: center; }
.seg-mini { height: 30px; padding: 3px; }
.seg-mini button { padding: 0 10px; font-size: 12px; }
.as-oi-v { display: flex; align-items: baseline; gap: 12px; }
.as-oi-usd { font: 12px var(--mono); color: var(--muted); }
.as-oi-chg { font: 600 13px var(--mono); color: var(--ink); min-width: 64px; text-align: right; }
.as-oi-wait { padding: 14px 4px; font-size: 13px; line-height: 1.5; list-style: none; }

/* Loading / collecting history: the pixel robot building a bar chart (palette.js KairosEmpty.building). */
.kb { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px 10px; list-style: none; }
.kb-scene { display: flex; align-items: flex-end; gap: 12px; height: 56px; margin-bottom: 12px; }
.kb-bot { width: 40px; height: 40px; color: var(--ink); animation: kb-bob 1.2s steps(2) infinite; }
.kb-blink { opacity: 0; animation: kb-blink 3.6s steps(1) infinite; }
.kb-light { fill: var(--ink); animation: kb-light .8s steps(1) infinite; }
.kb-bars { display: flex; align-items: flex-end; gap: 3px; height: 48px; padding-bottom: 1px; border-bottom: 2px solid var(--line-strong); }
.kb-bars i { width: 7px; height: var(--h); border-radius: 1.5px 1.5px 0 0; background: var(--ink); transform-origin: bottom;
  transform: scaleY(0); animation: kb-grow 3.5s steps(4) infinite; animation-delay: calc(var(--i) * .22s); }
.kb-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 240px; }
@keyframes kb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes kb-blink { 0%, 92% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes kb-light { 0% { opacity: 1; } 50% { opacity: .25; } }
@keyframes kb-grow { 0% { transform: scaleY(0); opacity: 1; } 20%, 75% { transform: scaleY(1); opacity: 1; } 88%, 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .kb-bot, .kb-blink, .kb-light { animation: none; }
  .kb-bars i { animation: none; transform: none; }
}
.as-oi { display: flex; flex-direction: column; }
.as-oi ol:has(.kb) { flex: 1; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; }
.as-oi ol:has(.kb) > li { list-style: none; }

/* Table rows that open an asset page (New listings, Late listings): highlighted like the Assets
   panels, and the asset on one line with its tags and a grey note (rank, price) after them. */
.gaps tr.row-link { cursor: pointer; }
.gaps tr.row-link td { transition: background .12s var(--ease); }
.gaps tr.row-link:hover td { background: var(--surface-2); }
.gaps tr.row-link:hover td:first-child { border-radius: 10px 0 0 10px; }
.gaps tr.row-link:hover td:last-child { border-radius: 0 10px 10px 0; }
a.asset-link { color: inherit; text-decoration: none; justify-content: flex-start; flex-wrap: nowrap; gap: 10px; min-width: 0; }
a.asset-link > .glyph, a.asset-link > b, a.asset-link > .tag { flex: 0 0 auto; }
a.asset-link .tag { margin-left: 0; }
a.asset-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.nl-table th:nth-child(2), .late-table th:nth-child(2) { text-align: left; padding-left: 8px; }
.gaps a.asset-link small.asset-sub { display: block; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 11.5px var(--mono); font-weight: 400; color: var(--muted); }

/* Assets table: 24h change cells tinted green or red by the size of the move, never dark. */
:root { --heat-up: #1f9d5c; --heat-down: #d64545; }
.as-heat { font: 500 13px var(--mono); transition: background .15s var(--ease); }
.as-heat.up { background: color-mix(in srgb, var(--heat-up) var(--tint), transparent); }
.as-heat.down { background: color-mix(in srgb, var(--heat-down) var(--tint), transparent); }
.as-heat[data-tip] { cursor: help; }
.late-table th:nth-child(2) { width: 34%; }

/* Profile menu: the demo unlock states (only while the server's demo unlock is on). */
.nav-demo { padding: 6px 10px 8px; }
.nav-demo > span { display: block; margin-bottom: 8px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.nav-demo > div { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-demo button { padding: 5px 10px; border: 1px dashed var(--line-strong); border-radius: 100px; background: transparent; color: var(--ink);
  font: 500 12px var(--sans); cursor: pointer; transition: background .15s var(--ease); }
.nav-demo button:hover { background: var(--surface-2); }

/* A badge with a logo file (palette.js, web/logos): the image instead of the letters. */
.glyph.has-logo { background: var(--logo) center / contain no-repeat; color: transparent; font-size: 0; }
.xlogo { display: none; flex: none; width: 16px; height: 16px; margin-right: 7px; border-radius: 4px; vertical-align: -3px; background: var(--logo) center / contain no-repeat; }
.xlogo.has-logo { display: inline-block; }
/* Logos in white or black on a transparent background (palette.js inkOf) get a contrasting tile
   in the theme where they'd vanish. */
.has-logo.ink-light { background-color: #141416; background-size: 70%; }
.has-logo.ink-dark { background-color: transparent; }
:root[data-theme="dark"] .has-logo.ink-light { background-color: transparent; background-size: contain; }
:root[data-theme="dark"] .has-logo.ink-dark { background-color: #f5f5f3; background-size: 70%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .has-logo.ink-light { background-color: transparent; background-size: contain; }
  :root:not([data-theme="light"]) .has-logo.ink-dark { background-color: #f5f5f3; background-size: 70%; }
}
.late-table td.c-late-ex { white-space: nowrap; }
.asx-treemap.tm-links .tm-tile:not(.tm-more) { cursor: pointer; }

/* Exchange page (exchange.html). Reuses the asset page's header, stat tiles and cards. */
.xh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.xh-grid .asx-card { margin-bottom: 0; }
@media (max-width: 980px) { .xh-grid { grid-template-columns: minmax(0, 1fr); } }
.xh-rating { color: var(--ink); font: 600 13.5px var(--sans); }
.xh-legend { display: inline-flex; align-items: center; gap: 6px; font: 11.5px var(--mono); color: var(--muted); }
.xh-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.xh-legend [data-k] { display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s ease; }
.xh-legend [data-k].off { opacity: .3; }
.xh-legend .sp, .xh-stack .sp { background: var(--ink); }
.xh-legend .pp, .xh-stack .pp { background: var(--tile-hi); }
.xh-legend [data-k] + [data-k] { margin-left: 12px; }
.xh-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 300px; padding-top: 8px; }
.xh-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; cursor: default; outline: none; }
.xh-n { font: 600 11.5px var(--mono); margin-bottom: 4px; min-height: 14px; }
.xh-stack { width: 100%; max-width: 34px; display: flex; flex-direction: column; gap: 2px; min-height: 2px; border-radius: 4px 4px 0 0; overflow: hidden; }
.xh-stack i { display: block; min-height: 0; }
.xh-bar:hover .xh-stack, .xh-bar:focus-visible .xh-stack { opacity: .75; }
.xh-m { margin-top: 8px; font: 11px var(--mono); color: var(--muted); }
.xh-m b { display: none; font-weight: 400; }
@media (min-width: 720px) { .xh-m { font-size: 0; } .xh-m b { display: inline; font-size: 11px; } }
.xh-recent { list-style: none; margin: 0; padding: 0; }
.xh-recent li a { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: 8px; }
.xh-recent li:first-child a { border-top: 0; }
.xh-recent li a:hover { background: var(--surface-2); }
.xh-recent .glyph { width: 26px; height: 26px; font-size: 9px; border-radius: 8px; }
.xh-recent b { font-size: 14px; }
.xh-when { font: 12px var(--mono); color: var(--muted); text-align: right; }
.xh-when small { display: block; font-size: 11px; }
.xh-race { font: 12px var(--mono); text-align: right; white-space: nowrap; min-width: 150px; }
.xh-peer { padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.xh-peer-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.xh-peer-h .muted { font: 12px var(--mono); margin-left: auto; }
.xh-tiles { display: inline-grid; grid-template-columns: repeat(25, 7px); gap: 2px; }
.xh-tiles i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--tile-off, var(--line)); }
.xh-tiles i.on { background: var(--ink); }
.xh-peer dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.xh-peer dl > div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; }
.xh-peer dt { font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.xh-peer dd { margin: 4px 0 0; font: 600 16px var(--sans); }
.xh-peer dd small { display: block; font: 400 11.5px var(--sans); color: var(--muted); margin-top: 2px; }
.xh-gaps { margin: 10px 0 0; font-size: 13px; }
.xh-scan { margin-top: 2px; }
.xh-tools { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.xh-tools input { width: 260px; max-width: 100%; }
@media (max-width: 640px) {
  .xh-peer dl { grid-template-columns: minmax(0, 1fr); }
  .xh-tiles { grid-template-columns: repeat(25, 4px); }
  .xh-tiles i { width: 4px; height: 4px; }
  .xh-recent li a { grid-template-columns: auto auto minmax(0, 1fr); }
  .xh-recent .tag, .xh-when { display: none; }
  .xh-race { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* An exchange's name that opens its page (exchange.html). */
a.ex-link { color: inherit; text-decoration: none; }
a.ex-link:hover, a.ex-link:focus-visible { color: var(--ink); opacity: .72; }
.xh-speed { margin-top: 2px; padding-top: 4px; }
.xh-speed-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.xh-speed-list { list-style: none; margin: 0; padding: 0; }
.xh-speed-list li { display: grid; grid-template-columns: 18px minmax(0, 150px) minmax(0, 1fr) 96px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; }
.xh-speed-list li.is-this { background: var(--surface-2); font-weight: 600; }
.xh-speed-n { font: 11.5px var(--mono); color: var(--muted); }
.xh-speed-list a.ex-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xh-speed-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.xh-speed-bar i { display: block; height: 100%; border-radius: 3px; background: var(--tile-hi); }
.xh-speed-list li.is-this .xh-speed-bar i { background: var(--ink); }
.xh-speed-v { font: 600 12.5px var(--mono); text-align: right; }
.xh-speed-v small { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted); }
.xh-speed + .xh-scan { margin-top: 14px; }
.xh-recent li.xh-sub { list-style: none; margin: 14px 0 4px; padding: 10px 6px 4px; border-top: 1px solid var(--line); font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.xh-recent li.xh-sub + li a { border-top: 0; }
.xh-recent li.xh-gap .glyph { opacity: .85; }
.xh-recent li.xh-none { padding: 6px; }
.xh-recent li.xh-wait { list-style: none; display: grid; place-items: center; min-height: 260px; }

/* Listings by month: a faint baseline, and over a quiet stretch the pixel squid drifting, its
   tentacles switching between two frames like an arcade invader. */
.xh-bars { position: relative; background: linear-gradient(var(--line), var(--line)) bottom 24px left 0 / 100% 1px no-repeat; }
.xh-squid { position: absolute; bottom: 136px; left: calc(var(--from) / 12 * 100%); width: calc(var(--span) / 12 * 100%);
  display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.xh-squid-swim { width: 100%; height: 46px; position: relative; margin-bottom: 16px; }
.xh-squid-art { position: absolute; left: 50%; width: 44px; height: 44px; margin-left: -22px; color: var(--ink);
  animation: xh-drift 9s ease-in-out infinite alternate, xh-bob 1.4s ease-in-out infinite; }
.xh-squid-art .f1 { opacity: 0; }
.xh-squid-art .f0 { animation: xh-frame .9s steps(1) infinite; }
.xh-squid-art .f1 { animation: xh-frame .9s steps(1) infinite reverse; }
.xh-squid b { font: 600 14px var(--sans); }
.xh-squid span { font: 11.5px/1.55 var(--mono); color: var(--muted); margin-top: 4px; }
@keyframes xh-drift { from { transform: translateX(calc(-1 * var(--drift, 60px))); } to { transform: translateX(var(--drift, 60px)); } }
@keyframes xh-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes xh-frame { 0% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xh-squid-art, .xh-squid-art .f0, .xh-squid-art .f1 { animation: none; } }
.xh-quiet { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; margin-bottom: 3px; }
.xh-quiet i { display: block; width: 9px; height: 9px; border-radius: 2px; background: var(--ink); opacity: .08;
  animation: xh-quiet 3.2s ease-in-out infinite; animation-delay: calc(var(--q) * .22s); }
.xh-quiet i:nth-child(2) { animation-delay: calc(var(--q) * .22s + .12s); }
.xh-quiet i:nth-child(3) { animation-delay: calc(var(--q) * .22s + .24s); }
@keyframes xh-quiet { 0%, 60%, 100% { opacity: .08; } 25% { opacity: .42; } }
@media (prefers-reduced-motion: reduce) { .xh-quiet i { animation: none; opacity: .12; } }

.tm-tip-rest { margin-top: 9px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--invert-ink) 14%, transparent); font-size: 12px; opacity: .75; }
.xh-squid span { pointer-events: auto; }   /* the email link is clickable; the rest lets hovers through */
/* Exchange page: the recent-listings footer button, and listing speed as compact one-line rows. */
.xh-recent-more { margin-top: 12px; }
.xh-speed-list li { grid-template-columns: 18px minmax(0, 130px) minmax(0, 1fr) 118px; padding: 4px 8px; font-size: 13px; }
.xh-speed-v { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; font-size: 12px; }
.xh-speed-v small { display: inline; font-size: 10.5px; }
.xh-speed-list li.xh-speed-gap { display: block; padding: 0 8px 0 36px; line-height: 1; color: var(--muted); font: 12px var(--mono); }

/* Exchange page: volume over time */
.xh-vol { min-height: 260px; color: var(--ink); }
.xh-vol > svg { display: block; width: 100%; height: auto; overflow: visible; }
.xh-vol-grid { stroke: var(--line); stroke-width: 1; }
.xh-vol-y { font: 10.5px var(--mono); fill: var(--muted); text-anchor: end; }
.xh-vol-x { font: 10.5px var(--mono); fill: var(--muted); text-anchor: middle; }
.xh-vol-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.xh-vol-rebuilt { stroke-dasharray: 4 3; opacity: .55; }
.xh-vol-cross { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.xh-vol-dot { fill: currentColor; stroke: var(--surface); stroke-width: 2; }
.xh-vol-hit { fill: transparent; cursor: crosshair; }
.xh-vol .kb { min-height: 260px; }
#xh-range button:disabled { opacity: .35; cursor: default; }

/* Volume compare */
.cmp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cmp-range { margin-left: auto; }
.cmp-soon { font: 500 9.5px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--line-strong); border-radius: 100px; padding: 1px 6px; margin-left: 6px; }
#cmp-measure button:disabled { opacity: .45; cursor: not-allowed; }
.cmp-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 18px; }
.cmp-chips { display: contents; }
.cmp-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; }
.cmp-chip b { font-weight: 600; }
.cmp-chip .glyph { width: 22px; height: 22px; font-size: 8px; border-radius: 6px; }
.cmp-chip .xlogo { width: 18px; height: 18px; }
.cmp-chip button[data-rm] { width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.cmp-chip button[data-rm]:hover { background: var(--line); color: var(--ink); }
.cmp-add { position: relative; flex: 0 1 240px; }
.cmp-add input { width: 100%; height: 40px; }
.cmp-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.cmp-suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.cmp-suggest li.on, .cmp-suggest li:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.cmp-suggest li small { margin-left: auto; font: 11px var(--mono); color: var(--muted); }
.cmp-suggest .glyph { width: 22px; height: 22px; font-size: 8px; border-radius: 6px; }
.cmp-suggest .xlogo { width: 18px; height: 18px; }
.cmp-suggest .cmp-none { color: var(--muted); cursor: default; }
.cmp-split { height: 40px; margin-left: auto; }
.cmp-split.is-off { opacity: .45; }
.cmp-chart { min-height: 280px; color: var(--ink); transition: opacity .2s ease; }
.cmp-chart.is-loading { opacity: .5; }
.cmp-chart > svg { display: block; width: 100%; height: auto; overflow: visible; }
.cmp-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cmp-area { fill: color-mix(in srgb, var(--ink) var(--mix), var(--surface)); stroke: var(--surface); stroke-width: 1; stroke-linejoin: round; transition: opacity .15s ease; }
.cmp-area.is-other { fill: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
.cmp-rebuilt { fill: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.cmp-live { stroke: var(--line-strong); stroke-dasharray: 2 3; }
.cmp-band-k { font: 500 10px var(--mono); fill: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.cmp-err { padding: 60px 0; text-align: center; }
.cmp-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.cmp-legend li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.cmp-legend li.off { opacity: .4; }
.cmp-legend button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; min-width: 0; }
.cmp-legend button b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-legend .glyph { width: 20px; height: 20px; font-size: 7px; border-radius: 5px; flex: none; }
.cmp-legend .xlogo { width: 16px; height: 16px; flex: none; }
.cmp-lg-v { margin-left: auto; text-align: right; font: 500 12.5px var(--mono); }
.cmp-lg-v small { display: block; font-size: 10.5px; color: var(--muted); }
.cmp-lg-go { font-size: 12px; }
.cmp-sw { flex: none; color: var(--ink); }
.cmp-sw line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cmp-sw-fill { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--ink) var(--mix), var(--surface)); border: 1px solid var(--line); }
.cmp-sw-fill.is-other { background: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
.cmp-tip-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font: 11.5px var(--mono); min-width: 240px; }
.cmp-tip-list li { display: grid; grid-template-columns: 22px 1fr auto 46px; align-items: center; gap: 8px; }
.cmp-tip-list b { font-weight: 600; text-align: right; }
.cmp-tip-list em { font-style: normal; opacity: .6; text-align: right; }
.cmp-tip .cmp-sw { color: var(--invert-ink); }
.cmp-tip .cmp-sw-fill { border-color: transparent; }
@media (max-width: 760px) { .cmp-range { margin-left: 0; } .cmp-add { flex: 1 1 100%; } .cmp-split { margin-left: 0; } }
.cmp-line { transition: opacity .15s ease; }
.cmp-lab { font: 600 11.5px var(--sans); fill: var(--ink); text-anchor: end; pointer-events: none; transition: opacity .15s ease; }
.cmp-lab.light { fill: var(--surface); }
.cmp-lab.halo { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.cmp-chart svg.focus .cmp-area:not(.hot), .cmp-chart svg.focus .cmp-line:not(.hot), .cmp-chart svg.focus .cmp-lab:not(.hot) { opacity: .14 !important; }
.cmp-more { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.cmp-more-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.cmp-more-h .muted { font: 11px var(--mono); }
.cmp-more ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 18px; }
.cmp-more li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cmp-more .glyph { width: 20px; height: 20px; font-size: 7px; border-radius: 5px; flex: none; }
.cmp-more .xlogo { width: 16px; height: 16px; flex: none; }
.cmp-more a.link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-t1 { font: 500 9.5px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 100px; padding: 1px 6px; white-space: nowrap; }
#cmp-view button:disabled { opacity: .4; cursor: not-allowed; }
.cmp-legend .cmp-lg-h { grid-column: 1 / -1; border-top: 0; padding: 10px 0 2px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.cmp-lg-go { white-space: nowrap; }
.cmp-more-h > div:first-child { display: grid; gap: 3px; }
.cmp-pick { display: inline-flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.cmp-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-box { flex: none; width: 14px; height: 14px; border: 1px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; transition: background .15s ease, border-color .15s ease; }
.cmp-pick input:checked + .cmp-box { background: var(--ink); border-color: var(--ink); }
.cmp-pick input:checked + .cmp-box::after { content: ""; width: 6px; height: 3px; border: solid var(--surface); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.cmp-pick input:focus-visible + .cmp-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.cmp-pick-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-more li:has(input:checked) .cmp-pick-n { font-weight: 600; }
.cmp-reset { margin-left: 10px; font: 500 11px var(--sans); text-transform: none; letter-spacing: 0; }
.cmp-pick-acts { display: flex; gap: 8px; flex: none; }
.cmp-pick-acts .btn:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 760px) { .cmp-more-h { flex-direction: column; align-items: stretch; } .cmp-pick-acts .btn { flex: 1; } }
.cmp-more-sub { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 8px; font-size: 14px; }
.cmp-more-sub .muted { font: 11px var(--mono); }
.cmp-more-sub .link { margin-left: auto; font: 500 12px var(--sans); background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; }
.cmp-pick-none { margin: 4px 0 0; font-size: 13px; }
.cmp-more li .cmp-sw { margin-right: -2px; }
.cmp-empty { min-height: 280px; display: grid; place-items: center; }
.cmp-chip-edit { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: text; }
.cmp-chip:has(.cmp-chip-edit:hover) { border-color: var(--line-strong); }
.cmp-chip[hidden] { display: none; }
.cmp-split { order: 1002; }
#cmp-search::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.cmp-clear { background: none; border: 0; padding: 0 4px; font: 500 12.5px var(--sans); color: var(--muted); cursor: pointer; }
.cmp-clear:hover { color: var(--ink); }

/* Scanner: the Filter box's asset suggestions */
.field:has(#search) { position: relative; }
.sc-suggest { min-width: 240px; }
/* The button sits in the middle of whatever space is left under the bars (the right side can run longer). */
.detail .det-left { display: flex; flex-direction: column; }
.detail .det-more-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 0; }

/* Scanner: category exclusions */
.sc-exclude { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.sc-exclude-k { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-right: 4px; }
.sc-exclude .nl-toggle { height: 34px; padding: 0 13px; font-size: 13px; }
.asx-issuer { margin-left: 6px; font-family: var(--sans); font-weight: 600; }
.asx-tokens td:nth-child(2), .asx-tokens td:nth-child(3), .asx-tokens td:nth-child(4) { text-align: left; }
.asx-beta { margin-left: 8px; vertical-align: middle; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; }

/* Compare pickers: richer suggestions */
.cmp-suggest { max-height: 460px; overflow-y: auto; min-width: 320px; }
.cmp-suggest li.on { background: color-mix(in srgb, var(--ink) 7%, transparent); }
#cmp-suggest li:hover:not(.on), #asx-suggest li:hover:not(.on) { background: none; }
.cmp-sg-main { display: grid; min-width: 0; line-height: 1.25; }
.cmp-sg-main b { font-weight: 600; }
.cmp-sg-main small { font: 10.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-sg-v { margin-left: auto; display: grid; text-align: right; font: 500 12px var(--mono); line-height: 1.25; }
.cmp-sg-v small { font-size: 9.5px; color: var(--muted); margin: 0; }
.cmp-sg-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; padding: 8px 10px 4px !important; border-top: 1px solid var(--line); border-radius: 0 !important;
  font: 10.5px var(--mono); color: var(--muted); cursor: default !important; background: none !important; }
.cmp-sg-keys kbd { font: inherit; padding: 0 5px; margin-right: 3px; border: 1px solid var(--line-strong); border-radius: 4px; }
/* Asset page markets: title and note on the left, the exchange search (with suggestions) on the right */
.asx-card header.asx-mk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.asx-mk-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.asx-mk-title .muted { font-size: 13px; }
.asx-search-wrap { position: relative; flex: none; }
.asx-search-wrap input { width: 280px; max-width: 100%; }
.asx-search-wrap .cmp-suggest { left: auto; right: 0; width: 340px; }
@media (max-width: 700px) { .asx-search-wrap, .asx-search-wrap input { width: 100%; } .asx-search-wrap .cmp-suggest { width: auto; left: 0; } }
.cmp-suggest .xlogo { display: inline-block; width: 18px; height: 18px; flex: none; margin-right: 0; }
.cmp-suggest .xlogo:not(.has-logo) { background: color-mix(in srgb, var(--ink) 9%, transparent); }   /* keeps the row aligned without a logo */
.asx-contract { display: block; font: 10.5px var(--mono); color: var(--muted); margin-top: 2px; }

/* Scanner table foot: the note centred, Show more centred beneath it, Export CSV on the right of that row */
.table-foot.sc-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 12px; }
.sc-foot #table-note { grid-column: 1 / -1; text-align: center; }
.sc-foot .sc-more { grid-column: 2; display: flex; gap: 8px; justify-content: center; }
.sc-foot #more[hidden] { display: inline-flex; visibility: hidden; }   /* keeps Export CSV on the right when there's nothing more */
.sc-foot #csv { grid-column: 3; justify-self: end; }
.sc-foot .sc-rows { grid-column: 1; grid-row: 2; justify-self: start; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sc-foot .sc-rows select { width: auto; height: 34px; padding: 0 30px 0 12px; font-size: 13px; }
.sc-foot .sc-more { grid-row: 2; }
.sc-foot #csv { grid-row: 2; }

/* ⌘K: grouped results (exchanges, assets, pages) */
#kbar-list li.kbar-group { display: block; cursor: default; padding: 10px 12px 4px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); background: none !important; }
#kbar-list li.kbar-group:first-child { padding-top: 4px; }
.kbar-glyph { width: 20px; height: 20px; font-size: 7px; border-radius: 5px; margin-right: 8px; vertical-align: -5px; display: inline-grid; }
.kbar-page { display: inline-block; width: 16px; margin-right: 7px; color: var(--muted); font-weight: 400; }
.kbar-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; font-family: var(--sans); }
#kbar-list { max-height: min(520px, 62vh); overflow-y: auto; }
.kbar-btn .kbar-typing::after { content: ""; display: inline-block; width: 1px; height: 13px; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: kbar-caret 1s steps(1) infinite; }
@keyframes kbar-caret { 50% { opacity: 0; } }

/* Full asset names (data/asset_names.json) beside tickers */
.as-fullname { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.asx-fullname { font-weight: 400; color: var(--muted); font-size: .55em; letter-spacing: 0; margin-left: 4px; vertical-align: middle; }
.kbar-full { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 13px; }

/* Most listed */
/* The asset cell: ticker, name and tags on one line, the rank beneath, both left-aligned
   (the table centres its cells, so this sets its own alignment). */
.ml-table td:nth-child(2) { text-align: left; }
.ml-table .ml-id { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left; }
.ml-table .ml-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ml-table .ml-line .tag { margin: 0; }
.ml-table .ml-name { font-size: 13px; font-weight: 400; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-table .ml-sub { font: 11.5px var(--mono); color: var(--muted); font-weight: 400; }
.ml-new b { font: 600 18px var(--sans); }
.ml-chips { max-width: 520px; }
.ml-chip { display: inline-flex; align-items: center; gap: 5px; margin: 2px 6px 2px 0; padding: 3px 9px 3px 6px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 12px; color: var(--muted); white-space: nowrap; cursor: default; }
.ml-chip .xlogo { margin-right: 0; width: 14px; height: 14px; }
.ml-chip.t1 { color: var(--ink); border-color: var(--line-strong); font-weight: 600; }
.ml-chip .ml-first { font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 0 5px; border-radius: 100px; background: var(--invert-bg); color: var(--invert-ink); }
/* Most listed foot: the note, then Show more and Export CSV, all centred */
.table-foot.ml-foot { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.ml-actions { display: flex; gap: 8px; justify-content: center; }
.ml-table th:nth-child(2), .ml-table th:nth-child(4) { text-align: left; }
.ml-table td.ml-chips { text-align: left; }

/* Most listed: the listing map (bubbles) */
.ml-map-wrap { margin: 4px 0 18px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 16px; }
.ml-map { color: var(--ink); min-height: 300px; }
.ml-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.ml-grid { stroke: var(--line); stroke-width: 1; }
.ml-axis { font: 10.5px var(--mono); fill: var(--muted); }
.ml-bubble { cursor: pointer; outline: none; transition: opacity .15s ease; }
.ml-bubble circle { fill: color-mix(in srgb, var(--ink) var(--mix), var(--surface)); stroke: var(--surface); stroke-width: 1.5; }
.ml-bubble.brand circle { stroke: var(--ink); stroke-width: 2; }
.ml-bubble:focus-visible circle, .ml-bubble.hot circle { stroke: var(--ink); stroke-width: 2.5; }
.ml-map svg.focus .ml-bubble:not(.hot) { opacity: .35; }
.ml-blabel { font-family: var(--mono); font-weight: 600; fill: var(--ink); pointer-events: none; }
.ml-blabel.light { fill: var(--surface); }
.ml-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ml-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ml-legend i { display: inline-block; border-radius: 50%; }
.ml-legend .lg-size { width: 8px; height: 8px; background: color-mix(in srgb, var(--ink) 30%, var(--surface)); }
.ml-legend .lg-size.big { width: 16px; height: 16px; }
.ml-legend .lg-shade { width: 12px; height: 12px; }
.ml-legend .lg-shade.lo { background: color-mix(in srgb, var(--ink) 14%, var(--surface)); }
.ml-legend .lg-shade.hi { background: color-mix(in srgb, var(--ink) 84%, var(--surface)); }
.ml-legend .lg-ring { width: 12px; height: 12px; border: 2px solid var(--ink); }
.ml-tip-name { font-weight: 400; opacity: .6; font-size: 13px; }
.ml-tip-order { margin-top: 8px; font: 11.5px var(--mono); line-height: 1.6; opacity: .85; max-width: 320px; }
.ml-tip-order .t1 { font-weight: 700; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ml-bubble { transition: none; } }
.ml-bubble.yours { opacity: .3; }
.ml-map svg.focus .ml-bubble.yours:not(.hot) { opacity: .18; }
.ml-tag.ml-gap, .tag.ml-gap { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.ml-legend .lg-faded { width: 12px; height: 12px; background: color-mix(in srgb, var(--ink) 50%, var(--surface)); opacity: .35; }
.ml-tip-yours { margin-top: 6px; font: 600 11.5px var(--mono); }
#ml-exchange-wrap.locked { cursor: pointer; }
#ml-exchange-wrap.locked .xpick-btn { pointer-events: none; color: var(--muted); }

/* Sign in (signin.html) and two-factor setup on the account page */
.si-card { max-width: 520px; margin: 0 auto; }
.si-card h3 { margin: 0 0 6px; }
.si-card .form { display: grid; gap: 14px; margin-top: 14px; }
.si-alt { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.si-fine { max-width: 520px; margin: 16px auto 0; font-size: 12.5px; text-align: center; }
.ac-enroll { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ac-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 12px 0 16px; }
.ac-qr img { background: #fff; border-radius: 10px; padding: 8px; border: 1px solid var(--line); }
.ac-qr > div { display: grid; gap: 6px; font-size: 13px; }
.ac-qr code { font: 500 13px var(--mono); word-break: break-all; }
.ac-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ac-inline .field { flex: 1 1 180px; }

/* Admin panel (admin.html) */
.adm { max-width: 1100px; }
.adm-tabs { max-width: 560px; margin: 0 0 22px; }
.adm-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.adm-bar input { flex: 0 1 320px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 100px; background: var(--bg); color: var(--ink); font: 14px var(--sans); }
.adm-table td { vertical-align: middle; }
.adm-acts { white-space: nowrap; }
.adm-note { font-size: 12px; margin-top: 2px; }
.adm-plan { font-weight: 600; }
.adm-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.adm-fields .field { flex: 0 1 170px; }
.adm-fields .adm-grow { flex: 1 1 260px; }
.adm-fields input, .adm-fields select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 14px var(--sans); }
.adm-inline { padding: 12px 0; }
.adm-new { padding: 20px 22px; margin-bottom: 16px; }
.adm-new h3, .adm-team h3 { margin: 0 0 12px; font: 600 17px var(--sans); }
.adm-row { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.adm-team { padding: 18px 22px; margin-bottom: 14px; }
.adm-team-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.adm-team-head h3 { margin: 0 0 2px; }
.adm-team-head p { margin: 0; font-size: 13px; }
.adm-edit td { background: var(--surface-2); }
@media (max-width: 760px) { .adm-acts { white-space: normal; } .adm-tabs { overflow-x: auto; } }
.si-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.si-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.legal-table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th { text-align: left; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table tr:last-child td { border-bottom: 0; }
.adm-range { width: 300px; height: 40px; flex: none; }
.adm-chart-card { padding: 18px 20px 12px; margin-bottom: 16px; }
.adm-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.adm-chart-head h3, .adm-list h3 { margin: 0; font: 600 16px var(--sans); }
.adm-chart-head span { font-size: 12.5px; }
.adm-chart { position: relative; }
.adm-chart svg { display: block; width: 100%; height: 220px; }
.adm-grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.adm-axis { fill: var(--muted); font: 10px var(--mono); }
.adm-bar { fill: var(--ink); }
.adm-chart g:hover .adm-bar { opacity: .7; }
.adm-tip { position: absolute; pointer-events: none; background: var(--invert-bg); color: var(--invert-ink); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; display: grid; gap: 2px; white-space: nowrap; z-index: 2; }
.adm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.adm-list { padding: 18px 20px; }
.adm-list h3 { margin-bottom: 8px; }
.adm-sub { margin-top: 18px !important; }
.adm-dev { display: grid; grid-template-columns: 70px 1fr 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.adm-dev b { text-align: right; font: 600 12.5px var(--mono); }
.adm-dev-bar { height: 8px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.adm-dev-bar i { display: block; height: 100%; background: var(--ink); border-radius: 100px; }
@media (max-width: 760px) { .adm-grid { grid-template-columns: 1fr; } .adm-range { width: 100%; } }
.ac-sessions { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.ac-sessions li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; }
.ac-sessions li .muted { font-size: 12.5px; flex-basis: 100%; }
.tm-table { margin: 6px 0 4px; }
.cmp-chart { position: relative; }
.cmp-tag-bg { fill: var(--surface); stroke: var(--line); }
.cmp-tag-sw { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.cmp-tag-fill { fill: color-mix(in srgb, var(--ink) var(--mix), var(--surface)); }
.cmp-tag-name { font: 500 11px var(--sans); fill: var(--ink); }
.cmp-tag-val { font: 600 11px var(--mono); fill: var(--ink); }
.cmp-tag { cursor: pointer; outline: none; }
.cmp-tag:hover .cmp-tag-bg, .cmp-tag:focus-visible .cmp-tag-bg { stroke: var(--line-strong); }
.cmp-tag.is-only .cmp-tag-bg { stroke: var(--ink); }
.cmp-chart.is-zoomed .xh-vol-hit { cursor: grab; }
.cmp-chart.is-panning .xh-vol-hit { cursor: grabbing; }
.cmp-zoombar { position: absolute; top: 3px; display: flex; gap: 10px; align-items: baseline; font: 500 10px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.cmp-zoom-reset { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cmp-asset { display: flex; align-items: center; gap: 8px; }
.cmp-asset-k { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cmp-asset-add { position: relative; }
.cmp-asset-add input { width: 170px; }
.cmp-asset-chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cmp-asset-x { margin-left: 2px; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 2px; }
.cmp-asset-x:hover { color: var(--ink); }

/* The row under the picks: an asset to compare the exchanges in (left), the breakdown switch (right). */
.cmp-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -6px 0 18px; min-height: 40px; }
.cmp-scope .cmp-split { order: 0; margin-left: auto; }

/* Volume Compare: redrawing the chart while zooming must never move the page (scroll anchoring
   would otherwise nudge everything as the chart and legend change), and the plot keeps its size. */
body.compare-page, body.compare-page * { overflow-anchor: none; }
.cmp-chart > svg { touch-action: pan-y; }
.cmp-chart .xh-vol-hit { overscroll-behavior: contain; }
html:has(body.compare-page) { overflow-anchor: none; }
.cmp-edge { stroke: var(--line-strong); stroke-width: 1; }

/* Volume Compare: the asset list under the chart (about ten rows, then scroll), and the About box */
.cmp-alist { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.cmp-alist-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; }
.cmp-alist-head .seg { height: 36px; }
.cmp-alist-head input { margin-left: auto; width: 240px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 100px; background: var(--bg); color: var(--ink); font: 14px var(--sans); }
.cmp-alist-all { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--ink); font: 600 12.5px var(--sans); cursor: pointer; }
.cmp-alist-all:hover { border-color: var(--line-strong); }
.cmp-alist-wrap { max-height: 466px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; overscroll-behavior: contain; }
.cmp-alist-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp-alist-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp-alist-table th.r, .cmp-alist-table td.r { text-align: right; }
.cmp-alist-table td { padding: 0 12px; height: 42px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-alist-table tbody tr { cursor: pointer; transition: background .12s ease; }
.cmp-alist-table tbody tr:hover, .cmp-alist-table tbody tr:focus-visible { background: var(--surface-2); outline: none; }
.cmp-alist-table tbody tr.on { background: color-mix(in srgb, var(--ink) 7%, var(--surface)); }
.cmp-alist-table tbody tr:last-child td { border-bottom: 0; }
.cmp-alist-asset { display: inline-flex; align-items: center; gap: 8px; }
.cmp-alist-asset .glyph { width: 22px; height: 22px; font-size: 8px; border-radius: 6px; }
.cmp-alist-asset .muted { font-size: 12.5px; }
.cmp-alist-table td.up { color: var(--ink); }
.cmp-alist-table td.down { color: var(--muted); }
.cmp-alist-act { font: 600 12px var(--sans); color: var(--muted); }
.cmp-alist-table tr:hover .cmp-alist-act, .cmp-alist-table tr.on .cmp-alist-act { color: var(--ink); }
.cmp-alist-none { padding: 16px 12px !important; height: auto !important; }
@media (max-width: 760px) { .cmp-alist-head input { width: 100%; margin-left: 0; } .cmp-alist-table th:nth-child(6), .cmp-alist-table td:nth-child(6), .cmp-alist-table th:nth-child(7), .cmp-alist-table td:nth-child(7) { display: none; } }
.cmp-about { margin-top: 18px; padding: 24px 26px; }
.cmp-about h3 { margin: 0 0 16px; font: 600 18px var(--sans); }
.cmp-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.cmp-about h4 { margin: 0 0 8px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cmp-about ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2, var(--ink)); }
.cmp-about li::marker { color: var(--muted); }
@media (max-width: 900px) { .cmp-about-grid { grid-template-columns: 1fr; } }
.cmp-chip.is-none { opacity: .55; }
.cmp-chip.is-none small { margin-left: 6px; font: 500 10.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cmp-sg-note { padding: 8px 12px 6px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); cursor: default; }
.cmp-chart svg.focus .cmp-tag:not(.hot) { opacity: .4; }
.cmp-tag.hot .cmp-tag-bg { stroke: var(--ink); }
.cmp-tag { transition: opacity .15s ease; }
.cmp-more-toggle { margin-left: auto; }
.cmp-more-foot { display: flex; justify-content: center; margin-top: 12px; }
.glyph.glyph-group { font: 700 12px var(--sans); }
.cmp-group-i { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 4px; border: 1px solid var(--line-strong); border-radius: 50%; font: italic 600 9px var(--sans); color: var(--muted); vertical-align: 1px; }

/* Volume Compare: open interest still collecting (the Knight walks along faint volume bars) */
.oi-wait { position: relative; overflow: hidden; border-radius: 14px; }
.oi-wait-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.oi-wait-bars rect { fill: var(--line-strong); opacity: .32; transform-box: fill-box; transform-origin: 50% 100%; animation: oi-breathe 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * -0.16s); }
@keyframes oi-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }
.oi-wait-walk { position: absolute; left: 0; right: 0; bottom: 6px; height: 26px; pointer-events: none; }
.oi-wait-knight { position: absolute; bottom: 0; width: 24px; height: 24px; color: var(--ink); animation: kn-walk 16s linear infinite; }
.kn .kn-a { animation: kn-step .5s steps(1) infinite; }
.kn .kn-b { animation: kn-step .5s steps(1) infinite; animation-delay: -.25s; }
@keyframes kn-step { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes kn-walk {
  0% { left: 2%; transform: scaleX(1) translateY(0); }
  12.5% { transform: scaleX(1) translateY(-2px); } 25% { transform: scaleX(1) translateY(0); }
  37.5% { transform: scaleX(1) translateY(-2px); }
  49.99% { left: calc(98% - 24px); transform: scaleX(1); }
  50% { left: calc(98% - 24px); transform: scaleX(-1); }
  62.5% { transform: scaleX(-1) translateY(-2px); } 75% { transform: scaleX(-1) translateY(0); }
  87.5% { transform: scaleX(-1) translateY(-2px); }
  99.99% { left: 2%; transform: scaleX(-1); }
  100% { left: 2%; transform: scaleX(1); }
}
.oi-wait-card { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(400px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; text-align: center; box-shadow: 0 12px 34px rgba(0, 0, 0, .08); }
.oi-wait-tag { display: inline-block; background: var(--invert-bg); color: var(--invert-ink); font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.oi-wait-card b { display: block; margin: 10px 0 6px; font: 600 17px var(--sans); }
.oi-wait-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.oi-wait-card .oi-wait-sub { margin-top: 8px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .oi-wait-knight, .kn .kn-a, .kn .kn-b, .oi-wait-bars rect { animation: none; } .oi-wait-knight { left: calc(50% - 12px); } .kn .kn-b { display: none; } }
.seg button.on .cmp-soon { border-color: currentColor; opacity: .8; }

/* Coming soon (kairos/preview.py): the private preview's front door, always on the white background */
.pv-page { margin: 0; min-height: 100vh; display: grid; place-items: center; background: var(--bg); color: var(--ink); font-family: var(--sans); }
.pv { width: min(540px, calc(100% - 32px)); text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; }
.pv-logo { display: block; width: 148px; height: auto; margin-bottom: 32px; }
.pv-tag { display: inline-block; background: var(--invert-bg); color: var(--invert-ink); font: 600 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.pv h1 { margin: 18px 0 12px; font: 600 clamp(28px, 5vw, 42px)/1.12 var(--sans); letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.pv-lead { margin: 0 0 32px; font: 400 16px/1.6 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.pv-form { width: 100%; max-width: 380px; }
.pv-k { display: block; margin-bottom: 10px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.pv-row { display: flex; gap: 8px; }
.pv-row input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--ink); font: 15px var(--sans); text-align: center; }
.pv-row input:focus { outline: none; border-color: var(--ink); }
.pv-row .btn { height: 46px; padding: 0 22px; }
.pv-form .form-msg { margin-top: 10px; min-height: 1.2em; }
.pv-foot { margin-top: 40px; font: 400 13px var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.pv-foot a { color: var(--ink); }
.pv-page.has-field { overflow: hidden auto; }
.pv-page .pixel-field { position: fixed; -webkit-mask-image: radial-gradient(130% 110% at 50% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(130% 110% at 50% 50%, #000 35%, transparent 100%); }
.pv { position: relative; z-index: 1; }
.pv::before { content: ""; position: absolute; inset: -40px -60px; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 92%, transparent), transparent); }
