:root {
  --shell: #0f172a;
  --shell-2: #1e293b;
  --shell-line: rgba(255, 255, 255, 0.06);
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.2);
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --cyan: #06b6d4;
  --red: #ef4444;
  --gold: #f59e0b;
  --green: #10b981;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  --panel-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --canvas-w: 1600;
  --canvas-h: 900;

  /* 动画曲线 */
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: #fff;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.app {
  display: grid;
  grid-template-rows: 64px 1fr 54px;
  min-height: 100vh;
}

.app.is-fullscreen {
  grid-template-rows: 0 1fr 0;
}

.toolbar,
.dock {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}

.toolbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s var(--ease-smooth);
}

.toolbar:hover {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: rgba(37, 99, 235, 0.3);
}

.toolbar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toolbar-brand strong {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.toolbar-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.toolbar-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.toolbar-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.toolbar-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.toolbar-btn:hover::before {
  opacity: 1;
}

.toolbar-btn:active {
  transform: translateY(0);
}

.toolbar-btn.primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  border-color: var(--blue-2);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.toolbar-btn.primary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.stage-area {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
}

.app.is-fullscreen .stage-area {
  padding: 0;
  min-height: 100vh;
}

.stage-frame {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--canvas-w) * 1px);
  height: calc(var(--canvas-h) * 1px);
  transform-origin: top left;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px) scale(0.95);
  transition:
    opacity 0.6s var(--ease-smooth),
    transform 0.7s var(--ease-smooth),
    visibility 0ms linear 0.7s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  transition:
    opacity 0.6s var(--ease-smooth),
    transform 0.7s var(--ease-smooth),
    visibility 0ms linear 0ms;
}

.slide.is-leaving-left {
  opacity: 0;
  visibility: visible;
  transform: translateX(-60px) scale(0.95);
}

.slide.is-leaving-right {
  opacity: 0;
  visibility: visible;
  transform: translateX(60px) scale(0.95);
}

.slide-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 36px 48px 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--ink);
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.slide-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.slide-shell::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.slide-topline {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--red));
}

.slide-head,
.cover-layout,
.grid-3,
.route-grid,
.bottom-band,
.task-layout,
.pain-layout,
.related-layout,
.flow-layout,
.flow-timeline,
.flow-stage,
.framework-layout,
.pipeline-row,
.roi-layout,
.compare-layout,
.results-layout,
.ablation-layout,
.application-layout,
.summary-layout,
.ending-layout,
.qa-stage,
.qa-layout,
.stat-grid,
.meta-grid,
.knowledge-grid,
.metric-stack,
.mini-card-row,
.stat-ribbon,
.goal-stack,
.bullet-rows {
  display: grid;
  gap: 14px;
}

.cover-layout,
.knowledge-frame,
.task-layout,
.pain-layout,
.related-layout,
.flow-layout,
.framework-layout,
.roi-layout,
.compare-layout,
.results-layout,
.ablation-layout,
.application-layout,
.summary-layout,
.ending-layout,
.qa-stage,
.qa-layout {
  flex: 1;
  min-height: 0;
}

.slide-head {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(15, 76, 129, 0.14);
}

.slide-head.compact {
  margin-bottom: 0;
}

.slide-kicker {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.slide-kicker::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.slide-kicker:hover::before {
  transform: translateX(100%);
}

.cover-title,
.slide h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", "Georgia", "Songti SC", serif;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.cover-title {
  font-size: 4.2rem;
  line-height: 1.08;
}

.slide h2 {
  font-size: 2.44rem;
  line-height: 1.12;
}

.cover-subtitle,
.slide-note,
.hero-text,
.statement,
.panel p,
.summary-strip span,
.bottom-band span,
.knowledge-body span,
.knowledge-relation,
.qa-card p,
.flow-copy-card p,
.flow-input-panel p,
.flow-block-hint,
.mini-knowledge-card p {
  font-size: 0.97rem;
  line-height: 1.45;
}

.cover-subtitle,
.slide-note {
  max-width: 1080px;
  color: var(--muted);
}

