/* Hypertide public site framing — shared by the static pages in src/web/public
   and the server-rendered pages in src/web/routes/public (header/footer markup
   comes from routes/public/siteChrome.ts). Served at /site.css by the existing
   @fastify/static registration; plain CSS, no build step, no JavaScript.

   Tokens mirror the Mini-App's theme/base.css (redesign 2026-10-21,
   docs/design/redesign-spec-2026-10-21.md §4). Every class is prefixed `ht-`
   so pages can adopt it one at a time without clashing with their existing
   page-local <style> blocks. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); }

:root {
  --ht-canvas: #0b0f14;
  --ht-surface: #12171e;
  --ht-elevated: #19212b;
  --ht-divider: #28313d;
  --ht-boundary: #66788c;
  --ht-text: #eef2f6;
  --ht-text-2: #b0bac7;
  --ht-muted: #8996a8;
  --ht-accent: #52d3e5;
  --ht-accent-hover: #7adfec;
  --ht-accent-tint: #112a30;
  --ht-accent-border: #2a6a75;
  --ht-on-accent: #0b0f14;
  --ht-positive: #35c58a;
  --ht-negative: #f07884;
  --ht-warning: #e9b96e;
  --ht-warning-tint: #221d14;
  --ht-warning-border: #6b5631;
  --ht-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ht-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ht-r-control: 6px;
  --ht-r-panel: 10px;
  --ht-gutter: 16px;
  --ht-motion: 140ms;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --ht-gutter: 32px; } }
@media (prefers-reduced-motion: reduce) { :root { --ht-motion: 0ms; } }

.ht-site {
  margin: 0;
  background: var(--ht-canvas);
  color: var(--ht-text);
  font-family: var(--ht-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.ht-site *, .ht-site *::before, .ht-site *::after { box-sizing: border-box; }
/* :where() keeps these at element specificity, so a page's own button or link
   colours (and the static pages' legacy classes) always win. */
:where(.ht-site) a { color: var(--ht-accent); }
:where(.ht-site) a:hover { color: var(--ht-accent-hover); }
.ht-site :where(a, button, summary, input, select):focus-visible { outline: 2px solid var(--ht-accent); outline-offset: 2px; }
.ht-num { font-family: var(--ht-mono); font-variant-numeric: tabular-nums; }
.ht-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Layout ── */
.ht-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--ht-gutter); }
.ht-doc { max-width: 720px; margin: 0 auto; padding: 32px var(--ht-gutter) 64px; }
.ht-section { border-top: 1px solid var(--ht-divider); padding: 48px 0; }
@media (min-width: 700px) { .ht-section { padding: 72px 0; } }

/* ── Type ── */
.ht-eyebrow { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ht-accent); }
.ht-h1 { margin: 0; font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 700px) { .ht-h1 { font-size: 56px; line-height: 60px; letter-spacing: -0.025em; } }
.ht-h2 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 700px) { .ht-h2 { font-size: 32px; line-height: 40px; } }
.ht-h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.ht-lead { margin: 0; color: var(--ht-text-2); font-size: 16px; line-height: 24px; }
@media (min-width: 700px) { .ht-lead { font-size: 18px; line-height: 28px; } }
.ht-prose { color: var(--ht-text-2); }
.ht-prose p, .ht-prose ul, .ht-prose ol { margin: 0 0 16px; }
.ht-prose h2 { margin: 40px 0 12px; color: var(--ht-text); font-size: 24px; line-height: 32px; font-weight: 600; }
.ht-prose h3 { margin: 28px 0 8px; color: var(--ht-text); font-size: 18px; line-height: 26px; font-weight: 600; }
.ht-prose strong { color: var(--ht-text); font-weight: 600; }
.ht-caption { font-size: 13px; line-height: 18px; color: var(--ht-muted); }

/* ── Buttons (links styled as buttons) ── */
.ht-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--ht-r-control);
  border: 1px solid transparent; font: 600 16px/20px var(--ht-sans); text-decoration: none;
  transition: background-color var(--ht-motion) ease-out, border-color var(--ht-motion) ease-out;
}
.ht-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.ht-site .ht-btn--primary { background: var(--ht-accent); color: var(--ht-on-accent); }
.ht-site .ht-btn--primary:hover { background: var(--ht-accent-hover); color: var(--ht-on-accent); }
.ht-site .ht-btn--secondary { background: var(--ht-surface); color: var(--ht-text); border-color: var(--ht-boundary); }
.ht-site .ht-btn--secondary:hover { background: var(--ht-elevated); color: var(--ht-text); }

/* ── Header ── */
.ht-header { position: relative; border-bottom: 1px solid var(--ht-divider); background: var(--ht-canvas); }
.ht-header__bar { display: flex; align-items: center; gap: 8px; min-height: 56px; }
@media (min-width: 700px) { .ht-header__bar { min-height: 64px; gap: 32px; } }
.ht-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: 1 1 auto; min-width: 0; }
.ht-site .ht-brand, .ht-site .ht-brand:hover { color: var(--ht-text); }
.ht-brand svg { flex: none; }
.ht-brand__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.ht-brand__name b { font-weight: 600; color: var(--ht-accent); }
.ht-nav { display: none; }
.ht-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ht-text-2); text-decoration: none; font-size: 14px; padding: 8px 0; }
.ht-nav a:hover, .ht-nav a[aria-current="page"] { color: var(--ht-text); }
.ht-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ht-accent); }
.ht-header__launch { flex: none; white-space: nowrap; }
@media (max-width: 359px) { .ht-header__launch { padding: 0 10px; font-size: 13px; } .ht-brand__name { font-size: 16px; } }

/* Mobile menu: <details>, so it opens without JavaScript. */
.ht-menu { flex: none; }
.ht-menu > summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--ht-r-control); cursor: pointer; color: var(--ht-text);
}
.ht-menu > summary::-webkit-details-marker { display: none; }
.ht-menu[open] > summary { background: var(--ht-elevated); }
.ht-menu__panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: var(--ht-surface); border-bottom: 1px solid var(--ht-divider);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; padding: 8px var(--ht-gutter) 16px;
}
.ht-menu__panel a { display: flex; align-items: center; min-height: 48px; color: var(--ht-text); text-decoration: none; border-bottom: 1px solid var(--ht-divider); }
.ht-menu__panel a:last-child { border-bottom: none; }
.ht-menu__panel a[aria-current="page"] { color: var(--ht-accent); font-weight: 600; }
@media (min-width: 900px) {
  .ht-nav { display: flex; gap: 28px; flex: 1 1 auto; }
  .ht-brand { flex: none; }
  .ht-menu { display: none; }
}

.ht-standalone-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; }
.ht-skip { position: fixed; z-index: 30; top: 8px; left: var(--ht-gutter); opacity: 0; pointer-events: none; }
.ht-skip:focus { opacity: 1; pointer-events: auto; padding: 8px 14px; background: var(--ht-surface); }
:where(.ht-reading) { position: relative; isolation: isolate; }
.ht-reading > .ht-reading-ambient {
  z-index: -1;
  inset-block-end: auto;
  height: clamp(260px, 48vw, 510px);
  opacity: .5;
  mask-image: linear-gradient(#000, #000 30%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    :is(.ht-docpage .ht-reading, .ht-reading.gd, .ht-reading.pg-how)::after {
      content: "";
      position: fixed;
      z-index: 2;
      inset: 0 0 auto;
      height: 2px;
      pointer-events: none;
      background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
      transform-origin: left;
      animation: ht-reading-progress auto linear both;
      animation-timeline: scroll(root);
    }
    @keyframes ht-reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ── Footer ── */
.ht-footer { border-top: 1px solid var(--ht-divider); background: var(--ht-canvas); padding: 40px 0 48px; }
.ht-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 900px) { .ht-footer__grid { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 32px; } }
.ht-footer__about { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.ht-footer__note { margin: 0; max-width: 340px; }
@media (min-width: 900px) { .ht-footer__about { grid-column: auto; } }
.ht-footer__col { display: flex; flex-direction: column; }
.ht-footer__col h2 { margin: 0 0 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ht-text); }
.ht-footer__col a { display: flex; align-items: center; min-height: 36px; color: var(--ht-text-2); text-decoration: none; font-size: 14px; }
.ht-footer__col a:hover { color: var(--ht-text); }

