/* Persona specialty filter removed from radar UI. */
#persona-select, .persona-select, .persona-trigger, .persona-menu { display: none !important; }

/* Command Deck — opportunity-first ops-room header.
   Scoped under #command-deck so it can't disturb the existing radar styles. */

/* The radar page ships as a fixed 100svh stage (body{overflow:hidden}).
   The globe stage is the hero; opportunity panels scroll below it. Re-enable
   vertical scroll and lay a single ops-room canvas under the whole page. */
body.radar-body {
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #050b14;
  /* Promote the ops-room palette to the page scope so rules that restyle
     radar.js elements (e.g. .signal-chip in the stage data band) resolve. */
  --cd-bg: #050b14;
  --cd-panel: rgba(10, 22, 38, 0.72);
  --cd-line: rgba(103, 217, 255, 0.18);
  --cd-line-strong: rgba(103, 217, 255, 0.42);
  --cd-ink: #e8f1f8;
  --cd-dim: #8aa2b6;
  --cd-accent: #67D9FF;
  --cd-hot: #FF6B6B;
  --cd-amber: #ffb547;
}
/* Unified ops-room backdrop behind every section (faint HUD grid + top glow),
   so the page reads as one command room, not dark cards floating on black. */
body.radar-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(103, 217, 255, 0.07), transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(103, 217, 255, 0.028) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(103, 217, 255, 0.028) 31px 32px);
}
/* Declutter the globe hero: the old value-rail stats duplicate the LIVE strip
   and the counters, so hide them and let the globe breathe. */
body.radar-body .value-rail { display: none; }

/* Contextual zone visibility, keyed on body class (set by command_deck.js's
   layer observer). On layers my sections own (opportunities/tools = .cd-mine),
   hide the stage's duplicate data panel + filter + ticker. Class-keyed so
   radar.js's .hidden toggles and 30s refresh can't fight it. On the other
   layers (.cd-stage-data) the stage #data-panel IS the zone body, and my
   sections are hidden via their own [hidden] attribute (observer-managed). */
/* Specialty filter (#opp-controls) must stay visible on opportunities/tools —
   the UX trio requires a ≥44×44 pill under nav (not hidden without alternative). */
body.radar-body.cd-mine #data-panel,
body.radar-body.cd-mine #floating-strip { display: none !important; }
body.radar-body.cd-mine #opp-controls {
  display: flex !important;
}

/* Specialty/category filters sit under nav; keep LIVE stats clear of them
   on opportunities + tools (desktop). LIVE owns the RTL-start lane (~164px+). */
@media (min-width: 981px) {
  body.radar-body.cd-mine.layer-tools .deck-live-panel,
  body.radar-body.cd-mine.layer-opportunities .deck-live-panel {
    top: calc(var(--zone-header-h, 76px) + 16px);
    z-index: 56;
  }
  body.radar-body.cd-mine.layer-tools #opp-controls,
  body.radar-body.cd-mine.layer-opportunities #opp-controls {
    /* Pin to inline-end (left in RTL) so filters never sit under the LIVE panel. */
    margin-inline-start: 180px; /* keep clear of LIVE (~164px+) */
    left: auto;
    right: auto;
    inset-inline-start: auto;
    inset-inline-end: clamp(16px, 2vw, 36px);
    transform: none;
    width: min(720px, calc(100vw - 400px));
    max-width: calc(100vw - 460px);
    z-index: 57;
  }
}
body.radar-body .radar-stage {
  /* The LIVE status now occupies the unused side lane, so the globe keeps the
     full viewport instead of losing vertical space to a page-wide strip. */
  min-height: 100svh;
  height: 100svh;
  /* A transform turns the stage into the containing block for its
     position:fixed children (e.g. the auto-shown detail side panel), so they
     stay within the radar region instead of floating over the deck/grid. */
  transform: translateZ(0);
}
/* On narrow widths radar.css pins .radar-nav position:fixed (old single-screen
   app shell). In the scrolling layout that floats it over the deck/grid, so we
   anchor it to the stage instead — it scrolls into view with the radar. */
/* Phase 2 newspaper freshness clock — sits under the layer nav. */
body.radar-body .radar-freshness-wrap {
  position: absolute;
  top: calc(12px + 52px);
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-radar-nav, 30) + 1);
  margin: 0;
  padding: 0;
  pointer-events: none;
  text-align: center;
  width: min(440px, calc(100vw - 32px));
}
body.radar-body .radar-freshness {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(103, 217, 255, 0.22);
  background: rgba(8, 18, 32, 0.72);
  color: rgba(174, 247, 254, 0.92);
  font: 600 12px/1.35 "IBM Plex Sans Arabic", "Inter", sans-serif;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}
body.radar-body .radar-ar-first {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(103, 217, 255, 0.14);
  color: rgba(138, 162, 182, 0.95);
  font: 500 11px/1.35 "IBM Plex Sans Arabic", "Inter", sans-serif;
  vertical-align: middle;
}
body.radar-body .radar-freshness-wrap .radar-ar-first {
  pointer-events: none;
}
.cd-live-fresh {
  display: block;
  margin: 0 0 8px;
  padding: 0 2px;
  color: rgba(174, 247, 254, 0.88);
  font: 600 12px/1.35 "IBM Plex Sans Arabic", "Inter", sans-serif;
  text-align: center;
}

body.radar-body .radar-nav {
  position: absolute;
  width: min(440px, calc(100vw - 32px));
  min-width: 0;
  max-width: calc(100vw - 32px);
}
.cd-scroll-hint {
  display: block;
  text-align: center;
  margin: 10px auto 2px;
  font: 500 12px/1.4 "IBM Plex Sans Arabic", sans-serif;
  color: var(--cd-dim);
}