.page-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.page-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.page-badge:hover::before {
  opacity: 1;
}

.cover-layout {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.cover-copy,
.cover-visual,
.left-stack,
.right-stack,
.visual-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-block,
.panel,
.paper-figure,
.task-stage-card,
.route-card,
.pipeline-step,
.stat-card,
.knowledge-card,
.mini-knowledge-card,
.goal-chip,
.qa-card,
.flow-node,
.flow-block,
.stat-ribbon-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--panel-shadow);
}

.hero-block,
.panel,
.paper-figure,
.task-stage-card,
.knowledge-card,
.qa-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  transition: all 0.3s var(--ease-smooth);
  backdrop-filter: blur(10px);
}

.hero-block:hover,
.panel:hover,
.paper-figure:hover,
.task-stage-card:hover,
.knowledge-card:hover,
.qa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--blue);
}

.panel.accent,
.task-stage-card.emphasis,
.qa-card.accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: var(--blue);
  border-width: 2px;
}

.panel.accent:hover,
.task-stage-card.emphasis:hover,
.qa-card.accent:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

.hero-block {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-width: 1px;
  border-radius: 2px;
}

.hero-accent {
  background: linear-gradient(180deg, var(--blue), var(--red));
}

.hero-label,
.knowledge-intro-tag,
.scene-tag,
.flow-copy-tag,
.qa-card-tag,
.flow-block-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.07);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-block h2 {
  margin-bottom: 10px;
  font-size: 2.42rem;
}

.panel h3,
.task-stage-card h3,
.knowledge-card h3,
.qa-card h3,
.flow-copy-card h3,
.flow-intro strong {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.42;
}

.compact-list li + li {
  margin-top: 5px;
}

.meta-grid {
  grid-template-columns: 1fr 1fr;
}

.meta-item {
  padding: 12px 14px;
  border-top: 3px solid rgba(15, 76, 129, 0.24);
  background: rgba(255, 255, 255, 0.88);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item span,
.metric-stack span,
.bullet-rows span,
.stat-card span,
.knowledge-relation,
.stat-ribbon-card span {
  color: var(--muted);
}

.meta-item span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.paper-figure {
  margin: 0;
  padding: 10px;
}

.paper-figure img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

.paper-figure figcaption {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.38;
  color: var(--muted);
}

.hero-figure img {
  max-height: 320px;
}

.framework-figure img {
  max-height: 300px;
}

.comparison-figure img {
  max-height: 280px;
}

.results-main img {
  max-height: 200px;
}

.results-secondary img {
  max-height: 240px;
}

.application-figure img {
  max-height: 360px;
}

.stat-grid {
  grid-template-columns: 1fr 1fr;
}

.stat-card {
  padding: 16px 18px;
  border-top: 4px solid var(--blue);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, white 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
  border-top-color: var(--blue-2);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--blue);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.overview-grid {
  margin-top: 4px;
}

.statement {
  margin: 0;
}

.route-grid {
  grid-template-columns: repeat(4, 1fr);
}

.route-card,
.pipeline-step {
  padding: 14px 15px;
  border-top: 3px solid rgba(15, 76, 129, 0.22);
}

.route-card span,
.pipeline-step span,
.task-no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.1);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 8px;
}

.route-card small,
.pipeline-step small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.bottom-band {
  grid-template-columns: repeat(3, 1fr);
}

.bottom-band > div,
.summary-strip,
.stat-ribbon-card {
  position: relative;
  z-index: 1;
}

.bottom-band > div {
  padding: 13px 15px;
  border-top: 3px solid var(--blue);
  background: rgba(15, 76, 129, 0.05);
}

.bottom-band strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
}

.knowledge-frame {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.knowledge-intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: rgba(15, 76, 129, 0.05);
}

.knowledge-intro p {
  margin: 0;
  color: var(--ink);
}

.knowledge-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.knowledge-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px 12px;
}

.knowledge-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.knowledge-card-head h3 {
  margin: 0;
  font-size: 1.04rem;
}

