/* TruScan, "Blacklight": UV light shows what a counterfeit hides. The page stays dark and quiet,
   and only what a scan reveals glows. No inline styles anywhere (the CSP forbids them). */

@font-face {
  font-family: "Archivo";
  src: url(/assets/fonts/archivo-latin-var.woff2?v=4c98b9d490) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/assets/fonts/jetbrains-mono-latin-var.woff2?v=2c32b9b3ee) format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --night: #090E10;
  --deck: #11191C;
  --deck-hi: #1B272B;
  --raised: #253237;
  --wire: #405056;
  --wire-soft: #28363B;
  --well: #0B1114;
  --paper: #F0F6F3;
  --mist: #C4D3CE;
  --haze: #A0B2AC;
  --ash: #849891;
  --uv: #A5F3CE;
  --uv-text: #BBF6DC;
  --glow: #A5F3CE;
  --amber: #FFC15A;
  --signal: #FF6B8B;
  --signal-text: #FF9DB2;
  --ice: #5CC8FF;

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-panel: 16px;
  --r-control: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; outline: none; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:where(a) { color: var(--uv-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(a:hover) { color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--uv);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--uv);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--night); }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.muted { color: var(--haze); }
.small { font-size: 14px; }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 14, 16, 0.94);
  border-bottom: 1px solid var(--wire-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--body); font-weight: 750; font-size: 26px; letter-spacing: -0.055em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--haze);
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { color: var(--paper); background: var(--deck); }
.nav-link[aria-current="page"] { color: var(--paper); background: var(--deck-hi); }
.count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--raised);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- hero: the UV lens over a field of wallets ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--wire-soft);
  isolation: isolate;
}
.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.hero.is-lit .field { opacity: 1; }

/* The reticle: drawn as SVG and moved with a transform, so it stays sharp and smooth. */
.lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 300px;
  height: 300px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  will-change: transform;
}
.hero.is-lit .lens { opacity: 1; }
.lens-svg { width: 100%; height: 100%; overflow: visible; fill: none; }
.lens-halo { stroke: rgba(165, 123, 255, 0.14); stroke-width: 14; }
.lens-rim { stroke: var(--uv); stroke-width: 1.5; }
.lens-rim-inner { stroke: rgba(124, 255, 203, 0.32); stroke-width: 0.75; }
.lens-dial { transform-box: fill-box; transform-origin: center; }
.lens-dash { stroke: rgba(205, 184, 255, 0.5); stroke-width: 1; stroke-dasharray: 1.2 7.6; }
.lens-ticks { stroke: var(--uv); stroke-width: 1.5; stroke-linecap: round; }
.lens-cross { stroke: rgba(241, 238, 255, 0.55); stroke-width: 1; stroke-linecap: round; }

/* The readout beside the glass: what TruScan does with the wallet under the lens. */
.lens-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 13px 10px;
  border-radius: 10px;
  border: 1px solid rgba(165, 123, 255, 0.4);
  border-color: color-mix(in srgb, var(--tag-color, #A57BFF) 45%, transparent);
  background: rgba(18, 15, 51, 0.9);
  box-shadow: 0 8px 28px rgba(5, 3, 20, 0.45);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms var(--ease);
  will-change: transform;
}
.lens-tag.is-on { opacity: 1; }
.lens-tag-title { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; line-height: 1.2; color: var(--paper); }
.lens-tag-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tag-color, #A57BFF);
  box-shadow: 0 0 10px var(--tag-color, #A57BFF);
}
.lens-tag-note { padding-left: 15px; font-size: 12.5px; line-height: 1.3; color: var(--haze); }
.lens-tag.is-fresh .lens-tag-title,
.lens-tag.is-fresh .lens-tag-note { animation: tag-in 220ms var(--ease) both; }
.lens-tag.is-fresh .lens-tag-note { animation-delay: 40ms; }
@keyframes tag-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(56px, 8vw, 104px);
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }
.hero-title {
  max-width: 11ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8.4vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  pointer-events: none;
  text-wrap: balance;
}
.hero-lead {
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--mist);
  pointer-events: none;
}

/* ---------- the scan field ---------- */

.scan-form { display: flex; flex-direction: column; gap: 12px; }
.scan-form-hero { max-width: 700px; }

.visor {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: var(--deck-hi);
  border: 1px solid #4A41A0;
  box-shadow: 0 0 0 4px rgba(165, 123, 255, 0.12);
  overflow: hidden;
  transition: border-color 160ms, box-shadow 160ms;
}
.visor:focus-within { border-color: var(--uv); box-shadow: 0 0 0 4px rgba(165, 123, 255, 0.28); }
.visor.is-error { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(255, 107, 139, 0.2); }
.visor input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 16px;
  outline: none;
}
.visor input::placeholder { color: var(--ash); font-family: var(--body); opacity: 1; }
.visor-lens { width: 22px; height: 22px; margin-left: 8px; color: var(--uv); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* While a scan runs, a UV line sweeps the field. */
.visor.is-scanning::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(165, 123, 255, 0.35), transparent);
  animation: sweep 1.1s linear infinite;
  pointer-events: none;
}
@keyframes sweep { to { left: 100%; } }

.icon-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-control);
  border: 1px solid var(--wire);
  background: var(--raised);
  color: var(--mist);
}
.icon-btn:hover { color: var(--paper); border-color: var(--uv); }
.icon-btn-sm { width: 36px; height: 36px; border-radius: 9px; background: transparent; }
.icon-btn-sm .ic { width: 17px; height: 17px; }

