/* ==========================================================================
   OPLAN 2027 — Executive Light (Default) & Dark Mode Design System
   Clean, boardroom-ready IT Strategic Plan with full-viewport card scaling.
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg-page: #f2f6fc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-subtle: rgba(241, 245, 249, 0.82);
  --surface-hover: #ffffff;
  --chrome-bg: rgba(255, 255, 255, 0.86);

  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.15);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --shadow-hover: 0 16px 38px rgba(37, 99, 235, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);

  --text-primary: #0b1220;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.1);
  --blue-text: #1d4ed8;
  --indigo: #4f46e5;
  --indigo-soft: rgba(79, 70, 229, 0.1);
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.1);
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.11);
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.11);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.11);
  --slate-soft: rgba(100, 116, 139, 0.13);

  --scene-bg: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  --scene-card: #ffffff;
  --scene-shadow: rgba(15, 23, 42, 0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --bar-top: 64px;
  --bar-bottom: 60px;
}

[data-theme="dark"] {
  --bg-page: #050a18;
  --surface: rgba(13, 22, 42, 0.8);
  --surface-solid: #0f1b33;
  --surface-subtle: rgba(24, 38, 66, 0.62);
  --surface-hover: rgba(30, 48, 82, 0.88);
  --chrome-bg: rgba(6, 12, 26, 0.86);

  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.26);
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-hover: 0 18px 42px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(125, 211, 252, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.15);
  --blue-text: #7dd3fc;
  --indigo: #818cf8;
  --indigo-soft: rgba(129, 140, 248, 0.16);
  --violet: #c084fc;
  --violet-soft: rgba(192, 132, 252, 0.16);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.15);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.15);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.16);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.16);
  --slate-soft: rgba(148, 163, 184, 0.16);

  --scene-bg: linear-gradient(135deg, rgba(24, 38, 66, 0.88) 0%, rgba(11, 19, 36, 0.94) 100%);
  --scene-card: #16233d;
  --scene-shadow: rgba(0, 0, 0, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ==================== TOP EXECUTIVE BAR ==================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-top);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 26px 0;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 35%, #4f46e5 65%, #0d9488 100%);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #4f46e5 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-sep { color: var(--text-muted); margin: 0 6px; font-weight: 400; }
.brand-accent { color: var(--blue); font-weight: 700; }
.brand-sub { font-size: 11.5px; color: var(--text-muted); font-weight: 500; margin-top: 1px; }

.top-actions { display: flex; align-items: center; gap: 9px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.chip-sep { opacity: 0.45; }
.mono { font-family: var(--font-mono); }

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 9px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ctrl-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--surface-hover);
}

.ctrl-btn.active-btn {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-text);
}

.ctrl-btn.icon-only { padding: 7px 10px; }
.ctrl-btn.small { padding: 6px 12px; font-size: 12px; }

/* ==================== STAGE & SLIDES ==================== */
.stage {
  position: fixed;
  top: var(--bar-top);
  bottom: var(--bar-bottom);
  left: 0;
  right: 0;
  z-index: 10;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(36px) scale(0.985);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.34s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.slide.exit-left {
  opacity: 0;
  transform: translateX(-36px) scale(0.985);
}

.slide.exit-right {
  opacity: 0;
  transform: translateX(36px) scale(0.985);
}

.slide-inner {
  width: 100%;
  max-width: 1760px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==================== SURFACE CARDS & TYPOGRAPHY ==================== */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.22s ease, background-color 0.25s ease;
}

.pillar-tile:hover,
.init-card:hover,
.clean-card:hover,
.detail-card:hover,
.gov-card:hover,
.kpi-card:hover {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.init-card,
.detail-card,
.gov-card,
.kpi-card,
.clean-card {
  position: relative;
  overflow: hidden;
}

.init-card::before,
.detail-card::before,
.gov-card::before,
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  opacity: 0.72;
}

.detail-card::before {
  background: linear-gradient(90deg, var(--teal), var(--emerald));
}

.kpi-card::before {
  background: linear-gradient(90deg, var(--emerald), var(--blue));
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
  margin-bottom: 9px;
}

.pill-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.pill-dot.blue { background: var(--blue); color: var(--blue); }
.pill-dot.indigo { background: var(--indigo); color: var(--indigo); }
.pill-dot.amber { background: var(--amber); color: var(--amber); }
.pill-dot.emerald { background: var(--emerald); color: var(--emerald); }
.pill-dot.teal { background: var(--teal); color: var(--teal); }

.mono-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.slide-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.9vw, 42px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.12;
  color: var(--text-primary);
}

.text-accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-indigo { color: var(--indigo); }
.text-amber { color: var(--amber); }
.text-emerald { color: var(--emerald); }
.text-teal { color: var(--teal); }

.accent-blue { color: var(--blue) !important; }
.accent-indigo { color: var(--indigo) !important; }
.accent-emerald { color: var(--emerald) !important; }
.accent-teal { color: var(--teal) !important; }
.accent-amber { color: var(--amber) !important; }
.accent-red { color: var(--red) !important; }

.goal-badge {
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--blue-soft);
  color: var(--blue-text);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.goal-badge.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.28);
}

