/*
 * Token Finder — visual system
 *
 * "Instrument, not casino." Four rules:
 *   1. Colour is semantic. Green, amber, red and hatched grey mean a verdict or
 *      an evidence state and nothing else. Blue marks what you can act on and
 *      trust measures (coverage, confidence). Price moves are deliberately quiet.
 *   2. Unknown is a designed state: hatched, never an empty bar, never a zero.
 *   3. Hierarchy comes from type and space, not from boxes and glow.
 *   4. Motion only when something changed. The one exception is the
 *      Observatory on the Board: its slow ambient motion says observation is
 *      under way, and it stops when observation stops (offline, or reduced
 *      motion). Anything in it that looks like an event is a real one.
 *
 * No inline styles anywhere: the Content-Security-Policy forbids them.
 */

/* ---------------------------------------------------------------- tokens -- */
:root {
  color-scheme: dark;

  --bg: #0b0d12;
  --bg-sunk: #08090d;
  --surface: #11141b;
  --surface-2: #161a23;
  --surface-3: #1c212c;
  --hover: #181d27;
  --line: #222835;
  --line-soft: #1a1f29;
  --line-strong: #2e3647;

  --text: #e9edf4;
  --text-2: #adb5c4;
  --text-3: #7a8497;
  --text-4: #5b6477;

  --accent: #8ab4ff;
  --accent-strong: #a9c7ff;
  --accent-soft: rgba(138, 180, 255, 0.14);

  --good: #4cc98f;
  --good-soft: rgba(76, 201, 143, 0.12);
  --good-line: rgba(76, 201, 143, 0.34);
  --warn: #e2b04e;
  --warn-soft: rgba(226, 176, 78, 0.12);
  --warn-line: rgba(226, 176, 78, 0.34);
  --bad: #f0706f;
  --bad-soft: rgba(240, 112, 111, 0.12);
  --bad-line: rgba(240, 112, 111, 0.36);
  --neutral: #97a0b2;
  --neutral-soft: rgba(151, 160, 178, 0.12);

  --up: #7cc3a1;
  --down: #d98e8e;

  --hatch: repeating-linear-gradient(135deg, rgba(151, 160, 178, 0.2) 0 2px, transparent 2px 5px);

  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-s: 13px;
  --fs: 14px;
  --fs-m: 15.5px;
  --fs-l: 19px;
  --fs-xl: 26px;
  --fs-2xl: 34px;

  --r-s: 6px;
  --r: 10px;
  --r-l: 14px;

  --orb-node: #c9d4ea;

  --topbar: 56px;
  --gutter: 24px;
  --max: 1440px;
}

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

/* The fix for the overlay that blocked every click for the project's life: a
   `hidden` element is never displayed, whatever class it carries. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs) / 1.5 var(--font);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.92em;
}

code {
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-2);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(138, 180, 255, 0.3);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: #0b0d12;
  padding: 8px 12px;
  border-radius: var(--r-s);
  font-weight: 600;
}

.skip:focus {
  top: 10px;
}

.muted {
  color: var(--text-3);
}

.small {
  font-size: var(--fs-xs);
}

.center {
  text-align: center;
}

.tone--good {
  color: var(--good);
}
.tone--warn {
  color: var(--warn);
}
.tone--bad {
  color: var(--bad);
}
.tone--neutral {
  color: var(--text-3);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Hover-only hints make no sense without a hovering pointer. */
@media (hover: none) {
  .orb__hint {
    display: none;
  }
}

/* ---------------------------------------------------------------- topbar -- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 24px;
  height: 24px;
}

.brand__frame {
  fill: var(--surface-2);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.brand__lines {
  stroke: var(--text-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
}

.brand__dot {
  fill: var(--good);
}

.brand__name {
  font-size: var(--fs-m);
}

.brand__chain {
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 8px;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav__link {
  color: var(--text-2);
  font-weight: 500;
  font-size: var(--fs-s);
  padding: 7px 12px;
  border-radius: var(--r-s);
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-3);
}

.live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: var(--text-2);
  white-space: nowrap;
}

.live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-4);
  flex: none;
}

body[data-connection="live"] .live__dot {
  background: var(--good);
}

body[data-connection="live"][data-scanning="true"] .live__dot {
  background: var(--accent);
  animation: breathe 1.6s ease-in-out infinite;
}

body[data-connection="reconnecting"] .live__dot {
  background: var(--warn);
  animation: breathe 1.2s ease-in-out infinite;
}

body[data-connection="offline"] .live__dot {
  background: var(--bad);
}

@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  font-size: var(--fs-s);
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.btn--small {
  min-height: 30px;
  padding: 0 10px;
  font-size: var(--fs-xs);
}

.link-btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  color: var(--accent);
  font-size: var(--fs-xs);
  cursor: pointer;
  border-radius: 4px;
}

.link-btn:hover {
  color: var(--accent-strong);
}

/* ------------------------------------------------------ connection banner -- */
.conn {
  position: sticky;
  top: var(--topbar);
  z-index: 25;
  padding: 10px var(--gutter);
  font-size: var(--fs-s);
  border-bottom: 1px solid var(--bad-line);
  background: #1a1013;
  color: var(--text);
}

.conn[data-kind="degraded"] {
  border-bottom-color: var(--warn-line);
  background: #19160e;
}

.conn strong {
  margin-right: 4px;
}

/* When the server is unreachable, content stays readable but is visibly not live. */
body[data-connection="offline"] .main {
  filter: saturate(0.4);
  opacity: 0.6;
}

/* ------------------------------------------------------------------ main -- */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 64px;
  outline: none;
}

.page-head {
  margin-bottom: 20px;
}

.page-head h1,
.board-head h1 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-head__sub,
.board-head__sub {
  margin-top: 6px;
  color: var(--text-2);
  font-size: var(--fs-s);
}

.section-title {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}

/* ------------------------------------------------------------- verdicts -- */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}

.verdict__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.verdict--good {
  color: var(--good);
  background: var(--good-soft);
  border-color: var(--good-line);
}
.verdict--warn {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: var(--warn-line);
}
.verdict--bad {
  color: var(--bad);
  background: var(--bad-soft);
  border-color: var(--bad-line);
}
.verdict--neutral {
  color: var(--neutral);
  background: var(--neutral-soft);
  border-color: var(--line-strong);
}
.verdict--none {
  color: var(--text-3);
  background: var(--hatch);
  border-color: var(--line-strong);
}

.verdict--lg {
  font-size: var(--fs-l);
  padding: 5px 16px 5px 13px;
  gap: 10px;
}

.verdict--lg .verdict__dot {
  width: 10px;
  height: 10px;
}

.transition {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.transition__arrow {
  color: var(--text-3);
}

/* ------------------------------------------------------------ score ring -- */
.ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
}

.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring__track {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 3;
}

.ring__arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}

.ring__value {
  position: relative;
  font-weight: 650;
  font-size: var(--fs-s);
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------ tags, badges -- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-2xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.5;
}

.tag--good {
  color: var(--good);
  background: var(--good-soft);
}
.tag--warn {
  color: var(--warn);
  background: var(--warn-soft);
}
.tag--bad {
  color: var(--bad);
  background: var(--bad-soft);
}
.tag--neutral {
  color: var(--text-2);
  background: var(--neutral-soft);
}
.tag--unknown {
  color: var(--text-2);
  background: var(--hatch), var(--surface-2);
  border-color: var(--line-strong);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: 2px;
  line-height: 1.6;
}

.badge--verified {
  color: var(--accent);
  border-color: rgba(138, 180, 255, 0.35);
}

.fresh {
  font-size: var(--fs-2xs);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}