.btn-uv,
.btn-line,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-control);
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms, border-color 140ms, color 140ms, transform 140ms;
}
.btn-uv {
  border: 0;
  background: var(--uv);
  color: var(--night);
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  padding: 0 18px;
}
.btn-uv:hover { background: #C6FFE4; color: var(--night); }
.btn-uv:active { transform: translateY(1px); }
.btn-line { border: 1px solid var(--wire); background: transparent; color: var(--paper); }
.btn-line:hover { border-color: var(--uv); color: var(--paper); background: rgba(165, 243, 206, 0.06); }
.btn-soft { border: 0; background: var(--raised); color: var(--uv-text); }
.btn-soft:hover { background: var(--wire-soft); color: var(--paper); }
.btn-glow { border-color: var(--uv); box-shadow: 0 0 22px rgba(165, 123, 255, 0.25); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
button:disabled { opacity: .4; cursor: default; }
[data-save][aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
[data-save][aria-pressed="true"] .ic { fill: currentColor; }

.visor .btn-uv { height: 44px; }
.visor-submit-mobile { display: none; min-height: 48px; }

.form-error { color: var(--signal-text); font-weight: 600; }

.try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.try-label { color: var(--haze); font-size: 15px; margin-right: 4px; }
.try-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--wire);
  background: rgba(27, 23, 71, 0.85);
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
a.chip:hover { border-color: var(--uv); color: var(--paper); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--uv); }
.dot-amber { background: var(--amber); }
.dot-glow { background: var(--glow); }
.dot-uv { background: var(--uv); }
.dot-ice { background: var(--ice); }

.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--mist); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ic { width: 18px; height: 18px; color: var(--glow); stroke-width: 2.4; }

/* ---------- start page sections ---------- */

.block { padding-top: clamp(64px, 8vw, 96px); }
.block-title {
  max-width: 18em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  text-wrap: balance;
}
.block-lead { max-width: 36em; margin-top: 12px; color: var(--haze); font-size: 18px; }
.block-more { margin-top: 28px; }

.questions {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.questions li + li { border-left: 1px solid var(--wire-soft); }
.question {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 28px 8px;
  color: var(--paper);
  text-decoration: none;
  border-radius: 14px;
}
.questions li:first-child .question { padding-left: 0; }
.question:hover .q-title { color: var(--uv-text); }
.q-icon { width: 40px; height: 40px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.q-uv { stroke: var(--uv); }
.q-ice { stroke: var(--ice); }
.q-glow { stroke: var(--glow); }
.q-amber { stroke: var(--amber); }
.q-title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.q-body { color: var(--haze); }

.deeper { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.deeper-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--r-panel);
  border: 1px solid var(--wire-soft);
  background: rgba(23, 20, 63, 0.6);
}
.deeper-art {
  position: relative;
  height: 180px;
  border-radius: 14px;
  background: var(--well);
  border: 1px solid #241F5C;
  overflow: hidden;
}
.deeper-candles { display: flex; align-items: flex-end; gap: 7px; padding: 18px; }
.deeper-candles span { flex: 1; border-radius: 3px; background: var(--glow); }
.deeper-candles span:nth-child(1) { height: 30%; }
.deeper-candles span:nth-child(2) { height: 38%; }
.deeper-candles span:nth-child(3) { height: 34%; background: var(--signal); }
.deeper-candles span:nth-child(4) { height: 46%; }
.deeper-candles span:nth-child(5) { height: 55%; }
.deeper-candles span:nth-child(6) { height: 50%; background: var(--signal); }
.deeper-candles span:nth-child(7) { height: 44%; background: var(--signal); }
.deeper-candles span:nth-child(8) { height: 52%; }
.deeper-candles span:nth-child(9) { height: 63%; }
.deeper-candles span:nth-child(10) { height: 70%; }
.deeper-candles span:nth-child(11) { height: 61%; background: var(--signal); }
.deeper-candles span:nth-child(12) { height: 66%; }
.deeper-candles span:nth-child(13) { height: 78%; }
.deeper-candles span:nth-child(14) { height: 72%; background: var(--signal); }
.deeper-candles span:nth-child(15) { height: 80%; }
.deeper-candles span:nth-child(16) { height: 88%; }
.deeper-candles span:nth-child(17) { height: 83%; background: var(--signal); }
.deeper-candles span:nth-child(18) { height: 90%; }
.deeper-bubbles span {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--uv);
  background: rgba(165, 123, 255, 0.16);
  transform: translate(-50%, -50%);
}
.deeper-bubbles span:nth-child(1) { left: 50%; top: 50%; width: 96px; height: 96px; border-color: var(--amber); background: rgba(255, 193, 90, 0.16); }
.deeper-bubbles span:nth-child(2) { left: 27%; top: 34%; width: 56px; height: 56px; }
.deeper-bubbles span:nth-child(3) { left: 33%; top: 72%; width: 40px; height: 40px; }
.deeper-bubbles span:nth-child(4) { left: 72%; top: 30%; width: 46px; height: 46px; border-color: var(--ice); border-style: dashed; background: rgba(92, 200, 255, 0.1); }
.deeper-bubbles span:nth-child(5) { left: 77%; top: 70%; width: 34px; height: 34px; }
.deeper-bubbles span:nth-child(6) { left: 60%; top: 84%; width: 22px; height: 22px; border-color: var(--glow); background: rgba(124, 255, 203, 0.14); }
.deeper-bubbles span:nth-child(7) { left: 13%; top: 62%; width: 22px; height: 22px; border-color: var(--glow); background: rgba(124, 255, 203, 0.14); }
.deeper-bubbles span:nth-child(8) { left: 88%; top: 48%; width: 18px; height: 18px; border-color: var(--glow); background: rgba(124, 255, 203, 0.14); }
/* Deep scan art: a funding trail, three wallets leading back to one source. */
.deeper-trail { position: relative; }
.deeper-trail span { position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--glow); border-radius: 50%; background: rgba(124, 255, 203, 0.14); transform: translate(-50%, -50%); }
.deeper-trail span:nth-child(1) { left: 22%; top: 50%; width: 30px; height: 30px; border-color: var(--amber); background: rgba(255, 193, 90, 0.16); }
.deeper-trail span:nth-child(2) { left: 70%; top: 26%; }
.deeper-trail span:nth-child(3) { left: 76%; top: 52%; }
.deeper-trail span:nth-child(4) { left: 68%; top: 78%; }
.deeper-trail span:nth-child(5) { left: 24%; top: 51%; width: 50%; height: 0; border: 0; border-top: 1px dashed var(--glow); border-radius: 0; background: none; opacity: .7; transform: none; }
.deeper-trail::before, .deeper-trail::after { content: ""; position: absolute; left: 24%; right: 30%; top: 50%; border-top: 1px dashed var(--glow); opacity: .7; }
.deeper-trail::before { transform: rotate(-14deg); transform-origin: left; }
.deeper-trail::after { transform: rotate(14deg); transform-origin: left; }
.deeper-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.deeper-title { min-width: 0; overflow-wrap: anywhere; font-family: var(--display); font-weight: 700; font-size: 22px; }
.deeper-body { color: var(--haze); }