.goal-badge.teal {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: rgba(13, 148, 136, 0.28);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.badge.emerald { background: var(--emerald-soft); color: var(--emerald); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue-text); }

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.tag.emerald { background: var(--emerald-soft); color: var(--emerald); }
.tag.teal { background: var(--teal-soft); color: var(--teal); }
.tag.indigo { background: var(--indigo-soft); color: var(--indigo); }
.tag.violet { background: var(--violet-soft); color: var(--violet); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.blue { background: var(--blue-soft); color: var(--blue-text); }
.tag.slate { background: var(--slate-soft); color: var(--text-secondary); }

/* ==================== SLIDE 1: HERO ==================== */
.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.92fr;
  gap: 28px;
  align-items: center;
  height: 100%;
}

.hero-left { display: flex; flex-direction: column; justify-content: center; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-subtitle {
  display: block;
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: clamp(16px, 1.28vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 780px;
  margin-bottom: 24px;
}

.hero-desc strong { color: var(--text-primary); font-weight: 700; }

.pillar-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.pillar-tile {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tile-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-text);
  background: var(--blue-soft);
  padding: 8px 11px;
  border-radius: 10px;
}

.tile-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: var(--text-primary); }
.tile-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

.hero-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #4f46e5 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.shortcut-hint { font-size: 13px; color: var(--text-muted); }

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.summary-panel {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==================== ANIMATED CARTOON SCENE FRAMES & KEYFRAMES ==================== */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.scene-slot {
  background: var(--scene-bg);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.scene-slot.hero-scene {
  width: 100%;
  height: 236px;
  padding: 8px 14px 8px;
}

.scene-slot.header-scene {
  width: 318px;
  height: 148px;
  padding: 6px 10px 6px;
}

.scene-visual {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartoon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scene-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-text);
  padding: 3px 10px 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Smooth Cartoon Character Animations */
.anim-type-l {
  transform-box: fill-box;
  transform-origin: center;
  animation: typeHandL 0.42s ease-in-out infinite alternate;
}
.anim-type-r {
  transform-box: fill-box;
  transform-origin: center;
  animation: typeHandR 0.42s ease-in-out 0.21s infinite alternate;
}
.anim-head-nod {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: headNod 2.6s ease-in-out infinite;
}
.anim-look-lr {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: lookLR 3.4s ease-in-out infinite;
}
.anim-blink {
  transform-box: fill-box;
  transform-origin: center;
  animation: eyeBlink 4.2s infinite;
}
.anim-float-slow {
  animation: floatSlow 3.2s ease-in-out infinite;
}
.anim-float-alt {
  animation: floatSlow 2.8s ease-in-out 0.9s infinite;
}
.anim-pulse {
  animation: softPulse 1.6s ease-in-out infinite;
}
.anim-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin360 7s linear infinite;
}
.anim-spin-clock {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: spin360 4s linear infinite;
}
.anim-steam {
  animation: steamRise 2.2s ease-in-out infinite;
}
.anim-conveyor {
  animation: conveyorShift 2.8s linear infinite;
}
.anim-scan-y {
  animation: scanVertical 1.8s ease-in-out infinite alternate;
}
.anim-dash {
  animation: dashFlow 1.4s linear infinite;
}
.anim-point {
  transform-box: fill-box;
  transform-origin: left center;
  animation: pointWave 2s ease-in-out infinite;
}
.anim-cheer-l {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: cheerArm 1.1s ease-in-out infinite alternate;
}
.anim-cheer-r {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: cheerArm 1.1s ease-in-out 0.35s infinite alternate;
}
.anim-bar1 { transform-box: fill-box; transform-origin: bottom; animation: barGrow 2.4s ease-in-out infinite alternate; }
.anim-bar2 { transform-box: fill-box; transform-origin: bottom; animation: barGrow 2.4s ease-in-out 0.3s infinite alternate; }
.anim-bar3 { transform-box: fill-box; transform-origin: bottom; animation: barGrow 2.4s ease-in-out 0.6s infinite alternate; }
.anim-bar4 { transform-box: fill-box; transform-origin: bottom; animation: barGrow 2.4s ease-in-out 0.9s infinite alternate; }

/* Focused-on-Laptop Hero Character Animations */
.anim-focus-lean {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: focusLean 3.6s ease-in-out infinite;
}
.anim-focus-head {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: focusHead 2.8s ease-in-out infinite;
}
.anim-eye-scan {
  animation: eyeScan 2.2s ease-in-out infinite;
}
.anim-key-tap-l {
  transform-box: fill-box;
  transform-origin: left center;
  animation: keyTapL 0.34s ease-in-out infinite alternate;
}
.anim-key-tap-r {
  transform-box: fill-box;
  transform-origin: left center;
  animation: keyTapR 0.34s ease-in-out 0.17s infinite alternate;
}
.anim-screen-glow {
  animation: screenGlow 2.4s ease-in-out infinite;
}
.anim-code-1 { transform-box: fill-box; transform-origin: left; animation: codeType 2.2s ease-in-out infinite; }
.anim-code-2 { transform-box: fill-box; transform-origin: left; animation: codeType 2.2s ease-in-out 0.45s infinite; }
.anim-code-3 { transform-box: fill-box; transform-origin: left; animation: codeType 2.2s ease-in-out 0.9s infinite; }

/* Back-View Jacket Developer Animations */
.anim-back-breathe {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: backBreathe 3.4s ease-in-out infinite;
}
.anim-back-head {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: backHeadScan 4.2s ease-in-out infinite;
}
.anim-shoulder-l {
  transform-box: fill-box;
  transform-origin: top right;
  animation: shoulderType 0.42s ease-in-out infinite alternate;
}
.anim-shoulder-r {
  transform-box: fill-box;
  transform-origin: top left;
  animation: shoulderType 0.42s ease-in-out 0.21s infinite alternate;
}

@keyframes backBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes backHeadScan {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}
@keyframes shoulderType {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2.5px); }
}

