:root {
  --radar-cyan: #6eefff;
  --radar-blue: #4da3ff;
  --radar-violet: #a987ff;
  --radar-orange: #ff9a42;
  --radar-green: #61f18b;
  --radar-glass: rgba(166, 190, 230, 0.13);
}

html,
body {
  overflow: hidden;
}

.radar-body {
  min-height: 100vh;
  background: #000;
  color: #eef7ff;
}

.radar-stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  --layer-accent: var(--radar-cyan);
  --layer-accent-soft: rgba(110, 239, 255, 0.16);
}

.layer-trending .radar-stage {
  --layer-accent: var(--radar-orange);
  --layer-accent-soft: rgba(255, 154, 66, 0.18);
}

.layer-opportunities .radar-stage {
  --layer-accent: var(--radar-green);
  --layer-accent-soft: rgba(97, 241, 139, 0.18);
}

.layer-sources .radar-stage {
  --layer-accent: var(--radar-blue);
  --layer-accent-soft: rgba(77, 163, 255, 0.18);
}

.layer-signals .radar-stage {
  --layer-accent: rgba(255, 255, 255, 0.92);
  --layer-accent-soft: rgba(255, 255, 255, 0.13);
}

.layer-trending .radar-node {
  background: var(--radar-orange);
  box-shadow: 0 0 0 7px rgba(255, 154, 66, 0.12), 0 0 34px rgba(255, 154, 66, 0.88);
}

.layer-radar .radar-node,
.layer-opportunities .radar-node {
  background: var(--radar-green);
  box-shadow: 0 0 0 7px rgba(97, 241, 139, 0.14), 0 0 34px rgba(97, 241, 139, 0.9);
}

.layer-signals .earth-halo {
  animation: globeHalo 2.2s ease-in-out infinite;
}

.radar-stage::before,
.radar-stage::after {
  content: none;
}

.radar-particles {
  position: absolute;
  /* T19: keep particles inside the content zone so they don't paint
     over the header or active panel. */
  inset: var(--zone-header-h) 0 calc(var(--zone-active-h) + var(--zone-footer-h)) 0;
  z-index: var(--z-particles);
  pointer-events: none;
}

.radar-nav {
  /* Keep the nav on a simple Safari-safe vertical anchor. */
  position: absolute;
  inset-inline: 50% auto;
  top: clamp(10px, 2.2svh, 24px);
  transform: translateX(50%);
  z-index: var(--z-radar-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(760px, calc(100vw - 32px));
  min-width: 0;
  max-width: calc(100vw - 32px);
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(43, 45, 56, 0.78), rgba(18, 20, 28, 0.72));
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.radar-nav button {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(238, 247, 255, 0.58);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  transition: 180ms ease;
}

.radar-nav button.muted-nav {
  min-width: 0;
  color: rgba(238, 247, 255, 0.36);
  transform: scale(0.94);
}

.radar-nav button.active,
.radar-nav button:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 0 34px rgba(103, 173, 255, 0.12);
}

.radar-copy {
  position: absolute;
  z-index: var(--z-radar-copy);
  top: calc(var(--zone-header-h) + 8px);
  left: var(--rail-side-x);
  right: auto;
  width: min(440px, calc(100vw - 420px));
  text-align: start;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1024px) {
  .radar-copy {
    width: calc(100vw - 28px);
    max-width: 520px;
  }
}

.radar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(204, 224, 255, 0.78);
  font: 700 14px/1.1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.radar-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--radar-green);
  box-shadow: 0 0 18px var(--radar-green);
}

.radar-copy h1 {
  margin-top: 12px;
  font-size: clamp(34px, 3vw, 56px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: 0;
  max-width: 12em;
  text-shadow: 0 0 24px rgba(118, 173, 255, 0.22);
}

.radar-copy p {
  margin-top: 14px;
  color: rgba(218, 231, 255, 0.72);
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.65;
  max-width: 32em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radar-world {
  /* Safari-safe sizing: avoid CSS calc division/multiplication so the globe
     never falls back to top:auto or a shrink-wrapped width. */
  position: absolute;
  z-index: 9;
  left: 50%;
  top: clamp(300px, 40svh, 460px);
  width: min(64vw, 82vh, 960px);
  width: min(64vw, 82svh, 960px);
  max-width: 960px;
  aspect-ratio: 1.42;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.radar-world::after {
  content: "";
  position: absolute;
  z-index: 12;
  inset: 21% 29%;
  border-radius: 50%;
  border: 1px solid rgba(126, 235, 255, 0);
  background: radial-gradient(circle, transparent 54%, rgba(126, 235, 255, 0.12) 58%, transparent 64%);
  opacity: 0;
  pointer-events: none;
}

.radar-beat .radar-world::after {
  animation: worldHeartbeat 1.35s ease-out both;
}

.earth-aura {
  display: none;
}

.earth-halo {
  display: none;
}

.radar-disc {
  position: absolute;
  z-index: 4;
  inset: 14% 23%;
  border-radius: 50%;
  opacity: 0.38;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle, transparent 0 12%, rgba(110, 239, 255, 0.12) 12.2% 12.55%, transparent 12.9% 24%),
    conic-gradient(from 0deg, transparent 0 76%, rgba(110, 239, 255, 0.22) 82%, transparent 90% 100%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 22px rgba(110, 239, 255, 0.26));
  animation: radarDisc 10s linear infinite;
}

.earth-image {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  animation: globeFloat 16s ease-in-out infinite;
}

.earth-overlay-lines {
  position: absolute;
  z-index: 5;
  inset: 18% 26%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(95deg, transparent 0 42%, rgba(110, 239, 255, 0.12) 43%, transparent 45% 100%),
    linear-gradient(25deg, transparent 0 56%, rgba(97, 241, 139, 0.11) 57%, transparent 59% 100%),
    radial-gradient(circle at 38% 48%, rgba(110, 239, 255, 0.85) 0 2px, transparent 4px),
    radial-gradient(circle at 56% 38%, rgba(97, 241, 139, 0.72) 0 2px, transparent 4px),
    radial-gradient(circle at 63% 62%, rgba(255, 255, 255, 0.68) 0 1px, transparent 3px);
  mix-blend-mode: screen;
  animation: overlayPulse 5.8s ease-in-out infinite;
}

.data-beams {
  display: none;
}

.beam {
  position: absolute;
  height: 1px;
  transform-origin: 0 50%;
  background:
    linear-gradient(90deg, transparent 0%, rgba(111, 238, 255, 0.12) 18%, rgba(111, 238, 255, 0.74) 52%, rgba(124, 255, 178, 0.18) 78%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(111, 238, 255, 0.8));
  opacity: 0.82;
  overflow: hidden;
}

.beam::before,
.beam::after,
.beam i {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #8ffff4;
  box-shadow: 0 0 18px #8ffff4, 0 0 38px rgba(111, 238, 255, 0.55);
}

.beam::before {
  left: 0;
}

.beam::after {
  left: 34%;
  animation: beamPacket 3.8s linear infinite;
}

.beam i {
  right: -2px;
  width: 11px;
  height: 11px;
  background: transparent;
  border-radius: 2px;
  border-top: 2px solid #8ffff4;
  border-right: 2px solid #8ffff4;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 16px rgba(143, 255, 244, 0.75);
}

.beam-panel {
  left: 50%;
  top: 65%;
  width: 18vw;
  transform: rotate(91deg);
  opacity: 0.46;
}

.earth-scan {
  position: absolute;
  z-index: 5;
  inset: 18% 25%;
  border-radius: 50%;
  background: linear-gradient(110deg, transparent 0 46%, rgba(145, 255, 250, 0.18) 50%, transparent 54% 100%);
  mix-blend-mode: screen;
  transform: rotate(-16deg);
  animation: scanSweep 14s linear infinite;
  opacity: 0.32;
  pointer-events: none;
}

.always-on-ring {
  position: absolute;
  z-index: 8;
  /* T17: top inset increased from 19% to 28% so the dashed ring stays
     below the floating nav even on shorter viewports (≤720px) where
     .radar-world overflows the stage. */
  inset: 28% 27% 19% 27%;
  border-radius: 50%;
  pointer-events: none;
  border: 1px dashed rgba(122, 241, 255, 0.30);
  opacity: 0.78;
  animation: alwaysRotate 18s linear infinite;
}

.always-on-ring span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ecffff;
  box-shadow: 0 0 14px rgba(126, 235, 255, 0.92), 0 0 28px rgba(97, 241, 139, 0.42);
}

.always-on-ring span:nth-child(1) { left: 15%; top: 18%; }
.always-on-ring span:nth-child(2) { right: 10%; top: 48%; animation-delay: -1s; }
.always-on-ring span:nth-child(3) { left: 52%; bottom: 6%; animation-delay: -2s; }

.scan-orbits {
  position: absolute;
  z-index: 8;
  /* T17: top inset increased from 18% to 30% so the largest orbit
     (scan-orbit-c, 78%×50%) cannot intersect the floating nav at top:28px
     on viewports where .radar-world overflows the stage. */
  inset: 30% 25% 18% 25%;
  pointer-events: none;
}

.scan-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-w);
  height: var(--orbit-h);
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(126, 235, 255, 0.78);
  border-right-color: rgba(97, 241, 139, 0.34);
  transform: translate(-50%, -50%) rotate(var(--orbit-r));
  opacity: 0.72;
  filter: drop-shadow(0 0 8px rgba(126, 235, 255, 0.48));
  animation: scanOrbitSpin var(--orbit-speed) linear infinite, scanOrbitBlink 3.6s ease-in-out infinite;
}

.scan-orbit::after {
  content: "";
  position: absolute;
  right: 9%;
  top: 23%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #efffff;
  box-shadow: 0 0 12px #efffff, 0 0 28px rgba(126, 235, 255, 0.9);
}

.scan-orbit::before {
  content: "";
  position: absolute;
  right: 7%;
  top: 21%;
  width: 42px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(126, 235, 255, 0.74), transparent);
  filter: drop-shadow(0 0 8px rgba(126, 235, 255, 0.72));
  transform: rotate(-12deg);
  opacity: 0.72;
}

.scan-orbit-a {
  --orbit-w: 74%;
  --orbit-h: 32%;
  --orbit-r: -18deg;
  --orbit-speed: 12s;
}

.scan-orbit-b {
  --orbit-w: 62%;
  --orbit-h: 44%;
  --orbit-r: 34deg;
  --orbit-speed: 15s;
  animation-delay: -2.4s, -1s;
}

.scan-orbit-c {
  --orbit-w: 78%;
  --orbit-h: 50%;
  --orbit-r: 7deg;
  --orbit-speed: 19s;
  border-top-color: rgba(169, 135, 255, 0.52);
  border-right-color: rgba(126, 235, 255, 0.28);
  animation-delay: -5s, -2s;
}

.scan-flashes {
  position: absolute;
  z-index: 10;
  /* T17: top inset increased from 18% to 26% so flash particles
     stay clearly below the floating nav. */
  inset: 26% 26% 18% 26%;
  border-radius: 50%;
  pointer-events: none;
}

.scan-flash {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(236, 255, 255, 0.95);
  box-shadow:
    0 0 0 0 rgba(126, 235, 255, 0.62),
    0 0 16px rgba(126, 235, 255, 0.88),
    0 0 34px rgba(97, 241, 139, 0.36);
  opacity: 0;
  animation: scanFlash 4.8s ease-in-out infinite;
}

.flash-a { left: 29%; top: 45%; animation-delay: -0.4s; }
.flash-b { left: 55%; top: 33%; animation-delay: -1.7s; }
.flash-c { left: 66%; top: 59%; animation-delay: -2.8s; }
.flash-d { left: 43%; top: 70%; animation-delay: -3.9s; }

.earth-pings {
  position: absolute;
  z-index: 11;
  /* T17: top inset increased from 18% to 26% so ping particles
     don't appear above the floating nav. overflow:hidden already clips,
     but we want them positioned correctly to begin with. */
  inset: 26% 26% 18% 26%;
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}

