:root {
  --rp-bg: #0d0a06;
  --rp-surface: #171208;
  --rp-surface-2: #211a0d;
  --rp-line: rgba(239, 195, 91, 0.22);
  --rp-text: #f7f3e8;
  --rp-muted: #b3a88f;
  --rp-gold: #efc35b;
  --rp-running: #6dd69b;
  --rp-validated: #55c9ee;
  --rp-extendable: #b48cf2;
  --rp-review: #ef6c67;
  --rp-building: #43d6b4;
  --rp-topbar-height: 56px;
  --rp-max-width: 1600px;
}

.report-page {
  background: var(--rp-bg);
  color: var(--rp-text);
  overflow: hidden;
}

.report-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(239, 195, 91, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 75% 70%, rgba(85, 201, 238, 0.05) 0%, transparent 42%),
    linear-gradient(rgba(239, 195, 91, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 195, 91, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

@media (prefers-reduced-motion: no-preference) {
  .report-bg-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.14) 2px,
      rgba(0, 0, 0, 0.14) 4px
    );
    opacity: 0.3;
  }
}

.report-page .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rp-topbar-height);
  background: rgba(13, 10, 6, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rp-line);
  z-index: 100;
}

.report-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.report-screen {
  position: relative;
  height: calc(100svh - var(--rp-topbar-height));
  overflow: hidden;
  scroll-snap-align: start;
  padding: calc(var(--rp-topbar-height) + 10px) max(16px, calc((100vw - var(--rp-max-width)) / 2)) 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.report-screen .screen-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.report-screen .screen-header.compact {
  margin-bottom: 6px;
}

.report-screen .screen-number {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rp-line);
  border-radius: 8px;
  color: var(--rp-gold);
  font: 700 16px var(--font-mono);
  background: var(--rp-surface);
}

.report-screen .screen-header h2 {
  margin: 0;
  color: var(--rp-text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
}

.report-screen .screen-desc {
  margin: 4px 0 0;
  color: var(--rp-muted);
  font-size: 14px;
  max-width: 960px;
  line-height: 1.5;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-running {
  background: rgba(109, 214, 155, 0.14);
  color: var(--rp-running);
  border: 1px solid rgba(109, 214, 155, 0.35);
}

.status-validated {
  background: rgba(85, 201, 238, 0.14);
  color: var(--rp-validated);
  border: 1px solid rgba(85, 201, 238, 0.35);
}

.status-extendable {
  background: rgba(180, 140, 242, 0.14);
  color: var(--rp-extendable);
  border: 1px solid rgba(180, 140, 242, 0.35);
}

.status-building {
  background: rgba(67, 214, 180, 0.14);
  color: var(--rp-building);
  border: 1px solid rgba(67, 214, 180, 0.35);
}

/* Screen 1: Hero */
.screen-rp-hero {
  justify-content: center;
}

.rp-hero-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  width: 100%;
  max-width: var(--rp-max-width);
  align-items: center;
}

.rp-hero-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.hero-stack-svg {
  width: 100%;
  max-height: 56vh;
}

.stack-box {
  fill: var(--rp-surface);
  stroke: var(--rp-line);
  stroke-width: 1.5;
}

.stack-rpa {
  fill: var(--rp-surface-2);
}

.stack-title {
  fill: var(--rp-text);
  font-size: 17px;
  font-weight: 600;
}

.stack-title-gold {
  fill: var(--rp-gold);
}

.stack-sub {
  fill: var(--rp-muted);
  font-size: 12.5px;
}

.stack-note {
  fill: var(--rp-gold);
  font-size: 11.5px;
}

.stack-icon {
  fill: none;
  stroke: var(--rp-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stack-icon-gold {
  fill: none;
  stroke: var(--rp-gold);
  stroke-width: 2;
  stroke-linecap: round;
}

.stack-link {
  stroke: var(--rp-gold);
  stroke-width: 2;
  opacity: 0.7;
}

.stack-link-dim {
  stroke: var(--rp-line);
  stroke-width: 1.5;
}

.hero-tagline {
  margin: 0;
  color: var(--rp-muted);
  font-size: 13px;
  text-align: center;
}

.rp-hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.rp-hero-right .eyebrow {
  margin: 0;
  color: var(--rp-gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rp-hero-right h1 {
  margin: 0;
  color: var(--rp-text);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.rp-hero-subtitle {
  margin: 0;
  color: var(--rp-muted);
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.6;
}

.def-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.def-card {
  padding: 12px 16px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
}

.def-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--rp-gold);
}

.def-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--rp-text);
  font-size: 13px;
  line-height: 1.7;
}

.def-card p {
  margin: 0;
  color: var(--rp-text);
  font-size: 13px;
  line-height: 1.65;
}

.def-is { border-color: rgba(109, 214, 155, 0.3); }
.def-not { border-color: rgba(239, 108, 103, 0.3); }
.def-why { border-color: rgba(239, 195, 91, 0.35); }

.scroll-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--rp-muted);
  font-size: 12px;
}