@keyframes focusLean {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(2px, 1px) rotate(1.2deg); }
}
@keyframes focusHead {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(1.5px); }
}
@keyframes eyeScan {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(1.8px, 0.8px); }
  70% { transform: translate(-0.8px, 1.4px); }
}
@keyframes keyTapL {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-2.5px) rotate(-1.5deg); }
}
@keyframes keyTapR {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-2.5px) rotate(-1.5deg); }
}
@keyframes screenGlow {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@keyframes codeType {
  0%, 100% { transform: scaleX(0.65); opacity: 0.75; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes typeHandL {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
@keyframes typeHandR {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
@keyframes headNod {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(1.8px) rotate(1.8deg); }
}
@keyframes lookLR {
  0%, 100% { transform: translateX(-2px) rotate(-3deg); }
  50% { transform: translateX(2px) rotate(3deg); }
}
@keyframes eyeBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.12); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes spin360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes steamRise {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-4px); opacity: 0.9; }
}
@keyframes conveyorShift {
  0% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  100% { transform: translateX(-8px); }
}
@keyframes scanVertical {
  0% { transform: translateY(-7px); }
  100% { transform: translateY(7px); }
}
@keyframes dashFlow {
  from { stroke-dashoffset: 22; }
  to { stroke-dashoffset: 0; }
}
@keyframes pointWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-6deg); }
}
@keyframes cheerArm {
  0% { transform: rotate(-6deg) translateY(1px); }
  100% { transform: rotate(8deg) translateY(-4px); }
}
@keyframes barGrow {
  0% { transform: scaleY(0.75); }
  100% { transform: scaleY(1.06); }
}

.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.kpi-quad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kpi-tile {
  padding: 22px 20px;
  border-radius: 13px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}
.kpi-big { font-family: var(--font-display); font-size: clamp(32px, 2.8vw, 44px); font-weight: 800; color: var(--text-primary); line-height: 1.05; }
.kpi-lbl { font-size: 14px; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }

.panel-divider { height: 1px; background: var(--border); }
.meta-footer { display: flex; justify-content: space-between; gap: 16px; }
.meta-right { text-align: right; }
.meta-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--text-muted); }
.meta-value { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-top: 4px; }

/* ==================== SLIDE 2: MPC-IMS COMMAND CENTER ==================== */
.header-stats { display: flex; gap: 12px; }
.h-stat {
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.h-num { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--text-primary); }
.h-txt { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.ims-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.82fr 0.96fr;
  gap: 16px;
}

/* Live MPC-IMS Command Center Screenshot Showcase (Slide 2) */
.ims-showcase-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 16px;
}

.ims-screenshot-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.bc-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bc-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.bc-dots span:nth-child(1) { background: #ef4444; }
.bc-dots span:nth-child(2) { background: #f59e0b; }
.bc-dots span:nth-child(3) { background: #10b981; }

.bc-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.bc-zoom-btn {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--blue-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.bc-zoom-btn:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.ims-img-frame {
  flex: 1;
  min-height: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.ims-live-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}
.ims-img-frame:hover .ims-live-img {
  transform: scale(1.015);
}

.ims-flow-strip {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-solid);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.ims-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.ims-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  flex: 1;
  min-height: 0;
}

.ims-grid-compact .mod-card {
  padding: 14px 16px;
  gap: 8px;
}

.ims-grid-compact .mod-name { font-size: 15.5px; }
.ims-grid-compact .mod-list { gap: 6px; }
.ims-grid-compact .mod-list li { font-size: 13px; }

.compact-inspector {
  padding: 18px 20px;
  gap: 10px;
  flex-shrink: 0;
}
.compact-inspector h3 { font-size: 20px; margin-top: 3px; }
.compact-inspector p { font-size: 14px; line-height: 1.55; }

.insp-box.horizontal {
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}
.insp-box.horizontal .insp-item strong { font-size: 14px; }

/* Full-Screen Screenshot Lightbox Dialog */
.image-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(1320px, 95vw);
  max-height: 92vh;
  padding: 20px 24px;
  background: var(--surface-solid);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.image-lightbox-dialog .overview-head { margin-bottom: 0; }

.lightbox-img-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  display: block;
}

/* Live MPC-IMS Command Center Screenshot Showcase (Slide 2) */
.ims-showcase-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  gap: 16px;
}

.ims-screenshot-panel {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.bc-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bc-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.bc-dots span:nth-child(1) { background: #ef4444; }
.bc-dots span:nth-child(2) { background: #f59e0b; }
.bc-dots span:nth-child(3) { background: #10b981; }

.bc-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
}

.bc-zoom-btn {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--blue-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.bc-zoom-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.ims-img-frame {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ims-img-frame:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}

.ims-live-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ims-flow-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.ims-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.ims-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 11px;
  flex: 1.15;
  min-height: 0;
}

.ims-grid-compact .mod-card {
  padding: 13px 15px;
  gap: 8px;
}
.ims-grid-compact .mod-name { font-size: 15.5px; }
.ims-grid-compact .mod-list { gap: 6px; }
.ims-grid-compact .mod-list li { font-size: 13px; }

.compact-inspector {
  padding: 16px 18px;
  gap: 10px;
  flex: 0.85;
}
.compact-inspector h3 { font-size: 20px; margin-top: 3px; }
.compact-inspector p { font-size: 14px; line-height: 1.55; }

.insp-box.horizontal {
  flex-direction: row;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}
.insp-box.horizontal .insp-item strong { font-size: 14.5px; }

/* Full-screen Screenshot Lightbox */
.image-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(1320px, 95vw);
  max-height: 92vh;
  padding: 20px 24px;
  background: var(--surface-solid);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox-img-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  display: grid;
  place-items: center;
}
.lightbox-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.ims-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  height: 100%;
}

.mod-card {
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.mod-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.mod-card.active-mod {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-hover);
}

.mod-head { display: flex; align-items: center; justify-content: space-between; }
.mod-name { font-family: var(--font-display); font-size: 17.5px; font-weight: 700; color: var(--text-primary); }
.mod-count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-text);
  background: var(--blue-soft);
  padding: 3px 9px;
  border-radius: 7px;
}