.earth-ping {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(237, 255, 255, 0.96);
  box-shadow: 0 0 22px rgba(126, 235, 255, 0.98), 0 0 48px rgba(97, 241, 139, 0.34);
  opacity: 0;
  animation: earthPing 3.8s ease-out infinite;
}

.earth-ping::after {
  content: "";
  position: absolute;
  inset: -17px;
  border-radius: 50%;
  border: 1.5px solid rgba(126, 235, 255, 0.68);
  transform: scale(0.2);
  opacity: 0;
  animation: pingRing 3.8s ease-out infinite;
}

.ping-a { left: 35%; top: 46%; animation-delay: -0.1s; }
.ping-a::after { animation-delay: -0.1s; }
.ping-b { left: 53%; top: 38%; animation-delay: -0.9s; }
.ping-b::after { animation-delay: -0.9s; }
.ping-c { left: 62%; top: 57%; animation-delay: -1.7s; }
.ping-c::after { animation-delay: -1.7s; }
.ping-d { left: 46%; top: 69%; animation-delay: -2.4s; }
.ping-d::after { animation-delay: -2.4s; }
.ping-e { left: 72%; top: 50%; animation-delay: -3.1s; }
.ping-e::after { animation-delay: -3.1s; }

.always-on-badge {
  position: absolute;
  z-index: 9;
  right: 25%;
  top: 28%;
  display: grid;
  gap: 2px;
  min-width: 64px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 235, 255, 0.28);
  background: rgba(3, 13, 20, 0.42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: rgba(237, 255, 255, 0.92);
  text-align: center;
  pointer-events: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.10), 0 0 18px rgba(126, 235, 255, 0.12);
  animation: alwaysBadge 3.6s ease-in-out infinite;
}

.always-on-badge b {
  font: 700 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
}

.always-on-badge small {
  color: rgba(126, 235, 255, 0.74);
  font: 700 8px/1 var(--font-mono);
  letter-spacing: 0.16em;
}

.orbit {
  display: none;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8ffff4;
  box-shadow: 0 0 16px #8ffff4, 0 0 34px rgba(97, 241, 255, 0.65);
}

.orbit::before {
  left: 12%;
  top: 12%;
}

.orbit::after {
  right: 18%;
  bottom: 9%;
  width: 6px;
  height: 6px;
}

.orbit-two {
  --r: 16deg;
  width: 70%;
  height: 34%;
  border-top-color: rgba(164, 125, 255, 0.72);
  animation-duration: 32s, 18s;
  animation-delay: -2.5s, -1.2s;
}

.orbit-three {
  --r: -24deg;
  width: 58%;
  height: 26%;
  border-top-color: rgba(95, 255, 150, 0.62);
  animation-duration: 30s, 16s;
  animation-delay: -5s, -2.4s;
}

.orbit-four {
  --r: 44deg;
  width: 68%;
  height: 38%;
  border-top-color: rgba(102, 220, 255, 0.48);
  border-bottom-color: rgba(102, 220, 255, 0.10);
  animation-duration: 34s, 16s;
  animation-delay: -9s, -4s;
}

.orbit-five {
  --r: -52deg;
  width: 54%;
  height: 34%;
  border-top-color: rgba(124, 255, 178, 0.42);
  border-bottom-color: rgba(124, 255, 178, 0.08);
  animation-duration: 31s, 15s;
  animation-delay: -13s, -7s;
}

.radar-node {
  position: absolute;
  z-index: 7;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #87fff1;
  box-shadow: 0 0 0 7px rgba(103, 255, 237, 0.11), 0 0 32px rgba(103, 255, 237, 0.9);
  animation: nodePulse 5s ease-in-out infinite;
  cursor: pointer;
}

.radar-node.signal-active {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.9);
  box-shadow:
    0 0 0 9px rgba(126, 235, 255, 0.16),
    0 0 32px rgba(126, 235, 255, 1),
    0 0 58px rgba(97, 241, 139, 0.42);
}

.node-a { left: 32%; top: 44%; }
.node-b { left: 54%; top: 36%; animation-delay: -0.6s; }
.node-c { left: 62%; top: 62%; animation-delay: -1.2s; }
.node-d { left: 45%; top: 70%; animation-delay: -1.8s; }

.interaction-hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(360px, 72%);
  padding: 8px 13px;
  border: 1px solid rgba(126, 235, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.42);
  color: rgba(225, 239, 255, 0.58);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
  animation: hintPulse 5.5s ease-in-out infinite;
}

.radar-tags {
  position: absolute;
  inset: 0;
  z-index: 13;
  pointer-events: none;
}

.tag {
  position: absolute;
  color: rgba(210, 229, 255, 0.64);
  font-size: clamp(14px, 1.06vw, 18px);
  font-weight: 600;
  letter-spacing: 0;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  text-shadow: 0 0 16px rgba(110, 167, 255, 0.34);
  transform: translate(-50%, -50%);
  animation: tagFloat 8s ease-in-out infinite;
  transition: opacity 260ms ease, transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
  pointer-events: auto;
}

.tag:hover {
  color: #fff;
  border-color: rgba(126, 235, 255, 0.24);
  background: rgba(8, 18, 31, 0.48);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(126, 235, 255, 0.13);
}

.tag.signal-active {
  color: #fff;
  border-color: rgba(126, 235, 255, 0.38);
  background: rgba(126, 235, 255, 0.10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 26px rgba(126, 235, 255, 0.24);
}

.tag.signal-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.25);
}

.tag em {
  display: block;
  margin-top: 2px;
  color: rgba(229, 241, 255, 0.46);
  font-style: normal;
  font: 600 11px/1.1 var(--font-mono);
  white-space: nowrap;
}

.tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--radar-cyan);
  box-shadow: 0 0 12px var(--radar-cyan);
  vertical-align: middle;
}

.tag.hot {
  color: rgba(255, 227, 204, 0.82);
  border-color: rgba(255, 154, 66, 0.28);
}

.tag.hot::before {
  background: var(--radar-orange);
  box-shadow: 0 0 14px var(--radar-orange);
}

.tag.opportunity {
  color: rgba(209, 255, 222, 0.82);
  border-color: rgba(97, 241, 139, 0.28);
}

.tag.opportunity::before {
  background: var(--radar-green);
  box-shadow: 0 0 14px var(--radar-green);
}

.tag-pos-0 { left: 38%; top: 25%; animation-delay: -0.4s; }
.tag-pos-1 { left: 59%; top: 26%; animation-delay: -1.7s; }
.tag-pos-2 { left: 34%; top: 43%; animation-delay: -2.4s; }
.tag-pos-3 { left: 65%; top: 45%; animation-delay: -3.1s; }
.tag-pos-4 { left: 39%; top: 63%; animation-delay: -4.2s; }
.tag-pos-5 { left: 58%; top: 64%; animation-delay: -5.4s; }
.tag-pos-6 { left: 48%; top: 20%; animation-delay: -6.4s; }
.tag-pos-7 { left: 49%; top: 72%; animation-delay: -7.2s; }

.source-spokes {
  display: none;
}

.source-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: 1px;
  transform-origin: 0 50%;
  transform: rotate(var(--r));
  background: linear-gradient(90deg, transparent, rgba(92, 182, 255, 0.72), transparent);
  filter: drop-shadow(0 0 10px rgba(92, 182, 255, 0.58));
  animation: drawLine 2.8s ease-in-out infinite;
}

.layer-sources .source-spokes {
  display: none;
}

.floating-strip {
  /* T19: pinned just above the active panel zone; never overlaps it. */
  position: absolute;
  z-index: var(--z-floating-strip);
  left: 50%;
  bottom: calc(var(--zone-active-h) + var(--zone-footer-h) - 16px);
  width: min(540px, 86vw);
  transform: translateX(-50%);
  min-height: 46px;
  display: grid;
  place-items: center;
  color: rgba(255, 239, 221, 0.9);
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.floating-strip:not(:empty) {
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 66, 0.22);
  background: linear-gradient(90deg, transparent, rgba(255, 154, 66, 0.10), transparent);
  box-shadow: 0 0 34px rgba(255, 154, 66, 0.10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: stripArrive 520ms ease both;
}

.live-row {
  width: min(520px, 38vw);
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 13, 21, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 28px rgba(255, 255, 255, 0.08);
  color: rgba(240, 247, 255, 0.84);
  animation: liveIn 640ms ease both;
}

.value-now-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(860px, 64vw);
  padding: 8px;
  border-radius: 20px;
  border: 1px solid rgba(97, 241, 139, 0.18);
  background: rgba(5, 13, 20, 0.66);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 32px rgba(97, 241, 139, 0.08);
}

.value-now-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(228, 239, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}

.value-now-row b {
  color: rgba(97, 241, 139, 0.92);
  font: 700 11px/1.1 var(--font-mono);
}

.live-arrival {
  display: grid;
  gap: 4px;
  width: min(640px, 46vw);
  border-color: rgba(126, 235, 255, 0.30);
  background:
    linear-gradient(90deg, rgba(126, 235, 255, 0.12), rgba(97, 241, 139, 0.07), rgba(255, 154, 66, 0.08)),
    rgba(7, 13, 21, 0.72);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 0 34px rgba(126, 235, 255, 0.18),
    0 18px 60px rgba(0, 0, 0, 0.34);
}

.live-arrival span {
  color: rgba(126, 235, 255, 0.92);
  font: 700 12px/1 var(--font-mono);
  text-transform: uppercase;
}

.live-arrival b {
  color: #fff;
  font-size: 14px;
}

.live-arrival p {
  color: rgba(242, 248, 255, 0.90);
  font-size: 15px;
  line-height: 1.45;
}

.live-arrival small {
  color: rgba(97, 241, 139, 0.82);
  font-size: 13px;
}

.has-live-arrival .earth-ping,
.has-live-arrival .scan-flash {
  animation-duration: 1.35s;
}

.has-live-arrival .always-on-badge {
  border-color: rgba(126, 235, 255, 0.48);
  box-shadow: 0 0 32px rgba(126, 235, 255, 0.28);
}

.radar-lang {
  /* T19: lang toggle anchored to header zone, side gutter responsive. */
  position: absolute;
  inset-inline-end: var(--rail-side-x);
  top: clamp(10px, 2.2svh, 24px);
  z-index: var(--z-radar-lang);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(18, 20, 28, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.radar-lang button {
  min-width: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: rgba(238, 247, 255, 0.55);
  transition: 180ms ease;
}

.radar-lang button.active {
  color: #001017;
  background: linear-gradient(180deg, var(--radar-cyan), #4cc8e0);
  box-shadow: 0 0 24px rgba(110, 239, 255, 0.45), inset 0 1px rgba(255, 255, 255, 0.4);
}

.radar-lang button:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.value-rail {
  /* T19: anchored to header zone, side gutter responsive. */
  position: absolute;
  z-index: var(--z-value-rail);
  top: calc(var(--zone-header-h) + 4px);
  right: var(--rail-side-x);
  width: min(360px, calc(100vw - 420px));
  padding: 14px 16px;
  border: 1px solid rgba(126, 235, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.58), rgba(5, 10, 18, 0.38));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.value-rail p {
  margin: 0;
  color: rgba(236, 247, 255, 0.84);
  font-size: 13px;
  line-height: 1.7;
}

.value-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.value-stats span {
  min-width: 0;
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgba(126, 235, 255, 0.14);
}

.value-stats b {
  display: block;
  color: var(--layer-accent);
  font: 700 18px/1 var(--font-mono);
  white-space: nowrap;
}

.value-stats small {
  display: block;
  margin-top: 6px;
  color: rgba(218, 231, 255, 0.52);
  font-size: 12px;
  line-height: 1.35;
}

html[dir="rtl"] .value-rail {
  font-family: 'IBM Plex Sans Arabic', var(--font-sans);
}

html[dir="rtl"] .value-stats b {
  font-family: 'IBM Plex Sans Arabic', var(--font-sans);
  font-weight: 750;
  letter-spacing: 0;
}

.glass-card {
  position: absolute;
  z-index: 14;
  width: 260px;
  min-height: 132px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(190, 210, 255, 0.18), rgba(98, 113, 152, 0.11));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 24px 80px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: 260ms ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--layer-accent) 42%, rgba(255, 255, 255, 0.20));
  background: linear-gradient(180deg, rgba(205, 226, 255, 0.22), rgba(70, 98, 135, 0.13));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 28px 90px rgba(0, 0, 0, 0.34), 0 0 34px var(--layer-accent-soft);
}