.scroll-hint i {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--rp-line);
  border-radius: 10px;
  position: relative;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 5px;
  background: var(--rp-gold);
  border-radius: 2px;
  animation: scrollHint 1.6s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i::after { animation: none; }
}

/* Screen 2: Why real-world feedback is scarce */
.why-compare {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.why-loop {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-surface);
  min-height: 0;
}

.why-loop h3 {
  margin: 0;
  font-size: 14px;
  color: var(--rp-text);
}

.offline-loop { border-color: rgba(179, 168, 143, 0.3); }
.realworld-loop { border-color: rgba(109, 214, 155, 0.35); }

.loop-chain {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.loop-step {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  text-align: center;
  border: 1px solid var(--rp-line);
  background: var(--rp-surface-2);
  color: var(--rp-text);
}

.offline-loop .loop-step {
  border-color: rgba(179, 168, 143, 0.25);
  color: var(--rp-muted);
}

.realworld-loop .loop-step {
  border-color: rgba(109, 214, 155, 0.3);
}

.realworld-loop .loop-step.loop-step-hl {
  border-color: var(--rp-gold);
  color: var(--rp-gold);
  font-weight: 600;
}

.loop-arrow {
  text-align: center;
  color: var(--rp-line);
  font-size: 12px;
  line-height: 1;
}

.loop-warning {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 108, 103, 0.08);
  border: 1px solid rgba(239, 108, 103, 0.3);
  color: var(--rp-review);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.loop-emphasis {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(239, 195, 91, 0.1);
  border: 1px solid rgba(239, 195, 91, 0.35);
  color: var(--rp-gold);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}

.value-cards {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.value-card {
  padding: 12px 14px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.value-card strong {
  color: var(--rp-gold);
  font-size: 13px;
}

.value-card span {
  color: var(--rp-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Screen 3: Architecture */
.arch-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
}

.arch-svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.arch-box {
  fill: var(--rp-surface);
  stroke: var(--rp-line);
  stroke-width: 1.5;
}

.arch-box-core {
  fill: var(--rp-surface-2);
}

.arch-title {
  fill: var(--rp-text);
  font-size: 16px;
  font-weight: 600;
}

.arch-title-gold {
  fill: var(--rp-gold);
}

.arch-sub {
  fill: var(--rp-muted);
  font-size: 12px;
}

.arch-icon-line {
  fill: none;
  stroke: var(--rp-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arch-icon-gold {
  fill: none;
  stroke: var(--rp-gold);
  stroke-width: 2;
  stroke-linecap: round;
}

.arch-link {
  stroke: var(--rp-gold);
  stroke-width: 2;
  opacity: 0.6;
}

.arch-flow-line {
  fill: none;
  stroke-width: 2;
}

.arch-flow-request {
  stroke: var(--rp-validated);
  opacity: 0.7;
}

.arch-flow-feedback {
  stroke: var(--rp-gold);
  opacity: 0.8;
}

.arch-flow-label {
  font-size: 11px;
  text-anchor: middle;
}

.arch-flow-label-request {
  fill: var(--rp-validated);
}

.arch-flow-label-feedback {
  fill: var(--rp-gold);
}

.arch-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.msg-flow {
  padding: 14px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-surface);
}

.msg-flow h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--rp-gold);
}

.msg-flow ol {
  margin: 0;
  padding-left: 20px;
  color: var(--rp-text);
  font-size: 12.5px;
  line-height: 1.9;
}

.arch-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.arch-prop {
  padding: 10px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.arch-prop strong {
  color: var(--rp-gold);
  font-size: 12.5px;
}

.arch-prop span {
  color: var(--rp-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* Inline icons */
.cap-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
  fill: none;
  stroke: var(--rp-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.level-card .cap-icon {
  stroke: var(--rp-muted);
}

.why-loop h3 .cap-icon,
.conv-loop h3 .cap-icon,
.conv-merge h3 .cap-icon {
  stroke: var(--rp-gold);
}

/* Screen 4: Capabilities */
.cap-timeline {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
  color: var(--rp-text);
  font-size: 12px;
  margin-bottom: 10px;
}

.cap-timeline i {
  width: 16px;
  height: 1.5px;
  background: var(--rp-gold);
  position: relative;
  opacity: 0.7;
}

.cap-timeline i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid var(--rp-gold);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.cap-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-surface);
  min-height: 0;
}

.cap-card .status-badge {
  position: absolute;
  top: 10px;
  right: 12px;
}

.cap-card h3 {
  margin: 0;
  font-size: 14px;
  color: var(--rp-text);
  padding-right: 90px;
}

.cap-card p {
  margin: 0;
  color: var(--rp-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cap-example {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  font-size: 11.5px;
  color: var(--rp-text);
}

.cap-example em {
  color: var(--rp-gold);
  font-style: normal;
  font-weight: 600;
}

.cap-card-video .video-trigger {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 190px;
  position: relative;
  padding: 0;
  border: 1px solid var(--rp-line);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  display: block;
}

.cap-card-video .video-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.cap-card-video .video-trigger:hover img {
  opacity: 1;
}

.cap-card-shot .shot-trigger {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 190px;
  position: relative;
  padding: 0;
  border: 1px solid var(--rp-line);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  display: block;
}

.cap-card-shot .shot-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: 0.9;
}

.cap-card-shot .shot-trigger:hover img {
  opacity: 1;
}

.shot-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 10px;
  background: rgba(13, 10, 6, 0.88);
  color: var(--rp-muted);
  font-size: 11px;
  text-align: left;
}

.video-play-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  background: rgba(13, 10, 6, 0.88);
  color: var(--rp-gold);
  font-size: 11.5px;
  text-align: left;
}

.cap-conclusion {
  flex-shrink: 0;
  margin: 10px 0 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(239, 195, 91, 0.08);
  border: 1px solid rgba(239, 195, 91, 0.3);
  color: var(--rp-gold);
  font-size: 13px;
  text-align: center;
}

/* Screen 5: Operational evidence */
.kpi-strip {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.kpi-card {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  opacity: 0.75;
}

.kpi-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--rp-gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kpi-card strong {
  color: var(--rp-gold);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  font-family: var(--font-mono);
}

.kpi-card span {
  color: var(--rp-muted);
  font-size: 12px;
}

.evidence-charts {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ev-chart-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-surface);
  min-height: 0;
  overflow: hidden;
}

.ev-chart-card h3 {
  margin: 0;
  font-size: 12.5px;
  color: var(--rp-text);
  flex-shrink: 0;
}

.ev-chart {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.ev-chart > div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.ev-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.ev-note {
  flex-shrink: 0;
  margin: 8px 0 0;
  color: var(--rp-muted);
  font-size: 11.5px;
  text-align: center;
}

/* Screen 6: Feedback signals */
.signals-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}

.signals-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.signal-event-line {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
  font-size: 11.5px;
  color: var(--rp-text);
}

.signal-event-line i {
  width: 12px;
  height: 1.5px;
  background: var(--rp-gold);
  opacity: 0.6;
}

.signal-groups {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.signal-group {
  padding: 12px 14px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-surface);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signal-group h3 {
  margin: 0;
  font-size: 13px;
}

.signal-existing { border-color: rgba(109, 214, 155, 0.3); }
.signal-extendable { border-color: rgba(180, 140, 242, 0.3); }

.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}

.signal-tags span {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  color: var(--rp-text);
}

.signal-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  justify-content: center;
}

.level-card {
  padding: 10px 14px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.level-card strong {
  font-size: 12.5px;
  color: var(--rp-text);
}

.level-card span {
  font-size: 11.5px;
  color: var(--rp-muted);
}

.level-on { border-left: 3px solid var(--rp-running); }
.level-ext { border-left: 3px solid var(--rp-extendable); }

.signals-conclusion {
  flex-shrink: 0;
  margin: 10px 0 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(180, 140, 242, 0.08);
  border: 1px solid rgba(180, 140, 242, 0.3);
  color: var(--rp-extendable);
  font-size: 12.5px;
  text-align: center;
}

/* Screen 7: Model gateway */
.gateway-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.15fr;
  gap: 14px;
  margin-bottom: 10px;
}

.gw-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-surface);
  min-height: 0;
}

.gw-col h3 {
  margin: 0;
  font-size: 14px;
  color: var(--rp-text);
}

.gw-core h3 { color: var(--rp-gold); }

.gw-node {
  padding: 10px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 8px;
  background: var(--rp-surface-2);
  font-size: 12.5px;
  color: var(--rp-text);
  text-align: center;
}

.gw-core-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}

