/* ============================================================================
 * TRADEIZ — Landing page market-data sections
 * Design: TradingView-inspired. Flat, data-dense, no floating panels.
 * Panels are transparent (same background as page). Separation via
 * borders and divider lines only — no box-shadow, no elevated cards.
 * ============================================================================ */

/* [FIX] 2026-04-24 — extend variable scope to .tt-agg (aggregation pages)
 * Reason: /movers /sentiment /liquidations use .tt-agg (NOT .tt-home) as the
 *         body container; without adding it to these selectors the light
 *         theme override never matched and the new pages stayed dark when
 *         the user toggled to light mode.
 * Warning: any future top-level page container that wants the same theme
 *          variables must be added to BOTH the :root/dark and .theme--light
 *          selectors below. */
/* [UPDATE] 2026-04-29 — unify black/white/up/down/accent palette with the
 * Chart page (app.css :root + body.dark-theme). Chart page is not changed;
 * web_app site theme variables are remapped to chart's hex values:
 *
 *   role          | dark              | light
 *   --------------|-------------------|------------------
 *   page bg       | #141414           | #ffffff   (chart --bg-primary)
 *   surface/hover | #1e1e1e           | #f5f5f5   (chart --bg-tertiary / --border-color)
 *   border        | #1e1e1e / #2a2a2a | #e8e8e8 / #d0d0d0
 *   fg-0 main     | #d0d0d0           | #181818   (chart --text-primary)
 *   fg-1 strong   | #cccccc           | #333333
 *   fg-2 sub      | #999999           | #666666   (chart --text-secondary)
 *   fg-3 muted    | #aaaaaa           | #555555   (chart --text-muted)
 *   up/down       | #00C896 / #FF4D6A | same      (chart --price-up/down)
 *   accent (link) | #2962ff           | #2962ff   (chart --accent-color)
 *
 * Reason: avoid two visually inconsistent palettes; the previous TradingView
 *   greys (#787b86/#9598a1/#4b4e57) also failed web_app_styling rule on
 *   contrast (light-mode #9598a1 on white = 2.4:1, well below WCAG AA).
 *   Chart's #666666/#555555 give 5.7:1+ which passes AA and matches chart. */
:root,
.theme--dark .tt-home,
.theme--dark .tt-agg,
body.theme--dark .tt-home,
body.theme--dark .tt-agg {
  --tt-white:  #ffffff;
  --tt-black:  #000000;
  /* [UPDATE] 2026-05-11 — pure black background per user request.
   * Was #141414 (a near-black grey); now #000 to maximise contrast
   * with --tt-fg-0 (#fff) and match OLED-friendly trading terminals
   * such as TradingView Pro and Bloomberg dark. */
  --tt-bg-0:   #000000;
  --tt-bg-1:   transparent;
  --tt-bg-2:   #1e1e1e;
  --tt-bg-3:   #1e1e1e;
  /* [UPDATE 2026-05-11] dividers darkened to match new #000 page bg.
   * Was #1e1e1e / #2a2a2a (calibrated for #141414 page bg). On #000
   * those grey lines were too bright and became visible as faint
   * white bars across tables/cards. New #0a0a0a / #161616 keep the
   * same ~4% / ~9% luminance step against the new bg. */
  --tt-line:   #0a0a0a;
  --tt-line-2: #161616;
  --tt-fg-0:   #d0d0d0;
  --text-primary: var(--tt-fg-0);
  --web-icon-size: 24px;
  --web-icon-stroke: 0.6;
  --tt-fg-1:   #cccccc;
  --tt-fg-2:   #999999;
  --tt-fg-3:   #aaaaaa;
  --tt-up:     #00C896;
  --tt-down:   #FF4D6A;
  --tt-accent: #2962ff;
  --tt-radius: 12px;
  --tt-shadow: none;
  --tt-gap:    20px;
}

body.theme--light {
  --tt-white:  #ffffff;
  --tt-black:  #000000;
}

.theme--light .tt-home,
.theme--light .tt-agg,
body.theme--light .tt-home,
body.theme--light .tt-agg {
  --tt-white:  #ffffff;
  --tt-black:  #000000;
  --tt-bg-0:   #ffffff;
  --tt-bg-1:   transparent;
  --tt-bg-2:   #f5f5f5;
  --tt-bg-3:   #f5f5f5;
  --tt-line:   #e8e8e8;
  --tt-line-2: #d0d0d0;
  --tt-fg-0:   #181818;
  --text-primary: var(--tt-fg-0);
  --web-icon-size: 24px;
  --web-icon-stroke: 0.6;
  --tt-fg-1:   #333333;
  --tt-fg-2:   #666666;
  --tt-fg-3:   #555555;
  --tt-up:     #00C896;
  --tt-down:   #FF4D6A;
  --tt-accent: #2962ff;
  --tt-radius: 12px;
  --tt-shadow: none;
  --tt-gap:    20px;
}

.tt-home {
  background: var(--tt-bg-0);
  color: var(--tt-fg-0);
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* ── Section layout ──────────────────────────────────────────────────────── */
.tt-home .tt-section {
  padding: 64px 0;
}

.tt-home .tt-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tt-home .tt-section__title {
  font-family: inherit;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--tt-fg-0);
  margin: 0;
}

.tt-home .tt-section__subtitle {
  font-size: 12px;
  color: var(--tt-fg-0);
  font-weight: 400;
}

.tt-home .tt-section__more {
  font-size: 12px;
  font-weight: 500;
  color: var(--tt-fg-0);
  text-decoration: none;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 4px 10px;
  transition: color .12s ease, border-color .12s ease;
}
.tt-home .tt-section__more:hover {
  color: var(--tt-fg-0);
  border-color: var(--tt-fg-3);
}

/* [ADD] 2026-04-24 — clickable section title (title + chevron, hover #2962ff)
 * Reason: home page sections (Top Movers / Sentiment Extremes / Biggest Liquidation
 *         Prints) used to have a separate "Open Chart →" / "View Heatmap →" pill
 *         on the right. We removed those pills and made the title itself the
 *         entry point to the dedicated full-data page (/movers, /sentiment,
 *         /liquidations). The chevron `›` is rendered via CSS so we don't have
 *         to touch every i18n key. Color limited to fg-0 default and #2962ff on
 *         hover per "page text only black/white except for variable-color data"
 *         design rule.
 * Warning: do not change the hover color away from #2962ff without product
 *          approval — it is the single accent allowed on neutral text. */