/* ── Data and research components ── */
.ht-panel { background: var(--ht-surface); border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); }
.ht-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ht-table th { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ht-muted); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ht-divider); white-space: nowrap; }
.ht-table td { padding: 12px; border-bottom: 1px solid #1c232d; vertical-align: middle; }
.ht-table .ht-r { text-align: right; }
.ht-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ht-pos { color: var(--ht-positive); }
.ht-neg { color: var(--ht-negative); }
.ht-missing { color: var(--ht-muted); }
.ht-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--ht-boundary); border-radius: var(--ht-r-control); background: var(--ht-surface); }
.ht-seg a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 4px; color: var(--ht-text-2); text-decoration: none; font-size: 14px; }
.ht-site .ht-seg a[aria-current="true"], .ht-site .ht-seg a[aria-current="page"] { background: var(--ht-accent); color: var(--ht-on-accent); font-weight: 600; }
.ht-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.ht-pill--sim { color: var(--ht-accent); background: var(--ht-accent-tint); border-color: var(--ht-accent-border); }
.ht-pill--warn { color: var(--ht-warning); background: var(--ht-warning-tint); border-color: var(--ht-warning-border); }
.ht-sim { background: var(--ht-surface); border: 1px solid var(--ht-accent-border); border-radius: var(--ht-r-panel); padding: 16px; }
.ht-callout { background: var(--ht-warning-tint); border: 1px solid var(--ht-warning-border); border-radius: var(--ht-r-panel); padding: 12px 16px; color: var(--ht-text); }
.ht-disclosure { border-top: 1px solid var(--ht-divider); }
.ht-disclosure > summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; list-style: none; }
.ht-disclosure > summary::-webkit-details-marker { display: none; }
.ht-disclosure > summary::after { content: "+"; color: var(--ht-muted); font-weight: 400; }
.ht-disclosure[open] > summary::after { content: "−"; }

/* ── Content-page layouts (landing, how, fees, custody, roadmap, guides) ── */
.ht-hero { padding: 48px 0 56px; }
@media (min-width: 700px) { .ht-hero { padding: 88px 0 80px; } }
.ht-hero__inner { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.ht-hero h1 .ink { color: var(--ht-text-2); }
.ht-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ht-home-replay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ht-budget-link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ht-accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ht-budget-link:disabled { display: none; }
.ht-quiet-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.ht-quiet-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 600; }
.ht-strip { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ht-muted); }
.ht-strip li::before { content: "·"; margin-right: 8px; color: var(--ht-divider); }
.ht-strip li:first-child::before { content: none; }
.ht-head { max-width: 640px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ht-split { display: grid; gap: 32px; }
@media (min-width: 900px) { .ht-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }

/* Editorial columns: dividers, not cards. */
.ht-cols { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ht-divider); }
@media (min-width: 900px) { .ht-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ht-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ht-cols > * { padding: 20px 0; border-bottom: 1px solid var(--ht-divider); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .ht-cols > * { padding: 24px 28px 24px 0; border-bottom: none; } }
.ht-cols h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.ht-cols p { margin: 0; color: var(--ht-text-2); font-size: 15px; line-height: 23px; }
.ht-cols strong { color: var(--ht-text); font-weight: 600; }
.ht-step-n { font-family: var(--ht-mono); font-size: 13px; color: var(--ht-accent); }

/* Permission ledger: two labelled lists, words carry the meaning. */
.ht-ledger { display: grid; gap: 0; align-self: start; }
@media (min-width: 700px) { .ht-ledger { grid-template-columns: 1fr 1fr; } }
.ht-ledger__col { padding: 20px; }
.ht-ledger__col + .ht-ledger__col { border-top: 1px solid var(--ht-divider); }
@media (min-width: 700px) { .ht-ledger__col + .ht-ledger__col { border-top: none; border-left: 1px solid var(--ht-divider); } }
.ht-ledger h3 { margin: 0 0 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ht-text-2); }
.ht-ledger ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ht-ledger li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ht-ledger .ht-mark { flex: none; width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ht-ledger .ht-mark--yes { background: var(--ht-accent-tint); color: var(--ht-accent); border: 1px solid var(--ht-accent-border); }
.ht-ledger .ht-mark--no { background: #25161a; color: var(--ht-negative); border: 1px solid #6e3940; }
.ht-ledger__caption { grid-column: 1 / -1; margin: 0; padding: 12px 20px; border-top: 1px solid var(--ht-divider); font-size: 13px; color: var(--ht-muted); }

.ht-ways { display: grid; gap: 0; border-top: 1px solid var(--ht-divider); }
@media (min-width: 700px) { .ht-ways { grid-template-columns: 1fr 1fr; } }
.ht-ways > * { padding: 24px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ht-ways > * + * { border-top: 1px solid var(--ht-divider); }
@media (min-width: 700px) { .ht-ways > * { padding: 28px 32px 8px 0; } .ht-ways > * + * { border-top: none; border-left: 1px solid var(--ht-divider); padding-left: 32px; } }
.ht-ways h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.ht-ways p { margin: 0; color: var(--ht-text-2); }
.ht-fine { padding: 32px 0 0; border-top: 1px solid var(--ht-divider); }
.ht-fine p { margin: 0 0 12px; max-width: 760px; font-size: 13px; line-height: 20px; color: var(--ht-muted); }
.ht-fine b, .ht-fine strong { color: var(--ht-text-2); }
.ht-more { max-width: 640px; }
.ht-more > summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--ht-accent); font-weight: 600; }
.ht-more > p { margin: 8px 0 0; color: var(--ht-text-2); }

/* ── Document pages (fees, custody, roadmap, terms, privacy). These pages keep
   their original markup and copy; this scope restyles their shared classes in
   the new system, and aliases their old variable names so the few page-specific
   rules still in each page's <style> resolve to the new palette. ── */
.ht-docpage {
  --bg: var(--ht-canvas); --panel: var(--ht-surface); --ink: var(--ht-text); --muted: var(--ht-text-2);
  --cyan: var(--ht-accent); --line: var(--ht-divider); --bad: var(--ht-negative); --good: var(--ht-accent);
  --faint: var(--ht-muted); --warn: var(--ht-warning);
}
.ht-docpage .wrap { max-width: 720px; margin: 0 auto; padding: 40px var(--ht-gutter) 64px; }
.ht-docpage .eyebrow { margin: 0 0 10px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ht-accent); }
.ht-docpage h1 { margin: 0 0 16px; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.015em; }
@media (min-width: 700px) { .ht-docpage h1 { font-size: 40px; line-height: 48px; } }
.ht-docpage h2 { margin: 40px 0 12px; font-size: 22px; line-height: 30px; font-weight: 600; }
.ht-docpage h3 { font-weight: 600; }
.ht-docpage p { margin: 0 0 16px; color: var(--ht-text-2); }
.ht-docpage .lead { font-size: 18px; line-height: 28px; color: var(--ht-text); }
.ht-docpage strong { color: var(--ht-text); font-weight: 600; }
.ht-docpage .cant { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 0; border-top: 1px solid var(--ht-divider); }
.ht-docpage .cant li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--ht-divider); }
.ht-docpage .cant .x { color: var(--ht-negative); font-weight: 700; flex: none; }
.ht-docpage .cant .why { display: block; color: var(--ht-text-2); font-size: 14px; margin-top: 4px; }
.ht-docpage .note { background: var(--ht-surface); border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); padding: 16px 20px; }
.ht-docpage .fees li { margin: 0 0 10px; color: var(--ht-text-2); }
.ht-docpage .fees b { color: var(--ht-text); }
.ht-docpage .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.ht-docpage .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--ht-r-control); text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.ht-docpage .btn-pri { background: var(--ht-accent); color: var(--ht-on-accent); }
.ht-docpage .btn-pri:hover { background: var(--ht-accent-hover); color: var(--ht-on-accent); }
.ht-docpage .btn-ghost { border-color: var(--ht-boundary); color: var(--ht-text); background: var(--ht-surface); }
.ht-docpage .doc-foot { border-top: 1px solid var(--ht-divider); margin-top: 48px; padding-top: 20px; font-size: 13px; line-height: 20px; color: var(--ht-muted); }
.ht-docpage .doc-foot p { color: var(--ht-muted); }
.ht-docpage .doc-foot b { color: var(--ht-text-2); }