.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.more-item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 28px; border-top: 1px solid var(--wire-soft); }
.more-title { font-family: var(--display); font-weight: 700; font-size: 24px; }
.more-body { color: var(--haze); max-width: 30em; }
.next-list { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.next-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pill-dev {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--uv-text);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- panels ---------- */

.panel {
  border-radius: var(--r-panel);
  border: 1px solid var(--wire-soft);
  background: var(--deck);
  padding: clamp(18px, 2.2vw, 28px);
}
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.panel-title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.panel-title-lg { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- scan view ---------- */

#view-scan > .wrap { padding-top: 16px; padding-bottom: 64px; }
.scan-form-bar { margin-bottom: 20px; }
.scan-form-bar .visor { padding: 6px; border-radius: 16px; }
.scan-form-bar .visor input { height: 46px; font-size: 15px; }
.scan-form-bar .icon-btn { width: 44px; height: 44px; }
.scan-form-bar .btn-uv { height: 44px; min-height: 44px; padding: 0 16px; font-size: 14px; }

.loading-panel {
  max-width: 560px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 40px 28px;
}
.loading-lens {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px solid var(--uv);
  box-shadow: 0 0 40px rgba(165, 123, 255, 0.35), inset 0 0 30px rgba(165, 123, 255, 0.2);
}
.loading-lens span {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--glow);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.loading-list li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--wire);
  color: var(--haze);
  font-size: 14px;
  animation: blink 1.6s ease-in-out infinite;
}
.loading-list li:nth-child(2) { animation-delay: 0.2s; }
.loading-list li:nth-child(3) { animation-delay: 0.4s; }
.loading-list li:nth-child(4) { animation-delay: 0.6s; }
.loading-list li:nth-child(5) { animation-delay: 0.8s; }
.loading-list li:nth-child(6) { animation-delay: 1s; }
.loading-list li:nth-child(7) { animation-delay: 1.2s; }
.loading-list li:nth-child(8) { animation-delay: 1.4s; }
@keyframes blink { 50% { color: var(--paper); border-color: var(--uv); } }

.error-panel {
  max-width: 560px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  color: var(--uv);
}
.disc-alert { color: var(--amber); background: rgba(255, 193, 90, 0.12); }

/* ---------- banner above a result ---------- */

.banner {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--wire);
  background: rgba(23, 20, 63, 0.9);
}
.banner-icon { width: 24px; height: 24px; margin-top: 1px; }
.banner-copy { display: flex; flex-direction: column; gap: 4px; }
.banner-title { font-weight: 750; font-size: 17px; }
.banner-text { color: var(--paper); }
.banner-link { align-self: flex-start; font-weight: 650; }
.banner-alert { border-color: rgba(255, 107, 139, 0.6); background: rgba(255, 107, 139, 0.1); }
.banner-alert .banner-icon, .banner-alert .banner-title { color: var(--signal-text); }
.banner-note { border-color: rgba(255, 193, 90, 0.45); background: rgba(255, 193, 90, 0.07); }
.banner-note .banner-icon, .banner-note .banner-title { color: var(--amber); }
.banner-info { border-color: rgba(92, 200, 255, 0.45); background: rgba(92, 200, 255, 0.07); }
.banner-info .banner-icon, .banner-info .banner-title { color: var(--ice); }
.banner-known { border-color: rgba(124, 255, 203, 0.45); background: rgba(124, 255, 203, 0.06); }
.banner-known .banner-icon, .banner-known .banner-title { color: var(--glow); }

/* ---------- results: contract checks first, chart beside them on wide screens ---------- */

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 16px;
}
.workspace-grid > .panel { min-width: 0; }
.research-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; grid-column: 1 / -1; }
.research-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.research-links > .btn-line { flex: 0 1 auto; }
.save-note { margin-top: 14px; }
.coverage-note { margin-top: 18px; padding: 12px 16px; border-left: 2px solid var(--wire); background: var(--well); }