.tt-home .tt-section__title--link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color .12s ease;
}
.tt-home .tt-section__title--link::after {
  content: '\203A';
  font-size: 18px;
  font-weight: 600;
  color: var(--tt-fg-0);
  transition: color .12s ease, transform .12s ease;
  transform: translateX(0);
}
.tt-home .tt-section__title--link:hover,
.tt-home .tt-section__title--link:focus-visible {
  color: #2962ff;
  text-decoration: none;
  outline: none;
}
.tt-home .tt-section__title--link:hover::after,
.tt-home .tt-section__title--link:focus-visible::after {
  color: #2962ff;
  transform: translateX(2px);
}

/* [ADD] 2026-05-11 — Per-section "view more" footer link. Reuses the same
 * .tt-section__title--link chevron + accent hover treatment so the bottom
 * call-to-action visually rhymes with the clickable section title above.
 * Different wording per section is set inline in index.ejs (Browse / See /
 * Explore / Open / Dive into…) so the CTA matches each module's tone.
 * [UPDATE] 2026-05-11 — left-aligned and always-blue (#2962ff). Selectors
 * use `a.tt-section__foot-link` (tag + class) so they out-specify the
 * generic `.tt-home .tt-section__title--link:hover` rule above which would
 * otherwise paint the link white/black on hover. Same idea for the ::after
 * chevron. */
.tt-home .tt-section__foot {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}
.tt-home a.tt-section__foot-link,
.tt-home a.tt-section__foot-link:visited,
.tt-home a.tt-section__foot-link:hover,
.tt-home a.tt-section__foot-link:focus-visible,
.tt-home a.tt-section__foot-link:active {
  font-size: 14px;
  font-weight: 500;
  /* [EXCEPTION] product accent — lighter shade of the approved blue family
   * (#2962ff is too dark to read on both black and white backgrounds for
   * a secondary CTA). #5b8def keeps the same hue but lifts luminance for
   * AA contrast on both themes. */
  color: #5b8def;
}
.tt-home a.tt-section__foot-link::after,
.tt-home a.tt-section__foot-link:hover::after,
.tt-home a.tt-section__foot-link:focus-visible::after {
  /* [EXCEPTION] product accent — chevron matches text color */
  color: #5b8def;
}

.tt-home-community[hidden] {
  display: none !important;
}

.tt-home-community__grid {
  display: grid;
  /* [FIX] 2026-07-22 — widen home community cards to 1.5x (240px -> 360px min). */
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
  min-width: 0;
}

.tt-home-community .ys-script-card {
  border: 1px solid var(--tt-line-2);
  background: transparent;
  min-height: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tt-home-community .ys-script-card:hover,
.tt-home-community .ys-script-card:focus-visible {
  border-color: var(--tt-fg-0);
  background: var(--tt-bg-2);
}

.tt-home-community .ys-script-card__title {
  font-size: 16px;
}

.tt-home-community .ys-script-card__title-link,
.tt-home-community .ys-script-card__meta,
.tt-home-community .ys-script-card__meta a,
.tt-home-community .ys-script-card__meta .ys-script-card__meta-link,
.tt-home-community .ys-script-card__desc,
.tt-home-community .ys-script-card__tag,
.tt-home-community .ys-script-card__chip,
.tt-home-community .ys-script-card__kpi,
.tt-home-community .ys-script-card__kpi-label,
.tt-home-community .ys-script-card__kpi-val,
.tt-home-community .ys-script-card__foot {
  color: var(--tt-fg-0);
}

.tt-home-community .ys-script-card__chip {
  font-size: 12px;
}

.tt-home-community .ys-script-card__chip--type,
.tt-home-community .ys-script-card__chip--vis.is-open,
.tt-home-community .ys-script-card__chip--vis.is-protected,
.tt-home-community .ys-script-card__chip--vis.is-invite,
.tt-home-community .ys-script-card__chip--vis.is-private,
.tt-home-community .ys-script-card__chip--featured {
  color: var(--tt-fg-0);
}

.tt-home-community .ys-script-card__meta {
  font-size: 12px;
  opacity: 0.84;
}

.tt-home-community .ys-script-card__desc {
  font-size: 14px;
  line-height: 1.5;
  min-height: 44px;
  opacity: 0.84;
}

.tt-home-community .ys-script-card__tag {
  font-size: 12px;
  opacity: 0.84;
}

.tt-home-community .ys-script-card__curve.is-empty {
  font-size: 12px;
}

.tt-home-community .ys-script-card__kpi,
.tt-home-community .ys-script-card__kpi-label,
.tt-home-community .ys-script-card__kpi-val {
  font-size: 12px;
}

.tt-home-community .ys-script-card__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  min-width: 0;
}

.tt-home-community .ys-script-card__kpi {
  min-width: 0;
}

.tt-home-community .ys-script-card__kpi-val {
  font-size: 14px;
}

.tt-home-community .ys-script-card__foot {
  font-size: 12px;
  opacity: 0.84;
}

.tt-home-community .ys-script-card__detail-link {
  font-size: 14px;
  /* [EXCEPTION] product accent for actionable links. */
  color: #2962ff;
}

.tt-home-community .ys-script-card__detail-link:hover,
.tt-home-community .ys-script-card__detail-link:focus-visible {
  color: #2962ff;
  text-decoration: underline;
}

/* ── Quote rail ──────────────────────────────────────────────────────────── */
.tt-rail {
  background: transparent;
  padding: 24px 0 8px;
}

.tt-rail__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

/* [FIX] 2026-05-09 P2-2 — tile click → /chart removed; cursor reverts to
   default. Hover background tint kept so the rail still feels alive. */
.tt-rail__tile {
  background: transparent;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 16px 18px;
  cursor: default;
  transition: background .12s ease;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  align-items: stretch;
  min-height: 120px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.tt-rail__tile:hover { background: var(--tt-bg-2); }

.tt-rail__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.tt-rail__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tt-rail__head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tt-rail__sym {
  font-weight: 700;
  font-size: 16px;
  color: var(--tt-fg-0);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.tt-rail__ex {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tt-fg-0);
  font-weight: 500;
  line-height: 1.2;
}

.tt-rail__price {
  font-weight: 600;
  font-size: 18px;
  color: var(--tt-fg-0);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.tt-rail__change {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  align-self: start;
  text-align: right;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 2px;
}
.tt-rail__change.up   { color: var(--tt-up);   background: rgba(38,166,154,0.1); }
.tt-rail__change.down { color: var(--tt-down); background: rgba(239,83,80,0.1); }

.tt-rail__spark {
  width: 100%;
  height: 52px;
  position: relative;
  pointer-events: none;
  min-width: 0;
  overflow: hidden;
}
.tt-rail__spark canvas,
.tt-rail__spark > div {
  display: block;
  max-width: 100%;
}

.tt-rail__skel {
  height: 90px;
  width: 100%;
  background: linear-gradient(90deg, var(--tt-bg-2) 0%, var(--tt-bg-3) 50%, var(--tt-bg-2) 100%);
  background-size: 200% 100%;
  animation: tt-shimmer 1.4s ease-in-out infinite;
  border-radius: 2px;
}

/* ── Pulse (24h liq totals) ──────────────────────────────────────────────── */
.tt-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.tt-pulse__tile {
  background: transparent;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* top row: icon + badge */
.tt-pulse__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tt-pulse__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-fg-0);
  flex-shrink: 0;
}

/* dominant side badge */
.tt-pulse__badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.tt-pulse__badge--long    { color: var(--tt-up);   background: rgba(38,166,154,0.1);  border-color: rgba(38,166,154,0.3); }
.tt-pulse__badge--short   { color: var(--tt-down); background: rgba(239,83,80,0.1);   border-color: rgba(239,83,80,0.3); }
.tt-pulse__badge--neutral { color: var(--tt-fg-0); background: var(--tt-bg-2);        border-color: var(--tt-line); }

/* big number */
.tt-pulse__value {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--tt-fg-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* sub-label below number */
.tt-pulse__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tt-fg-0);
  font-weight: 500;
}