/* The public prompt remains readable and selectable before its script runs. */
.ht-wallet-review-prompt {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ht-boundary);
  border-radius: var(--ht-r-control);
  background: var(--ht-surface);
  color: var(--ht-text);
  font: inherit;
  resize: vertical;
}
.ht-wallet-review-prompt:focus-visible { outline: 2px solid var(--ht-accent); outline-offset: 2px; }
.ht-wallet-review-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ht-wallet-review-copy:has(button:not([hidden])) { margin-bottom: 12px; }
.ht-wallet-review-copy button { cursor: pointer; }
.ht-wallet-review-copy button:focus-visible { outline: 2px solid var(--ht-accent); outline-offset: 3px; }
.ht-wallet-review-copy button[hidden] { display: none; }
.ht-wallet-review-copy p { margin: 0; }

/* ── Public trader profile /l/:address (routes/public/leaderCardHtml.ts). Record
   first; compact labelled scores; simulated result in its own section. ── */
.lc { max-width: 760px; margin: 0 auto; padding: 16px var(--ht-gutter) 32px; }
.lc .ht-eyebrow { margin: 0 0 8px; }
.lc-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.lc-name { margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
/* Roadmap 1.1: claimed trader profile under the name. */
.lc-profile { margin: 12px 0 0; }
.lc-handle { margin: 0; font-size: 14px; line-height: 20px; color: var(--ht-text-2, #a9b4c4); overflow-wrap: anywhere; }
.lc-handle strong { color: var(--ht-text, #eef2f7); font-weight: 600; }
.lc-selfrep { opacity: .75; }
.lc-bio { margin: 6px 0 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.lc-addr { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--ht-muted); word-break: break-all; }
.lc-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 20px; }
.lc-asof { font-size: 13px; color: var(--ht-muted); }
.lc-record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); background: var(--ht-surface); overflow: hidden; }
@media (min-width: 700px) { .lc-record { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.lc-record > .lc-stat { padding: 14px 16px; border-right: 1px solid var(--ht-divider); border-bottom: 1px solid var(--ht-divider); margin: -1px -1px 0 0; }
.lc-stat__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ht-muted); }
.lc-stat__value { margin-top: 2px; font-size: 18px; line-height: 26px; color: var(--ht-text); }
.lc-record .lc-stat__value, .lc-score__value { font-size: 22px; line-height: 30px; }
.lc-score__missing { margin-left: 6px; font-family: var(--ht-sans); font-size: 13px; color: var(--ht-muted); }
.lc-score__sub { font-size: 12px; line-height: 16px; color: var(--ht-muted); }
.lc-note { margin: 10px 0 0; font-size: 13px; line-height: 19px; color: var(--ht-muted); }
.lc-head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lc-block { margin-top: 24px; }
.lc-sim__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.lc-sim__basis { font-size: 13px; color: var(--ht-text-2); }
.ht-sim .lc-stat__value { font-size: 26px; line-height: 32px; }
.lc-sim__limits { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 19px; color: var(--ht-muted); }
.lc-budget { padding-block: 10px 16px; color: var(--terminal-text); font-family: var(--tide-font-sans); scroll-margin: 16px; }
.lc-budget h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.lc-budget__intro { margin: 6px 0 0; color: var(--terminal-label); font-size: 14px; line-height: 21px; }
.lc-budget__grid { display: grid; gap: 18px; margin-top: 16px; }
.lc-budget [hidden] { display: none !important; }
.lc-budget__form, .lc-budget__result { display: grid; align-content: start; gap: 11px; min-width: 0; }
.lc-budget__field { display: grid; gap: 4px; color: var(--terminal-label); font-size: 13px; }
.lc-budget__field label { font-weight: 600; }
.lc-budget__field input, .lc-budget__field select:not(.ht-choice-enhanced) {
  width: 100%; min-width: 0; min-height: 36px; padding: 5px 10px;
  border: 0; border-radius: 8px; color: var(--terminal-text); background: var(--terminal-control);
  font: 16px var(--tide-font-sans);
}
.lc-budget__field input[type=number] { appearance: textfield; font-family: var(--tide-font-mono); }
.lc-budget__field input::-webkit-inner-spin-button, .lc-budget__field input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.lc-budget__field input::placeholder { color: var(--terminal-hint); font-family: var(--tide-font-sans); }
.lc-budget__amount { display: flex; align-items: center; gap: 6px; padding-inline: 10px; border-radius: 8px; background: var(--terminal-control); }
.lc-budget__amount:focus-within { outline: 2px solid var(--terminal-accent); outline-offset: 2px; }
.lc-budget .lc-budget__amount input { padding-inline: 0; background: transparent; outline: 0; }
.lc-budget__field p, .lc-budget__method, .lc-budget__assumptions p { margin: 0; color: var(--terminal-label); font-size: 13px; line-height: 19px; }
.lc-budget button { font-family: var(--tide-font-sans); cursor: pointer; }
.lc-budget button[aria-disabled="true"] { opacity: .7; cursor: wait; }
.lc-budget :is(button, a, input, select, summary):focus-visible, .lc-copy-context:focus-visible { outline: 2px solid var(--terminal-accent); outline-offset: 2px; }
.lc-budget .lc-budget__run { width: 100%; min-height: 40px; border: 0; border-radius: 8px; background: var(--terminal-accent); color: var(--terminal-base); }
.lc-budget .lc-budget__run:hover { background: color-mix(in srgb, var(--terminal-accent) 86%, white); }
.lc-budget__comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; border-block: 1px solid var(--terminal-divider); }
.lc-budget__comparison > div { padding-block: 7px; }
.lc-budget__comparison dt, .lc-budget__return > span { color: var(--terminal-label); font-size: 13px; line-height: 18px; }
.lc-budget__comparison dd { margin: 3px 0 0; font-family: var(--tide-font-sans); font-variant-numeric: normal; font-size: clamp(13px, 2vw, 17px); line-height: 22px; overflow-wrap: anywhere; }
.lc-budget__comparison small, .lc-budget__return small { display: block; color: var(--ht-muted); font-size: 12px; line-height: 18px; }
.lc-budget__outcome { display: grid; align-content: start; gap: 8px; }
.lc-budget__status { margin: 0; font-size: 14px; line-height: 21px; }
.lc-budget__return { display: grid; margin-bottom: 8px; }
.lc-budget__return strong { font-size: clamp(23px, 5vw, 32px); line-height: 1.25; overflow-wrap: anywhere; }
.lc-budget__return [data-direction="up"] { color: var(--terminal-positive); }
.lc-budget__return [data-direction="down"] { color: var(--ht-negative); }
.lc-budget__return [data-direction="flat"] { font-family: var(--tide-font-sans); }
.lc-budget__metrics ~ .lc-budget__method:not(:empty) { margin-top: 6px; }
.lc-budget__assumptions { border: 0; border-top: 1px solid var(--terminal-divider); }
.lc-budget__assumptions p { margin-bottom: 8px; }
.lc-budget__handoff { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--terminal-divider); }
.lc-budget__handoff h3 { margin: 0 0 4px; font-size: 16px; }
.lc-budget__handoff > p { margin: 0; color: var(--ht-text-2); font-size: 13px; line-height: 19px; }
.lc-budget__handoff > p:not(:empty):last-of-type { margin-top: 6px; }
.lc-budget__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.lc-budget__actions :is(.lc-btn, .lc-budget__plain) { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 8px; border: 0; border-radius: 8px; color: var(--terminal-label); background: transparent; text-decoration: none; font-size: 14px; }
.lc-budget__actions :is(.lc-btn, .lc-budget__plain):hover { color: var(--terminal-text); background: var(--terminal-control-hover); }
.lc-budget__plain { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; color: var(--ht-text-2); background: transparent; text-decoration: underline; text-underline-offset: .18em; }
@media (min-width: 700px) {
  .lc-budget__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; }
  .lc-budget__result { padding-inline-start: 24px; border-inline-start: 1px solid var(--terminal-divider); }
}
@media (max-width: 480px) {
  .lc-budget__actions .lc-btn { width: 100%; }
}
.lc-activity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 8px; }
@media (min-width: 700px) { .lc-activity { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lc-activity > .lc-stat { padding: 10px 0; border-bottom: 1px solid #1c232d; }
.lc-explain { margin: 0 0 16px; font-size: 14px; line-height: 21px; color: var(--ht-text-2); }
.lc-explain strong { color: var(--ht-text); }
.lc-size { margin: 24px 0 16px; padding: 12px 16px; border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); background: var(--ht-surface); font-size: 14px; line-height: 21px; color: var(--ht-text-2); }
.lc-size strong { color: var(--ht-text); }
.lc-next { font-size: 13px; line-height: 19px; color: var(--ht-text-2); }

.lc-copy-context { margin-bottom: 10px; font-size: 12px; line-height: 17px; color: var(--ht-text-2); }
.lc-copy-context p { margin: 0; }
.lc-copy-context p + p { margin-top: 4px; }
.lc-copy-context strong { color: var(--ht-text); }
.lc-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.lc-cta-col { flex: 1 1 220px; max-width: 320px; }
.lc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--ht-r-control); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.ht-site .lc-btn--primary { background: var(--ht-accent); color: var(--ht-on-accent); }
.ht-site .lc-btn--primary:hover { background: var(--ht-accent-hover); color: var(--ht-on-accent); }
.ht-site .lc-btn--secondary { background: var(--ht-surface); color: var(--ht-text); border-color: var(--ht-boundary); }
.lc-fee { margin: 8px 0 0; font-size: 13px; line-height: 19px; color: var(--ht-text-2); }
.lc-short { display: none; }
.lc-phone-note { display: none; margin: 8px 0 0; font-size: 12px; line-height: 17px; color: var(--ht-text-2); }
@media (max-width: 640px) {
  .lc-cta { flex-wrap: nowrap; gap: 8px; }
  .lc-cta-col { flex: 1 1 0; min-width: 0; }
  .lc-btn { display: flex; width: 100%; padding: 0 8px; font-size: 15px; }
  .lc-cta-col > p { display: none; }
  .lc-long { display: none; }
  .lc-short { display: inline; }
  .lc-phone-note { display: block; }
  .lc-fee { font-size: 12px; }
}
.lc-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ht-divider); font-size: 13px; line-height: 20px; color: var(--ht-muted); }
.lc-foot a { color: var(--ht-text-2); }