.mod-list { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: center; }
.mod-list li { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }

.mod-inspector {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.mod-inspector h3 { font-family: var(--font-display); font-size: 25px; font-weight: 800; color: var(--text-primary); margin-top: 6px; }
.mod-inspector p { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }

.insp-box {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.insp-item { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--text-muted); }
.insp-item strong { font-size: 16px; color: var(--text-primary); }

.mini-flow { display: flex; align-items: center; gap: 6px; }
.mf-node {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 8px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.mf-node.active { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-text); }
.mf-arr { color: var(--blue); font-weight: 700; }

/* ==================== SLIDE 3: AI MONITOR TELEMETRY ==================== */
.filter-group { display: flex; gap: 8px; }
.filter-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-text); }
.filter-btn.crit.active { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.filter-btn.warn.active { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.filter-btn.ok.active { background: var(--emerald-soft); border-color: var(--emerald); color: var(--emerald); }

.telemetry-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.96fr 1.38fr;
  gap: 18px;
}

.telemetry-left { display: flex; flex-direction: column; gap: 14px; height: 100%; }

.gauge-card { padding: 22px 24px; display: flex; align-items: center; gap: 22px; }
.gauge-wrap { position: relative; width: 126px; height: 126px; flex-shrink: 0; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--border-strong); stroke-width: 10; }
.gauge-arc { fill: none; stroke: var(--amber); stroke-width: 10; stroke-linecap: round; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-val { font-family: var(--font-display); font-size: 31px; font-weight: 800; color: var(--amber); }
.gauge-lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.gauge-copy h3 { font-family: var(--font-display); font-size: 23px; font-weight: 800; margin: 4px 0 8px; color: var(--text-primary); }
.badge-row { display: flex; gap: 8px; margin-bottom: 8px; }
.gauge-copy p { font-size: 14px; line-height: 1.52; color: var(--text-secondary); }

.metric-stack { flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.stat-row {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.red-bar { border-left: 4px solid var(--red); }
.amber-bar { border-left: 4px solid var(--amber); }
.emerald-bar { border-left: 4px solid var(--emerald); }

.sr-title { font-size: 15.5px; font-weight: 700; color: var(--text-primary); }
.sr-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.sr-val { font-family: var(--font-display); font-size: 30px; font-weight: 800; white-space: nowrap; }
.sr-val small { font-size: 14px; font-weight: 600; }

.alerts-panel {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  height: 100%;
}

.alerts-list { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 4px; }
.alerts-list::-webkit-scrollbar { width: 6px; }
.alerts-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

.alert-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}
.alert-row.hidden { display: none; }
.ar-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.ar-desc { font-size: 13.5px; color: var(--text-secondary); margin-top: 3px; line-height: 1.48; }

/* ==================== SLIDE 4: INITIATIVE 1 ==================== */
.cards-4 { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.init-card { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.init-num {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
}
.init-num.blue { background: var(--blue-soft); color: var(--blue-text); }
.init-num.indigo { background: var(--indigo-soft); color: var(--indigo); }
.init-num.violet { background: var(--violet-soft); color: var(--violet); }
.init-num.emerald { background: var(--emerald-soft); color: var(--emerald); }

.init-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--text-primary); line-height: 1.25; }
.init-card p { font-size: 15.5px; line-height: 1.62; color: var(--text-secondary); flex: 1; }
.init-footer { padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--blue-text); }

.summary-strip { padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; }
.ss-item { display: flex; flex-direction: column; gap: 4px; }
.ss-item strong { font-size: 17px; color: var(--text-primary); }
.ss-sep { width: 1px; height: 40px; background: var(--border-strong); }

/* ==================== SLIDE 5: COSTING SYSTEM ==================== */
.costing-layout { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.costing-engine { flex: 1.2; padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }

.cost-flow { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.cost-box {
  padding: 20px 22px;
  border-radius: 13px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.cb-tag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--emerald); letter-spacing: 0.06em; }
.cost-box h4 { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-primary); }
.cost-box p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.cost-op { display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--emerald); }