.glass-card:hover::before {
  inset-inline-start: 118%;
  opacity: 1;
}

.glass-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(238, 247, 255, 0.95);
  letter-spacing: 0;
}

.card-source {
  display: inline-flex;
  margin-inline-start: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(126, 235, 255, 0.22);
  color: rgba(126, 235, 255, 0.82);
  background: rgba(126, 235, 255, 0.07);
  font: 700 12px/1.3 var(--font-mono);
  vertical-align: middle;
}

.glass-card p,
.glass-card li {
  color: rgba(230, 239, 255, 0.78);
  font-size: 12.5px;
  line-height: 1.65;
}

.layer-opportunities .glass-card {
  width: 310px;
  min-height: 208px;
}

.layer-opportunities .glass-card ul {
  display: grid;
  gap: 7px;
}

.opportunity-reason {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(97, 241, 139, 0.14);
  color: rgba(209, 255, 222, 0.72) !important;
}

.opportunity-proof {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(97, 241, 139, 0.22);
  color: rgba(97, 241, 139, 0.86) !important;
  background: rgba(97, 241, 139, 0.07);
  font: 700 12px/1.2 var(--font-mono) !important;
}

html[dir="rtl"] .glass-card {
  font-family: 'IBM Plex Sans Arabic', var(--font-sans);
}

html[dir="rtl"] .glass-card h3 {
  font-size: 16px;
  line-height: 1.5;
}

html[dir="rtl"] .glass-card p,
html[dir="rtl"] .glass-card li {
  font-size: 13px;
  line-height: 1.85;
}

html[dir="rtl"] .radar-copy h1 {
  font-family: 'IBM Plex Sans Arabic', var(--font-sans);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  max-width: 12.5em;
}

html[dir="rtl"] .radar-copy p {
  font-family: 'IBM Plex Sans Arabic', var(--font-sans);
  line-height: 1.72;
}

html[dir="rtl"] .radar-nav button {
  font-family: 'IBM Plex Sans Arabic', var(--font-sans);
  font-weight: 650;
  letter-spacing: 0;
}

.glass-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.glass-card b {
  color: #fff;
  font-weight: 600;
}

/* Hide intro copy on opportunities layer — chips below carry the brief */
.layer-opportunities .radar-copy {
  display: none;
}

.layer-opportunities .floating-strip {
  display: none;
}

.layer-opportunities .data-panel {
  bottom: 18px;
  height: 136px;
  max-height: 136px;
  grid-template-columns: 132px 1fr;
  border-color: rgba(97, 241, 139, 0.20);
  background:
    linear-gradient(180deg, rgba(9, 22, 18, 0.72), rgba(3, 8, 13, 0.62)),
    rgba(255, 255, 255, 0.035);
}

.layer-opportunities .panel-feed > .signal-chip {
  height: 110px;
  min-height: 110px;
  max-height: 110px;
  flex-basis: clamp(430px, 31vw, 560px);
}

.layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity {
  height: 110px;
  min-height: 110px;
  max-height: 110px;
  flex-basis: clamp(520px, 38vw, 680px);
}

/* Mute decorative tags on this layer */
.layer-opportunities .radar-tags,
.layer-opportunities .source-spokes {
  opacity: 0.18;
  pointer-events: none;
}

/* Hint that chips are now the entry point to details */
.layer-opportunities .data-panel {
  cursor: default;
}

.layer-opportunities .signal-chip {
  cursor: pointer;
  position: relative;
  transition: 220ms ease;
}

.layer-opportunities .signal-chip::after {
  content: none;
  position: absolute;
  inset-inline-end: 12px;
  bottom: 10px;
  font-size: 14px;
  color: rgba(126, 235, 255, 0.55);
  transition: 220ms ease;
}

.layer-opportunities .signal-chip:hover {
  border-color: rgba(126, 235, 255, 0.45);
  background: rgba(15, 25, 40, 0.78);
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45), 0 0 22px rgba(126, 235, 255, 0.20);
}

.layer-opportunities .signal-chip:hover::after {
  color: var(--radar-cyan);
  transform: translate(-2px, -2px);
}

/* === Detail side panel — alternates left/right per chip index === */
.detail-side {
  /* T19: anchored to header (top) and active panel (bottom). */
  position: fixed;
  z-index: var(--z-detail-side);
  top: calc(var(--zone-header-h) + 4px);
  bottom: calc(var(--zone-active-h) + var(--zone-footer-h) - 4px);
  width: min(380px, calc(100vw - 40px));
  padding: 24px 26px;
  overflow-y: auto;
  border: 1px solid rgba(110, 239, 255, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 18, 28, 0.92), rgba(4, 10, 18, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(110, 239, 255, 0.08), transparent 60%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.10),
    0 0 60px rgba(110, 239, 255, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  opacity: 0;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 16;
  display: block;
  border: 0;
  background: transparent;
  cursor: default;
}

.detail-backdrop[hidden] {
  display: none;
}

/* Default + explicit right side: panel on right of the globe */
.detail-side,
.detail-side[data-side="right"] {
  right: 22px;
  left: auto;
  transform: translateX(112%);
}

/* Alternate: panel on left of the globe (cyan→green visual hint) */
.detail-side[data-side="left"] {
  left: 22px;
  right: auto;
  transform: translateX(-112%);
  border-color: rgba(97, 241, 139, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 22, 18, 0.92), rgba(4, 14, 10, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(97, 241, 139, 0.10), transparent 60%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.10),
    0 0 60px rgba(97, 241, 139, 0.10);
}

.detail-side[data-side="left"] .detail-source {
  background: rgba(97, 241, 139, 0.10);
  border-color: rgba(97, 241, 139, 0.32);
  color: var(--radar-green);
}

.detail-side[data-side="left"] .detail-link {
  background: linear-gradient(180deg, var(--radar-green), #34c168);
  box-shadow: 0 0 24px rgba(97, 241, 139, 0.32);
}

.detail-side[hidden] {
  display: none;
}

body:not(.detail-active) .detail-side {
  display: none !important;
}

.detail-side.open {
  display: block;
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 880px) {
  .detail-side,
  .detail-side[data-side="right"],
  .detail-side[data-side="left"] {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 70vh;
    transform: translateY(110%);
  }
  .detail-side.open { transform: translateY(0); }
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 38px;
  margin-bottom: 16px;
  padding-inline-end: 40px;
}

.detail-source {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(126, 235, 255, 0.10);
  border: 1px solid rgba(126, 235, 255, 0.28);
  color: var(--radar-cyan);
  font: 700 12px/1.15 var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  direction: auto;
  unicode-bidi: isolate;
}

.detail-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 20, 28, 0.88);
  color: rgba(238, 247, 255, 0.92);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.08);
  transition: 180ms ease;
}

.detail-close:hover {
  background: rgba(255, 90, 90, 0.16);
  border-color: rgba(255, 90, 90, 0.42);
  color: #fff;
}

.detail-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.96);
}

html[dir="rtl"] .detail-title {
  font-family: 'IBM Plex Sans Arabic', var(--font-sans);
  line-height: 1.55;
}

.detail-original {
  font-size: 13px;
  font-style: italic;
  color: rgba(238, 247, 255, 0.45);
  margin-bottom: 14px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid rgba(126, 235, 255, 0.28);
  line-height: 1.5;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  font: 700 12px/1.2 var(--font-mono);
  color: rgba(238, 247, 255, 0.68);
}

.detail-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-text {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(236, 244, 255, 0.91);
  margin-bottom: 22px;
  white-space: normal;
  word-break: break-word;
}

html[dir="rtl"] .detail-text {
  font-family: 'IBM Plex Sans Arabic', var(--font-sans);
  font-size: 16.5px;
  line-height: 1.85;
}

.detail-section {
  padding: 14px 0;
  border-top: 1px solid rgba(126, 235, 255, 0.10);
}

.detail-section:first-child {
  border-top: 0;
  padding-top: 4px;
}

.detail-section h3 {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

html[dir="rtl"] .detail-section h3 {
  font-size: 15px;
}

.detail-section p {
  margin: 0;
  color: rgba(220, 232, 245, 0.84);
  line-height: inherit;
}

.detail-section-picked {
  margin: 10px 0;
  padding: 14px 14px;
  border: 1px solid rgba(97, 241, 139, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(97, 241, 139, 0.08), rgba(97, 241, 139, 0.03));
}

.detail-evidence-section {
  padding-bottom: 4px;
}

.detail-evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.detail-evidence-card {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(126, 235, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.detail-evidence-card:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 235, 255, 0.34);
  background: rgba(126, 235, 255, 0.07);
}

.detail-evidence-card span {
  color: var(--radar-cyan);
  font: 800 11px/1.2 var(--font-mono);
  letter-spacing: 0.04em;
}

.detail-evidence-card b {
  color: rgba(246, 251, 255, 0.92);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 700;
}

html[dir="rtl"] .detail-evidence-card b {
  font-size: 14.5px;
}

.detail-evidence-card small {
  color: rgba(207, 224, 238, 0.56);
  font: 700 11px/1.35 var(--font-mono);
  direction: ltr;
  unicode-bidi: isolate;
}

.focused-update-chip {
  border-color: rgba(126, 235, 255, 0.28);
}

.focused-update-chip::after {
  background: linear-gradient(180deg, rgba(126, 235, 255, 0.92), rgba(97, 241, 139, 0.28));
}

.focused-discussion-chip {
  border-color: rgba(255, 171, 92, 0.30);
}

.focused-discussion-chip::after {
  background: linear-gradient(180deg, rgba(255, 171, 92, 0.95), rgba(126, 235, 255, 0.20));
}

.focused-discussion-chip .freshness-badge {
  border-color: rgba(255, 171, 92, 0.32);
  color: #ffd1a3;
}

.evidence-item-chip {
  border-color: rgba(126, 235, 255, 0.24);
}

.evidence-item-chip::after {
  background: linear-gradient(180deg, rgba(126, 235, 255, 0.9), rgba(255, 255, 255, 0.18));
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-save,
.detail-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(126, 235, 255, 0.22);
  background: rgba(126, 235, 255, 0.08);
  color: rgba(226, 244, 255, 0.86);
  font-weight: 600;
  font-size: 14px;
  transition: 180ms ease;
}

.detail-chat {
  border-color: rgba(97, 241, 139, 0.26);
  background: linear-gradient(180deg, rgba(97, 241, 139, 0.14), rgba(126, 235, 255, 0.07));
  color: rgba(218, 255, 231, 0.95);
}

.detail-chat::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline-end: 8px;
  border-radius: 999px;
  background: #61f18b;
  box-shadow: 0 0 16px rgba(97, 241, 139, 0.75);
}

.detail-save:hover:not(:disabled),
.detail-chat:hover:not(:disabled) {
  border-color: rgba(126, 235, 255, 0.42);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(126, 235, 255, 0.16);
}

.detail-save.saved {
  border-color: rgba(97, 241, 139, 0.38);
  background: rgba(97, 241, 139, 0.12);
  color: rgba(202, 255, 218, 0.94);
}

.detail-save:disabled {
  opacity: 0.5;
  cursor: default;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--radar-cyan), #4cc8e0);
  color: #001017;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: 180ms ease;
  box-shadow: 0 0 24px rgba(110, 239, 255, 0.32);
}