#command-deck {
  --cd-bg: #050b14;
  --cd-panel: rgba(10, 22, 38, 0.72);
  --cd-line: rgba(103, 217, 255, 0.18);
  --cd-line-strong: rgba(103, 217, 255, 0.42);
  --cd-ink: #e8f1f8;
  --cd-dim: #8aa2b6;
  --cd-accent: #67D9FF;
  --cd-hot: #FF6B6B;
  --cd-amber: #ffb547;

  position: relative;
  z-index: 6;
  max-width: 1080px;
  margin: 18px auto 6px;
  padding: 14px clamp(14px, 3vw, 22px) 18px;
  border: 1px solid var(--cd-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.92), rgba(5, 11, 20, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(103, 217, 255, 0.04) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(103, 217, 255, 0.04) 23px 24px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: var(--cd-ink);
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  direction: rtl;
}

/* ---- Three-metric panel: horizontal card below «الفرص» ---------------- */
.deck-live-panel {
  position: absolute;
  z-index: 55;
  top: clamp(96px, 12svh, 124px);
  inset-inline-start: clamp(24px, 3vw, 48px);
  width: min(520px, calc(100vw - 48px));
  transform: scale(0.75);
  transform-origin: top right;
  border: 1px solid rgba(103, 217, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 217, 255, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(8, 23, 36, 0.96), rgba(3, 11, 19, 0.96));
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(103, 217, 255, 0.11),
    inset 0 1px rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  color: #e8f1f8;
  --cd-accent: #67D9FF;
  --cd-dim: #8aa2b6;
  --cd-hot: #FF6B6B;
}
.deck-live-panel::before {
  content: "";
  position: absolute;
  inset: 0 20px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cd-accent), transparent);
  opacity: 0.72;
}
.deck-live-panel::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--cd-accent) 28% 72%, transparent);
  box-shadow: 0 0 14px rgba(103, 217, 255, 0.62);
  opacity: 0.88;
}
.deck-live-panel[hidden] { display: none; }
.deck-live-panel .cd-live { margin: 0; padding: 0; border: 0; }

/* ---- Three large, quickly scannable readings -------------------------- */
.cd-live {
  display: block;
}
.cd-live-cells {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
}
.cd-live-cell {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 124px;
  padding: 20px 24px;
  text-align: right;
}
.cd-live-cell:first-child {
  background: linear-gradient(135deg, rgba(103, 217, 255, 0.075), transparent 62%);
}
.cd-live-cell + .cd-live-cell { border-right: 1px solid rgba(103, 217, 255, 0.12); }
.cd-live-cell b {
  font: 500 clamp(30px, 2.5vw, 38px)/1 "JetBrains Mono", monospace;
  color: #AEF7FE;
  text-shadow: 0 0 16px rgba(103, 217, 255, 0.32);
}
.cd-live-cell small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--cd-dim);
}
.cd-live-cell small::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: var(--cd-accent);
  box-shadow: 0 0 8px rgba(103, 217, 255, 0.7);
  opacity: 0.72;
}
/* ---- Hero ------------------------------------------------------------- */
.cd-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}
.cd-flag {
  display: inline-block;
  font: 700 12px/1 "IBM Plex Sans Arabic", sans-serif;
  color: var(--cd-hot);
  letter-spacing: 0.02em;
}
.cd-chip {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 9px;
  border: 1px solid var(--cd-line-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--cd-accent);
  vertical-align: middle;
}
.cd-hero-title {
  margin: 8px 0 10px;
  font: 700 clamp(20px, 3vw, 28px)/1.3 "IBM Plex Sans Arabic", sans-serif;
  color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cd-block { margin: 6px 0; font-size: 14px; line-height: 1.7; color: var(--cd-ink); }
.cd-block b { color: var(--cd-accent); font-weight: 600; }
.cd-mvp b { color: var(--cd-amber); }
.cd-reasons {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 12px 0 14px; padding: 0;
}
.cd-reasons li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--cd-line);
  border-radius: 8px;
  background: rgba(103, 217, 255, 0.06);
  font-size: 12px; color: var(--cd-ink);
}
/* HUD marker replaces the removed checkmark emoji */
.cd-reasons li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--cd-accent);
  box-shadow: 0 0 6px rgba(103, 217, 255, 0.6);
  flex: none;
}
.cd-cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cd-accent), #2F9DD8);
  color: #021018; font-weight: 700; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(103, 217, 255, 0.25);
}
.cd-cta:hover { filter: brightness(1.08); }

/* score / difficulty meter */
.cd-hero-meter {
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; text-align: center;
  min-width: 132px;
}
.cd-score {
  position: relative;
  width: 116px; height: 116px;
  display: grid; place-content: center;
  border-radius: 50%;
  border: 2px solid var(--cd-line);
}
.cd-score::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px dashed var(--cd-line); animation: cd-spin 18s linear infinite;
}
@keyframes cd-spin { to { transform: rotate(360deg); } }
.cd-score b { font: 800 38px/1 "JetBrains Mono", monospace; }
.cd-score small { font: 500 12px/1 "JetBrains Mono", monospace; color: var(--cd-dim); }
.cd-score-cap { display: block; margin-top: 4px; font-size: 11px; color: var(--cd-dim); }
.cd-score.is-high { border-color: var(--cd-accent); box-shadow: 0 0 28px rgba(103, 217, 255, 0.2); }
.cd-score.is-high b { color: var(--cd-accent); }
.cd-score.is-mid { border-color: var(--cd-amber); }
.cd-score.is-mid b { color: var(--cd-amber); }
.cd-score.is-low b { color: var(--cd-dim); }
.cd-diff-cap { display: block; font-size: 11px; color: var(--cd-dim); margin-bottom: 5px; }
.cd-dots { display: inline-flex; gap: 5px; }
.cd-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.cd-dot.on { background: var(--cd-amber); box-shadow: 0 0 8px rgba(255, 184, 77, 0.5); }
.cd-diff small { display: block; margin-top: 4px; font: 600 11px/1 "JetBrains Mono", monospace; color: var(--cd-dim); }