.cost-result {
  padding: 18px 22px;
  border-radius: 13px;
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}
.cr-label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--emerald); }
.cr-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cr-pills span {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.cards-3 { flex: 0.8; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.clean-card { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.clean-card h4 { font-family: var(--font-display); font-size: 19.5px; font-weight: 800; color: var(--text-primary); }
.clean-card p { font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }

/* ==================== SLIDES 6 & 8: 2x2 EXECUTIVE GRIDS ==================== */
.cards-2x2 {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
}

.detail-card, .gov-card {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.dc-kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--teal); }
.detail-card h3, .gov-card h3 { font-family: var(--font-display); font-size: 23px; font-weight: 800; color: var(--text-primary); }
.detail-card p, .gov-card p { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.check-list li { font-size: 15px; font-weight: 600; color: var(--teal); padding-left: 20px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; }

.gov-head { display: flex; align-items: center; gap: 14px; }
.gov-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-text);
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--blue-soft);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.tag-row span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ==================== SLIDE 7: ARCHITECTURE ==================== */
.arch-card { flex: 1; padding: 26px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.arch-tier { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.arch-grid { flex: 1; display: grid; gap: 16px; }
.arch-grid.two { grid-template-columns: repeat(2, 1fr); }
.arch-grid.three { grid-template-columns: repeat(3, 1fr); }
.arch-grid.four { grid-template-columns: repeat(4, 1fr); }

.arch-tile {
  padding: 18px 22px;
  border-radius: 13px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.arch-tile strong { font-family: var(--font-display); font-size: 18.5px; font-weight: 800; color: var(--text-primary); }
.arch-tile span { font-size: 14.5px; color: var(--text-secondary); line-height: 1.45; }

.indigo-tint { background: var(--indigo-soft); border-color: rgba(79, 70, 229, 0.3); }
.blue-tint { background: var(--blue-soft); border-color: rgba(37, 99, 235, 0.3); }
.blue-border { border-top: 3px solid var(--blue); }
.emerald-border { border-top: 3px solid var(--emerald); }
.teal-border { border-top: 3px solid var(--teal); }

.arch-bus {
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--blue-text);
}
.bus-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

/* ==================== SLIDE 9: ROADMAP ==================== */
.roadmap-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.q-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}
.q-card:hover, .q-card.active-q {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.q-top { display: flex; align-items: center; justify-content: space-between; }
.q-pill { font-family: var(--font-mono); font-size: 13.5px; font-weight: 800; padding: 6px 12px; border-radius: 8px; }
.q-pill.blue { background: var(--blue-soft); color: var(--blue-text); }
.q-pill.indigo { background: var(--indigo-soft); color: var(--indigo); }
.q-pill.emerald { background: var(--emerald-soft); color: var(--emerald); }
.q-pill.teal { background: var(--teal-soft); color: var(--teal); }

.q-phase { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.q-card h4 { font-family: var(--font-display); font-size: 20.5px; font-weight: 800; color: var(--text-primary); line-height: 1.25; }
.q-list { list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; justify-content: center; }
.q-list li { font-size: 15px; line-height: 1.5; color: var(--text-secondary); padding-left: 16px; position: relative; }
.q-list li::before { content: '•'; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.q-exit { padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--emerald); }

/* ==================== SLIDE 10: IMPACT & SIGN-OFF ==================== */
.finale-layout { justify-content: space-between; }
.impact-row { flex: 1.1; }

.kpi-card { padding: 26px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.kc-label { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.kc-diff { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); }
.kc-diff .old { font-size: 19px; color: var(--text-muted); text-decoration: line-through; }
.kc-diff .arr { color: var(--text-muted); font-size: 18px; }
.kc-diff .new { font-size: clamp(28px, 2.5vw, 38px); font-weight: 800; }

.kc-bar { height: 10px; border-radius: 99px; background: var(--surface-subtle); overflow: hidden; }
.kc-fill { height: 100%; width: 0; border-radius: 99px; transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.slide.active .kc-fill { width: var(--w); }
.kc-fill.blue { background: var(--blue); }
.kc-fill.emerald { background: var(--emerald); }
.kc-fill.indigo { background: var(--indigo); }
.kc-fill.teal { background: var(--teal); }
.kc-note { font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; }

.signoff-banner {
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-left: 5px solid var(--blue);
}
.signoff-copy h3 { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text-primary); margin: 5px 0 8px; }
.signoff-copy p { font-size: 16px; color: var(--text-secondary); max-width: 920px; line-height: 1.6; }
.signoff-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ==================== BOTTOM PAGINATION BAR ==================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bar-bottom);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: var(--chrome-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}

.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #2563eb, #4f46e5, #059669);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-left { display: flex; align-items: center; gap: 12px; min-width: 280px; }
.counter-badge {
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: 12.5px;
  font-weight: 700;
}
.section-name { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted); }

.page-pills { display: flex; align-items: center; gap: 6px; }
.page-pill {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.page-pill:hover { border-color: var(--blue); color: var(--blue); }
.page-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-right { display: flex; align-items: center; gap: 8px; min-width: 220px; justify-content: flex-end; }
.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.nav-btn:hover { border-color: var(--blue); color: var(--blue); }
.nav-btn.primary { background: var(--blue); border-color: var(--blue); color: #ffffff; }
.nav-btn.primary:hover { filter: brightness(1.08); color: #ffffff; }

/* ==================== SLIDE DIRECTORY MODAL ==================== */
.overview-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s;
}
.overview-modal.open { opacity: 1; visibility: visible; }
.overview-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.52); backdrop-filter: blur(6px); }
.overview-dialog {
  position: relative;
  z-index: 2;
  width: min(1160px, 94vw);
  padding: 28px 30px;
  background: var(--surface-solid);
}
.overview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.overview-head h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--text-primary); margin-top: 4px; }
.overview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }

.ov-card {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  color: var(--text-primary);
}
.ov-card:hover, .ov-card.current { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.ov-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--blue-text); margin-bottom: 7px; }
.ov-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.3; }

/* ==================== SLIDE 10: OPLAN 2027 CALENDAR PROGRESS TRACKER ==================== */
.cal-slide-inner {
  gap: 11px;
}