.detail-link:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.detail-chat-panel {
  margin-top: 16px;
  border: 1px solid rgba(126, 235, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(13, 25, 34, 0.92), rgba(5, 12, 18, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.detail-chat-log {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 14px;
}

.chat-message {
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(229, 240, 248, 0.88);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.chat-message strong {
  color: rgba(126, 235, 255, 0.95);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.chat-message.user {
  margin-inline-start: 18px;
  border-color: rgba(126, 235, 255, 0.18);
  background: rgba(126, 235, 255, 0.08);
}

.chat-message.assistant {
  margin-inline-end: 18px;
  border-color: rgba(97, 241, 139, 0.18);
  background: rgba(97, 241, 139, 0.07);
}

.detail-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(126, 235, 255, 0.12);
}

.detail-chat-form input {
  min-width: 0;
  border: 1px solid rgba(126, 235, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(238, 248, 255, 0.92);
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
}

.detail-chat-form input::placeholder {
  color: rgba(185, 205, 217, 0.55);
}

.detail-chat-form button {
  border: 1px solid rgba(126, 235, 255, 0.28);
  border-radius: 999px;
  background: rgba(126, 235, 255, 0.12);
  color: rgba(226, 244, 255, 0.9);
  padding: 0 16px;
  font-weight: 700;
}

@keyframes detailFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes detailSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 720px) {
  .detail-sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    margin-top: auto;
    margin-bottom: 0;
  }
  .detail-modal { align-items: end; padding: 0; }
}

.data-panel {
  /* Pinned to the bottom with Safari-safe width math. */
  position: absolute;
  z-index: var(--z-data-panel);
  left: 50%;
  bottom: var(--zone-footer-h);
  transform: translateX(-50%);
  width: min(1460px, calc(100vw - 144px));
  height: clamp(108px, 14vh, 168px);
  min-height: 0;
  max-height: 124px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.68), rgba(3, 8, 14, 0.58));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 30px 90px rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.data-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -18%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(126, 235, 255, 0.12), transparent);
  opacity: 0;
  pointer-events: none;
}

.radar-beat .data-panel::before {
  animation: panelSweep 1.25s ease-out both;
}

.panel-metric {
  display: grid;
  align-content: center;
  gap: 2px;
  padding-inline: 8px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-metric span {
  color: rgba(126, 235, 255, 0.82);
  font: 700 12px/1.1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.panel-metric strong {
  font-size: 24px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 22px rgba(126, 235, 255, 0.24);
}

.panel-metric small {
  color: rgba(230, 239, 255, 0.68);
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-toggle {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 235, 255, 0.22);
  color: rgba(238, 247, 255, 0.84);
  background: rgba(126, 235, 255, 0.07);
  font-size: 13px;
  transition: 180ms ease;
}

.archive-toggle:hover {
  border-color: rgba(126, 235, 255, 0.42);
  background: rgba(126, 235, 255, 0.13);
  box-shadow: 0 0 22px rgba(126, 235, 255, 0.16);
}

.panel-feed-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.panel-feed {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 1px 3px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.panel-feed::-webkit-scrollbar { display: none; }

.panel-feed > .signal-chip {
  flex: 0 0 clamp(390px, 30vw, 500px);
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  scroll-snap-align: start;
}

.panel-feed > .opportunity-chip.featured-opportunity {
  flex-basis: clamp(520px, 38vw, 640px);
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  border-color: rgba(97, 241, 139, 0.42);
  background:
    linear-gradient(180deg, rgba(30, 83, 55, 0.24), rgba(5, 12, 18, 0.36)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 34px rgba(97, 241, 139, 0.12), 0 18px 42px rgba(0, 0, 0, 0.34);
}

.panel-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(110, 239, 255, 0.22);
  background: rgba(8, 18, 28, 0.6);
  color: rgba(238, 247, 255, 0.78);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: 180ms ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}

.panel-arrow:hover:not(:disabled) {
  background: rgba(110, 239, 255, 0.16);
  border-color: var(--radar-cyan);
  color: var(--radar-cyan);
  box-shadow: 0 0 18px rgba(110, 239, 255, 0.28);
  transform: scale(1.05);
}

.panel-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.signal-chip {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 13px 14px 34px;
  background: rgba(255, 255, 255, 0.035);
  min-height: 112px;
  max-height: 112px;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  transition: 180ms ease;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.manual-x-chip {
  border-color: rgba(110, 239, 255, 0.26);
  background:
    linear-gradient(90deg, rgba(110, 239, 255, 0.13), rgba(110, 239, 255, 0.04) 42%, rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 3px 0 0 rgba(110, 239, 255, 0.86), 0 0 22px rgba(110, 239, 255, 0.08);
}

html[dir="rtl"] .manual-x-chip {
  box-shadow: inset -3px 0 0 rgba(110, 239, 255, 0.86), 0 0 22px rgba(110, 239, 255, 0.08);
}

.manual-x-chip:hover {
  border-color: rgba(110, 239, 255, 0.46);
  background:
    linear-gradient(90deg, rgba(110, 239, 255, 0.18), rgba(110, 239, 255, 0.06) 46%, rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 3px 0 0 rgba(110, 239, 255, 1), 0 0 30px rgba(110, 239, 255, 0.14);
}

html[dir="rtl"] .manual-x-chip:hover {
  box-shadow: inset -3px 0 0 rgba(110, 239, 255, 1), 0 0 30px rgba(110, 239, 255, 0.14);
}

.manual-x-source {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 52%;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(110, 239, 255, 0.28);
  background: rgba(110, 239, 255, 0.10);
  color: rgba(158, 246, 255, 0.95) !important;
  text-transform: none !important;
}

.manual-x-engagement {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(210, 238, 255, 0.70);
  font: 700 11px/1 var(--font-mono);
}

.manual-x-engagement b {
  font: inherit;
  color: inherit;
}

.freshness-badge {
  position: absolute;
  top: 7px;
  inset-inline-end: 10px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 42%;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(5, 11, 18, 0.62);
  color: rgba(238, 247, 255, 0.72);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0;
  z-index: 3;
}

.freshness-live,
.freshness-new,
.freshness-new_today,
.freshness-updated {
  border-color: rgba(97, 241, 139, 0.34);
  color: rgba(153, 255, 183, 0.95);
  box-shadow: 0 0 14px rgba(97, 241, 139, 0.16);
}

.freshness-breaking {
  border-color: rgba(255, 132, 105, 0.55);
  color: rgba(255, 188, 160, 0.98);
  background: rgba(255, 78, 64, 0.18);
  box-shadow: 0 0 18px rgba(255, 100, 80, 0.32);
  animation: ax-breaking-pulse 1.8s ease-in-out infinite;
}

@keyframes ax-breaking-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 100, 80, 0.20); }
  50%      { box-shadow: 0 0 22px rgba(255, 100, 80, 0.45); }
}

.freshness-refreshed_today {
  border-color: rgba(124, 198, 255, 0.42);
  color: rgba(174, 220, 255, 0.96);
  box-shadow: 0 0 14px rgba(124, 198, 255, 0.18);
}

.since-last-seen-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 12px auto 6px;
  max-width: 720px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(108, 247, 193, 0.12), rgba(124, 198, 255, 0.08));
  border: 1px solid rgba(108, 247, 193, 0.32);
  color: rgba(216, 248, 232, 0.96);
  font-size: 13px;
  font-weight: 500;
  z-index: 5;
}
.since-last-seen-banner[hidden] { display: none; }
.since-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6cf7c1; box-shadow: 0 0 12px rgba(108, 247, 193, 0.7);
  animation: ax-banner-blink 1.6s ease-in-out infinite;
}
@keyframes ax-banner-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.since-banner-text { flex: 1; }
.since-banner-mark {
  background: rgba(8, 14, 18, 0.55);
  color: rgba(216, 248, 232, 0.92);
  border: 1px solid rgba(108, 247, 193, 0.32);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  cursor: pointer;
}
.since-banner-mark:hover {
  background: rgba(108, 247, 193, 0.16);
}

.freshness-strong {
  border-color: rgba(97, 241, 139, 0.34);
  color: rgba(153, 255, 183, 0.95);
}

.freshness-verified {
  border-color: rgba(103, 220, 255, 0.32);
  color: rgba(140, 235, 255, 0.92);
}

.freshness-cached,
.freshness-old {
  border-color: rgba(255, 195, 108, 0.28);
  color: rgba(255, 207, 139, 0.92);
}

.freshness-uncertain {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(230, 239, 255, 0.62);
}

.freshness-translated {
  inset-inline-end: auto;
  inset-inline-start: 10px;
  border-color: rgba(110, 239, 255, 0.28);
  color: rgba(126, 235, 255, 0.92);
  background: rgba(21, 70, 82, 0.30);
}

.signal-chip:hover {
  border-color: rgba(126, 235, 255, 0.32);
  background: rgba(126, 235, 255, 0.06);
}

.signal-chip.signal-active {
  border-color: rgba(126, 235, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(126, 235, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 28px rgba(126, 235, 255, 0.18);
}

.x-ready-chip {
  position: relative;
  overflow: hidden;
  border-color: rgba(110, 239, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 38, 54, 0.20), rgba(5, 11, 18, 0.32)),
    rgba(255, 255, 255, 0.03);
}

.x-ready-chip::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--radar-cyan);
  box-shadow: 0 0 16px rgba(110, 239, 255, 0.55);
}

.x-ready-chip:hover {
  border-color: rgba(110, 239, 255, 0.42);
  box-shadow: 0 0 24px rgba(110, 239, 255, 0.14), 0 14px 34px rgba(0, 0, 0, 0.32);
}

.x-ready-product_ideas::before {
  background: var(--radar-green);
  box-shadow: 0 0 16px rgba(97, 241, 139, 0.55);
}

.x-ready-trending::before {
  background: var(--radar-orange);
  box-shadow: 0 0 16px rgba(255, 154, 66, 0.55);
}

.source-health-chip {
  position: relative;
  overflow: hidden;
}

.source-health-chip::before,
.source-health-row i {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--radar-cyan);
  box-shadow: 0 0 14px rgba(110, 239, 255, 0.58);
}

.source-health-chip::before {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
}

.source-failed::before,
.source-failed i {
  background: #ff5d65;
  box-shadow: 0 0 14px rgba(255, 93, 101, 0.55);
}

.source-skipped::before,
.source-skipped i {
  background: var(--radar-orange);
  box-shadow: 0 0 14px rgba(255, 154, 66, 0.55);
}

.source-stale::before,
.source-stale i {
  background: rgba(230, 239, 255, 0.5);
  box-shadow: 0 0 14px rgba(230, 239, 255, 0.2);
}

.source-health-panel {
  /* T19: anchored to header zone, side gutter responsive. */
  position: fixed;
  z-index: var(--z-source-health);
  top: calc(var(--zone-header-h) + 24px);
  inset-inline-end: var(--rail-side-x);
  width: min(460px, calc(100vw - 40px));
  max-height: calc(100svh - var(--zone-header-h) - var(--zone-active-h) - var(--zone-footer-h) - 32px);
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(110, 239, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 19, 30, 0.86), rgba(4, 9, 15, 0.78));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.source-health-panel[hidden] {
  display: none;
}

.source-health-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.source-health-panel header span {
  color: rgba(238, 247, 255, 0.92);
  font-weight: 700;
}

.source-health-panel header b {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(110, 239, 255, 0.18);
  color: var(--radar-cyan);
  background: rgba(110, 239, 255, 0.07);
  font-size: 13px;
}

.source-health-panel > p {
  color: rgba(220, 235, 255, 0.74);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.source-health-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.source-health-summary span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(110, 239, 255, 0.13);
  border-radius: 12px;
  background: rgba(110, 239, 255, 0.045);
}

.source-health-summary b {
  display: block;
  color: var(--radar-cyan);
  font: 800 20px/1.1 var(--font-mono);
  margin-bottom: 4px;
}

.source-health-summary small {
  display: block;
  color: rgba(220, 235, 255, 0.66);
  font-size: 11.5px;
  line-height: 1.35;
}

.source-health-note {
  padding: 10px 11px;
  margin: 0 0 12px;
  border-radius: 13px;
  border: 1px solid rgba(97, 241, 139, 0.16);
  color: rgba(230, 246, 236, 0.84);
  background: linear-gradient(135deg, rgba(97, 241, 139, 0.075), rgba(110, 239, 255, 0.035));
  font-size: 13.5px;
  line-height: 1.65;
}

.source-quality-note {
  border-color: rgba(126, 235, 255, 0.16);
  color: rgba(221, 245, 255, 0.84);
  background: linear-gradient(135deg, rgba(126, 235, 255, 0.07), rgba(97, 241, 139, 0.035));
}