/* ---- counters --------------------------------------------------------- */
.cd-counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--cd-line);
}
.cd-counter {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 6px 12px;
  border: 1px solid var(--cd-line);
  border-radius: 12px;
  background: var(--cd-panel);
  overflow: hidden;
}
/* HUD accent bar at the top of each counter (replaces emoji icon) */
.cd-counter::before {
  content: "";
  position: absolute; top: 0; inset-inline: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cd-accent), transparent);
}
.cd-counter b { font: 800 24px/1 "JetBrains Mono", monospace; color: #fff; }
.cd-counter small { font-size: 11px; color: var(--cd-dim); text-align: center; }

@media (max-width: 720px) {
  .cd-hero { grid-template-columns: 1fr; }
  .cd-hero-meter { flex-direction: row; justify-content: center; gap: 22px; min-width: 0; }
  .cd-counters { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1280px) {
  .deck-live-panel {
    inset-inline-start: 14px;
    width: min(480px, calc(100vw - 28px));
  }
  .cd-live-cell { min-height: 112px; padding: 18px 20px; }
  .cd-live-cell b { font-size: 30px; }
  .cd-live-cell small { font-size: 12px; }
}

@media (max-width: 980px) and (orientation: landscape) {
  .deck-live-panel {
    top: 64px;
    inset-inline-start: 10px;
    width: min(430px, calc(100vw - 20px));
  }
  .cd-live-cell { min-height: 94px; padding: 14px 16px; }
  .cd-live-cell b { font-size: 26px; }
}

@media (orientation: portrait) and (max-width: 1024px) {
  /* Keep nav in the scrolling stage (not fixed over the opportunity band).
     radar.css portrait rules pin it fixed — reclaim absolute so freshness
     and tabs stop colliding, and the globe hero stays usable. */
  body.radar-body .radar-nav {
    position: absolute !important;
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 40;
  }
  body.radar-body .radar-freshness-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    margin: 58px 0 10px !important;
    z-index: 5;
    text-align: center;
  }
  body.radar-body .radar-freshness {
    font-size: 11px;
    padding: 4px 9px;
  }
  body.radar-body .radar-ar-first {
    display: block;
    margin: 6px auto 0;
    width: fit-content;
  }
  body.radar-body .radar-stage {
    padding-top: calc(18px + env(safe-area-inset-top, 0px)) !important;
  }
  .deck-live-panel {
    position: relative;
    inset: auto;
    top: auto;
    width: 100%;
    transform: none;
    margin: 0 0 12px;
    border-radius: 15px;
  }
  .cd-live-cell { min-height: 102px; padding: 16px 18px; }
  .cd-live-cell b { font-size: 30px; }
  /* Floating CTA: keep clear of home-indicator + don't cover globe nodes */
  body.radar-body .radar-subscribe-cta {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 12px;
    z-index: 85;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 560px) {
  .cd-live-cells { grid-template-columns: 1fr; }
  .cd-live-cell {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 74px;
    padding: 14px 18px;
  }
  .cd-live-cell + .cd-live-cell {
    border-top: 1px solid rgba(103, 217, 255, 0.12);
    border-right: 0;
  }
}

/* ===== Opportunity grid =============================================== */
#opportunity-grid {
  --cd-bg: #050b14;
  --cd-line: rgba(103, 217, 255, 0.18);
  --cd-ink: #e8f1f8;
  --cd-dim: #8aa2b6;
  --cd-accent: #67D9FF;
  --cd-amber: #ffb547;

  position: relative;
  z-index: 6;
  max-width: 1080px;
  margin: 10px auto 6px;
  padding: 4px clamp(14px, 3vw, 22px) 18px;
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  color: var(--cd-ink);
}
.og-title { margin: 6px 2px 14px; }
.og-title.og-filtered { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.og-term { color: var(--cd-accent); font-family: "JetBrains Mono", monospace; }
.og-clear {
  margin-inline-start: auto;
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--cd-line); background: transparent;
  color: var(--cd-accent); font: 600 12px "IBM Plex Sans Arabic", sans-serif;
  cursor: pointer;
}
.og-clear:hover { background: rgba(103, 217, 255, 0.08); }
.og-empty {
  padding: 22px; text-align: center; color: var(--cd-dim);
  border: 1px dashed var(--cd-line); border-radius: 14px; font-size: 14px;
}
/* active globe tag while it is filtering the grid */
#radar-tags .tag.cd-tag-active {
  border-color: var(--cd-accent) !important;
  box-shadow: 0 0 16px rgba(103, 217, 255, 0.45) !important;
}
.og-kicker {
  font: 600 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em; color: var(--cd-accent);
}
.og-title h3 { margin: 6px 0 0; font: 700 18px/1.3 "IBM Plex Sans Arabic", sans-serif; color: #fff; }
.og-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.og-card {
  display: flex; flex-direction: column;
  padding: 14px;
  border: 1px solid var(--cd-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(10, 22, 38, 0.72), rgba(5, 11, 20, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}
.og-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.og-tool {
  font: 700 14px/1.3 "JetBrains Mono", monospace;
  color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.og-score {
  flex: none;
  min-width: 38px; padding: 3px 8px;
  border-radius: 8px;
  font: 800 14px/1 "JetBrains Mono", monospace;
  text-align: center;
}
.og-score.is-high { color: #021018; background: var(--cd-accent); }
.og-score.is-mid { color: #1a1205; background: var(--cd-amber); }
.og-score.is-low { color: var(--cd-ink); background: rgba(255,255,255,0.08); }
.og-line { margin: 5px 0; font-size: 13px; line-height: 1.65; color: var(--cd-ink); }
.og-line b { display: inline-block; margin-inline-end: 4px; font-weight: 600; color: var(--cd-accent); }
.og-income b { color: var(--cd-amber); }
.og-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 11px;
}
.og-diff { font-size: 12px; color: var(--cd-dim); }
.og-diff b { color: var(--cd-ink); font-family: "JetBrains Mono", monospace; }
.og-link {
  font-size: 12px; font-weight: 600; text-decoration: none;
  color: var(--cd-accent);
  padding: 4px 12px; border: 1px solid var(--cd-line); border-radius: 8px;
}
.og-link:hover { background: rgba(103, 217, 255, 0.08); }
.og-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.og-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--cd-line); border-radius: 7px;
  font-size: 11px; color: var(--cd-dim);
}
.og-tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 1px;
  transform: rotate(45deg); background: var(--cd-accent); flex: none;
}
@media (max-width: 900px) { .og-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .og-grid { grid-template-columns: 1fr; } }

/* ===== Tools panel + Blueprints panel (shared shell) ================== */
#tools-panel, #blueprints-panel {
  --cd-line: rgba(103, 217, 255, 0.18);
  --cd-ink: #e8f1f8;
  --cd-dim: #8aa2b6;
  --cd-accent: #67D9FF;
  --cd-amber: #ffb547;
  position: relative; z-index: 6;
  max-width: 1080px;
  margin: 10px auto 6px;
  padding: 4px clamp(14px, 3vw, 22px) 20px;
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  color: var(--cd-ink);
}

/* tools grid */
.tl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tl-card {
  display: flex; flex-direction: column;
  padding: 14px;
  border: 1px solid var(--cd-line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.72), rgba(5, 11, 20, 0.86));
}
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tl-name { font: 700 14px/1.3 "JetBrains Mono", monospace; color: #fff; }
.tl-cat {
  flex: none; padding: 2px 8px; border: 1px solid var(--cd-line); border-radius: 999px;
  font-size: 11px; color: var(--cd-accent);
}
.tl-def { margin: 0 0 9px; font-size: 12.5px; line-height: 1.6; color: var(--cd-ink); }
.tl-row { margin: 4px 0; font-size: 12px; line-height: 1.55; color: var(--cd-dim); }
.tl-row b { color: var(--cd-accent); font-weight: 600; margin-inline-end: 3px; }
.tl-link {
  margin-top: 10px; align-self: flex-start;
  font-size: 12px; font-weight: 600; text-decoration: none; color: var(--cd-accent);
  padding: 4px 12px; border: 1px solid var(--cd-line); border-radius: 8px;
}
.tl-link:hover { background: rgba(103, 217, 255, 0.08); }

/* blueprints grid */
.bp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bp-card {
  display: flex; flex-direction: column;
  padding: 16px;
  border: 1px solid var(--cd-line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 26, 44, 0.78), rgba(5, 11, 20, 0.9));
}
.bp-head { display: flex; align-items: center; justify-content: space-between; }
.bp-no { font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: 0.1em; color: var(--cd-dim); }
.bp-score {
  min-width: 38px; padding: 3px 9px; border-radius: 8px;
  font: 800 14px/1 "JetBrains Mono", monospace; text-align: center;
}
.bp-score.is-high { color: #021018; background: var(--cd-accent); }
.bp-score.is-mid { color: #1a1205; background: var(--cd-amber); }
.bp-score.is-low { color: var(--cd-ink); background: rgba(255,255,255,0.08); }
.bp-title { margin: 10px 0 6px; font: 700 16px/1.4 "IBM Plex Sans Arabic", sans-serif; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-cat {
  align-self: flex-start; margin-bottom: 8px; padding: 2px 9px;
  border: 1px solid var(--cd-line); border-radius: 999px; font-size: 11px; color: var(--cd-accent);
}
.bp-row { margin: 5px 0; font-size: 13px; line-height: 1.65; color: var(--cd-ink); }
.bp-row b { display: inline-block; margin-inline-end: 4px; font-weight: 600; color: var(--cd-accent); }
.bp-mvp b { color: var(--cd-amber); }
.bp-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px;
}
.bp-diff { font-size: 12px; color: var(--cd-dim); }
.bp-diff b { color: var(--cd-ink); font-family: "JetBrains Mono", monospace; }
.bp-link {
  font-size: 12px; font-weight: 700; text-decoration: none; color: #021018;
  padding: 6px 14px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cd-accent), #2F9DD8);
}
.bp-link:hover { filter: brightness(1.08); }

@media (max-width: 900px) { .tl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .bp-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tl-grid { grid-template-columns: 1fr; } }

/* ===== Contextual zone =============================================== */
/* The single zone below the globe; its header mirrors the active layer. */
.cd-zone { position: relative; z-index: 6; }
.cd-zone-head {
  max-width: 1080px;
  margin: 18px auto 4px;
  padding: 0 clamp(14px, 3vw, 22px);
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}
.cd-zone-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.16em; color: var(--cd-accent);
}
.cd-zone-kicker::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--cd-accent), transparent);
}
.cd-zone-title {
  margin: 8px 0 4px;
  font: 700 clamp(20px, 3vw, 26px)/1.3 "IBM Plex Sans Arabic", sans-serif;
  color: #fff;
}
.cd-zone-summary {
  margin: 0; max-width: 760px;
  font-size: 13.5px; line-height: 1.7; color: var(--cd-dim);
}
/* On opportunities the deck carries its own context, so the zone header is
   redundant there; show it mainly for the stage-data layers. */