.knowledge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(15, 76, 129, 0.16);
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.08), rgba(255, 255, 255, 0.9));
  position: relative;
  flex: 0 0 auto;
}

.knowledge-icon::before,
.knowledge-icon::after {
  content: "";
  position: absolute;
}

.knowledge-icon-detector::before {
  left: 8px;
  top: 10px;
  width: 28px;
  height: 18px;
  border: 2px solid var(--blue);
}

.knowledge-icon-detector::after {
  left: 14px;
  top: 16px;
  width: 12px;
  height: 8px;
  border: 2px solid var(--red);
}

.knowledge-icon-fpn::before {
  left: 9px;
  top: 12px;
  width: 28px;
  height: 4px;
  background: var(--blue);
  box-shadow: 0 8px 0 0 var(--blue-2), 0 16px 0 0 var(--cyan);
}

.knowledge-icon-fpn::after {
  left: 16px;
  top: 8px;
  width: 2px;
  height: 28px;
  background: rgba(15, 76, 129, 0.3);
}

.knowledge-icon-roi::before {
  left: 9px;
  top: 9px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(15, 76, 129, 0.5);
}

.knowledge-icon-roi::after {
  left: 19px;
  top: 17px;
  width: 12px;
  height: 10px;
  border: 2px solid var(--red);
}

.knowledge-icon-pool::before {
  inset: 10px;
  background-image:
    linear-gradient(rgba(18, 24, 38, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 38, 0.16) 1px, transparent 1px);
  background-size: 8px 8px;
}

.knowledge-icon-pool::after {
  left: 14px;
  top: 14px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--red);
}

.knowledge-icon-bilinear::before {
  left: 11px;
  top: 11px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.2), rgba(185, 84, 52, 0.22));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.knowledge-icon-bilinear::after {
  left: 12px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 18px 0 0 0 var(--red), 0 18px 0 0 var(--cyan), 18px 18px 0 0 var(--gold);
}

.knowledge-icon-fcn::before {
  left: 10px;
  top: 10px;
  width: 26px;
  height: 8px;
  background: rgba(15, 76, 129, 0.2);
  box-shadow: 0 10px 0 0 rgba(15, 76, 129, 0.34), 0 20px 0 0 rgba(15, 76, 129, 0.48);
}

.knowledge-icon-fcn::after {
  right: 10px;
  top: 10px;
  width: 8px;
  height: 28px;
  background: rgba(185, 84, 52, 0.16);
}

.knowledge-body,
.knowledge-relation {
  margin: 0;
}

.knowledge-body span {
  display: block;
}

.knowledge-relation {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 24, 38, 0.08);
}

.task-layout {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.task-rail {
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
}

.task-stage-card {
  padding: 14px 15px;
  border-top: 3px solid rgba(15, 76, 129, 0.2);
}

.task-stage-card p,
.task-stage-card small {
  margin: 0;
  line-height: 1.42;
}

.task-stage-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}

.info-table thead th {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(15, 76, 129, 0.05);
}

.info-table.compact th,
.info-table.compact td {
  padding: 8px 7px;
}

.highlight-row {
  background: rgba(15, 76, 129, 0.1);
  font-weight: 700;
  border-left: 3px solid var(--blue);
}

.bullet-rows {
  margin-top: 10px;
}

.bullet-rows > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding-top: 9px;
}

.bullet-rows p {
  margin: 0;
}

.pain-layout,
.related-layout,
.framework-layout,
.results-layout,
.application-layout {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.goal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.goal-chip {
  padding: 8px 12px;
  border-left: 4px solid var(--blue);
  background: rgba(15, 76, 129, 0.05);
  font-size: 0.84rem;
  font-weight: 700;
}

.related-slide .slide-shell::after {
  width: 560px;
  height: 560px;
  right: -220px;
  top: -160px;
}

.related-layout {
  grid-template-columns: 0.62fr 0.38fr;
  align-items: start;
  gap: 16px;
}

.related-left,
.related-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.related-table-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1;
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(15, 76, 129, 0.14);
}

.section-bar span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-bar strong {
  font-size: 1rem;
  color: var(--ink);
}