.fresh--fresh {
  color: var(--good);
  background: var(--good-soft);
}
.fresh--aging {
  color: var(--warn);
  background: var(--warn-soft);
}
.fresh--stale,
.fresh--unknown {
  color: var(--text-2);
  background: var(--hatch), var(--surface-2);
}

/* ---------------------------------------------------------------- avatars -- */
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
}

.avatar--28 {
  width: 28px;
  height: 28px;
}
.avatar--32 {
  width: 32px;
  height: 32px;
}
.avatar--48 {
  width: 48px;
  height: 48px;
}

.avatar__letter {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
}

.avatar--48 .avatar__letter {
  font-size: var(--fs-l);
}

.avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------------- meters -- */
.meter {
  display: block;
  width: 100%;
  height: 6px;
}

.meter__track {
  fill: var(--surface-3);
}

.meter__fill {
  fill: var(--accent);
}

.meter--unknown .meter__track {
  fill: var(--surface-3);
  opacity: 0.6;
}

/* ------------------------------------------------------------------ notices -- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-s);
  color: var(--text-2);
  margin-bottom: 18px;
}

.notice strong {
  color: var(--text);
}

.notice__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.notice--warn {
  border-color: var(--warn-line);
  background: linear-gradient(0deg, var(--warn-soft), var(--warn-soft)), var(--surface);
}

.notice--warn .notice__icon {
  background: var(--warn-soft);
  color: var(--warn);
}

.notice--history {
  border-color: var(--line-strong);
  background: var(--hatch), var(--surface);
}

.notice--history .notice__icon {
  background: var(--surface-3);
  color: var(--text-2);
}

.notice--error {
  border-color: var(--bad-line);
  background: var(--bad-soft);
  display: block;
}

.notice--quiet {
  display: block;
  background: var(--surface);
}

.notice a {
  margin-left: 4px;
  white-space: nowrap;
}

/* ---------------------------------------------------------- page states -- */
.state {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-l);
  color: var(--text-2);
}

.state__title {
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--text);
}

.state__body {
  margin: 8px auto 0;
  max-width: 52ch;
  font-size: var(--fs-s);
}

.state .btn {
  margin-top: 16px;
}

.state--error {
  border-color: var(--bad-line);
}

.skeleton {
  display: grid;
  gap: 10px;
}

.skeleton__row {
  height: 44px;
  border-radius: var(--r-s);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

/* ----------------------------------------------------------------- board -- */
/*
 * The Board page is one environment: the Observatory is the hero, open on the
 * page itself - no frame - sticky and a viewport tall; the Board is a compact
 * console beside it. The console takes ~30% (clamped to 380-460 px so its five
 * columns stay readable); the Observatory takes everything else (~69% at
 * 1440). Neither track is `auto`: an auto track grows to the longest
 * unbreakable token name, which once widened the stage mid-click.
 */
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(380px, 30.5%, 460px);
  grid-template-areas: "hero panel";
  column-gap: 40px;
  align-items: start;
}

/*
 * The atmosphere the Observatory sits in. One fixed layer behind the page,
 * present only on the Board: a low, cool field centred on the sphere, a trace
 * of Solana violet high on the left, and a vignette for depth. All below 8%
 * opacity - it supports the sphere and never competes with it.
 */
.board-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 46% at 35% 54%, rgba(138, 180, 255, 0.075), transparent 72%),
    radial-gradient(ellipse 60% 70% at 35% 54%, rgba(96, 128, 214, 0.045), transparent 74%),
    radial-gradient(ellipse 30% 34% at 14% 16%, rgba(153, 110, 255, 0.035), transparent 72%),
    radial-gradient(ellipse 120% 95% at 35% 50%, transparent 58%, rgba(3, 4, 7, 0.55) 100%);
}

.board-hero {
  grid-area: hero;
  position: sticky;
  top: calc(var(--topbar) + 20px);
  height: calc(100vh - var(--topbar) - 44px);
  min-height: 600px;
  max-height: 960px;
  min-width: 0;
}

.board-panel {
  grid-area: panel;
  min-width: 0;
}

.board-head {
  margin-bottom: 14px;
}

.board-main {
  min-width: 0;
}

/* The panel is narrow: its toolbar stacks, search takes the width. */
.board-panel .toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.board-panel .toolbar__controls {
  flex: none;
  justify-content: stretch;
}
.board-panel .search {
  max-width: none;
}
.board-panel .notice {
  font-size: var(--fs-xs);
  line-height: 1.5;
  padding: 10px 12px;
}

/* The console's title is a label, not a second hero. */
.board-panel .board-head h1 {
  font-size: var(--fs-l);
  letter-spacing: -0.01em;
}
.board-panel .board-head__sub {
  font-size: var(--fs-s);
}
.board-panel .segment {
  padding: 0 9px;
}

/* The desktop console is ~430 px: the symbol and Token Finder's reason earn
   the space; the token's full name moves to the tooltip (and stays in the
   Dossier, on tablets and on phones). The reason may take two lines rather
   than be cut to a fragment. */
@media (min-width: 1180px) {
  .board-panel .token-link__line .token-link__name {
    display: none;
  }
  .board-panel .board td {
    padding: 8px 7px;
  }
  .board-panel .board td:first-child {
    padding-left: 12px;
  }
  .board-panel .token-link {
    gap: 9px;
    align-items: flex-start;
  }
  .board-panel .token-link .avatar {
    margin-top: 2px;
  }
  .board-panel .token-link__reason {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
  }
}

/* The token column takes what is left and truncates; the numbers keep their
   natural width. Without max-width: 0 a long reason sets the table's width. */
.board-panel .board .col-token {
  width: 100%;
  max-width: 0;
}
.board-panel .board td:not(.col-token),
.board-panel .board thead th:not(:first-child) {
  width: 1%;
  white-space: nowrap;
}
.board-panel .board td {
  padding: 8px 10px;
}
.board-panel .board td:first-child {
  padding-left: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.segments {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  flex-wrap: wrap;
}

.segment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: var(--fs-s);
  font-weight: 500;
}

.segment:hover {
  color: var(--text);
  background: var(--surface-2);
}

.segment.is-active {
  color: var(--text);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.segment__count {
  font-size: var(--fs-2xs);
  color: var(--text-3);
  font-weight: 600;
}

.toolbar__controls {
  display: flex;
  gap: 8px;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  max-width: 340px;
}

.search__icon {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
  stroke-linecap: round;
  pointer-events: none;
}

.search input,
.select select {
  width: 100%;
  min-height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-s);
}

.search input {
  padding: 0 36px 0 34px;
}

.search input::placeholder {
  color: var(--text-4);
}

.search input:focus,
.select select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search__hint {
  position: absolute;
  right: 9px;
  font-size: 10.5px;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 5px;
  pointer-events: none;
}

.search input:focus + .search__hint {
  display: none;
}

