/* ==========================================================================
   LogiOS - Modern Operating System Presentation Platform
   Enterprise White-Themed Design System, Flowcharts, Keynote Slides & Simulators
   ========================================================================== */

:root {
  /* Color Palette - Crisp Enterprise White & Slate */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --border-glass: #e2e8f0;
  --border-glass-bright: #cbd5e1;
  --border-accent: rgba(37, 99, 235, 0.35);
  
  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --accent-blue: #2563eb;
  --accent-blue-light: #eff6ff;
  --accent-indigo: #4f46e5;
  --accent-indigo-light: #eef2ff;
  --accent-emerald: #059669;
  --accent-emerald-light: #dcfce7;
  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;
  --accent-rose: #e11d48;
  --accent-rose-light: #ffe4e6;
  --accent-purple: #7c3aed;
  --accent-purple-light: #f3e8ff;
  --accent-teal: #0d9488;
  --accent-teal-light: #ccfbf1;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Sizing */
  --header-height: 70px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.18);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Support */
body.theme-dark {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: #131b2e;
  --bg-card-hover: #1e293b;
  --bg-elevated: #1e293b;
  --bg-glass: rgba(19, 27, 46, 0.85);
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-bright: rgba(255, 255, 255, 0.2);
  --border-accent: rgba(56, 189, 248, 0.35);
  
  --accent-cyan: #38bdf8;
  --accent-cyan-light: rgba(56, 189, 248, 0.15);
  --accent-blue: #60a5fa;
  --accent-blue-light: rgba(96, 165, 250, 0.15);
  --accent-indigo: #818cf8;
  --accent-indigo-light: rgba(129, 140, 248, 0.15);
  --accent-emerald: #34d399;
  --accent-emerald-light: rgba(52, 211, 153, 0.15);
  --accent-amber: #fbbf24;
  --accent-amber-light: rgba(251, 191, 36, 0.15);
  --accent-rose: #fb7185;
  --accent-rose-light: rgba(251, 113, 133, 0.15);
  --accent-purple: #c084fc;
  --accent-purple-light: rgba(192, 132, 252, 0.15);
  --accent-teal: #2dd4bf;
  --accent-teal-light: rgba(45, 212, 191, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0f172a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background accent gradients for premium feel */
body::before {
  content: '';
  position: fixed;
  top: -100px;
  left: 20%;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, rgba(2, 132, 199, 0.02) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: 15%;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.035) 0%, rgba(124, 58, 237, 0.02) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-cyan);
}

code, kbd, pre {
  font-family: var(--font-mono);
}

/* ==========================================================================
   HEADER & NAVIGATION HUB
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 1.75rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-xs);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-fast);
}
.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.logo-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-accent {
  color: var(--accent-blue);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Nav Tabs */
.view-mode-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-secondary);
  padding: 0.3rem 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-tab i {
  font-size: 0.88rem;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
}

.nav-tab.active {
  background: #ffffff;
  color: var(--accent-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);
}

.nav-tab.tab-highlight {
  position: relative;
}

.nav-tab.tab-highlight::after {
  content: '14-STEP';
  position: absolute;
  top: -5px;
  right: -2px;
  font-size: 0.52rem;
  font-weight: 800;
  background: #2563eb;
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}
.header-action-btn:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: #ffffff;
}

.kbd-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-bright);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.presenter-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-glass);
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}
.header-icon-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--accent-blue-light);
}

.header-icon-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.header-icon-btn.highlight-btn {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-weight: 600;
}
.header-icon-btn.highlight-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.deck-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   MAIN VIEW PANELS CONTAINER
   ========================================================================== */
.main-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.75rem;
  min-height: calc(100vh - var(--header-height));
}

.view-panel {
  display: none;
  animation: fadeInPanel 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-panel.active {
  display: block;
}

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

/* Common Section Header Banner */
.view-intro-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.view-intro-header h2 {
  font-size: 1.85rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.view-intro-header p {
  color: var(--text-secondary);
  max-width: 780px;
  font-size: 1rem;
}

/* Reusable Badges & Chips */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-pill);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-chip.pill-gradient {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-color: #bfdbfe;
  color: #1e40af;
}

.badge-chip.eco {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.badge-chip.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.badge-chip.teal {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}

.mod-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-bright);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
}

.mod-tag.mod-sm {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
}

/* ==========================================================================
   VIEW 1: SLIDE DECK VIEW
   ========================================================================== */
.slide-deck-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 720px;
}

.slide-progress-bar {
  width: 100%;
  height: 4px;
  background: #f1f5f9;
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #2563eb, #0284c7);
  transition: width 0.3s ease;
}

.slides-container {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 640px;
}

.slide {
  display: none;
  width: 100%;
  padding: 2.75rem 3rem;
  box-sizing: border-box;
  animation: slideFade 0.35s ease;
}