/* long/short bar */
.tt-pulse__bar-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tt-pulse__bar {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--tt-bg-3);
}

.tt-pulse__bar-long  { background: var(--tt-up);   transition: width .4s ease; }
.tt-pulse__bar-short { background: var(--tt-down);  transition: width .4s ease; }

.tt-pulse__bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tt-pulse__bar-l { color: var(--tt-up); }
.tt-pulse__bar-s { color: var(--tt-down); }

/* ── Card grid ───────────────────────────────────────────────────────────── */
.tt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.tt-grid--triple { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tt-grid--quad   { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* Index-only: frame widgets that live in aggregations.css so they match rail/cards */
.tt-home .tt-funding-row__countdown {
  justify-content: space-between;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 12px 16px;
  margin: 0 0 16px 0;
  background: transparent;
}
.tt-home .tt-trades-kpi__card {
  background: transparent;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
}

.tt-card {
  background: transparent;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 18px 20px;
}

/* [ADD] 2026-05-11 — Multi-column card layout for entry-point sections
 *   (currently New Listings + Hyperliquid). The inner <ul.tt-list> is
 *   re-cast from a vertical stack into a CSS grid so 12 list items spread
 *   across 4 / 3 / 2 / 1 columns at xl / lg / md / sm breakpoints. The
 *   per-row inner grid (1fr auto) is preserved on each <li>; we only
 *   change how the rows line up against each other.
 *
 *   Hover bleed-out (.tt-list__row:hover { margin: 0 -20px }) is disabled
 *   in this mode because rows now sit beside each other and a negative
 *   margin would smear into the neighbouring column. Borders between
 *   cells become 1px hairlines so the grid stays a tight scan-block. */
.tt-card--multi-col .tt-list {
  display: grid;
  gap: 0 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tt-card--multi-col .tt-list__row {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-bottom: 1px solid var(--tt-line);
}
.tt-card--multi-col .tt-list__row:hover {
  background: var(--tt-bg-2);
  margin: 0 !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  border-radius: 4px;
}
/* In a 4-column grid the bottom row is items 9..12 — strip border-bottom
 * from every cell on the bottom row, not just :last-child. */
.tt-card--multi-col .tt-list__row:nth-last-child(-n+4) {
  border-bottom: none;
}

@media (max-width: 1199.98px) {
  .tt-card--multi-col .tt-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 3-column: bottom row is items 10..12 — last 3. */
  .tt-card--multi-col .tt-list__row:nth-last-child(-n+4) { border-bottom: 1px solid var(--tt-line); }
  .tt-card--multi-col .tt-list__row:nth-last-child(-n+3) { border-bottom: none; }
}
@media (max-width: 991.98px) {
  .tt-card--multi-col .tt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 2-column: bottom row is items 11..12 — last 2. */
  .tt-card--multi-col .tt-list__row:nth-last-child(-n+4) { border-bottom: 1px solid var(--tt-line); }
  .tt-card--multi-col .tt-list__row:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 575.98px) {
  .tt-card--multi-col .tt-list { grid-template-columns: 1fr; }
  /* 1-column: bottom row is the last item only. */
  .tt-card--multi-col .tt-list__row:nth-last-child(-n+4) { border-bottom: 1px solid var(--tt-line); }
  .tt-card--multi-col .tt-list__row:last-child { border-bottom: none; }
}

.tt-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-fg-0);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
}

.tt-card__badge {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid var(--tt-line-2);
  color: var(--tt-fg-0);
  font-weight: 600;
}
.tt-card__badge--positive { color: var(--tt-up);   border-color: rgba(38,166,154,0.4); }
.tt-card__badge--negative { color: var(--tt-down); border-color: rgba(239,83,80,0.4); }

/* ── List rows ───────────────────────────────────────────────────────────── */
.tt-list { list-style: none; margin: 0; padding: 0; }

/* [FIX] 2026-05-09 P2-2 — list row click → /chart removed; cursor default. */
.tt-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tt-line);
  cursor: default;
  transition: background .1s ease;
}
.tt-list__row:last-child { border-bottom: none; }
.tt-list__row:hover { background: var(--tt-bg-2); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }

.tt-list__rank { display: none; }

.tt-list__sym {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tt-list__sym-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tt-list__sym .name {
  font-weight: 600;
  color: var(--tt-fg-0);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tt-list__sym .meta {
  font-size: 12px;
  color: var(--tt-fg-0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tt-list__val {
  font-weight: 600;
  font-size: 14px;
  color: var(--tt-fg-0);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.tt-list__val--up   { color: var(--tt-up); }
.tt-list__val--down { color: var(--tt-down); }
.tt-list__val .delta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: inherit;
  margin-top: 1px;
}
/* [ADD] 2026-04-25 — funding-arb APR secondary line.
 * Sits under the Δ value in the same right-aligned cell so each arb item
 * stays a single .tt-list__row (one item = one row), matching the layout
 * the user requested: "SOON | bitget ⇄ gateio | Δ 0.2094% | APR 229.3%". */
.tt-list__val-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  color: var(--tt-fg-0);
  margin-top: 1px;
  letter-spacing: 0.02em;
}
/* [ADD] 2026-05-11 — Symbol-side sub-line (e.g. "coinbase · spot",
 * "$1.2M vol") rendered as <em class="tt-list__sym-sub">. Default
 * <em> styling is italic; force normal upright so exchange/market
 * descriptors stay easy to scan. */
.tt-list__sym-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  color: var(--tt-fg-0);
  margin-top: 1px;
  letter-spacing: 0.02em;
}

/* ── Spotlight hero panel ────────────────────────────────────────────────── */
.tt-heatmap {
  background: transparent;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

/* ── Spotlight two-panel layout ──────────────────────────────────────────── */
.tt-spotlight-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--tt-gap);
  align-items: stretch;
}

.tt-spotlight-layout .tt-spotlight {
  height: 500px;
}

/* ── Right column: 3 live data cards (replaces former tt-spotlight-copy) ─── */
/* [ADD] 2026-04-29 — Wave 4.6 home spotlight rewrite. Three equal-height
   cards stack to fill the 500px spotlight, each linking to its dedicated
   detail page. Backgrounds and labels follow the web_app_styling rule:
   color limited to var(--tt-fg-0) plus tt-up/tt-down for financial
   semantics (long/short, positive/negative funding); font-size locked to
   the {12, 14, 18, 22, 28} whitelist. */
.tt-spotlight-live {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: var(--tt-gap);
  height: 500px;
}

.tt-live-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  text-decoration: none;
  color: var(--tt-fg-0);
  transition: border-color .12s ease, background .12s ease;
  min-height: 0;
}