/* The public research page keeps the selected board and the trader's own
   portfolio distinct. Native disclosures keep the record usable without JS. */
.lc-workspace { max-width: 1440px; padding: 12px clamp(16px, 3.5vw, 56px) 36px; }
.lc-path, .lc-identity, .lc-panel__head, .lc-chart figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lc-path { border-bottom: 1px solid var(--ht-divider); }
.lc-path a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin: 0; color: var(--ht-text-2); text-decoration: none; font-size: 13px; }
.lc-path a:hover, .lc-preview-link:hover { color: var(--ht-accent); text-decoration: underline; }
.lc-identity { position: relative; flex-wrap: wrap; padding: 20px 0; }
.lc-identity .tv-head, .lc-identity__period { min-width: 0; }
.lc-identity .tv-ident { border: 1px solid var(--ht-divider); border-radius: 10px; background: var(--ht-elevated); padding: 6px; }
.lc-identity .lc-name { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.16; }
.lc-identity .lc-profile { flex: 1 0 100%; order: 2; margin: 0; }
.lc-identity__period { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 14px; }
.lc-identity__period .lc-asof { font-size: 12px; }
.lc-identity__period .ht-seg { margin: 0; }
.lc-period-controls :is(a, button) { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 4px; font: 500 14px var(--ht-sans); }
.lc-period-controls button:disabled { border: 0; color: var(--ht-muted); background: transparent; cursor: default; }
.lc-period-controls a:not([aria-current]) { color: var(--ht-accent); text-decoration: underline; text-underline-offset: 3px; }
.lc-period-note { flex-basis: 100%; order: 2; margin: 0; color: var(--ht-text-2); font-size: 12px; text-align: right; }
.lc-quick-copy { display: none; }
.lc-dashboard { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.lc-main-column, .lc-sidebar { min-width: 0; display: grid; gap: 12px; }
.lc-panel, .lc-rank-history, .lc-fold { border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); background: var(--ht-surface); }
.lc-panel { min-width: 0; padding: 16px clamp(14px, 1.6vw, 24px); }
.lc-panel__head { align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.lc-panel__head h2, .lc-research-title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.lc-panel__head > span { font-size: 12px; color: var(--ht-muted); white-space: nowrap; }
.lc-panel__head a, .lc-preview-link { font-size: 13px; text-underline-offset: 3px; }
.lc-rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; }
.lc-rank-stat { min-width: 0; padding: 0 12px; border-left: 1px solid var(--ht-divider); }
.lc-rank-stat:first-child { padding-left: 0; border-left: 0; }
.lc-rank-stat:last-child { padding-right: 0; }
.lc-rank-stat dt, .lc-rank-stat dd { margin: 0; color: var(--ht-text-2); font-size: 12px; line-height: 1.5; }
.lc-rank-stat dd.ht-num { margin: 4px 0 2px; color: var(--ht-text); font-size: clamp(15px, 1.6vw, 23px); line-height: 1.3; overflow-wrap: anywhere; }
.lc-rank-stat[data-primary-metric] dt, .lc-rank-stat[data-primary-metric] dd.ht-num { color: var(--ht-accent); }
.lc-rank-source { margin-top: 8px; color: var(--ht-muted); font-size: 12px; }
.lc-rank-source summary { width: fit-content; min-height: 28px; padding: 5px 0; cursor: pointer; }
.lc-rank-source .lc-note { margin-top: 0; }
.lc-rank-stat dd.ht-num { white-space: nowrap; }
.lc-rank-history { background: var(--ht-canvas); }
.lc-rank-history summary { font-size: 13px; }
.lc-history-body { padding: 0 16px 16px; }
.lc-chart-value { margin: 16px 0; }
.lc-chart-value > span, .lc-chart-value > strong { display: block; }
.lc-chart-value > span { font-size: 13px; color: var(--ht-text-2); }
.lc-chart-value > strong { margin-top: 2px; font-size: clamp(24px, 3vw, 42px); line-height: 1.2; font-weight: 400; letter-spacing: -.045em; overflow-wrap: anywhere; }
.lc-chart-value [data-direction="up"] { color: var(--ht-positive); }
.lc-chart-value [data-direction="down"] { color: var(--ht-negative); }
.lc-chart { margin: 18px 0 0; }
.lc-chart__plot { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.lc-chart__axis { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 11px; line-height: 1; color: var(--ht-muted); }
.lc-chart-mid { margin: auto 0; }
.lc-chart .tv-line { min-width: 0; height: clamp(130px, 13vw, 195px); animation: none; overflow: hidden; border-block: 1px solid var(--ht-divider); background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--ht-divider) calc(25% - 1px) 25%); }
.lc-chart figcaption { margin-top: 6px; font-size: 11px; color: var(--ht-muted); }
.lc-no-curve { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ht-divider); color: var(--ht-text-2); font-size: 14px; }
.lc-risk .lc-record { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; background: transparent; border: 0; border-radius: 0; }
.lc-risk .lc-record > .lc-stat { margin: 0; padding: 8px 8px 8px 0; border: 0; border-bottom: 1px solid var(--ht-divider); }
.lc-risk .lc-score__value, .lc-risk .lc-stat__value { font-size: 20px; line-height: 1.4; }
.lc-setup { border-color: var(--ht-accent-border); }
.lc-setup .lc-copy-context { margin: 6px 0 12px; }
.lc-setup .lc-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lc-setup .lc-cta-col { max-width: none; }
.lc-setup .lc-btn { width: 100%; min-height: 44px; padding: 5px 8px; font-size: 14px; text-align: center; }
.lc-setup .lc-cta-col > p { margin-top: 6px; }
.lc-setup .lc-phone-note { display: block; margin: -6px 0 12px; }
.lc-preview-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lc-setup:has(.lc-preview-link) { padding-bottom: 5px; }
.lc-fill-evidence { margin-top: 16px; }
.lc-fill-evidence h3 { margin: 0; font-size: 15px; }
.lc-research { margin-top: 24px; }
.lc-research-title { margin-bottom: 10px; }
.lc-fold { margin: 0 0 6px; }
.lc-fold:has(.lc-budget) { border: 0; border-top: 1px solid var(--terminal-divider); background: var(--terminal-surface); }
.lc-fold > summary, .lc-rank-history > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 500; }
.lc-fold > summary::-webkit-details-marker, .lc-rank-history > summary::-webkit-details-marker { display: none; }
.lc-fold > summary::after, .lc-rank-history > summary::after { content: ""; width: 8px; height: 8px; flex: none; margin-right: 3px; border: solid var(--ht-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
:is(.lc-fold, .lc-rank-history)[open] > summary::after { transform: rotate(225deg); }
:is(.lc-fold, .lc-rank-history) > summary:hover { color: var(--ht-accent); }
.lc-fold__body { padding: 0 clamp(16px, 2vw, 28px) 20px; }
.lc-fold__body > :first-child { margin-top: 0; }
.lc-fold__body .lc-note, .lc-fold__body .lc-explain { max-width: 92ch; }
.lc-fold__body .tv-story { margin-top: 16px; }
.lc-fold__body .lc-activity { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.lc-workspace :is([id], details) { scroll-margin: 16px; }
@media (max-width: 899px) {
  .lc-workspace { padding-inline: var(--ht-gutter); }
  .lc-dashboard { grid-template-columns: minmax(0, 1.4fr) minmax(265px, 1fr); }
  .lc-rank-stat { padding-inline: 7px; }
}
@media (max-width: 700px) {
  .lc-dashboard { grid-template-columns: minmax(0, 1fr); }
  .lc-identity { padding: 14px 0; gap: 10px; }
  .lc-identity__period { justify-content: flex-start; width: 100%; gap: 8px; }
  .lc-identity__period .lc-asof { flex: 1; }
  .lc-period-note { text-align: left; }
  .lc-quick-copy { display: inline-flex; min-height: 44px; padding-inline: 12px; font-size: 14px; }
  .lc-identity .tv-ident { width: 40px; height: 40px; }
  .lc-path a { font-size: 12px; }
  .lc-panel { padding: 14px; }
  .lc-panel__head h2 { font-size: 16px; }
  .lc-risk .lc-record { grid-template-columns: repeat(auto-fit, minmax(min(118px, 100%), 1fr)); }
  .lc-chart-value { margin: 10px 0; }
  .lc-chart { margin-top: 12px; }
  .lc-rank-grid { margin-top: 10px; }
  .lc-dashboard, .lc-main-column, .lc-sidebar { gap: 8px; }
  .lc-fold__body .lc-activity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-activity .lc-stat__value { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
}
@media (max-width: 700px) {
  .lc-main-column > .lc-rank-history { order: 1; }
  .lc-rank-grid { display: block; }
  .lc-rank-stat { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr) minmax(0, .75fr); align-items: baseline; gap: 6px; padding: 3px 0; border: 0; }
  .lc-rank-stat dd { text-align: right; white-space: nowrap; }
  .lc-rank-stat dd.ht-num { margin: 0; font-size: 14px; }
  .lc-rank-stat[data-primary-metric] { margin-bottom: 3px; }
  .lc-rank-stat[data-primary-metric] dd.ht-num { font-size: 16px; }
  .lc-rank-source { margin-top: 3px; }
  .lc-ranks { padding-bottom: 6px; }
  .lc-path:has(.lc-back) ~ .lc-dashboard .lc-ranks .lc-panel__head a { display: none; }
}
@media (max-width: 390px) {
  .lc-identity__period:has(.ht-seg) .lc-asof { order: 1; flex-basis: 100%; }
  .lc-identity__period:has(.ht-seg) .lc-quick-copy { margin-left: auto; }
}

/* ── Public trader directory /leaders (routes/public/leaderboardIndexHtml.ts).
   Row layout itself stays in the page's ROW_CSS (it needs its own media query). ── */
.ht-site:has(> .lb) {
  --ht-canvas: #0b0f14;
  --ht-surface: #10141e;
  --ht-elevated: #19212c;
  --ht-accent: #42e3cb;
  --ht-accent-hover: #73efde;
  --ht-accent-tint: #112b30;
  --ht-accent-border: #367f79;
  --ht-positive: #49dab3;
  --ht-negative: #ff8297;
  --ht-r-control: 9px;
  --ht-r-panel: 15px;
}
.ht-site:has(> .lb) .ht-header { background: #080b10; }
.ht-site:has(> .lb) :is(.ht-nav a, .ht-brand, .ht-header__launch) { display: inline-flex; align-items: center; min-height: 44px; }
.lb { position: relative; isolation: isolate; max-width: 1040px; margin: 0 auto; padding: 30px var(--ht-gutter) 40px; }
.lb::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 490px; pointer-events: none;
  background: radial-gradient(ellipse at 45% 0%, #0b615b38, transparent 67%),
    radial-gradient(circle, #729e9f3b 0.7px, transparent 1.2px) 2px 2px / 22px 22px;
  mask-image: linear-gradient(#000, transparent 93%);
}
.lb .ht-eyebrow { margin: 0 0 8px; }
.lb-discover-header { margin-block-end: 24px; }
.lb-discover {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(18px, 3.5vw, 34px); border: 1px solid #2c444b; border-radius: 14px;
  background: #101b21;
}
.lb-discover-art {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 56%; height: 100%;
  object-fit: cover; object-position: 70% center; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 46%);
}
.lb-title {
  margin: 0 0 clamp(18px, 2.4vw, 26px); width: fit-content; max-width: 72%;
  color: #f2f8f8; font-size: clamp(30px, 4.3vw, 48px); line-height: 1.04; font-weight: 700; letter-spacing: -.05em;
}
.lb-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 590px; gap: 12px; }
.lb-source {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  padding: 15px 17px 12px; border: 1px solid #476068; border-radius: 8px;
  background: #132329f5; color: var(--ht-text); text-decoration: none;
  transition: background-color var(--ht-motion), border-color var(--ht-motion);
}
.lb-source-market { background: #10272bf5; border-color: #397578; }
.lb-source[aria-current] { box-shadow: inset 0 2px #8db2b9; }
.lb-source:hover { border-color: var(--ht-accent); background: #1b343b; }
.lb-source:focus-visible { outline: 2px solid var(--ht-accent); outline-offset: 3px; }
.lb-source-name { font-size: 13px; line-height: 1.3; color: #d1e0e3; font-weight: 600; }
.lb-source-measure, .lb-source-fallback { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; margin: 8px 0 3px; }
.lb-source-measure strong { font: 400 clamp(25px, 3.1vw, 37px)/1.07 var(--ht-mono); letter-spacing: -.07em; color: #f0f7f8; }
.lb-source-measure > span { color: #d1e0e3; font-size: 12px; }
.lb-source-fallback { color: #f0f7f8; font-size: clamp(19px, 2.3vw, 27px); line-height: 1.2; letter-spacing: -.04em; }
.lb-source-detail, .lb-source-date { color: #b1c5ca; font-size: 12px; line-height: 1.45; }
.lb-source-date { font: 400 10px/1.5 var(--ht-mono); }
.lb-source-action {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 13px;
  color: #7fe6e8; font-weight: 600; font-size: 12px; line-height: 1.4;
}
.lb-source[aria-current] .lb-source-action { color: #c6d5d8; }
.lb-source-action > span { transition: transform var(--ht-motion) ease-out; }
.lb-source:not([aria-current]):hover .lb-source-action > span { transform: translateX(3px); }
@media (max-width: 420px) { .lb-source-name { min-height: 2.6em; } }
.lb-market-title { margin: 0; font-size: 20px; letter-spacing: -.025em; }
@media (prefers-reduced-motion: no-preference) {
  .lb-discover-art { animation: lb-tide-arrive 420ms ease-out both; }
  @keyframes lb-tide-arrive { from { opacity: .4; transform: translateX(8px); } }
}
@media (max-width: 680px) {
  .lb-discover { padding: 16px 14px 13px; }
  .lb-discover-header { margin-block-end: 18px; }
  .lb-discover-art { width: 72%; height: 95px; mask-image: linear-gradient(90deg, transparent 0%, #000 60%); }
  .lb-title { margin-bottom: 16px; }
  .lb-sources { max-width: none; gap: 7px; }
  .lb-source { padding: 10px; }
  .lb-source-name { font-size: 12px; }
  .lb-source-measure { display: grid; gap: 1px; }
  .lb-source-measure > span, .lb-source-detail { font-size: 11px; line-height: 1.4; }
  .lb-source-action { padding-top: 8px; font-size: 11px; }
  .lb-source-date { font-size: 9px; }
}
.lb-asof { margin: 0; font-size: 13px; color: var(--ht-muted); }
.lb-stale { color: var(--ht-warning); }
.lb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 20px; padding: 16px; border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); background: var(--ht-surface); }
.lb-cta > div { flex: 1 1 260px; }
.lb-sign-in { margin: 0; }
.lb-browser { margin: 4px 0 0; font-size: 13px; line-height: 19px; color: var(--ht-text-2); }
.lb-probe { display: grid; gap: 6px; max-width: 520px; margin: 12px 0; font-size: 14px; }
.lb-probe > div { display: flex; gap: 8px; }
.lb-probe input:not([type="hidden"]) { flex: 1; min-width: 0; padding: 8px 12px; font: inherit; color: inherit; background: var(--ht-surface); border: 1px solid var(--ht-divider); border-radius: var(--ht-r-control); }
.lb-probe p, .copy-guide p { margin: 0; }
.copy-guide { max-width: 70ch; margin: 12px 0 20px; font-size: 14px; line-height: 1.5; color: var(--ht-text-2); }
.copy-guide summary { min-height: 36px; padding-block: 6px; }
.lb-probe :focus-visible, .copy-guide :focus-visible { outline: 2px solid var(--ht-accent); outline-offset: 2px; }
.lb-list { display: grid; }
.lb-link { display: block; min-width: 0; text-decoration: none; color: inherit; transition: background-color var(--ht-motion) ease-out; border-radius: var(--ht-r-panel); }
.lb-link:hover { background: var(--ht-elevated); }
.lb-row-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; color: var(--terminal-text); border-bottom: 1px solid var(--terminal-row-divider); }
.lb-row-item .lb-row { border-bottom: 0; }
.lb-row-item > .lb-copy { min-width: 118px; min-height: 44px; margin-right: 12px; white-space: nowrap; background: transparent; color: var(--terminal-accent); border: 0; border-radius: 8px; }
.lb-row-item > .lb-copy:hover { background: var(--terminal-control-hover); }
.lb-row-item .lb-metrics { flex: 0 1 50%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-row-item .lb-m { min-width: 0; text-align: start; }
.lb-risk { display: flex; align-items: center; gap: 6px; flex: 0 0 112px; font-size: 12px; }
.lb-risk--calm { color: var(--ht-positive); }
.lb-risk--balanced { color: var(--ht-warning); }
.lb-risk--bold { color: var(--ht-negative); }
.lb-risk-bars { display: flex; align-items: end; gap: 2px; }
.lb-risk-bars i { width: 3px; height: 4px; border-radius: 1px; background: var(--ht-divider); }
.lb-risk-bars i:nth-child(2) { height: 6px; }
.lb-risk-bars i:nth-child(3) { height: 8px; }
.lb-risk-bars i:nth-child(4) { height: 10px; }
.lb-risk-bars i:nth-child(5) { height: 12px; }
.lb-risk-bars i[data-filled] { background: currentColor; }
@media (max-width: 699px) {
  .lb-row-item { grid-template-columns: minmax(0, 1fr); }
  .lb-row-item .lb-row { flex-wrap: wrap; }
  .lb-row-item .lb-metrics { flex: 0 0 100%; }
  .lb-row-item > .lb-copy { justify-self: end; margin: 0 12px 10px; }
  .lb-row-item .lb-risk { justify-content: end; flex-basis: auto; }
}
.lb-name { font-size: 15px; font-weight: 600; color: var(--ht-text); }
.lb-addr { font-size: 12px; color: var(--ht-text-2); }
.lb-k { font-size: 12px; line-height: 16px; color: var(--ht-muted); }
.lb-v { font-size: 15px; line-height: 22px; }
.lb-empty { padding: 24px 16px; margin: 0; color: var(--ht-text-2); }
.lb-explainer { margin: 0 0 16px; }
.lb-link-line { margin: 12px 0 0; font-size: 14px; }
.lb-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.lb-heading h2 { margin: 0; font-size: 18px; line-height: 24px; letter-spacing: -0.02em; }
.lb .ht-seg { padding: 3px; background: #0d1119; border-color: var(--ht-divider); }
.lb .ht-seg a { justify-content: center; min-width: 44px; min-height: 44px; padding: 0 11px; border: 1px solid transparent; border-radius: 6px; font: 400 12px var(--ht-mono); }
.ht-site .lb .ht-seg a[aria-current] { border-color: var(--ht-accent-border); background: var(--ht-accent-tint); color: var(--ht-accent); box-shadow: 0 0 10px #42e3cb20; }
.lb .ht-seg a:not([aria-current]):hover { background: var(--ht-elevated); color: var(--ht-text); }
.lb-subtext, .lb-feature-note { margin: 8px 0 16px; font-size: 13px; color: var(--ht-text-2); }
.lb-feature-context { display: flex; align-items: baseline; justify-content: space-between; gap: 5px 14px; flex-wrap: wrap; margin: 8px 0 16px; }
.lb-feature-context .lb-subtext { margin: 0; }
.lb-feature-note { margin-top: 14px; max-width: 78ch; }
.lb-unavailable { margin-top: 14px; padding: 16px; border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); background: var(--ht-surface); }
.lb-unavailable p { margin: 0 0 12px; color: var(--ht-text-2); }
.lb-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 278px), 1fr)); gap: 16px; }
.lb-feature-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px;
  border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel);
  background: linear-gradient(155deg, var(--ht-surface), #0d1119);
  box-shadow: inset 0 1px #ffffff0c, 0 8px 24px #0003;
}
.lb-feature-head { display: flex; align-items: flex-start; gap: 9px; }
.lb-feature-head { color: inherit; text-decoration: none; }
.lb-feature-head:hover h3 { text-decoration: underline; }
.lb-ident { position: relative; display: inline-flex; flex: none; }
.lb-ident .tv-ident { border: 1px solid var(--ht-divider); border-radius: 9px; background: #14202b; padding: 4px; }
/* Some address prefixes create no cells in the shared identicon. */
.lb-ident:has(.tv-ident:empty)::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg); border: 1px solid var(--ht-accent); border-radius: 2px;
  background: radial-gradient(circle, var(--ht-accent) 16%, var(--ht-accent-tint) 27%);
}
.lb-feature-identity { flex: 1; min-width: 0; }
.lb-feature-identity :is(h3, .lb-addr) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-feature-identity h3 { margin: 0; font-size: 16px; line-height: 21px; }
.lb-score { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 7px; border: 1px solid var(--ht-divider); border-radius: 999px; background: #1a222e; color: var(--ht-text-2); font-size: 10px; white-space: nowrap; }
.lb-score::before { content: ""; width: 9px; height: 9px; margin-right: 2px; border: 1.5px solid var(--ht-accent); border-radius: 50%; }
.lb-score strong { color: var(--ht-text); font-weight: 400; }
.lb-feature-stats {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.48fr);
  align-items: end; gap: 8px; margin: 0; padding: 12px 0;
  border-block: 1px solid var(--ht-divider);
}
.lb-feature-stats dd { margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.lb-feature-return dd { font-size: clamp(23px, 3vw, 31px); letter-spacing: -0.05em; }
.lb-feature-dd dd, .lb-feature-sharpe dd { font-size: 14px; }
.lb-feature-sharpe { text-align: right; }
.lb-feature-history { display: grid; gap: 6px; margin: 0; min-height: 55px; color: var(--ht-muted); font: 400 11px/16px var(--ht-mono); }
.lb-feature-history .tv-line { width: 100%; height: 33px; animation: none; }
.lb-feature-history.ht-neg { --ht-accent: var(--ht-negative); }
.lb-history-empty { align-content: center; }
.lb-feature-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; margin-top: auto; padding-top: 4px; }
.lb-feature-actions :is([data-budget-preview], a) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: var(--ht-r-control); font: 600 13px/1.3 var(--ht-sans); }
.lb-feature-actions [data-budget-preview] { justify-content: space-between; width: 100%; gap: 5px; padding-inline: 7px; text-align: left; }
.lb-feature-actions [data-budget-preview]::after { content: ""; flex: none; width: 7px; height: 7px; border-block-start: 2px solid; border-inline-end: 2px solid; transform: rotate(45deg); }
.lb-feature-actions [data-budget-preview]:not(:disabled):active { border-color: var(--ht-on-accent); }
.lb-feature-actions a { padding-inline: 8px; text-decoration: none; }
.lb-feature-actions [role="status"] { display: block; font-size: 12px; }
.lb-coverage { margin: 0; color: var(--ht-muted); font-size: 12px; }
.lb #directory { margin: 30px 0 24px; padding-top: 20px; border-top: 1px solid var(--ht-divider); scroll-margin-top: 20px; }
.lb-directory-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.lb-directory-head h2 { margin: 0; font-size: 21px; letter-spacing: -0.025em; }
.lb-directory-head p, .lb-match-count { margin: 0; color: var(--ht-text-2); font-size: 14px; }
.lb-match-count { margin: 0 0 8px; }
.lb-list .lb-link:focus-visible { outline: 2px solid var(--ht-accent); outline-offset: -2px; }
.lb-tools { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; margin-block: 12px; }
.lb-tools .lb-search { flex: 1 1 560px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; min-width: 0; max-width: none; margin: 0; }
.lb-search .lb-toolbar { flex-wrap: wrap; align-items: end; }
.lb-toolbar .lb-searchbox { display: flex; flex: 1 1 165px; min-width: 0; }
.lb-filter { display: grid; gap: 4px; min-width: 0; color: var(--ht-text-2); font-size: 13px; }
.lb-filter:has(.ht-choice-enhanced) > span { display: none; }
.lb-filter select { padding-inline: 7px; }
.lb-filter .ht-choice-trigger { min-height: 44px; font-weight: 600; }
.lb-filter .ht-choice-caption { font-weight: 400; }
.lb-filter .ht-choice-value { max-inline-size: 18ch; }
.lb-directory-filters { grid-column: 1 / -1; margin: 0; border-top: 0; }
.lb-apply { align-self: end; }
.lb-directory-filters > summary { display: inline-flex; gap: 8px; padding: 4px 0; min-height: 34px; color: var(--ht-text-2); font-size: 13px; }
.lb-tools .bc-public-entry { margin: 0 !important; }
#directory .bc-public-entry .ht-btn { color: var(--ht-accent); border-color: var(--ht-accent-border); background: var(--ht-accent-tint); }
@media (max-width: 599px) {
  .lb-search .lb-toolbar { grid-column: 1 / -1; }
  .lb-toolbar .lb-searchbox { flex-basis: 100%; }
  .lb-filter { flex: 0 1 auto; }
  .lb-filter:last-child { flex-grow: 1; }
  .lb-filter .ht-choice-trigger { padding-inline: 7px; gap: 5px; }
  .lb-apply { grid-area: 2 / 2; }
  .lb-directory-filters { grid-area: 2 / 1; align-self: center; }
  .lb-directory-filters[open] { grid-area: 3 / 1 / 4 / -1; }
}
.lb-directory-filters > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr)); gap: 10px; margin: 10px 0; }
.lb-directory-filters label { display: grid; gap: 5px; align-content: start; }
.lb :is(.lb-probe, .lb-paging, .bc-public-entry) .ht-btn { min-height: 44px; padding-inline: 12px; font-size: 14px; }
.lb .bc-public-entry .ht-btn { background: transparent; }
.lb .bc-public-entry .ht-btn:hover { background: var(--ht-elevated); }
.lb-probe input:not([type="hidden"], [type="checkbox"]) { min-height: 44px; border-color: var(--ht-boundary); }
.lb-probe input:not([type="hidden"], [type="checkbox"]):hover { border-color: var(--ht-text-2); }
.lb-probe input::placeholder { color: var(--ht-muted); opacity: 1; }
.lb-paging { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--ht-text-2); font-size: 14px; }
.lb-lookup { margin: 12px 0; }

/* ── Landing hero: the copy flow (2026-10-24) ──────────────────────────────
   One orchestrated moment: the diagram draws itself on load (cards, then the two
   wires along the logo's wave, then the hub), then SMIL in the SVG loops one pulse
   per trade. Reduced motion: everything shown complete and still, pulses hidden. */
.ht-hero { position: relative; overflow: hidden; }
.ht-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--ht-divider) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 70% at 78% 45%, #000 0%, transparent 72%); mask-image: radial-gradient(60% 70% at 78% 45%, #000 0%, transparent 72%); opacity: .7; }
.ht-hero > .ht-wrap { position: relative; }
.ht-tape-column { min-width: 0; }
.ht-race-feature { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--ht-divider); text-decoration: none; }
.ht-race-feature strong, .ht-race-feature small { display: block; }
.ht-race-feature strong { color: var(--ht-text); }
.ht-race-feature small { font-size: 13px; color: var(--ht-text-2); }
.ht-race-feature > span:last-child { margin-left: auto; }
.ht-race-feature:hover strong { color: var(--ht-accent); }
.ht-race-mark { display: grid; gap: 3px; align-content: center; width: 32px; flex: none; }
.ht-race-mark i { height: 2px; background: var(--ht-accent); }
.ht-race-mark i:nth-child(2) { width: 69%; } .ht-race-mark i:last-child { width: 40%; }
.ht-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .ht-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); gap: 56px; } }