.slide.active {
  display: flex;
  flex-direction: column;
}

@keyframes slideFade {
  from { opacity: 0; transform: scale(0.995); }
  to { opacity: 1; transform: scale(1); }
}

.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-indicator {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.slide-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.slide-counter-badge {
  padding: 0.35rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* SLIDE 1: Cover Slide */
.cover-slide {
  justify-content: center;
  gap: 2rem;
}

.slide-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cover-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.title-gradient {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 920px;
  line-height: 1.5;
}

.cover-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.value-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  background: #ffffff;
}

.vc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.vc-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vc-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.vc-body strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Problem vs Solution Box */
.executive-impact-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.75rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
}

.impact-col {
  flex: 1;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  background: #fee2e2;
  color: #b91c1c;
}

.banner-tag.success {
  background: #dcfce7;
  color: #15803d;
}

.impact-col p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.impact-divider {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-bright);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* 4 Pillars Grid (Slide 2) */
.pillars-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.pillar-card {
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-muted);
}

.pillar-card i {
  font-size: 1.3rem;
  color: var(--accent-blue);
}

.pillar-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.pillar-card p {
  font-size: 0.86rem;
  line-height: 1.5;
}

.pillar-metric {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-glass);
}

/* ==========================================================================
   FLOWCHART & VISUAL ARCHITECTURE COMPONENTS
   ========================================================================== */
.visual-arch-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-top: 0.5rem;
}

.visual-arch-container.elevated {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.arch-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.arch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  color: #1d4ed8;
  letter-spacing: 0.05em;
}
.arch-badge.eco {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.arch-header h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* Lifecycle Flow Steps (VA1) */
.lifecycle-flow-steps {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.flow-step-box {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}
.flow-step-box:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.flow-step-box.highlight-green {
  border-color: #86efac;
  background: #f0fdf4;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-step-box.highlight-green .step-num {
  background: #dcfce7;
  color: #15803d;
}

.step-details h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.step-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-details li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.step-details li i {
  font-size: 0.7rem;
  color: #10b981;
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 0 0.15rem;
}

/* ==========================================================================
   SECTION 9: 14-STEP OPERATIONAL LIFECYCLE FLOWCHART (EXACT REPLICA STYLING)
   ========================================================================== */
.op-lifecycle-container {
  background: #ffffff;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.op-lifecycle-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.op-lifecycle-title-row h3 {
  font-size: 1.5rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.op-lifecycle-title-row p {
  font-size: 0.95rem;
  color: #475569;
}

/* 2-Row 7-Column Grid */
.op-flowchart-14-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.op-grid-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
}

.op-step-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem 0.85rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  min-height: 115px;
  justify-content: space-between;
}

.op-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Top Accent Borders */
.op-step-card.theme-blue {
  border-top: 4px solid #2563eb;
}
.op-step-card.theme-blue:hover {
  border-color: #2563eb;
  border-top: 4px solid #1d4ed8;
}

.op-step-card.theme-teal {
  border-top: 4px solid #0d9488;
}
.op-step-card.theme-teal:hover {
  border-color: #0d9488;
  border-top: 4px solid #0f766e;
}

.op-step-card.active {
  background: #f8fafc;
  box-shadow: 0 0 0 2px #2563eb, var(--shadow-md);
}
.op-step-card.theme-teal.active {
  box-shadow: 0 0 0 2px #0d9488, var(--shadow-md);
}

/* Circle Step Badge */
.op-circle-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.op-step-card.theme-blue .op-circle-badge {
  background: #2563eb;
}

.op-step-card.theme-teal .op-circle-badge {
  background: #0d9488;
}

.op-step-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.op-step-sub {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
  font-weight: 500;
}

/* 14-Step Inspector Box & Visual Sub-Process Flowchart Canvas */
.op-step-inspector-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInPanel 0.3s ease;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.insp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.25rem;
}

.insp-title-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.insp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.op-insp-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  flex-shrink: 0;
}
.op-insp-icon.teal {
  background: #0d9488;
  box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}

/* Stage Goal Banner */
.insp-goal-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ig-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #475569;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ig-text {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.55;
  font-weight: 500;
}

.ig-actor {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Flowchart Visual Card & Pipeline Track */
.insp-flowchart-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.ifc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flow-pipeline-track {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 0.75rem 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.flow-pipeline-track::-webkit-scrollbar {
  height: 6px;
}
.flow-pipeline-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.flow-pipeline-node {
  flex: 1 0 170px;
  min-width: 160px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  box-sizing: border-box;
}

.flow-pipeline-node:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.flow-pipeline-node.is-decision {
  border-color: #f59e0b;
  background: #fffbeb;
}

.flow-pipeline-node.sim-active {
  border-color: #38bdf8 !important;
  background: #f0f9ff !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.35), var(--shadow-md);
  transform: translateY(-3px);
}

.flow-pipeline-node.sim-passed {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
}

.fp-node-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}

.fp-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.is-decision .fp-node-icon {
  background: #fef3c7;
  color: #d97706;
}

.fp-node-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.fp-node-desc {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.4;
}

.fp-arrow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 0 0.1rem;
  flex-shrink: 0;
}