.source-health-list {
  display: grid;
  gap: 8px;
  max-height: 31vh;
  overflow-y: auto;
  padding-inline-end: 2px;
}

.source-health-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px 9px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.source-health-row span {
  color: rgba(238, 247, 255, 0.88);
  font-size: 14px;
  font-weight: 650;
}

.source-health-row b {
  color: rgba(126, 235, 255, 0.82);
  font: 700 12px/1.2 var(--font-mono);
}

.source-health-row small {
  grid-column: 2 / 4;
  color: rgba(220, 235, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.source-health-row em {
  grid-column: 2 / 4;
  color: rgba(126, 235, 255, 0.58);
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: 0;
  font-style: normal;
}

.opportunity-chip {
  display: grid;
  gap: 6px;
  align-content: start;
  position: relative;
  min-height: 104px;
  overflow: hidden;
  padding-bottom: 34px;
}

.opportunity-chip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(97, 241, 139, 0.12), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: 260ms ease;
}

.opportunity-chip:hover::before {
  inset-inline-start: 118%;
  opacity: 1;
}

.opportunity-chip.x-curated-chip {
  border-color: rgba(97, 241, 139, 0.18);
  background:
    linear-gradient(180deg, rgba(28, 70, 48, 0.16), rgba(5, 12, 18, 0.34)),
    rgba(255, 255, 255, 0.03);
}

.opportunity-chip.x-curated-chip:hover {
  border-color: rgba(97, 241, 139, 0.42);
  box-shadow: 0 0 28px rgba(97, 241, 139, 0.16), 0 14px 34px rgba(0, 0, 0, 0.34);
}

.opportunity-chip small {
  color: rgba(224, 240, 255, 0.78);
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opportunity-chip em {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 10px;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(97, 241, 139, 0.28);
  background: rgba(97, 241, 139, 0.10);
  color: rgba(153, 255, 183, 0.95);
  font: 700 12px/1.1 var(--font-mono);
  font-style: normal;
}

.opportunity-source {
  display: inline-flex !important;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(97, 241, 139, 0.24);
  border-radius: 999px;
  background: rgba(97, 241, 139, 0.08);
  color: rgba(153, 255, 183, 0.92) !important;
  font-size: 12px !important;
  text-transform: none !important;
  direction: auto;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.opportunity-proofline {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opportunity-proofline b {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 235, 255, 0.16);
  background: rgba(126, 235, 255, 0.06);
  color: rgba(126, 235, 255, 0.86);
  font: 700 12px/1 var(--font-mono);
}

.signal-chip span {
  display: block;
  color: rgba(126, 235, 255, 0.84);
  font: 700 13px/1.25 var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 6px;
  direction: auto;
  unicode-bidi: isolate;
  white-space: nowrap;
  max-width: calc(100% - 118px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-chip .opportunity-source {
  display: inline-flex !important;
  align-items: center;
  width: max-content;
  max-width: 52%;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-chip bdi,
.detail-source,
.detail-meta span,
.value-now-row span {
  unicode-bidi: isolate;
}

.signal-chip p {
  color: rgba(239, 247, 255, 0.9);
  font-size: 15.5px;
  line-height: 1.38;
  padding-inline-end: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: normal;
}

.opportunity-chip p {
  line-height: 1.55;
  min-height: 1.55em;
}

.signal-chip small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(222, 236, 255, 0.76);
  font-size: 13.5px;
  line-height: 1.32;
  padding-inline-end: 0;
}

.timeline-chip {
  position: relative;
  overflow: hidden;
  text-align: inherit;
  cursor: pointer;
}

.timeline-chip::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--radar-cyan);
  box-shadow: 0 0 18px rgba(126, 235, 255, 0.65);
}

.timeline-tool::before {
  background: var(--radar-green);
  box-shadow: 0 0 18px rgba(97, 241, 139, 0.55);
}

.timeline-pricing_limits::before {
  background: var(--radar-orange);
  box-shadow: 0 0 18px rgba(255, 154, 66, 0.55);
}

.timeline-chip small {
  color: rgba(222, 236, 255, 0.76);
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-chip.active {
  border-color: rgba(126, 235, 255, 0.50);
  background: rgba(126, 235, 255, 0.10);
  box-shadow: 0 0 28px rgba(126, 235, 255, 0.18);
}

.timeline-source-link,
.timeline-card-source {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 235, 255, 0.22);
  color: rgba(126, 235, 255, 0.86);
  background: rgba(126, 235, 255, 0.06);
  font-size: 13px;
}

.timeline-source-link:hover,
.timeline-card-source:hover {
  border-color: rgba(126, 235, 255, 0.42);
  background: rgba(126, 235, 255, 0.12);
}

.timeline-summary {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(126, 235, 255, 0.12);
  color: rgba(239, 247, 255, 0.84) !important;
}

.radar-footer {
  display: none;
}

.radar-footer a {
  color: rgba(126, 235, 255, 0.78);
}

.portrait-guard {
  display: none;
}

@keyframes globeFloat {
  0%, 100% { transform: translate3d(0, -4px, 0) scale(1); }
  50% { transform: translate3d(0, 7px, 0) scale(1.012); }
}

@keyframes scanSweep {
  from { transform: rotate(-34deg); opacity: 0.18; }
  45% { opacity: 0.62; }
  to { transform: rotate(326deg); opacity: 0.18; }
}

@keyframes radarDisc {
  from { transform: rotate(0deg); opacity: 0.26; }
  45% { opacity: 0.58; }
  to { transform: rotate(360deg); opacity: 0.26; }
}

@keyframes overlayPulse {
  0%, 100% { opacity: 0.28; filter: blur(0); }
  50% { opacity: 0.62; filter: blur(0.2px); }
}

@keyframes orbitPulse {
  0%, 100% { opacity: 0.35; filter: drop-shadow(0 0 10px rgba(93, 221, 255, 0.5)); }
  50% { opacity: 0.85; filter: drop-shadow(0 0 18px rgba(93, 221, 255, 0.85)); }
}

@keyframes orbitDrift {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.72; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes globeHalo {
  0%, 100% {
    opacity: 0.52;
    transform: scale(0.992);
  }
  50% {
    opacity: 0.94;
    transform: scale(1.012);
  }
}

@keyframes worldHeartbeat {
  0% {
    opacity: 0;
    transform: scale(0.88);
    border-color: rgba(126, 235, 255, 0);
  }
  22% {
    opacity: 0.85;
    border-color: rgba(126, 235, 255, 0.38);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
    border-color: rgba(126, 235, 255, 0);
  }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(0.82); opacity: 0.68; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes panelSweep {
  0% { opacity: 0; transform: translateX(0); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(660%); }
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.48; transform: translateX(-50%) translateY(0); }
  45% { opacity: 0.82; transform: translateX(-50%) translateY(-3px); }
}

@keyframes alwaysRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes alwaysBadge {
  0%, 100% { opacity: 0.72; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes scanOrbitSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes scanOrbitBlink {
  0%, 100% { opacity: 0.28; }
  45% { opacity: 0.92; }
  62% { opacity: 0.52; }
}

@keyframes scanFlash {
  0%, 72%, 100% {
    opacity: 0;
    transform: scale(0.55);
    box-shadow:
      0 0 0 0 rgba(126, 235, 255, 0),
      0 0 0 rgba(126, 235, 255, 0);
  }
  8% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 8px rgba(126, 235, 255, 0.18),
      0 0 18px rgba(126, 235, 255, 0.95),
      0 0 42px rgba(97, 241, 139, 0.45);
  }
  18% {
    opacity: 0;
    transform: scale(1.7);
    box-shadow:
      0 0 0 18px rgba(126, 235, 255, 0),
      0 0 8px rgba(126, 235, 255, 0.25);
  }
}

@keyframes earthPing {
  0%, 68%, 100% {
    opacity: 0;
    transform: scale(0.72);
  }
  7% {
    opacity: 1;
    transform: scale(1.18);
  }
  18% {
    opacity: 0.18;
    transform: scale(0.9);
  }
}

@keyframes pingRing {
  0%, 70%, 100% {
    opacity: 0;
    transform: scale(0.2);
  }
  8% {
    opacity: 0.82;
    transform: scale(0.55);
  }
  24% {
    opacity: 0;
    transform: scale(3.15);
  }
}

@keyframes microGlints {
  0%, 100% { opacity: 0.15; filter: blur(0); }
  50% { opacity: 0.58; filter: blur(0.4px); }
}

@keyframes tagFloat {
  0%, 100% {
    translate: 0 0;
    opacity: 0.58;
  }
  45% {
    translate: 0 -9px;
    opacity: 0.92;
  }
  70% {
    translate: 7px 2px;
  }
}

@keyframes drawLine {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  22%, 78% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 0 100%); opacity: 0; }
}

@keyframes stripArrive {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes liveIn {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes beamPacket {
  from {
    left: 4%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    left: 96%;
    opacity: 0;
  }
}

/* Tablet & large mobile landscape (between desktop and small phone) */
@media (max-width: 1280px) {
  .radar-nav {
    width: min(680px, calc(100vw - 420px));
    min-width: 520px;
    gap: 4px;
    padding: 5px;
  }
  .radar-nav button {
    min-width: 0;
    padding: 9px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .radar-lang { inset-inline-end: 16px; top: 20px; }
  .value-rail { top: 76px; right: 16px; width: min(280px, 30vw); padding: 12px; }
  .value-rail p { font-size: 13px; }
  .value-stats b { font-size: 15px; }
  .value-stats small { font-size: 12px; }
  .radar-copy { top: 88px; width: min(430px, 35vw); }
  .radar-copy h1 { font-size: clamp(34px, 3.6vw, 52px); }
  .radar-copy p { font-size: clamp(17px, 1.7vw, 22px); -webkit-line-clamp: 3; }
  .glass-card { width: clamp(160px, 22vw, 230px); min-height: auto; padding: 14px; }
  .glass-card h3 { font-size: 13.5px; }
  .glass-card p, .glass-card li { font-size: 13px; }
  .data-panel { width: min(1240px, 92vw); height: 112px; max-height: 112px; bottom: 16px; padding: 6px 8px; gap: 8px; grid-template-columns: 112px 1fr; }
  .layer-opportunities .data-panel { height: 126px; max-height: 126px; grid-template-columns: 116px 1fr; }
  .panel-feed > .signal-chip { flex-basis: clamp(360px, 38vw, 460px); height: 104px; min-height: 104px; max-height: 104px; }
  .panel-feed > .opportunity-chip.featured-opportunity { flex-basis: clamp(460px, 46vw, 560px); height: 106px; min-height: 106px; max-height: 106px; }
  .layer-opportunities .panel-feed > .signal-chip,
  .layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity { height: 100px; min-height: 100px; max-height: 100px; }
  .panel-arrow { width: 30px; height: 30px; font-size: 16px; }
  .detail-side { width: min(340px, 36vw); padding: 18px 20px; }
  .floating-strip { width: min(440px, 48vw); top: 76%; font-size: 13px; }
  .value-now-row { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(520px, 54vw); }
  .tag { font-size: clamp(14px, 1.6vw, 22px); }
}

@media (max-width: 980px) and (orientation: landscape) {
  .radar-stage { min-height: 100svh; }
  .radar-nav {
    top: 8px;
    transform: translateX(50%);
    overflow-x: auto;
    max-width: calc(100vw - 110px);
    width: auto;
    min-width: 0;
    scrollbar-width: none;
  }
  .radar-nav::-webkit-scrollbar { display: none; }
  .radar-nav button { padding: 7px 10px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .radar-lang { top: 8px; inset-inline-end: 8px; padding: 2px; }
  .radar-lang button { padding: 4px 8px; font-size: 11px; min-width: 28px; }
  .value-rail { display: none; }
  .radar-world { width: min(56vw, 520px); top: 50%; }
  .radar-copy { display: none; }
  .tag { font-size: 13px; }
  .tag em { display: none; }
  .glass-card { width: 180px; min-height: auto; padding: 10px; font-size: 13px; }
  .glass-card h3 { font-size: 14px; margin-bottom: 6px; }
  .glass-card p, .glass-card li { font-size: 13px; line-height: 1.5; }
  .data-beams { display: none; }
  .data-panel { width: 98vw; bottom: 12px; height: 122px; max-height: 122px; padding: 7px; gap: 7px; grid-template-columns: 90px 1fr; }
  .layer-opportunities .data-panel { height: 112px; max-height: 112px; grid-template-columns: 92px 1fr; }
  .panel-metric strong { font-size: 22px; }
  .panel-metric span { font-size: 12px; }
  .panel-metric small { font-size: 13px; }
  .panel-feed > .signal-chip { flex-basis: 330px; height: 106px; min-height: 106px; max-height: 106px; }
  .panel-feed > .opportunity-chip.featured-opportunity { flex-basis: 390px; height: 108px; min-height: 108px; max-height: 108px; }
  .layer-opportunities .panel-feed > .signal-chip,
  .layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity { height: 112px; min-height: 112px; max-height: 112px; }
  .layer-opportunities .opportunity-chip { padding-bottom: 28px; gap: 3px; }
  .layer-opportunities .opportunity-chip small { display: none; }
  .layer-opportunities .signal-chip p {
    font-size: 14.5px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    padding-inline-end: 0;
  }
  .layer-opportunities .opportunity-source,
  .layer-opportunities .freshness-badge {
    font-size: 10.5px !important;
    padding: 3px 6px;
  }
  .layer-opportunities .opportunity-proofline b,
  .layer-opportunities .opportunity-chip em {
    font-size: 10.5px;
    padding: 4px 6px;
  }
  .panel-arrow { width: 26px; height: 26px; font-size: 14px; }
  .detail-side {
    top: 60px;
    bottom: 130px;
    width: min(280px, 70vw);
    padding: 14px 16px;
  }
  .detail-side .detail-title { font-size: 16px; }
  .detail-side .detail-text { font-size: 14.5px; line-height: 1.75; }
  .floating-strip { width: 60vw; top: 78%; font-size: 13px; }
  .value-now-row { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 60vw; }
  .value-now-row span { padding: 8px 9px; font-size: 13px; }
  .radar-footer { font-size: 12px; left: 8px; bottom: 4px; }
}

/* Portrait guard — show across phones + tablets in portrait (covers iPad mini
   768px portrait and bigger portrait surfaces that previously fell through
   the gap and rendered the desktop radar layout broken). */
@media (orientation: portrait) and (max-width: 1024px) {
  .radar-stage {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 126px 14px 24px;
  }

  .portrait-guard {
    display: none;
  }

  .guard-mark {
    min-width: 88px;
    padding: 12px 18px;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 16px;
    background: rgba(118, 236, 255, 0.13);
    border: 1px solid rgba(118, 236, 255, 0.28);
    color: var(--radar-cyan);
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 35px rgba(118, 236, 255, 0.22);
  }

  .radar-nav {
    position: fixed;
    top: 56px;
    left: 12px;
    right: 12px;
    inset-inline: auto;
    transform: none;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    align-items: stretch;
    scrollbar-width: none;
    z-index: 40;
    border-radius: 999px;
    gap: 6px;
  }

  html[dir="rtl"] .radar-nav {
    left: 12px;
    right: 12px;
  }

  html[dir="ltr"] .radar-nav {
    left: 12px;
    right: 12px;
  }

  .radar-nav::-webkit-scrollbar {
    display: none;
  }

  .radar-nav button {
    min-width: 0;
    flex: 0 0 auto;
    padding: 8px 9px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  html[dir="ltr"] .radar-nav button {
    flex-basis: 78px;
  }

  .radar-lang {
    position: fixed;
    top: 12px;
    inset-inline-end: 10px;
    z-index: 42;
  }

  .value-rail {
    position: relative;
    inset: auto;
    right: auto;
    width: 100%;
    margin-bottom: 18px;
  }

  .radar-copy {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0 0 16px;
    pointer-events: auto;
  }

  .radar-copy h1 {
    max-width: none;
    font-size: 22px;
  }

  .radar-copy p {
    max-width: none;
    display: block;
    overflow: visible;
    -webkit-line-clamp: initial;
  }

  .radar-world {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 430px;
    margin: 0 auto 18px;
    transform: none;
  }

  .radar-tags {
    position: absolute;
  }

  .tag {
    font-size: 12px;
  }

  .tag em,
  .interaction-hint {
    display: none;
  }

  .data-panel {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 218px;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    max-height: none;
    padding: 10px;
    gap: 12px;
  }

  .layer-opportunities .data-panel {
    height: auto;
    max-height: none;
    min-height: 218px;
    grid-template-columns: none;
  }

  .source-health-panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-height: none;
    margin-top: 14px;
  }

  .source-health-list {
    max-height: none;
  }

  .panel-metric {
    order: 2;
    border-inline-end: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0 0;
  }

  .panel-feed-wrap {
    order: 1;
    min-height: 148px;
  }

  .panel-feed {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .panel-feed > .signal-chip,
  .panel-feed > .opportunity-chip.featured-opportunity,
  .layer-opportunities .panel-feed > .signal-chip,
  .layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity {
    flex: 0 0 min(86vw, 360px);
    height: 140px;
    min-height: 140px;
    max-height: 140px;
  }

  .panel-feed > .signal-chip p,
  .panel-feed > .opportunity-chip.featured-opportunity p,
  .layer-opportunities .panel-feed > .signal-chip p,
  .layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity p {
    font-size: 15.5px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    padding-inline-end: 0;
  }

  .panel-feed > .signal-chip small,
  .panel-feed > .opportunity-chip.featured-opportunity small,
  .layer-opportunities .panel-feed > .signal-chip small,
  .layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity small {
    font-size: 13.5px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    padding-inline-end: 0;
  }

  .panel-feed .freshness-badge {
    font-size: 10.5px;
    padding: 3px 6px;
    max-width: 38%;
  }

  .panel-feed .opportunity-proofline b,
  .panel-feed .opportunity-chip em {
    font-size: 11px;
    padding: 4px 7px;
  }

  .detail-side,
  .detail-side[data-side="right"],
  .detail-side[data-side="left"] {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    max-height: none;
    margin: 14px 0 0;
    border-radius: 20px;
    transform: none;
    opacity: 1;
  }

  .detail-side.open {
    transform: none;
  }

  .guard-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .guard-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(118, 236, 255, 0.35);
    color: rgba(230, 239, 255, 0.92);
    background: rgba(118, 236, 255, 0.08);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
  }
  .guard-btn:active { transform: scale(0.97); }
  .guard-btn.primary {
    background: rgba(118, 236, 255, 0.22);
    border-color: rgba(118, 236, 255, 0.55);
    color: #fff;
  }
  .guard-note {
    font-size: 11px;
    opacity: 0.55;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Very small landscape phones (iPhone SE / 8 / 8+ landscape ≤ 700px wide).
   Hide the side cards entirely — they don't have room to coexist with the
   globe. Users still get the globe + nav + bottom data panel. */
@media (max-width: 700px) and (orientation: landscape) {
  .card-left,
  .card-right,
  .card-bottom { display: none; }
  .radar-world { width: 62vw; }
  .data-panel { width: 98vw; bottom: 8px; padding: 8px; gap: 8px; }
  .radar-copy { display: none; }
  .floating-strip { display: none; }
}

/* ============================================================
   Round 4: Live Radar = main platform additions
   ============================================================ */

/* Hide the global telemetry bar on radar — it conflicts with the immersive stage.
   The radar already surfaces live state via its own sweep, pings, and floating-strip. */
body.radar-body .telemetry,
body.radar-body .heartbeat {
  display: none !important;
}

body.radar-body { overflow: hidden; }

/* ---------- Insight banner ---------- */

.insight-banner {
  position: absolute;
  top: 16px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  max-width: min(720px, 86vw);
  border-radius: 999px;
  border: 1px solid rgba(110, 239, 255, 0.28);
  background: rgba(8, 14, 22, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(238, 247, 255, 0.92);
  animation: ib-enter 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[dir="rtl"] .insight-banner { transform: translateX(50%); }
@media (max-width: 720px) { html[dir="rtl"] .insight-banner { inset-inline-start: 50%; transform: translateX(50%); } }

@keyframes ib-enter {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0);     }
}

html[dir="rtl"] .insight-banner { animation-name: ib-enter-rtl; }
@keyframes ib-enter-rtl {
  from { opacity: 0; transform: translate(50%, -20px); }
  to   { opacity: 1; transform: translate(50%, 0);     }
}

.insight-banner.ib-closing { animation: ib-exit 220ms ease forwards; }
@keyframes ib-exit { to { opacity: 0; transform: translate(-50%, -10px); } }

.ib-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--radar-cyan);
  box-shadow: 0 0 8px rgba(110, 239, 255, 0.6);
  animation: ib-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ib-pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.4); opacity: 0.55;}
}

.ib-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radar-cyan);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

html[dir="rtl"] .ib-eyebrow { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.04em; }

.ib-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ib-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(238, 247, 255, 0.5);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.18s;
}

.ib-close:hover { color: rgba(238, 247, 255, 0.9); }

@media (max-width: 720px) {
  .insight-banner { font-size: 12px; padding: 8px 12px; gap: 8px; max-width: 92vw; top: 8px; }
  .ib-eyebrow { display: none; }
  .ib-text { white-space: normal; }
}

/* ---------- Floating Subscribe CTA ---------- */

.radar-subscribe-cta {
  position: absolute;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(97, 241, 139, 0.4);
  background: rgba(8, 14, 22, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  color: var(--radar-green);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(97, 241, 139, 0.18);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

html[dir="rtl"] .radar-subscribe-cta { padding: 12px 14px 12px 20px; }

.radar-subscribe-cta::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; inset-inline-start: -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(97, 241, 139, 0.18), transparent);
  animation: rsc-sheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rsc-sheen {
  0%   { inset-inline-start: -100%; }
  60%  { inset-inline-start: 100%; }
  100% { inset-inline-start: 100%; }
}

.radar-subscribe-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 241, 139, 0.65);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 32px rgba(97, 241, 139, 0.32);
}

.rsc-lock {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(97, 241, 139, 0.16);
  position: relative;
  flex-shrink: 0;
}

.rsc-lock::before {
  content: '';
  position: absolute;
  inset: 7px;
  background: var(--radar-green);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5 7V5a3 3 0 1 1 6 0v2h.5A1.5 1.5 0 0 1 13 8.5v4A1.5 1.5 0 0 1 11.5 14h-7A1.5 1.5 0 0 1 3 12.5v-4A1.5 1.5 0 0 1 4.5 7H5zm1.5 0h3V5a1.5 1.5 0 0 0-3 0v2z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5 7V5a3 3 0 1 1 6 0v2h.5A1.5 1.5 0 0 1 13 8.5v4A1.5 1.5 0 0 1 11.5 14h-7A1.5 1.5 0 0 1 3 12.5v-4A1.5 1.5 0 0 1 4.5 7H5zm1.5 0h3V5a1.5 1.5 0 0 0-3 0v2z"/></svg>') center / contain no-repeat;
}

.rsc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.rsc-text strong {
  font-size: 13px;
  font-weight: 700;
  color: rgba(238, 247, 255, 0.95);
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

.rsc-text small {
  font-size: 11px;
  color: rgba(97, 241, 139, 0.85);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

html[dir="rtl"] .rsc-text small { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }

@media (max-width: 720px) {
  .radar-subscribe-cta { bottom: 14px; inset-inline-start: 14px; padding: 10px 14px 10px 10px; }
  .rsc-text strong { font-size: 12px; }
  .rsc-text small { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-subscribe-cta::after { animation: none; }
}

/* ---------- Locked detail modal ---------- */

.detail-side.detail-locked-mode {
  border-color: rgba(97, 241, 139, 0.3);
}

.detail-locked {
  padding: 6px 0 0;
}

.detail-locked p {
  color: rgba(238, 247, 255, 0.78);
  line-height: 1.85;
  margin-bottom: 18px;
  font-size: 14px;
}

.detail-locked-cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--radar-green), #4dc46f);
  color: #001017;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 6px 18px rgba(97, 241, 139, 0.32);
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

.detail-locked-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(97, 241, 139, 0.4);
}

/* ---------- Events layer mini cards (in glass slots) ---------- */

.event-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(166, 190, 230, 0.04);
  border: 1px solid rgba(166, 190, 230, 0.10);
}

.event-mini-empty {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(238, 247, 255, 0.4);
  min-height: 80px;
  font-style: italic;
}

.event-mini.event-mini-new {
  border-color: rgba(97, 241, 139, 0.32);
  background: linear-gradient(180deg, rgba(97, 241, 139, 0.07), rgba(166, 190, 230, 0.02));
}

.event-mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-mini-icon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  background: rgba(97, 241, 139, 0.12);
  color: var(--radar-green);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
}

.event-mini[data-event-type="pricing_change"] .event-mini-icon { background: rgba(255, 154, 66, 0.12); color: var(--radar-orange); }
.event-mini[data-event-type="funding_round"]  .event-mini-icon { background: rgba(110, 239, 255, 0.12); color: var(--radar-cyan); }
.event-mini[data-event-type="acquisition"]    .event-mini-icon { background: rgba(255, 107, 107, 0.12); color: #ff6b6b; }
.event-mini[data-event-type="personnel_move"] .event-mini-icon { background: rgba(169, 135, 255, 0.12); color: var(--radar-violet); }
.event-mini[data-event-type="policy_signal"]  .event-mini-icon { background: rgba(244, 114, 182, 0.12); color: #f472b6; }

.event-mini-label {
  flex: 1;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(238, 247, 255, 0.62);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

html[dir="rtl"] .event-mini-label { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.02em; }

.event-mini-conf {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(238, 247, 255, 0.55);
  font-feature-settings: "tnum";
}

.event-mini-subject {
  font-size: 17px;
  font-weight: 700;
  color: rgba(238, 247, 255, 0.95);
  letter-spacing: -0.3px;
  text-transform: capitalize;
}

.event-mini-meta {
  font-size: 11px;
  color: rgba(238, 247, 255, 0.45);
  font-family: 'JetBrains Mono', monospace;
}

html[dir="rtl"] .event-mini-meta { font-family: 'IBM Plex Sans Arabic', sans-serif; }

/* ---------- Extra footer link spacing ---------- */
.radar-footer a + a { margin-inline-start: 14px; }

/* ============================================================
   Round 5: Radar Chat Assistant — drawer + FAB
   ============================================================ */

.chat-fab {
  position: absolute;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 239, 255, 0.35);
  background: rgba(8, 14, 22, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(238, 247, 255, 0.92);
  cursor: pointer;
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(110, 239, 255, 0.18);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

html[dir="rtl"] .chat-fab { padding: 12px 14px 12px 18px; }

.chat-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 239, 255, 0.6);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 28px rgba(110, 239, 255, 0.32);
}

.chat-fab[aria-expanded="true"] {
  border-color: rgba(110, 239, 255, 0.6);
  background: rgba(110, 239, 255, 0.10);
}

.chat-fab-icon {
  display: inline-block;
  width: 18px; height: 18px;
  background: var(--radar-cyan);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 3h10a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H7l-4 3v-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><circle cx="6" cy="7.5" r=".9" fill="black"/><circle cx="9" cy="7.5" r=".9" fill="black"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 3h10a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H7l-4 3v-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/></svg>') center / contain no-repeat;
}

@media (max-width: 720px) {
  .chat-fab { bottom: 14px; inset-inline-end: 14px; padding: 10px 14px 10px 10px; }
  .chat-fab-label { display: none; }
}

/* Hide subscribe CTA when chat opens (avoid stacking) */
body.has-chat-open .radar-subscribe-cta { opacity: 0; pointer-events: none; transition: opacity 0.2s; }

/* ---------- Drawer ---------- */

.chat-drawer {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(420px, 100vw);
  /* MUST stay above .detail-side (z-index: 100) so the timeline autoplay
     never paints a detail card on top of an open conversation. */
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(8, 14, 22, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-inline-start: 1px solid rgba(110, 239, 255, 0.18);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  color: rgba(238, 247, 255, 0.92);
}

html[dir="rtl"] .chat-drawer { transform: translateX(-100%); }

.chat-drawer.chat-open { transform: translateX(0) !important; }

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(110, 239, 255, 0.10);
}

.chat-head-title { display: flex; align-items: center; gap: 8px; }

.chat-head-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--radar-cyan);
  box-shadow: 0 0 8px rgba(110, 239, 255, 0.6);
  animation: chat-pulse 1.6s ease-in-out infinite;
}

@keyframes chat-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.55; }
}

