#diagnostic-scenarios {
  background: #ffffff;
  font-family: "SF Pro SC", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.narrative-ready #diagnostic-scenarios .reveal-unit {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.ds-clean-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.ds-clean-header .eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.ds-clean-header h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
}

/* Minimalist Top Progress Bar */
.ds-progress-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 32px;
}

.ds-progress-item {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  opacity: 0.42;
  transition: opacity 0.3s ease;
  font-family: inherit;
}

.ds-progress-item:hover {
  opacity: 0.72;
}

.ds-progress-item.active {
  opacity: 1;
}

.ds-progress-item:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 5px;
  border-radius: 4px;
}

.ds-progress-track {
  width: 100%;
  height: 2px;
  background: #e5e5ea;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ds-progress-fill {
  width: 0%;
  height: 100%;
  background: #1d1d1f;
}

.ds-progress-item.active .ds-progress-fill {
  animation: dsFillProgress 6.5s linear forwards;
}

.ds-paused .ds-progress-item.active .ds-progress-fill {
  animation-play-state: paused;
}

@keyframes dsFillProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.ds-progress-num {
  font-size: 12px;
  color: #86868b;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.ds-progress-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: 0.01em;
}

/* Unified Apple-Style Stage Card (Soft Warm Gray Surface, Zero Clutter) */
.ds-cinema-stage {
  position: relative;
  background: #f5f5f7;
  border-radius: 28px;
  height: 460px;
  overflow: hidden;
}

.ds-cinema-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ds-cinema-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

/* Left Column: Pure Typography, Maximum 3 Layers, Zero Boxes */
.ds-slide-copy {
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ds-copy-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.ds-copy-title {
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}

.ds-copy-desc {
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.65;
  margin: 0;
}

/* Clean Bottom Metric (Pure Apple Spec Style, No Pill Boxes) */
.ds-copy-metric {
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ds-metric-val {
  font-size: 34px;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.ds-metric-caption {
  font-size: 13.5px;
  color: #6e6e73;
}

/* Right Column: Single Focal Visual with Generous Breathing Room */
.ds-slide-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 40px 36px 12px;
}

.ds-visual-card {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ds-clean-svg {
  width: 100%;
  max-width: 580px;
  height: auto;
  user-select: none;
}

/* Calm, Smooth Animations */
.ds-cinema-slide.active .ds-anim-before {
  animation: dsFadeBefore 6.5s ease-in-out infinite;
}

.ds-cinema-slide.active .ds-anim-after {
  animation: dsFadeAfter 6.5s ease-in-out infinite;
}

.ds-cinema-slide.active .ds-anim-scan {
  animation: dsScanMove 6.5s ease-in-out infinite;
}

.ds-cinema-slide.active .ds-anim-merge-l {
  animation: dsMergeL 6.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.ds-cinema-slide.active .ds-anim-merge-r {
  animation: dsMergeR 6.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.ds-cinema-slide.active .ds-anim-step-1 {
  animation: dsStepReveal1 6.5s ease infinite;
}

.ds-cinema-slide.active .ds-anim-step-2 {
  animation: dsStepReveal2 6.5s ease infinite;
}

.ds-cinema-slide.active .ds-anim-step-3 {
  animation: dsStepReveal3 6.5s ease infinite;
}

@keyframes dsFadeBefore {
  0%, 38% { opacity: 1; }
  48%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes dsFadeAfter {
  0%, 38% { opacity: 0; }
  48%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes dsScanMove {
  0%, 12% { transform: translateY(-78px); opacity: 0; }
  18% { opacity: 1; }
  44% { transform: translateY(78px); opacity: 1; }
  50%, 100% { transform: translateY(78px); opacity: 0; }
}

@keyframes dsMergeL {
  0%, 20% { transform: translateX(0); opacity: 1; }
  48%, 88% { transform: translateX(76px); opacity: 0.25; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes dsMergeR {
  0%, 20% { transform: translateX(0); }
  48%, 88% { transform: translateX(-76px); }
  100% { transform: translateX(0); }
}

@keyframes dsStepReveal1 {
  0%, 10% { opacity: 0.3; }
  20%, 90% { opacity: 1; }
  100% { opacity: 0.3; }
}

@keyframes dsStepReveal2 {
  0%, 28% { opacity: 0.25; }
  38%, 90% { opacity: 1; }
  100% { opacity: 0.25; }
}

@keyframes dsStepReveal3 {
  0%, 44% { opacity: 0.25; }
  54%, 90% { opacity: 1; }
  100% { opacity: 0.25; }
}

@media (max-width: 920px) {
  .ds-progress-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ds-cinema-stage {
    height: auto;
    min-height: 0;
  }
  .ds-cinema-slide {
    display: none;
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
  }
  .ds-cinema-slide.active {
    display: grid;
  }
  .ds-slide-copy {
    padding: 32px 28px 16px;
    gap: 20px;
    min-width: 0;
  }
  .ds-slide-canvas {
    padding: 12px 24px 28px;
    min-width: 0;
  }
  .ds-visual-card {
    height: auto;
    padding: 12px;
  }
  .ds-manual-mode .ds-progress-fill {
    animation: none;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .ds-clean-header {
    margin-bottom: 24px;
    text-align: left;
  }
  .ds-progress-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-padding-inline: 4px;
    padding: 4px 4px 10px;
    margin: -4px -4px 14px;
  }
  .ds-progress-item {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    background: #ffffff;
    opacity: 1;
    white-space: nowrap;
  }
  .ds-progress-item.active {
    background: #edf5ff;
    border-color: #a8cdf5;
  }
  .ds-progress-item.active .ds-progress-name,
  .ds-progress-item.active .ds-progress-num {
    color: #0071e3;
  }
  .ds-progress-track {
    display: none;
  }
  .ds-progress-num {
    font-size: 11px;
  }
  .ds-progress-name {
    font-size: 13px;
  }
  .ds-cinema-stage {
    border-radius: 20px;
  }
  .ds-slide-copy {
    padding: 24px 20px 16px;
    gap: 18px;
  }
  .ds-copy-eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }
  .ds-copy-title {
    font-size: 22px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .ds-copy-desc {
    font-size: 14px;
    line-height: 1.75;
  }
  .ds-copy-metric {
    padding-top: 16px;
  }
  .ds-metric-val {
    font-size: clamp(21px, 6vw, 26px);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .ds-metric-caption {
    font-size: 12px;
    line-height: 1.6;
  }
  .ds-slide-canvas {
    padding: 0 8px 8px;
  }
  .ds-visual-card {
    padding: 5px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-progress-item.active .ds-progress-fill,
  .ds-cinema-slide.active .ds-anim-before,
  .ds-cinema-slide.active .ds-anim-after,
  .ds-cinema-slide.active .ds-anim-scan,
  .ds-cinema-slide.active .ds-anim-merge-l,
  .ds-cinema-slide.active .ds-anim-merge-r,
  .ds-cinema-slide.active .ds-anim-step-1,
  .ds-cinema-slide.active .ds-anim-step-2,
  .ds-cinema-slide.active .ds-anim-step-3 {
    animation: none !important;
  }
}