/* Decision Gate Panel */
.decision-gate-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.dgp-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dgp-diamond-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dgp-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #92400e;
  text-transform: uppercase;
}

.dgp-condition {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.dgp-branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.dgp-branch-card {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-sizing: border-box;
}

.dgp-branch-card.branch-pass {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.dgp-branch-card.branch-exception {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.dgp-branch-title {
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.branch-pass .dgp-branch-title {
  color: #065f46;
}

.branch-exception .dgp-branch-title {
  color: #92400e;
}

.dgp-branch-desc {
  font-size: 0.78rem;
  line-height: 1.45;
}

.branch-pass .dgp-branch-desc {
  color: #047857;
}

.branch-exception .dgp-branch-desc {
  color: #b45309;
}

/* Master Technical Specs Grid */
.insp-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.spec-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
}

.spec-card-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #475569;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.data-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.data-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  word-break: break-word;
}

.system-chip {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #6b21a8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  word-break: break-word;
}

/* Live Telemetry Console */
.insp-telemetry-console {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.itc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.itc-body {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.45;
  transition: all 0.2s ease;
  word-break: break-word;
}

/* Category Filter Buttons in Section 9 */
.op-stage-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.op-category-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.stage-cat-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.stage-cat-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.stage-cat-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.stage-search-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 340px;
}

/* Mini Flowchart Track in Comprehensive Cards */
.mini-flowchart-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.mini-flowchart-track::-webkit-scrollbar {
  height: 5px;
}
.mini-flowchart-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.mini-flow-node {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 0.25rem 0.45rem;
  font-size: 0.7rem;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.mini-flow-node .mfn-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}

.mini-flow-node i {
  color: #64748b;
  font-size: 0.72rem;
}

.mfn-arrow {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.mini-decision-box {
  background: #fdfaf6;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.mini-decision-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.mini-decision-title span {
  font-weight: 500;
  color: #475569;
}

.mini-decision-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  font-size: 0.74rem;
  width: 100%;
  box-sizing: border-box;
}

.mini-decision-branch {
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  word-break: break-word;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.73rem;
  line-height: 1.35;
}

.mini-decision-pass {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.mini-decision-exception {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Comprehensive Stage Card Highlight */
.comp-stage-card.active-inspected {
  border-color: #2563eb !important;
  box-shadow: 0 4px 20px rgba(37,99,235,0.18) !important;
}

/* Stage Flowchart Modal */
.stage-flowchart-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 1000px;
  width: 94%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.stage-flowchart-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.stage-flowchart-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.modal-flow-track {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
}

.modal-flow-node {
  flex: 1;
  min-width: 160px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.modal-flow-node.is-decision {
  background: #fffbeb;
  border-color: #f59e0b;
}

.modal-flow-node.sim-active {
  border-color: #38bdf8 !important;
  background: #f0f9ff !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.35);
  transform: translateY(-3px);
}

.modal-flow-node.sim-passed {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
}

.modal-flow-node .mfn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-flow-node .mfn-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.modal-flow-node .mfn-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.modal-flow-node.is-decision .mfn-icon {
  background: #fef3c7;
  color: #d97706;
}

.modal-flow-node .mfn-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-flow-node .mfn-desc {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.4;
}

.mfn-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* ==========================================================================
   HIERARCHICAL OPERATIONAL FLOWCHART ARCHITECTURE (5-TIER INSIDE OPERATIONS)
   ========================================================================== */
.hf-view-selector {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
}

.hf-tab-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hf-tab-btn:hover {
  color: #0f172a;
}

.hf-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hierarchical-flowchart-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
  width: 100%;
  box-sizing: border-box;
}

.hf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hf-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.hf-tree-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.hf-tier-row {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.hf-tier-row:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-xs);
}

/* Tier Specific Color Accents */
.hf-tier-row.tier-ingest {
  border-left: 5px solid #6366f1;
  background: linear-gradient(to right, #faf5ff 0%, #f8fafc 30%);
}

.hf-tier-row.tier-process {
  border-left: 5px solid #0284c7;
  background: linear-gradient(to right, #f0f9ff 0%, #f8fafc 30%);
}

.hf-tier-row.tier-decision {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(to right, #fffbeb 0%, #f8fafc 30%);
}

.hf-tier-row.tier-ledger {
  border-left: 5px solid #0d9488;
  background: linear-gradient(to right, #f0fdfa 0%, #f8fafc 30%);
}

.hf-tier-row.tier-handoff {
  border-left: 5px solid #10b981;
  background: linear-gradient(to right, #ecfdf5 0%, #f8fafc 30%);
}

.hf-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hf-tier-badge-cluster {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hf-tier-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.tier-ingest .hf-tier-num { background: #e0e7ff; color: #4338ca; }
.tier-process .hf-tier-num { background: #e0f2fe; color: #0369a1; }
.tier-decision .hf-tier-num { background: #fef3c7; color: #b45309; }
.tier-ledger .hf-tier-num { background: #ccfbf1; color: #0f766e; }
.tier-handoff .hf-tier-num { background: #dcfce7; color: #15803d; }

.hf-tier-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.hf-tier-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.hf-sub-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.hf-sub-op-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: all var(--transition-fast);
}

.hf-sub-op-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.hf-sub-op-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.hf-sub-op-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hf-sub-op-desc {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
}

.hf-tier-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  color: #94a3b8;
  font-size: 0.85rem;
  margin: -0.35rem 0;
  position: relative;
}

.hf-tier-connector::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.hf-tier-connector i {
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 0 0.35rem;
}

.hf-branch-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.hf-branch-item {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-sizing: border-box;
}

.hf-branch-item.pass {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.hf-branch-item.exception {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.hf-branch-hdr {
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pass .hf-branch-hdr { color: #065f46; }
.exception .hf-branch-hdr { color: #92400e; }

.pass .hf-branch-text { font-size: 0.74rem; color: #047857; line-height: 1.4; }
.exception .hf-branch-text { font-size: 0.74rem; color: #b45309; line-height: 1.4; }

/* Document View Hierarchical Tree */
.doc-hf-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin: 0.45rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.doc-hf-tier {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.72rem;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 0.35rem;
}

.doc-hf-tier:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-hf-tier-lbl {
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.doc-hf-tier-val {
  color: #475569;
  line-height: 1.35;
}


/* Comprehensive All-14 Stages Grid */
.comprehensive-stages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.comp-stage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
}

.comp-stage-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.comp-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.comp-stage-header-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.comp-stage-num {
  font-size: 0.72rem;
  font-weight: 800;
  background: #eff6ff;
  color: #2563eb;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.comp-stage-num.teal {
  background: #ccfbf1;
  color: #0f766e;
}

.comp-stage-category-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.comp-stage-sla-chip {
  font-size: 0.68rem;
  background: #f8fafc;
  color: #475569;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.3;
  padding: 0.2rem 0.5rem;
}

.comp-stage-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.comp-stage-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.4rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.comp-stage-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
}

.comp-stage-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 0.75rem;
}

.comp-stage-goal {
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  padding: 0.55rem 0.75rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: #1e293b;
  line-height: 1.45;
}

.comp-stage-flowchart-block {
  margin-bottom: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.comp-flowchart-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comp-stage-actions-block {
  margin-bottom: 0.85rem;
}

.comp-stage-actions-title {
  font-size: 0.74rem;
  color: #1e293b;
  display: block;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comp-stage-actions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}

/* Ingestor Pipeline (VA2) */
.two-col-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}
.feature-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.fic-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.fic-content h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.fic-content p {
  font-size: 0.86rem;
  line-height: 1.5;
}

.code-pill {
  font-family: var(--font-mono);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
}

.ingestor-pipeline-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pipeline-card {
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.pipeline-card:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.pipeline-card.highlight-glow {
  background: #eff6ff;
  border-color: #93c5fd;
}

.pipe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.pipe-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
}
.pipe-badge.highlight {
  color: #1d4ed8;
}

.pipe-header i {
  font-size: 0.95rem;
  color: var(--accent-blue);
}

.pipeline-card p {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.pipe-arrow {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 0.7;
}

/* 8-Phase Order Journey Grid (Slide 4 / VA3) */
.order-flow-8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.journey-node-card {
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.journey-node-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.journey-node-card.highlight-finish {
  border-color: #86efac;
  background: #f0fdf4;
}

.jnode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phase-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: #eff6ff;
  border-radius: var(--radius-pill);
  color: #1d4ed8;
}
.phase-pill.finish {
  background: #dcfce7;
  color: #15803d;
}

.jnode-top i {
  font-size: 1.1rem;
  color: var(--accent-blue);
}

.journey-node-card h4 {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.journey-node-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.jnode-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.jnode-deliverable {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-glass);
}

/* 14 Modules Table (Slide 5) */
.module-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.mod-filter {
  padding: 0.4rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mod-filter:hover {
  background: #ffffff;
  color: var(--text-primary);
}
.mod-filter.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.modules-compact-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  max-height: 440px;
  overflow-y: auto;
}

.blueprint-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.blueprint-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.15rem;
  border-bottom: 2px solid var(--border-glass-bright);
  z-index: 2;
}

.blueprint-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
  color: var(--text-secondary);
  line-height: 1.45;
}

.blueprint-table tbody tr {
  transition: background var(--transition-fast);
  cursor: pointer;
}
.blueprint-table tbody tr:hover {
  background: #f8fafc;
}

.mod-cell-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mod-cell-title strong {
  color: var(--text-primary);
  font-size: 0.92rem;
}

.futuristic-tag {
  display: inline-block;
  padding: 1px 5px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  color: #b45309;
  font-size: 0.65rem;
  font-weight: 800;
  width: fit-content;
}

.replaces-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

/* OCR & Carbon Workflows (Slide 6 / VA4 & VA5) */
.ocr-workflow-steps, .esg-workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ocr-step, .esg-step-card {
  padding: 0.95rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.ocr-step-badge, .step-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.step-tag.certified {
  color: #15803d;
}

.ocr-step p, .esg-step-card p {
  font-size: 0.83rem;
  line-height: 1.4;
  margin: 0;
}

.ocr-arrow, .esg-arrow {
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 0.6;
}

.ocr-branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.branch-card {
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}
.branch-card.branch-auto {
  background: #f0fdf4;
  border-color: #86efac;
}
.branch-card.branch-review {
  background: #fff1f2;
  border-color: #fecdd3;
}

.branch-hdr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.branch-auto .branch-hdr { color: #15803d; }
.branch-review .branch-hdr { color: #be123c; }

.branch-card h5 {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.branch-card p {
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
}

.esg-step-card.highlight-esg {
  background: #f0fdf4;
  border-color: #86efac;
}

.esg-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.esg-step-top i {
  color: #10b981;
}

.esg-sub-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-glass);
}

.esg-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Security Shield Showcase (Slide 7 / VA6) */
.security-shield-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.security-intro-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}
.security-intro-card i {
  font-size: 2rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}
.security-intro-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.shield-flow-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shield-step-card {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.shield-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shield-info h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.shield-info p {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.shield-arrow {
  color: #94a3b8;
  font-size: 1rem;
}

.decision-outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.outcome-box {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-xs);
}
.outcome-box.active-status {
  background: #f0fdf4;
  border-color: #86efac;
}
.outcome-box.unsubscribed-status {
  background: #fffbeb;
  border-color: #fde68a;
}

.outcome-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.status-indicator-dot.green { background: #10b981; }
.status-indicator-dot.yellow { background: #f59e0b; }

.outcome-header h4 {
  font-size: 1rem;
}

.outcome-box p {
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.outcome-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
}
.sec-chip.warning {
  border-color: #fde68a;
  color: #92400e;
}

/* Pricing Table (Slide 8) */
.pricing-deck-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-lead-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
}
.pricing-lead-banner i {
  font-size: 1.75rem;
  color: #1d4ed8;
}
.pricing-lead-banner p {
  font-size: 0.95rem;
  color: #1e3a8a;
  margin: 0;
}

.pricing-table-container {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.pricing-table td.price-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
}

.pricing-table td.usage-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #2563eb;
}

.highlight-bundle-row {
  background: #f0fdf4 !important;
  font-weight: 600;
}
.bundle-label {
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.bundle-price {
  color: #15803d !important;
  font-size: 1.05rem;
}
.bundle-usage {
  color: #15803d !important;
}

/* Roadmap Grid (Slide 9 / VA7) */
.roadmap-phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.roadmap-card {
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}
.roadmap-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.roadmap-card.highlight-future {
  border-color: #86efac;
  background: #f0fdf4;
}

.rc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rc-phase-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  background: #eff6ff;
  border-radius: var(--radius-pill);
  color: #1d4ed8;
}
.rc-phase-tag.future {
  background: #dcfce7;
  color: #15803d;
}

.rc-timeline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.roadmap-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.rc-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rc-bullets li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.rc-bullets li i {
  font-size: 0.7rem;
  color: #10b981;
}

.rc-goal-box {
  padding: 0.6rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.rc-goal-box.future {
  background: #dcfce7;
}

.rc-goal-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
}
.rc-goal-box strong {
  font-size: 0.84rem;
  color: var(--text-primary);
}

.rc-impact-tag {
  font-size: 0.76rem;
  color: var(--accent-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Strategic Summary (Slide 10) */
.summary-slide {
  gap: 2rem;
}

.summary-key-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.summary-metric-card {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.smc-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1;
}

.smc-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-metric-card p {
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.cta-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.cta-left h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.cta-left p {
  font-size: 0.92rem;
  color: #e0f2fe;
  max-width: 680px;
  margin: 0;
}

.cta-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-blue {
  background: #2563eb;
  color: #ffffff;
}
.btn-blue:hover {
  background: #1d4ed8;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.btn-text {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
}
.btn-text:hover {
  text-decoration: underline;
}

/* Slide Deck Footer Nav */
.slide-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-glass);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slide-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.slide-nav-btn:hover:not(:disabled) {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.slide-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slide-counter-text {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slide-dots-container {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.slide-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #2563eb;
}

.keyboard-hints {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.keyboard-hints kbd {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.7rem;
}

/* ==========================================================================
   VIEW: FLOWCHARTS & BLUEPRINT GALLERY (Dedicated View)
   ========================================================================== */
.flowcharts-viewport {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.va-showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: box-shadow var(--transition-fast);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.va-showcase-card:hover {
  box-shadow: var(--shadow-md);
}

.va-top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.va-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.va-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.va-title-wrap h3 {
  font-size: 1.45rem;
  color: var(--text-primary);
}

.va-title-wrap p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.va-interactive-canvas {
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow-x: auto;
}

/* ==========================================================================
   VIEW 2: 14-MODULE OPERATING SUITE EXPLORER
   ========================================================================== */
.module-explorer-viewport {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.module-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  width: 380px;
  box-shadow: var(--shadow-xs);
}

.module-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.explorer-category-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.exp-cat-btn {
  padding: 0.5rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}
.exp-cat-btn:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}
.exp-cat-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.modules-interactive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.module-card {
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.mc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.mc-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.mc-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.mc-body h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.mc-body p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.mc-replaces-box {
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.mc-replaces-box strong {
  color: #0f172a;
}

.mc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-glass);
}

.mc-price {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.mc-inspect-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   VIEW 3: 8-PHASE ORDER JOURNEY SIMULATOR
   ========================================================================== */
.journey-simulator-viewport {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.simulator-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.journey-stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.journey-step-btn {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 100px;
}

.js-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.journey-step-btn.active .js-circle {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.journey-step-btn.completed .js-circle {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.js-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.journey-step-btn.active .js-label {
  color: #1d4ed8;
}

.journey-stage-inspector {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.inspector-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.insp-phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.insp-phase-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.insp-actions-card {
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}
.insp-actions-card h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.insp-actions-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.insp-deliverable-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
}
.insp-deliverable-box i {
  font-size: 1.5rem;
  color: #15803d;
}
.insp-deliverable-box strong {
  font-size: 0.95rem;
  color: #14532d;
}

.inspector-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #0f172a;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #f8fafc;
}

.insp-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.75rem;
}

.insp-telemetry-header h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.telemetry-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.telemetry-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.telemetry-row .time {
  color: #38bdf8;
  font-weight: 600;
  flex-shrink: 0;
}

.telemetry-row.success .msg {
  color: #4ade80;
  font-weight: 600;
}

/* ==========================================================================
   VIEW 4: ROI & PRICING CALCULATOR
   ========================================================================== */
.pricing-calculator-viewport {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.calculator-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
}

.calc-inputs-card, .calc-results-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}
.card-title-row h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-meta label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slider-val-badge {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
}
.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
  transition: transform var(--transition-fast);
}
.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.rate-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bundle-comparison-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.plan-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}
.metric-val.text-green {
  color: #15803d;
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.vs-badge {
  font-size: 0.75rem;
  font-weight: 900;
  color: #94a3b8;
  padding: 0.2rem 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
}

.legacy-savings-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.savings-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.savings-lbl {
  font-size: 0.82rem;
  font-weight: 800;
  color: #166534;
}

.savings-big-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #15803d;
  line-height: 1.1;
}

.savings-percentage-badge {
  padding: 0.35rem 0.75rem;
  background: #15803d;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
}

.savings-note {
  font-size: 0.8rem;
  color: #1e3a8a;
  line-height: 1.4;
  margin: 0;
}

.module-cost-breakdown-box h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* ==========================================================================
   VIEW 5: LIVE SANDBOX & BENCHMARK LAB
   ========================================================================== */
.sandbox-viewport {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sandbox-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.sandbox-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sandbox-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.sandbox-card-header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.ingest-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.istat {
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.istat-n {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}
.istat-n.text-green { color: #15803d; }

.istat-l {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stream-console {
  height: 220px;
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.console-line {
  color: #cbd5e1;
}
.console-line.info { color: #38bdf8; }
.console-line.success { color: #4ade80; }

.ocr-confidence-tester {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tester-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.confidence-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.confidence-result-box {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

/* ==========================================================================
   VIEW 6: MASTER EXECUTIVE BLUEPRINT (Print & Document View)
   ========================================================================== */
.document-viewport {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.doc-toolbar {
  width: 100%;
  max-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  gap: 0.75rem;
  box-sizing: border-box;
}

.doc-quick-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
  width: 100%;
}

.doc-quick-nav-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.doc-quick-nav-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.doc-page-sheet {
  width: 100%;
  max-width: 1040px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-lg);
  padding: 2.75rem 3.25rem;
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 1100px;
  position: relative;
  page-break-after: always;
}

.doc-page-header {
  margin-bottom: 1.5rem;
}

.doc-top-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.doc-blueprint-chip {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #2563eb;
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.doc-top-bar h1 {
  font-size: 1.7rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.doc-top-bar p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.doc-header-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #334155;
  font-size: 0.78rem;
}
.doc-header-meta-grid strong {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.doc-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.22rem;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #0284c7;
}

.doc-lead-paragraph {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1rem;
}

/* Document View Stage Card Styling */
.doc-stage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-sizing: border-box;
  page-break-inside: avoid;
  margin-bottom: 0.85rem;
}
.doc-stage-card.theme-blue {
  border-left: 4px solid #2563eb;
}
.doc-stage-card.theme-teal {
  border-left: 4px solid #0d9488;
}

.doc-stage-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.45rem;
}

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

.doc-stage-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.doc-stage-flow-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.doc-flow-node {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
}

.doc-flow-node .dfn-num {
  color: #2563eb;
  font-weight: 800;
  background: #eff6ff;
  padding: 0.05rem 0.2rem;
  border-radius: 2px;
}

.doc-stage-dg {
  background: #fdfaf6;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.74rem;
}

.doc-stage-actions-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.76rem;
  color: #334155;
}
@media (max-width: 600px) {
  .doc-stage-actions-list {
    grid-template-columns: 1fr;
  }
}

.doc-page-footer {
  margin-top: 2.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
}

/* ==========================================================================
   MODALS, SLIDEOUTS, OVERLAYS
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.active {
  display: flex;
}

.search-modal-box {
  width: 90%;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: zoomInModal 0.2s ease;
}

.grid-modal-box {
  width: 90%;
  max-width: 1080px;
  max-height: 85vh;
  background: #ffffff;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zoomInModal 0.2s ease;
}

@keyframes zoomInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.search-input-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}
.search-input-header i {
  font-size: 1.2rem;
  color: var(--accent-blue);
}
.search-input-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close-btn:hover { color: var(--text-primary); }

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.qtag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  cursor: pointer;
  color: #2563eb;
}
.qtag:hover {
  background: #eff6ff;
}

.search-results-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.search-result-item:hover, .search-result-item.selected {
  background: #eff6ff;
}

.search-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-glass);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Slideout Panel */
.slideout-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  z-index: 998;
}
.slideout-backdrop.active { display: block; }

.slideout-panel {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.slideout-panel.active { right: 0; }

.slideout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.slideout-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #1d4ed8;
  letter-spacing: 0.05em;
}

.slideout-body {
  flex: 1;
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slideout-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Presenter Notes Drawer */
.presenter-notes-drawer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #f8fafc;
  padding: 1.25rem 2rem;
  border-top: 1px solid #334155;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  box-sizing: border-box;
}
.presenter-notes-drawer.active { display: block; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.drawer-header h4 {
  font-size: 0.9rem;
  color: #38bdf8;
}
.drawer-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
}
.drawer-content {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2e8f0;
}

/* Laser Pointer */
.laser-pointer-dot {
  display: none;
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 16px 4px rgba(239, 68, 68, 0.85);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}
.laser-pointer-dot.active { display: block; }

/* Grid Thumbnails */
.grid-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-glass);
}
.grid-thumbnails {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  overflow-y: auto;
}
.grid-slide-thumb {
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.grid-slide-thumb:hover {
  transform: translateY(-2px);
  border-color: #2563eb;
  background: #ffffff;
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .app-header, .slide-footer-nav, .view-mode-tabs, .presenter-controls, .simulator-controls, .doc-toolbar {
    display: none !important;
  }
  .main-stage {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .view-panel {
    display: none !important;
  }
  #documentView {
    display: block !important;
  }
  .doc-page-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0.8cm 0 !important;
    page-break-after: always !important;
    min-height: auto !important;
    max-width: 100% !important;
  }
  .doc-stage-card, .visual-arch-container, .pricing-table-container, .pillar-card {
    page-break-inside: avoid !important;
  }
}

/* ==========================================================================
   COMPREHENSIVE MULTI-DEVICE RESPONSIVE SUITE
   Breakpoints: 1400px (Desktop), 1200px (Laptops), 992px (Tablets), 768px (Phablets), 576px (Mobiles), 400px (Small Screens)
   ========================================================================== */

/* Laptop / Medium Desktop (<= 1400px) */
@media (max-width: 1400px) {
  .comprehensive-stages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
  .op-grid-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .op-step-card {
    padding: 1rem 0.5rem;
    min-height: 105px;
  }
  .op-step-name {
    font-size: 0.88rem;
  }
  .op-step-sub {
    font-size: 0.7rem;
  }
}

/* Small Laptop / Large Tablet Landscape (<= 1200px) */
@media (max-width: 1200px) {
  .comprehensive-stages-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .op-grid-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .insp-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col-layout, .calculator-dashboard-grid, .sandbox-two-col {
    grid-template-columns: 1fr;
  }
  .modules-interactive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillars-grid-4, .order-flow-8-grid, .roadmap-phases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet Portrait & Small Screens (<= 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 64px;
  }
  .app-header {
    padding: 0 1rem;
  }
  .header-left {
    gap: 1rem;
  }
  .view-mode-tabs {
    overflow-x: auto;
    max-width: calc(100vw - 320px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .view-mode-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .brand-badge {
    display: none;
  }
  .main-stage {
    padding: 1rem 0.75rem;
  }
  .op-step-inspector-box {
    padding: 1.25rem 1.5rem;
  }
  .insp-specs-grid {
    grid-template-columns: 1fr;
  }
  .dgp-branches-grid {
    grid-template-columns: 1fr;
  }
  .journey-stage-inspector {
    grid-template-columns: 1fr;
  }
  .lifecycle-flow-steps, .shield-flow-container {
    flex-direction: column;
  }
  .stage-flowchart-modal-box {
    width: 96vw;
    max-height: 94vh;
  }
  .stage-flowchart-modal-header {
    padding: 1rem 1.25rem;
  }
  .stage-flowchart-modal-body {
    padding: 1.25rem;
  }
}

/* Mobile Devices & Phablets (<= 768px) */
@media (max-width: 768px) {
  .app-header {
    padding: 0 0.75rem;
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .header-left {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .view-mode-tabs {
    width: 100%;
    max-width: 100%;
    order: 3;
    padding-bottom: 0.25rem;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
    order: 2;
    gap: 0.35rem;
  }
  .search-label, .kbd-badge {
    display: none;
  }
  .search-trigger-btn {
    padding: 0.4rem 0.6rem;
  }
  .slide {
    padding: 1.25rem 1rem;
    min-height: auto;
  }
  .slide-title {
    font-size: 1.4rem;
  }
  .op-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .op-step-card {
    min-height: 95px;
    padding: 0.75rem 0.4rem;
  }
  .op-step-name {
    font-size: 0.82rem;
  }
  .op-step-sub {
    font-size: 0.68rem;
  }
  .va-showcase-card {
    padding: 1.25rem 1rem;
  }
  .va-interactive-canvas {
    padding: 1rem !important;
  }
  .op-stage-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .op-category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .op-category-pills::-webkit-scrollbar {
    display: none;
  }
  .stage-search-wrap {
    max-width: 100%;
    width: 100%;
  }
  .comp-stage-card {
    padding: 1.1rem 1.15rem;
  }
  .comp-stage-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .mini-decision-branches {
    grid-template-columns: 1fr;
  }
  .cover-value-grid, .pillars-grid-4, .order-flow-8-grid, .roadmap-phases-grid, .summary-key-grid, .modules-interactive-grid {
    grid-template-columns: 1fr;
  }
  .grid-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem;
  }
  .slide-footer-nav {
    padding: 0.75rem 1rem;
  }
  .slide-counter-badge {
    font-size: 0.75rem;
  }
}

/* Small Screen Mobiles (<= 576px) */
@media (max-width: 576px) {
  .brand-name {
    font-size: 1.15rem;
  }
  .logo-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .va-top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .insp-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .insp-header-actions {
    width: 100%;
    justify-content: stretch;
  }
  .insp-header-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    text-align: center;
    justify-content: center;
  }
  .flow-pipeline-node {
    flex: 1 0 140px;
    min-width: 130px;
    padding: 0.65rem 0.75rem;
  }
  .fp-node-title {
    font-size: 0.78rem;
  }
  .fp-node-desc {
    font-size: 0.68rem;
  }
  .mini-decision-box div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .grid-thumbnails {
    grid-template-columns: 1fr;
  }
  .modal-flow-track {
    flex-direction: column;
  }
  .modal-flow-node {
    min-width: 100%;
  }
  .mfn-connector {
    transform: rotate(90deg);
    padding: 0.35rem 0;
  }
}

/* Ultra-Compact Screens (<= 400px) */
@media (max-width: 400px) {
  .op-grid-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .op-step-card {
    padding: 0.6rem 0.3rem;
  }
  .op-step-name {
    font-size: 0.78rem;
  }
  .op-step-sub {
    font-size: 0.64rem;
  }
  .stage-cat-btn {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }
  .comp-stage-card {
    padding: 0.9rem;
  }
}