.tt-live-card:hover {
  border-color: var(--tt-fg-0);
  background: var(--tt-bg-2);
}

.tt-live-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tt-live-card__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-fg-0);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* [REDESIGN] 2026-05-13 — CTA used to read "/liquidations →" / "/funding →"
   / "/trades →" which exposed an internal URL path to the visitor and
   clashed with the polished card aesthetic. Industry standard (Coinglass,
   TradingView, Bybit) is a bare "→" arrow as the affordance, since the
   whole card is already an <a>. The aria-label on the card preserves the
   target route for screen readers. Warning: do NOT re-add the URL path
   inside the CTA — the card is a link, the arrow is the affordance. */
.tt-live-card__cta {
  font-size: 14px;
  color: var(--tt-fg-0);
  opacity: 0.55;
  font-weight: 500;
  line-height: 1;
  transition: opacity .12s ease, transform .12s ease;
}
.tt-live-card:hover .tt-live-card__cta {
  opacity: 1;
  transform: translateX(2px);
}

.tt-live-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

/* [REDESIGN] 2026-05-13 — primary metric row aligns the symbol cluster
   (icon + base + side) on the left with the big USD/% value on the right,
   sharing the same baseline. Replaces the previous vertical stack where
   the value sat below the symbol — that wasted vertical space and made
   each card feel taller without the eye landing on the number first.
   Now the value is "scanable" at a glance, matching Coinglass/CG cards. */
.tt-live-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.tt-live-card__sym {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--tt-fg-0);
  min-height: 22px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.tt-live-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-fg-0);
}

.tt-pulse__icon svg,
.tt-live-card__icon svg,
#tt-home-landing .tt-ti-landing__dl-btn svg,
#tt-home-landing .tt-ti-landing__scroll-down svg {
  width: var(--web-icon-size);
  height: var(--web-icon-size);
  stroke: var(--tt-fg-0);
  fill: none;
  stroke-width: var(--web-icon-stroke);
}