body.radar-body.cd-mine .cd-zone-summary { display: none; }

/* ===== Stage data band restyled to the electric-blue HUD (radar/trending/etc.) === */
/* Only on layers where #data-panel is the zone body. Specificity (no
   !important) overrides radar.css's per-layer chip accents cleanly. */
body.radar-body.cd-stage-data .signal-chip {
  border-color: var(--cd-line);
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.72), rgba(5, 11, 20, 0.82));
}
body.radar-body.cd-stage-data .signal-chip:hover {
  border-color: var(--cd-line-strong);
  box-shadow: 0 0 22px rgba(103, 217, 255, 0.12);
}
body.radar-body.cd-stage-data .panel-metric strong,
body.radar-body.cd-stage-data .panel-metric b { color: var(--cd-accent); }
body.radar-body.cd-stage-data .panel-arrow:hover:not(:disabled) {
  border-color: var(--cd-accent); color: var(--cd-accent);
}

/* ===== Nav as part of the globe HUD ================================== */
body.radar-body .radar-nav button.active {
  color: var(--cd-accent);
}
body.radar-body .radar-nav button.active::after {
  content: ""; position: absolute; inset-inline: 18%; bottom: 4px; height: 2px;
  background: var(--cd-accent); border-radius: 2px;
  box-shadow: 0 0 8px rgba(103, 217, 255, 0.6);
}
body.radar-body .radar-nav button { position: relative; }