/* The landing hero's tape (landing.html): the trader's latest fills on the left, what a $100 follow
   would place on the right, arriving a beat later. Rows slide in by transform, and the copy moves
   in from muted ink, never from invisible, so every row is readable even where animation stops. */
.ht-tape { margin: 0; width: 100%; max-width: 520px; justify-self: center; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); background: var(--ht-surface); box-sizing: border-box; }
.ht-tape__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 13px; line-height: 18px; }
.ht-tape__state { font-weight: 600; color: var(--ht-accent); }
.ht-tape__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ht-mono); color: var(--ht-text-2); }
.ht-tape__cols, .ht-tape__row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.ht-tape__cols { font-size: 12px; color: var(--ht-muted); }
.ht-tape__rows { list-style: none; margin: 0; padding: 0; min-height: 216px; }
.ht-tape__row { padding: 9px 0; border-top: 1px solid var(--ht-divider); font-family: var(--ht-mono); font-size: 13px; line-height: 18px; }
.ht-tape__t { color: var(--ht-muted); font-variant-numeric: tabular-nums; }
.ht-tape__ev--long { color: var(--ht-positive); }
.ht-tape__ev--short { color: var(--ht-negative); }
.ht-tape__copy { display: flex; justify-content: space-between; gap: 8px; min-width: 0; color: var(--ht-text); }
.ht-tape__size { color: var(--ht-accent); }
.ht-tape__pause { align-self: flex-start; }
.ht-tape__pause[hidden] { display: none; }
.ht-tape__cap { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--ht-muted); }
/* Honesty strip (roadmap 0.6), landing.html. Hidden until filled by script. */
.ht-honesty__h { margin: 0 0 16px; font-size: 18px; line-height: 24px; }
.ht-honesty__figs { margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ht-honesty__figs > div { background: var(--ht-surface); border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); padding: 14px 16px; }
.ht-honesty__figs dt { font-size: 13px; color: var(--ht-muted); }
.ht-honesty__figs dd { margin: 4px 0 0; font: 600 22px/28px var(--ht-mono); color: var(--ht-text); }
.ht-honesty__figs dd.ht-honesty--pos { color: var(--ht-positive); }
.ht-honesty__figs dd.ht-honesty--neg { color: var(--ht-negative); }
.ht-honesty__cap { margin: 0; max-width: 72ch; }
.ht-tape__row--in { animation: ht-tape-in 420ms ease-out both; }
.ht-tape__row--in .ht-tape__copy { animation: ht-tape-copy 480ms 650ms ease-out both; }
@keyframes ht-tape-in { from { transform: translateY(-8px); } }
@keyframes ht-tape-copy { from { transform: translateX(-12px); color: var(--ht-muted); } }
/* Phones: two lines a row, the time above the trader and the copy side by side. */
@media (max-width: 479px) {
  .ht-tape__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ht-tape__cols span:first-child { display: none; }
  .ht-tape__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "t t" "ev cp"; gap: 2px 10px; font-size: 12px; }
  .ht-tape__t { grid-area: t; font-size: 11px; }
  .ht-tape__ev { grid-area: ev; }
  .ht-tape__copy { grid-area: cp; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-tape__row--in, .ht-tape__row--in .ht-tape__copy { animation: none; }
}