.cal-header {
  align-items: center;
  gap: 14px;
  border-bottom: none;
  padding-bottom: 0;
}

.cal-title {
  font-size: clamp(24px, 2.3vw, 34px);
}

.cal-kpi-strip {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-overall-card {
  min-width: 230px;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
}

.cal-ov-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cal-ov-pct {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.cal-ov-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--surface-subtle);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cal-ov-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--emerald));
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cal-mini-stat {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.cal-mini-stat strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}
.cal-mini-stat span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cal-mini-stat.emerald-tint strong { color: var(--emerald); }
.cal-mini-stat.blue-tint-box strong { color: var(--blue); }
.cal-mini-stat.slate-tint strong { color: var(--text-secondary); }
.cal-mini-stat.red-tint strong { color: var(--red); }

/* Toolbar */
.cal-toolbar {
  padding: 8px 14px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cal-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cal-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cal-chip:hover, .cal-chip.active {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-text);
}
.cal-chip.emerald.active { background: var(--emerald-soft); border-color: var(--emerald); color: var(--emerald); }
.cal-chip.teal.active { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.cal-chip.indigo.active { background: var(--indigo-soft); border-color: var(--indigo); color: var(--indigo); }

.cal-quarter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cq-btn strong { color: var(--text-primary); }
.cq-btn:hover, .cq-btn.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-text);
}
.cq-btn.active strong { color: var(--blue-text); }

.cal-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-view-switch {
  display: inline-flex;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.cv-btn {
  padding: 5px 11px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cv-btn.active {
  background: var(--surface-solid);
  color: var(--blue-text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.cal-action-btn {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cal-action-btn:hover { border-color: var(--blue); color: var(--blue); }
.cal-action-btn.primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: transparent;
  color: #ffffff;
}
.cal-action-btn.primary:hover { filter: brightness(1.08); color: #ffffff; }

/* Main Split Workspace */
.cal-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.72fr 0.96fr;
  gap: 14px;
}

.cal-main-pane {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cal-view-panel {
  display: none;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.cal-view-panel.active {
  display: flex;
  flex-direction: column;
}

/* View 1: 12-Month Annual Grid */
.cal-annual-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(136px, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.cal-month-card {
  padding: 11px 13px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  min-height: 0;
  overflow: hidden;
}
.cal-month-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.cal-month-card.selected {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-hover);
}
.cal-month-card.dimmed {
  opacity: 0.42;
}

.cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.cm-name-wrap { display: flex; align-items: baseline; gap: 5px; }
.cm-name { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text-primary); }
.cm-year { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-weight: 600; }

.cm-prog-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-subtle);
  overflow: hidden;
}
.cm-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
}
.cm-fill.blue { background: var(--blue); }
.cm-fill.indigo { background: var(--indigo); }
.cm-fill.emerald { background: var(--emerald); }
.cm-fill.teal { background: var(--teal); }
.cm-pct { font-size: 11px; font-weight: 700; color: var(--text-secondary); min-width: 30px; text-align: right; }

.cm-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.cm-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 11px;
}
.cm-chip-txt {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  font-weight: 600;
}
.cm-chip-pillar {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.cm-chip-pillar.blue { color: var(--blue-text); }
.cm-chip-pillar.emerald { color: var(--emerald); }
.cm-chip-pillar.teal { color: var(--teal); }
.cm-chip-pillar.indigo { color: var(--indigo); }

.cm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cm-dot.emerald { background: var(--emerald); }
.cm-dot.blue { background: var(--blue); }
.cm-dot.slate { background: var(--text-muted); }
.cm-dot.red { background: var(--red); }

.cm-more {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue-text);
  font-weight: 700;
  padding-left: 2px;
}
.cm-empty {
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* View 2: Monthly Day-by-Day 2027 Calendar */
#cal-view-monthly {
  padding: 14px 16px;
  gap: 10px;
}

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cal-month-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cal-month-nav-left h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 155px;
  text-align: center;
}

.cal-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cal-icon-btn:hover { border-color: var(--blue); color: var(--blue); }

.cal-month-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.cms-btn {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.cms-btn:hover { border-color: var(--blue); color: var(--blue); }
.cms-btn.active { background: var(--blue); border-color: var(--blue); color: #ffffff; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.cal-days-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(64px, 1fr);
  gap: 6px;
  overflow-y: auto;
}

.cal-day-cell {
  padding: 6px 7px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.cal-day-cell.empty { background: transparent; border-color: transparent; }
.cal-day-cell.weekend { opacity: 0.72; }
.cal-day-cell.has-events { border-color: rgba(37, 99, 235, 0.35); background: var(--surface-solid); }

.day-num-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.day-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.day-add-btn {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.cal-day-cell:hover .day-add-btn { opacity: 1; }
.day-add-btn:hover { background: var(--blue-soft); color: var(--blue-text); }

.day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.day-event-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.day-event-pill span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-event-pill.blue { background: var(--blue-soft); color: var(--blue-text); }
.day-event-pill.emerald { background: var(--emerald-soft); color: var(--emerald); }
.day-event-pill.teal { background: var(--teal-soft); color: var(--teal); }
.day-event-pill.indigo { background: var(--indigo-soft); color: var(--indigo); }
.day-event-pill:hover { filter: brightness(0.95); }

/* View 3: 12-Month Gantt Progress Timeline */
#cal-view-gantt {
  padding: 12px 14px;
  overflow: hidden;
}

.cal-gantt-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gt-header {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.gt-months-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  text-align: center;
}
.gt-m-head {
  padding: 3px 0;
  border-radius: 6px;
  cursor: pointer;
}
.gt-m-head:hover { color: var(--blue); }
.gt-m-head.current { background: var(--blue-soft); color: var(--blue-text); }

.gt-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
  padding-right: 4px;
}
.gt-body::-webkit-scrollbar, .cal-task-list::-webkit-scrollbar, .cal-days-grid::-webkit-scrollbar { width: 6px; }
.gt-body::-webkit-scrollbar-thumb, .cal-task-list::-webkit-scrollbar-thumb, .cal-days-grid::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
}