/* ===== Opportunity band: my cards in the in-stage band (like جديد) ===== */
/* Positioned identically to radar.css .data-panel so it reads as the same
   integrated band below the globe. Visible ONLY on the opportunities layer. */
#cd-band {
  display: none;
  position: absolute;
  z-index: var(--z-data-panel, 60);
  left: 50%;
  bottom: var(--zone-footer-h);
  transform: translateX(-50%);
  width: min(1460px, calc(100vw - 144px));
  height: auto;
  min-height: clamp(132px, 18vh, 196px);
  max-height: clamp(168px, 24vh, 240px);
  grid-template-columns: 128px 1fr;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--cd-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.74), rgba(3, 8, 14, 0.62));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 30px 90px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-sizing: border-box;
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  color: var(--cd-ink);
}
/* The layers I own (opportunities/tools = .cd-mine) show the in-stage band;
   #data-panel stays hidden there (the .cd-mine rule above). Other layers keep
   the band display:none. Beat [hidden] UA !important when .cd-mine. */
body.radar-body.cd-mine #cd-band { display: grid !important; }
/* The band IS the view for these layers, so suppress the below-stage sections
   (blueprints stay below on opportunities as a scroll bonus). */
body.radar-body.cd-mine.layer-opportunities #command-deck,
body.radar-body.cd-mine.layer-opportunities #opportunity-grid,
body.radar-body.cd-mine.layer-tools #tools-panel { display: none !important; }
/* The content now lives in the in-stage band/#data-panel for every layer, and
   the globe's own .radar-copy carries the title, so the below-stage zone header
   is redundant — hide it (its #cd-zone only hosts the blueprints scroll bonus). */
body.radar-body .cd-zone-head { display: none; }

.cd-band-metric {
  display: grid; align-content: center; gap: 1px;
  padding-inline: 8px;
  border-inline-end: 1px solid rgba(103, 217, 255, 0.16);
  text-align: center;
}
.cd-band-metric strong { font: 800 30px/1 "JetBrains Mono", monospace; color: var(--cd-accent); }
.cd-band-metric small { font-size: 11px; color: var(--cd-dim); }
.cd-band-clear {
  margin-bottom: 6px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--cd-line); background: transparent;
  color: var(--cd-accent); font: 600 11px "IBM Plex Sans Arabic", sans-serif; cursor: pointer;
}
.cd-band-clear:hover { background: rgba(103, 217, 255, 0.08); }

/* Feed wrapper holds the scroller + overlay nav arrows + a position counter. */
.cd-feed-wrap {
  position: relative; min-width: 0; min-height: 0;
  height: 100%; max-height: 100%;
  overflow: hidden;
}
.cd-opp-feed {
  display: flex; align-items: stretch; gap: 10px;
  overflow-x: auto; overflow-y: auto; height: 100%; max-height: 100%;
  padding: 8px 58px; box-sizing: border-box; /* clear arrows + frame (no left-edge clip) */
  /* NOTE: no scroll-snap-type / scroll-behavior:smooth here — both break
     programmatic scrollLeft in RTL on some engines. The arrows animate the
     scroll in JS (wireFeed) instead. */
  scrollbar-width: none; -ms-overflow-style: none; outline: none;
  -webkit-overflow-scrolling: touch;
  /* soft fade at both edges so chips melt under the arrows */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 54px, #000 calc(100% - 54px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 54px, #000 calc(100% - 54px), transparent);
}
.cd-opp-feed::-webkit-scrollbar { display: none; }

