/* ─── Right Inspection Stage: Fluid 4K Vector & Sculptural Typography ─── */
.stage-pane {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0.95rem 1.35rem 1.65rem;
  /* Desk surface: charcoal slate (dark) / warm Roman travertine (light), tinted from --background */
  --desk-base: var(--background, #151413);
  background:
    radial-gradient(115% 62% at 16% 0%, color-mix(in oklab, #e2cfae 9%, transparent) 0%, transparent 64%),
    repeating-linear-gradient(94deg, color-mix(in oklab, #a98f6c 3%, transparent) 0 1px, transparent 1px 11px),
    linear-gradient(172deg,
      color-mix(in oklab, var(--desk-base) 95%, #cbb38d) 0%,
      color-mix(in oklab, var(--desk-base) 91%, #8f7758) 100%);
}

.stage-inner {
  max-width: min(100%, 72rem);
  margin: 0 auto;
}

.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.stage-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.78rem;
}

.stage-icon {
  width: 2.05rem;
  height: 2.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-icon svg { width: 100%; height: 100%; }

.stage-name {
  font-size: 1.8rem;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stage-subline {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copy-id-btn {
  padding: 0.12rem 0;
  font-size: 0.78rem;
  color: var(--muted-foreground);
  border-bottom: 1px dashed var(--border);
}

.copy-id-btn:hover { color: var(--foreground); }

.stage-price-anchor {
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.stage-price-main {
  font-size: 1.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--foreground);
}

.stage-price-meta {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.stage-price-meta .strike {
  color: var(--strike-foreground);
  text-decoration: line-through;
  margin-right: 0.4rem;
}

.stage-summary {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Hero Composition: Vector-Scalable Mastermind Phantom + 6D Hexagon */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 34rem;
  height: 15.6rem;
  margin: 0.85rem auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
}

.phantom-wrap {
  --phantom-side: 10.6rem; /* side of the reference square: every mark gets the same area */
  --phantom-ar: 1;         /* mark width / height, taken from its viewBox */
  position: absolute;
  top: 50%;
  left: 0.15rem;
  pointer-events: none;
  opacity: var(--phantom-opacity);
}

/* Equal-area sizing: width = side * sqrt(ar), height = side / sqrt(ar); never stretched */
.phantom-wrap svg {
  width: calc(var(--phantom-side) * sqrt(var(--phantom-ar)));
  max-width: min(30rem, 88vw);
  height: auto;
  aspect-ratio: var(--phantom-ar);
}

.phantom-wrap.spacexai { --phantom-ar: 2.6; left: -0.65rem; }

.radar-svg {
  position: relative;
  z-index: 2;
  width: 20.8rem;
  height: auto;
  margin-left: 4.5rem;
  flex-shrink: 0;
}

.media-hero-center {
  position: relative;
  z-index: 2;
  margin-left: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

/* ─── Core Spec Labels ─────────────────────────────────────────────────── */
.spec-lbl {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.spec-val {
  margin-top: 0.35rem;
  font-size: 1.32rem;
  line-height: 1.15;
  white-space: nowrap;
}

.spec-note {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  margin-top: 0.25rem;
  font-weight: 600;
}

.spec-tip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dashed var(--border);
}

.spec-tip .tip-box {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.35rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.72rem;
  background: var(--foreground);
  color: var(--background);
  transition: opacity 0.12s ease;
  pointer-events: none;
  z-index: 30;
}

.spec-tip:hover .tip-box { visibility: visible; opacity: 1; }

/* ─── Enlarged Input / Output Modality Pipeline ─────────────────────────── */
.pipeline-wrap {
  margin-top: 1.15rem;
  padding: 0.85rem 1.05rem;
  border-radius: 0.5rem;
  background: var(--spec-tile-bg);
}

.pipeline-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.58rem;
}

.pipeline-bar {
  display: flex;
  align-items: center;
  gap: 0.78rem;
}

.mod-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mod-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.42rem 0.68rem;
  border-radius: 2px;
  font-size: 0.82rem;
  background: var(--secondary);
  color: var(--foreground);
  font-weight: 600;
  white-space: nowrap;
}

.mod-chip svg { width: 1.02rem; height: 1.02rem; }
/* Off state dims the label text only; never opacity/filter on the chip (icons stay full strength) */
.mod-chip.off { background: transparent; color: var(--subtle-foreground); font-weight: 400; }

.pipeline-arrow { flex: 1; display: flex; align-items: center; min-width: 1.5rem; }
.pipeline-line { width: 100%; height: 1px; background: var(--border); }

/* ─── Shared section kicker & health lamp (channel rules live in stage-channels.css) ─── */
.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.health-dot { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--accent-emerald); }
.health-dot.offline { background: var(--subtle-foreground); }
