/**
 * /crypto/all-coins — Darker green visual pilot (owner review).
 *
 * PAGE-SCOPED ONLY. Does not rewrite global ZeroSpread tokens.
 * Loads after all-coins-institutional-theme.css.
 *
 * Contract:
 * - Brand lime #A3FF12: identity only (not large light-surface text/accents)
 * - Product accent: #167A45 family (tabs / selection / restrained UI chrome)
 * - Financial positive: #089981 family (deltas, sparklines, market success)
 * - Negative: unchanged (#EF4444 / existing red tokens)
 */

/* ── Token remap (light all-coins only) ─────────────────────────────── */
html.light:has(.crypto-all-coins-page) [data-zs-crypto-root],
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page) {
  /* Product interactive accent — deep institutional, not lime */
  --zs-green-primary: #167a45;
  --zs-green-hover: #12683b;
  --zs-green-dark: #12683b;
  --zs-green-light: #1a8f52;
  --zs-green-soft: #eaf6ef;
  --zs-green-border: #bfdccb;
  --zs-green-glow: transparent;
  --zs-green-on: #ffffff;
  --zs-green: #167a45;
  --zs-accent: #167a45;
  --zs-accent-soft: #eaf6ef;
  --zs-accent-line: rgba(22, 122, 69, 0.4);

  /* Financial positive — separate market-success family */
  --zs-success: #089981;
  --zs-success-soft: #eaf7f4;
  --zs-success-border: rgba(8, 153, 129, 0.28);
  --crypto-fin-up: #089981;
  --crypto-fin-up-strong: #067a67;
  --ac-positive: #089981;
  --crypto-coll-ok: #089981;
  --crypto-coll-accent: rgba(22, 122, 69, 0.35);
  --crypto-coll-badge-border-ok: rgba(8, 153, 129, 0.28);
  --crypto-coll-inner-tint-green: rgba(8, 153, 129, 0.07);
  --crypto-coll-inner-tint-green-bright: rgba(8, 153, 129, 0.1);
  --zs-report-accent: #167a45;
}