/* Prev/next arrows — circular HUD buttons overlaying the feed edges. */
.cd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--cd-line-strong);
  background: rgba(8, 18, 28, 0.86); color: var(--cd-accent);
  cursor: pointer; transition: 160ms ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.cd-arrow:hover:not(:disabled) {
  background: var(--cd-accent); color: #021018;
  border-color: var(--cd-accent);
  box-shadow: 0 0 18px rgba(103, 217, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}
.cd-arrow:disabled { opacity: 0.28; cursor: default; }
.cd-arrow-prev { inset-inline-start: 2px; }   /* right edge in RTL — go back */
.cd-arrow-next { inset-inline-end: 2px; }      /* left edge in RTL — go forward */
.cd-feed-count {
  position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  direction: ltr; unicode-bidi: isolate;
  font: 600 10px/1 "JetBrains Mono", monospace; color: var(--cd-dim);
  letter-spacing: 0.05em; pointer-events: none; white-space: nowrap;
  z-index: 2;
}

.cd-opp-chip {
  scroll-snap-align: start;
  flex: 0 0 auto; width: 320px;
  display: grid; align-content: start; gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--cd-line); border-radius: 14px;
  background: rgba(103, 217, 255, 0.035);
  cursor: pointer; overflow: hidden;
  max-height: 100%;
  box-sizing: border-box;
  transition: transform 200ms cubic-bezier(.2,.7,.3,1), box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}