.related-tags {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.related-tag {
  position: relative;
  z-index: 1;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 2px;
}

.related-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--blue);
}

.related-right .paper-figure {
  flex: 0 0 auto;
}

.related-thesis-card {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  border-top: 4px solid var(--red);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(185, 84, 52, 0.08), rgba(255, 255, 255, 0.94));
  box-shadow: var(--panel-shadow);
  border: 1px solid rgba(185, 84, 52, 0.15);
  border-top: 4px solid var(--red);
}

.related-thesis-tag {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-thesis-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink);
}

.flow-layout {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.flow-timeline {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.flow-node {
  padding: 10px 12px;
  border-top: 3px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.74);
  transition:
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
}

.flow-node span {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.flow-node strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.flow-node small {
  font-size: 0.82rem;
  color: var(--muted);
}

.flow-stage {
  grid-template-columns: 180px minmax(0, 1fr) 310px;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
}

.flow-input-panel,
.flow-copy,
.flow-intro,
.flow-copy-card {
  position: relative;
  z-index: 1;
}

.flow-input-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  min-height: 0;
}

.input-thumbnail {
  position: relative;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 20%, rgba(45, 115, 167, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(226, 236, 246, 0.9), rgba(247, 244, 236, 0.92));
}

.thumb-object,
.thumb-ground {
  position: absolute;
}

.thumb-ground {
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.08), rgba(15, 76, 129, 0.02));
}

.thumb-object-a {
  left: 24px;
  bottom: 34px;
  width: 42px;
  height: 86px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.85), rgba(15, 76, 129, 0.56));
}

.thumb-object-b {
  left: 102px;
  bottom: 36px;
  width: 56px;
  height: 72px;
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg, rgba(185, 84, 52, 0.82), rgba(185, 84, 52, 0.52));
}

.thumb-object-c {
  right: 24px;
  bottom: 44px;
  width: 68px;
  height: 46px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(47, 110, 99, 0.82), rgba(47, 110, 99, 0.48));
}

.flow-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 0.86fr) 30px minmax(0, 0.92fr);
  align-items: center;
  gap: 10px;
  min-height: 0;
}

.flow-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  min-height: 0;
}

.flow-block-top strong {
  display: block;
  font-size: 0.94rem;
}

.flow-block-hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.34;
  color: var(--muted);
}

.feature-block,
.align-block,
.output-block {
  transition:
    border-color 320ms ease,
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 320ms ease,
    box-shadow 320ms ease;
}

.feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  height: 100px;
}

.feature-grid span {
  display: block;
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.18), rgba(45, 115, 167, 0.46));
  opacity: 0.16;
  transform: scale(0.92);
  transition:
    opacity 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.proposal-box,
.selected-roi {
  position: absolute;
  border: 2px solid var(--red);
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 100ms,
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 100ms;
}

.proposal-box-a {
  left: 18px;
  top: 20px;
  width: 84px;
  height: 52px;
}

.proposal-box-b {
  right: 24px;
  top: 46px;
  width: 94px;
  height: 64px;
}

.proposal-box-c {
  left: 108px;
  bottom: 18px;
  width: 72px;
  height: 46px;
}

.selected-roi {
  left: 122px;
  top: 36px;
  width: 78px;
  height: 56px;
  border-style: dashed;
  border-color: var(--blue);
}

.flow-arrow {
  height: 4px;
  background: rgba(18, 24, 38, 0.12);
  position: relative;
}

.flow-arrow span {
  position: absolute;
  right: -2px;
  top: -5px;
  width: 14px;
  height: 14px;
  border-top: 4px solid rgba(18, 24, 38, 0.16);
  border-right: 4px solid rgba(18, 24, 38, 0.16);
  transform: rotate(45deg);
}

.align-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.align-roi,
.align-zoom {
  position: relative;
  height: 100px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(18, 24, 38, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 38, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(185, 84, 52, 0.08));
  background-size: 20px 20px, 20px 20px, 100% 100%;
}