.tt-live-card__base {
  font-weight: 700;
  font-size: 14px;
  color: var(--tt-fg-0);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.tt-live-card__side {
  font-size: 12px;
  color: var(--tt-fg-0);
  opacity: 0.7;
  /* The side text can be quite long ("SHORT liquidated", "okx", venue
     name + side combo). Truncate with ellipsis if it would push the big
     value off the row. Keeps the right-aligned $X.XX always visible. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

/* Long/short and positive/negative funding semantic colours follow the
   web_app_styling rule's exception list (financial industry convention). */
.tt-live-card__side--long  { color: var(--tt-up);   opacity: 1; font-weight: 600; }
.tt-live-card__side--short { color: var(--tt-down); opacity: 1; font-weight: 600; }

.tt-live-card__big {
  font-size: 22px;
  font-weight: 700;
  color: var(--tt-fg-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
  /* Right-aligned big metric inside .tt-live-card__row. flex-shrink: 0
     prevents the long base+side text on the left from crushing the
     number (e.g. "ETH SHORT liquidated  $3.46M" must always keep
     $3.46M readable). text-align stays right for multi-char values. */
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.tt-live-card__big--up   { color: var(--tt-up); }
.tt-live-card__big--down { color: var(--tt-down); }

.tt-live-card__sub {
  font-size: 12px;
  color: var(--tt-fg-0);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  /* Sub line sits below the metric row and can wrap to a second line
     when it carries longer venue/event meta strings. */
  white-space: normal;
  line-height: 1.35;
}

/* ── Spotlight 1h liquidation L/S bar (footer overlay) ───────────────────── */
/* [ADD] 2026-04-29 — Wave 4.6 home spotlight rewrite. Sits at the bottom
   of the chart card, two-segment bar tinted with the financial industry
   semantic up/down colours (allowed exception in web_app_styling rule). */
.tt-spotlight__liqbar {
  position: absolute;
  bottom: 10px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.tt-spotlight__liqbar-label {
  font-size: 12px;
  color: var(--tt-fg-0);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tt-spotlight__liqbar-amount {
  font-size: 12px;
  color: var(--tt-fg-0);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tt-spotlight__liqbar-track {
  display: flex;
  flex: 1 1 auto;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--tt-line);
}

.tt-spotlight__liqbar-fill {
  height: 100%;
  transition: width .2s ease;
}

.tt-spotlight__liqbar-fill--long  { background: var(--tt-up);   }
.tt-spotlight__liqbar-fill--short { background: var(--tt-down); }

.tt-spotlight__liqbar-pct {
  font-size: 12px;
  color: var(--tt-fg-0);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tt-spotlight {
  width: 100%;
  height: 240px;
  background: transparent;
  border: 1px solid var(--tt-line-2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.tt-spotlight__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  gap: 10px;
}

.tt-spotlight__head .sym-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-spotlight__head .sym-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--tt-fg-0);
  letter-spacing: -0.01em;
  line-height: 1;
}

.tt-spotlight__head .price {
  color: var(--tt-fg-0);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tt-spotlight__head .pct {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0;
}
.tt-spotlight__head .pct.up   { color: var(--tt-up); }
.tt-spotlight__head .pct.down { color: var(--tt-down); }

.tt-spotlight__chart {
  width: 100%;
  /* head ~56px + liqbar ~26px; reserve 84px so the chart and the bar
     never overlap on any breakpoint. */
  height: calc(100% - 84px);
}

/* ── Liquidation tape ────────────────────────────────────────────────────── */
/* ── Liquidation tape ────────────────────────────────────────────────────── */
/* columns: [icon+sym 200px] [side 80px] [time 110px] [price 120px] [notional auto] */
/* ── Liquidation tape — outer block borderless; each card bordered ──────── */
.tt-tape {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--tt-gap);
}

/* [FIX] 2026-05-09 P2-2 — tape card click → /chart removed; cursor default. */
.tt-tape__card {
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  transition: background .12s ease, border-color .12s ease;
  font-variant-numeric: tabular-nums;
}
.tt-tape__card:hover { background: var(--tt-bg-2); }

/* top row: icon + sym name + side badge */
.tt-tape__card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tt-tape__sym-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tt-tape__sym-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--tt-fg-0);
  line-height: 1.2;
}
.tt-tape__sym-ex {
  font-size: 12px;
  color: var(--tt-fg-0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* side badge */
.tt-tape__side {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tt-tape__side--long  { color: var(--tt-up);   background: rgba(38,166,154,0.1);  border-color: rgba(38,166,154,0.3); }
.tt-tape__side--short { color: var(--tt-down);  background: rgba(239,83,80,0.1);   border-color: rgba(239,83,80,0.3); }

/* notional — big number, colored by side */
.tt-tape__notional {
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.tt-tape__notional--long  { color: var(--tt-up); }
.tt-tape__notional--short { color: var(--tt-down); }

/* meta row: time + price */
.tt-tape__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--tt-fg-0);
}
.tt-tape__meta-price {
  font-size: 12px;
  color: var(--tt-fg-0);
  font-variant-numeric: tabular-nums;
}

/* ── Liquidations block (treemap + side pulse + tape) ─────────────────── */
.tt-liqblock {
  display: flex;
  flex-direction: column;
  gap: var(--tt-gap, 12px);
}

.tt-liqblock__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: var(--tt-gap, 12px);
  align-items: stretch;
}

.tt-liqblock__heatmap,
.tt-liqblock__pulse {
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 16px 18px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Biggest prints row: no outer frame; cards carry borders */
.tt-liqblock__bottom {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tt-liqblock__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.tt-liqblock__sub-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tt-fg-0);
  letter-spacing: 0.01em;
}
.tt-liqblock__sub-title a { color: inherit; text-decoration: none; }
.tt-liqblock__sub-title a:hover { color: var(--tt-fg-0); }
.tt-liqblock__sub-meta {
  font-size: 12px;
  color: var(--tt-fg-0);
  letter-spacing: 0.02em;
}

/* Side pulse: vertical stack; each tile = notional (left) + label (right) on one row */
.tt-pulse--side {
  grid-template-columns: 1fr;
  gap: 10px;
  flex: 1 1 auto;
}
.tt-pulse--side .tt-pulse__tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  background: transparent;
}
.tt-pulse--side .tt-pulse__head {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 0;
}
.tt-pulse--side .tt-pulse__value {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  font-size: 22px;
}
.tt-pulse--side .tt-pulse__label {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  text-align: right;
  margin-top: 0;
}
.tt-pulse--side .tt-pulse__bar-wrap {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 0;
}

/* ── Liquidation treemap (per-base 1h notional, squarified by JS) ──────── */
/* The renderer sets tile.style.{left,top,width,height} as percentages so
   layout is fully driven by the JS layout pass — CSS only handles paint,
   colour mapping and hover state. Container is `position:relative` and
   sized via aspect-ratio so it never collapses when there is no data. */
.tt-liqheat {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 186px;
  background: var(--tt-bg-2, #1e1e1e);
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  overflow: hidden;
  flex: 1 1 auto;
}

/* Single frame: outer .tt-liqblock__heatmap already has a border */
.tt-home .tt-liqblock__heatmap .tt-liqheat {
  border: none;
}

/* [FIX] 2026-05-09 P2-2 — heatmap cell click → /chart removed; cursor default. */
.tt-liqheat__cell {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px 6px;
  cursor: default;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  color: var(--tt-fg-0);
  text-align: center;
  transition: filter .12s ease, transform .12s ease;
}
.tt-liqheat__cell:hover {
  filter: brightness(1.18);
  z-index: 2;
}

.tt-liqheat__sym {
  font-weight: 700;
  line-height: 1.1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.tt-liqheat__val {
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.85;
  line-height: 1.1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.tt-liqheat__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-fg-0);
  font-size: 12px;
}

/* ── Coverage strip ──────────────────────────────────────────────────────── */

/* ── CTA strip ───────────────────────────────────────────────────────────── */
.tt-section--cta { padding: 52px 0; }

.tt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--tt-line-2);
  border-radius: var(--tt-radius);
  padding: 28px 32px;
}

.tt-cta__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--tt-fg-0);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.tt-cta__sub {
  font-size: 14px;
  color: var(--tt-fg-0);
  margin: 0;
}

.tt-cta__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Shared buttons ──────────────────────────────────────────────────────── */
.tz-btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--tt-radius);
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

/* [EXCEPTION] inverted primary button — text must contrast with filled background */
.tz-btn--primary {
  background: var(--tt-white);
  color: var(--tt-black) !important;
  border-color: var(--tt-white);
}
.tz-btn--primary:hover {
  background: var(--tt-fg-0);
  border-color: var(--tt-fg-0);
  color: var(--tt-black) !important;
  opacity: 1;
}
/* [EXCEPTION] inverted primary button — light-theme filled surface */
body.theme--light .tz-btn--primary {
  background: var(--tt-black);
  color: var(--tt-white) !important;
  border-color: var(--tt-black);
}
/* [EXCEPTION] inverted primary button — light-theme hover surface */
body.theme--light .tz-btn--primary:hover {
  background: var(--tt-fg-0);
  border-color: var(--tt-fg-0);
  color: var(--tt-white) !important;
}

.tz-btn--ghost {
  background: transparent;
  color: var(--tt-fg-0);
  border-color: var(--tt-line-2);
}
.tz-btn--ghost:hover {
  border-color: var(--tt-fg-0);
  color: var(--tt-fg-0);
}
body.theme--light .tz-btn--ghost {
  color: var(--tt-fg-0);
  border-color: var(--tt-line-2);
}
body.theme--light .tz-btn--ghost:hover {
  color: var(--tt-fg-0);
  border-color: var(--tt-fg-0);
}

.tz-btn--outline {
  background: transparent;
  color: var(--tt-fg-0);
  border: 1px solid var(--tt-line-2);
  font-weight: 500;
}
.tz-btn--outline:hover {
  border-color: var(--tt-accent);
  color: #2962ff !important;
}
body.theme--light .tz-btn--outline:hover {
  color: #2962ff !important;
}

/* ── Coin icon (shared across rail / list / tape) ───────────────────────── */
.tt-coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.tt-coin-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.tt-coin-icon__fb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tt-bg-3);
  color: var(--tt-fg-0);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ── Skeleton shimmer ────────────────────────────────────────────────────── */