.chat-head-name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(238, 247, 255, 0.95);
}

.chat-head-status {
  font-size: 11px;
  color: rgba(110, 239, 255, 0.85);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
}

html[dir="rtl"] .chat-head-status { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }

.chat-head-status.chat-status-thinking { color: var(--radar-orange); }

.chat-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(238, 247, 255, 0.55);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.chat-close:hover { background: rgba(255, 255, 255, 0.05); color: rgba(238, 247, 255, 0.95); }

/* ---------- Quota strip ---------- */

.chat-quota {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 18px;
  font-size: 12px;
  color: var(--radar-orange);
  background: rgba(255, 154, 66, 0.08);
  border-bottom: 1px solid rgba(255, 154, 66, 0.14);
}

.chat-quota a {
  color: var(--radar-green);
  text-decoration: none;
  font-weight: 600;
}

.chat-quota a:hover { text-decoration: underline; }

/* ---------- Body / messages ---------- */

.chat-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-welcome {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(110, 239, 255, 0.07), rgba(110, 239, 255, 0));
  border: 1px solid rgba(110, 239, 255, 0.14);
}

.chat-welcome-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.chat-welcome-text { font-size: 13.5px; line-height: 1.8; color: rgba(238, 247, 255, 0.78); }

.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.chat-msg-user { justify-content: flex-end; }