.gt-row {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.16s ease;
}
.gt-row:hover { border-color: var(--blue); }

.gt-label-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gt-title-block { min-width: 0; }
.gt-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gt-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.gt-track-col {
  position: relative;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  overflow: hidden;
}
.gt-grid-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.gt-grid-lines span { border-right: 1px dashed var(--border); }
.gt-grid-lines span:last-child { border-right: none; }

.gt-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
}
.gt-bar.blue { background: var(--blue-soft); border: 1px solid rgba(37, 99, 235, 0.45); }
.gt-bar.emerald { background: var(--emerald-soft); border: 1px solid rgba(5, 150, 105, 0.45); }
.gt-bar.teal { background: var(--teal-soft); border: 1px solid rgba(13, 148, 136, 0.45); }
.gt-bar.indigo { background: var(--indigo-soft); border: 1px solid rgba(79, 70, 229, 0.45); }

.gt-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  opacity: 0.42;
}
.gt-bar.blue .gt-bar-fill { background: var(--blue); }
.gt-bar.emerald .gt-bar-fill { background: var(--emerald); }
.gt-bar.teal .gt-bar-fill { background: var(--teal); }
.gt-bar.indigo .gt-bar-fill { background: var(--indigo); }

.gt-bar-txt {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Right Inspector Panel */
.cal-inspector {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  height: 100%;
}

.cal-insp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cal-insp-head h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 3px;
}

.cal-insp-toggle {
  display: inline-flex;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}
.scope-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.scope-btn.active {
  background: var(--surface-solid);
  color: var(--blue-text);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.cal-insp-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-insp-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.cal-task-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-right: 4px;
}