.tt-skel {
  background: linear-gradient(90deg, var(--tt-bg-2) 0%, var(--tt-bg-3) 50%, var(--tt-bg-2) 100%);
  background-size: 200% 100%;
  animation: tt-shimmer 1.4s ease-in-out infinite;
  border-radius: 2px;
  display: inline-block;
  height: 14px;
  width: 80%;
  vertical-align: middle;
}
.tt-skel--big { height: 22px; }
.tt-skel--num { height: 30px; width: 55%; }

@keyframes tt-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1399px) {
  .tt-rail__grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}
@media (max-width: 1199px) {
  .tt-pulse:not(.tt-pulse--side) { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tt-grid--triple { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tt-grid--quad   { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tt-rail__grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .tt-tape { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 991px) {
  .tt-rail__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tt-spotlight-layout { grid-template-columns: 1fr; }
  .tt-spotlight-layout .tt-spotlight { height: 380px; }
  .tt-spotlight-live {
    grid-template-rows: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
  }
  .tt-live-card { min-height: 140px; }
  .tt-liqblock__top { grid-template-columns: 1fr; }
  .tt-pulse--side { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .tt-home .tt-section { padding: 48px 0; }
  .tt-home .tt-section__title { font-size: 18px; }
  .tt-home-community__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tt-pulse:not(.tt-pulse--side),
  .tt-grid,
  .tt-grid--triple,
  .tt-grid--quad { grid-template-columns: 1fr; }
  .tt-heatmap { grid-template-columns: 1fr; }
  .tt-spotlight-layout .tt-spotlight { height: 300px; }
  .tt-spotlight-live { grid-template-columns: 1fr; }
  .tt-live-card { min-height: 110px; }
  .tt-tape { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tt-tape__notional { font-size: 18px; }
  .tt-pulse__value { font-size: 22px; }
  .tt-pulse--side { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tt-liqheat { aspect-ratio: 4 / 2; min-height: 148px; }
  .tt-rail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .tt-rail__tile { padding: 12px 12px; min-height: 100px; }
  .tt-rail__sym { font-size: 14px; }
  .tt-rail__price { font-size: 14px; }
  .tt-rail__change { font-size: 12px; }
  .tt-rail__spark { height: 40px; }
  .tt-rail__skel  { height: 76px; }
}

@media (max-width: 399.98px) {
  .tt-home-community .ys-script-card {
    padding: 12px;
  }
  .tt-home-community .ys-script-card__foot {
    gap: 8px;
  }
  .tt-home-community .ys-script-card__detail-link {
    margin-inline-end: 2px;
  }
  .tt-rail__grid {
    gap: 10px;
  }
  .tt-rail__tile {
    padding: 10px;
  }
  .tt-liqblock__heatmap,
  .tt-liqblock__pulse {
    padding: 12px;
  }
}

/* ── Sentiment Row (D · 4 equal-width KPI cards) ───────────────────────────
   [REWRITE] 2026-04-26 — replaced the asymmetric Hero+Side layout with a
   single row of 4 equal-width / equal-height KPI cards. Cards align on both
   axes via grid-template-columns: repeat(4, 1fr) + align-items: stretch +
   a uniform min-height; card body itself is a flex column so children
   distribute evenly. Strict adherence to web_app_styling.mdc:
     - Font sizes only from {12, 14, 16, 18, 22, 28}
     - Color: var(--tt-fg-0) for text; greedColor() exception for the
       gauge value (data-driven scale, mirrors tt.sentiment.js).
*/
.tt-sent-quad {
  display: grid;
  /* [FIX] 2026-05-08 — switch from fixed 4-col to auto-fit so an extra card
     (e.g. "CEX vs DEX OI Share") can be added without breaking layout.
     Each card needs ~220px to render legibly; on a 1280px viewport this
     gives 5 cards in one row, on tablet (≤960px) it wraps to 2-3 cols. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.tt-sent-kpi {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.tt-sent-kpi .tt-card__title {
  margin-bottom: 12px;
}
.tt-sent-kpi__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 0;
}
.tt-sent-kpi__body .tt-list__empty {
  font-size: 12px;
  color: var(--tt-fg-0);
  opacity: 0.5;
  text-align: center;
}

/* Card 1: Greed Index — gauge + numeric + caption */
.tt-sent-kpi__gauge {
  position: relative;
  text-align: center;
  margin-top: 4px;
}
.tt-sent-kpi__gauge svg { display: block; max-width: 200px; margin: 0 auto; }
.tt-sent-kpi__gauge-num {
  position: absolute;
  left: 0; right: 0;
  bottom: 22%;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.tt-sent-kpi__caption {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card 2: BTC vs Alt — two compact rows + divergence pill */
.tt-sent-kpi__row {
  display: grid;
  grid-template-columns: 36px 1fr 44px;
  align-items: center;
  gap: 8px;
}
.tt-sent-kpi__row-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-fg-0);
  letter-spacing: 0.5px;
}
.tt-sent-kpi__row-bar {
  position: relative;
  display: block;
  height: 6px;
  background: rgba(120, 123, 134, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.tt-sent-kpi__row-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.tt-sent-kpi__row-num {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tt-sent-kpi__diverge {
  margin-top: 6px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(120, 123, 134, 0.08);
  border-radius: 6px;
}
.tt-sent-kpi__diverge-label {
  font-size: 12px;
  color: var(--tt-fg-0);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tt-sent-kpi__diverge-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--tt-fg-0);
  font-variant-numeric: tabular-nums;
}
.tt-sent-kpi__diverge.is-up   .tt-sent-kpi__diverge-val { color: var(--tt-up); }
.tt-sent-kpi__diverge.is-down .tt-sent-kpi__diverge-val { color: var(--tt-down); }

/* Card 3: Liquidation — big total + split bar */
.tt-sent-kpi__big {
  font-size: 22px;
  font-weight: 700;
  color: var(--tt-fg-0);
  text-align: center;
  line-height: 1;
}
.tt-sent-kpi__sub {
  font-size: 12px;
  color: var(--tt-fg-0);
  opacity: 0.6;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tt-sent-kpi__split {
  height: 8px;
  background: rgba(120, 123, 134, 0.2);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  margin-top: 6px;
}
.tt-sent-kpi__split-long  { height: 100%; background: var(--tt-down); }
.tt-sent-kpi__split-short { height: 100%; background: var(--tt-up); }
.tt-sent-kpi__split-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* Card 4: 1h OI Net Flow — top base list with mini bars */
.tt-sent-kpi__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tt-sent-kpi__list-row {
  display: grid;
  grid-template-columns: 44px 1fr 70px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tt-fg-0);
}
.tt-sent-kpi__list-base {
  font-weight: 600;
}
.tt-sent-kpi__list-track {
  position: relative;
  display: block;
  height: 6px;
  background: rgba(120, 123, 134, 0.18);
  border-radius: 3px;
  overflow: hidden;
}
.tt-sent-kpi__list-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.tt-sent-kpi__list-fill.is-up   { background: var(--tt-up); }
.tt-sent-kpi__list-fill.is-down { background: var(--tt-down); }
.tt-sent-kpi__list-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Responsive — stack to 2 columns on tablet, 1 column on phone */
@media (max-width: 1100px) {
  .tt-sent-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tt-sent-quad { grid-template-columns: 1fr; }
  .tt-sent-kpi  { min-height: 0; }
}

/* ── Card 5: CEX vs DEX OI Share ─────────────────────────────────────── */
/* [ADD] 2026-05-08 — DEX plan §7.1: per-base BTC/ETH share row with bar
   + 7d sparkline.
   Colour policy (web_app_styling.mdc compliant):
     - All text uses var(--tt-fg-0). DEX share % is NOT a price/PnL value
       and therefore must NOT carry the up/down semantic colour.
     - Bar background/fill colours are NOT text colours and are not
       restricted by the rule (decorative).
     - SVG stroke uses currentColor → element color stays var(--tt-fg-0).
   Font sizes are in the {12,14,16,18,22,28} whitelist. */
.tt-cexdex__row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 0;
  color: var(--tt-fg-0);
}
.tt-cexdex__row + .tt-cexdex__row {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--tt-line);
}
.tt-cexdex__row-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
}
.tt-cexdex__row-base { font-weight: 600; }
.tt-cexdex__row-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--tt-fg-0);
}
.tt-cexdex__bar {
  position: relative;
  height: 6px;
  background: var(--tt-line);
  border-radius: 3px;
  overflow: hidden;
}
.tt-cexdex__bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  /* [DECORATIVE] background-color is not constrained by the styling rule;
     using --tt-up here only signals "DEX share is the new-narrative" via
     a non-text channel. */
  background: var(--tt-up);
  border-radius: 3px;
}
.tt-cexdex__spark {
  height: 24px;
  color: var(--tt-fg-0);
  opacity: .7;
}
.tt-cexdex__spark-svg { width: 100%; height: 100%; }

/* ── Pulse tile meta footer (Top Symbol / Top Exchange) ─────────────── */
/* [ADD] 2026-04-28 — surface per-window top symbol + top exchange beneath
   the long/short bar in each pulse tile (1h / 4h / 24h). Data sourced from
   /api/v1/agg/liq/overview, refreshed every 60s alongside the home payload. */
.tt-pulse__meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--tt-line);
  display: flex; flex-direction: column; gap: 4px;
}
.tt-pulse__metaline {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  color: var(--tt-fg-0);
}
.tt-pulse__metakey { opacity: .55; }
.tt-pulse__metaval { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Landing top hero banner (#tt-home-landing · .tt-ti-landing__hero-top) ──
 * [UPDATE] 2026-07-10 — Full-bleed hero from viewport top; transparent header
 * overlays the image (see tradeiz-custom.css tt-page-home rules). Tagline
 * overlays the image. Lives outside __main so max-width/padding do not clamp
 * width. Background via image-set (WebP preferred, PNG fallback). */
#tt-home-landing.tt-ti-landing {
  padding-top: 0 !important;
}
#tt-home-landing .tt-ti-landing__hero-top {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
#tt-home-landing .tt-ti-landing__main {
  margin-top: 0;
}
.tt-ti-landing__hero-top-bg {
  width: 100%;
  /* [UPDATE] 2026-07-10 — hero locked to one full viewport height, `cover` so
   * it fills the full-bleed box edge-to-edge (no side black bars). Anchored to
   * bottom so only the TOP is cropped when the viewport is wider than 16:9 —
   * the bottom of the scene (Earth/astronaut) is never cut. */
  height: 100vh;
  height: 100svh;
  background-color: #000000;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  border-radius: 0;
  overflow: hidden;
  background-image: url('/images/home/home-hero-top.png?v=20260710h9');
  background-image: -webkit-image-set(
    url('/images/home/home-hero-top.webp?v=20260710h9') type('image/webp'),
    url('/images/home/home-hero-top.png?v=20260710h9') type('image/png'));
  background-image: image-set(
    url('/images/home/home-hero-top.webp?v=20260710h9') type('image/webp'),
    url('/images/home/home-hero-top.png?v=20260710h9') type('image/png'));
}
@media (max-width: 575.98px) {
  #tt-home-landing .tt-ti-landing__scroll-down {
    bottom: clamp(16px, 3vh, 32px);
  }
}

/* Home-only smooth anchor scroll (hero arrow → second screen). */
html:has(body.tt-page-home) {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.tt-page-home) {
    scroll-behavior: auto;
  }
}