/* ── Table: financial positive text ─────────────────────────────────── */
html.light:has(.crypto-all-coins-page) .all-coins-terminal-chg.text-\[var\(--zs-success\)\],
html.light:has(.crypto-all-coins-page) .all-coins-terminal-range span:first-child,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-chg.text-\[var\(--zs-success\)\],
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-range span:first-child {
  color: var(--crypto-fin-up, #089981) !important;
}

/* Favorites star — restrained product accent (not lime) */
html.light:has(.crypto-all-coins-page) .all-coins-terminal-fav.is-on,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-fav.is-on {
  color: var(--zs-accent, #167a45) !important;
}

/* Active tab underline / selected chrome */
html.light:has(.crypto-all-coins-page) .all-coins-terminal-tab.is-active,
html.light:has(.crypto-all-coins-page) .all-coins-terminal-tabs [aria-selected='true'],
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-tab.is-active,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-tabs [aria-selected='true'] {
  /* Prefer existing dark pill; if green underline exists, deepen it */
  --zs-accent: #167a45;
}

html.light:has(.crypto-all-coins-page) .all-coins-terminal-tab.is-active,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-tab.is-active {
  box-shadow: none;
}

/* Soft selected / focus accents */
html.light:has(.crypto-all-coins-page) .all-coins-terminal-fav:focus-visible,
html.light:has(.crypto-all-coins-page) .all-coins-terminal-grid-row--data:focus-visible,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-fav:focus-visible,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-grid-row--data:focus-visible {
  outline-color: #167a45;
}

html.light:has(.crypto-all-coins-page) .all-coins-terminal-load-btn:not(:disabled):hover,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-load-btn:not(:disabled):hover {
  border-color: #bfdccb;
  background: #eaf6ef;
  color: #12683b;
}

/* Summary cards — positive delta only (primary value stays near-black) */
html.light:has(.crypto-all-coins-page) .all-coins-terminal-card-pct,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-card-pct {
  font-weight: 700;
}

html.light:has(.crypto-all-coins-page) .all-coins-terminal-card-title,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-card-title {
  color: var(--zs-text-muted, #64748b);
}

html.light:has(.crypto-all-coins-page) .all-coins-terminal-card-price,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-card-price {
  color: var(--zs-text-primary, #0f172a);
}

/* Discovery / hub financial ups still on this route */
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .csd-traded-chg.is-up,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .csd-mover-row-chg.is-up,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .csd-hero-tile-chg.is-up,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-list-analytic-coin-chg.is-up,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-list-detail-preview-chg.is-up,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-news-rail-trend.is-positive,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-news-sentiment.is-positive,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .ncd-table-cell--change.is-up,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-idea-mi-quote .is-up,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .csd-traded-chg.is-up,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .csd-mover-row-chg.is-up,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .csd-hero-tile-chg.is-up,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-list-analytic-coin-chg.is-up,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-list-detail-preview-chg.is-up,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-news-rail-trend.is-positive,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-news-sentiment.is-positive,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .ncd-table-cell--change.is-up,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-idea-mi-quote
  .is-up {
  color: #089981 !important;
}

/* Product accent hard overrides (tabs / chips / status that used mid green) */
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-idea-chip--lead,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-idea-status--strong,
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-idea-modal-status--strong,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-idea-chip--lead,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-idea-status--strong,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-idea-modal-status--strong {
  color: #167a45 !important;
}

html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .cdh-idea-decision--positive,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .cdh-idea-decision--positive {
  border-inline-start-color: #167a45;
  background: #eaf6ef;
}

/* Sector dashboard accent on this route */
html.light:has(.crypto-all-coins-page) .crypto-discovery-hub .csd-dashboard,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-discovery-hub
  .csd-dashboard {
  --zs-accent: #167a45 !important;
}

/* Ban bright lime on large light-surface accents within this page */
html.light:has(.crypto-all-coins-page) .crypto-all-coins-page,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .crypto-all-coins-page {
  --zs-green-primary: #167a45;
}

/**
 * /crypto/all-coins — Sprint 12A density / table UX polish.
 * Scoped to discovery hub page only. Does not alter color tokens,
 * theme architecture, or Markets Overview embeddings of the terminal table.
 */

.crypto-all-coins-page.crypto-discovery-hub {
  --ac-row-h: 40px;
  --ac-header-h: 34px;
  --ac-ctrl-h: 32px;
  --ac-radius-sm: 8px;
  --ac-gap: 12px;
}

/* ── Hero + section tabs ─────────────────────────────────────────────── */
.crypto-all-coins-page .cdh-page-hero {
  padding-top: 0.85rem;
  padding-bottom: 0.15rem;
  text-align: start;
}

.crypto-all-coins-page .cdh-page-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.crypto-all-coins-page .cdh-page-subtitle {
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 400;
  max-width: 40rem;
  margin: 0.4rem 0 0;
  opacity: 0.9;
}

.crypto-all-coins-page.page-ltr .cdh-page-hero,
.crypto-all-coins-page.page-ltr .cdh-page-title,
.crypto-all-coins-page.page-ltr .cdh-page-subtitle {
  text-align: start;
}

.crypto-all-coins-page .cdh-section-tabs {
  margin-top: 0.65rem;
  margin-bottom: 0.85rem;
  height: 42px;
  min-height: 42px;
  max-height: 44px;
  justify-content: flex-start;
  gap: clamp(0.85rem, 2.2vw, 1.75rem);
}

.crypto-all-coins-page .cdh-section-tab {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Outer shell — less card-island padding */
.crypto-all-coins-page .crypto-all-coins-wrapper.outer-shell {
  padding-top: 0.75rem !important;
  padding-bottom: 1.5rem !important;
}

.crypto-all-coins-page .crypto-all-coins-shell.all-coins-terminal {
  padding: 0.75rem 0.85rem 1rem !important;
  margin-bottom: 1rem !important;
  border-radius: var(--ac-radius-sm) !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ── Stat strip — denser, quieter surfaces ───────────────────────────── */
.crypto-all-coins-page .all-coins-terminal-cards {
  gap: 0.5rem;
}

.crypto-all-coins-page .all-coins-terminal-card {
  border-radius: var(--ac-radius-sm) !important;
  padding: 0.55rem 0.65rem 0.5rem !important;
  min-height: 4.25rem !important;
}

.crypto-all-coins-page .all-coins-terminal-card-inner {
  gap: 0.28rem;
  min-height: 0 !important;
}

.crypto-all-coins-page .all-coins-terminal-card-price {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.crypto-all-coins-page .all-coins-terminal-card-title {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.crypto-all-coins-page .all-coins-terminal-card-go {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── Toolbar / search / filter tabs ──────────────────────────────────── */
.crypto-all-coins-page .all-coins-terminal-toolbar {
  gap: 0.55rem;
  margin-top: 0.75rem;
  margin-bottom: 0.55rem;
}

.crypto-all-coins-page .all-coins-terminal-tabs {
  gap: 0.25rem;
  min-height: var(--ac-ctrl-h);
}

.crypto-all-coins-page .all-coins-terminal-tab {
  padding: 0.28rem 0.55rem;
  min-height: var(--ac-ctrl-h);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.crypto-all-coins-page .all-coins-terminal-search {
  min-height: var(--ac-ctrl-h);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}

.crypto-all-coins-page .all-coins-terminal-search:focus-within {
  /* Keep focus ring restrained — use border mid, not brand glow */
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: none;
}

.crypto-all-coins-page .all-coins-terminal-search-input {
  font-size: 0.75rem;
}

.crypto-all-coins-page .all-coins-terminal-search-icon {
  width: 0.875rem;
  height: 0.875rem;
}

@media (min-width: 768px) {
  .crypto-all-coins-page .all-coins-terminal-search-wrap {
    flex: 0 1 15rem;
    max-width: 16rem;
    min-width: 11rem;
  }
}

/* Active filter chip bar */
.crypto-all-coins-page .cdh-table-filter-bar {
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

/* ── Table density ───────────────────────────────────────────────────── */
.crypto-all-coins-page .all-coins-terminal-table-wrap {
  border-radius: var(--ac-radius-sm);
}

.crypto-all-coins-page .all-coins-terminal-grid {
  padding-inline: 10px;
  font-size: 14px;
}

.crypto-all-coins-page .all-coins-terminal-grid-cell {
  min-height: var(--ac-row-h);
  padding-block: 6px;
}

.crypto-all-coins-page .all-coins-terminal-grid-row--header .all-coins-terminal-grid-cell {
  min-height: var(--ac-header-h);
  padding-block: 6px;
}

.crypto-all-coins-page .all-coins-terminal-grid-cell--header {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.crypto-all-coins-page .all-coins-terminal-coin-cell {
  gap: 8px;
}

.crypto-all-coins-page .all-coins-terminal-coin {
  gap: 8px;
}

.crypto-all-coins-page .all-coins-terminal-coin img {
  width: 1.25rem;
  height: 1.25rem;
}

.crypto-all-coins-page .all-coins-terminal-coin-txt {
  gap: 1px;
}

.crypto-all-coins-page .all-coins-terminal-coin-sym {
  font-size: 0.72rem;
  font-weight: 700;
}

.crypto-all-coins-page .all-coins-terminal-coin-name {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.9;
}

.crypto-all-coins-page .all-coins-terminal-num,
.crypto-all-coins-page .all-coins-terminal-chg,
.crypto-all-coins-page .all-coins-terminal-mcap {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-size: 0.72rem;
  font-weight: 600;
}

.crypto-all-coins-page .all-coins-terminal-chg {
  font-weight: 700;
}

.crypto-all-coins-page .all-coins-terminal-range {
  font-size: 0.62rem;
}

.crypto-all-coins-page .all-coins-terminal-col-price,
.crypto-all-coins-page .all-coins-terminal-col-mcap,
.crypto-all-coins-page .all-coins-terminal-col-chg {
  font-variant-numeric: tabular-nums;
}

.crypto-all-coins-page .all-coins-terminal-fav {
  width: 1.35rem;
  height: 1.35rem;
}

.crypto-all-coins-page .all-coins-terminal-spark svg {
  max-height: 22px;
}

/* Skeletons — match denser rows */
.crypto-all-coins-page .all-coins-terminal-grid-row .animate-pulse,
.crypto-all-coins-page .all-coins-terminal-grid-cell .h-3,
.crypto-all-coins-page .all-coins-terminal-grid-cell [class*='skeleton'],
.crypto-all-coins-page .all-coins-terminal-grid-cell .rounded {
  max-height: 12px;
}

.crypto-all-coins-page .all-coins-terminal-load-row {
  margin-top: 0.65rem;
}

.crypto-all-coins-page .all-coins-terminal-load-more {
  min-width: 9rem;
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.crypto-all-coins-page .all-coins-terminal-empty {
  padding: 1.1rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

.crypto-all-coins-page .all-coins-terminal-col-coin .w-8.h-8 {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

.crypto-all-coins-page .all-coins-terminal-grid-cell .h-4 {
  height: 0.65rem !important;
}

.crypto-all-coins-page .all-coins-terminal-grid-cell .h-3\.5 {
  height: 0.55rem !important;
}

.crypto-all-coins-page .all-coins-terminal-grid-cell .h-6 {
  height: 0.75rem !important;
}

/* ── Mobile: prioritize symbol / price / change ──────────────────────── */
@media (max-width: 719px) {
  .crypto-all-coins-page .all-coins-terminal-grid {
    --ac-grid-cols: minmax(150px, 1.4fr) minmax(88px, 0.85fr) minmax(72px, 0.7fr);
    min-width: 0;
    padding-inline: 8px;
  }

  .crypto-all-coins-page .all-coins-terminal-col-rng,
  .crypto-all-coins-page .all-coins-terminal-col-spark,
  .crypto-all-coins-page .all-coins-terminal-col-mcap {
    display: none !important;
  }

  .crypto-all-coins-page .all-coins-terminal-table-wrap {
    overflow-x: visible;
  }

  .crypto-all-coins-page .all-coins-terminal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crypto-all-coins-page .cdh-page-title {
    font-size: 1.25rem;
  }

  .crypto-all-coins-page .cdh-section-tabs {
    justify-content: flex-start;
    padding-inline: 0;
  }
}

@media (min-width: 1024px) {
  .crypto-all-coins-page .all-coins-terminal-grid {
    --ac-grid-cols: minmax(220px, 1.35fr) minmax(120px, 0.85fr) minmax(100px, 0.7fr) minmax(120px, 0.8fr)
      minmax(110px, 0.75fr) minmax(110px, 0.7fr);
  }

  .crypto-all-coins-page .crypto-all-coins-shell.all-coins-terminal {
    padding-inline: 0 !important;
  }
}

@media (min-width: 1440px) {
  .crypto-all-coins-page .all-coins-terminal-grid {
    padding-inline: 12px;
  }
}

/* Light hub hero subtitle readable without relying on dark rgba */
html.light .crypto-all-coins-page .cdh-page-subtitle,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .cdh-page-subtitle {
  color: #475569;
}

html.light .crypto-all-coins-page .all-coins-terminal-search:focus-within,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-search:focus-within {
  border-color: rgba(15, 23, 42, 0.22) !important;
  box-shadow: none !important;
}

/* Restrain oversized light hero from institutional theme for this page density */
html.light .crypto-all-coins-page .cdh-page-title,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .cdh-page-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
  font-weight: 700 !important;
}

html.light .crypto-all-coins-page .cdh-section-tabs,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .cdh-section-tabs {
  margin-top: 0.65rem !important;
  margin-bottom: 0.85rem !important;
}

html.light .crypto-all-coins-page .crypto-all-coins-shell,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .crypto-all-coins-shell {
  padding-top: 0.75rem !important;
  padding-bottom: 1rem !important;
}

html.light .crypto-all-coins-page .all-coins-terminal-card,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-card {
  border-radius: var(--ac-radius-sm) !important;
}

/**
 * /crypto/all-coins — Premium workspace visual pass (owner review).
 *
 * Scoped ONLY to `.crypto-all-coins-page`. Does not alter data logic,
 * other routes, brand identity, or the darker financial-green pilot.
 *
 * Goals: institutional hierarchy, compact summary strip, unified toolbar,
 * sharper table scanning rhythm (TradingView-quality principles, not a clone).
 */

.crypto-all-coins-page.crypto-discovery-hub {
  --ac-row-h: 38px;
  --ac-header-h: 32px;
  --ac-ctrl-h: 34px;
  --ac-radius-sm: 8px;
  --ac-hairline: rgba(255, 255, 255, 0.08);
  --ac-hairline-strong: rgba(255, 255, 255, 0.12);
  --ac-surface: var(--zs-surface-1, #0b1110);
  --ac-surface-muted: var(--zs-surface-2, #101412);
}

html.light .crypto-all-coins-page.crypto-discovery-hub,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page.crypto-discovery-hub {
  --ac-hairline: rgba(15, 23, 42, 0.08);
  --ac-hairline-strong: rgba(15, 23, 42, 0.12);
  --ac-surface: #ffffff;
  --ac-surface-muted: #f8fafc;
}

/* ═══════════════════════════════════════════════════════════════════════
   A) TITLE / HERO — less dead air, content starts earlier
   ═══════════════════════════════════════════════════════════════════════ */
.crypto-all-coins-page .crypto-all-coins-wrapper.outer-shell {
  padding-top: 0.35rem !important;
  padding-bottom: 1.25rem !important;
}

.crypto-all-coins-page[data-zs-page='crypto-all-coins'] .zs-ptc-shell,
.crypto-all-coins-page .zs-ptc-shell {
  padding-block: 10px 18px !important;
}

@media (min-width: 1024px) {
  .crypto-all-coins-page .zs-ptc-shell {
    padding-block: 12px 22px !important;
  }
}

@media (max-width: 767px) {
  .crypto-all-coins-page .zs-ptc-shell {
    padding-block: 8px 14px !important;
  }
}

.crypto-all-coins-page .zs-ptc--title-pilot .zs-ptc__title,
.crypto-all-coins-page .zs-ptc__title {
  letter-spacing: -0.01em;
  font-weight: 700;
}

.crypto-all-coins-page .zs-ptc__eyebrow {
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.crypto-all-coins-page .crypto-all-coins-shell.all-coins-terminal {
  padding: 0 !important;
  margin-bottom: 0.75rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   B) SUMMARY STRIP — one horizontal institutional band
   ═══════════════════════════════════════════════════════════════════════ */
.crypto-all-coins-page .all-coins-terminal-cards {
  gap: 0 !important;
  border: 1px solid var(--ac-hairline);
  border-radius: var(--ac-radius-sm);
  background: var(--ac-surface);
  overflow: hidden;
  box-shadow: none !important;
}

@media (min-width: 640px) {
  .crypto-all-coins-page .all-coins-terminal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .crypto-all-coins-page .all-coins-terminal-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

html.light .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-card,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-card,
.crypto-all-coins-page .all-coins-terminal-card {
  min-height: 0 !important;
  padding: 0.55rem 0.85rem 0.5rem !important;
  border-radius: 0 !important;
  border: none !important;
  border-inline-start: 1px solid var(--ac-hairline) !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.crypto-all-coins-page .all-coins-terminal-cards > .all-coins-terminal-card:first-child {
  border-inline-start: none !important;
}

@media (max-width: 1023px) and (min-width: 640px) {
  .crypto-all-coins-page .all-coins-terminal-cards > .all-coins-terminal-card:nth-child(2) {
    border-inline-start: none !important;
  }
  .crypto-all-coins-page .all-coins-terminal-cards > .all-coins-terminal-card:nth-child(n + 3) {
    border-top: 1px solid var(--ac-hairline) !important;
  }
}

@media (max-width: 639px) {
  .crypto-all-coins-page .all-coins-terminal-card {
    border-inline-start: none !important;
    border-top: 1px solid var(--ac-hairline) !important;
  }
  .crypto-all-coins-page .all-coins-terminal-cards > .all-coins-terminal-card:first-child {
    border-top: none !important;
  }
}

.crypto-all-coins-page .all-coins-terminal-card::before {
  display: none !important;
}

.crypto-all-coins-page .all-coins-terminal-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'title title'
    'price pct'
    'asset asset';
  gap: 0.12rem 0.65rem;
  align-items: baseline;
  min-height: 0 !important;
}

.crypto-all-coins-page .all-coins-terminal-card-top {
  grid-area: title;
  margin: 0;
  align-items: center;
}

.crypto-all-coins-page .all-coins-terminal-card-title {
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--zs-text-muted, #64748b) !important;
  opacity: 1 !important;
  line-height: 1.2;
}

/* Quiet chrome — remove decorative jump affordance noise */
.crypto-all-coins-page .all-coins-terminal-card-go {
  display: none !important;
}

.crypto-all-coins-page .all-coins-terminal-card-price {
  grid-area: price;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
  color: var(--zs-text-primary, #0f172a) !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.crypto-all-coins-page .all-coins-terminal-card-pct-row {
  grid-area: pct;
  justify-self: end;
  align-self: center;
  min-height: 0;
}

.crypto-all-coins-page .all-coins-terminal-card-pct {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.crypto-all-coins-page .all-coins-terminal-card-asset {
  grid-area: asset;
  margin-top: 0.15rem !important;
  padding-top: 0 !important;
  gap: 0.4rem;
}

.crypto-all-coins-page .all-coins-terminal-card-asset img {
  width: 1.05rem !important;
  height: 1.05rem !important;
}

.crypto-all-coins-page .all-coins-terminal-card-sym {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.crypto-all-coins-page .all-coins-terminal-card-name {
  font-size: 0.5625rem !important;
  font-weight: 500 !important;
  color: var(--zs-text-muted, #64748b) !important;
  opacity: 0.92;
}

/* ═══════════════════════════════════════════════════════════════════════
   C) TOOLBAR — one coherent control bar anchoring the table
   ═══════════════════════════════════════════════════════════════════════ */
.crypto-all-coins-page .all-coins-terminal-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.65rem !important;
  margin-bottom: 0 !important;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--ac-hairline);
  border-bottom: none;
  border-radius: var(--ac-radius-sm) var(--ac-radius-sm) 0 0;
  background: var(--ac-surface-muted);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .crypto-all-coins-page .all-coins-terminal-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.65rem;
    min-height: calc(var(--ac-ctrl-h) + 0.7rem);
  }
}

.crypto-all-coins-page .all-coins-terminal-tabs {
  gap: 0.15rem !important;
  min-height: var(--ac-ctrl-h);
  flex: 1 1 auto;
}

.crypto-all-coins-page .all-coins-terminal-tab {
  padding: 0.3rem 0.6rem !important;
  min-height: var(--ac-ctrl-h) !important;
  border-radius: 6px !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  background: transparent !important;
  color: var(--zs-text-secondary, #475569) !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
}

.crypto-all-coins-page .all-coins-terminal-tab:hover {
  background: rgba(15, 23, 42, 0.04) !important;
  color: var(--zs-text-primary, #0f172a) !important;
}

.crypto-all-coins-page .all-coins-terminal-tab.is-active {
  background: var(--ac-surface) !important;
  color: var(--zs-text-primary, #0f172a) !important;
  border-color: var(--ac-hairline-strong) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.crypto-all-coins-page .all-coins-terminal-search-wrap {
  flex: 0 1 15.5rem;
  max-width: 16.5rem;
  min-width: 11rem;
}

.crypto-all-coins-page .all-coins-terminal-search {
  min-height: var(--ac-ctrl-h) !important;
  padding: 0.25rem 0.55rem !important;
  border-radius: 6px !important;
  border: 1px solid var(--ac-hairline) !important;
  background: var(--ac-surface) !important;
  box-shadow: none !important;
}

.crypto-all-coins-page .all-coins-terminal-search:focus-within {
  border-color: rgba(22, 122, 69, 0.45) !important;
  box-shadow: none !important;
}

.crypto-all-coins-page .all-coins-terminal-search-input {
  font-size: 0.75rem !important;
  font-weight: 500;
}

.crypto-all-coins-page .all-coins-terminal-search-icon {
  width: 0.85rem !important;
  height: 0.85rem !important;
  opacity: 0.55;
}

.crypto-all-coins-page .cdh-table-filter-bar {
  margin: 0;
  border-radius: 0;
  border: 1px solid var(--ac-hairline);
  border-bottom: none;
  border-top: none;
  background: var(--ac-surface-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   D) TABLE — denser scanning instrument
   ═══════════════════════════════════════════════════════════════════════ */
.crypto-all-coins-page .all-coins-terminal-table-wrap {
  border-radius: 0 0 var(--ac-radius-sm) var(--ac-radius-sm) !important;
  border: 1px solid var(--ac-hairline) !important;
  background: var(--ac-surface) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.crypto-all-coins-page .all-coins-terminal-grid {
  --ac-grid-cols: minmax(200px, 1.35fr) minmax(108px, 0.78fr) minmax(88px, 0.62fr)
    minmax(92px, 0.68fr) minmax(96px, 0.7fr) minmax(108px, 0.72fr);
  padding-inline: 10px !important;
  font-size: 14px;
}

.crypto-all-coins-page .all-coins-terminal-grid-cell {
  min-height: var(--ac-row-h) !important;
  padding-block: 5px !important;
  border-bottom-color: var(--ac-hairline) !important;
}

.crypto-all-coins-page .all-coins-terminal-grid-row--header .all-coins-terminal-grid-cell {
  min-height: var(--ac-header-h) !important;
  padding-block: 5px !important;
  background: var(--ac-surface-muted) !important;
  border-bottom: 1px solid var(--ac-hairline-strong) !important;
}

.crypto-all-coins-page .all-coins-terminal-grid-cell--header {
  font-size: 0.5625rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  color: var(--zs-text-muted, #64748b) !important;
  opacity: 1 !important;
}

.crypto-all-coins-page .all-coins-terminal-grid-row--data:nth-child(even) {
  background: transparent !important;
}

.crypto-all-coins-page .all-coins-terminal-grid-row--data:hover {
  background: rgba(15, 23, 42, 0.028) !important;
  box-shadow: none !important;
}

.crypto-all-coins-page .all-coins-terminal-coin-cell {
  gap: 6px !important;
}

.crypto-all-coins-page .all-coins-terminal-fav {
  width: 1.15rem !important;
  height: 1.15rem !important;
  color: rgba(15, 23, 42, 0.28) !important;
  opacity: 0.85;
}

.crypto-all-coins-page .all-coins-terminal-fav:hover {
  background: transparent !important;
  color: rgba(15, 23, 42, 0.55) !important;
}

.crypto-all-coins-page .all-coins-terminal-fav.is-on {
  color: var(--zs-accent, #167a45) !important;
  opacity: 1;
}

.crypto-all-coins-page .all-coins-terminal-coin {
  gap: 7px !important;
}

.crypto-all-coins-page .all-coins-terminal-coin img {
  width: 1.2rem !important;
  height: 1.2rem !important;
}

.crypto-all-coins-page .all-coins-terminal-coin-txt {
  gap: 0 !important;
}

.crypto-all-coins-page .all-coins-terminal-coin-sym {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: var(--zs-text-primary, #0f172a) !important;
  line-height: 1.15 !important;
}

.crypto-all-coins-page .all-coins-terminal-coin-name {
  font-size: 0.5625rem !important;
  font-weight: 500 !important;
  color: var(--zs-text-muted, #64748b) !important;
  opacity: 0.88 !important;
  line-height: 1.2 !important;
}

/* Price = strongest numeric in the row */
.crypto-all-coins-page .all-coins-terminal-col-price .all-coins-terminal-num,
.crypto-all-coins-page .all-coins-terminal-grid-cell.all-coins-terminal-col-price {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
  color: var(--zs-text-primary, #0f172a);
}

.crypto-all-coins-page .all-coins-terminal-chg {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  gap: 0.12rem;
}

.crypto-all-coins-page .all-coins-terminal-range {
  font-size: 0.5625rem !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  gap: 0.02rem;
  line-height: 1.2;
}

.crypto-all-coins-page .all-coins-terminal-mcap {
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  color: var(--zs-text-secondary, #475569);
}

.crypto-all-coins-page .all-coins-terminal-col-spark {
  justify-content: center;
  align-items: center;
}

.crypto-all-coins-page .all-coins-terminal-spark {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.crypto-all-coins-page .all-coins-terminal-spark svg {
  max-height: 20px;
  width: 78px;
}

.crypto-all-coins-page .all-coins-terminal-spark polyline {
  stroke-width: 1.25;
}

.crypto-all-coins-page .all-coins-terminal-th-sort {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.crypto-all-coins-page .all-coins-terminal-load-row {
  margin-top: 0.55rem;
  padding-top: 0.15rem;
}

.crypto-all-coins-page .all-coins-terminal-load-more {
  min-width: 8.5rem;
  padding: 0.35rem 1rem !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  border: 1px solid var(--ac-hairline-strong) !important;
  background: var(--ac-surface) !important;
  box-shadow: none !important;
}

html.light .crypto-all-coins-page .all-coins-terminal-load-more:hover:not(:disabled),
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-load-more:hover:not(:disabled) {
  background: #eaf6ef !important;
  border-color: #bfdccb !important;
  color: #12683b !important;
}

/* Keep financial greens from pilot — reinforce, do not neon-ify */
.crypto-all-coins-page .all-coins-terminal-chg.text-\[var\(--zs-success\)\],
.crypto-all-coins-page .all-coins-terminal-card-pct {
  /* color comes from inline / pilot tokens */
}

/* ═══════════════════════════════════════════════════════════════════════
   H) RESPONSIVE — preserve mobile priorities without redesign
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 719px) {
  .crypto-all-coins-page .all-coins-terminal-toolbar {
    border-radius: var(--ac-radius-sm);
    border-bottom: 1px solid var(--ac-hairline);
    margin-bottom: 0.45rem !important;
  }

  .crypto-all-coins-page .all-coins-terminal-table-wrap {
    border-radius: var(--ac-radius-sm) !important;
  }

  .crypto-all-coins-page .all-coins-terminal-search-wrap {
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }

  .crypto-all-coins-page .all-coins-terminal-grid {
    padding-inline: 8px !important;
  }
}

/* ── Beat institutional light !important (same route only) ───────────── */
html.light .crypto-all-coins-page.crypto-discovery-hub .crypto-all-coins-shell,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .crypto-all-coins-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  /* Keep darker financial green from pilot (do not reintroduce #16a34a) */
  --zs-success: #089981;
  --crypto-fin-up: #089981;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-cards,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-cards {
  background: #ffffff !important;
  box-shadow: none !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-card,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-card {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  border-inline-start: 1px solid rgba(15, 23, 42, 0.08) !important;
  min-height: 0 !important;
  padding: 0.55rem 0.85rem 0.5rem !important;
}

html.light
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-cards
  > .all-coins-terminal-card:first-child,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-cards
  > .all-coins-terminal-card:first-child {
  border-inline-start: none !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-card::before,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-card::before {
  display: none !important;
  opacity: 0 !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-tab.is-active,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-tab.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: none !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-table-wrap,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-table-wrap {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: none !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-search,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-search {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}


/**
 * /crypto/all-coins — New Markets title hierarchy correction.
 * Primary PageTitleCluster title stays unchanged.
 * Secondary `ncd-title` is a section heading, not a second page title.
 */

/* Pull section heading closer to the page title (shell padding is untouched). */
.crypto-all-coins-page .ncd-page {
  padding-top: 4px;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-page,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .ncd-page {
  padding-top: 4px !important;
}

.crypto-all-coins-page .ncd-header {
  margin: 0 0 18px;
  padding: 0;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-header,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .ncd-header {
  margin: 0 0 18px;
  padding-top: 0;
}

/* Section heading — clearly below the 54px/700 page title */
.crypto-all-coins-page .ncd-title {
  margin: 0;
  font-family: inherit;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--zs-text-primary, #f5f7fa);
  text-shadow: none;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-title,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .ncd-title {
  margin: 0;
  font-family: inherit;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: #0f172a !important;
  text-shadow: none;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}

.crypto-all-coins-page .ncd-subtitle,
.crypto-all-coins-page .ncd-disclosure {
  max-width: 720px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--zs-text-secondary, rgba(255, 255, 255, 0.78));
  text-align: inherit;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-subtitle,
html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-disclosure,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .ncd-subtitle,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .ncd-disclosure {
  max-width: 720px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #64748b !important;
  text-align: inherit;
}

.crypto-all-coins-page .ncd-subtitle {
  margin: 7px 0 0;
}

.crypto-all-coins-page .ncd-disclosure {
  margin: 6px 0 0;
}

@media (max-width: 767px) {
  .crypto-all-coins-page .ncd-title,
  html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-title,
  [data-zs-crypto-root][data-zs-theme='light']
    .crypto-all-coins-page.crypto-discovery-hub
    .ncd-title {
    font-size: 17px !important;
    font-weight: 600;
  }

  .crypto-all-coins-page .ncd-page,
  html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-page,
  [data-zs-crypto-root][data-zs-theme='light']
    .crypto-all-coins-page.crypto-discovery-hub
    .ncd-page {
    padding-top: 4px !important;
  }

  .crypto-all-coins-page .ncd-header,
  html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-header,
  [data-zs-crypto-root][data-zs-theme='light']
    .crypto-all-coins-page.crypto-discovery-hub
    .ncd-header {
    margin-bottom: 16px;
  }
}

/* Mouse click: no sticky green ring. Keyboard :focus-visible kept. */
.crypto-all-coins-page .zs-ptc--title-pilot .zs-ptc__title-trigger:focus,
.crypto-all-coins-page .zs-ptc--title-pilot .zs-ptc__title-trigger:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.crypto-all-coins-page .zs-ptc--title-pilot .zs-ptc__title-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--zs-green-primary, #167a45) 45%, transparent);
  outline-offset: 3px;
}

/**
 * /crypto/all-coins — typography + semantic color normalization.
 * Scoped to this page. Does not change layout, data, or routes.
 */

.crypto-all-coins-page {
  --zs-font-body: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  --zs-font-display: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  --zs-font-institutional: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  --zs-success: #18c37e;
  --zs-success-soft: rgba(24, 195, 126, 0.1);
  --zs-success-border: rgba(24, 195, 126, 0.18);
  --zs-red: #ef4444;
  --zs-green-primary: #a3ff12;
  --crypto-fin-up: var(--zs-success-text, var(--zs-success));
  --crypto-fin-down: var(--zs-red);
  --ac-positive: var(--zs-success-text, var(--zs-success));
  --ac-negative: var(--zs-red);
  --crypto-coll-ok: var(--zs-success-text, var(--zs-success));
  --crypto-coll-bad: var(--zs-red);
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

html.light .crypto-all-coins-page,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page {
  --ac-border: var(--zs-light-border, #e5e7eb);
  --ac-hairline: var(--zs-light-border, #e5e7eb);
  --ac-hairline-strong: var(--zs-light-border-soft, rgba(15, 23, 42, 0.08));
  --at-border-faint: var(--zs-light-border, #e5e7eb);
}

html.light:has(.crypto-all-coins-page) [data-zs-crypto-root],
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page) {
  --zs-success: #18c37e;
  --zs-success-soft: rgba(24, 195, 126, 0.1);
  --zs-success-border: rgba(24, 195, 126, 0.18);
  --zs-red: #ef4444;
  --zs-green-primary: #a3ff12;
  --crypto-fin-up: var(--zs-success-text-light, #15803d);
  --crypto-fin-down: #ef4444;
  --ac-positive: var(--zs-success-text-light, #15803d);
  --ac-negative: #ef4444;
  --crypto-coll-ok: var(--zs-success-text-light, #15803d);
  --crypto-coll-bad: #ef4444;
  --zs-text-primary: var(--zs-light-text, #0f172a);
  --zs-text-secondary: var(--zs-light-secondary, #475569);
  --zs-text-muted: var(--zs-light-secondary-alt, #64748b);
}

.crypto-all-coins-page,
.crypto-all-coins-page *:not(svg):not(path) {
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

/* ── Title cluster ─────────────────────────────────────────────────── */
.crypto-all-coins-page .zs-ptc--title-pilot .zs-ptc__eyebrow,
.crypto-all-coins-page .zs-ptc__eyebrow {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--zs-text-secondary, var(--zs-light-secondary, #475569));
  opacity: 1;
}

.crypto-all-coins-page .zs-ptc--title-pilot .zs-ptc__title,
.crypto-all-coins-page .zs-ptc__title {
  font-size: clamp(2.5rem, 3vw, 3.125rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--zs-text-primary, var(--zs-light-text, #0f172a));
}

.crypto-all-coins-page .zs-ptc--title-pilot .zs-ptc__chevron,
.crypto-all-coins-page .zs-ptc__chevron {
  color: var(--zs-text-secondary, var(--zs-light-secondary, #475569));
  opacity: 0.72;
}

/* ── Highlight strip ────────────────────────────────────────────────── */
.crypto-all-coins-page .all-coins-terminal-card-title {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: var(--zs-text-secondary, #475569);
  opacity: 1;
}

.crypto-all-coins-page .all-coins-terminal-card-sym {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: var(--zs-text-primary, #0f172a);
  direction: ltr;
  unicode-bidi: isolate;
}

.crypto-all-coins-page .all-coins-terminal-card-name {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: var(--zs-text-muted, var(--zs-light-secondary-alt, #64748b));
  opacity: 1 !important;
}

.crypto-all-coins-page .all-coins-terminal-card-price {
  font-size: 15px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0 !important;
}

.crypto-all-coins-page .all-coins-terminal-card-pct {
  font-size: 13px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ── Toolbar ──────────────────────────────────────────────────────────── */
.crypto-all-coins-page .all-coins-terminal-search-input,
.crypto-all-coins-page .all-coins-terminal-search input {
  font-size: 13px !important;
  font-weight: 400;
  color: var(--zs-text-primary, #0f172a);
}

.crypto-all-coins-page .all-coins-terminal-search-input::placeholder,
.crypto-all-coins-page .all-coins-terminal-search input::placeholder {
  color: var(--zs-text-muted, #64748b);
  opacity: 0.92;
}

html.light .crypto-all-coins-page .all-coins-terminal-search,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-search {
  border-color: var(--zs-light-border, #e5e7eb) !important;
  box-shadow: none !important;
}

html.light .crypto-all-coins-page .all-coins-terminal-search:focus-within,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-search:focus-within {
  border-color: var(--zs-light-border, #e5e7eb) !important;
  box-shadow: none !important;
}

.crypto-all-coins-page .all-coins-terminal-tab {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--zs-text-secondary, #475569) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

html.light .crypto-all-coins-page .all-coins-terminal-tab:hover,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-tab:hover {
  color: var(--zs-text-primary, #0f172a) !important;
  background: var(--zs-light-surface-soft, #f4f6f2) !important;
}

.crypto-all-coins-page .all-coins-terminal-tab:focus-visible {
  outline: 2px solid var(--zs-light-text, #0f172a);
  outline-offset: 2px;
}

html.light .crypto-all-coins-page .all-coins-terminal-tab.is-active,
html.light .crypto-all-coins-page .all-coins-terminal-tabs [aria-selected='true'],
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-tab.is-active,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-tabs [aria-selected='true'] {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--zs-light-text-strong, #111827) !important;
  background: var(--zs-light-surface, #ffffff) !important;
  border-color: var(--zs-light-border, #e5e7eb) !important;
  box-shadow: none !important;
}

/* ── Headers ─────────────────────────────────────────────────────────── */
.crypto-all-coins-page .all-coins-terminal-grid-cell--header,
.crypto-all-coins-page .all-coins-terminal-th-sort {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none;
  color: var(--zs-text-secondary, var(--zs-light-secondary, #475569)) !important;
  opacity: 1 !important;
}

.crypto-all-coins-page .all-coins-terminal-sort-ico {
  opacity: 0.55;
  color: var(--zs-text-muted, #64748b);
}

html.light .crypto-all-coins-page .all-coins-terminal-grid-row--header .all-coins-terminal-grid-cell,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-grid-row--header .all-coins-terminal-grid-cell {
  background: var(--zs-light-surface-soft, #f4f6f2) !important;
  border-bottom: 1px solid var(--zs-light-border, #e5e7eb) !important;
}

html.light .crypto-all-coins-page .all-coins-terminal-table-wrap,
html.light .crypto-all-coins-page .all-coins-terminal-grid-cell,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-table-wrap,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-grid-cell {
  border-color: var(--zs-light-border, #e5e7eb) !important;
  box-shadow: none !important;
}

/* ── Rows ──────────────────────────────────────────────────────────── */
.crypto-all-coins-page .all-coins-terminal-coin-sym {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  direction: ltr;
  unicode-bidi: isolate;
}

.crypto-all-coins-page .all-coins-terminal-coin-name {
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: var(--zs-text-muted, var(--zs-light-secondary-alt, #64748b));
  opacity: 1 !important;
}

.crypto-all-coins-page .all-coins-terminal-num,
.crypto-all-coins-page .all-coins-terminal-col-price .all-coins-terminal-num,
.crypto-all-coins-page .all-coins-terminal-grid-cell.all-coins-terminal-col-price {
  font-size: 14px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.crypto-all-coins-page .all-coins-terminal-chg {
  font-size: 13px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.crypto-all-coins-page .all-coins-terminal-range {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.crypto-all-coins-page .all-coins-terminal-col-mcap,
.crypto-all-coins-page .all-coins-terminal-col-mcap .all-coins-terminal-num {
  font-size: 13px !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Shell/pilot remapped --zs-success to a muted teal (#089981). Restore canonical market strength. */
html.light .crypto-all-coins-page.crypto-discovery-hub .crypto-all-coins-shell,
html.light .crypto-all-coins-page.crypto-discovery-hub .all-coins-terminal-cards,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .crypto-all-coins-shell,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub
  .all-coins-terminal-cards,
.crypto-all-coins-page .crypto-all-coins-shell,
.crypto-all-coins-page .all-coins-terminal,
.crypto-all-coins-page .all-coins-terminal-cards {
  --zs-success: #18c37e;
  --crypto-fin-up: var(--zs-success);
  --zs-red: #ef4444;
  --crypto-fin-down: var(--zs-red);
}

html.light:has(.crypto-all-coins-page) .all-coins-terminal-chg.text-\[var\(--zs-success\)\],
html.light:has(.crypto-all-coins-page) .all-coins-terminal-range span:first-child,
html.light:has(.crypto-all-coins-page) .all-coins-terminal-card-pct.is-up,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-chg.text-\[var\(--zs-success\)\],
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-range span:first-child,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-card-pct.is-up,
.crypto-all-coins-page .all-coins-terminal-chg.text-\[var\(--zs-success\)\],
.crypto-all-coins-page .all-coins-terminal-range span:first-child,
.crypto-all-coins-page .all-coins-terminal-card-pct.is-up {
  color: var(--zs-success-text, var(--zs-success)) !important;
  opacity: 1 !important;
  filter: none !important;
  font-weight: 600 !important;
}

html.light:has(.crypto-all-coins-page) .all-coins-terminal-chg.text-\[var\(--zs-red\)\],
html.light:has(.crypto-all-coins-page) .all-coins-terminal-range span:last-child,
html.light:has(.crypto-all-coins-page) .all-coins-terminal-card-pct.is-down,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-chg.text-\[var\(--zs-red\)\],
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-range span:last-child,
[data-zs-crypto-root][data-zs-theme='light']:has(.crypto-all-coins-page)
  .all-coins-terminal-card-pct.is-down,
.crypto-all-coins-page .all-coins-terminal-chg.text-\[var\(--zs-red\)\],
.crypto-all-coins-page .all-coins-terminal-range span:last-child,
.crypto-all-coins-page .all-coins-terminal-card-pct.is-down {
  color: var(--zs-red) !important;
  opacity: 1 !important;
  filter: none !important;
  font-weight: 600 !important;
}

.crypto-all-coins-page .all-coins-terminal-chg,
.crypto-all-coins-page .all-coins-terminal-range,
.crypto-all-coins-page .all-coins-terminal-range span,
.crypto-all-coins-page .all-coins-terminal-card-pct {
  opacity: 1 !important;
}

.crypto-all-coins-page .all-coins-terminal-spark,
.crypto-all-coins-page .all-coins-terminal-spark svg,
.crypto-all-coins-page .all-coins-terminal-spark polyline {
  opacity: 1 !important;
  filter: none !important;
}

.crypto-all-coins-page .all-coins-terminal-spark polyline {
  stroke-opacity: 1 !important;
}

.crypto-all-coins-page .all-coins-terminal-fav {
  color: var(--zs-text-muted, #64748b);
}

.crypto-all-coins-page .all-coins-terminal-fav.is-on {
  color: var(--zs-green-primary, #a3ff12);
}

html.light .crypto-all-coins-page .all-coins-terminal-fav.is-on,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .all-coins-terminal-fav.is-on {
  color: var(--zs-light-text-strong, #111827) !important;
}

/**
 * Sectors view — typography + market color roots.
 * Loaded from the hub client module so it wins over PageTitleCluster.css.
 */

.crypto-all-coins-page.crypto-discovery-hub--sectors-view {
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .zs-ptc__eyebrow {
  font-size: 13px;
  font-weight: 500;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .zs-ptc__title {
  font-size: clamp(42px, 3.1vw, 46px) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-chip {
  font-size: 13px;
  font-weight: 500;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-chip.is-active {
  font-weight: 600;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-timestamp {
  font-size: 12px;
  font-weight: 400;
}

/* Title cluster padding — approved; do not retune H1 metrics. */
.crypto-all-coins-page.crypto-discovery-hub--sectors-view .zs-ptc-shell {
  padding-block: 8px 8px;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .zs-ptc {
  padding-block: 8px 8px;
}

/* ── Analytical workspace (below title only) ───────────────────────── */

.crypto-all-coins-page.crypto-discovery-hub--sectors-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .crypto-all-coins-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: calc(100dvh - var(--zs-header-height, 72px));
  height: calc(100dvh - var(--zs-header-height, 72px));
  padding-bottom: 0 !important;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .crypto-discovery-block--sectors {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}

.crypto-discovery-hub--sectors-view .csd-workspace {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
}

.crypto-discovery-hub--sectors-view .csd-shell,
.crypto-discovery-hub--sectors-view .csd-overview-zone {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}

html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-dashboard,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view
  .csd-dashboard {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  padding-top: 12px !important;
  padding-bottom: 16px !important;
  padding-inline: 0 !important;
}

.crypto-discovery-hub--sectors-view .csd-chip-bar,
.crypto-discovery-hub--sectors-view .csd-shell,
.crypto-discovery-hub--sectors-view .csd-overview-zone,
.crypto-discovery-hub--sectors-view .csd-summary-band,
.crypto-discovery-hub--sectors-view .csd-analytics-workspace,
.crypto-discovery-hub--sectors-view .csd-kpi-strip {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Filter bar — compact workspace nav, chips unchanged */
.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-chip-bar {
  display: flex;
  justify-content: flex-start !important;
  margin: 0 0 20px;
  min-height: 40px;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-chip-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
  width: 100%;
}

.crypto-discovery-hub--sectors-view .csd-chip {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

/* Sector summary band — one 4-cell market header */
.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-summary-band,
.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0 !important;
  width: 100%;
  min-height: 68px;
  height: 68px;
  padding: 0;
  margin: 0 0 16px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--zs-light-surface-soft, #f4f6f2) !important;
  border: 1px solid var(--zs-light-border, #e5e7eb) !important;
  border-radius: var(--zs-radius-md, 10px);
  box-shadow: none !important;
}

.crypto-discovery-hub--sectors-view .csd-overview-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: 100%;
  padding: 0 16px;
}

.crypto-discovery-hub--sectors-view .csd-overview-timestamp {
  margin-top: 0;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-kpi {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto !important;
  min-width: 0;
  height: 100%;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-inline-start: 1px solid var(--zs-light-border, #e5e7eb) !important;
}

.crypto-discovery-hub--sectors-view .csd-overview-kpi-label {
  margin: 0;
  white-space: nowrap;
}

.crypto-discovery-hub--sectors-view .csd-overview-kpi-value {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Analytics workspace — chart 78 / trending 22, shared surface */
.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-analytics-workspace,
.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  flex: 1 1 0;
  min-height: 280px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--zs-light-surface, #ffffff);
  border: 1px solid var(--zs-light-border, #e5e7eb);
  border-radius: var(--zs-radius-md, 10px);
}

@media (min-width: 1024px) {
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-analytics-workspace,
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-body {
    grid-template-columns: minmax(0, 78fr) minmax(220px, 22fr);
    direction: ltr;
    align-items: stretch;
  }

  .crypto-discovery-hub--sectors-view .csd-analytics-workspace > .csd-chart-wrap,
  .crypto-discovery-hub--sectors-view .csd-overview-body > .csd-chart-wrap,
  .crypto-discovery-hub--sectors-view .csd-analytics-workspace > .csd-traded-rail,
  .crypto-discovery-hub--sectors-view .csd-overview-body > .csd-traded-rail {
    direction: rtl;
    height: 100%;
    min-height: 0;
  }
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-chart-wrap {
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 16px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.crypto-discovery-hub--sectors-view .csd-chart-interactive,
.crypto-discovery-hub--sectors-view .csd-chart-svg {
  width: 100%;
  height: 100%;
}

.crypto-discovery-hub--sectors-view .csd-traded-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-inline-start: 1px solid var(--zs-light-border, #e5e7eb);
}

.crypto-discovery-hub--sectors-view .csd-traded-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
}

.crypto-discovery-hub--sectors-view .csd-traded-title {
  margin: 0;
  padding: 16px 16px 12px;
}

.crypto-discovery-hub--sectors-view .csd-traded-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.crypto-discovery-hub--sectors-view .csd-traded-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  border-top: 1px solid var(--zs-light-border, #e5e7eb);
}

.crypto-discovery-hub--sectors-view .csd-traded-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.crypto-discovery-hub--sectors-view .csd-traded-logo {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
}

.crypto-discovery-hub--sectors-view .csd-traded-price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: end;
}

.crypto-discovery-hub--sectors-view .csd-traded-chg {
  white-space: nowrap;
  text-align: end;
}

.crypto-discovery-hub--sectors-view .csd-traded-view-all {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--zs-light-border, #e5e7eb);
}

/* KPI strip — one terminal surface, five cells */
.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 !important;
  width: 100%;
  min-height: 76px;
  margin: 16px 0 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: var(--zs-radius-md, 10px);
  background: var(--zs-light-surface-soft, #f4f6f2) !important;
  border: 1px solid var(--zs-light-border, #e5e7eb) !important;
  box-shadow: none !important;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-cell {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  min-height: 76px !important;
  min-width: 0;
  padding: 12px 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-inline-start: 1px solid var(--zs-light-border, #e5e7eb) !important;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-cell:first-child {
  border-inline-start: 0 !important;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-icon,
html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-icon {
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: transparent !important;
  border-radius: 0;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-label,
html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  color: var(--zs-text-secondary, var(--zs-light-secondary, #475569)) !important;
}

.crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-value {
  display: block;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-chart-wrap,
html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-traded-card,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view
  .csd-chart-wrap,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view
  .csd-traded-card {
  background: transparent !important;
  box-shadow: none !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-cell,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view
  .csd-kpi-cell {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-inline-end: 0 !important;
  border-inline-start: 1px solid var(--zs-light-border, #e5e7eb) !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-cell:first-child,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view
  .csd-kpi-cell:first-child {
  border-inline-start: 0 !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-analytics-workspace,
html.light .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-kpi-strip,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view
  .csd-analytics-workspace,
[data-zs-crypto-root][data-zs-theme='light']
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view
  .csd-kpi-strip {
  background: var(--zs-light-surface-soft, #f4f6f2) !important;
  border-color: var(--zs-light-border, #e5e7eb);
}

@media (max-width: 1023px) {
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view {
    min-height: 0;
  }

  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .crypto-all-coins-wrapper {
    min-height: 0;
    height: auto;
  }

  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-body,
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-analytics-workspace {
    flex: 0 1 auto;
  }

  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-chart-wrap {
    height: clamp(280px, 36vh, 380px);
  }

  .crypto-discovery-hub--sectors-view .csd-traded-rail {
    border-inline-start: 0;
    border-top: 1px solid var(--zs-light-border, #e5e7eb);
  }

  .crypto-discovery-hub--sectors-view .csd-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crypto-discovery-hub--sectors-view .csd-kpi-cell:nth-child(2n + 1) {
    border-inline-start: 0 !important;
  }

  .crypto-discovery-hub--sectors-view .csd-kpi-cell:nth-child(n + 3) {
    border-top: 1px solid var(--zs-light-border, #e5e7eb) !important;
  }
}

@media (max-width: 767px) {
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-summary-band,
  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-header {
    grid-template-columns: 1fr 1fr;
    height: auto;
    min-height: 0;
  }

  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-heading {
    grid-column: 1 / -1;
    padding-block: 12px;
    border-bottom: 1px solid var(--zs-light-border, #e5e7eb);
  }

  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-overview-kpi {
    min-height: 56px;
  }

  .crypto-all-coins-page.crypto-discovery-hub--sectors-view .csd-chip-row {
    flex-wrap: wrap;
  }

  .crypto-discovery-hub--sectors-view .csd-kpi-strip {
    grid-template-columns: 1fr;
  }

  .crypto-discovery-hub--sectors-view .csd-kpi-cell {
    border-inline-start: 0 !important;
  }

  .crypto-discovery-hub--sectors-view .csd-kpi-cell + .csd-kpi-cell {
    border-top: 1px solid var(--zs-light-border, #e5e7eb) !important;
  }

  .crypto-discovery-hub--sectors-view .csd-overview-kpi {
    padding-inline: 16px;
  }
}

/**
 * New markets tab — compact discovery workspace below the protected page title.
 * Scoped to .ncd-page. Does not touch PageTitleCluster.
 */

.crypto-all-coins-page .ncd-page,
html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-page {
  padding-inline: 0;
  padding-bottom: 24px;
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

.crypto-all-coins-page .ncd-page > * {
  width: 100%;
}

.crypto-all-coins-page .ncd-page > .cdh-section-switcher {
  width: 100%;
  min-width: 0;
  display: flex !important;
}

/* Intro: quiet section heading, not a second hero */
html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-header,
.crypto-all-coins-page .ncd-header {
  margin: 0 0 16px !important;
  padding: 0 !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-page .ncd-title,
.crypto-all-coins-page .ncd-page .ncd-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-subtitle,
html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-disclosure,
.crypto-all-coins-page .ncd-subtitle,
.crypto-all-coins-page .ncd-disclosure {
  max-width: none;
  margin-top: 6px !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

.crypto-all-coins-page .ncd-disclosure {
  margin-top: 4px !important;
}

/* Terminal summary strip — one surface, 5 equal cells */
html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi-strip,
.crypto-all-coins-page .ncd-kpi-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: var(--zs-light-surface, #ffffff) !important;
  border: 1px solid var(--zs-light-border, #e5e7eb) !important;
  border-radius: var(--zs-radius-md, 10px) !important;
  box-shadow: none !important;
  overflow: hidden;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi,
.crypto-all-coins-page .ncd-kpi {
  min-height: 0 !important;
  padding: 10px 12px !important;
  background: transparent !important;
  border: 0 !important;
  border-inline-start: 1px solid var(--zs-light-border, #e5e7eb) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi:first-child,
.crypto-all-coins-page .ncd-kpi:first-child {
  border-inline-start: 0 !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi-label,
.crypto-all-coins-page .ncd-kpi-label {
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.3;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi-value,
.crypto-all-coins-page .ncd-kpi-value {
  margin: 4px 0 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  font-variant-numeric: tabular-nums;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi-hint,
.crypto-all-coins-page .ncd-kpi-hint {
  margin-top: 2px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

.crypto-all-coins-page .ncd-kpi--skel .ncd-kpi-label,
.crypto-all-coins-page .ncd-kpi--skel .ncd-kpi-value {
  display: block;
  border-radius: 4px;
  background: var(--zs-border-subtle, rgba(255, 255, 255, 0.07));
}

html.light .crypto-all-coins-page .ncd-kpi--skel .ncd-kpi-label,
html.light .crypto-all-coins-page .ncd-kpi--skel .ncd-kpi-value,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .ncd-kpi--skel .ncd-kpi-label,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .ncd-kpi--skel .ncd-kpi-value {
  background: #eef2f0;
}

.crypto-all-coins-page .ncd-kpi--skel .ncd-kpi-label {
  width: 64%;
  height: 10px;
}

.crypto-all-coins-page .ncd-kpi--skel .ncd-kpi-value {
  width: 48%;
  height: 16px;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi-value.is-down,
.crypto-all-coins-page .ncd-kpi-value.is-down {
  color: var(--zs-red, #ef4444) !important;
}

/* Featured area: same edges as strip, no nested chrome */
html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-featured,
.crypto-all-coins-page .ncd-featured {
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.crypto-all-coins-page .ncd-section-header {
  margin-bottom: 16px !important;
}

.crypto-all-coins-page .ncd-section-title {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.crypto-all-coins-page .ncd-coins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100%;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-card,
.crypto-all-coins-page .ncd-coin-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow: hidden;
  padding: 14px 16px !important;
  text-align: start;
  background: var(--zs-light-surface, #ffffff) !important;
  border: 1px solid var(--zs-light-border, #e5e7eb) !important;
  border-radius: var(--zs-radius-md, 10px) !important;
  box-shadow: none !important;
  transform: none !important;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-card:hover,
.crypto-all-coins-page .ncd-coin-card:hover {
  transform: none !important;
  box-shadow: none !important;
  background: var(--zs-light-surface, #ffffff) !important;
  border-color: var(--zs-light-border, #e5e7eb) !important;
}

.crypto-all-coins-page .ncd-coin-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  text-align: start;
}

.crypto-all-coins-page .ncd-coin-id {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  flex: 1;
  gap: 0;
}

.crypto-all-coins-page .ncd-coin-card .new-token-logo--carousel {
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex: 0 0 28px;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-sym,
.crypto-all-coins-page .ncd-coin-sym {
  display: block;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.25;
  text-align: start;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-name,
.crypto-all-coins-page .ncd-coin-name {
  display: block;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.3;
  text-align: start;
}

.crypto-all-coins-page .ncd-coin-primary {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-price,
.crypto-all-coins-page .ncd-coin-price {
  margin: 0;
  min-width: 0;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
  text-align: start;
}

.crypto-all-coins-page .ncd-coin-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--zs-light-border, #e5e7eb);
}

.crypto-all-coins-page .ncd-coin-stats .ncd-coin-meta-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  text-align: start;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-meta-label,
.crypto-all-coins-page .ncd-coin-meta-label {
  display: block;
  margin: 0 0 2px;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-meta-value,
.crypto-all-coins-page .ncd-coin-meta-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-change,
.crypto-all-coins-page .ncd-coin-change {
  display: block;
  margin: 0;
  flex: 0 0 auto;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
  text-align: end;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-coin-change.is-down,
.crypto-all-coins-page .ncd-coin-change.is-down {
  color: var(--zs-red, #ef4444) !important;
}

.crypto-all-coins-page .ncd-skel-logo,
.crypto-all-coins-page .ncd-skel-line,
.crypto-all-coins-page .ncd-skel-stat {
  display: block;
  border-radius: 4px;
  background: var(--zs-border-subtle, rgba(255, 255, 255, 0.07));
}

html.light .crypto-all-coins-page .ncd-skel-logo,
html.light .crypto-all-coins-page .ncd-skel-line,
html.light .crypto-all-coins-page .ncd-skel-stat,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .ncd-skel-logo,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .ncd-skel-line,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .ncd-skel-stat {
  background: #eef2f0;
}

.crypto-all-coins-page .ncd-skel-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
}

.crypto-all-coins-page .ncd-skel-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.crypto-all-coins-page .ncd-skel-line--sym {
  width: 44%;
  height: 12px;
}

.crypto-all-coins-page .ncd-skel-line--name {
  width: 72%;
  height: 10px;
}

.crypto-all-coins-page .ncd-skel-line--price {
  width: 38%;
  height: 16px;
}

.crypto-all-coins-page .ncd-skel-line--chg {
  width: 22%;
  height: 12px;
}

.crypto-all-coins-page .ncd-skel-stat {
  height: 28px;
}

html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-page-empty,
.crypto-all-coins-page .ncd-page-empty {
  min-height: 0;
  margin: 0 0 16px;
  padding: 20px 16px;
}

.crypto-all-coins-page .ncd-show-more-wrap {
  margin-top: 16px;
}

.crypto-all-coins-page .ncd-insights,
.crypto-all-coins-page .ncd-table-section {
  margin-bottom: 16px;
}

@media (max-width: 1099px) {
  .crypto-all-coins-page .ncd-coins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi-strip,
  .crypto-all-coins-page .ncd-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi:nth-child(3n + 1),
  .crypto-all-coins-page .ncd-kpi:nth-child(3n + 1) {
    border-inline-start: 0 !important;
  }
}

@media (max-width: 699px) {
  html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi-strip,
  .crypto-all-coins-page .ncd-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.light .crypto-all-coins-page.crypto-discovery-hub .ncd-kpi:nth-child(odd),
  .crypto-all-coins-page .ncd-kpi:nth-child(odd) {
    border-inline-start: 0 !important;
  }

  .crypto-all-coins-page .ncd-coins-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.crypto-all-coins-page .ncd-page .cdh-section-switcher {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px !important;
  width: 100%;
  margin: 0 0 16px !important;
  padding: 0 !important;
  min-height: 36px;
  overflow-x: auto;
  overflow-y: hidden;
  position: static;
}

.crypto-all-coins-page .ncd-page button.cdh-section-switcher-tab[type='button'] {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: max-content !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 1px solid var(--zs-border-soft, var(--zs-light-border, #e5e7eb)) !important;
  border-radius: 999px !important;
  background: var(--zs-surface-2, var(--zs-light-surface, #ffffff)) !important;
  color: var(--zs-text-primary, var(--zs-light-ink, #0f172a)) !important;
  font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1;
  white-space: nowrap !important;
  box-shadow: none !important;
  position: static;
  transform: none !important;
}

html.light .crypto-all-coins-page .ncd-page button.cdh-section-switcher-tab[type='button'],
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .ncd-page button.cdh-section-switcher-tab[type='button'] {
  border-color: var(--zs-light-border, #e5e7eb) !important;
  background: var(--zs-light-surface, #ffffff) !important;
  color: var(--zs-light-ink, #0f172a) !important;
}

.crypto-all-coins-page .ncd-page button.cdh-section-switcher-tab[type='button'].is-active {
  font-weight: 600 !important;
}

html.light .crypto-all-coins-page .ncd-page button.cdh-section-switcher-tab[type='button'].is-active,
[data-zs-crypto-root][data-zs-theme='light'] .crypto-all-coins-page .ncd-page button.cdh-section-switcher-tab[type='button'].is-active {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