.cd-opp-chip:hover, .cd-opp-chip:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cd-accent);
  background: rgba(103, 217, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(103, 217, 255, 0.22);
  outline: none;
}
.cd-opp-chip:active { transform: translateY(-2px) scale(0.99); }
.cd-chip-featured {
  width: 300px; border-color: var(--cd-accent); background: rgba(103, 217, 255, 0.09);
  box-shadow: 0 0 0 1px rgba(103, 217, 255, 0.25), 0 0 22px rgba(103, 217, 255, 0.14);
  animation: cd-featured-pulse 2.6s ease-in-out infinite;
}
@keyframes cd-featured-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(103, 217, 255,0.25), 0 0 18px rgba(103, 217, 255,0.12); }
  50%      { box-shadow: 0 0 0 1px rgba(103, 217, 255,0.5),  0 0 30px rgba(103, 217, 255,0.3); }
}
.cd-chip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cd-chip-tool { font: 700 14px/1.2 "JetBrains Mono", monospace; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-chip-flag { font: 700 12px/1 "IBM Plex Sans Arabic", sans-serif; color: var(--cd-accent); }
.cd-flag-plan { color: var(--cd-amber); }
.cd-chip-plan { border-color: rgba(255, 181, 71, 0.32); }
.cd-chip-cat { flex: none; padding: 2px 8px; border: 1px solid var(--cd-line); border-radius: 999px;
  font-size: 10.5px; color: var(--cd-accent); white-space: nowrap; }
.cd-chip-score { flex: none; min-width: 34px; padding: 2px 7px; border-radius: 7px; font: 800 13px/1 "JetBrains Mono", monospace; text-align: center; }
.cd-chip-score.is-high { color: #021018; background: var(--cd-accent); }
.cd-chip-score.is-mid { color: #1a1205; background: var(--cd-amber); }
.cd-chip-score.is-low { color: var(--cd-ink); background: rgba(255,255,255,0.08); }
.cd-chip-title { margin: 0; font: 600 13px/1.5 "IBM Plex Sans Arabic", sans-serif; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-chip-line { margin: 0; font-size: 12px; line-height: 1.5; color: var(--cd-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-chip-foot { font: 500 11px/1 "JetBrains Mono", monospace; color: var(--cd-dim); }

/* Openable evidence chips (1–3). Never hide — empty state when missing. */
.cd-evidence {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 6px;
}
.cd-opp-chip .cd-evidence { margin-top: 2px; gap: 5px; }
.cd-ev-chip {
  display: inline-flex; align-items: center; max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--cd-line); border-radius: 999px;
  background: rgba(103, 217, 255, 0.06);
  color: var(--cd-accent);
  font: 600 12px/1.35 "JetBrains Mono", "IBM Plex Sans Arabic", monospace;
  text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cd-ev-chip:hover { background: rgba(103, 217, 255, 0.14); border-color: rgba(103, 217, 255, 0.45); }
.cd-ev-more {
  font: 600 11px/1 "JetBrains Mono", monospace; color: var(--cd-dim);
}
.cd-evidence-empty {
  margin: 0; padding: 4px 0;
  font-size: 11.5px; color: var(--cd-dim);
  border: 0; background: transparent;
}
.cd-opp-chip .cd-evidence-empty { font-size: 10.5px; padding: 0; }
.og-card .cd-evidence, .bp-card .cd-evidence { margin-top: 10px; }
.cd-hero .cd-evidence { margin-top: 12px; }
.cd-d-evidence { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--cd-line); }
.cd-d-evidence h4 {
  margin: 0 0 8px;
  font: 700 12px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em; color: var(--cd-accent);
}
.cd-d-evidence .cd-ev-chip { font-size: 12px; padding: 5px 12px; }

.cd-band-empty { margin: auto; color: var(--cd-dim); font-size: 13px; }
.cd-band-loading { opacity: 0.7; letter-spacing: 0.02em; }

/* ---- Phone: mirror radar.js's #data-panel responsive approach ---------
   (نقاش layer reads clearly on mobile: ~98vw wide, slim metric, narrower
   chips, smaller fonts/arrows). The band's desktop width used a 144px margin
   that crushed it on phones — override to near-full-width and let one chip
   fill the feed so the arrows page through cleanly. */
@media (max-width: 680px) {
  #cd-band {
    width: min(96vw, calc(100% - 8px));
    max-width: 100%;
    grid-template-columns: 74px 1fr;
    height: clamp(122px, 21vh, 176px);
    padding: 7px 8px;
    gap: 6px;
    border-radius: 16px;
    box-sizing: border-box;
  }
  #opportunity-grid,
  #tools-panel,
  #blueprints-panel,
  .cd-zone {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .cd-counters { gap: 8px; }
  .cd-counter b { font-size: 20px; }
  .cd-band-metric { padding-inline: 4px; }
  .cd-band-metric strong { font-size: 22px; }
  .cd-band-metric small { font-size: 10px; }
  .cd-band-clear { font-size: 10px; padding: 2px 7px; }
  .cd-opp-feed {
    padding: 4px 44px; gap: 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }
  .cd-opp-chip { width: min(74vw, 300px); padding: 10px 12px; gap: 5px; }
  .cd-chip-featured { width: min(74vw, 300px); }
  .cd-chip-tool { font-size: 13px; }
  .cd-chip-title { font-size: 12.5px; -webkit-line-clamp: 2; }
  .cd-chip-line { font-size: 11.5px; -webkit-line-clamp: 2; }
  .cd-chip-foot { font-size: 10px; }
  .cd-arrow { width: 32px; height: 32px; }
  .cd-arrow svg { width: 18px; height: 18px; }
  .cd-arrow-prev { inset-inline-start: 0; }
  .cd-arrow-next { inset-inline-end: 0; }
  .cd-feed-count { font-size: 9px; }
  /* The globe's own title/summary is heavy on a phone — give the band + globe
     the room (radar.css already hides .radar-copy on small screens). */
  /* Beat radar.css portrait `.radar-copy { display:block !important }` so the
     mobile UX trio (LIVE/globe/band) keeps room on opportunities/tools. */
  body.radar-body.cd-mine .radar-copy { display: none !important; }
}

/* ===== Detail panel: the full "كيف أربح" plan (opens on chip click) ==== */
.cd-detail { position: fixed; inset: 0; z-index: 200; direction: rtl;
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
.cd-detail-backdrop { position: absolute; inset: 0; border: 0;
  background: rgba(3, 7, 13, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: pointer; }
.cd-detail-card {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: min(480px, 92vw);
  overflow-y: auto;
  padding: 22px clamp(16px, 3vw, 26px) 30px;
  background: linear-gradient(180deg, #08131f, #050b14);
  border-inline-end: 1px solid var(--cd-line-strong);
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.5);
  color: var(--cd-ink);
  animation: cd-slide-in 220ms ease-out;
}
@keyframes cd-slide-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-detail-close {
  position: absolute; inset-inline-end: 14px; top: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--cd-line); background: rgba(255,255,255,0.04);
  color: var(--cd-ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.cd-detail-close:hover { border-color: var(--cd-accent); color: var(--cd-accent); }
.cd-d-kicker { font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: 0.14em; color: var(--cd-accent); }
.cd-d-head h3 { margin: 10px 0 12px; font: 700 22px/1.35 "IBM Plex Sans Arabic", sans-serif; color: #fff; }
.cd-d-head .cd-chip-cat { margin-inline-start: 8px; }
.cd-d-meters { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.cd-d-score { display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--cd-line); }
.cd-d-score b { font: 800 22px/1 "JetBrains Mono", monospace; }
.cd-d-score small { font: 500 11px/1 "JetBrains Mono", monospace; color: var(--cd-dim); }
.cd-d-score.is-high b { color: var(--cd-accent); }
.cd-d-score.is-mid b { color: var(--cd-amber); }
.cd-d-score.is-low b { color: var(--cd-dim); }
.cd-d-diff { font-size: 12px; color: var(--cd-dim); }
.cd-d-body { margin-top: 8px; }
.cd-d-sec { padding: 12px 0; border-top: 1px dashed var(--cd-line); }
.cd-d-sec h4 { margin: 0 0 5px; font: 700 12px/1 "JetBrains Mono", monospace; letter-spacing: 0.04em; color: var(--cd-accent); }
.cd-d-sec p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--cd-ink); }
.cd-d-income { border-radius: 12px; border: 1px solid var(--cd-line-strong); padding: 12px 14px; background: rgba(103, 217, 255, 0.06); }
.cd-d-income h4 { color: var(--cd-amber); }
.cd-d-src {
  display: inline-block; margin-top: 18px; padding: 10px 18px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cd-accent), #2F9DD8);
  color: #021018; font-weight: 700; font-size: 14px; text-decoration: none;
}
.cd-d-src:hover { filter: brightness(1.08); }
body.cd-detail-open { overflow: hidden; }
@media (max-width: 560px) { .cd-detail-card { width: 100vw; } }


/* Mobile/tablet: keep category chips inside the viewport (scroll-x, no bleed). */
@media (max-width: 680px) {
  body.radar-body.cd-mine #opp-controls,
  #opp-controls {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  #opp-controls .category-bar,
  .category-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
}

/* ===== Mobile UX trio (≤430px) ==========================================
   1) LIVE panel: max ~22svh OR one compact row
   2) Globe stays ≥45svh above the bottom band (band must not cover center)
   3) Bottom opportunity band: max ~28svh with internal scroll
   Specialty pill stays visible (see #opp-controls rule above). */
@media (max-width: 430px) {
  /* Reinforce: portrait radar.css uses display:block !important on .radar-copy. */
  body.radar-body.cd-mine .radar-copy { display: none !important; }

  body.radar-body .radar-stage {
    min-height: 100svh;
    height: 100svh;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(28svh + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
  }

  .deck-live-panel {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    width: 100% !important;
    max-height: 22svh;
    margin: 0 0 8px !important;
    transform: none !important;
    overflow: hidden;
    flex: 0 0 auto;
  }
  .deck-live-panel .cd-live-cells {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .deck-live-panel .cd-live-cell {
    min-height: 0 !important;
    padding: 8px 10px !important;
    gap: 2px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: start;
  }
  .deck-live-panel .cd-live-cell + .cd-live-cell {
    border-top: 0 !important;
    border-right: 1px solid rgba(103, 217, 255, 0.12);
  }
  .deck-live-panel .cd-live-cell b { font-size: 18px !important; line-height: 1.1; }
  .deck-live-panel .cd-live-cell small { font-size: 10px !important; }
  .deck-live-panel .cd-live-fresh { font-size: 10px; padding: 2px 8px; }

  body.radar-body.cd-mine #opp-controls,
  #opp-controls {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    z-index: 50;
    flex: 0 0 auto;
    box-sizing: border-box;
    overflow-x: hidden; /* contain category row — no page bleed */
  }
  #opp-controls .persona-trigger {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
  #opp-controls .persona-menu {
    min-width: min(240px, calc(100vw - 24px));
    max-height: 50svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #opp-controls .persona-option {
    min-height: 44px;
    padding: 12px 14px;
    font-size: 15px;
  }
  #opp-controls .category-bar,
  .category-bar {
    flex: 1 1 auto;
    flex-wrap: nowrap !important; /* beat radar.css portrait wrap */
    overflow-x: auto !important;
    overflow-y: hidden;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  #opp-controls .category-bar::-webkit-scrollbar { display: none; }
  #opp-controls .category-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
  }

  body.radar-body .radar-world {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: min(88vw, 46svh) !important;
    max-width: none !important;
    min-height: 45svh !important;
    height: 45svh !important;
    margin: auto !important;
    /* Keep light touch parallax (±8px via --parallax-*) — do NOT kill globeFloat/scanSweep/orbits
       (those live on child elements). Trio sizing stays 45svh. */
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px)) !important;
    transition: transform 180ms ease-out;
    flex: 1 1 auto;
    align-self: center;
  }
  body.radar-body .radar-world .earth-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Explicitly keep globeFloat on mobile — never disable for liveliness. */
    animation: globeFloat 16s ease-in-out infinite;
  }
  body.radar-body .radar-world .earth-scan {
    animation: scanSweep 14s linear infinite;
  }
  body.radar-body .radar-world .scan-orbit {
    animation: scanOrbitSpin var(--orbit-speed) linear infinite, scanOrbitBlink 3.6s ease-in-out infinite;
  }

  /* 3–5 globe tags around the earth (JS nests #radar-tags inside .radar-world). */
  body.radar-body .radar-world .radar-tags,
  body.radar-body .radar-tags {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 16;
    pointer-events: none;
  }
  body.radar-body .radar-tags .tag {
    pointer-events: auto;
    font-size: 11px;
    padding: 3px 6px;
    max-width: 42%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.radar-body .radar-tags .tag em { font-size: 9px; }
  body.radar-body .radar-tags .tag:nth-child(n+6) { display: none !important; }
  body.radar-body .radar-tags .tag-pos-0 { left: 10%; top: 22%; }
  body.radar-body .radar-tags .tag-pos-1 { left: 88%; top: 24%; }
  body.radar-body .radar-tags .tag-pos-2 { left: 6%; top: 52%; }
  body.radar-body .radar-tags .tag-pos-3 { left: 92%; top: 55%; }
  body.radar-body .radar-tags .tag-pos-4 { left: 50%; top: 12%; }

  /* Light particles — visible but quiet (JS also reduces count/alpha). */
  body.radar-body .radar-particles {
    display: block !important;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
  }

  /* Keep spokes/beams/strip hidden on phone — tags+particles are enough liveliness. */
  body.radar-body .source-spokes,
  body.radar-body .floating-strip,
  body.radar-body .data-beams {
    display: none !important;
  }

  body.radar-body.cd-mine #cd-band,
  #cd-band {
    position: absolute !important;
    left: 50% !important;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    width: min(96vw, calc(100% - 8px)) !important;
    height: auto !important;
    max-height: 28svh !important;
    grid-template-columns: 64px 1fr !important;
    overflow: hidden;
    z-index: 70;
  }
  #cd-band .cd-feed-wrap {
    min-height: 0;
    max-height: calc(28svh - 14px);
    overflow: hidden;
  }
  #cd-band .cd-opp-feed {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 100%;
  }
  #cd-band .cd-opp-chip {
    width: min(70vw, 260px);
  }

  /* Evidence chips: ≥44×44 touch targets on phone; desktop padding unchanged. */
  .cd-ev-chip,
  .cd-d-evidence .cd-ev-chip {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.2;
  }
  .cd-evidence {
    gap: 8px;
  }
  .cd-opp-chip .cd-evidence {
    gap: 8px;
  }

  /* Waitlist CTA sits below the globe (above the 28svh band), never over globe center. */
  body.radar-body .radar-subscribe-cta {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    bottom: calc(28svh + 10px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    z-index: 60;
    max-width: min(92vw, 340px);
    justify-content: center;
  }
}

/* Mobile liveliness respects reduced motion (trio sizing untouched). */
@media (max-width: 430px) and (prefers-reduced-motion: reduce) {
  body.radar-body .radar-world {
    transition: none !important;
    transform: none !important;
  }
  body.radar-body .radar-world .earth-image,
  body.radar-body .radar-world .earth-scan,
  body.radar-body .radar-world .scan-orbit,
  body.radar-body .radar-tags .tag {
    animation: none !important;
  }
  body.radar-body .radar-particles {
    display: none !important;
  }
}

/* specialty UI removed — keep category-only layout without empty gap */
#persona-select, #persona-trigger, #persona-menu, .persona-select, .persona-trigger, .persona-menu { display: none !important; }