/* Second screen: full viewport; main-body centers shot+CTA; bar pins bottom. */
#tt-home-landing #tt-home-second-screen.tt-ti-landing__main {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  isolation: isolate;
}
#tt-home-landing #tt-home-second-screen.tt-ti-landing__main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #000000;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url('/images/home/home-second-bg.png?v=20260710h2');
  background-image: -webkit-image-set(
    url('/images/home/home-second-bg.webp?v=20260710h2') type('image/webp'),
    url('/images/home/home-second-bg.png?v=20260710h2') type('image/png'));
  background-image: image-set(
    url('/images/home/home-second-bg.webp?v=20260710h2') type('image/webp'),
    url('/images/home/home-second-bg.png?v=20260710h2') type('image/png'));
}
#tt-home-landing #tt-home-second-screen.tt-ti-landing__main::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 28%, transparent 52%),
    rgba(0, 0, 0, 0.38);
}
#tt-home-landing #tt-home-second-screen .tt-ti-landing__main-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  /* [UPDATE] 2026-07-10 — raise the second-screen content (was sitting too low). */
  padding-top: clamp(16px, 4vh, 64px);
}
/* [UPDATE] 2026-07-10 — smaller screenshot offset so shot + frame sit higher. */
#tt-home-landing #tt-home-second-screen .tt-ti-landing__main-body .tt-ti-landing__visual {
  margin-top: clamp(8px, 2vh, 32px);
}
/* [EXCEPTION] 80/56/36px — matches first-screen hero tagline per product spec. */
#tt-home-landing #tt-home-second-screen h2.tt-ti-landing__second-tagline {
  margin: 0 0 clamp(8px, 1.5vh, 16px);
  max-width: min(1100px, 92%);
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  /* [EXCEPTION] second-screen display tagline — product-authorized 80px. */
  font-size: 80px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--tt-fg-0);
  text-align: center;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  flex-shrink: 0;
}
@media (max-width: 991px) {
  #tt-home-landing #tt-home-second-screen h2.tt-ti-landing__second-tagline {
    /* [EXCEPTION] second-screen display tagline tablet — product-authorized 56px. */
    font-size: 56px;
    line-height: 1.08;
  }
}
@media (max-width: 575.98px) {
  #tt-home-landing #tt-home-second-screen h2.tt-ti-landing__second-tagline {
    /* [EXCEPTION] second-screen display tagline mobile — product-authorized 36px (covers Z Fold ~344px). */
    font-size: 36px;
    line-height: 1.12;
  }
}
#tt-home-landing #tt-home-second-screen p.tt-ti-landing__second-subtitle {
  margin: 0 auto clamp(16px, 3vh, 32px);
  max-width: min(720px, 88%);
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  /* [EXCEPTION] second-screen hero subtitle — product-authorized 30px (overrides global p). */
  font-size: 30px !important;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tt-fg-0);
  text-align: center;
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  flex-shrink: 0;
}
@media (max-width: 575.98px) {
  #tt-home-landing #tt-home-second-screen p.tt-ti-landing__second-subtitle {
    /* [EXCEPTION] second-screen hero subtitle mobile — product-authorized 30px. */
    font-size: 30px !important;
  }
}
#tt-home-landing #tt-home-second-screen .tt-ti-landing__bar {
  position: relative;
  z-index: 2;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  align-self: stretch;
}