@media (min-width: 1001px) {
  .token {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head actions" "facts summary";
    column-gap: 40px;
    row-gap: 24px;
    align-items: center;
  }
  .token-head { grid-area: head; }
  .token-actions { grid-area: actions; justify-content: flex-end; align-self: start; }
  .token-actions .btn-soft { margin-left: 0; }
  .facts { grid-area: facts; }
  .summary { grid-area: summary; }
}

.token { display: flex; flex-direction: column; gap: 22px; container-type: inline-size; }
.token-head { display: flex; align-items: center; gap: 18px; }
.mono-disc {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  border: 2px solid var(--uv);
  box-shadow: 0 0 24px rgba(165, 123, 255, 0.35);
  color: var(--uv-text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
}
.mono-disc.is-alert { border-color: var(--signal); color: var(--signal-text); box-shadow: 0 0 24px rgba(255, 107, 139, 0.3); }
.mono-disc.is-known { border-color: var(--glow); color: var(--glow); box-shadow: 0 0 24px rgba(124, 255, 203, 0.3); }
.mono-disc-sm { width: 44px; height: 44px; font-size: 18px; box-shadow: none; border-width: 1.5px; }
.token-logo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--uv);
  box-shadow: 0 0 24px rgba(165, 123, 255, 0.35);
  background: var(--raised);
}
.token-id { min-width: 0; flex: 1; }
.token-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  overflow-wrap: anywhere;
  outline: none;
}
.token-symbol { color: var(--haze); font-weight: 600; font-size: 0.6em; }
.token-links { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.token-mint { font-family: var(--mono); font-size: 14px; color: var(--mist); overflow-wrap: anywhere; }
.ext-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.ext-link .ic { width: 15px; height: 15px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--wire-soft);
  border-bottom: 1px solid var(--wire-soft);
}
.facts > div { min-width: 0; padding: 14px 16px; }
.facts > div:first-child { padding-left: 0; }
.facts > div + div { border-left: 1px solid var(--wire-soft); }
.facts dt { color: var(--haze); font-size: 14px; }
.facts dd { margin-top: 2px; font-weight: 650; overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
@container (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--wire-soft); }
  .facts > div:nth-child(4) { border-top: 1px solid var(--wire-soft); }
}
/* In the two-column token card the facts get half the width: 2 x 2 until there is room for 4. */
@media (min-width: 1001px) and (max-width: 1360px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--wire-soft); }
  .facts > div:nth-child(4) { border-top: 1px solid var(--wire-soft); }
}