/* Shared public trader charts and identity marks. */
.tv-ident { flex: none; background: var(--ht-elevated); }
.tv-id-a { fill: var(--ht-accent); }
.tv-id-b { fill: var(--ht-text-2); }
.tv-id-c { fill: var(--ht-muted); }
.tv-line { display: block; width: 100%; height: 34px; overflow: visible; }
.tv-line polyline, .tv-plot-svg polyline { fill: none; stroke: var(--ht-accent); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tv-area { fill: var(--ht-accent); opacity: 0.12; }
.tv-base { stroke: var(--ht-muted); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.tv-line, .tv-plot-svg { animation: tv-reveal 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes tv-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.tv-rl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tv-rl--low { color: var(--ht-positive); }
.tv-rl--mid { color: var(--ht-warning); }
.tv-rl--high { color: var(--ht-negative); }
.tv-risk { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; vertical-align: middle; }
.tv-bar { width: 5px; height: 6px; background: var(--ht-divider); }
.tv-bar:nth-child(2) { height: 8px; }
.tv-bar:nth-child(3) { height: 10px; }
.tv-bar:nth-child(4) { height: 12px; }
.tv-bar:nth-child(5) { height: 14px; }
.tv-bar--on { background: currentColor; }

@media (min-width: 1024px) { .lb .ht-prose, .lb-browser { max-width: 70ch; } }
.lb-row .tv-ident { width: 28px; height: 28px; }
.tv-drawdown { color: var(--ht-text-2); }

/* The trader card: the mark beside the name, and the "$100 story" above the record. */
.tv-head { display: flex; align-items: center; gap: 14px; }
.tv-head-t { min-width: 0; }
.tv-story { margin: 0 0 16px; padding: 18px; border: 1px solid var(--ht-divider); border-radius: var(--ht-r-panel); background: var(--ht-surface); }
.tv-story-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.tv-story-head p { margin: 0; }
.tv-story-fig { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; color: var(--ht-text); }
.tv-story-dip { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ht-negative); }
.tv-plot { position: relative; margin: 14px 0 8px; }
.tv-plot-svg { display: block; width: 100%; height: clamp(140px, 24vw, 200px); overflow: visible; }
.tv-span { fill: var(--ht-warning-tint); }
.tv-dip { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--ht-negative); }
.tv-dip span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-family: var(--ht-mono); font-size: 12px; color: var(--ht-negative); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .tv-line, .tv-plot-svg { animation: none; }
}