.align-window {
  position: absolute;
  left: 28px;
  top: 20px;
  width: 62px;
  height: 48px;
  border: 3px solid var(--red);
  opacity: 0.2;
  transition:
    opacity 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms,
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms;
}

.align-zoom-grid {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(15, 76, 129, 0.2);
  background-image:
    linear-gradient(rgba(18, 24, 38, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 38, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.sample-points {
  position: absolute;
  inset: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  opacity: 0.14;
  transform: scale(0.9);
  transition:
    opacity 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms,
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms;
}

.sample-points span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  place-self: center;
}

.branch-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.branch-card {
  padding: 9px 9px 10px;
  border-top: 3px solid rgba(15, 76, 129, 0.2);
  background: rgba(15, 76, 129, 0.05);
  opacity: 0.18;
  transform: translateY(14px);
  transition:
    opacity 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms,
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms,
    background 300ms ease;
}

.branch-card strong {
  display: block;
  margin-bottom: 4px;
}

.mask-preview {
  display: grid;
  gap: 8px;
  opacity: 0.16;
  transform: translateY(16px);
  transition:
    opacity 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms,
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms;
}

.mask-preview-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.mask-canvas {
  position: relative;
  height: 70px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 76, 129, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(241, 245, 250, 0.9), rgba(250, 248, 242, 0.92));
}

.mask-shape,
.mask-box {
  position: absolute;
}

.mask-shape-a {
  left: 16px;
  top: 20px;
  width: 62px;
  height: 38px;
  border-radius: 38px 30px 28px 28px;
  background: rgba(45, 115, 167, 0.72);
}

.mask-shape-b {
  right: 18px;
  top: 18px;
  width: 76px;
  height: 44px;
  border-radius: 36px 36px 26px 26px;
  background: rgba(185, 84, 52, 0.66);
}

.mask-box {
  left: 12px;
  top: 12px;
  width: 144px;
  height: 58px;
  border: 2px solid var(--green);
}

.flow-copy {
  display: grid;
  grid-template-rows: auto repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

.flow-intro {
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: rgba(15, 76, 129, 0.05);
}

.flow-intro p {
  margin: 0;
  color: var(--muted);
}

.flow-copy-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 11px;
  border-top: 3px solid rgba(15, 76, 129, 0.16);
  background: rgba(255, 255, 255, 0.76);
  min-height: 0;
  overflow: hidden;
}

.flow-copy-card h3,
.flow-copy-card p {
  margin: 0;
}

.flow-copy-card p {
  font-size: 0.9rem;
  line-height: 1.34;
  color: var(--muted);
}

.pipeline-row {
  grid-template-columns: repeat(4, 1fr);
}

.framework-layout {
  align-items: start;
}

.mini-card-row {
  grid-template-columns: repeat(2, 1fr);
}

.mini-card-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mini-knowledge-card {
  padding: 11px 12px;
  border-top: 3px solid rgba(15, 76, 129, 0.24);
}

.mini-knowledge-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.mini-knowledge-card p {
  margin: 0;
  font-size: 0.82rem;
}

.roi-top-grid {
  margin-bottom: 2px;
}

.roi-layout,
.compare-layout,
.ablation-layout {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.metric-stack {
  gap: 9px;
}

.metric-stack > div {
  padding: 10px 12px;
  border-left: 3px solid rgba(15, 76, 129, 0.24);
  background: rgba(15, 76, 129, 0.05);
}

.metric-stack strong {
  font-size: 1.16rem;
  color: var(--blue);
}

.metric-stack.wide {
  grid-template-columns: 1fr;
}

.roi-demo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  background: rgba(15, 76, 129, 0.04);
}

.roi-demo-box {
  flex: 1;
}

.roi-demo-box span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--blue);
}

.roi-demo-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.roi-arrow {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
}

.grid-box {
  position: relative;
  height: 150px;
  border: 1px solid var(--line);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  background-image:
    linear-gradient(rgba(18, 24, 38, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 38, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(15, 76, 129, 0.09), rgba(185, 84, 52, 0.08));
}

.grid-box::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 34px;
  width: 80px;
  height: 76px;
  border: 3px solid var(--red);
}