.summary { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 36px; }
.score { display: flex; gap: 32px; }
.score-item { display: flex; flex-direction: column; }
.score-num { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.score-pass { color: var(--glow); text-shadow: 0 0 22px rgba(124, 255, 203, 0.35); }
.score-attn { color: var(--amber); text-shadow: 0 0 22px rgba(255, 193, 90, 0.3); }
.score-unchecked { color: var(--ash); }
.score-label { color: var(--mist); }
.summary-side { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.segs { display: flex; gap: 5px; }
.seg { flex: 1; height: 12px; border-radius: 3px; background: var(--wire); }
.seg-pass { background: var(--glow); box-shadow: 0 0 10px rgba(124, 255, 203, 0.4); }
.seg-attention { background: var(--amber); box-shadow: 0 0 10px rgba(255, 193, 90, 0.4); }
.seg-unchecked { background: var(--ash); }
.token-actions .btn-soft { margin-left: auto; }
.holder-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 20px; border: 1px solid rgb(165 243 206 / 30%); border-radius: 14px; background: linear-gradient(110deg, rgb(165 243 206 / 9%), rgb(165 243 206 / 2%)); }
.holder-callout > div { flex: 1 1 240px; }
.holder-callout .eyebrow { color: var(--mint, #A5F3CE); margin-bottom: 4px; }
.holder-callout > .btn-uv { flex: 0 1 auto; max-width: 100%; white-space: normal; }
.execution-scope { line-height: 1.6; }
.execution-scope a { white-space: nowrap; }

/* checks */
.checks { padding: 12px 12px 18px; }
.checks .panel-title { margin: 14px 16px 10px; }
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-group + .check-group { margin-top: 10px; border-top: 1px solid var(--wire-soft); }
.check-group-title { padding: 17px 16px 8px; color: var(--mint, #A5F3CE); font-family: var(--mono); font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.check-register-section { grid-column: 1 / -1; padding: 20px 0 0; }
.check-register-section h2 { font-family: var(--display); font-size: 25px; }
.check-register-section p { margin-top: 5px; color: var(--haze); }
.checks-grid #name_locked, .checks-grid #creator_share, .checks-grid #curve_liquidity, .checks-grid #real-or-copy { grid-column: 1 / -1; }
.quote-action { margin: 14px 16px 0; }
.check-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
}
.check-row:hover:not(:disabled) { background: var(--deck-hi); }
.check-row:disabled { cursor: default; }
.check.is-attention .check-row { background: rgba(255, 193, 90, 0.07); }
.check.is-attention .check-row:hover { background: rgba(255, 193, 90, 0.11); }
.check-disc {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--glow);
  color: var(--glow);
}
.check-disc .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.check.is-attention .check-disc { border-color: var(--amber); color: var(--amber); }
.check.is-unchecked .check-disc { border-color: var(--ash); color: var(--ash); }
.check-text { overflow-wrap: anywhere; flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-title { font-weight: 650; }
/* A plain headline leads; the technical title becomes the quieter second line. */
.check-plain { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--paper); }
.check.has-plain .check-title { font-weight: 500; font-size: 14px; color: var(--mist); }
.check.is-unchecked .check-title { color: var(--mist); }
.check-detail { color: var(--haze); font-size: 15px; }
.check-chevron { color: var(--ash); margin-top: 4px; transition: transform 160ms var(--ease); }
.check-row[aria-expanded="true"] .check-chevron { transform: rotate(180deg); }
.check-more { margin: 2px 16px 10px 58px; padding: 12px 14px; border-radius: 12px; background: var(--well); border: 1px solid #241F5C; }
.check-more-label { font-weight: 700; font-size: 14px; color: var(--uv-text); }
.check-more-text { margin-top: 2px; color: var(--mist); font-size: 15px; }
.check-more-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; }
.checks-more { margin: 12px 16px 0; }

/* market and chart */
.market { display: flex; flex-direction: column; gap: 16px; container-type: inline-size; }
.market-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
@container (min-width: 620px) {
  .market-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.market-stats dt { color: var(--haze); font-size: 13px; }
.market-stats dd { font-family: var(--display); font-weight: 700; font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@container (max-width: 400px) {
  .market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.chart {
  position: relative;
  flex: 1;
  min-height: 460px;
  border-radius: 14px;
  background: var(--well);
  border: 1px solid #241F5C;
  overflow: hidden;
}
.chart iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.chart-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}
.check-label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--mist); cursor: pointer; }
.check-label input { width: 20px; height: 20px; accent-color: var(--uv); }

/* holder map */
.map { display: flex; flex-direction: column; gap: 14px; }
.orbit-box { position: relative; flex: 1; display: flex; align-items: center; border-radius: 14px; background: var(--well); border: 1px solid #241F5C; overflow: hidden; }
.orbit { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.orbit-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.orbit-ring { fill: none; stroke: var(--wire-soft); stroke-dasharray: 3 5; }
.bubble { cursor: pointer; outline: none; }
.bubble circle { transition: stroke-width 140ms, fill-opacity 140ms; }
.bubble-wallet circle { fill: rgba(165, 123, 255, 0.18); stroke: var(--uv); stroke-width: 1.5; }
.bubble-creator circle { fill: rgba(255, 193, 90, 0.2); stroke: var(--amber); stroke-width: 1.5; }
.bubble-pool circle { fill: rgba(92, 200, 255, 0.07); stroke: var(--ice); stroke-width: 1.5; stroke-dasharray: 4 4; }
.bubble:hover circle, .bubble:focus-visible circle, .bubble.is-active circle { stroke-width: 3; fill-opacity: 1; }
.bubble-wallet:hover circle, .bubble-wallet:focus-visible circle, .bubble-wallet.is-active circle { fill: rgba(165, 123, 255, 0.34); }
.bubble-creator:hover circle, .bubble-creator:focus-visible circle, .bubble-creator.is-active circle { fill: rgba(255, 193, 90, 0.34); }
.bubble text { fill: var(--paper); font-family: var(--body); font-weight: 700; font-size: 12px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.bubble-pool text { fill: var(--ice); }
.orbit-readout { min-height: 24px; font-size: 15px; color: var(--mist); font-variant-numeric: tabular-nums; }
.orbit-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--mist); }
.orbit-legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.swatch-creator { background: var(--amber); }
.swatch-wallet { background: var(--uv); }
.swatch-pool { border: 1.5px dashed var(--ice); }

/* holders */
.holders { display: flex; flex-direction: column; gap: 24px; }
.holders-summary { display: flex; flex-direction: column; gap: 16px; }
.holders-summary [data-holders-ok] { display: flex; flex-direction: column; gap: 16px; }
.holders-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.stat { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat.is-attn { color: var(--amber); }
.stat.is-pass { color: var(--glow); }
.split { display: flex; flex-direction: column; gap: 12px; }
.split-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--raised); }
.split-bar span { display: block; height: 100%; }
.split-top10 { background: var(--amber); }
.split-pools { background: var(--ice); }
.split-rest { background: var(--wire); }
.split-legend { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.split-legend li { display: flex; align-items: center; gap: 10px; }
.split-legend li > span:nth-child(2) { flex: 1; }
.split-legend .swatch { border-radius: 3px; }
.swatch-top10 { background: var(--amber); }
.swatch-pool-solid { background: var(--ice); }
.swatch-rest { background: var(--wire); }
.split-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.excluded { display: flex; flex-direction: column; gap: 8px; }
.excluded-list { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mist); }
.excluded-list li { display: flex; justify-content: space-between; gap: 12px; }

.holder-list { display: flex; flex-direction: column; gap: 8px; }
.holder {
  display: grid;
  grid-template-columns: 28px 128px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
}
.holder-rank { color: var(--ash); font-family: var(--display); font-variant-numeric: tabular-nums; }
.holder-who a { font-family: var(--mono); font-size: 13px; color: var(--mist); text-decoration: none; }
.holder-who a:hover { color: var(--paper); text-decoration: underline; }
.creator-chip { font-family: var(--body) !important; font-weight: 700; font-size: 14px !important; color: var(--amber) !important; }
.bar { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--uv); }
.bar-fill.is-creator { background: var(--amber); }
.holder-pct { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }

/* phones: Save and Share stay in reach */
.mobile-bar { display: none; }

/* ---------- watchlist ---------- */

.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; outline: none; }
/* The coin's face fills most of the card's height. */
.chip-pass { border-color: rgba(124, 255, 203, 0.4); color: var(--glow); }
.chip-attn { border-color: rgba(255, 193, 90, 0.45); color: var(--amber); }
.chip-unchecked { color: var(--mist); }
/* Market numbers: label above value, tabular figures, five across on wide screens. */
.change { display: flex; align-items: center; gap: 6px; color: var(--mist); }
.change .ic { width: 15px; height: 15px; }
.change-worse { color: var(--amber); }
.change-better { color: var(--glow); }
.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 32px;
  border-radius: var(--r-panel);
  border: 1px dashed var(--wire);
}
.empty-title { font-family: var(--display); font-weight: 700; font-size: 24px; }