.chat-msg-user .chat-bubble {
  background: rgba(110, 239, 255, 0.14);
  border: 1px solid rgba(110, 239, 255, 0.22);
  color: rgba(238, 247, 255, 0.96);
  border-bottom-right-radius: 4px;
}

html[dir="rtl"] .chat-msg-user .chat-bubble {
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 4px;
}

.chat-msg-assistant .chat-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

html[dir="rtl"] .chat-msg-assistant .chat-bubble {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.75;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-bubble a {
  color: var(--radar-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-bubble-err {
  margin-top: 8px;
  font-size: 11px;
  color: #ff8d8d;
}

.chat-bubble-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(238, 247, 255, 0.45);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

html[dir="rtl"] .chat-bubble-note { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }

.chat-avatar {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(110, 239, 255, 0.20);
  border: 1px solid rgba(110, 239, 255, 0.4);
  position: relative;
  margin-top: 4px;
}

.chat-avatar::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--radar-cyan);
  box-shadow: 0 0 6px rgba(110, 239, 255, 0.6);
  animation: chat-pulse 2.2s ease-in-out infinite;
}

/* ---------- Typing indicator ---------- */

.chat-typing-dots {
  display: inline-flex;
  gap: 4px;
}

.chat-typing-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(110, 239, 255, 0.6);
  animation: chat-typing-bounce 1.2s ease-in-out infinite;
}

.chat-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots i:nth-child(3) { animation-delay: 0.3s;  }

@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-3px); opacity: 1; }
}

/* ---------- Suggestions ---------- */

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}

.chat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(238, 247, 255, 0.78);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chat-chip:hover {
  background: rgba(110, 239, 255, 0.10);
  border-color: rgba(110, 239, 255, 0.3);
  color: rgba(238, 247, 255, 0.95);
}

/* ---------- Input ---------- */

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-form textarea {
  flex: 1 1 auto;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(238, 247, 255, 0.95);
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  max-height: 160px;
}

.chat-form textarea:focus {
  border-color: rgba(110, 239, 255, 0.45);
  background: rgba(110, 239, 255, 0.06);
}

.chat-form textarea::placeholder { color: rgba(238, 247, 255, 0.35); }

.chat-form button[type="submit"] {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--radar-cyan);
  color: #001017;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(110, 239, 255, 0.32);
}

.chat-form button[type="submit"]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(110, 239, 255, 0.42);
}

.chat-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: wait;
}

.chat-send-arrow { display: inline-block; transform: rotate(0); }
html[dir="rtl"] .chat-send-arrow { transform: rotate(0); }

/* ---------- Footer ---------- */

.chat-foot {
  padding: 8px 18px 12px;
  font-size: 10.5px;
  color: rgba(238, 247, 255, 0.4);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

html[dir="rtl"] .chat-foot { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .chat-drawer { width: 100vw; }
  .chat-bubble { max-width: 86%; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-drawer { transition: none; }
  .chat-head-dot, .chat-avatar::after, .chat-typing-dots i { animation: none; }
}

/* ============================================================
   Round 5b: contextual chat affordances
   ============================================================ */

/* "Ask assistant about this" inside the detail modal */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-ask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 239, 255, 0.32);
  background: rgba(110, 239, 255, 0.10);
  color: rgba(238, 247, 255, 0.95);
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.detail-ask:hover {
  background: rgba(110, 239, 255, 0.16);
  border-color: rgba(110, 239, 255, 0.55);
  transform: translateY(-1px);
}

.detail-ask-icon {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--radar-cyan);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 3h10a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H7l-4 3v-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 3h10a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H7l-4 3v-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/></svg>') center / contain no-repeat;
}