#tt-home-landing .tt-ti-landing__bar-downloads {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

#tt-home-landing .tt-ti-landing__dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  /* [EXCEPTION] dark strip on landing — always white on #000 bar */
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

#tt-home-landing .tt-ti-landing__dl-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

#tt-home-landing .tt-ti-landing__dl-btn:hover,
#tt-home-landing .tt-ti-landing__dl-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

@media (max-width: 767px) {
  #tt-home-landing .tt-ti-landing__bar-inner {
    flex-wrap: wrap;
  }

  #tt-home-landing .tt-ti-landing__bar-downloads {
    flex-basis: 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: 10px;
    gap: 8px;
  }

  #tt-home-landing .tt-ti-landing__dl-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  #tt-home-landing .tt-ti-landing__dl-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Hero scroll-down chevron — bounce + drop shadow for contrast on bright areas. */
#tt-home-landing .tt-ti-landing__scroll-down {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 48px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  color: var(--tt-fg-0);
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
  animation: tt-landing-scroll-bounce 1.8s ease-in-out infinite;
}
#tt-home-landing .tt-ti-landing__scroll-down svg {
  display: block;
  width: 40px;
  height: 40px;
}
#tt-home-landing .tt-ti-landing__scroll-down:hover,
#tt-home-landing .tt-ti-landing__scroll-down:focus-visible {
  color: var(--tt-fg-0);
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}
@keyframes tt-landing-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
/* [UPDATE] 2026-07-10 — per product decision, the hero scroll-down cue always
 * animates at full amplitude regardless of prefers-reduced-motion (marketing
 * hero micro-motion is intentional and equal across Chrome/Safari). */

/* Hero first-screen pulse start CTA — links to /signup. */
#tt-home-landing .tt-ti-landing__start-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* [UPDATE] 2026-07-10 — perfect circle by default (short labels fit in 72px);
   * only grows into a pill when the label is longer than the circle. Small
   * horizontal padding keeps long labels off the edge without widening short ones. */
  min-width: 72px;
  width: auto;
  height: 72px;
  padding: 0 8px;
  box-sizing: border-box;
  margin-top: clamp(28px, 5vh, 56px);
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  /* [EXCEPTION] white CTA pill needs black label for contrast — !important
   * beats body.theme--light .tt-ti-landing a { color:#fff !important } */
  color: #000000 !important;
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  pointer-events: auto;
  z-index: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}
#tt-home-landing .tt-ti-landing__start-cta:hover,
#tt-home-landing .tt-ti-landing__start-cta:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: #ffffff;
  /* [EXCEPTION] keep label black on hover in all themes */
  color: #000000 !important;
  outline: none;
}
#tt-home-landing .tt-ti-landing__start-cta-label {
  position: relative;
  z-index: 1;
  /* [EXCEPTION] white CTA pill needs black label for contrast — !important
   * beats body.theme--light .tt-ti-landing span { color:#fff !important } */
  color: #000000 !important;
  pointer-events: none;
  /* [FIX] 2026-07-10 — keep the label on one line inside the round pill so
   * longer locales (ja はじめる / ru Начать) don't wrap. */
  white-space: nowrap;
  padding: 0 6px;
  text-align: center;
}
/* [FIX] 2026-07-10 — pulse rings shown in Safari but not Chrome.
 * Reason: on a `display:flex` element, `inset:0` pseudo-elements were sized
 * inconsistently in Chrome; explicit top/left + width/height and a defined
 * transform-origin make the scaled ring render identically across engines. */
#tt-home-landing .tt-ti-landing__start-cta::before,
#tt-home-landing .tt-ti-landing__start-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  transform-origin: center center;
  pointer-events: none;
  animation: tt-home-start-pulse-ring 3.8s ease-out infinite;
}
#tt-home-landing .tt-ti-landing__start-cta::after {
  animation-delay: 1.9s;
}
@keyframes tt-home-start-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
/* [UPDATE] 2026-07-10 — START pulse always animates at full amplitude in every
 * browser (no reduced-motion downgrade), matching Safari behavior per request. */

/* [ADD] 2026-07-16 — Hero title responsive wrap: balance lines,
   CJK keep-all vs Latin hyphens; compact variant uses pre-line breaks.
   Font-size lives in tradeiz-custom.css [EXCEPTION] hero tagline block. */
#tt-home-landing.tt-home #tt-home-tagline.tt-ti-landing__tagline {
  max-inline-size: min(1100px, 92vw);
  text-wrap: balance;
}
html[lang="zh-CN"] #tt-home-tagline,
html[lang="zh-TW"] #tt-home-tagline,
html[lang="ja"] #tt-home-tagline,
html[lang="ko"] #tt-home-tagline {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html[lang="ar"] #tt-home-tagline {
  word-break: normal;
  overflow-wrap: anywhere;
}
html:not([lang="zh-CN"]):not([lang="zh-TW"]):not([lang="ja"]):not([lang="ko"]):not([lang="ar"]) #tt-home-tagline {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
@media (max-width: 1279.98px) {
  #tt-home-landing.tt-home #tt-home-tagline.tt-ti-landing__tagline {
    max-inline-size: min(92vw, 640px);
    line-height: 1.12;
  }
  #tt-home-landing.tt-home #tt-home-tagline.tt-ti-landing__tagline--compact {
    white-space: pre-line;
    max-inline-size: min(92vw, 520px);
    line-height: 1.14;
  }
}
@media (max-width: 767.98px) {
  #tt-home-landing.tt-home #tt-home-tagline.tt-ti-landing__tagline {
    max-inline-size: min(94vw, 480px);
    line-height: 1.14;
  }
}