/* ---------- footer, toast ---------- */

.foot { margin-top: 72px; border-top: 1px solid var(--wire-soft); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  font-size: 15px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--night);
  font-weight: 650;
  transform: translateX(-50%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.noscript { padding: 16px; text-align: center; background: var(--amber); color: var(--night); font-weight: 700; }

/* ---------- a fresh result arrives in one short sequence ---------- */

#view-scan.is-revealing .seg { animation: seg-in 420ms var(--ease) both; }
#view-scan.is-revealing .seg:nth-child(2) { animation-delay: 60ms; }
#view-scan.is-revealing .seg:nth-child(3) { animation-delay: 120ms; }
#view-scan.is-revealing .seg:nth-child(4) { animation-delay: 180ms; }
#view-scan.is-revealing .seg:nth-child(5) { animation-delay: 240ms; }
#view-scan.is-revealing .seg:nth-child(6) { animation-delay: 300ms; }
#view-scan.is-revealing .seg:nth-child(7) { animation-delay: 360ms; }
#view-scan.is-revealing .seg:nth-child(8) { animation-delay: 420ms; }
#view-scan.is-revealing .check { animation: rise 420ms var(--ease) both; }
#view-scan.is-revealing .check:nth-child(2) { animation-delay: 50ms; }
#view-scan.is-revealing .check:nth-child(3) { animation-delay: 100ms; }
#view-scan.is-revealing .check:nth-child(4) { animation-delay: 150ms; }
#view-scan.is-revealing .check:nth-child(5) { animation-delay: 200ms; }
#view-scan.is-revealing .check:nth-child(6) { animation-delay: 250ms; }
#view-scan.is-revealing .check:nth-child(7) { animation-delay: 300ms; }
#view-scan.is-revealing .check:nth-child(8) { animation-delay: 350ms; }
#view-scan.is-revealing .bubble { animation: pop 520ms var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes seg-in { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(0.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- /checks and /privacy ---------- */

.doc { padding-top: 40px; padding-bottom: 32px; }
.doc-inner { max-width: 760px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; }
.doc .lead { margin-top: 16px; font-size: 19px; color: var(--mist); }
.doc h2 { margin-top: 48px; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--uv); }
.states { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; padding-left: 0 !important; list-style: none !important; }
.states li { display: flex; align-items: flex-start; gap: 12px; }
.states li + li { margin-top: 0; }
.state-mark { width: 14px; height: 14px; margin-top: 5px; flex-shrink: 0; border-radius: 4px; }
.state-pass { background: var(--glow); box-shadow: 0 0 10px rgba(124, 255, 203, 0.5); }
.state-attention { background: var(--amber); box-shadow: 0 0 10px rgba(255, 193, 90, 0.45); }
.state-unchecked { background: var(--ash); }
.doc .btn-uv { margin-top: 36px; }

/* ---------- smaller screens ---------- */

@media (max-width: 1000px) {
  .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .questions li:nth-child(3) { border-left: 0; }
  .questions li:nth-child(3) .question { padding-left: 0; }
}