/* "Ask the assistant" inline link on event-mini cards */
.event-mini-ask {
  align-self: flex-start;
  margin-top: 4px;
  background: transparent;
  border: 1px solid rgba(110, 239, 255, 0.22);
  color: rgba(110, 239, 255, 0.92);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.event-mini-ask:hover {
  background: rgba(110, 239, 255, 0.10);
  border-color: rgba(110, 239, 255, 0.45);
  color: rgba(238, 247, 255, 0.95);
}

/* Follow-up chips after each assistant reply have a slightly softer look */
.chat-chip-follow {
  background: rgba(110, 239, 255, 0.08);
  border-color: rgba(110, 239, 255, 0.22);
  color: rgba(238, 247, 255, 0.85);
}

.chat-chip-follow:hover {
  background: rgba(110, 239, 255, 0.14);
  border-color: rgba(110, 239, 255, 0.42);
}

/* Subtle "from focused item" badge on the welcome card when opening from askAbout */
.chat-msg-user .chat-bubble {
  position: relative;
}

/* ============================================================

/* ============================================================
   Mobile portrait hard fix — production launch readiness pass
   Comprehensive override that consolidates earlier partial fixes:
   • scroll works (overflow: auto)
   • bottom-sheet detail panel
   • hidden decorative elements (tags / spokes / particles)
   • flexible card heights for Arabic text length
   • bottom-sheet ChatGPT button works via /api/chat
   • a11y / Safari prefixes preserved
   ============================================================ */

@media (orientation: portrait) and (max-width: 1024px) {
  html,
  body,
  body.radar-body {
    height: auto !important;
    min-height: 100svh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .radar-stage {
    height: auto !important;
    min-height: 100svh;
    overflow: visible !important;
    padding:
      calc(112px + env(safe-area-inset-top))
      12px
      calc(24px + env(safe-area-inset-bottom)) !important;
  }

  /* Don't ask the user to rotate — make portrait actually work */
  .portrait-guard {
    display: none !important;
  }

  .radar-nav {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow-x: auto;
    justify-content: flex-start;
    z-index: 90;
    padding: 5px;
    gap: 5px;
  }

  .radar-nav button {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .radar-lang {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    z-index: 100;
  }

  .value-rail {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    pointer-events: auto;
  }

  .radar-copy {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 0 14px !important;
  }

  .radar-world {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: min(92vw, 390px) !important;
    max-width: 390px;
    margin: 0 auto 14px !important;
    transform: none !important;
  }

  /* Hide decorative elements on phone — they overlap content and
     compute positions assuming wide viewport */
  .radar-tags,
  .source-spokes,
  .floating-strip,
  .data-beams,
  .radar-particles {
    display: none !important;
  }

  .data-panel,
  .layer-opportunities .data-panel {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column;
    overflow: visible !important;
    padding: 10px !important;
    gap: 12px;
  }

  /* Arrows take horizontal space on mobile; swiping the feed
     is the natural gesture. Hide them. */
  .panel-arrow {
    display: none !important;
  }

  .panel-feed-wrap {
    width: 100%;
    min-height: 0 !important;
  }

  .panel-feed {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 8px !important;
  }

  /* Cards: drop the fixed 140px height — Arabic text needs room */
  .panel-feed > .signal-chip,
  .panel-feed > .opportunity-chip.featured-opportunity,
  .layer-opportunities .panel-feed > .signal-chip,
  .layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity {
    flex: 0 0 min(88vw, 360px) !important;
    height: auto !important;
    min-height: 164px !important;
    max-height: none !important;
    padding-bottom: 48px !important;
    scroll-snap-align: start;
  }

  .signal-chip p {
    -webkit-line-clamp: 2 !important;
  }

  .signal-chip small {
    -webkit-line-clamp: 2 !important;
  }

  .opportunity-proofline {
    bottom: 12px;
  }

  .opportunity-chip em {
    bottom: 12px;
  }

  /* Bottom-sheet detail panel — slides up from the bottom on tap.
     Previously was inline-relative which dropped the content out of
     view on long pages. */
  .detail-side,
  .detail-side[data-side="right"],
  .detail-side[data-side="left"] {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: min(82svh, 720px);
    overflow-y: auto;
    margin: 0 !important;
    border-radius: 22px 22px 0 0;
    transform: translateY(110%) !important;
    opacity: 1;
    z-index: 120;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .detail-side.open {
    transform: translateY(0) !important;
  }

  .detail-backdrop {
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 110;
  }

  body.detail-active {
    overflow: hidden !important;
  }
}

/* Stronger reduced-motion for the specific high-energy radar effects.
   Complements the * catch-all earlier; this kills frame-by-frame loops
   that the wildcard rule can't always neutralise (CSS keyframes still
   start; iteration-count=1 + duration=0.001ms ensures they exit). */
@media (prefers-reduced-motion: reduce) {
  .earth-image,
  .radar-disc,
  .earth-scan,
  .always-on-ring,
  .scan-orbit,
  .scan-flash,
  .earth-ping,
  .tag {
    animation: none !important;
  }
}

/* Keep a complete, readable card inside narrow screens. */
@media (max-width: 600px) {
  .panel-feed > .signal-chip,
  .panel-feed > .opportunity-chip.featured-opportunity,
  .layer-opportunities .panel-feed > .signal-chip,
  .layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity {
    flex: 0 0 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .signal-chip p, .signal-chip small { white-space: normal; overflow-wrap: anywhere; }
}

/* Readable phone view: complete labels, generous targets, vertical reading. */
:root { --reader-body: 18px; }
:root[data-reader-font="large"] { --reader-body: 23px; }
.reading-controls { position: fixed; top: 10px; left: 116px; z-index: 100; }
.reading-controls button { min-height: 48px; padding: 8px 14px; color: #f5f7fa; background: #18212b; border: 1px solid #8195a8; border-radius: 12px; font: inherit; font-size: 18px; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #a8e9ff !important; outline-offset: 3px; }
.detail-close { min-width: 48px; min-height: 48px; }
.detail-side { font-size: var(--reader-body); }
.detail-side .detail-text, .detail-side .detail-text p, .detail-side .detail-text li { font-size: var(--reader-body); line-height: 1.8; color: #e8edf2; }
.detail-side .detail-section h3, .detail-side summary { font-size: calc(var(--reader-body) + 2px); color: #f7fafc; }
.detail-side summary { min-height: 48px; padding: 8px 0; cursor: pointer; }
.detail-side .detail-actions button, .detail-side .detail-actions a { min-height: 48px; font-size: var(--reader-body); white-space: normal; }
:root[data-reader-font="large"] .signal-chip p { font-size: 25px !important; }
:root[data-reader-font="large"] .signal-chip small { font-size: 23px !important; }
@media (max-width: 760px) {
  .radar-stage { display: flex !important; flex-direction: column; padding: calc(12px + env(safe-area-inset-top)) 12px 24px !important; gap: 14px; }
  .radar-lang { position: static !important; align-self: flex-end; order: 0; }
  .radar-lang button { min-width: 48px; min-height: 48px; font-size: 18px; }
  .reading-controls { position: static; order: 0; align-self: flex-start; }
  .radar-nav { position: static !important; width: 100% !important; display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; overflow: visible; border-radius: 16px; order: 1; }
  .radar-nav button { font-size: var(--reader-body) !important; min-height: 52px; padding: 10px 6px !important; white-space: normal !important; color: #edf2f7 !important; opacity: 1 !important; }
  .radar-nav button:last-child { grid-column: 1 / -1; }
  .radar-nav button.active { background: #304d40 !important; border: 2px solid #a4e4b7; }
  .value-rail { order: 2; margin: 0 !important; padding: 14px; background: #10171e !important; }
  .value-rail p { color: #edf2f7; font-size: var(--reader-body); line-height: 1.7; }
  .value-stats { gap: 12px; display: flex; flex-wrap: wrap; }
  .value-stats span { flex: 1 1 100px; }
  .value-stats small { font-size: 16px !important; color: #d8e2eb !important; line-height: 1.6; }
  .value-stats b { font-size: 18px !important; }
  .radar-world, .radar-copy, .interaction-hint { display: none !important; }
  .data-panel { order: 3; background: #0f171c !important; border-color: #667b87 !important; padding: 12px !important; }
  .panel-metric { order: 0 !important; color: #eaf1f5 !important; }
  .panel-metric span { font-size: 22px !important; color: #f5f7fa !important; }
  .panel-metric small { font-size: 16px !important; color: #d8e2eb !important; line-height: 1.6; }
  .panel-feed-wrap { order: 1; }
  .panel-feed { display: flex !important; flex-direction: column !important; gap: 16px; overflow: visible !important; scroll-snap-type: none; width: 100%; }
  .panel-feed > .signal-chip,
  .panel-feed > .opportunity-chip.featured-opportunity,
  .layer-opportunities .panel-feed > .signal-chip,
  .layer-opportunities .panel-feed > .opportunity-chip.featured-opportunity {
    flex: 0 0 auto !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    min-height: 0 !important; height: auto !important; padding: 18px !important; text-align: start;
    background: #182921 !important; border: 1px solid #81998c !important;
  }
  .signal-chip p, .signal-chip small { display: block !important; -webkit-line-clamp: unset !important; max-height: none !important; overflow: visible !important; white-space: normal !important; }
  .signal-chip p { font-size: calc(var(--reader-body) + 4px) !important; line-height: 1.6 !important; color: #f5f7fa !important; }
  .signal-chip small { font-size: var(--reader-body) !important; line-height: 1.8 !important; color: #e3ebe6 !important; }
  .signal-chip > span, .signal-chip .opportunity-source { font-size: 16px !important; white-space: normal !important; max-width: 100% !important; color: #c8f2d4 !important; }
  .signal-chip .freshness-badge { position: static !important; display: inline-block !important; margin: 8px 0 !important; font-size: 15px !important; color: #f2e9cc !important; }
  .signal-chip em { position: static !important; display: block; margin-top: 14px; padding: 10px; font-size: 18px !important; color: #d8ffe4 !important; }
  .opportunity-proofline { display: none; }
  .radar-footer { position: static !important; order: 4; font-size: 16px; color: #e3ebe6; }
  .detail-side { background: #111c24 !important; max-height: 90svh !important; }
  .detail-head { position: sticky; top: 0; background: #111c24; z-index: 3; }
  .detail-title { font-size: calc(var(--reader-body) + 6px) !important; line-height: 1.5; }
  .detail-meta, .detail-source, .detail-evidence-grid a { font-size: 16px !important; color: #e3ebe6 !important; }
  .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .detail-actions > * { flex: 1 1 150px; }
  .radar-stage *, .detail-side * { animation: none !important; }
}

.detail-side .detail-section h3 { font-size: calc(var(--reader-body) + 2px) !important; }
@media (max-width: 760px) {
  html, body { height: auto !important; min-height: 100svh; overflow-x: hidden !important; overflow-y: auto !important; }
  .radar-stage { height: auto !important; min-height: 100svh; overflow: visible !important; }
  body.detail-active { overflow: hidden !important; }
  .detail-evidence-card { min-height: 48px; }
  .detail-evidence-card b, .detail-evidence-card small { font-size: 16px !important; line-height: 1.6; }
}
@media (min-width: 761px) {
  html[data-reader-font="large"], html[data-reader-font="large"] body { height: auto !important; overflow-y: auto !important; }
  html[data-reader-font="large"] .radar-stage { height: auto; min-height: 100svh; overflow: visible; padding: 100px 40px 30px; }
  html[data-reader-font="large"] .radar-world, html[data-reader-font="large"] .radar-copy,
  html[data-reader-font="large"] .radar-tags, html[data-reader-font="large"] .radar-particles { display: none !important; }
  html[data-reader-font="large"] .value-rail { position: relative; inset: auto; width: 100%; margin-bottom: 24px; }
  html[data-reader-font="large"] .value-rail p { font-size: 23px; }
  html[data-reader-font="large"] .data-panel { position: relative; inset: auto; transform: none; width: 100%; height: auto; max-height: none; display: block; overflow: visible; }
  html[data-reader-font="large"] .panel-feed { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  html[data-reader-font="large"] .panel-feed > .signal-chip { width: 100%; height: auto !important; max-height: none !important; min-height: 0; padding: 18px 18px 60px; }
  html[data-reader-font="large"] .signal-chip p, html[data-reader-font="large"] .signal-chip small { display: block; -webkit-line-clamp: unset; max-height: none; line-height: 1.7; }
  html[data-reader-font="large"] .panel-arrow { display: none; }
}

/* Progressive disclosure keeps the complete reviewed feed available. */
.radar-pagination{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;color:#d9e5ef;font-size:16px;padding:10px;}
.radar-pagination small{flex-basis:100%;text-align:center;font-size:14px;}
.radar-pagination button{min-height:48px;padding:8px 24px;border:1px solid #8bc8ff;border-radius:12px;background:#10283a;color:#fff;font:inherit;cursor:pointer;}
@media(max-width:760px){.radar-pagination{font-size:18px;padding:16px}.radar-pagination small{font-size:16px;line-height:1.8}}
html[data-reader-font="large"] .radar-pagination{font-size:23px;}
@media(min-width:761px){
  html:not([data-reader-font="large"]) .data-panel{height:210px;max-height:210px;grid-template-rows:minmax(0,1fr) auto;}
  html:not([data-reader-font="large"]) .radar-pagination{grid-column:1/-1;padding:4px;gap:6px;}
  html:not([data-reader-font="large"]) .radar-pagination small{font-size:13px;}
  html:not([data-reader-font="large"]) .radar-pagination button{min-height:48px;}
}
.radar-pagination{order:2;}
@media (min-width: 761px) {
  html:not([data-reader-font="large"]) .data-panel { height: 330px; max-height: 330px; }
  html:not([data-reader-font="large"]) .panel-feed > .signal-chip,
  html:not([data-reader-font="large"]) .panel-feed > .opportunity-chip.featured-opportunity { height: 224px; min-height: 224px; max-height: 224px; padding: 14px 16px 32px; }
  html:not([data-reader-font="large"]) .signal-chip p { font-size: 18px; line-height: 1.5; -webkit-line-clamp: 2; }
  html:not([data-reader-font="large"]) .signal-chip small { font-size: 16px; line-height: 1.6; -webkit-line-clamp: 3; }
  .panel-arrow { width:48px; height:48px; }
}
/* Free pilot; retain the published radar layout and globe. */
.value-rail .radar-free-trial { color:#9debc5; font-size:14px; line-height:1.6; margin:0 0 8px; }
.detail-section summary { cursor:pointer; min-height:48px; padding:8px 0; font-weight:700; }
@media(max-width:760px){.value-rail .radar-free-trial{font-size:16px}}