.gw-core-chips span {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-line);
  color: var(--rp-text);
}

.gw-flow-labels {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.gw-flow-up { color: var(--rp-validated); }
.gw-flow-down { color: var(--rp-running); }
.gw-flow-back { color: var(--rp-gold); }

.gw-model {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gw-model .status-badge {
  position: absolute;
  top: 8px;
  right: 10px;
}

.gw-model-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 86px;
}

.gw-model strong {
  color: var(--rp-text);
  font-size: 13px;
}

.gw-logo {
  height: 30px;
  max-width: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  padding: 3px 6px;
}

.gw-logo-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--rp-gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gw-model small {
  color: var(--rp-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.gw-model-validated { border-color: rgba(85, 201, 238, 0.35); }
.gw-model-future { border-color: rgba(180, 140, 242, 0.3); }

.gw-values {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gw-value {
  padding: 10px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gw-value strong {
  color: var(--rp-gold);
  font-size: 12px;
}

.gw-value span {
  color: var(--rp-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* Screen 8: Convergence */
.converge-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.conv-loop, .conv-merge {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-surface);
  min-height: 0;
}

.conv-loop h3, .conv-merge h3 {
  margin: 0;
  font-size: 13.5px;
  color: var(--rp-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.conv-offline { border-color: rgba(67, 214, 180, 0.3); }
.conv-online { border-color: rgba(109, 214, 155, 0.3); }
.conv-merge { border-color: rgba(239, 195, 91, 0.35); }

.conv-chain {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.conv-step {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  border: 1px solid var(--rp-line);
  background: var(--rp-surface-2);
  color: var(--rp-text);
}

.conv-arrow {
  text-align: center;
  color: var(--rp-line);
  font-size: 11px;
  line-height: 1;
}

.conv-merge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conv-merge-chips span {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  background: var(--rp-surface-2);
  border: 1px solid rgba(239, 195, 91, 0.3);
  color: var(--rp-gold);
}

.conv-cycle {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px dashed rgba(239, 195, 91, 0.4);
  border-radius: 10px;
}

.conv-cycle-step {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  background: rgba(239, 195, 91, 0.08);
  border: 1px solid rgba(239, 195, 91, 0.3);
  color: var(--rp-text);
}

.conv-states {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.conv-state {
  padding: 10px 14px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.conv-state strong { font-size: 12.5px; }
.conv-state span { color: var(--rp-muted); font-size: 11.5px; line-height: 1.5; }

.conv-state-built strong { color: var(--rp-running); }
.conv-state-building strong { color: var(--rp-building); }
.conv-state-future strong { color: var(--rp-extendable); }

.conv-final {
  flex-shrink: 0;
  margin: 10px 0 0;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(239, 195, 91, 0.1);
  border: 1px solid rgba(239, 195, 91, 0.4);
  color: var(--rp-gold);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-modal-box {
  position: relative;
  width: min(1100px, 92vw);
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  padding: 12px;
  z-index: 1;
}

.video-modal-box video {
  width: 100%;
  max-height: 72vh;
  background: #000;
  border-radius: 8px;
}

.video-modal-box img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rp-line);
  background: var(--rp-surface-2);
  color: var(--rp-text);
  font-size: 18px;
  cursor: pointer;
}

.video-caption {
  margin: 10px 2px 2px;
  color: var(--rp-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Navigator */
.screen-navigator {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 42px;
  padding: 6px 2px;
  border: 1px solid var(--rp-line);
  border-radius: 8px;
  background: var(--rp-surface);
  color: var(--rp-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.screen-nav-item:hover {
  background: var(--rp-surface-2);
}

.screen-nav-item.active {
  background: var(--rp-gold);
  border-color: var(--rp-gold);
  color: var(--rp-bg);
}

.screen-nav-item span {
  font: 700 11px var(--font-mono);
}

.screen-nav-item small {
  font-size: 9px;
  line-height: 1;
}

.screen-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: var(--rp-surface);
}

.screen-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rp-gold), var(--rp-validated));
  transition: width 0.3s ease;
}

/* Error panel */
.report-error {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 28px;
  border: 1px solid var(--rp-review);
  border-radius: 10px;
  background: var(--rp-surface);
  color: var(--rp-review);
  z-index: 200;
}

/* Animations */
@keyframes rpFadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-screen.is-active .def-card,
.report-screen.is-active .why-loop,
.report-screen.is-active .arch-side,
.report-screen.is-active .cap-card,
.report-screen.is-active .kpi-card,
.report-screen.is-active .ev-chart-card,
.report-screen.is-active .signal-group,
.report-screen.is-active .level-card,
.report-screen.is-active .gw-col,
.report-screen.is-active .conv-loop,
.report-screen.is-active .conv-merge {
  animation: rpFadeInUp 0.5s ease backwards;
}

@media (prefers-reduced-motion: reduce) {
  .report-screen.is-active .def-card,
  .report-screen.is-active .why-loop,
  .report-screen.is-active .arch-side,
  .report-screen.is-active .cap-card,
  .report-screen.is-active .kpi-card,
  .report-screen.is-active .ev-chart-card,
  .report-screen.is-active .signal-group,
  .report-screen.is-active .level-card,
  .report-screen.is-active .gw-col,
  .report-screen.is-active .conv-loop,
  .report-screen.is-active .conv-merge {
    animation: none;
  }
}

/* Compact desktop: narrow width OR short viewport */
@media (max-width: 1400px), (max-height: 960px) {
  .report-screen {
    padding: calc(var(--rp-topbar-height) + 6px) max(16px, calc((100vw - var(--rp-max-width)) / 2)) 0px;
  }
  .report-screen .screen-header {
    margin-bottom: 4px;
  }
  .report-screen .screen-header.compact {
    margin-bottom: 2px;
  }
  .report-screen .screen-header h2 {
    font-size: 20px;
  }
  .report-screen .screen-desc {
    font-size: 13px;
  }
  .cap-timeline {
    font-size: 11px;
    padding: 6px 10px;
    margin-bottom: 6px;
  }
  .cap-grid {
    gap: 8px;
  }
  .cap-card {
    padding: 8px 10px;
    gap: 4px;
  }
  .cap-card h3 {
    font-size: 13px;
  }
  .cap-card p {
    font-size: 11px;
    line-height: 1.4;
  }
  .cap-example {
    font-size: 10.5px;
    padding: 5px 8px;
    gap: 2px;
  }
  .cap-card-video .video-trigger {
    max-height: 140px;
  }
  .cap-card-shot .shot-trigger {
    max-height: 130px;
  }
  .cap-conclusion {
    margin-top: 6px;
    padding: 8px 14px;
    font-size: 12px;
  }
  .kpi-strip {
    gap: 8px;
    margin-bottom: 6px;
  }
  .kpi-card {
    padding: 8px 12px;
  }
  .kpi-card strong {
    font-size: 20px;
  }
  .kpi-card span {
    font-size: 11px;
  }
  .evidence-charts {
    gap: 8px;
  }
  .ev-chart-card {
    padding: 8px 10px;
    gap: 4px;
  }
  .ev-chart-card h3 {
    font-size: 12px;
  }
  .ev-note {
    margin-top: 4px;
    font-size: 11px;
  }
  .loop-step, .conv-step, .conv-cycle-step {
    font-size: 11px;
    padding: 5px 8px;
  }
  .converge-body {
    gap: 8px;
    margin-bottom: 6px;
  }
  .conv-loop, .conv-merge {
    padding: 10px 12px;
    gap: 6px;
  }
  .conv-chain {
    gap: 4px;
  }
  .conv-cycle {
    gap: 3px;
    padding: 8px;
  }
  .conv-states {
    gap: 8px;
  }
  .conv-state {
    padding: 8px 12px;
  }
  .conv-state span {
    font-size: 11px;
  }
  .msg-flow ol {
    font-size: 12px;
    line-height: 1.7;
  }
  .signal-tags span, .gw-core-chips span, .conv-merge-chips span {
    font-size: 11px;
    padding: 4px 8px;
  }
  .arch-title {
    font-size: 14px;
  }
  .arch-sub {
    font-size: 11px;
  }
  .conv-final {
    margin-top: 6px;
    font-size: 13.5px;
    padding: 8px 14px;
  }
  .video-play-hint {
    font-size: 10.5px;
  }
}

/* Ultra-compact: short laptop windows (e.g. 1366x768 with browser chrome) */
@media (max-height: 700px) and (min-width: 1181px) {
  .report-screen .screen-header h2 {
    font-size: 18px;
  }
  .report-screen .screen-desc {
    font-size: 12px;
    line-height: 1.4;
  }
  .hero-stack-svg {
    max-height: 44vh;
  }
  .rp-hero-right h1 {
    font-size: 24px;
  }
  .rp-hero-subtitle {
    font-size: 12px;
    line-height: 1.45;
  }
  .def-card {
    padding: 8px 12px;
  }
  .def-card ul, .def-card p {
    font-size: 11.5px;
    line-height: 1.5;
  }
  .loop-step {
    font-size: 10.5px;
    padding: 4px 8px;
  }
  .loop-chain {
    gap: 3px;
  }
  .loop-warning, .loop-emphasis {
    padding: 7px 12px;
    font-size: 11px;
  }
  .value-card {
    padding: 8px 12px;
  }
  .value-card span {
    font-size: 11px;
  }
  .arch-title {
    font-size: 13px;
  }
  .arch-sub {
    font-size: 10.5px;
  }
  .msg-flow {
    padding: 10px 12px;
  }
  .msg-flow ol {
    font-size: 11px;
    line-height: 1.55;
  }
  .arch-prop {
    padding: 7px 10px;
  }
  .cap-timeline {
    font-size: 10.5px;
    padding: 5px 8px;
  }
  .cap-card {
    padding: 6px 10px;
  }
  .cap-card h3 {
    font-size: 12px;
  }
  .cap-card p {
    font-size: 10.5px;
    line-height: 1.35;
  }
  .cap-example {
    font-size: 10px;
    padding: 4px 7px;
  }
  .cap-card-video .video-trigger {
    max-height: 110px;
  }
  .cap-card-shot .shot-trigger {
    max-height: 105px;
  }
  .cap-conclusion {
    padding: 6px 12px;
    font-size: 11px;
  }
  .kpi-card {
    padding: 6px 12px;
  }
  .kpi-icon {
    width: 20px;
    height: 20px;
  }
  .conv-step {
    font-size: 10.5px;
    padding: 3px 7px;
  }
  .conv-cycle-step {
    font-size: 10.5px;
    padding: 3px 7px;
  }
  .conv-chain, .conv-cycle {
    gap: 2px;
  }
  .conv-loop, .conv-merge {
    padding: 8px 10px;
    gap: 4px;
  }
  .converge-body {
    margin-bottom: 4px;
  }
  .conv-merge-chips span {
    font-size: 10px;
    padding: 3px 7px;
  }
  .why-compare {
    gap: 10px;
    margin-bottom: 6px;
  }
  .why-loop {
    padding: 10px 12px;
    gap: 6px;
  }
  .why-loop h3 {
    font-size: 13px;
  }
  .loop-step {
    font-size: 10px;
    padding: 3px 7px;
  }
  .loop-chain {
    gap: 2px;
  }
  .loop-warning, .loop-emphasis {
    padding: 6px 10px;
    font-size: 10.5px;
  }
  .conv-state {
    padding: 6px 10px;
  }
  .conv-state span {
    font-size: 10.5px;
  }
  .conv-final {
    font-size: 12.5px;
    padding: 7px 12px;
  }
  .signal-event-line {
    font-size: 10.5px;
    padding: 6px 10px;
  }
  .level-card {
    padding: 7px 12px;
  }
}

/* Tablet and below: disable snap, stack */
@media (max-width: 1180px) {
  .report-shell {
    scroll-snap-type: none;
    height: auto;
    overflow-y: visible;
  }
  .report-screen {
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: calc(var(--rp-topbar-height) + 12px) 16px 24px;
  }
  .rp-hero-body,
  .why-compare,
  .arch-body,
  .cap-grid,
  .evidence-charts,
  .signals-body,
  .gateway-body,
  .converge-body {
    grid-template-columns: 1fr;
  }
  .kpi-strip, .value-cards, .gw-values, .conv-states {
    grid-template-columns: 1fr 1fr;
  }
  .screen-navigator, .screen-progress, .scroll-hint {
    display: none;
  }
}

@media (max-width: 760px) {
  .kpi-strip, .value-cards, .gw-values, .conv-states {
    grid-template-columns: 1fr;
  }
}
