/* yeloop.net/analytics — the scanner (analytics.html, analytics.js). A product
   dashboard rather than the marketing pages: a sidebar, a quiet top bar, flat
   cards, plain labels. Yellow is the one accent: the main action, the
   selected option and what a scan flagged. Nothing glows or pulses. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e1014;
  --panel: #14161b;
  --panel-2: #1a1d23;
  --panel-3: #22262d;
  --line: #22252c;
  --line-2: #2e323a;
  --text: #e9ebef;
  --text-2: #aab0bb;
  --muted: #7d8492;
  --yellow: #f2d600;          /* the logo's yellow */
  --yellow-hover: #ffe11a;
  --yellow-ink: #15171b;      /* text sitting on yellow */
  --yellow-line: rgba(242, 214, 0, .35);
  --orange: #f5953f;          /* insider bands: notable = yellow, elevated = orange, suspicious = red */
  --red: #f0585d;
  --green: #3cc486;
  --zero: #4a4f59;            /* a normal score */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px;
  --r-sm: 8px;
  --side: 248px;
  --top: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 14.5px/1.5 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { color: var(--text); text-decoration-color: var(--text-2); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ax-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ax-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--yellow); color: var(--yellow-ink); border-radius: var(--r-sm); font-weight: 600; }
.ax-skip:focus { top: 10px; }
.ax-badge { display: inline-block; padding: 0 7px; border: 1px solid var(--yellow-line); border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 1.6; color: var(--yellow); vertical-align: 2px; letter-spacing: 0; }

/* ── buttons ───────────────────────────────────────── */
.ax-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px; border: 1px solid var(--yellow); border-radius: var(--r-sm);
  background: var(--yellow); color: var(--yellow-ink);
  font: 600 14px/1.1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.ax-btn:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); color: var(--yellow-ink); }
.ax-btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-2); font-weight: 500; }
.ax-btn-ghost:hover { background: var(--panel-2); border-color: var(--muted); color: var(--text); }
.ax-btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.ax-btn-lg { min-height: 42px; padding: 0 20px; font-size: 14.5px; }
.ax-btn-block { display: flex; width: 100%; }
.ax-btn:disabled { opacity: .45; cursor: not-allowed; }
.ax-btn:not(.ax-btn-ghost):disabled:hover { background: var(--yellow); border-color: var(--yellow); }
.ax-btn-ghost:disabled:hover { background: var(--panel); border-color: var(--line-2); }
.ax-link { background: none; border: 0; padding: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; font-size: 13.5px; }
.ax-link:hover { color: var(--text); }
.ax-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── layout: sidebar, then top bar and page ───────── */
.ax-app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.ax-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px; padding: 20px 14px 18px;
  border-right: 1px solid var(--line); background: var(--bg);
}
.ax-brand { display: inline-flex; align-items: center; gap: 10px; padding: 2px 10px 6px; font: 800 19px/1 "Schibsted Grotesk", var(--sans); letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.ax-brand svg { width: 26px; height: 26px; }
.ax-nav { display: grid; gap: 2px; }
.ax-nav-h { margin: 14px 10px 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ax-nav-h:first-child { margin-top: 0; }
.ax-nav > a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-2); text-decoration: none; }
.ax-nav > a svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.ax-nav > a:hover { background: var(--panel); color: var(--text); }
.ax-nav > a[aria-current] { background: var(--panel-2); color: var(--text); font-weight: 500; }
.ax-nav > a[aria-current] svg { color: var(--yellow); }
.ax-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ax-recent a { display: grid; gap: 1px; padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--text-2); }
.ax-recent a:hover { background: var(--panel); color: var(--text); }
.ax-recent a[aria-current] { background: var(--panel-2); color: var(--text); }
/* a past scan's outcome, in words. Colour only ever means what a scan found
   (the insider bands); failed and running are states, so they stay neutral */
