/* MRKT News Trader Pro prototype: the real app's tokens and kit pieces.
   Sources: src/features/news-trading-pro/tradeSkins.css (midrally block),
   heatMap/colors.ts (midrally theme, flat style), TraderTitle.tsx, UpNext.tsx,
   HeadlinePeek.tsx, heatMap/Tile.tsx, heatMap/BalanceBar.tsx, TileTag.tsx,
   news-flow/MarketShakes.tsx, news-flow/MoveCharts.tsx.
   Ground truth for the look: design/ref/real-trade-board.png (gold candles).
   Each page loads Figtree itself:
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap"> */

:root {
  color-scheme: dark;
  /* Page (Midnight Rally) */
  --t-bg-base: #000000;
  --t-panel-base: #000000;
  --t-ink: #f0f0f0;
  --t-ink-2: #a3a3a3;
  --t-ink-3: #808080;
  --t-ink-4: #5b5b5b;
  --t-fill: 255 255 255;
  --t-up: 74 222 128;
  --t-down: 248 113 113;
  --t-mixed: 253 224 71;
  --t-accent: 167 139 250;
  --t-accent-soft: 189 168 251;
  --mh-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.08);
  --line-3: rgba(255, 255, 255, 0.12);

  /* Heat (midrally, flat: one solid colour per box). Strongest stops. */
  --heat-down: rgb(200, 40, 44);
  --heat-down-2: rgb(143, 31, 34);
  --heat-down-3: rgb(67, 19, 20);
  --heat-up: rgb(14, 136, 63);
  --heat-up-2: rgb(14, 108, 52);
  --heat-up-3: rgb(12, 52, 28);
  --heat-zero: rgb(10, 10, 10);

  /* Candles: the default look on the reference (gold) */
  --candle-up: #e3b35a;
  --candle-down: #6e5a32;
  --chart-text: #808080;
  --chart-grid: #1d1d1d;

  /* Impact folders (ImpactFolder.tsx) */
  --impact-high: #ef3b2c;
  --impact-mid: #f7941d;
  --impact-low: #f5c518;
  --impact-none: #52525b;

  /* Radii */
  --r-chip: 5px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 999px;

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #000; }
body {
  background: var(--t-bg-base);
  color: var(--t-ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
.ntp { background: #000; color: var(--t-ink); font-family: var(--font); }
.tnum, .ntp-tnum { font-variant-numeric: tabular-nums; }
.ink { color: var(--t-ink); }
.ink-2 { color: var(--t-ink-2); }
.ink-3 { color: var(--t-ink-3); }
.ink-4 { color: var(--t-ink-4); }
.up { color: rgb(var(--t-up)); }
.down { color: rgb(var(--t-down)); }
.mixed { color: rgb(var(--t-mixed)); }
.accent { color: rgb(var(--t-accent-soft)); }
.panel { background: #000; border: 1px solid var(--line); }
.hair-b { border-bottom: 1px solid var(--line); }
.hair-t { border-top: 1px solid var(--line); }
.hair-r { border-right: 1px solid var(--line); }
.hair-l { border-left: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons (top bar and chart controls) ─────────────────────────── */
.ntp-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #000;
  color: var(--t-ink); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ntp-btn:hover { background: rgba(255,255,255,0.04); }
.ntp-btn svg { width: 16px; height: 16px; flex: none; }
.ntp-btn--primary { background: #fff; color: #000; border-color: #fff; }
.ntp-btn--primary:hover { background: #e9e9e9; }
.ntp-btn--accent { background: rgb(var(--t-accent)); color: #0b0b0e; border-color: transparent; }
.ntp-btn--sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: var(--r-md); }
.ntp-group { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: #000; }
.ntp-group > button, .ntp-group > span { height: 29px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--t-ink-2); white-space: nowrap; }
.ntp-group > .is-on { background: rgba(255,255,255,0.10); color: var(--t-ink); }
.ntp-group svg { width: 15px; height: 15px; }

/* ── Top bar (TraderTitle + TradeTopBar) ──────────────────────────── */
.ntp-top {
  display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: #000; min-width: 0;
}
.ntp-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.ntp-mark { width: 24px; height: 24px; flex: none; overflow: visible; }
.ntp-title h1 {
  margin: 0; font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap;
  background: linear-gradient(90deg, var(--t-ink), var(--t-ink) 55%, rgb(var(--t-accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ntp-pro {
  margin: 4px 0 0 8px; padding: 1px 8px; border-radius: 6px; border: 1px solid rgb(var(--t-accent) / 0.4);
  background: rgb(var(--t-accent) / 0.15); color: rgb(var(--t-accent-soft));
  font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.ntp-sub { margin: 0 0 0 12px; font-size: 14px; line-height: 20px; color: var(--t-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ntp-top__spacer { flex: 1 1 0; min-width: 0; }
.ntp-viewing {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 5px 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ntp-viewing__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t-ink-3); }
.ntp-viewing__back { height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: #fff; color: #000; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.ntp-clock { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.ntp-clock b { font-size: 32px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: #fafafa; }
.ntp-clock span { font-size: 12px; font-weight: 600; color: var(--t-ink-2); }
.ntp-ampm { margin-left: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.7; }

/* Live / delayed chip (prototype piece: the plan's live window) */
.ntp-live {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
  border: 1px solid rgb(var(--t-up) / 0.35); background: rgb(var(--t-up) / 0.10); color: rgb(var(--t-up));
}
.ntp-live__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgb(var(--t-up) / 0.7); animation: ntp-ping 1.8s ease-out infinite; }
.ntp-live__days { color: var(--t-ink-2); font-weight: 600; }
.ntp-live--delayed { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: var(--t-ink); }
.ntp-live--delayed .ntp-live__dot { background: #f59e0b; animation: none; box-shadow: none; }
.ntp-live--ending { border-color: rgba(245,158,11,0.45); background: rgba(245,158,11,0.10); color: #fbbf24; }
.ntp-live--ending .ntp-live__dot { animation: none; box-shadow: none; }
@keyframes ntp-ping { 0% { box-shadow: 0 0 0 0 rgb(var(--t-up) / 0.6); } 80%, 100% { box-shadow: 0 0 0 7px rgb(var(--t-up) / 0); } }

/* ── Market pills (Gold / S&P 500 / NASDAQ) ───────────────────────── */
.ntp-pills { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: #000; }
.ntp-pill { display: inline-flex; align-items: center; gap: 7px; height: 31px; padding: 0 11px 0 9px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--t-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ntp-pill.is-on { background: rgba(255,255,255,0.10); }
.ntp-pill__pct { font-size: 12px; font-weight: 700; }
.ntp-coin { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 7.5px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.ntp-coin--gold { background: radial-gradient(circle at 35% 30%, #fde68a, #d4a017 55%, #a16207); }
.ntp-coin--spx { background: #dc2626; }
.ntp-coin--ndx { background: #2563eb; }

/* ── Feed (Fresh Catalysts) ───────────────────────────────────────── */
.ntp-feed { background: #000; min-width: 0; }
.ntp-feed__head { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--t-ink); }
.ntp-feed__count { padding: 0 7px; height: 20px; border-radius: var(--r-pill); background: rgba(255,255,255,0.10); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; color: var(--t-ink); }
.ntp-row {
  position: relative; display: flex; gap: 8px; padding: 12px 20px 12px 8px; /* measured: words start at x=72 on the reference */
  border-bottom: 1px solid var(--line); border-top: 1px solid transparent;
}
.ntp-row--mid { padding-top: 10px; padding-bottom: 10px; }
.ntp-row--small, .ntp-row--quiet { padding-top: 10px; padding-bottom: 10px; }
.ntp-row:hover { background: rgba(255,255,255,0.025); }
.ntp-row.is-peeked { background: rgba(255,255,255,0.05); }
.ntp-row__rail { position: absolute; left: 0; top: 6px; bottom: 6px; border-radius: 0 999px 999px 0; }
.ntp-row__time { width: 56px; flex: none; text-align: right; margin-top: 2px; }
.ntp-row__clock { display: block; font-size: 12px; line-height: 20px; white-space: nowrap; color: var(--t-ink-2); }
/* NewsFlowPanel.tsx root: tracking-[-0.01em] [font-feature-settings:'tnum'] on the whole feed column */
.ntp-feed, .ntp-board__feed, .ntp-row, .ntp-feed__head, .ntp-flip { letter-spacing: -0.01em; font-feature-settings: 'tnum'; }
.ntp-row--big .ntp-row__clock.is-recent { color: var(--t-ink); }
.ntp-row__ago { display: block; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--t-ink-2); white-space: nowrap; }
.ntp-row__ago small { display: block; font-size: 10.5px; line-height: 12px; font-weight: 500; color: var(--t-ink-3); }
.ntp-row__src { display: flex; justify-content: center; margin-top: 4px; width: 26px; margin-left: auto; transform: translateX(3px); }
.ntp-src { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-size: 11px; line-height: 1; background: #1f1f1f; color: #d4d4d4; }
.ntp-src--flag { background: #111; font-size: 13px; }
.ntp-flag { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.ntp-flag svg { display: block; width: 100%; height: 100%; }
.ntp-src--initials { font-size: 5.5px; font-weight: 800; letter-spacing: -0.02em; background: #0e7490; color: #fff; }
.ntp-src svg { width: 11px; height: 11px; }
.ntp-row__body { min-width: 0; flex: 1 1 0; }
.ntp-row__words { margin-top: 2px; font-size: 14px; line-height: 20px; color: #fff; overflow-wrap: anywhere; }
.ntp-row--mid .ntp-row__words { color: var(--t-ink); }
.ntp-row--small .ntp-row__words, .ntp-row--quiet .ntp-row__words { color: var(--t-ink-2); }
.ntp-row--quiet .ntp-row__clock { color: var(--t-ink-2); }
.ntp-row--quiet { opacity: 0.78; }
.ntp-row__words b { font-weight: 700; color: #fff; }
.ntp-row__words .faint { color: var(--t-ink-2); }
.ntp-hl { margin: 0 -2px; padding: 0 2px; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ntp-hl--down { background: rgba(251, 113, 133, 0.25); }
.ntp-hl--up { background: rgba(52, 211, 153, 0.25); }
.ntp-row__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 7px; font-size: 12px; }
.ntp-row__chips .ntp-tag, .ntp-row__chips .ntp-chip, .ntp-row__chips .ntp-tag * { font-size: 12px; }
.ntp-row__extra { display: inline-flex; gap: 4px; align-items: baseline; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: 12px; line-height: 18px; color: var(--t-ink-2); font-variant-numeric: tabular-nums; margin-top: 6px; }
.ntp-row__extra b { color: #fff; font-weight: 700; }

/* Turn row (FeedFlipRow) */
.ntp-flip { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ntp-flip__time { width: 56px; flex: none; text-align: right; font-size: 12px; line-height: 20px; color: var(--t-ink-2); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; }
.ntp-flip__words { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.ntp-flip__words b { font-size: 13px; line-height: 17px; font-weight: 700; }
.ntp-flip__words span { font-size: 12px; line-height: 16px; color: var(--t-ink-2); }
.ntp-flip canvas { flex: none; }

/* Chips: story tag, tile tag, side tag, gold move tick */
.ntp-tag {
  display: inline-flex; align-items: center; gap: 4px; max-width: 260px; height: 20px; padding: 0 6px; border-radius: var(--r-md);
  font-size: 11px; line-height: 15px; font-weight: 500; color: var(--t-ink); background: rgba(255,255,255,0.08); white-space: nowrap;
}
.ntp-tag > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ntp-tag--filled { color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35); }
.ntp-tag__word { flex: none; font-weight: 400; color: rgba(255,255,255,0.85); }
.ntp-chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-chip);
  font-size: 11px; line-height: 1; font-weight: 600; color: #fff; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
}
.ntp-tick { font-variant-numeric: tabular-nums; min-height: 20px; padding: 2px 6px; line-height: 15px; }

/* ── Chart frame ──────────────────────────────────────────────────── */
.ntp-chartwrap { position: relative; background: #000; }
.ntp-chartwrap canvas { display: block; }
.ntp-chartbar { display: flex; align-items: center; gap: 8px; }
.ntp-rail { width: 42px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; color: var(--t-ink-2); }
.ntp-rail svg { width: 18px; height: 18px; }
.ntp-rail__plus { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgb(var(--t-accent) / 0.7); display: grid; place-items: center; color: rgb(var(--t-accent-soft)); background: rgb(var(--t-accent) / 0.12); }
.ntp-ind { position: absolute; left: 10px; top: 8px; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: rgba(0,0,0,0.75); font-size: 12.5px; font-weight: 600; color: var(--t-ink); }
.ntp-ind svg { width: 13px; height: 13px; color: var(--t-ink-2); }
.ntp-replaybar { display: flex; align-items: center; justify-content: center; gap: 22px; height: 38px; font-size: 14px; font-weight: 600; color: var(--t-ink-2); }
.ntp-grip { display: flex; justify-content: center; margin: 0 0 2px; }
.ntp-grip > span { width: 24px; height: 14px; border-radius: 999px; border: 1px solid var(--line-3); display: grid; place-items: center; color: var(--t-ink-2); font-size: 10px; line-height: 1; letter-spacing: 1px; }
.ntp-replaybar .dim { color: var(--t-ink-4); }
.ntp-replaybar svg { width: 15px; height: 15px; vertical-align: -2px; }

/* The 1-2-3 read on the chart (numbered story steps) */
.ntp-read {
  display: inline-flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 9px;
  background: rgba(0,0,0,0.78); border: 1px solid var(--line-2); backdrop-filter: blur(4px);
}
.ntp-read__row { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 18px; font-weight: 700; color: #fff; white-space: nowrap; }
.ntp-read__n { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 1.6px solid currentColor; flex: none; }
.ntp-read__ago { font-size: 12px; font-weight: 500; color: var(--t-ink-2); }

/* On-chart pills */
.ntp-chartpill { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(251,146,60,0.7); background: rgba(0,0,0,0.95); font-size: 12px; font-weight: 600; color: #f4f4f5; white-space: nowrap; transform: translateY(-50%); }
.ntp-chartpill .ink-2 { font-weight: 700; color: #fdba74; }
.ntp-chartpill svg { color: #d4d4d8; }
.ntp-marker { position: absolute; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px; border-radius: 4px; background: #0a0a0a; border: 1px solid var(--line-3); font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; transform: translate(-50%, -100%); }
.ntp-marker__ico { display: inline-flex; width: 13px; height: 13px; border-radius: 2px; background: #e5e7eb; color: #374151; }
.ntp-marker__ico svg { width: 13px; height: 13px; }

/* ── Up next + upcoming list (UpNext.tsx, TradeCalendar) ──────────── */
.ntp-upnext { position: relative; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ntp-upnext__top { display: flex; align-items: center; gap: 8px; }
.ntp-upnext__label { font-size: 13px; font-weight: 700; color: var(--t-ink); }
.ntp-count { margin-left: auto; padding: 2px 8px; border-radius: var(--r-pill); font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(255,255,255,0.06); color: var(--t-ink); white-space: nowrap; }
.ntp-count.is-soon { background: rgb(var(--t-accent) / 0.2); color: rgb(var(--t-accent-soft)); }
.ntp-upnext__title { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 16px; line-height: 21px; font-weight: 700; letter-spacing: -0.015em; color: var(--t-ink); }
.ntp-upnext__when { margin-top: 4px; padding-left: 23px; font-size: 12.5px; line-height: 16px; color: var(--t-ink-2); font-variant-numeric: tabular-nums; }
.ntp-upnext--fed { border: 1px solid rgba(251,146,60,0.7); box-shadow: 0 0 24px rgba(251,146,60,0.18) inset; }
.ntp-upnext--fed .ntp-upnext__label { color: #fdba74; }
.ntp-folder { flex: none; margin-top: 4px; }
.ntp-cal { font-size: 13px; }
.ntp-cal__now { display: flex; align-items: center; gap: 8px; padding: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #f4f4f5; }
.ntp-cal__now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ntp-cal__now::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent); }
.ntp-cal__day { margin: 16px 12px 0; padding-bottom: 6px; font-size: 13px; font-weight: 700; color: #f4f4f5; }
.ntp-cal__row { display: grid; grid-template-columns: 54px 22px minmax(0, 1fr); column-gap: 6px; row-gap: 0; padding: 6px 12px; border-bottom: 1px solid rgba(0,0,0,0.6); }
.ntp-cal__row.is-now { background: rgb(var(--t-accent) / 0.14); box-shadow: inset 0 0 0 1px rgb(var(--t-accent) / 0.5); }
.ntp-cal__time { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; color: var(--t-ink); white-space: nowrap; }
.ntp-cal__time .ntp-folder { margin-top: 0; }
.ntp-cal__flag { display: block; width: 22px; height: 22px; margin-top: -1px; }
.ntp-cal__title { font-size: 14px; line-height: 20px; color: #f4f4f5; overflow-wrap: anywhere; }
.ntp-cal__title.is-bold { font-size: 15px; font-weight: 700; color: #fff; } /* measured on the reference */
.ntp-cal__nums { grid-column: 3; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--t-ink-3); display: flex; flex-direction: column; gap: 2px; }
.ntp-cal__nums > div { display: flex; flex-wrap: wrap; column-gap: 12px; }
.ntp-cal__nums b { color: #f4f4f5; font-weight: 600; }
.ntp-month { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ntp-month__head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; font-weight: 700; }
.ntp-month__head span { color: var(--t-ink-3); font-weight: 600; }
.ntp-month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; text-align: center; }
.ntp-month__dow { font-size: 11px; color: var(--t-ink-3); padding-bottom: 4px; }
.ntp-month__d { position: relative; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--t-ink); }
.ntp-month__d.is-today { border: 2px solid #22c55e; background: rgba(34,197,94,0.15); font-weight: 700; }
.ntp-month__d i { position: absolute; bottom: 4px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #f59e0b; }

/* ── Heat map ─────────────────────────────────────────────────────── */
.ntp-heat { position: relative; overflow: hidden; background: #000; font-family: var(--font); }
.ntp-heat__half { position: absolute; display: flex; align-items: center; padding: 0 8px; font-size: 13px; font-weight: 700; color: var(--t-ink); white-space: nowrap; }
.ntp-heat__group { position: absolute; display: flex; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ntp-tile {
  position: absolute; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12); padding: 4px 6px 6px; text-align: left; box-sizing: border-box;
  transition: left 600ms var(--mh-ease-out), top 600ms var(--mh-ease-out), width 600ms var(--mh-ease-out), height 600ms var(--mh-ease-out), background-color 600ms ease, color 600ms ease, filter 150ms ease, box-shadow 150ms ease;
}
.ntp-tile:hover { filter: brightness(1.25); }
.ntp-tile > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.ntp-tile__name { font-weight: 700; }
.ntp-tile__state { font-weight: 600; }
.ntp-tile__note { font-weight: 500; }
.ntp-tile__ago { position: absolute; top: 6px; right: 6px; font-size: 11px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.ntp-tile > .ntp-tile__days { position: absolute; top: 6px; left: 7px; display: flex; flex-direction: row; gap: 3px; -webkit-line-clamp: unset; overflow: visible; }
.ntp-tile__days > span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; line-height: 10px; font-weight: 700; opacity: 0.85; }
.ntp-tile__days i { width: 14px; height: 14px; border-radius: 2px; background: rgba(255,255,255,0.14); }
.ntp-tile.is-lit { box-shadow: inset 0 0 0 3px #fafafa; }
.ntp-tile.is-pulse::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px rgba(255,255,255,0.9); animation: ntp-pulse 1400ms ease-out forwards; pointer-events: none; }
@keyframes ntp-pulse { from { opacity: 1; } to { opacity: 0; } }

/* Phone heat map (PhoneHeatList.tsx) */
.ntp-phm { display: flex; flex-direction: column; gap: 16px; }
.ntp-phm__head { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px; font-size: 13px; font-weight: 700; color: #f4f4f5; white-space: nowrap; }
.ntp-phm__key { margin-left: auto; display: flex; gap: 6px; font-size: 11px; font-weight: 600; }
.ntp-phm__key span { padding: 2px 6px; border-radius: 4px; color: #fff; }
.ntp-phm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ntp-phm__card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 96px; padding: 12px; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); color: #fff; text-align: left; }
.ntp-phm__card.is-hero { grid-column: 1 / -1; min-height: 112px; justify-content: flex-end; }
.ntp-phm__top { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; line-height: 16px; font-weight: 600; color: rgba(255,255,255,0.75); }
.ntp-phm__top > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntp-phm__name { font-size: 15px; line-height: 20px; font-weight: 700; overflow-wrap: anywhere; }
.ntp-phm__card.is-hero .ntp-phm__name { font-size: 22px; line-height: 26px; }
.ntp-phm__state { font-size: 12.5px; line-height: 17px; font-weight: 600; }
.ntp-phm__note { font-size: 12.5px; line-height: 17px; font-weight: 500; color: rgba(255,255,255,0.85); }

/* Pressure bar (BalanceBar.tsx) */
.ntp-balance { display: flex; align-items: center; gap: 16px; margin: 4px 0 12px; padding: 0 2px; }
.ntp-balance__word { flex: none; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.ntp-balance__bar { position: relative; display: flex; height: 12px; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.06); box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
.ntp-balance__bar > span { height: 100%; transition: width 500ms; }
.ntp-balance__mark { position: absolute; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.8); transition: left 500ms; }
.ntp-balance__half { position: absolute; top: 3px; bottom: 3px; left: 50%; width: 1px; background: rgba(255,255,255,0.3); }

/* ── Headline peek (HeadlinePeek.tsx) ─────────────────────────────── */
.ntp-peek { width: 298px; padding: 8px; border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,0.12); background: #000; box-shadow: 0 16px 40px rgb(0 0 0 / 0.6); }
.ntp-peek__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px; font-size: 11.5px; font-weight: 600; }
.ntp-peek__clock { color: var(--t-ink); font-variant-numeric: tabular-nums; }
.ntp-peek__clock small { margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--t-ink-3); }
.ntp-peek__move { font-variant-numeric: tabular-nums; }
.ntp-peek svg { display: block; }
.ntp-peek__moved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 4px 0; font-size: 11.5px; font-weight: 600; }
.ntp-peek__moved > span:first-child { color: var(--t-ink-3); }
.ntp-peek__chip { padding: 2px 6px; border-radius: var(--r-md); border: 1px solid var(--line-2); color: var(--t-ink); font-variant-numeric: tabular-nums; }
.ntp-peek__note { position: absolute; padding: 4px 8px; border-radius: 4px; background: #000; border: 1px solid var(--line-3); font-size: 11px; line-height: 14px; color: #fff; max-width: 230px; }

/* ── Move charts (MoveCharts.tsx) and the chain ───────────────────── */
.ntp-moves { display: flex; gap: 4px; margin-top: 6px; }
.ntp-move { min-width: 0; flex: 1 1 0; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.6); overflow: hidden; }
.ntp-move__head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 4px 6px 0; font-size: 11px; }
.ntp-move__name { font-weight: 500; color: var(--t-ink); }
.ntp-move__tf { padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,0.06); font-size: 11px; line-height: 16px; font-weight: 500; color: var(--t-ink-2); }
.ntp-move__pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.ntp-beat > .ntp-move { flex: none; }
.ntp-move canvas { display: block; width: 100%; height: 96px; }
.ntp-chain { display: flex; flex-direction: column; gap: 0; }
.ntp-chain__beats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ntp-beat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #000; min-width: 0; }
.ntp-beat__n { font-size: 11px; font-weight: 700; color: var(--t-ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.ntp-beat__words { font-size: 14px; line-height: 19px; font-weight: 700; color: #fff; }
.ntp-beat--event { background: rgba(255,255,255,0.03); }
.ntp-beat__arrow { position: absolute; right: -8px; top: 50%; width: 8px; height: 1px; background: rgba(255,255,255,0.25); }
.ntp-chain__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--t-ink-2); font-variant-numeric: tabular-nums; }
.ntp-chain__head b { color: #fff; font-size: 16px; }

/* ── Delayed banner, lock slot, upsell bits (prototype pieces) ────── */
.ntp-delayed {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid rgba(245,158,11,0.35);
  background: linear-gradient(90deg, rgba(245,158,11,0.10), rgba(245,158,11,0.03)); border-radius: 10px; font-size: 14px; line-height: 20px; color: var(--t-ink);
}
.ntp-delayed__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(245,158,11,0.16); color: #fbbf24; flex: none; }
.ntp-delayed__icon svg { width: 16px; height: 16px; }
.ntp-delayed b { font-weight: 700; color: #fff; }
.ntp-delayed__sub { color: var(--t-ink-2); font-size: 13px; }
.ntp-delayed .ntp-btn { margin-left: auto; height: 34px; }
.ntp-lock {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: var(--r-md);
  border: 1px dashed rgba(255,255,255,0.18); background: rgba(255,255,255,0.03); color: var(--t-ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.ntp-lock svg { width: 12px; height: 12px; color: var(--t-ink-3); }
.ntp-lock--block { display: flex; height: auto; padding: 10px 12px; font-size: 13px; }

/* ── Replay animation bits ────────────────────────────────────────── */
.ntp-flydot { position: fixed; z-index: 50; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgb(var(--t-accent)); box-shadow: 0 0 0 4px rgb(var(--t-accent) / 0.25), 0 0 18px rgb(var(--t-accent) / 0.8); pointer-events: none; }
.ntp-row.is-new { animation: ntp-land 700ms var(--mh-ease-out) both; }
@keyframes ntp-land { from { opacity: 0; transform: translateY(-14px); background: rgb(var(--t-accent) / 0.16); } to { opacity: 1; transform: none; background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .ntp-tile, .ntp-balance__bar > span, .ntp-balance__mark { transition: none !important; }
  .ntp-row.is-new, .ntp-live__dot, .ntp-tile.is-pulse::after { animation: none !important; }
}

/* ── Board layout (the full Trade screen) ─────────────────────────── */
.ntp-board { display: grid; grid-template-columns: 345px minmax(0, 1fr) 347px; grid-template-rows: 54px minmax(0, 1fr); height: 100%; min-height: 0; }
.ntp-board > .ntp-top { grid-column: 1 / -1; }
.ntp-board__feed { overflow: hidden; min-height: 0; } /* no column rule on the reference: the columns meet on black */
.ntp-board__mid { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.ntp-board__right { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.ntp-board__controls { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; flex-wrap: wrap; }
.ntp-board__heat { padding: 6px 2px 0 8px; }

/* ── Phone (375) ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .ntp-top { height: 48px; padding: 0 12px; gap: 8px; }
  .ntp-title h1 { font-size: 18px; line-height: 24px; }
  .ntp-pro { font-size: 10px; padding: 0 6px; margin-left: 4px; }
  .ntp-sub, .ntp-viewing, .ntp-top .ntp-btn { display: none; }
  .ntp-title { overflow: visible; flex: 0 0 auto; gap: 6px; }
  .ntp-clock b { font-size: 17px; line-height: 22px; }
  .ntp-clock span { display: none; }
  .ntp-live { height: 24px; padding: 0 8px; font-size: 11.5px; }
  .ntp-live__days { display: none; }
  .ntp-pills { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ntp-chartpill, .ntp-marker, .ntp-grip { display: none; }
  .ntp-board { display: block; height: auto; }
  .ntp-board__feed, .ntp-board__right { border: 0; }
  .ntp-pill { font-size: 13px; height: 30px; padding: 0 8px; gap: 6px; }
  .ntp-pill__pct { font-size: 12px; }
  .ntp-delayed { flex-wrap: wrap; }
  .ntp-delayed .ntp-btn { margin-left: 42px; }
}

/* ── Title badge, delayed (D14: "DELAYED 15 MIN" once the board runs behind) ── */
.ntp-pro--delayed { flex: none; white-space: nowrap; border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.10); color: #fbbf24; letter-spacing: 0.08em; }
@media (max-width: 760px) { .ntp-pro--delayed { letter-spacing: 0.02em; padding: 0 5px; margin-left: 0; } }

/* ── First-visit Trade tour (TradeTour.tsx) ───────────────────────── */
.ntp-tour { position: fixed; inset: 0; z-index: 70; font-family: var(--font); animation: ntp-tour-fade 0.25s ease both; }
.ntp-tour__catch { position: absolute; inset: 0; }
.ntp-tour__window {
  position: absolute; pointer-events: none; border-radius: 16px;
  box-shadow: 0 0 0 2px rgb(var(--t-accent) / 0.9), 0 0 0 200vmax rgb(0 0 0 / 0.82);
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ntp-tour__window.is-instant { transition: none; }
.ntp-tour__marks { position: absolute; inset: 0; pointer-events: none; }
.ntp-tour__ring {
  position: absolute; border-radius: 8px; border: 3px solid rgb(var(--tone)); pointer-events: none;
  animation: ntp-tour-ring-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both, ntp-tour-glow 1.8s linear infinite;
}
.ntp-tour__tag { position: absolute; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; animation: ntp-tour-tag-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ntp-tour__pill {
  display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 16px 6px 6px;
  font-size: 19px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; color: #fff;
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.6);
}
.ntp-tour__word { padding: 4px 0 4px 10px; }
.ntp-tour__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #000; font-size: 18px; }
.ntp-tour__arrow { margin: 4px 0 0 20px; color: #fff; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.7)); animation: ntp-tour-bounce 0.9s ease-in-out infinite; }
.ntp-tour__card {
  position: absolute; width: 300px; overflow: hidden; border-radius: 16px; border: 1px solid rgb(var(--t-accent) / 0.4);
  background: #000; padding: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.7), 0 0 40px rgb(var(--t-accent) / 0.25);
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: ntp-tour-card-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
.ntp-tour.is-phone .ntp-tour__card { left: 12px; right: 12px; width: auto; bottom: calc(var(--ntp-bottom-bar, 0px) + 12px); animation-name: ntp-tour-card-up; }
.ntp-tour__bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; background: linear-gradient(90deg, rgb(var(--t-accent)), rgb(var(--t-accent-soft)), transparent); }
.ntp-tour__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ntp-tour .ntp-tour__title { margin: 0; font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.025em; color: #fafafa; }
.ntp-tour__x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin: -4px -4px 0 0; border-radius: 50%; color: #71717a; }
.ntp-tour__x:hover { background: rgba(255,255,255,0.08); color: #f4f4f5; }
.ntp-tour .ntp-tour__line { margin: 4px 0 0; font-size: 14px; line-height: 20px; font-weight: 500; color: rgb(var(--t-accent-soft)); }
.ntp-tour__foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.ntp-tour__dots { display: flex; gap: 6px; }
.ntp-tour__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.2); transition: all 0.3s; }
.ntp-tour__dot.is-on { width: 24px; background: rgb(var(--t-accent)); }
.ntp-tour__acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ntp-tour__ghost { border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.5; font-weight: 600; color: #a1a1aa; }
.ntp-tour__ghost:hover { color: #f4f4f5; }
.ntp-tour__next { border-radius: 8px; padding: 8px 16px; font-size: 14px; line-height: 1.5; font-weight: 700; color: #fff; background: rgb(var(--t-accent)); box-shadow: 0 0 20px rgb(var(--t-accent) / 0.5); }
.ntp-tour__next:hover { filter: brightness(1.1); }
@keyframes ntp-tour-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ntp-tour-ring-in { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: scale(1); } }
@keyframes ntp-tour-glow { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--tone) / 0.55); } 50% { box-shadow: 0 0 28px 6px rgb(var(--tone) / 0.55); } }
@keyframes ntp-tour-tag-in { from { opacity: 0; transform: translateY(14px) scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes ntp-tour-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@keyframes ntp-tour-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ntp-tour-card-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ntp-tour.is-still, .ntp-tour.is-still * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .ntp-tour, .ntp-tour * { animation: none !important; transition: none !important; } }

/* ── How to trade news (TradeGuide.tsx + GuideFaq.tsx) ────────────── */
.ntp-guide {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column;
  width: 400px; max-width: 100%; border-left: 1px solid rgba(255,255,255,0.08); background: #000;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); font-family: var(--font); line-height: 1.5;
}
.ntp-guide[hidden] { display: none; }
.ntp-guide--inline { position: relative; top: auto; right: auto; bottom: auto; z-index: auto; height: 900px; }
.ntp-guide__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ntp-guide .ntp-guide__title { margin: 0; font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: -0.025em; color: #fafafa; }
.ntp-guide .ntp-guide__rules { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: rgb(var(--t-accent-soft)); }
.ntp-guide__btn { margin-top: 10px; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); font-size: 12.5px; line-height: 1.5; font-weight: 600; color: #e4e4e7; }
.ntp-guide__btn + .ntp-guide__btn { margin-left: 8px; }
.ntp-guide__btn:hover { background: rgba(255,255,255,0.06); }
.ntp-guide__x { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #a1a1aa; }
.ntp-guide__x:hover { background: rgba(255,255,255,0.08); color: #f4f4f5; }
.ntp-guide__x svg { width: 18px; height: 18px; }
.ntp-guide__body { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 16px 20px; }
.ntp-guide__chains { display: block; width: 100%; height: 460px; border: 0; }
.ntp-faq__item + .ntp-faq__item { border-top: 1px solid rgba(255,255,255,0.08); }
.ntp-faq__q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; text-align: left; font-size: 15px; font-weight: 600; color: #fafafa; }
.ntp-faq__q svg { width: 16px; height: 16px; flex: none; color: #a1a1aa; transition: transform 0.2s; }
.ntp-faq__item.is-open .ntp-faq__q svg { transform: rotate(180deg); }
.ntp-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.2s ease-out; }
.ntp-faq__item.is-open .ntp-faq__a { grid-template-rows: 1fr; }
.ntp-faq__a > div { overflow: hidden; }
.ntp-faq__lines { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; }
.ntp-faq__lines p { margin: 0; font-size: 13.5px; line-height: 20px; color: #d4d4d8; }
.ntp-guide__more { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: #d4d4d8; text-decoration: none; text-underline-offset: 4px; }
.ntp-guide__more:hover { color: #fafafa; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .ntp-faq__a, .ntp-faq__q svg { transition: none; } }

/* ── Plan parts list (D13) ────────────────────────────────────────── */
.ntp-plan-parts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ntp-plan-parts li { display: flex; align-items: baseline; gap: 12px; font-size: 15px; line-height: 24px; color: #d4d4d8; }
.ntp-plan-parts__tier { width: 72px; flex: none; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; color: #f4f4f5; }