.grid-box::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 52px;
  bottom: 26px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: -50px -58px 0 0 var(--red), -84px -24px 0 0 var(--red), -108px -44px 0 0 var(--red);
}

.align-grid::after {
  background: var(--blue-2);
  box-shadow: -50px -58px 0 0 var(--blue-2), -84px -24px 0 0 var(--blue-2), -108px -44px 0 0 var(--blue-2), -30px -82px 0 0 var(--blue-2);
}

.formula {
  margin: 8px 0 10px;
  font-family: "Cambria Math", "Times New Roman", serif;
  font-size: 1.86rem;
  color: var(--blue);
}

.stat-ribbon {
  grid-template-columns: repeat(3, 1fr);
}

.stat-ribbon-card {
  padding: 12px 14px;
  border-top: 3px solid rgba(15, 76, 129, 0.24);
  background: rgba(255, 255, 255, 0.78);
}

.stat-ribbon-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.98rem;
}

.summary-layout {
  grid-template-columns: repeat(3, 1fr);
}

.ending-layout {
  grid-template-columns: 0.6fr 0.4fr;
  align-items: stretch;
}

.ending-slide .slide-shell::after {
  width: 620px;
  height: 620px;
  right: -210px;
  top: -170px;
}

.ending-hero,
.ending-points,
.ending-point,
.qa-side,
.qa-grid,
.thanks-stage,
.thanks-panel,
.thanks-tags {
  position: relative;
  z-index: 1;
}

.ending-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 24px 26px;
  border-top: 4px solid var(--blue);
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(255, 255, 255, 0.92));
  box-shadow: var(--panel-shadow);
}

.ending-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.ending-hero h3 {
  margin: 0;
  font-size: 2.15rem;
  line-height: 1.2;
  font-family: "Palatino Linotype", "Book Antiqua", "Georgia", "Songti SC", serif;
}

.ending-points {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.ending-point {
  padding: 15px 16px 15px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--panel-shadow);
}

.ending-point strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 1rem;
}

.ending-point p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.42;
  color: var(--muted);
}

.qa-stage {
  grid-template-columns: 0.3fr 0.7fr;
  align-items: stretch;
}

.qa-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 24px;
  border-top: 4px solid var(--blue);
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.08), rgba(255, 255, 255, 0.94));
  box-shadow: var(--panel-shadow);
}

.qa-side-tag {
  display: inline-block;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qa-side h3 {
  margin: 14px 0 10px;
  font-size: 1.66rem;
  line-height: 1.2;
  font-family: "Palatino Linotype", "Book Antiqua", "Georgia", "Songti SC", serif;
}

.qa-side p {
  margin: 0;
  color: var(--muted);
  line-height: 1.44;
}

.qa-layout,
.qa-grid {
  align-content: stretch;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}

.qa-slide .slide-shell::after {
  width: 620px;
  height: 620px;
  right: -220px;
  top: -180px;
}

.qa-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 16px 16px 14px;
  height: auto;
}

.qa-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.22;
}

.qa-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.thanks-slide .slide-shell {
  background:
    radial-gradient(circle at 20% 22%, rgba(45, 115, 167, 0.18), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(185, 84, 52, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(251, 249, 244, 0.99), rgba(243, 239, 231, 0.99));
}

.thanks-slide .slide-shell::after,
.thanks-slide .slide-shell::before {
  display: none;
}

.thanks-stage {
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.thanks-backdrop {
  position: absolute;
  inset: 80px 96px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  background:
    linear-gradient(rgba(15, 76, 129, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(15, 76, 129, 0.05), rgba(185, 84, 52, 0.04));
  background-size: 30px 30px, 30px 30px, 100% 100%;
}

.thanks-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 780px;
  padding: 38px 48px 34px;
  border: 1px solid rgba(15, 76, 129, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(11, 18, 32, 0.06);
  text-align: center;
}

.thanks-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.thanks-panel h2 {
  font-size: 4.2rem;
}

.thanks-panel p {
  margin: 0;
  font-size: 1.5rem;
  color: var(--muted);
}

.thanks-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.thanks-tags span {
  padding: 9px 14px;
  border: 1px solid rgba(15, 76, 129, 0.14);
  background: rgba(15, 76, 129, 0.05);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.thanks-badge {
  position: absolute;
  top: 0;
  right: 0;
}

.team-division {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 76, 129, 0.16);
  width: 100%;
}

.team-division h3 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  color: var(--blue);
  font-weight: 700;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.division-item {
  padding: 14px;
  border: 1px solid rgba(15, 76, 129, 0.14);
  background: rgba(15, 76, 129, 0.03);
  text-align: center;
}

.division-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.92rem;
  color: var(--blue);
  font-weight: 700;
}

.division-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.5;
}

.summary-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-top: 3px solid var(--red);
  background: rgba(15, 76, 129, 0.04);
}

