/* ================================================================
   DXED CRYPTO V2 + feature release console.

   Extends the cx-* Crypto design system (css/crypto.css) and the global
   tokens — same graphite identity, no new palette. Two prefixes:
     cx2-*  the V2 experience surfaces
     ftr-*  the admin feature release console
   ================================================================ */

/* ── Icons ── */
.dx-icon { vertical-align: -3px; flex: none; }
.dx-icon-spin { animation: dx-spin 1.1s linear infinite; }
@keyframes dx-spin { to { transform: rotate(360deg); } }

/* ── Test data + classic banners ── */
.cx2-testbanner {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 9px 12px;
  background: color-mix(in srgb, var(--accent-orange, #bd8a57) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-orange, #bd8a57) 45%, transparent);
  border-radius: 10px; font-size: 12.5px; color: var(--text-primary, #edeef1);
}
.cx2-testtag {
  display: inline-block; padding: 1px 6px; margin-left: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent-orange, #bd8a57);
  border: 1px solid currentColor; border-radius: 5px; vertical-align: 2px;
}
.cx2-navbadge {
  display: inline-block; margin-left: 8px; padding: 1px 6px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--accent-light, #c3c6cf);
  border: 1px solid var(--border-strong, #2a2c33); border-radius: 5px;
}

/* ── Market ticker strip ── */
.cx2-tickerstrip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px;
  scrollbar-width: thin;
}
.cx2-ticker {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 11px; border: 1px solid var(--border, #22242b);
  background: var(--bg-card, #15161c); border-radius: 10px;
  font-size: 12.5px; color: var(--text-primary); cursor: pointer;
  transition: border-color var(--transition, .18s);
}
.cx2-ticker:hover { border-color: var(--border-strong, #33363f); }
.cx2-ticker-name { font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx2-ticker-price { color: var(--text-secondary, #969aa6); font-variant-numeric: tabular-nums; }
.cx2-pct { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; font-size: 12px; }
.cx2-pct[data-dir="up"] { color: var(--accent-green, #4f9e6a); }
.cx2-pct[data-dir="down"] { color: var(--accent-red, #cf5a5e); }
.cx2-pct[data-dir="flat"] { color: var(--text-muted, #5c606b); }

/* ── Pulse ── */
.cx2-evicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--bg-elevated, #1b1d24); color: var(--text-secondary);
  border: 1px solid var(--border, #22242b);
}
.cx2-evicon[data-tone="warn"] { color: var(--accent-orange, #bd8a57); border-color: color-mix(in srgb, var(--accent-orange, #bd8a57) 40%, transparent); }
.cx2-evicon[data-tone="bad"] { color: var(--accent-red, #cf5a5e); border-color: color-mix(in srgb, var(--accent-red, #cf5a5e) 40%, transparent); }
.cx2-evicon[data-tone="ok"] { color: var(--accent-green, #4f9e6a); }
.cx2-freshdot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green, #4f9e6a); margin-left: 5px;
  animation: cx2-pop .5s ease;
}
@keyframes cx2-pop { from { transform: scale(0); } to { transform: scale(1); } }
.cx2-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--accent-green, #4f9e6a);
  padding: 5px 10px; border: 1px solid color-mix(in srgb, var(--accent-green, #4f9e6a) 35%, transparent);
  border-radius: 999px;
}

/* ================================================================
   mkt-* — the market discovery board. Designed to be scanned fast
   and enjoyed: token art, tier-toned rings, honest micro-trends.
   ================================================================ */
.mkt-hero {
  position: relative; overflow: hidden; margin: 2px 0 12px;
  padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-card, #15161c), var(--bg-elevated, #1b1d24));
  border: 1px solid var(--border-strong, #2a2c33);
}
.mkt-hero-glow {
  position: absolute; inset: -40% -10% auto; height: 130%; pointer-events: none;
  background: radial-gradient(60% 80% at 80% 0%, color-mix(in srgb, var(--accent-light, #c3c6cf) 9%, transparent), transparent 70%);
}
.mkt-hero[data-tone="up"] .mkt-hero-glow { background: radial-gradient(60% 80% at 80% 0%, color-mix(in srgb, var(--accent-green, #4f9e6a) 14%, transparent), transparent 70%); }
.mkt-hero[data-tone="down"] .mkt-hero-glow { background: radial-gradient(60% 80% at 80% 0%, color-mix(in srgb, var(--accent-red, #cf5a5e) 12%, transparent), transparent 70%); }
.mkt-hero-top { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mkt-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
  color: var(--accent-green, #4f9e6a);
}
.mkt-live .dx-icon { animation: mkt-beat 2.4s ease infinite; }
@keyframes mkt-beat { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.mkt-cond { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.mkt-hero-stats { position: relative; display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 8px; }
.mkt-stat { font-size: 12px; color: var(--text-muted, #5c606b); }
.mkt-stat strong { color: var(--text-primary, #edeef1); font-variant-numeric: tabular-nums; }
.mkt-up { color: var(--accent-green, #4f9e6a) !important; }
.mkt-down { color: var(--accent-red, #cf5a5e) !important; }

/* Segmented cohort tabs */
.mkt-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 4px; margin-bottom: 10px;
  background: var(--bg-elevated, #1b1d24); border: 1px solid var(--border, #22242b);
  border-radius: 12px; width: fit-content; max-width: 100%;
}
.mkt-tabs::-webkit-scrollbar { display: none; }
.mkt-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 13px; font-size: 12.5px; font-weight: 650; cursor: pointer;
  color: var(--text-muted, #5c606b); background: none; border: 0; border-radius: 9px;
  transition: color .15s, background .15s;
}
.mkt-tab:hover { color: var(--text-primary, #edeef1); }
.mkt-tab[aria-selected="true"] {
  color: var(--text-primary, #edeef1);
  background: var(--bg-card, #15161c);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.mkt-tab-n {
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px;
  background: var(--bg-input, #101116); color: var(--text-muted, #5c606b);
  font-variant-numeric: tabular-nums;
}
.mkt-tab[aria-selected="true"] .mkt-tab-n { color: var(--accent-light, #c3c6cf); }

/* Asset rows */
.mkt-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; margin: 0 0 6px; cursor: pointer; color: inherit; text-decoration: none;
  background: var(--bg-card, #15161c); border: 1px solid var(--border, #22242b);
  border-radius: 13px;
  transition: transform .16s var(--ease, ease), border-color .16s, box-shadow .16s;
}
.mkt-row:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong, #33363f);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .30);
}
.mkt-ava {
  flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: var(--text-secondary, #969aa6);
  background: var(--bg-elevated, #1b1d24);
  border: 2px solid var(--border-strong, #2a2c33);
}
.mkt-ava[data-tone="ok"] { border-color: color-mix(in srgb, var(--accent-green, #4f9e6a) 55%, transparent); }
.mkt-ava[data-tone="warn"] { border-color: color-mix(in srgb, var(--accent-orange, #bd8a57) 55%, transparent); }
.mkt-ava[data-tone="bad"] { border-color: color-mix(in srgb, var(--accent-red, #cf5a5e) 55%, transparent); }
.mkt-ava img { width: 100%; height: 100%; object-fit: cover; }
.mkt-main { min-width: 0; flex: 1; display: grid; gap: 3px; }
.mkt-name { display: flex; align-items: center; gap: 7px; min-width: 0; flex-wrap: wrap; }
.mkt-name strong { font-size: 14.5px; letter-spacing: .01em; }
.mkt-fullname {
  font-size: 12px; color: var(--text-muted, #5c606b);
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mkt-dxed {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .07em; padding: 1px 6px;
  color: var(--accent-green, #4f9e6a); border: 1px solid currentColor; border-radius: 5px;
}
.mkt-meta { font-size: 11.5px; color: var(--text-muted, #5c606b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-trend { flex: none; display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; margin: 0 2px; }
.mkt-bar { width: 4px; border-radius: 2px; background: var(--text-muted, #5c606b); opacity: .8; }
.mkt-bar[data-dir="up"] { background: var(--accent-green, #4f9e6a); }
.mkt-bar[data-dir="down"] { background: var(--accent-red, #cf5a5e); }
.mkt-price { flex: none; display: grid; justify-items: end; gap: 2px; min-width: 84px; }
.mkt-price-usd { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mkt-chg {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: 999px;
}
.mkt-chg[data-dir="up"] { color: var(--accent-green, #4f9e6a); background: color-mix(in srgb, var(--accent-green, #4f9e6a) 12%, transparent); }
.mkt-chg[data-dir="down"] { color: var(--accent-red, #cf5a5e); background: color-mix(in srgb, var(--accent-red, #cf5a5e) 12%, transparent); }
.mkt-chg[data-dir="flat"] { color: var(--text-muted, #5c606b); background: var(--bg-elevated, #1b1d24); }

@media (prefers-reduced-motion: reduce) {
  .mkt-live .dx-icon { animation: none; }
  .mkt-row, .mkt-row:hover { transform: none; transition: none; }
}
@media (max-width: 560px) {
  .mkt-hero { padding: 13px 14px; }
  .mkt-cond { font-size: 16px; }
  .mkt-fullname { display: none; }
  .mkt-trend { display: none; }
  .mkt-price { min-width: 72px; }
  .mkt-row { padding: 10px 11px; gap: 10px; }
  .mkt-ava { width: 36px; height: 36px; font-size: 14px; }
}

/* ================================================================
   tok-* — DXED's own token page: hero, candles, facts, FOMO meter
   ================================================================ */
.tok-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.tok-back .dx-icon { transform: rotate(180deg); }

.tok-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  padding: 18px; margin-bottom: 10px; border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-card, #15161c), var(--bg-elevated, #1b1d24));
  border: 1px solid var(--border-strong, #2a2c33);
}
.tok-hero-glow {
  position: absolute; inset: -40% -10% auto; height: 140%; pointer-events: none;
  background: radial-gradient(55% 80% at 15% 0%, color-mix(in srgb, var(--accent-light, #c3c6cf) 8%, transparent), transparent 70%);
}
.tok-hero[data-tone="ok"] .tok-hero-glow { background: radial-gradient(55% 80% at 15% 0%, color-mix(in srgb, var(--accent-green, #4f9e6a) 14%, transparent), transparent 70%); }
.tok-hero[data-tone="warn"] .tok-hero-glow { background: radial-gradient(55% 80% at 15% 0%, color-mix(in srgb, var(--accent-orange, #bd8a57) 12%, transparent), transparent 70%); }
.tok-hero[data-tone="bad"] .tok-hero-glow { background: radial-gradient(55% 80% at 15% 0%, color-mix(in srgb, var(--accent-red, #cf5a5e) 12%, transparent), transparent 70%); }
.tok-hero-ava { width: 56px; height: 56px; font-size: 22px; position: relative; }
.tok-hero-id { position: relative; min-width: 0; flex: 1; display: grid; gap: 3px; }
.tok-hero-sym { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tok-hero-name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted, #5c606b); min-width: 0; }
.tok-hero-net {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 1px 7px;
  border: 1px solid var(--border-strong, #2a2c33); border-radius: 999px; color: var(--text-secondary, #969aa6);
}
.tok-hero-price { position: relative; flex: none; display: grid; justify-items: end; gap: 4px; }
.tok-hero-usd { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.tok-changes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tok-chwin {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  font-size: 12px; border-radius: 999px;
  background: var(--bg-elevated, #1b1d24); border: 1px solid var(--border, #22242b);
}
.tok-chwin > span:first-child { color: var(--text-muted, #5c606b); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; }

.tok-chart-card {
  padding: 14px; margin-bottom: 10px; border-radius: 16px;
  background: var(--bg-card, #15161c); border: 1px solid var(--border, #22242b);
}
.tok-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tok-chart-head strong { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary, #969aa6); }
.tok-tfs { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: var(--bg-elevated, #1b1d24); border: 1px solid var(--border, #22242b); }
.tok-tf {
  padding: 4px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: var(--text-muted, #5c606b); background: none; border: 0; border-radius: 7px;
}
.tok-tf:hover { color: var(--text-primary, #edeef1); }
.tok-tf[aria-selected="true"] { color: var(--text-primary, #edeef1); background: var(--bg-card, #15161c); box-shadow: 0 1px 5px rgba(0, 0, 0, .35); }
.tok-chart { display: block; width: 100%; height: auto; aspect-ratio: 760 / 300; }
.tok-tfnote {
  display: flex; gap: 6px; align-items: center; margin: 0 0 6px;
  font-size: 11.5px; color: var(--text-muted, #5c606b);
}
.tok-nochart .cx-btn { margin-left: 8px; }
.tok-gridline { stroke: var(--border, #22242b); stroke-width: 1; }
.tok-axis { fill: var(--text-muted, #5c606b); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.tok-candle[data-dir="up"] .tok-body { fill: var(--accent-green, #4f9e6a); }
.tok-candle[data-dir="down"] .tok-body { fill: var(--accent-red, #cf5a5e); }
.tok-candle[data-dir="up"] .tok-wick { stroke: var(--accent-green, #4f9e6a); }
.tok-candle[data-dir="down"] .tok-wick { stroke: var(--accent-red, #cf5a5e); }
.tok-wick { stroke-width: 1; }
.tok-candle .tok-vol { opacity: .38; }
.tok-candle[data-dir="up"] .tok-vol { fill: var(--accent-green, #4f9e6a); }
.tok-candle[data-dir="down"] .tok-vol { fill: var(--accent-red, #cf5a5e); }
.tok-candle:hover .tok-body, .tok-candle:hover .tok-vol { opacity: 1; filter: brightness(1.25); }
.tok-last { stroke-dasharray: 4 4; stroke-width: 1; opacity: .7; }
.tok-last[data-dir="up"] { stroke: var(--accent-green, #4f9e6a); }
.tok-last[data-dir="down"] { stroke: var(--accent-red, #cf5a5e); }
.tok-axis-last[data-dir="up"] { fill: var(--accent-green, #4f9e6a); font-weight: 700; }
.tok-axis-last[data-dir="down"] { fill: var(--accent-red, #cf5a5e); font-weight: 700; }
.tok-nochart {
  display: flex; gap: 7px; align-items: center; padding: 26px 14px; justify-content: center;
  font-size: 12.5px; color: var(--text-muted, #5c606b);
}

.tok-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: start; }
.tok-card {
  padding: 14px; border-radius: 16px;
  background: var(--bg-card, #15161c); border: 1px solid var(--border, #22242b);
}
.tok-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary, #969aa6); }
.tok-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.tok-stat { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg-elevated, #1b1d24); }
.tok-stat span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #5c606b); }
.tok-stat strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.tok-signals { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tok-signals-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #5c606b); margin-right: 2px; }

/* The FOMO meter */
.tok-vote {
  padding: 14px; border-radius: 16px;
  background: var(--bg-card, #15161c); border: 1px solid var(--border, #22242b);
}
.tok-vote-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tok-vote-head strong { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary, #969aa6); }
.tok-vote-head span { font-size: 11.5px; color: var(--text-muted, #5c606b); }
.tok-vote-bar {
  position: relative; height: 14px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--accent-red, #cf5a5e) 22%, var(--bg-elevated, #1b1d24));
  border: 1px solid var(--border, #22242b);
}
.tok-vote-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-green, #4f9e6a) 70%, transparent), var(--accent-green, #4f9e6a));
  transition: width .5s var(--ease, ease);
}
.tok-vote-none { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 10.5px; color: var(--text-muted, #5c606b); }
.tok-vote-split { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tok-vote-split [data-dir="up"] { color: var(--accent-green, #4f9e6a); }
.tok-vote-split [data-dir="down"] { color: var(--accent-red, #cf5a5e); }
.tok-vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tok-vote-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 12px; font-size: 13px; font-weight: 800; letter-spacing: .05em; cursor: pointer;
  color: var(--text-secondary, #969aa6); background: var(--bg-elevated, #1b1d24);
  border: 1px solid var(--border-strong, #2a2c33); border-radius: 11px;
  transition: transform .14s var(--ease, ease), border-color .14s, color .14s;
}
.tok-vote-btn:hover { transform: translateY(-1px); color: var(--text-primary, #edeef1); }
.tok-vote-btn span { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bg-input, #101116); color: var(--text-muted, #5c606b); font-variant-numeric: tabular-nums; }
.tok-vote-btn[data-tone="up"][aria-pressed="true"] {
  color: var(--accent-green, #4f9e6a);
  border-color: color-mix(in srgb, var(--accent-green, #4f9e6a) 60%, transparent);
  background: color-mix(in srgb, var(--accent-green, #4f9e6a) 10%, var(--bg-elevated, #1b1d24));
}
.tok-vote-btn[data-tone="down"][aria-pressed="true"] {
  color: var(--accent-red, #cf5a5e);
  border-color: color-mix(in srgb, var(--accent-red, #cf5a5e) 60%, transparent);
  background: color-mix(in srgb, var(--accent-red, #cf5a5e) 10%, var(--bg-elevated, #1b1d24));
}
.tok-vote-note { margin: 10px 0 0; font-size: 11.5px; color: var(--text-muted, #5c606b); line-height: 1.45; }
.tok-projbtn { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .tok-vote-fill { transition: none; }
  .tok-vote-btn, .tok-vote-btn:hover { transform: none; transition: none; }
}
@media (max-width: 720px) {
  .tok-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tok-hero { padding: 14px; gap: 11px; }
  .tok-hero-ava { width: 46px; height: 46px; font-size: 18px; }
  .tok-hero-sym { font-size: 16px; }
  .tok-hero-usd { font-size: 19px; }
  .tok-stats { grid-template-columns: 1fr 1fr; gap: 6px 8px; }
  .tok-chart-card, .tok-card, .tok-vote { padding: 12px; }
}

/* ── Market structure signals ── */
.cx2-tier {
  display: inline-flex; align-items: center; padding: 2px 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid currentColor; vertical-align: 2px;
}
.cx2-tier-sm { padding: 1px 6px; font-size: 9.5px; }
.cx2-tier[data-tone="ok"] { color: var(--accent-green, #4f9e6a); }
.cx2-tier[data-tone="info"] { color: var(--accent-light, #c3c6cf); }
.cx2-tier[data-tone="warn"] { color: var(--accent-orange, #bd8a57); }
.cx2-tier[data-tone="bad"] { color: var(--accent-red, #cf5a5e); }
.cx2-sigdot {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px;
  font-size: 10.5px; border-radius: 999px; border: 1px solid var(--border, #22242b);
  color: var(--text-muted, #5c606b); margin-left: 4px;
}
.cx2-sigdot[data-state="caution"] { color: var(--accent-orange, #bd8a57); border-color: color-mix(in srgb, var(--accent-orange, #bd8a57) 45%, transparent); }
.cx2-sigdot[data-state="risk"] { color: var(--accent-red, #cf5a5e); border-color: color-mix(in srgb, var(--accent-red, #cf5a5e) 45%, transparent); }
.cx2-sigdot:empty { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: currentColor; border: 0; margin: 0; }
.cx2-signals { display: grid; gap: 6px; margin-top: 12px; }
.cx2-signal {
  display: grid; grid-template-columns: 14px 170px 1fr; gap: 10px; align-items: center;
  padding: 7px 10px; font-size: 12.5px;
  border: 1px solid var(--border, #22242b); border-radius: 8px; background: var(--bg-elevated, #1b1d24);
}
.cx2-signal[data-state="ok"] .cx2-sigdot:empty { color: var(--accent-green, #4f9e6a); }
.cx2-signal[data-state="caution"] .cx2-sigdot:empty { color: var(--accent-orange, #bd8a57); }
.cx2-signal[data-state="risk"] .cx2-sigdot:empty { color: var(--accent-red, #cf5a5e); }
.cx2-signal-label { font-weight: 600; color: var(--text-primary); }
.cx2-signal-detail { color: var(--text-secondary); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .cx2-signal { grid-template-columns: 14px 1fr; } .cx2-signal-detail { grid-column: 2; } }

/* ── Momentum ── */
.cx2-score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 6px; border-radius: 12px;
  font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--bg-elevated, #1b1d24); border: 1px solid var(--border-strong, #2a2c33);
  color: var(--accent-light, #c3c6cf);
}
.cx2-score[data-label="Surging"] { color: var(--accent-green, #4f9e6a); border-color: color-mix(in srgb, var(--accent-green, #4f9e6a) 45%, transparent); }
.cx2-score[data-label="Building"] { color: var(--accent-gold, #b3993f); }
.cx2-momentum-detail { display: flex; gap: 16px; align-items: flex-start; }
.cx2-momentum-comp { flex: 1; display: grid; gap: 6px; min-width: 0; }
.cx2-comp { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-secondary); }

/* ── Since / notes / misc ── */
.cx2-sincecard { display: grid; gap: 10px; }
.cx2-since-lead { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.cx2-note {
  display: flex; align-items: flex-start; gap: 7px; margin: 10px 0;
  padding: 9px 11px; font-size: 12.5px; color: var(--text-secondary);
  background: var(--bg-elevated, #1b1d24); border: 1px solid var(--border, #22242b); border-radius: 9px;
}
.cx2-note[data-tone="warn"] { color: var(--accent-orange, #bd8a57); border-color: color-mix(in srgb, var(--accent-orange, #bd8a57) 40%, transparent); }
.cx2-note[data-tone="ok"] { color: var(--accent-green, #4f9e6a); }
.cx2-note[data-tone="bad"] { color: var(--accent-red, #cf5a5e); border-color: color-mix(in srgb, var(--accent-red, #cf5a5e) 40%, transparent); }
.cx2-muted { color: var(--text-muted, #5c606b); font-size: 13px; }
.cx2-degraded { color: var(--accent-orange, #bd8a57); font-size: 12.5px; display: inline-flex; gap: 5px; align-items: center; }
.cx2-h3 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.cx2-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.cx2-challenge {
  white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; padding: 12px; background: var(--bg-elevated, #1b1d24);
  border: 1px solid var(--border, #22242b); border-radius: 9px; color: var(--text-secondary);
}
.cx2-tone-alert .cx-summary-value { color: var(--accent-red, #cf5a5e); }

/* ── Treasury review table ── */
.cx2-review { display: grid; gap: 0; margin: 0 0 10px; border: 1px solid var(--border, #22242b); border-radius: 10px; overflow: hidden; }
.cx2-review > div { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border, #22242b); }
.cx2-review > div:last-child { border-bottom: 0; }
.cx2-review dt { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; align-self: center; }
.cx2-review dd { margin: 0; font-size: 13.5px; min-width: 0; }
@media (max-width: 560px) { .cx2-review > div { grid-template-columns: 1fr; gap: 2px; } }

/* ================================================================
   ftr-* — the admin feature release console
   ================================================================ */
.ftr-wrap { display: grid; gap: 16px; }
.ftr-card { border: 1px solid var(--border-strong, #2a2c33); }
.ftr-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ftr-desc { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.ftr-blurb { margin: 10px 0; font-size: 13px; color: var(--text-secondary); }
.ftr-state {
  display: inline-flex; align-items: center; padding: 3px 10px; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  border-radius: 999px; border: 1px solid currentColor;
}
.ftr-state[data-tone="ok"] { color: var(--accent-green, #4f9e6a); }
.ftr-state[data-tone="warn"] { color: var(--accent-orange, #bd8a57); }
.ftr-state[data-tone="bad"] { color: var(--accent-red, #cf5a5e); }
.ftr-state[data-tone="idle"] { color: var(--text-muted, #5c606b); }
.ftr-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 14px; font-size: 12.5px; color: var(--text-muted); }
.ftr-facts span { display: inline-flex; align-items: center; gap: 6px; }
.ftr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ftr-actions .btn-primary, .ftr-actions .btn-secondary { display: inline-flex; align-items: center; gap: 6px; }
.ftr-danger { color: var(--accent-red, #cf5a5e); }
.ftr-muted { color: var(--text-muted); font-size: 12.5px; }
.ftr-critical { font-size: 10px; color: var(--accent-red, #cf5a5e); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; letter-spacing: .05em; }

.ftr-healthbox { margin-top: 8px; }
.ftr-healthsum { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.ftr-healthlist { display: grid; gap: 4px; }
.ftr-healthrow, .ftr-provrow {
  display: grid; grid-template-columns: 92px 190px 1fr; gap: 10px; align-items: center;
  padding: 7px 10px; border: 1px solid var(--border, #22242b); border-radius: 8px;
  background: var(--bg-elevated, #1b1d24); font-size: 12.5px;
}
.ftr-provrow { grid-template-columns: 220px 92px 1fr; margin-bottom: 4px; }
.ftr-provname { font-weight: 600; color: var(--text-primary); }
.ftr-provmeta { color: var(--text-muted); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .ftr-healthrow, .ftr-provrow { grid-template-columns: 1fr; gap: 3px; } }

.ftr-audit { margin-top: 12px; }
.ftr-audit summary { cursor: pointer; font-size: 13px; color: var(--text-secondary); display: flex; gap: 6px; align-items: center; }
.ftr-auditlist { display: grid; gap: 6px; margin-top: 10px; }
.ftr-auditrow {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  padding: 8px 11px; border: 1px solid var(--border, #22242b); border-radius: 8px;
  font-size: 12.5px; background: var(--bg-elevated, #1b1d24);
}
.ftr-auditwhen { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ftr-audittrans { display: inline-flex; align-items: center; gap: 6px; }
.ftr-auditby { color: var(--text-secondary); }
.ftr-auditnote { flex-basis: 100%; color: var(--text-muted); font-style: italic; }

/* Publish modal */
.ftr-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal, 2000);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .66); backdrop-filter: blur(3px); padding: 18px;
}
.ftr-modal {
  width: 100%; max-width: 640px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--bg-card, #15161c); border: 1px solid var(--border-strong, #2a2c33);
  border-radius: 14px; box-shadow: var(--shadow-lift, 0 18px 50px rgba(0,0,0,.5));
}
.ftr-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--border, #22242b);
}
.ftr-modal-head h2 { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.ftr-modal-x { padding: 6px 9px; }
.ftr-modal-body { padding: 16px 18px; overflow-y: auto; }
.ftr-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 18px; border-top: 1px solid var(--border, #22242b);
}
.ftr-review { display: grid; margin: 0 0 12px; border: 1px solid var(--border, #22242b); border-radius: 10px; overflow: hidden; }
.ftr-review > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border, #22242b); }
.ftr-review > div:last-child { border-bottom: 0; }
.ftr-review dt { color: var(--text-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; align-self: center; }
.ftr-review dd { margin: 0; font-size: 13.5px; }
.ftr-h3 { margin: 16px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.ftr-note {
  display: flex; gap: 7px; align-items: flex-start; margin: 10px 0;
  padding: 9px 11px; font-size: 12.5px; border-radius: 9px;
  background: var(--bg-elevated, #1b1d24); border: 1px solid var(--border, #22242b); color: var(--text-secondary);
}
.ftr-note[data-tone="ok"] { color: var(--accent-green, #4f9e6a); border-color: color-mix(in srgb, var(--accent-green, #4f9e6a) 40%, transparent); }
.ftr-note[data-tone="bad"] { color: var(--accent-red, #cf5a5e); border-color: color-mix(in srgb, var(--accent-red, #cf5a5e) 40%, transparent); }
.ftr-confirm-input {
  width: 100%; padding: 10px 12px; font-size: 14px; letter-spacing: .04em;
  background: var(--bg-input, #101116); color: var(--text-primary);
  border: 1px solid var(--border-strong, #2a2c33); border-radius: 9px;
}
.ftr-confirm-input:focus { outline: none; border-color: var(--accent-light, #c3c6cf); }
.ftr-err { color: var(--accent-red, #cf5a5e); font-size: 12.5px; }
.ftr-testrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ftr-testtoggle { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