.select select {
  padding: 0 30px 0 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

table.board {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.board thead th {
  position: sticky;
  top: var(--topbar);
  z-index: 5;
  background: var(--surface);
  text-align: left;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.board thead th:first-child {
  border-top-left-radius: var(--r-l);
  padding-left: 16px;
}

.board thead th:last-child {
  border-top-right-radius: var(--r-l);
}

.board td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

/* Verdict groups. The group header states the rule once; each row carries a
   slim edge in its verdict colour instead of repeating the label. */
.group-row th {
  text-align: left;
  font-weight: 400;
  padding: 14px 16px 10px;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.group:first-of-type .group-row th {
  border-top: 0;
}

.group-row__count {
  font-weight: 650;
  margin: 0 10px 0 8px;
  font-variant-numeric: tabular-nums;
}

.group-row__rule {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.board-row td:first-child {
  box-shadow: inset 3px 0 0 var(--line-strong);
}
.board-row[data-verdict="QUALIFIED"] td:first-child {
  box-shadow: inset 3px 0 0 var(--good-line);
}
.board-row[data-verdict="WATCH"] td:first-child {
  box-shadow: inset 3px 0 0 var(--warn);
}
.board-row[data-verdict="REJECTED"] td:first-child {
  box-shadow: inset 3px 0 0 var(--bad);
}

.board td:first-child {
  padding-left: 16px;
}

.board tbody tr:last-child td {
  border-bottom: 0;
}

.board-row {
  cursor: pointer;
}

.board-row:hover td {
  background: var(--hover);
}

.board-row:focus-within td {
  background: var(--hover);
}

.board-row[data-verdict="REJECTED"] .col-token,
.board-row[data-verdict="REJECTED"] .col-num,
.board-row[data-verdict="REJECTED"] .col-score {
  opacity: 0.72;
}

.col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

th.col-num {
  text-align: right;
}

.col-score {
  width: 64px;
}

.th-note {
  color: var(--text-4);
  font-weight: 500;
}

.token-link__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.token-link__line {
  overflow: hidden;
}

.token-link__line .token-link__symbol {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-link__line .token-link__name {
  flex: 0 1 auto;
  min-width: 0;
}

.token-link__line .badge,
.token-link__line .aging {
  flex: none;
}

/* In the compact Board the symbol is what a reader scans for; the Verified
   and T22 badges squeezed it to two characters. They stay on the Dossier. */
.board-row .token-link__line .badge {
  display: none;
}

/* The reason rides under the symbol: Token Finder's verdict, in one line. */
.token-link__reason {
  display: block;
  font-size: var(--fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Evaluated longer ago than the fresh window: stated once in the header's
   legend, marked here. */
.aging {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  align-self: center;
}

.board-head__fresh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 6px 0 0;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.board-head__scanning {
  color: var(--accent-strong);
}

.board-head__legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.token-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: 0;
  border-radius: 6px;
}

.token-link:hover {
  color: var(--text);
}

.token-link__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.token-link__symbol {
  font-weight: 600;
  white-space: nowrap;
}

.token-link__name {
  font-size: var(--fs-xs);
  color: var(--text-3);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reason {
  font-size: var(--fs-s);
  line-height: 1.35;
}

/* A clean reason is quiet so that caveats stand out. */
.reason.tone--good {
  color: var(--text-3);
}

.move {
  font-variant-numeric: tabular-nums;
}
.move--up {
  color: var(--up);
}
.move--down {
  color: var(--down);
}
.move--flat {
  color: var(--text-3);
}

.seen {
  color: var(--text-3);
}

.seen--aging {
  color: var(--warn);
}

.cards {
  display: none;
}

.card-group + .card-group {
  margin-top: 22px;
}

.card-group__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: var(--fs-s);
  font-weight: 400;
  margin-bottom: 10px;
}

.card-group__head .group-row__rule {
  flex-basis: 100%;
  margin-top: 4px;
}

.card-list {
  display: grid;
  /* An auto track grows to its longest unbreakable symbol; this one cannot. */
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.history-matches {
  margin-top: 28px;
}

.history-list {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--hatch), var(--surface);
}

.history-list li + li {
  border-top: 1px solid var(--line-soft);
}

.history-list__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.history-list__symbol {
  font-weight: 600;
  color: var(--text);
}

.history-list__state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* rail */
.rail {
  padding-top: 4px;
}

/* ------------------------------------------------------------ observatory -- */
/*
 * The Orb. The canvas draws the network; the tokens are real links laid over
 * it and positioned by transform. Colour follows the system: the network is
 * accent-on-dark and carries no verdict colour; verdict colour appears only on
 * a token's ring, and on its tether while it is focused.
 */
.orb {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Open on the page: the atmosphere behind it (.board-layout::before) is its
     only setting. No frame, no surface. */
  padding: 4px 0 0;
}

.orb__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.orb__eyebrow {
  margin: 0 0 6px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

.orb__name {
  margin: 0;
  font: 600 34px / 1.05 var(--font-display);
  letter-spacing: -0.022em;
  color: var(--text);
}

.orb__sub {
  max-width: 46ch;
  margin: 8px 0 0;
  font-size: var(--fs);
  line-height: 1.45;
  color: var(--text-3);
}

.orb__head .orb__status {
  margin-top: 2px;
}

.orb__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.orb__beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: orb-beacon 3.6s ease-in-out infinite;
}

.orb[data-state="scanning"] .orb__status {
  color: var(--accent-strong);
}

.orb[data-state="scanning"] .orb__beacon {
  animation-duration: 1.3s;
}

.orb[data-state="offline"] .orb__beacon {
  background: var(--text-4);
  box-shadow: none;
  animation: none;
}

@keyframes orb-beacon {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.orb__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  /* Unframed, the sphere may use the gutter and the column gap. */
  margin: 0 -20px;
}

.orb__footer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding-top: 16px;
  /* A hairline that fades at both ends, rather than a box edge. */
  background: linear-gradient(to right, transparent, var(--line) 18%, var(--line) 82%, transparent) top / 100% 1px no-repeat;
}

.orb__aside .section-title {
  margin-bottom: 8px;
}

.orb__aside .rail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

/* Two changes fit beside the readout; the Changes page has the rest. */
.orb__aside .rail-list li:nth-child(n + 3) {
  display: none;
}

.orb__aside .rail-item {
  padding: 8px 10px;
}

.orb__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* It may extend past the stage (orb.js fitCanvas); only light is drawn
     there, so it must never take a click from what lies beneath. */
  pointer-events: none;
}

.orb__markers {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.orb-marker {
  --ring: var(--line-strong);
  --ring-solid: var(--neutral);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 2px;
  border-radius: 12px;
  color: var(--text-3);
  text-decoration: none;
  pointer-events: auto;
  will-change: transform, opacity;
  /* Off-stage until the first frame places it. */
  transform: translate3d(-200px, -200px, 0);
}

.orb-marker:hover {
  color: var(--text);
}

.orb-marker--good {
  --ring: var(--good-line);
  --ring-solid: var(--good);
}
.orb-marker--warn {
  --ring: var(--warn-line);
  --ring-solid: var(--warn);
}
.orb-marker--bad {
  --ring: var(--bad-line);
  --ring-solid: var(--bad);
}

.orb-marker .avatar {
  border: 0;
  background: var(--surface-2);
  box-shadow:
    0 0 0 1.5px var(--ring),
    0 0 0 5px var(--bg);
  transition: box-shadow 0.35s ease;
}

.orb-marker.is-focused .avatar {
  box-shadow:
    0 0 0 1.5px var(--ring-solid),
    0 0 0 5px var(--bg),
    0 0 22px 2px var(--ring);
}

.orb-marker:focus-visible {
  outline: none;
}

.orb-marker:focus-visible .avatar {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.avatar--40 {
  width: 40px;
  height: 40px;
}

.orb-marker--primary {
  color: var(--text-2);
}

.orb-marker--primary .orb-marker__symbol {
  font-size: 11px;
  color: var(--text);
}

.orb-marker__caption {
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Quieter tokens, so the primaries lead. */
.orb-marker:not(.orb-marker--primary) .avatar {
  opacity: 0.86;
}

.orb-marker__symbol {
  max-width: 72px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(11, 13, 18, 0.74);
  font: 600 10px/1.1 var(--mono);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orb-marker.is-focused .orb-marker__symbol {
  color: var(--text);
}

/* A real verdict change on the last scan: one ring, once. */
.orb-marker.is-changed::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  border: 1.5px solid var(--ring-solid);
  animation: orb-change 1.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  pointer-events: none;
}

@keyframes orb-change {
  from {
    transform: scale(0.9);
    opacity: 0.95;
  }
  to {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* A token icon that fails to load shows the monogram underneath. */
.avatar__img.is-broken {
  display: none;
}

.orb__readout {
  /* Tall enough for a token preview, so focusing one never moves anything. */
  min-height: 96px;
  min-width: 0;
  overflow: hidden;
  padding: 2px 2px 0;
}

.orb__line {
  margin: 0 0 3px;
  font-size: var(--fs-s);
  color: var(--text-2);
}

.orb__line--scan {
  color: var(--accent-strong);
}

.orb__meta {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-4);
}

.orb-preview__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.orb-preview__id {
  display: grid;
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}

.orb-preview__id strong {
  font-size: var(--fs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orb-preview__id span {
  font-size: var(--fs-xs);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orb-preview__score {
  margin: 0 0 0 auto;
  font: 600 var(--fs-l) / 1 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.orb-preview__verdict {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
  font-size: var(--fs-s);
  min-width: 0;
}

.orb-preview__verdict > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orb-preview__why {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.rail-list {
  display: grid;
  gap: 2px;
}

.rail-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r);
  color: var(--text-2);
  border: 1px solid transparent;
}

.rail-item:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-2);
}

.rail-item__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-xs);
}

.rail-item__top strong {
  color: var(--text);
  font-size: var(--fs-s);
}

.rail-item__top time {
  color: var(--text-3);
}

.rail-item .verdict {
  font-size: 10.5px;
  padding: 1px 8px 1px 6px;
}

.rail-item__reason {
  font-size: var(--fs-xs);
}

/* Loading: the loaded list's exact shape, drawn as skeleton cards. */
.rail-list--loading .rail-item {
  background: var(--surface);
  border-color: var(--line-soft);
}
.rail-list--loading .rail-item > * {
  visibility: hidden;
}

.rail__more {
  display: inline-block;
  margin-top: 10px;
  font-size: var(--fs-s);
  padding: 4px 12px;
}

/* ---------------------------------------------------------------- dossier -- */
.dossier {
  max-width: 1200px;
  margin: 0 auto;
}

.crumbs {
  margin-bottom: 16px;
  font-size: var(--fs-s);
}

.crumbs a {
  color: var(--text-2);
}

.crumbs a:hover {
  color: var(--text);
}

.dossier-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 16px;
}

.identity {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 8px 0;
}

.identity__symbol {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
  word-break: break-word;
}

.identity__symbol .badge {
  font-size: var(--fs-2xs);
  vertical-align: 8px;
}

.identity__name {
  color: var(--text-2);
  margin-top: 4px;
  font-size: var(--fs-m);
  word-break: break-word;
}

.identity__mint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.verdict-panel {
  position: relative;
  padding: 18px 22px 18px 24px;
  border-radius: var(--r-l);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.verdict-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--line-strong);
}

.verdict-panel--good::before {
  background: var(--good);
}
.verdict-panel--warn::before {
  background: var(--warn);
}
.verdict-panel--bad::before {
  background: var(--bad);
}

.verdict-panel__eyebrow {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
}

.verdict-panel__label {
  margin: 10px 0 8px;
  font-weight: inherit;
}

.verdict-panel__reason {
  font-size: var(--fs-m);
  font-weight: 500;
  color: var(--text);
}

.verdict-panel__reason.tone--good {
  color: var(--text);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: var(--fs-s);
  color: var(--text-2);
}

.fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fact::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-4);
  flex: none;
}

.fact--good::before {
  background: var(--good);
}
.fact--warn::before {
  background: var(--warn);
}
.fact--bad::before {
  background: var(--bad);
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  margin-bottom: 22px;
}

.trust > * {
  padding: 16px 20px;
}

.trust > * + * {
  border-left: 1px solid var(--line-soft);
}

.trust__label {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
}

.trust__value {
  font-size: var(--fs-xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
  line-height: 1.1;
}

.trust__unit {
  font-size: var(--fs-s);
  color: var(--text-3);
  font-weight: 500;
  margin-left: 2px;
}

.trust__caption {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.4;
}

.trust__none {
  margin-top: 10px;
  color: var(--text-2);
  font-size: var(--fs-s);
}

.unknowns {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.unknown {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: var(--r-s);
  background: var(--hatch), var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-s);
}

.unknown__label {
  font-weight: 600;
  color: var(--text);
}

.unknown__reason {
  font-size: var(--fs-xs);
  color: var(--text-2);
}

.unknown--global {
  border-color: var(--warn-line);
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  position: relative;
  padding: 10px 14px 12px;
  color: var(--text-2);
  font-weight: 500;
  font-size: var(--fs-s);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: var(--text);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.tab__count {
  font-size: var(--fs-2xs);
  color: var(--text-3);
  margin-left: 4px;
}

.dossier-tab {
  outline: none;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.overview-main,
.overview-side {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.panel--bad {
  border-color: var(--bad-line);
}

.panel__title {
  font-size: var(--fs-s);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.panel__note {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-3);
}

.panel__lede {
  color: var(--text-2);
  font-size: var(--fs-s);
  margin-bottom: 14px;
}

.vetoes {
  display: grid;
  gap: 14px;
}

.veto + .veto {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.veto__label {
  font-weight: 650;
  color: var(--bad);
  font-size: var(--fs-m);
}

.veto__reason {
  margin-top: 4px;
  color: var(--text-2);
  font-size: var(--fs-s);
}

.veto__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.watchpoints {
  display: grid;
  gap: 8px;
  font-size: var(--fs-s);
}

.watchpoint {
  padding-left: 14px;
  position: relative;
}

.watchpoint::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 12px;
}

.stats dt,
.kv dt {
  font-size: var(--fs-2xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stats dd {
  font-size: var(--fs-m);
  font-weight: 600;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.move-cell {
  color: var(--text-2);
}

.kv {
  display: grid;
  gap: 12px;
}

.kv > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.kv dd {
  font-size: var(--fs-s);
  word-break: break-word;
}

.components {
  display: grid;
  gap: 14px;
}

.component {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 64px;
  gap: 4px 14px;
  align-items: center;
}

.component__label {
  font-size: var(--fs-s);
  font-weight: 500;
}

.component__value {
  text-align: right;
  font-weight: 600;
  font-size: var(--fs-s);
}

.component__detail {
  grid-column: 2 / -1;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.component--unknown .component__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--hatch), var(--surface-2);
  border: 1px solid var(--line-strong);
}

.component--unknown .component__bar svg {
  display: none;
}

.component--unknown .component__value {
  color: var(--text-3);
  font-weight: 500;
  font-size: var(--fs-xs);
}

.findings {
  display: grid;
  gap: 10px;
}

.finding {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-s);
  color: var(--text-2);
}

.finding .tag {
  text-transform: capitalize;
  margin-top: 1px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  font-size: var(--fs-s);
  color: var(--text-2);
}

.ext-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

.ext-link::after {
  content: "↗";
  margin-left: 6px;
  color: var(--text-3);
  font-size: var(--fs-xs);
}

/* evidence ledger */
.ev-legend,
.ev__summary {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1.4fr) 120px minmax(90px, 0.8fr) 90px;
  gap: 12px;
  align-items: center;
}

.ev-legend {
  padding: 0 16px 8px 40px;
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-4);
  font-weight: 600;
}

.ev-group {
  margin-bottom: 20px;
}

.ev-list {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
}

.ev + .ev {
  border-top: 1px solid var(--line-soft);
}

.ev--unmeasured {
  box-shadow: inset 3px 0 0 var(--line-strong);
}

.ev details > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 16px 11px 40px;
  position: relative;
}

.ev details > summary::-webkit-details-marker {
  display: none;
}

.ev details > summary::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: translateY(-65%) rotate(-45deg);
  transition: transform 0.12s ease;
}

.ev details[open] > summary::before {
  transform: translateY(-80%) rotate(45deg);
}

.ev details > summary:hover {
  background: var(--hover);
}

.ev__label {
  font-weight: 500;
}

.ev__value {
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.ev--unmeasured .ev__value {
  color: var(--text-3);
}

.ev__source,
.ev__age {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.ev__detail {
  padding: 4px 16px 16px 40px;
  display: grid;
  gap: 10px;
  background: var(--bg-sunk);
  border-top: 1px solid var(--line-soft);
}

.claims {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-s);
  margin-top: 8px;
}

.claims th {
  text-align: left;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.claims td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.claims .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.override {
  display: inline-block;
  margin-left: 6px;
  color: var(--warn);
}

.notes {
  display: grid;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}

/* contract */
.extensions {
  display: grid;
  gap: 6px;
}

.extension details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
  background: var(--surface-2);
}

.extension summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.extension__label {
  font-weight: 600;
  margin-right: 4px;
}

.extension details p {
  margin-top: 8px;
}

/* history */
.timeline-wrap {
  overflow: hidden;
}

.timeline {
  display: block;
  max-width: 100%;
  height: auto;
  touch-action: pan-y;
}

.timeline .band--good {
  fill: var(--good);
}
.timeline .band--warn {
  fill: var(--warn);
}
.timeline .band--bad {
  fill: var(--bad);
}
.timeline .band--neutral {
  fill: var(--neutral);
}
.timeline .band--none {
  fill: var(--surface-3);
}

.timeline .grid {
  stroke: var(--line);
  stroke-width: 1;
}

.timeline .line {
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.timeline .line--price {
  stroke: var(--text-2);
}

.timeline .line--liq {
  stroke: var(--accent);
}

.timeline .dot {
  fill: var(--text-2);
}

.timeline .dot--liq {
  fill: var(--accent);
}

.timeline .marker line {
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.timeline .marker--good line,
.timeline .marker--good path {
  stroke: var(--good);
  fill: var(--good);
}
.timeline .marker--bad line,
.timeline .marker--bad path {
  stroke: var(--bad);
  fill: var(--bad);
}
.timeline .marker--warn line,
.timeline .marker--warn path {
  stroke: var(--warn);
  fill: var(--warn);
}

.timeline .axis__label,
.timeline .axis__value,
.timeline .lane__label {
  fill: var(--text-3);
  font-size: 11px;
  font-family: var(--font);
}

.timeline .lane__label {
  fill: var(--text-2);
  font-weight: 600;
}

.timeline .axis__value--none {
  fill: var(--text-4);
  font-style: italic;
}

.timeline .crosshair {
  stroke: var(--text-2);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: 10px;
}

.lg::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--text-3);
}

.lg--good::before {
  background: var(--good);
}
.lg--warn::before {
  background: var(--warn);
}
.lg--bad::before {
  background: var(--bad);
}
.lg--none::before {
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
}
.lg--marker::before {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--text-2);
}

.timeline-readout {
  margin-top: 10px;
  min-height: 1.6em;
  font-size: var(--fs-s);
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.history {
  display: grid;
  gap: 20px;
}

.changes {
  display: grid;
}

.change {
  display: grid;
  grid-template-columns: 150px minmax(200px, auto) minmax(0, 1fr);
  gap: 4px 16px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-s);
}

.change:first-child {
  border-top: 0;
}

.change__time {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.change__context {
  grid-column: 2 / -1;
}

.change--first {
  color: var(--text-2);
}

/* ---------------------------------------------------------------- changes -- */
.changes-page .segments {
  display: inline-flex;
  margin-bottom: 22px;
}

.day {
  margin-bottom: 22px;
}

.stream {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
}

.stream-item + .stream-item {
  border-top: 1px solid var(--line-soft);
}

.stream-item__link {
  display: grid;
  grid-template-columns: 80px minmax(120px, 190px) auto minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-2);
  font-size: var(--fs-s);
}

.stream-item__link:hover {
  background: var(--hover);
  color: var(--text-2);
}

.stream-item__time {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.stream-item__token {
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stream-item__name {
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-item__context {
  font-size: var(--fs-xs);
  color: var(--text-3);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- system -- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.capability {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  display: grid;
  gap: 8px;
  align-content: start;
}

.capability--bad {
  border-color: var(--bad-line);
}

.capability--warn {
  border-color: var(--warn-line);
}

.capability__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.capability__label {
  font-size: var(--fs);
  font-weight: 600;
}

.capability__summary {
  font-size: var(--fs-s);
  color: var(--text-2);
}

.capability__impact {
  font-size: var(--fs-s);
  color: var(--text);
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--r-s);
}

.capability__enable {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bars {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.bars__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  font-size: var(--fs-s);
}

.bars__bar {
  width: 100%;
  height: 10px;
}

.bars__bar rect {
  fill: var(--accent);
}

.bars__value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1179px) {
  /* Tablet: the Observatory leads, full width, then the Board. */
  .board-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "panel";
    row-gap: 24px;
  }
  .board-hero {
    position: static;
    height: 680px;
    min-height: 0;
  }
  .board-layout::before {
    background:
      radial-gradient(ellipse 50% 32% at 50% 36%, rgba(138, 180, 255, 0.075), transparent 72%),
      radial-gradient(ellipse 80% 48% at 50% 36%, rgba(96, 128, 214, 0.045), transparent 74%),
      radial-gradient(ellipse 40% 24% at 16% 12%, rgba(153, 110, 255, 0.035), transparent 72%),
      radial-gradient(ellipse 120% 90% at 50% 40%, transparent 58%, rgba(3, 4, 7, 0.5) 100%);
  }
  .board-panel .toolbar {
    flex-direction: row;
    align-items: center;
  }
  .board-panel .toolbar__controls {
    flex: 1 1 320px;
    justify-content: flex-end;
  }
  .board-panel .search {
    max-width: 340px;
  }
}

@media (max-width: 760px) {
  /* Phone: the horizon band - a different composition, not a smaller sphere. */
  .board-hero {
    height: auto;
  }
  .orb {
    padding: 0;
  }
  .orb__name {
    font-size: var(--fs-xl);
  }
  .orb__sub,
  .orb__aside,
  .orb-marker__caption {
    display: none;
  }
  /* Discover's hero only: the Landing composes its own phone layout. */
  .board-hero .orb__stage {
    flex: none;
    height: 212px;
    margin: 2px -14px 0;
    /* The planet's limb fades into the frame rather than ending at a hard edge. */
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent);
    mask-image: linear-gradient(to bottom, #000 74%, transparent);
  }
  .orb__footer {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 10px;
  }
  .orb__readout {
    min-height: 0;
  }
}

@media (max-width: 1240px) {
  .trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .trust__unknowns {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 1060px) {
  .col-age {
    display: none;
  }
  .dossier-head,
  .overview-grid,
  .system-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
  }
  .topbar {
    gap: 12px;
  }
  .brand__chain,
  .live__text {
    display: none;
  }
  /* The table becomes cards rather than a shrunken table. */
  .table-scroll {
    display: none;
  }
  .cards {
    display: block;
  }
  .card__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
    color: var(--text);
  }
  .card[data-verdict="REJECTED"] .card__link {
    border-color: var(--bad-line);
  }
  .card__link:hover {
    color: var(--text);
    background: var(--hover);
  }
  .card__head {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .card__id {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
  }
  .card__symbol {
    font-weight: 650;
    font-size: var(--fs-m);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card__name {
    font-size: var(--fs-xs);
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card__verdict {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: var(--fs-s);
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
  }
  .card__aging {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: var(--fs-xs);
    color: var(--warn);
  }
  .card__k {
    color: var(--text-3);
    font-size: var(--fs-xs);
    margin-right: 2px;
  }
  .toolbar__controls {
    flex-basis: 100%;
    justify-content: stretch;
  }
  .search {
    max-width: none;
  }
  .search__hint {
    display: none;
  }
  .stream-item__link {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .stream-item__time {
    order: 2;
    text-align: right;
  }
  .stream-item__token {
    order: 1;
  }
  .stream-item__link > .transition,
  .stream-item__link > .tag,
  .stream-item__reason,
  .stream-item__context {
    grid-column: 1 / -1;
    order: 3;
  }
  .stream-item__context {
    white-space: normal;
  }
  .change {
    grid-template-columns: minmax(0, 1fr);
  }
  .change__context {
    grid-column: 1;
  }
  .ev-legend {
    display: none;
  }
  .ev__summary {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }
  .ev__value {
    grid-column: 1;
    grid-row: 2;
    font-size: var(--fs-s);
  }
  .ev__state {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .ev__source,
  .ev__age {
    grid-row: 2;
    justify-self: end;
  }
  .ev__source {
    display: none;
  }
}

@media (max-width: 560px) {
  .orb__meta,
  .orb-preview__why {
    display: none;
  }
  .orb-preview__head {
    margin-bottom: 2px;
  }
  .main {
    padding-top: 20px;
  }
  .nav__link {
    padding: 7px 9px;
  }
  .brand__name {
    display: none;
  }
  .segments {
    width: 100%;
  }
  .segment {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 8px;
    min-height: 40px;
  }
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }
  .trust > * + * {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .identity__symbol {
    font-size: var(--fs-xl);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kv > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .component {
    grid-template-columns: 96px minmax(0, 1fr) 44px;
  }
  .bars__row {
    grid-template-columns: 70px minmax(0, 1fr) 36px;
  }
  .capabilities {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn--small {
    min-height: 36px;
  }
  .link-btn {
    min-height: 32px;
  }
}

/* Stretches with no observation: shaded, never joined by a line. */
.timeline .gap {
  fill: var(--surface-2);
  opacity: 0.55;
}

.lg--gap::before {
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
}

.notice__fix {
  display: inline-block;
  margin-left: 4px;
}

@media (max-width: 900px) {
  .card[data-verdict="QUALIFIED"] .card__link {
    box-shadow: inset 3px 0 0 var(--good-line);
  }
  .card[data-verdict="WATCH"] .card__link {
    box-shadow: inset 3px 0 0 var(--warn);
  }
  .card[data-verdict="REJECTED"] .card__link {
    box-shadow: inset 3px 0 0 var(--bad);
  }
}

/* ---------------------------------------------------------------- landing -- */
/*
 * The landing reads top to bottom: the headline in its own space, then the
 * Observatory - large, in the page's flow - then the two ways in. The page
 * scrolls; nothing is squeezed into one screen. Once an analysis or a scan
 * starts, the Observatory lifts into a full-height operational stage and the
 * rest of the page steps aside.
 */
.btn--primary {
  min-height: 44px;
  padding: 0 20px;
  border-color: transparent;
  background: var(--accent);
  color: #0b0d12;
  font-weight: 600;
}
.btn--primary:hover:not(:disabled) {
  border-color: transparent;
  background: var(--accent-strong);
  color: #0b0d12;
}
.btn--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--text-2);
}

.orb--bare {
  height: 100%;
  padding: 0;
}
.orb--bare .orb__head,
.orb--bare .orb__footer {
  display: none;
}
.orb--bare .orb__stage {
  margin: 0;
}

.landing {
  position: relative;
  margin: -28px calc(-1 * var(--gutter)) -64px;
  padding: 0 var(--gutter);
  min-height: calc(100vh - var(--topbar));
  /* Nothing decorative may widen the page. */
  overflow: clip;
}

/* The page's own atmosphere: faint, cool, a trace of violet, a vignette. */
.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Every fade eases to nothing: a straight ramp ending at zero reads as an
     edge, and several of them together read as a box around the sphere. */
  background:
    radial-gradient(ellipse 60% 55% at 50% 62%, rgba(96, 128, 214, 0.05), rgba(96, 128, 214, 0.028) 34%, rgba(96, 128, 214, 0.01) 58%, transparent 78%),
    radial-gradient(ellipse 30% 34% at 16% 12%, rgba(153, 110, 255, 0.035), rgba(153, 110, 255, 0.012) 44%, transparent 76%),
    radial-gradient(ellipse 120% 95% at 50% 50%, transparent 52%, rgba(3, 4, 7, 0.14) 68%, rgba(3, 4, 7, 0.38) 84%, rgba(3, 4, 7, 0.55) 100%);
}

.landing__content {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 112px) 0 96px;
}

.landing__intro {
  /* Above the Observatory's light, which may reach behind the words. */
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.landing__eyebrow {
  margin: 0;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

.landing__title {
  margin: 16px 0 0;
  font: 600 clamp(40px, 5vw, 66px) / 1.03 var(--font-display);
  letter-spacing: -0.034em;
  color: var(--text);
}

.landing__title-line {
  display: block;
  color: var(--text-2);
}

.landing__lede {
  max-width: 58ch;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-3);
}

/*
 * The Observatory. Its box keeps ~9% of its height free above and below the
 * sphere; the words and the ways in reach into that space, so the sphere sits
 * ~40-50 px from each - related to both, crowding neither.
 */
.landing__orb {
  position: relative;
  height: clamp(560px, 80vh, 780px);
  margin: clamp(-24px, -2vh, -10px) calc(-1 * var(--gutter)) 0;
}

/* The light around the sphere, centred on it and larger than the box; it
   eases to nothing before its own edge, so no edge of it is ever seen. */
.landing__orb::before {
  content: "";
  position: absolute;
  inset: -14% 0;
  pointer-events: none;
  background: radial-gradient(
    circle closest-side,
    rgba(138, 180, 255, 0.06),
    rgba(138, 180, 255, 0.034) 30%,
    rgba(138, 180, 255, 0.014) 56%,
    rgba(138, 180, 255, 0.004) 80%,
    transparent
  );
}

.landing__deck {
  position: relative;
  z-index: 1;
  margin-top: clamp(-8px, -0.4vh, 0px);
}

/* The two ways in: one instrument, split in two. Not two identical cards. */
.paths {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 15, 21, 0.78);
  overflow: hidden;
}

.path {
  display: block;
  padding: 28px 30px 24px;
  color: var(--text);
}

.path--discover {
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(138, 180, 255, 0.04), transparent 70%);
}

.path__kicker {
  display: block;
  margin: 0;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

.path__title {
  margin: 6px 0 8px;
  font: 600 22px / 1.2 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--text);
}

.path__body {
  max-width: 46ch;
  margin: 0 0 18px;
  font-size: var(--fs-s);
  line-height: 1.55;
  color: var(--text-3);
}

.mint-field {
  display: flex;
  gap: 8px;
}

.mint-field input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-sunk);
  color: var(--text);
  font: 500 var(--fs) var(--mono);
}

.mint-field input::placeholder {
  font-family: var(--font);
  color: var(--text-4);
}

.mint-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.mint-field.is-invalid input {
  border-color: var(--bad-line);
}

.path__help,
.path__error {
  display: block;
  margin: 12px 0 0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-3);
}

.path__help strong {
  color: var(--text);
  font-weight: 600;
}

.path__error {
  color: var(--bad);
}

/* Operational stage: once something starts, the Observatory fills the view. */
.landing:not([data-phase="idle"]) .landing__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar));
  padding: 32px 0;
}

.landing:not([data-phase="idle"]) .landing__intro {
  display: none;
}

.landing:not([data-phase="idle"]) .landing__orb {
  position: absolute;
  inset: 0 0 auto;
  height: calc(100vh - var(--topbar));
  margin: 0;
}

.landing:not([data-phase="idle"]) .landing__orb::before {
  display: none;
}

.landing:not([data-phase="idle"]) .landing__deck {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  margin: 0;
}

.progress,
.result {
  border: 1px solid var(--line);
  border-radius: 16px;
  /* Nearly opaque: legible over the network, without a per-frame backdrop blur. */
  background: rgba(12, 15, 21, 0.88);
}

.progress {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 22px;
  animation: stage-in 0.4s ease both;
}

.progress__title {
  margin: 4px 0 0;
  font: 600 var(--fs-l) / 1.3 var(--mono);
}

.progress__title--text {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.stages {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.stage {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  animation: stage-in 0.35s ease both;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.stage__mark {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--text-4);
}

.stage--active .stage__mark {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: orb-beacon 1.3s ease-in-out infinite;
}

.stage__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stage__label {
  font-size: var(--fs);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.stage--active .stage__label {
  color: var(--text);
}

.stage__detail {
  font-size: var(--fs-xs);
  color: var(--text-4);
}

.progress__note {
  margin: 12px 0 4px;
  font-size: var(--fs-xs);
  color: var(--text-4);
}

.progress__links {
  display: flex;
  gap: 18px;
}

.progress__cancel {
  font-size: var(--fs-xs);
}

/* Arriving: the scan is done; the panel steps aside as the sphere moves. */
.landing[data-phase="arriving"] .landing__deck {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Result: the sphere is anchored left; the verdict arrives on the right. */
.landing[data-phase="result"] .landing__deck,
.landing[data-phase="error"] .landing__deck {
  align-self: center;
  justify-self: end;
  width: min(480px, 40%);
  animation: result-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}

.result {
  padding: 22px 24px;
}

.result__id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 16px;
}

.result__name {
  min-width: 0;
}

.result__name h2 {
  margin: 0;
  font: 600 var(--fs-xl) / 1.1 var(--font-display);
  letter-spacing: -0.015em;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result__name p {
  margin: 3px 0 0;
  font-size: var(--fs-s);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result__verdict {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.result__verdict p {
  margin: 0;
  font-size: var(--fs);
}

.result__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 16px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line-soft);
}

.result__trust div {
  padding: 10px 12px;
  background: var(--surface);
}

.result__trust dt {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
}

.result__trust dd {
  margin: 2px 0 0;
  font: 600 22px / 1.2 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.result__block {
  margin-top: 12px;
}

.result__block h3 {
  margin: 0 0 6px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
}

.result__block ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-s);
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.result__note {
  margin: 12px 0 0;
}

.result--error .result__error-title {
  margin: 8px 0 6px;
  font: 600 var(--fs-xl) / 1.15 var(--font-display);
  outline: none;
}

.result--error p {
  color: var(--text-2);
}

@media (max-width: 1060px) {
  .landing[data-phase="result"] .landing__deck,
  .landing[data-phase="error"] .landing__deck {
    width: min(420px, 46%);
  }
}

/* Phone: the same order - headline, Observatory, the ways in - stacked. */
@media (max-width: 760px) {
  .landing {
    overflow-x: clip;
    overflow-y: visible;
  }
  .landing__content {
    padding: 36px 0 64px;
  }
  .landing__title {
    font-size: 36px;
  }
  .landing__lede {
    margin-top: 14px;
    font-size: var(--fs);
  }
  .landing__orb {
    height: 380px;
    margin: -18px calc(-1 * var(--gutter)) 0;
  }
  .landing__deck {
    margin-top: -14px;
  }
  .paths {
    grid-template-columns: minmax(0, 1fr);
  }
  .path {
    padding: 22px 20px 20px;
  }
  .path--discover {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  /* In an analysis or scan the phone keeps its stacked flow. */
  .landing:not([data-phase="idle"]) .landing__content {
    display: block;
    min-height: 0;
    padding: 12px 0 40px;
  }
  .landing:not([data-phase="idle"]) .landing__orb {
    position: relative;
    inset: auto;
    height: 380px;
    margin: 0 calc(-1 * var(--gutter));
  }
  .landing:not([data-phase="idle"]) .landing__deck {
    margin-top: 8px;
  }
  .landing[data-phase="result"] .landing__deck,
  .landing[data-phase="error"] .landing__deck {
    width: auto;
    animation-name: result-in-up;
  }
}

@keyframes result-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ------------------------------------------------- arrival on Live discovery -- */
/*
 * After a discovery scan the same Observatory arrives here from the landing.
 * The Board then assembles itself beside it, in order: the panel, its header,
 * the controls, the rows, and last the Observatory's own heading and footer.
 */
.board-layout.is-arriving .board-panel {
  animation: arrive-panel 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}
.board-layout.is-arriving .board-head {
  animation: arrive-up 0.5s ease 0.3s both;
}
.board-layout.is-arriving .board-main > .notice {
  animation: arrive-up 0.5s ease 0.42s both;
}
.board-layout.is-arriving .toolbar {
  animation: arrive-up 0.5s ease 0.54s both;
}
.board-layout.is-arriving .group-row,
.board-layout.is-arriving .board-row {
  animation: arrive-up 0.45s ease 0.95s both;
}
.board-layout.is-arriving tbody > tr:nth-child(1) { animation-delay: 0.62s; }
.board-layout.is-arriving tbody > tr:nth-child(2) { animation-delay: 0.66s; }
.board-layout.is-arriving tbody > tr:nth-child(3) { animation-delay: 0.7s; }
.board-layout.is-arriving tbody > tr:nth-child(4) { animation-delay: 0.74s; }
.board-layout.is-arriving tbody > tr:nth-child(5) { animation-delay: 0.78s; }
.board-layout.is-arriving tbody > tr:nth-child(6) { animation-delay: 0.82s; }
.board-layout.is-arriving tbody > tr:nth-child(7) { animation-delay: 0.86s; }
.board-layout.is-arriving tbody > tr:nth-child(8) { animation-delay: 0.9s; }
.board-layout.is-arriving .orb__head,
.board-layout.is-arriving .orb__footer {
  animation: arrive-up 0.6s ease 1.05s both;
}

@keyframes arrive-panel {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
}

@keyframes arrive-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ------------------------------------------------------ decision engine -- */
/* High potential and high risk share a hue with Qualified and Rejected; a
   second mark keeps them distinct without relying on colour. */
.verdict--potential {
  box-shadow: inset 0 0 0 1px var(--good);
  font-weight: 700;
}
.verdict--potential .verdict__dot {
  box-shadow: 0 0 0 2px var(--good-soft);
}
.verdict--risk .verdict__dot {
  border-radius: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-2xs);
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  line-height: 1.55;
  color: var(--text-2);
}
.chip--good { color: var(--good); border-color: var(--good-line); background: var(--good-soft); }
.chip--warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.chip--bad { color: var(--bad); border-color: var(--bad-line); background: var(--bad-soft); }
.chip--neutral { color: var(--text-2); background: var(--neutral-soft); }

.board .col-state {
  white-space: nowrap;
  width: 1%;
}
.board .col-state .stacked {
  gap: 3px;
}
.stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.stacked__sub {
  font-size: var(--fs-2xs);
  color: var(--text-3);
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  margin-bottom: 14px;
}
.decision-card {
  padding: 16px 20px;
  min-width: 0;
}
.decision-card + .decision-card {
  border-left: 1px solid var(--line-soft);
}
.decision-card__label {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
}
.decision-card__value {
  font-size: var(--fs-xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  line-height: 1.1;
}
.decision-card__value--word {
  font-size: var(--fs-l);
  padding: 4px 0 3px;
}
.decision-card__unit {
  font-size: var(--fs-s);
  color: var(--text-3);
  font-weight: 500;
  margin-left: 2px;
}
.decision-card__state {
  margin-bottom: 10px;
  min-height: 1.4em;
}
.decision-card__caption {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.4;
}
.decision-card--good .decision-card__value { color: var(--good); }
.decision-card--bad .decision-card__value { color: var(--bad); }
.decision-card--warn .decision-card__value { color: var(--warn); }

.reasons {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.reasons li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 6px;
  font-size: var(--fs-s);
  line-height: 1.45;
}
.reasons__mark {
  font-weight: 700;
  text-align: center;
}
.reasons--positive .reasons__mark { color: var(--good); }
.reasons--risk .reasons__mark { color: var(--bad); }
.reasons--blocker .reasons__mark { color: var(--text-3); }
.reasons--blocker li { color: var(--text-2); }
.reasons__head {
  margin-top: 12px;
}

.composition {
  list-style: none;
  margin: 12px 0 6px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.composition__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2fr) minmax(90px, 0.8fr);
  align-items: center;
  gap: 12px;
}
.composition__label {
  font-size: var(--fs-s);
  font-weight: 600;
}
.stack {
  width: 100%;
  height: 10px;
  display: block;
}
.stack__track { fill: var(--surface-3); }
.stack--unknown .stack__track { fill: var(--line-strong); opacity: 0.6; }
.stack__seg--likely_organic { fill: var(--good); }
.stack__seg--automated { fill: var(--accent); }
.stack__seg--sniper { fill: var(--warn); }
.stack__seg--coordinated { fill: var(--bad); }
.stack__seg--unknown { fill: var(--text-4); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-3);
  margin: 4px 0 10px;
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend__swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.legend__swatch--likely_organic { background: var(--good); }
.legend__swatch--automated { background: var(--accent); }
.legend__swatch--sniper { background: var(--warn); }
.legend__swatch--coordinated { background: var(--bad); }
.legend__swatch--unknown { background: var(--text-4); }

.kv--compact > div {
  padding: 7px 0;
}

.evidence-more {
  margin-top: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}
.evidence-more > summary {
  cursor: pointer;
  font-size: var(--fs-xs);
  color: var(--text-2);
  font-weight: 600;
}
.evidence-more > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mono-list,
.signals,
.events,
.caveats {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.mono-list code {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  word-break: break-all;
}
.signals li {
  font-size: var(--fs-xs);
  line-height: 1.45;
}
.event-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: var(--fs-s);
}
.caveats li {
  font-size: var(--fs-xs);
  color: var(--warn);
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}
.caveats li::before {
  content: "!";
  position: absolute;
  left: 2px;
  font-weight: 700;
}

.paths {
  margin-top: 10px;
}
.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  margin-top: 4px;
}
.path__node code {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
}
.path__edge {
  color: var(--text-3);
}
.path__edge::before { content: "—"; margin-right: 3px; }
.path__edge::after { content: "→"; margin-left: 3px; }

.domains {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.domain__summary {
  display: grid;
  grid-template-columns: minmax(120px, 1.3fr) auto minmax(60px, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 7px 0;
  font-size: var(--fs-s);
}
.domain__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.domain__label {
  font-weight: 600;
}
.domain__detail {
  padding: 0 0 10px 12px;
  border-left: 2px solid var(--line-strong);
  margin-left: 4px;
}

.momentum {
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
  padding-top: 10px;
}
.momentum__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.stats--tight {
  margin: 6px 0;
}

.panel--quiet > details > summary {
  cursor: pointer;
  list-style: none;
}
.panel--quiet > details > summary::-webkit-details-marker {
  display: none;
}

.stream-item__details {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

@media (max-width: 900px) {
  .decision-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .decision-card:nth-child(3) {
    border-left: none;
  }
  .decision-card:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 560px) {
  .decision-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .decision-card + .decision-card {
    border-left: none;
    border-top: 1px solid var(--line-soft);
  }
  .composition__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .domain__summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .domain__meter,
  .domain__summary > .small {
    display: none;
  }
}

/*
 * The Scanner (ui/scanner.js): the Landing's atmospheric background.
 *
 * Fixed to the viewport and painted behind the page - in the same layer as
 * the Landing's own atmosphere (`.landing::before`), above it in tree order -
 * so it has no box of its own to show: its bounds are the screen's. It is
 * not clipped by the Landing, whose content column is capped in width, and it
 * cannot widen the page. The Observatory and everything else paint above it.
 *
 * Fades are large and soft, and every one eases to nothing: a top fade keeps
 * the headline clear, and a wide ellipse lets the field fall away into the
 * page's dark atmosphere toward the screen's edges. The dim behind the sphere
 * is done in the shader, at the sphere's real position.
 */
.landing__scanner {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 18%, rgba(0, 0, 0, 0.55) 34%, rgba(0, 0, 0, 0.9) 48%, #000 60%),
    radial-gradient(ellipse 85% 80% at 50% 62%, #000 0%, #000 42%, rgba(0, 0, 0, 0.7) 62%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.08) 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 18%, rgba(0, 0, 0, 0.55) 34%, rgba(0, 0, 0, 0.9) 48%, #000 60%),
    radial-gradient(ellipse 85% 80% at 50% 62%, #000 0%, #000 42%, rgba(0, 0, 0, 0.7) 62%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.08) 94%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 760px) {
  .landing__scanner {
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.6) 40%, #000 56%),
      radial-gradient(ellipse 120% 75% at 50% 60%, #000 0%, #000 40%, rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0.15) 88%, transparent 100%);
    mask-image:
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.6) 40%, #000 56%),
      radial-gradient(ellipse 120% 75% at 50% 60%, #000 0%, #000 40%, rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0.15) 88%, transparent 100%);
  }
}

/*
 * Deep Risk Analysis: the hand-off to Solana Risk Radar, a separate product.
 * Quiet on purpose - a second opinion from elsewhere, not part of the verdict.
 */
.radar-handoff {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-l);
  background: var(--bg-sunk);
}

.radar-handoff__title {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.radar-handoff__note {
  margin: 2px 0 0;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.radar-handoff__link {
  flex-shrink: 0;
  text-decoration: none;
}

@media (max-width: 760px) {
  .radar-handoff {
    flex-direction: column;
    align-items: stretch;
  }
}

/*
 * How a verdict is reached: four sentences under the ways in, so someone
 * seeing Token Finder for the first time learns what makes a verdict
 * trustworthy. Idle Landing only; the other phases use the space.
 */
.landing__how {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 72px auto 24px;
}

.landing__how-title {
  margin: 0 0 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.how {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how__item {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.how__name {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--text);
}

.how__body {
  margin: 0;
  font-size: var(--fs-s);
  line-height: 1.55;
  color: var(--text-2);
}

.landing:not([data-phase="idle"]) .landing__how {
  display: none;
}

@media (max-width: 1100px) {
  .how {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .landing__how {
    margin-top: 48px;
  }
  .how {
    grid-template-columns: minmax(0, 1fr);
  }
}