.summary-strip strong {
  color: var(--red);
  white-space: nowrap;
}

.dock {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s var(--ease-smooth);
}

.app.is-fullscreen .toolbar,
.app.is-fullscreen .dock {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.dock-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.dock-progress-bar {
  height: 100%;
  width: 7.14%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 50%, var(--cyan) 100%);
  transition: width 0.5s var(--ease-smooth);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
  position: relative;
}

.dock-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.dock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.fragment {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition:
    opacity 0.6s var(--ease-smooth),
    transform 0.7s var(--ease-spring);
}

.fragment.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fragment.is-current {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.flow-slide[data-step="1"] .flow-node[data-flow="1"],
.flow-slide[data-step="2"] .flow-node[data-flow="2"],
.flow-slide[data-step="3"] .flow-node[data-flow="3"],
.flow-slide[data-step="4"] .flow-node[data-flow="4"] {
  border-top-color: var(--blue);
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.12), rgba(255, 255, 255, 0.95));
  transform: translateY(-4px) scale(1.02);
}

.flow-slide:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .flow-node[data-flow="1"],
.flow-slide:is([data-step="2"], [data-step="3"], [data-step="4"]) .flow-node[data-flow="2"],
.flow-slide:is([data-step="3"], [data-step="4"]) .flow-node[data-flow="3"],
.flow-slide[data-step="4"] .flow-node[data-flow="4"] {
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.15);
}

.flow-slide:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .feature-grid span {
  opacity: 0.9;
  transform: scale(1);
}

.flow-slide:is([data-step="2"], [data-step="3"], [data-step="4"]) .proposal-box {
  opacity: 0.92;
  transform: scale(1);
}

.flow-slide:is([data-step="3"], [data-step="4"]) .selected-roi,
.flow-slide:is([data-step="3"], [data-step="4"]) .align-window {
  opacity: 1;
  transform: scale(1);
}

.flow-slide:is([data-step="3"], [data-step="4"]) .sample-points {
  opacity: 1;
  transform: scale(1);
}

.flow-slide[data-step="4"] .branch-card,
.flow-slide[data-step="4"] .mask-preview {
  opacity: 1;
  transform: translateY(0);
}

.flow-slide:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .feature-block,
.flow-slide:is([data-step="3"], [data-step="4"]) .align-block,
.flow-slide[data-step="4"] .output-block {
  border-color: rgba(15, 76, 129, 0.24);
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.08), rgba(255, 255, 255, 0.94));
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.08);
}

.flow-slide:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .flow-arrow,
.flow-slide:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .flow-arrow span {
  border-color: rgba(45, 115, 167, 0.45);
  background: rgba(45, 115, 167, 0.35);
}

.flow-slide[data-step="1"] .input-thumbnail,
.flow-slide[data-step="2"] .input-thumbnail,
.flow-slide[data-step="3"] .input-thumbnail,
.flow-slide[data-step="4"] .input-thumbnail {
  box-shadow: inset 0 0 0 3px rgba(45, 115, 167, 0.24);
}

@media (max-width: 980px) {
  .toolbar-brand strong {
    font-size: 0.98rem;
  }

  .toolbar-btn {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .dock-meta {
    font-size: 0.82rem;
  }
}