.r-tag { font-weight: 500; }
.r-tag[data-tag="s"] { color: var(--red); }
.r-tag[data-tag="e"] { color: var(--orange); }
.r-tag[data-tag="n"] { color: var(--yellow); }
.r-tag[data-tag="failed"], .r-tag[data-tag="running"] { color: var(--text); }
.ax-recent .r-title { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-recent small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-upgrade { margin-top: auto; display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font-size: 13px; color: var(--text-2); }
.ax-upgrade b { font-size: 14px; color: var(--text); }
.ax-upgrade .ax-btn { margin-top: 6px; }

.ax-body { min-width: 0; display: flex; flex-direction: column; }
.ax-top-brand { display: none; align-items: center; gap: 8px; font: 800 17px/1 "Schibsted Grotesk", var(--sans); letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.ax-top-brand svg { width: 22px; height: 22px; }
.ax-top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.ax-search { position: relative; width: 100%; max-width: 440px; }
.ax-search input, .ax-startform input {
  width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--panel); color: var(--text); font: 14px/1 var(--sans);
}
.ax-search input::placeholder, .ax-startform input::placeholder { color: var(--muted); }
.ax-search input:focus, .ax-startform input:focus { outline: none; border-color: var(--muted); }
.ax-search-ico { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
body[data-view="intro"] .ax-search { visibility: hidden; }
.ax-top-right { display: flex; align-items: center; gap: 16px; }
.ax-quota { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--muted); }
.ax-plan { padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.ax-plan:hover { border-color: var(--muted); color: var(--text); }
.ax-meter { display: grid; gap: 5px; min-width: 92px; }
.ax-meter span { display: flex; justify-content: space-between; gap: 10px; }
.ax-meter span b { color: var(--text); font-weight: 500; }
.ax-meter i { display: block; height: 3px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.ax-meter i::before { content: ""; display: block; height: 100%; width: calc(var(--left, 1) * 100%); background: var(--yellow); border-radius: 2px; }
.ax-meter.is-out i::before { width: 100%; background: var(--red); opacity: .6; }

.ax-main { flex: 1; min-width: 0; padding: 24px 28px 64px; outline: none; }
.ax-main > * { max-width: 1240px; }
.ax-pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 22px; }
.ax-crumbs { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.ax-crumbs a { text-decoration: none; }
.ax-crumbs a:hover { color: var(--text); }
.ax-crumbs span:last-child { color: var(--text-2); }
.ax-pagehead h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ax-boot:empty { display: none; }
.ax-fine { margin-top: 32px; font-size: 12.5px; color: var(--muted); }
.ax-stack, .ax-intro, #job-body { display: grid; gap: 16px; }
body[data-view="job"] .ax-run { display: none; }      /* an open scan: the market as its header, the report under it */
.ax-job { margin-top: 16px; }

/* panels */
.ax-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.ax-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 0; }
.ax-ptitle { font-size: 15.5px; font-weight: 600; }
.ax-sec { display: grid; gap: 16px; padding: 16px 20px 20px; }
.ax-ext { font-size: 13px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.ax-ext::after { content: " ↗"; }
.ax-ext:hover { color: var(--text); }
.ax-msg { font-size: 13.5px; color: var(--text-2); }
.ax-msg:empty { display: none; }
.ax-msg[data-state="error"] { color: var(--red); }
.ax-note { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); color: var(--text-2); font-size: 13px; }
.ax-hint { font-size: 13.5px; color: var(--text-2); }
.ax-hint:empty { display: none; }
.ax-hint[data-state="error"] { color: var(--red); }
.ax-sub { font-size: 13px; color: var(--muted); }
.ax-sum { max-width: 78ch; font-size: 14px; color: var(--text-2); }
.ax-meta { font-size: 12.5px; color: var(--muted); }

/* ── overview ──────────────────────────────────────── */
.ax-start { display: grid; gap: 14px; padding: 20px; }
.ax-start h2 { font-size: 17px; }
.ax-start-text p { margin-top: 4px; max-width: 72ch; color: var(--text-2); }
.ax-startform { display: flex; gap: 8px; max-width: 760px; }
.ax-startform input { flex: 1; min-width: 0; height: 40px; padding-left: 12px; font-size: 14px; }
.ax-startform .ax-btn { min-height: 40px; }
.ax-login { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding: 18px 20px; }
.ax-login h2 { font-size: 16px; }
.ax-login p { margin-top: 4px; max-width: 52ch; font-size: 13.5px; color: var(--text-2); }
.ax-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ax-card { display: grid; gap: 6px; align-content: start; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.ax-card dt { font-size: 13px; color: var(--text-2); }
.ax-card dd { margin: 0; display: grid; gap: 4px; }
.ax-card b { font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.ax-card small { font-size: 12.5px; color: var(--muted); }
.ax-card.is-primary { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.ax-card.is-primary dt, .ax-card.is-primary small { color: rgba(21, 23, 27, .72); }
.ax-tools { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 8px 0 0; }
.ax-tools li { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px 20px; border-left: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.ax-tools li:first-child { border-left: 0; }
.ax-tools h3 { font-size: 14.5px; color: var(--text); }
.ax-tools .ax-meta { margin-top: auto; padding-top: 4px; }

/* ── account ───────────────────────────────────────── */
.ax-dl { display: grid; gap: 0; margin: 0; }
.ax-dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.ax-dl div:first-child { border-top: 0; padding-top: 0; }
.ax-dl dt { color: var(--muted); font-size: 13.5px; }
.ax-dl dd { margin: 0; overflow-wrap: anywhere; }
.ax-usages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ax-usage { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); }
.ax-usage-lab { display: grid; gap: 2px; font-size: 13px; color: var(--text-2); }
.ax-usage-lab b { font-size: 15px; font-weight: 500; color: var(--text); }
.ax-usage-bar { height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.ax-usage-bar i { display: block; height: 100%; background: var(--yellow); }
.ax-inline-form { display: flex; gap: 8px; max-width: 520px; }
.ax-inline-form input { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font: 13.5px var(--sans); }
.ax-inline-form input:focus { outline: none; border-color: var(--muted); }
.ax-account-foot { justify-content: space-between; }

/* ── plans ─────────────────────────────────────────── */
.ax-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ax-plan-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.ax-plan-card.is-rec { border-color: var(--yellow-line); }
.ax-plan-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ax-plan-h h2 { font-size: 16px; }
.ax-plan-price { color: var(--muted); font-size: 13px; }
.ax-plan-price b { font-size: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--text); margin-right: 2px; }
.ax-plan-card ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.ax-plan-card li { padding-left: 20px; position: relative; }
.ax-plan-card li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 1.5px solid var(--yellow); border-bottom: 1.5px solid var(--yellow); transform: rotate(-45deg); }
.ax-plan-card .ax-btn { margin-top: auto; }
.ax-plan-card [aria-disabled] { cursor: default; color: var(--muted); }

/* ── market picker ─────────────────────────────────── */
.ax-picker { display: grid; gap: 10px; }
.ax-picker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ax-picker-head .ax-sub { font-size: 13.5px; }
.ax-pick-group, .ax-pick-solo { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ax-pick-group > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 1em; align-items: baseline; gap: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.ax-pick-group > summary::-webkit-details-marker { display: none; }
.ax-pick-group > summary::after { content: "+"; color: var(--muted); text-align: right; }
.ax-pick-group[open] > summary { border-bottom: 1px solid var(--line); }
.ax-pick-group[open] > summary::after { content: "−"; }
.ax-pick-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-weight: 400; }
.ax-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px; align-items: center; gap: 16px; width: 100%; padding: 11px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.ax-pick:first-child { border-top: 0; }
.ax-pick:hover { background: var(--panel-2); }
.ax-pick-name { overflow-wrap: anywhere; }
.ax-pick-price { font-weight: 600; color: var(--yellow); }
.ax-pick-go { font-size: 12.5px; color: var(--muted); text-align: right; }

/* ── the market ────────────────────────────────────── */
.ax-mk { display: grid; gap: 14px; padding: 18px 20px 20px; }
.ax-mk-top { display: flex; justify-content: space-between; gap: 16px; }
.ax-mk-event { font-size: 13px; color: var(--muted); }
.ax-mk-q { font-size: 20px; font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; margin-top: -6px; }
.ax-odds { display: grid; gap: 7px; max-width: 760px; }
.ax-odds-lab { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--text-2); }
.ax-odds-lab b { font-size: 16px; font-weight: 600; color: var(--text); margin-right: 6px; }
.ax-odds-lab span:first-child b { color: var(--yellow); }
.ax-odds-bar { height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.ax-odds-bar i { display: block; height: 100%; width: 50%; background: var(--yellow); }
.ax-stats { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; }
.ax-stats div { display: grid; gap: 2px; align-content: start; }
.ax-stats dt { font-size: 12.5px; color: var(--muted); }
.ax-stats dd { margin: 0; font-size: 14px; }

/* ── which analysis ────────────────────────────────── */
.ax-run-body { display: grid; gap: 18px; padding: 16px 20px 20px; }
.ax-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ax-mode { position: relative; display: block; cursor: pointer; }
.ax-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ax-mode-box { position: relative; display: grid; gap: 4px; height: 100%; padding: 13px 14px 13px 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); }
.ax-mode-box::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ax-mode-box b { font-size: 14.5px; color: var(--text); }
.ax-mode:hover .ax-mode-box { border-color: var(--muted); }
.ax-mode input:checked + .ax-mode-box { border-color: var(--yellow); background: var(--panel-2); }
.ax-mode input:checked + .ax-mode-box::before { box-shadow: inset 0 0 0 5px var(--yellow); }
.ax-mode input:focus-visible + .ax-mode-box { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ax-opts { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 16px 28px; align-items: start; }
.ax-opt-title { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.ax-seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.ax-seg-row { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.ax-seg label { position: relative; cursor: pointer; }
.ax-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ax-seg span { display: block; padding: 6px 12px; border-radius: 6px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.ax-seg label:hover span { color: var(--text); }
.ax-seg input:checked + span { background: var(--panel-3); color: var(--text); font-weight: 500; }
.ax-seg input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 1px; }
.ax-chainopt { display: grid; gap: 8px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.ax-chainopt.is-on { border-color: var(--yellow-line); }
.ax-switch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.ax-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ax-switch-track { position: relative; width: 34px; height: 20px; margin-top: 1px; border-radius: 10px; background: var(--panel-3); transition: background-color .15s ease; }
.ax-switch-track i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-2); transition: transform .15s ease; }
.ax-switch input:checked + .ax-switch-track { background: var(--yellow); }
.ax-switch input:checked + .ax-switch-track i { transform: translateX(14px); background: var(--yellow-ink); }
.ax-switch input:focus-visible + .ax-switch-track { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ax-switch:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.ax-switch-text { display: grid; gap: 3px; font-size: 13px; color: var(--text-2); }
.ax-switch-text b { font-size: 14.5px; color: var(--text); }
.ax-chainopt-q { padding-left: 46px; font-size: 12.5px; color: var(--muted); }
.ax-chainopt-q a { color: var(--text-2); }
.ax-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ax-cost { font-size: 13px; color: var(--muted); }
.ax-eta { display: grid; gap: 1px; padding: 0 16px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ax-eta span { font-size: 12px; color: var(--muted); }
.ax-eta b { font-size: 14px; font-weight: 600; }
.ax-cost b { color: var(--text-2); font-weight: 500; }

/* ── a scan's status ───────────────────────────────── */
.ax-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.ax-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ax-status[data-state="pending"] i { background: var(--yellow); }
.ax-status[data-state="done"] i { background: var(--green); }
.ax-status[data-state="failed"] { color: var(--red); }
.ax-status[data-state="failed"] i { background: var(--red); }

/* the live run: steps, a counter, and the scorer's own rows */
.ax-live { overflow: hidden; }
.ax-pipe { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 18px 20px 0; }
.ax-pipe li { display: grid; gap: 2px; padding-top: 10px; border-top: 3px solid var(--panel-3); font-size: 12.5px; color: var(--muted); }
.ax-pipe li b { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ax-pipe li span { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.ax-pipe li.is-on { border-top-color: var(--yellow); }
.ax-pipe li.is-on span { color: var(--text); }
.ax-pipe li.is-done { border-top-color: var(--text-2); }
.ax-pipe li.is-done b::after { content: " · done"; }
.ax-live-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 6px 24px; padding: 20px 20px 16px; }
.ax-live-time { display: flex; gap: 24px; margin: 0; }
.ax-live-time div { display: grid; gap: 2px; }
.ax-live-time dt { font-size: 12.5px; color: var(--muted); }
.ax-live-time dd { margin: 0; font-size: 16px; font-weight: 500; }
.ax-count { display: flex; align-items: baseline; gap: 6px; }
.ax-count b { font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.ax-count span { font-size: 16px; color: var(--muted); }
.ax-count small { margin-left: 2px; font-size: 13px; color: var(--muted); }
.ax-live-step { font-size: 14.5px; font-weight: 500; }
.ax-live-step small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.ax-bar { grid-column: 1 / -1; position: relative; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.ax-bar i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 2px; transition: width .4s ease; }
.ax-bar.is-busy i { width: 30% !important; animation: ax-sweep 1.6s ease-in-out infinite; }
.ax-feed { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); font-size: 13px; }
.ax-feed li { display: grid; grid-template-columns: minmax(0, 13em) 90px 3em minmax(0, 1fr); align-items: center; gap: 14px; padding: 9px 20px; border-bottom: 1px solid var(--line); }
.ax-feed li:last-child { border-bottom: 0; }
.ax-feed .f-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-feed .f-score { text-align: right; font-weight: 600; color: var(--text-2); }
.ax-feed .f-why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.ax-feed .f-bar { height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.ax-feed .f-bar i { display: block; height: 100%; width: calc(var(--s) * 1%); background: var(--zero); }
.ax-feed li[data-level="n"] .f-bar i { background: var(--yellow); }
.ax-feed li[data-level="e"] .f-bar i { background: var(--orange); }
.ax-feed li[data-level="s"] .f-bar i { background: var(--red); }
.ax-feed li[data-level="n"] .f-score { color: var(--yellow); }
.ax-feed li[data-level="e"] .f-score { color: var(--orange); }
.ax-feed li[data-level="s"] .f-score { color: var(--red); }
.ax-live-foot { display: flex; justify-content: space-between; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ax-live-foot b { color: var(--text-2); font-weight: 500; }
.ax-job-note { font-size: 13px; color: var(--muted); max-width: 70ch; }

/* ── results ───────────────────────────────────────── */
.ax-sec-head { display: grid; gap: 6px; }
.ax-verdict { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.ax-verdict::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--zero); }
.ax-verdict[data-level="n"]::before { background: var(--yellow); }
.ax-verdict[data-level="e"]::before { background: var(--orange); }
.ax-verdict[data-level="s"]::before { background: var(--red); }

.ax-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.ax-kpi { display: grid; align-content: start; gap: 6px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); }
.ax-kpi dt { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.ax-kpi dd { margin: 0; display: grid; gap: 4px; }
.ax-kpi b { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.ax-kpi .u { margin-left: 3px; font-size: 13px; color: var(--muted); }
.ax-kpi small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.ax-kpi.lvl-n dt::before, .ax-kpi.lvl-e dt::before, .ax-kpi.lvl-s dt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.ax-kpi.lvl-n dt::before { background: var(--yellow); }
.ax-kpi.lvl-e dt::before { background: var(--orange); }
.ax-kpi.lvl-s dt::before { background: var(--red); }
.ax-kpi.is-hot b { color: var(--yellow); }

/* where every wallet landed: dots over the four bands */
.ax-fig { margin: 0; display: grid; gap: 10px; }
.ax-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; }
.ax-fig figcaption b { font-size: 14px; font-weight: 600; }
.ax-fig figcaption span { font-size: 12.5px; color: var(--muted); }
.spread-box { position: relative; padding: 12px 12px 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.spread-plot { position: relative; height: max(64px, var(--h)); border-bottom: 1px solid var(--line-2); }
.zone { position: absolute; top: 0; bottom: 0; }
.spread-plot .zone + .zone { border-left: 1px dashed var(--line); }
.zone[data-level="n"] { background: rgba(242, 214, 0, .045); }
.zone[data-level="e"] { background: rgba(245, 149, 63, .05); }
.zone[data-level="s"] { background: rgba(240, 88, 93, .06); }
.zone[data-level="neg"] { background: rgba(255, 255, 255, .02); }
.dot { position: absolute; width: var(--d); height: var(--d); border-radius: 50%; background: var(--zero); }
.dot[data-level="n"] { background: var(--yellow); }
.dot[data-level="e"] { background: var(--orange); }
.dot[data-level="s"] { background: var(--red); }
.dot[data-level="neg"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.dot.is-signal { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--text); z-index: 1; }
.spread-axis { position: relative; height: 24px; font-size: 11.5px; color: var(--muted); }
.spread-axis span { position: absolute; top: 5px; transform: translateX(-50%); }
.spread-axis span:first-child { transform: none; }
.spread-axis span:last-child { transform: translateX(-100%); }
.spread-key { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.spread-key li { flex-basis: 0; min-width: 0; padding-top: 6px; border-top: 2px solid var(--zero); }
.spread-key li[data-level="n"] { border-top-color: var(--yellow); }
.spread-key li[data-level="e"] { border-top-color: var(--orange); }
.spread-key li[data-level="s"] { border-top-color: var(--red); }
.spread-key b { color: var(--text); font-weight: 500; }
.spread-key .n { display: block; }

/* both sides compared on one axis */
.vs-plot { --name: 92px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.vs-half, .vs-axis { display: grid; grid-template-columns: var(--name) 1fr; column-gap: 12px; }
.vs-name { font-size: 13px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.vs-name b { display: block; font-weight: 600; }
.vs-name span { display: block; color: var(--muted); font-size: 12px; }
.vs-half.is-up .vs-name { align-self: end; padding-bottom: 2px; }
.vs-half.is-down .vs-name { align-self: start; padding-top: 2px; }
.vs-lane { position: relative; min-width: 0; }
.vs-dots { position: relative; min-height: 76px; }
.vs-more { position: absolute; transform: translateX(-50%); font-size: 10px; font-weight: 600; line-height: 12px; color: var(--text-2); white-space: nowrap; }
.vs-box { position: relative; height: 16px; }
.vs-half.is-up .vs-box { border-bottom: 1px solid var(--line-2); }
.vs-half.is-down .vs-box { border-top: 1px solid var(--line-2); }
.vs-wh { position: absolute; top: 50%; height: 1px; background: var(--muted); }
.vs-iqr { position: absolute; top: 4px; bottom: 4px; background: var(--line-2); border-radius: 2px; }
.vs-med { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: var(--yellow); border-radius: 1px; }
.vs-ticks { position: relative; height: 24px; font-size: 11.5px; color: var(--muted); }
.vs-ticks span { position: absolute; top: 5px; transform: translateX(-50%); z-index: 1; }
.vs-ticks span:first-child { transform: none; }
.vs-ticks span:last-of-type { transform: translateX(-100%); }
.vs-mark { position: absolute; top: 0; height: 4px; min-width: 3px; background: var(--yellow); border-radius: 0 0 2px 2px; }
.vs-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.vs-odds { display: grid; align-content: start; gap: 10px; padding: 16px 18px 18px; border-right: 1px solid var(--line); background: var(--panel-2); }
.vs-q { font-size: 12.5px; color: var(--text-2); }
.vs-big { color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.vs-big b { display: block; margin-bottom: 4px; font-size: 38px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.g-bar { position: relative; height: 6px; border-radius: 3px; background: var(--panel-3); }
.g-bar::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--muted); }
.g-bar i { position: absolute; top: 0; bottom: 0; background: var(--yellow); border-radius: 3px; }
.g-lab { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.vs-p { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.vs-p b { color: var(--text-2); }
.vs-p.is-real b { color: var(--yellow); }
.vs-few { color: var(--text-2); font-size: 13.5px; }
.vs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; align-self: start; }
.vs-table th, .vs-table td { padding: 8px 16px 8px 0; border-top: 1px solid var(--line); text-align: left; }
.vs-table th:first-child { padding-left: 16px; }
.vs-table thead th { border-top: 0; padding-top: 12px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.vs-table tbody th { font-weight: 400; color: var(--text-2); }
.vs-table .n { text-align: right; white-space: nowrap; }
.vs-table .is-more span { color: var(--yellow); font-weight: 600; }

/* tables */
.ax-th { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.ax-th h4 { font-size: 14px; font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ax-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13.5px; }
.ax-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.ax-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ax-table tbody tr:last-child td { border-bottom: 0; }
.ax-table .n { text-align: right; white-space: nowrap; }
.ax-table .w { font-weight: 500; overflow-wrap: anywhere; }
.ax-table .w a { margin-right: 6px; text-decoration: none; }
.ax-table .w a:hover { text-decoration: underline; }
.ax-table .why { color: var(--text-2); min-width: 170px; }
.ax-table .mk { min-width: 220px; }
.ax-table .up { color: var(--green); }
.ax-table .down { color: var(--red); }
.ax-table b.flag { color: var(--red); }
.ax-table .rk { color: var(--muted); }
.ax-table .muted { color: var(--muted); }
#overview-table { padding: 4px 8px 8px; }
#overview-table .ax-table { min-width: 560px; }
#overview-table .ax-table tbody tr { cursor: pointer; }
#overview-table .ax-table tbody tr:hover td { background: var(--panel-2); }
.tag { display: inline-block; padding: 0 7px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 11.5px; font-weight: 500; line-height: 1.6; color: var(--text-2); white-space: nowrap; vertical-align: 1px; }
.tag-signal { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.tag-chain { border-color: var(--yellow-line); color: var(--yellow); }
.sc { white-space: nowrap; }
.sc b { display: inline-block; min-width: 2.6em; font-size: 14px; font-weight: 600; }
.sc b[data-level="n"] { color: var(--yellow); }
.sc b[data-level="e"] { color: var(--orange); }
.sc b[data-level="s"] { color: var(--red); }
.sbar, .dbar { position: relative; display: inline-block; vertical-align: middle; width: 96px; height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.sbar i { display: block; height: 100%; width: calc(var(--s) * 1%); background: var(--zero); border-radius: 3px; }
.sbar[data-level="n"] i { background: var(--yellow); }
.sbar[data-level="e"] i { background: var(--orange); }
.sbar[data-level="s"] i { background: var(--red); }
/* Smart Score runs −60 to +70: zero sits 60/130 of the way along */
.dbar::before { content: ""; position: absolute; left: 46.15%; top: 0; bottom: 0; width: 1px; background: var(--muted); z-index: 1; }
.dbar i { position: absolute; top: 0; bottom: 0; left: 46.15%; width: calc(var(--w) * .5385%); background: var(--yellow); }
.dbar.is-neg i { left: auto; right: 53.85%; width: calc(var(--w) * .4615%); background: var(--zero); }

/* insider wallets: a row opens to show how its score adds up */
.wallets .w-row { cursor: pointer; }
.wallets .w-row:hover td, .wallets .w-row.is-open td { background: var(--panel-2); }
.wallets .w-row.is-signal td:first-child { box-shadow: inset 2px 0 0 var(--yellow); }
.tg { width: 44px; text-align: right; }
.wd-toggle { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; cursor: pointer; }
.wd-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translate(-50%, -70%) rotate(45deg); transition: transform .15s ease; }
.wd-toggle[aria-expanded="true"]::after { transform: translate(-50%, -25%) rotate(225deg); }
.wd-toggle:hover { border-color: var(--muted); }
.wd-row td { padding: 4px 12px 20px; background: var(--panel-2); }
.wd { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 36px; padding-top: 12px; border-top: 1px solid var(--line); }
.wd-title { margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.parts { display: grid; gap: 8px; margin: 0; }
.part { display: grid; grid-template-columns: 170px minmax(60px, 1fr) 48px; align-items: center; gap: 12px; font-size: 13px; }
.part dt { color: var(--text-2); }
.part dd { margin: 0; }
.part .meter { height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.part .meter i { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--muted); border-radius: 3px; }
.part.signal .meter i { background: var(--yellow); }
.part .pts { text-align: right; font-size: 12.5px; color: var(--text-2); }
.part .tag { margin-left: 6px; }
.wd-cap { margin-top: 10px; font-size: 12px; color: var(--muted); }
.wd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; }
.wd-facts dt { font-size: 12px; color: var(--muted); }
.wd-facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; }
.wd-side p { margin-top: 14px; font-size: 13px; color: var(--text-2); }
.wd-trail { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.wd-trail .ax-sub { margin-bottom: 8px; }
.trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trail > li > p { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.trail .tag { margin-left: 6px; }
.trail-bets { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.trail-bets li[data-rel="other"] { color: var(--muted); }
.trail-bets .tag { margin: 0 4px 0 0; }

/* the AI summary: the report's first panel */
.ax-ai { border-color: var(--yellow-line); }
.ax-ai-body { display: grid; gap: 10px; padding: 12px 20px 4px; }
.ax-ai-head { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ax-ai-points { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); max-width: 90ch; }
.ax-ai-points li::marker { color: var(--yellow); }
.ax-ai-take { font-size: 14px; color: var(--text); max-width: 90ch; }
.ax-ai-foot { padding: 10px 20px 16px; font-size: 12px; color: var(--muted); }
.ax-ai-wait { font-size: 13.5px; color: var(--text-2); }
.ax-ai-skel { display: grid; gap: 8px; max-width: 640px; }
.ax-ai-skel i { display: block; height: 10px; border-radius: 5px; background: var(--panel-3); }
.ax-ai-skel i:nth-child(2) { width: 85%; }
.ax-ai-skel i:nth-child(3) { width: 60%; }

/* both sides next to each other */
.ax-glance-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ax-glance { display: grid; align-content: start; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); }
.ax-glance.is-lead { border-color: var(--yellow-line); }
.ax-glance-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ax-glance-h h3 { font-size: 15px; }
.ax-verdict-sm { font-size: 15px; font-weight: 500; }
.ax-verdict-sm::before { width: 8px; height: 8px; }
.ax-glance-dl { display: grid; margin: 0; }
.ax-glance-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ax-glance-dl dt { color: var(--text-2); }
.ax-glance-dl dd { margin: 0; font-weight: 500; text-align: right; }
.ax-glance-dl dd.is-hot { color: var(--yellow); }
.ax-sides { display: grid; gap: 12px; }
.ax-tabs-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 8px; }
.ax-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.ax-tab { padding: 6px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
.ax-tab:hover { color: var(--text); }
.ax-tab[aria-selected="true"] { background: var(--panel-3); color: var(--text); font-weight: 500; }
.ax-tabpane { display: grid; gap: 16px; }

/* ── chain analysis ────────────────────────────────── */
.ax-bmap { min-width: 0; }
.ax-chain-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.ax-side-h { font-size: 13px; font-weight: 500; color: var(--text-2); }
.ax-chain .ax-sec + .ax-sec { border-top: 1px solid var(--line); }
.ax-box { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-2); min-width: 0; }
.ax-box-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.ax-box-h h4 { font-size: 14px; font-weight: 600; }
.ax-box p { font-size: 13px; color: var(--text-2); }
.ax-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ax-group { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ax-group:first-child { padding-top: 0; border-top: 0; }
.ax-group-facts { display: grid; align-content: start; gap: 8px; font-size: 13px; color: var(--text-2); }
.ax-group-facts .g-big { font-size: 13.5px; color: var(--text); }
.ax-group-facts .g-big b { font-size: 17px; }
.ax-members { font-size: 12.5px; overflow-wrap: anywhere; }
.ax-members .muted { color: var(--muted); }
.ax-graph { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.ax-graph .e { stroke: var(--line-2); stroke-width: 1.3; }
.ax-graph .e-direct { stroke: var(--yellow); stroke-dasharray: 4 3; }
.ax-graph .hub { fill: var(--panel-3); stroke: var(--text-2); stroke-width: 1.3; }
.ax-graph .hub-dep { stroke: var(--muted); stroke-dasharray: 3 2; }
.ax-graph .node { fill: var(--yellow); stroke: var(--panel); stroke-width: 2; }
.ax-graph .node-small { fill: var(--panel); stroke: var(--yellow); stroke-width: 1.5; }
.ax-graph text { font: 10px var(--sans); fill: var(--text-2); }
.ax-graph .t-hub { fill: var(--muted); }
.ax-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.ax-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ax-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.ax-legend i.l-small { background: transparent; box-shadow: inset 0 0 0 1.5px var(--yellow); }
.ax-legend i.l-hub { border-radius: 2px; background: var(--panel-3); box-shadow: inset 0 0 0 1.3px var(--text-2); }
.ax-legend i.l-direct { width: 14px; height: 0; border-radius: 0; background: none; border-top: 1.5px dashed var(--yellow); }
.ax-empty { display: grid; gap: 4px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); }
.ax-empty b { color: var(--text); font-weight: 500; }
.ax-fresh { display: grid; gap: 12px; }
.ax-fbar { display: grid; gap: 5px; }
.ax-fbar-lab { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); }
.ax-fbar-lab b { font-size: 14px; color: var(--text); }
.ax-fbar-track { position: relative; height: 8px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.ax-fbar-track i { display: block; height: 100%; width: calc(var(--p) * 1%); min-width: 2px; background: var(--muted); }
.ax-fbar.is-side .ax-fbar-track i { background: var(--text-2); }
.ax-fresh.is-wave .ax-fbar.is-side .ax-fbar-track i { background: var(--yellow); }
.ax-fbar-track::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rule-at, 20%); width: 1px; background: var(--text); opacity: .4; }
.ax-fbar small { font-size: 12px; color: var(--muted); }
.ax-wave { white-space: nowrap; display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.ax-wave.is-on { background: var(--yellow); color: var(--yellow-ink); }
.ax-wave.is-off { border: 1px solid var(--line-2); color: var(--text-2); }
.ax-chain-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 12.5px; color: var(--muted); }
.ax-chain-foot b { color: var(--text-2); font-weight: 600; }

/* deep dive: connected wallets in full */
.ax-dive-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; padding: 18px 20px; }
.ax-dive-head > div:first-child { display: grid; gap: 6px; }
.ax-dive-count { font-size: 18px; font-weight: 600; }
.ax-map-wrap { overflow-x: auto; }
.ax-map { min-width: 300px; }
.ax-graph .e-sep { stroke: var(--line); stroke-width: 1; }
.ax-graph .t-island { fill: var(--text-2); font-size: 11px; font-weight: 600; }
.ax-graph .is-pick { cursor: pointer; }
.ax-graph .is-pick:hover { stroke: var(--text); }
.ax-graph .is-picked { stroke: var(--text); stroke-width: 3; }
.ax-addr { white-space: nowrap; }
.ax-addr code { font: 12.5px var(--mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace); color: var(--text); user-select: all; }
.ax-copy { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer; vertical-align: 1px; }
.ax-copy:hover { border-color: var(--muted); color: var(--text); }
.ax-copy.is-copied { border-color: var(--yellow-line); color: var(--yellow); }
.ax-dive-head .ax-copy { margin-left: 0; min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--text); background: var(--panel); }
.ax-links { white-space: nowrap; font-size: 12.5px; }
.ax-links a { color: var(--text-2); }
.ax-score { font-weight: 600; }
.ax-score[data-level="n"] { color: var(--yellow); }
.ax-score[data-level="e"] { color: var(--orange); }
.ax-score[data-level="s"] { color: var(--red); }
.ax-dive-t { min-width: 900px; }
.ax-addr-name { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.ax-dive-t tr.is-picked td { background: var(--panel-2); box-shadow: inset 0 1px 0 var(--yellow-line), inset 0 -1px 0 var(--yellow-line); }
.ax-dive-t .why .tag { margin-left: 6px; }

/* chain analysis not run: what it would add, and the one button */
.ax-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 32px; padding: 20px; }
.ax-cta .ax-kicker { font-size: 12.5px; color: var(--muted); }
.ax-cta h3 { margin-top: 4px; font-size: 17px; }
.ax-cta p { margin-top: 6px; max-width: 66ch; font-size: 13.5px; color: var(--text-2); }
.ax-cta ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ax-cta li { padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; color: var(--text-2); }
.ax-cta-go { display: grid; gap: 8px; justify-items: start; }
.ax-cta-go p { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 30ch; }

/* notes, the how-to, downloads */
.ax-foot { display: grid; gap: 12px; }
.ax-howto { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.ax-howto summary { position: relative; padding: 13px 40px 13px 18px; font-weight: 500; font-size: 14px; cursor: pointer; list-style: none; }
.ax-howto summary::-webkit-details-marker { display: none; }
.ax-howto summary::after { content: "+"; position: absolute; right: 18px; top: 12px; color: var(--muted); }
.ax-howto[open] summary::after { content: "−"; }
.ax-howto-body { display: grid; gap: 10px; padding: 0 18px 16px; font-size: 13.5px; color: var(--text-2); max-width: 80ch; }
.ax-howto-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.ax-howto-body b { color: var(--text); font-weight: 500; }
.ax-disclaimer { font-size: 12.5px; color: var(--muted); }
.ax-chart img { width: 100%; height: auto; border-radius: var(--r-sm); background: #fff; }

@keyframes ax-sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── narrower screens ──────────────────────────────── */
@media (max-width: 1180px) {
  .ax-cards, .ax-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-chain-grid { grid-template-columns: minmax(0, 1fr); }
  .ax-meter { min-width: 76px; }
}
@media (max-width: 960px) {
  .ax-app { grid-template-columns: minmax(0, 1fr); }
  .ax-side { position: static; height: auto; order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .ax-side .ax-brand { display: none; }
  .ax-tools { grid-template-columns: minmax(0, 1fr); }
  .ax-tools li { border-left: 0; border-top: 1px solid var(--line); }
  .ax-tools li:first-child { border-top: 0; }
  .ax-group { grid-template-columns: minmax(0, 1fr); }
  .ax-group .ax-graph { max-width: 420px; }
  .ax-quota .ax-plan { display: none; }
  .ax-top-brand { display: flex !important; }
}
@media (max-width: 760px) {
  .ax-top { height: auto; flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; }
  .ax-top-right { margin-left: auto; gap: 12px; }
  .ax-search { order: 3; max-width: none; flex-basis: 100%; }
  body[data-view="intro"] .ax-search { display: none; }
  .ax-meter { min-width: 56px; }
  .ax-main { padding: 18px 16px 48px; }
  .ax-pagehead h1 { font-size: 22px; }
  .ax-startform { flex-direction: column; }
  .ax-startform input { flex: none; }
  .ax-glance-row { grid-template-columns: minmax(0, 1fr); }
  .ax-addr { white-space: normal; }
  .ax-addr code { word-break: break-all; }
  .ax-usages { grid-template-columns: minmax(0, 1fr); }
  .ax-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ax-eta { padding: 0; border: 0; }
  .ax-modes, .ax-opts { grid-template-columns: minmax(0, 1fr); }
  .ax-stats { display: grid; grid-template-columns: auto auto; gap: 10px 24px; justify-content: start; }
  .ax-pipe { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .ax-live-main { grid-template-columns: minmax(0, 1fr); }
  .ax-feed li { grid-template-columns: minmax(0, 1fr) 3em; row-gap: 3px; padding: 9px 16px; }
  .ax-feed .f-bar { display: none; }
  .ax-feed .f-why { grid-column: 1 / -1; }
  .vs-stats { grid-template-columns: minmax(0, 1fr); }
  .vs-odds { border-right: 0; border-bottom: 1px solid var(--line); }
  .ax-cta { grid-template-columns: minmax(0, 1fr); }
  .ax-sec, .ax-mk, .ax-run-body, .ax-start, .ax-ph { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 640px) {
  .ax-plans { grid-template-columns: minmax(0, 1fr); }
  .ax-cards { gap: 8px; }
  .ax-card { padding: 13px 14px; }
  .ax-card b { font-size: 22px; }
  .ax-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ax-kpi b { font-size: 21px; }
  .vs-plot { --name: 54px; }
  .vs-half, .vs-axis { column-gap: 8px; }
  .vs-big b { font-size: 32px; }
  .ax-pick { grid-template-columns: minmax(0, 1fr) auto; }
  .ax-pick-go { display: none; }
  /* tables become small cards, labels beside the numbers */
  .ax-table, #overview-table .ax-table { min-width: 0; }
  .ax-table thead { position: absolute; left: -9999px; }
  .ax-table tr:not(.wd-row) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; position: relative; background: var(--panel-2); }
  .ax-table td { display: block; padding: 0; border: 0; text-align: left; background: transparent !important; box-shadow: none !important; }
  .ax-table .n { text-align: left; }
  .ax-table td[data-label]:not(.w, .sc, .why, .mk)::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); }
  .ax-table .w, .ax-table .sc, .ax-table .why, .ax-table .mk, .ax-table .ax-addr, .ax-table .ax-links { grid-column: 1 / -1; }
  .ax-table .w { padding-right: 40px; }
  .ax-table .tg { position: absolute; right: 10px; top: 10px; width: auto; }
  .ax-table .sbar, .ax-table .dbar { width: calc(100% - 3.4em); }
  .wallets .w-row.is-signal { box-shadow: inset 2px 0 0 var(--yellow); }
  .ax-table tr.wd-row { display: block; margin: -8px 0 8px; }
  .wd-row td { display: block; padding: 4px 12px 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); }
  .wd { grid-template-columns: minmax(0, 1fr); }
  .part { grid-template-columns: minmax(0, 1fr) auto; }
  .part .meter { display: none; }
  .ranked-t .rk::before { content: "#"; }
  .ranked-t td:last-child { grid-column: 3; justify-self: end; align-self: end; }
}
@media (max-width: 420px) {
  .ax-quota .ax-meter:nth-child(n+4) { display: none; }      /* scans and chain stay; sweeps go */
}