.cal-task-card {
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-task-card.status-completed { border-left-color: var(--emerald); }
.cal-task-card.status-in_progress { border-left-color: var(--blue); }
.cal-task-card.status-planned { border-left-color: var(--text-muted); }
.cal-task-card.status-at_risk { border-left-color: var(--red); }

.ct-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ct-badges, .ct-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ct-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.ct-status-btn {
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.ct-status-btn:hover { transform: scale(1.04); filter: brightness(0.95); }

.ct-mini-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ct-mini-btn.edit:hover { border-color: var(--blue); color: var(--blue); }
.ct-mini-btn.del:hover { border-color: var(--red); color: var(--red); }

.ct-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.ct-owner {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ct-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.ct-slider {
  flex: 1;
  accent-color: var(--blue);
  cursor: pointer;
  height: 5px;
}
.ct-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 34px;
  text-align: right;
}

.cal-empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

/* Milestone Add/Edit Modal */
.milestone-dialog {
  position: relative;
  z-index: 2;
  width: min(580px, 94vw);
  padding: 24px 26px;
  background: var(--surface-solid);
}

.ms-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ms-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ms-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.ms-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ms-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.ms-field input[type="text"],
.ms-field input[type="date"],
.ms-field select,
.ms-field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
}
.ms-field input:focus,
.ms-field select:focus,
.ms-field textarea:focus {
  border-color: var(--blue);
  background: var(--surface-solid);
}
.ms-field input[type="range"] {
  accent-color: var(--blue);
  cursor: pointer;
}

.ms-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ==================== SLIDE 9: EXECUTIVE MASTER GANTT CHART ==================== */
.mg-slide-inner {
  gap: 11px;
}

.mg-head-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mg-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.mg-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mg-overall-pill {
  padding: 8px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mg-overall-pill strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.mg-toolbar {
  padding: 8px 14px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.mg-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 4px;
}

.mg-board-card {
  flex: 1;
  min-height: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mg-board {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mg-head-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 12px;
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.mg-head-left {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 4px;
}

.mg-head-right-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mg-quarters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mg-q-band {
  text-align: center;
  padding: 4px 8px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.mg-q-band.q1 { background: var(--blue-soft); color: var(--blue-text); }
.mg-q-band.q2 { background: var(--indigo-soft); color: var(--indigo); }
.mg-q-band.q3 { background: var(--emerald-soft); color: var(--emerald); }
.mg-q-band.q4 { background: var(--teal-soft); color: var(--teal); }

.mg-months-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.mg-m-cell {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.mg-rows-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  padding-right: 4px;
}
.mg-rows-scroll::-webkit-scrollbar { width: 6px; }
.mg-rows-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

.mg-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border-left: 4px solid var(--blue);
  margin-top: 4px;
}
.mg-group-row:first-child { margin-top: 0; }
.mg-group-row.blue { border-left-color: var(--blue); }
.mg-group-row.indigo { border-left-color: var(--indigo); }
.mg-group-row.emerald { border-left-color: var(--emerald); }
.mg-group-row.teal { border-left-color: var(--teal); }

.mg-group-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-primary);
}
.mg-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mg-group-dot.blue { background: var(--blue); }
.mg-group-dot.indigo { background: var(--indigo); }
.mg-group-dot.emerald { background: var(--emerald); }
.mg-group-dot.teal { background: var(--teal); }

.mg-group-cnt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.mg-group-right {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.mg-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 12px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.mg-row:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

.mg-task-col {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.mg-task-info {
  flex: 1;
  min-width: 0;
}
.mg-task-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg-task-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg-status-tag { flex-shrink: 0; }

.mg-timeline-col {
  position: relative;
  height: 28px;
  border-radius: 7px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mg-grid-cols {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.mg-grid-cols span { border-right: 1px dashed var(--border); }
.mg-grid-cols span:nth-child(3n) { border-right: 1px solid var(--border-strong); }
.mg-grid-cols span:last-child { border-right: none; }

.mg-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.mg-bar.blue { background: var(--blue-soft); border: 1px solid rgba(37, 99, 235, 0.45); }
.mg-bar.indigo { background: var(--indigo-soft); border: 1px solid rgba(79, 70, 229, 0.45); }
.mg-bar.emerald { background: var(--emerald-soft); border: 1px solid rgba(5, 150, 105, 0.45); }
.mg-bar.teal { background: var(--teal-soft); border: 1px solid rgba(13, 148, 136, 0.45); }

.mg-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  opacity: 0.48;
  transition: width 0.3s ease;
}
.mg-bar.blue .mg-bar-fill { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.mg-bar.indigo .mg-bar-fill { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.mg-bar.emerald .mg-bar-fill { background: linear-gradient(90deg, #059669, #34d399); }
.mg-bar.teal .mg-bar-fill { background: linear-gradient(90deg, #0d9488, #2dd4bf); }

.mg-bar-lbl {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-primary);
}

.mg-diamond {
  position: absolute;
  right: 3px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border-radius: 1px;
  background: currentColor;
  opacity: 0.5;
}
.mg-bar.blue .mg-diamond { color: var(--blue); }
.mg-bar.indigo .mg-diamond { color: var(--indigo); }
.mg-bar.emerald .mg-diamond { color: var(--emerald); }
.mg-bar.teal .mg-diamond { color: var(--teal); }

/* ==================== SLIDE 12: FORMAL MANAGEMENT SIGN-OFF PANEL ==================== */
.signoff-panel-pro {
  padding: 24px 30px;
  border-left: 5px solid var(--emerald);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signoff-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.signoff-top-row h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 4px 0 6px;
}
.signoff-top-row p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 960px;
}
.signoff-next-wrap { flex-shrink: 0; }

.signoff-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sig-slot {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sig-role {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sig-line {
  height: 22px;
  border-bottom: 1.5px dashed var(--border-strong);
  margin-bottom: 4px;
}
.sig-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.sig-dept {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== SLIDE 13: GRAND EXECUTIVE CLOSING PAGE ==================== */
.closing-stage {
  align-items: center;
  justify-content: center;
}

.closing-hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 36px 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  border-top: 4px solid var(--blue);
}

.closing-glow-ring {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(13, 148, 136, 0.08) 45%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}

.closing-badge-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.closing-emblem {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0d9488 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.closing-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.closing-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--text-primary);
  max-width: 980px;
}

.closing-subtitle {
  position: relative;
  z-index: 1;
  font-size: clamp(15.5px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 820px;
}
.closing-subtitle strong { color: var(--text-primary); }

.closing-pillars-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cp-pill {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.cp-pill.teal { border-top-color: var(--teal); }
.cp-pill.sky { border-top-color: #0284c7; }
.cp-pill.emerald { border-top-color: var(--emerald); }

.cp-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.cp-pill strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.closing-qa-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qa-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-text);
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.closing-footer-meta {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ==================== RESPONSIVE & PRINT (PDF EXPORT) ==================== */
@media (max-width: 1200px) {
  .slide { overflow-y: auto; align-items: flex-start; }
  .slide-inner { height: auto; }
  .hero-layout, .ims-layout, .ims-showcase-layout, .telemetry-layout, .cal-workspace { grid-template-columns: 1fr; }
  .ims-grid, .cards-4, .roadmap-grid, .closing-pillars-strip { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .cal-annual-grid, .signoff-signatures { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-head-wrap, .mg-row { grid-template-columns: 240px 1fr; }
}

@media (max-width: 760px) {
  .top-bar, .bottom-bar { padding: 0 12px; }
  .brand-sub, .section-name, .status-chip, .page-pills, .mg-hint { display: none; }
  .ims-grid, .ims-grid-compact, .cards-4, .roadmap-grid, .cards-2x2, .cards-3, .cost-flow, .arch-grid.two, .arch-grid.three, .arch-grid.four, .cal-annual-grid, .ms-row-2, .ms-row-3, .signoff-signatures, .closing-pillars-strip, .mg-head-wrap, .mg-row { grid-template-columns: 1fr; }
  .signoff-banner, .signoff-top-row, .closing-footer-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .closing-hero-card { padding: 24px 18px; }
}

@media print {
  @page { size: landscape; margin: 10mm; }
  html, body { height: auto; overflow: visible; background: #ffffff !important; }
  #bg-canvas, .top-bar, .bottom-bar, .overview-modal, .hero-cta-row, .signoff-actions, .signoff-next-wrap, .closing-actions, .cal-actions-row, .ct-tools { display: none !important; }
  .stage { position: static; overflow: visible; }
  .slide {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    page-break-after: always;
    break-after: page;
    padding: 8px 0;
    min-height: 92vh;
  }
  .slide:last-child { page-break-after: auto; }
  .kc-fill { width: var(--w) !important; }
}