@media (max-width: 720px) {
  .nav-wide { display: none; }
  .visor-submit { display: none; }
  .visor-submit-mobile { display: inline-flex; }
  .hero-inner { padding-top: 212px; padding-bottom: 48px; }
  .lens { width: 172px; height: 172px; }
  .lens-tag { display: none; }
  .scan-form-hero .visor { padding: 6px; }
  .scan-form-hero .visor input { height: 48px; padding: 0 10px; font-size: 15px; }
  .deeper, .more { grid-template-columns: minmax(0, 1fr); }
  .questions { grid-template-columns: minmax(0, 1fr); }
  .questions li + li { border-left: 0; border-top: 1px solid var(--wire-soft); padding-top: 24px; }
  .question { padding: 0; }
  .score-num { font-size: 52px; }
  .mono-disc, .token-logo { width: 56px; height: 56px; font-size: 22px; }
  .token-actions [data-save], .token-actions [data-share], .token-actions [data-card-download] { display: none; }
  .token-actions .btn-soft { margin-left: 0; }
  .chart { min-height: 340px; }
  .holder { grid-template-columns: 22px 104px minmax(0, 1fr) 60px; gap: 8px; font-size: 14px; }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(18, 15, 51, 0.96);
    border-top: 1px solid var(--wire-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .mobile-bar .btn-uv, .mobile-bar .btn-line { padding: 0 10px; font-size: 15px; }
  html.has-bar .foot { padding-bottom: 88px; }
  html.has-bar .toast { bottom: 96px; }
  .top-inner { min-height: 64px; gap: 12px; }
  .brand-name { font-size: 21px; }
  .nav-link { padding: 0 12px; }
}

@media (max-width: 380px) {
  .score { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .visor.is-scanning::after { display: none; }
  .field, .lens, .lens-tag { transition: none; }
}

@media (forced-colors: active) {
  .seg, .bar-fill, .split-bar span, .chip-dot, .swatch { forced-color-adjust: none; }
}

/* ---------- inspection workspace ---------- */
.network-tag { border-left: 1px solid var(--wire); padding-left: 18px; color: var(--haze); font-size: 14px; }
.eyebrow { color: var(--uv); font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.hero-inner { gap: 22px; padding-top: 66px; padding-bottom: 62px; }
.hero-inner > * { max-width: 620px; }
.hero-title { font-size: clamp(56px, 7.3vw, 96px); letter-spacing: -.055em; line-height: 1; max-width: 9em; }
.hero-title span { color: var(--uv); }
.hero-lead { max-width: 510px; font-size: 19px; line-height: 1.6; }
.hero-art { position: absolute; top: 0; right: max(0px, calc((100vw - 1420px) / 2)); width: 52%; max-width: 760px; height: 100%; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; mask-image: linear-gradient(to right, transparent, #000 20%); }
.art-caption { position: absolute; bottom: 28px; right: 40px; color: var(--haze); font-size: 12px; letter-spacing: .03em; }
.hero-inner .trust { font-size: 14px; gap: 10px 18px; margin-top: 4px; }
.try { margin-top: 0; }
.visor { background: var(--deck); border-color: var(--wire); box-shadow: 0 0 0 4px rgba(165, 243, 206, .04); border-radius: 12px; }
.visor:focus-within { box-shadow: 0 0 0 4px rgba(165, 243, 206, .12); }
.btn-uv { box-shadow: none; }
.chip { background: var(--deck); border-color: var(--wire-soft); }
.chip-dot { display: none; }
.block { padding-top: 68px; }
.block-title { margin-top: 14px; letter-spacing: -.035em; font-size: clamp(30px, 3.4vw, 44px); }
.question { padding-top: 0; }
.q-title { font-size: 20px; }
.q-icon { width: 32px; height: 32px; }
.deeper-item { background: var(--deck); }
.deeper-art, .chart, .orbit-box, .check-more { border-color: var(--wire-soft); }
.deeper-art { height: 130px; opacity: .85; }
.deeper-candles span { max-width: 18px; }
.chart-settings { width: 100%; color: var(--haze); font-size: 13px; margin-top: -8px; }
.chart-settings .check-label { padding-top: 0; min-height: 36px; }
.chart-settings p { max-width: 44em; line-height: 1.5; margin-top: 4px; }

.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 16px; }
.workspace-heading a { font-size: 14px; color: var(--haze); }
.panel-head { align-items: center; }
.panel-head .eyebrow { margin-bottom: 7px; }
.panel-title { letter-spacing: -.025em; }
.widget-expand { min-height: 40px; padding: 0 12px; font-size: 14px; }
.widget-expand .ic { width: 17px; height: 17px; }
.token { background: linear-gradient(110deg, #14221F, var(--deck) 65%); }
.token-mint { overflow-wrap: anywhere; }
.token-name { letter-spacing: -.035em; }
.score-num { font-size: 44px; text-shadow: none; font-weight: 650; }
.seg { box-shadow: none; height: 5px; }
.token-logo, .mono-disc { box-shadow: none; border-width: 1px; }
.market-stats { padding: 14px 0; border-top: 1px solid var(--wire-soft); border-bottom: 1px solid var(--wire-soft); }
.market-stats dd { font-size: 20px; }
.chart { min-height: 400px; }
.chart-note { padding: 8px 12px; background: var(--deck-hi); color: var(--mist); font-size: 14px; }
.map-content { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; }
.map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.map-toolbar .check-label { font-size: 14px; }
.map-zoom { display: flex; align-items: center; border: 1px solid var(--wire-soft); border-radius: 9px; }
.map-zoom .icon-btn { width: 38px; height: 38px; }
.map-zoom .ic { width: 17px; height: 17px; }
.zoom-reset { min-width: 56px; min-height: 38px; padding: 0 7px; border: 0; background: transparent; color: var(--mist); font-size: 13px; font-variant-numeric: tabular-nums; }
.orbit-box { min-height: 300px; background-image: radial-gradient(#263936 1px, transparent 1px); background-size: 24px 24px; touch-action: pan-y; }
.orbit { user-select: none; }
.orbit-ring { display: none; }
.bubble-wallet circle { fill: rgba(165, 243, 206, .13); }
.bubble-wallet:hover circle, .bubble-wallet:focus-visible circle, .bubble-wallet.is-active circle { fill: rgba(165, 243, 206, .28); }
.bubble.is-selected circle { stroke-width: 3; fill-opacity: 1; }
.bubble-hit { fill: transparent !important; stroke: none !important; }
.orbit-inspector { height: 116px; flex-shrink: 0; overflow: auto; padding: 12px 14px; background: var(--well); border: 1px solid var(--wire-soft); border-radius: 10px; }
.orbit-readout { font-size: 14px; }
.orbit-address { display: block; margin: 5px 0; font: 12px/1.6 var(--mono); overflow-wrap: anywhere; color: var(--haze); }
.map-gate { min-height: 390px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 1px dashed var(--wire); border-radius: 12px; text-align: center; padding: 24px; }
.widget-dialog { width: calc(100% - 40px); max-width: 1600px; height: calc(100dvh - 40px); max-height: none; padding: 0; border: 1px solid var(--wire); border-radius: 16px; background: var(--night); color: var(--paper); overflow: hidden; }
.widget-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.widget-dialog[open] { display: flex; flex-direction: column; }
.dialog-toolbar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--wire-soft); }
.dialog-toolbar h2 { font-size: 16px; font-weight: 600; }
.dialog-toolbar .btn-line { min-height: 40px; font-size: 14px; padding: 0 12px; }
.widget-mount { display: flex; flex: 1; min-height: 0; }
.widget-mount > .panel { flex: 1; min-width: 0; border: 0; border-radius: 0; overflow: auto; }
.widget-mount .widget-expand { display: none; }
.widget-mount .chart { flex: 1 0 360px; }
.widget-mount .map-content { flex: 1 0 auto; }
.widget-mount .orbit-box { flex: 0 0 auto; min-height: 240px; }
.widget-mount .orbit { height: clamp(240px, calc(100dvh - 540px), 680px); min-height: 0; max-height: none; aspect-ratio: auto; }
.widget-mount .market-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.widget-dialog:fullscreen { width: 100%; max-width: none; height: 100dvh; border: 0; border-radius: 0; }
html.has-widget { overflow: hidden; }
.mobile-bar { background: rgba(9, 14, 16, .97); }

@media (min-width: 1001px) {
  .token { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 1100px) {
  .hero-art { width: 48%; opacity: .7; }
  .hero-inner > * { max-width: 560px; }
}
@media (max-width: 720px) {
  .network-tag { display: none; }
  .hero-inner { padding-top: 38px; padding-bottom: 34px; gap: 20px; }
  .hero-art { width: 280px; height: 260px; top: 0; right: -85px; opacity: .32; }
  .hero-art img { mask-image: linear-gradient(to bottom, #000 40%, transparent); }
  .art-caption { display: none; }
  .hero-title { font-size: clamp(54px, 10vw, 72px); }
  .hero-lead { font-size: 17px; max-width: 30em; }
  .hero-inner .eyebrow { font-size: 11px; }
  .block { padding-top: 46px; }
  .block-title { margin-top: 12px; }
  .deeper-item { padding: 20px; }
  .trust { gap: 8px 12px; }
  .panel { padding: 18px; }
  .token { gap: 14px; }
  .token .facts > div { padding-top: 9px; padding-bottom: 9px; }
  .token .summary { gap: 12px; }
  .token .summary-side { gap: 6px; padding-bottom: 0; }
  .token .token-actions .btn-soft { min-height: 40px; }
  .chart { min-height: 360px; }
  .score-num { font-size: 38px; }
  .widget-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .dialog-toolbar { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .widget-mount > .panel { padding: 16px; }
  .widget-mount .market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget-mount .chart { min-height: 320px; }
  .workspace-heading a { font-size: 12px; }
}

.paste-hint { margin: 0; font-size: 13px; color: var(--haze); }

/* Phone landing: compact first impression. Tiles instead of stacked blocks,
   rows instead of tall art cards. Desktop layout is unchanged. */
@media (max-width: 720px) {
  .hero-lead { font-size: 17px; line-height: 1.5; }
  .paste-hint { font-size: 12px; }
  .hero-inner .trust { gap: 6px 16px; font-size: 13px; }
  .block { padding-top: 44px; }
  .block-title { font-size: 27px; }
  .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .questions li + li { border: 0; padding-top: 0; }
  .questions li:first-child .question, .questions li:nth-child(3) .question, .question { height: 100%; padding: 14px; border: 1px solid var(--wire-soft); border-radius: 14px; background: var(--deck); gap: 6px; }
  .q-icon { width: 26px; height: 26px; }
  .q-title { font-size: 16px; line-height: 1.25; }
  .q-body { font-size: 13px; line-height: 1.4; }
  .block-more { margin-top: 14px; font-size: 14px; }
  .deeper { gap: 10px; margin-top: 18px; }
  .deeper-item { flex-direction: row; align-items: center; gap: 14px; padding: 12px; }
  .deeper-art { flex: 0 0 88px; height: 66px; border-radius: 10px; }
  .deeper-candles { gap: 2px; padding: 8px; }
  .deeper-bubbles span { transform: translate(-50%, -50%) scale(.42); }
  .deeper-trail span:not(:nth-child(5)) { transform: translate(-50%, -50%) scale(.7); }
  .deeper-title { font-size: 17px; }
  .deeper-body { font-size: 13px; line-height: 1.4; }
  .more { gap: 12px; }
  .more-item { padding-top: 20px; gap: 8px; }
  .more-title { font-size: 20px; }
  .more-body { font-size: 14px; }
}

/* Market context belongs to the token identity, ahead of the research panels. */
.token-market { min-width: 0; display: grid; gap: 8px; }
.token-market .market-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 16px 0; margin-bottom: 0; }
.token-market .market-stats dd { font-size: clamp(17px, 2vw, 22px); }
.token-market [data-market-pair] { order: 2; }
.token-market [data-market-status] { padding-top: 8px; }
.curve-note { border-left: 2px solid var(--haze); padding: 10px 14px; background: var(--deck); line-height: 1.6; }
@media (max-width: 650px) {
  .token-market .market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .token-market .market-stats div:last-child { grid-column: 1 / -1; }
}

.chart-gate { gap: 16px; padding: 28px; text-align: center; }
.chart-gate p { max-width: 360px; }
.chart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Keep an unloaded chart invitation small; reserve chart height after activation. */
.chart:not(.is-loaded) { flex: 0 0 auto; min-height: 180px; }
.chart:not(.is-loaded) .chart-gate { position: relative; inset: auto; min-height: 180px; }
.chart:not(.is-loaded) .chart-gate p { line-height: 1.5; }
