/* ==========================================================================
   THE SHIRAVERSE — UNIVERSAL PRACTICE ARENA COMPONENT
   Common component for Module 1 through Module 8 slide decks and notes.
   ========================================================================== */

/* Universal Custom Elegant Scrollbar (Sleek Dark Glow, Apple/Linear aesthetic) */
* {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(56, 189, 248, 0.35) rgba(10, 14, 23, 0.6) !important;
}

::-webkit-scrollbar {
  width: 7px !important;
  height: 7px !important;
}

::-webkit-scrollbar-track {
  background: rgba(10, 14, 23, 0.6) !important;
  border-radius: 99px !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.35), rgba(59, 130, 246, 0.5)) !important;
  border-radius: 99px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease !important;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.75), rgba(59, 130, 246, 0.9)) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
}

::-webkit-scrollbar-thumb:active {
  background: #38bdf8 !important;
}

::-webkit-scrollbar-corner {
  background: transparent !important;
}


/* 1. GATEWAY SCENE (Full-Bleed Presentation Slide) */
.scene.scene-gateway {
  padding: 0 !important;
  overflow: hidden !important;
  background: #020617 !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.arena-video-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: #020617;
  user-select: none;
}
.arena-canvas {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
}
.arena-video-el {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}
/* Volume Control Widget */
.arena-vol-ctrl {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  padding: 6px 14px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all .2s ease;
}
.arena-vol-ctrl:hover {
  background: rgba(22, 33, 56, 0.95);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.6);
}
.arena-sound-btn {
  background: transparent !important;
  border: none !important;
  color: #86efac;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform .15s ease, color .15s ease;
}
.arena-sound-btn:hover {
  transform: scale(1.15);
  color: #fff;
}
.arena-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 76px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
  transition: background .2s;
}
.arena-vol-slider:hover {
  background: rgba(255, 255, 255, 0.4);
}
.arena-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 8px #38bdf8;
  transition: transform .15s, background .15s;
}
.arena-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #60a5fa;
}
.arena-vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px #38bdf8;
}
.arena-vol-val {
  font: 700 11px 'JetBrains Mono', monospace;
  color: #94a3b8;
  min-width: 32px;
  text-align: right;
  user-select: none;
}
.arena-cta-hotspot-btn {
  position: absolute;
  bottom: 6.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 28.5%;
  height: 8.8%;
  border-radius: 99px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 10;
}
.arena-cta-hotspot-btn:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 2. PRACTICE HUB SCENE (Level Selector & Q&A Stage) */
.scene.scene-hub {
  padding: 55px 4vw 85px !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 50% 10%, rgba(30, 41, 59, 0.55) 0%, rgba(10, 14, 23, 0.98) 75%) !important;
}
.hub-shell {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hub-header {
  text-align: center;
  margin-bottom: 16px;
}
.hub-header h2 {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 800;
  margin-bottom: 4px;
}
.hub-header .hub-sub {
  color: var(--muted, #94a3b8);
  font-size: 13px;
}

/* 4 Portal Difficulty Cards */
.hub-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
}
.hub-portal-btn {
  background: rgba(26, 31, 46, 0.85);
  border: 2px solid var(--border, #2a3040);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text, #f1f5f9);
  font-family: inherit;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hub-portal-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}
.hub-portal-btn.active[data-lvl="1"] { border-color: var(--green, #22c55e); background: rgba(34, 197, 94, 0.12); box-shadow: 0 0 25px rgba(34, 197, 94, 0.35); color: #86efac; }
.hub-portal-btn.active[data-lvl="2"] { border-color: var(--accent2, #60a5fa); background: rgba(96, 165, 250, 0.12); box-shadow: 0 0 25px rgba(96, 165, 250, 0.35); color: #93c5fd; }
.hub-portal-btn.active[data-lvl="3"] { border-color: var(--orange, #f59e0b); background: rgba(245, 158, 11, 0.12); box-shadow: 0 0 25px rgba(245, 158, 11, 0.35); color: #fde68a; }
.hub-portal-btn.active[data-lvl="4"] { border-color: var(--pink, #ec4899); background: rgba(236, 72, 153, 0.12); box-shadow: 0 0 25px rgba(236, 72, 153, 0.4); color: #fbcfe8; }

.hub-portal-btn .p-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.hub-portal-btn .p-name { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.hub-portal-btn .p-tag { font-size: 11px; opacity: 0.7; margin-top: 2px; }

/* Challenge Box */
.hub-challenge-box {
  width: 100%;
  background: rgba(26, 31, 46, 0.92);
  border: 1px solid var(--border, #2a3040);
  border-radius: 18px;
  padding: clamp(16px, 2.4vw, 28px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.hub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hub-lvl-badge {
  font: 700 11px 'JetBrains Mono', monospace;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.hub-qtitle {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}
.hub-qdesc {
  color: #cbd5e1;
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.6;
  margin-bottom: 14px;
}
.hub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-reveal-ans {
  background: var(--accent, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font: 700 13px Inter, sans-serif;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-reveal-ans:hover {
  background: var(--accent2, #60a5fa);
}
.btn-reveal-ans.active {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hub-step-btns { display: flex; gap: 8px; }
.btn-hub-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, #2a3040);
  color: var(--muted, #94a3b8);
  border-radius: 8px;
  padding: 8px 12px;
  font: 600 12px Inter, sans-serif;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-hub-step:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hub-ansbox {
  display: none;
  margin-top: 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: clamp(12.5px, 1.2vw, 14.5px);
  line-height: 1.65;
  color: #f1f5f9;
  animation: fadeIn .2s ease-out;
}
.hub-ansbox.show { display: block; }
.hub-ansbox .antitle {
  color: var(--green, #22c55e);
  font: 700 11px 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

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

/* Mobile responsive adjustments */
@media (max-width: 680px) {
  .hub-portal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hub-portal-btn { padding: 10px 6px; }
  .scene.scene-hub { padding: 45px 3vw 75px !important; }
}

/* 3. READER MODE (.read) STYLES */
.read .scene.scene-gateway {
  position: static !important;
  height: auto !important;
  padding: 24px 0 !important;
  background: transparent !important;
  display: block !important;
  border-bottom: 1px solid var(--border, #2a3040);
}
.read .arena-video-wrap {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border, #2a3040);
}
.read .scene.scene-hub {
  position: static !important;
  padding: 34px 0 !important;
  background: transparent !important;
  overflow: visible !important;
  display: block !important;
}
.read .hub-reader-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 18px;
}
.read .hub-interactive-view { display: none; }
.read .scene.practicescene {
  position: static !important;
  height: auto !important;
  padding: 34px 0 !important;
  background: transparent !important;
  overflow: visible !important;
  border-bottom: 1px solid var(--border, #2a3040) !important;
}
.read .practice-split-wrap {
  height: auto !important;
  min-height: 0 !important;
}
.read .practice-main-panel {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* 4. OVERRIDES FOR PRACTICESCENE (Split 2-Column Dashboard Layout) */
.scene.practicescene {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 64px 4vw 48px !important;
  box-sizing: border-box !important;
  background: radial-gradient(ellipse 1000px 600px at 50% -10%, #3d2405, transparent 75%), var(--bg) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 2-Column Split Container */
.practice-split-wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  width: min(1240px, 94vw);
  max-width: 1240px;
  align-items: stretch;
  height: calc(100vh - 128px);
  min-height: 480px;
  box-sizing: border-box;
}

/* Left Column: Practice Badge + Vertical Gate Cards */
.practice-left-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
  width: 230px;
  justify-content: flex-start;
}
.practice-left-col .pbanner {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font: 900 13px 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a0f00;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 0 0 3px #f59e0b22, 0 6px 20px -4px #f59e0b55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.practice-left-col .pbanner .pic {
  font-size: 18px;
  line-height: 1;
}

.gategrid-vert {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.hs.gate-vert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--card), #12161f);
  border: 2px solid var(--gc);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: transform .2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .2s ease, border-color .2s ease;
  width: 100%;
  box-sizing: border-box;
}
.hs.gate-vert:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 18px -2px var(--gc);
}
.hs.gate-vert.on {
  transform: translateX(6px);
  box-shadow: 0 0 24px -4px var(--gc), 0 0 0 2px var(--gc);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}
.hs.gate-vert .gv-icon {
  font-size: 24px;
  line-height: 1;
  flex: none;
  filter: drop-shadow(0 0 8px var(--gc));
}
.hs.gate-vert .gv-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.hs.gate-vert .gv-info em {
  font: 900 14px 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gc);
  font-style: normal;
}
.hs.gate-vert .gv-info small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.hs.gate-vert.seen::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--gc);
  font-weight: 900;
  font-size: 12px;
}

/* Right Column: Question + Answer Main Stage */
.practice-right-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0 !important;
  height: 100%;
  overflow: hidden;
}
.practice-main-panel {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 24px 28px !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  box-sizing: border-box !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
  text-align: left !important;
  scrollbar-width: thin !important;
  scrollbar-color: #3b82f6 rgba(15, 23, 42, 0.7) !important;
}
.practice-main-panel::-webkit-scrollbar {
  width: 8px !important;
}
.practice-main-panel::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.7) !important;
  border-radius: 99px !important;
}
.practice-main-panel::-webkit-scrollbar-thumb {
  background: #3b82f6 !important;
  border-radius: 99px !important;
}
.practice-main-panel::-webkit-scrollbar-thumb:hover {
  background: #60a5fa !important;
}
.practice-main-panel .pt {
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
  color: #fff !important;
}
.practice-main-panel .pd {
  font-size: clamp(14px, 1.3vw, 15.5px) !important;
  line-height: 1.6 !important;
  color: #cbd5e1 !important;
}
.practice-main-panel .chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 12px 0 16px !important;
}
.practice-main-panel .chip {
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 7px 14px !important;
  font-size: 13px !important;
}
.practice-main-panel .flow {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 14px 0 18px !important;
  justify-content: flex-start !important;
}
.practice-main-panel .flow .node {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  text-align: center !important;
  min-width: 120px !important;
}
.practice-main-panel .flow .arrow {
  font-size: 20px !important;
  color: var(--accent2, #60a5fa) !important;
}
.practice-main-panel .monobox {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #070a12 !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  margin: 12px 0 !important;
  font-size: 12px !important;
  overflow-x: auto !important;
  white-space: pre !important;
}
.practice-main-panel .stats {
  margin-top: 14px !important;
  gap: 12px !important;
}
.practice-main-panel .stat {
  padding: 12px 14px !important;
}
.practice-main-panel .stat .n {
  font-size: clamp(22px, 2.5vw, 32px) !important;
}
.practice-main-panel ul {
  margin-top: 14px !important;
  line-height: 1.65 !important;
}
.practice-main-panel li {
  margin-bottom: 8px !important;
  font-size: clamp(13.5px, 1.3vw, 15px) !important;
}
.practice-main-panel .revealbtn {
  margin-top: 18px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border: 1px solid #60a5fa !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 11px 24px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  display: inline-block !important;
  align-self: flex-start !important;
}
.practice-main-panel .revealbtn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
}
.practice-main-panel .answerbox {
  margin-top: 18px !important;
  margin-bottom: 12px !important;
  padding: 18px 22px !important;
  border-radius: 14px !important;
  line-height: 1.65 !important;
  font-size: clamp(13.5px, 1.3vw, 15px) !important;
  border-left: 4px solid var(--green, #22c55e) !important;
  background: rgba(34, 197, 94, 0.08) !important;
}

/* Mobile responsive fallback */
@media (max-width: 820px) {
  .practice-split-wrap {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gategrid-vert {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .scene.practicescene {
    overflow-y: auto !important;
    height: auto !important;
    padding: 60px 4vw 80px !important;
  }
}

/* ==========================================================================
   5. AGENDA TEMPLATE (.scene-agenda) — Modular, No Time Durations
   ========================================================================== */
.scene.scene-agenda {
  justify-content: flex-start !important;
  padding: 64px 4vw 48px !important;
  overflow-y: auto !important;
}
.agenda-deck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1200px, 94vw);
  margin-top: 24px;
  align-items: stretch;
}
.agenda-card {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.agenda-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.agenda-card .ag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.agenda-card .ag-num {
  font: 900 13px 'JetBrains Mono', monospace;
  color: var(--accent2, #60a5fa);
  background: rgba(59, 130, 246, 0.15);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}
.agenda-card .ag-icon {
  font-size: 26px;
  line-height: 1;
}
.agenda-card .ag-title {
  font-size: clamp(16px, 1.3vw, 18.5px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.agenda-card .ag-desc {
  font-size: 13px;
  color: var(--muted, #94a3b8);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}
.agenda-card .ag-checkpoint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fbbf24;
}
.agenda-card .ag-checkpoint .ag-cp-icon {
  font-size: 14px;
}
.agenda-card.compact {
  padding: 14px 14px;
}
.agenda-card.compact .ag-title {
  font-size: 15px;
  margin-bottom: 6px;
}
.agenda-card.compact .ag-desc {
  font-size: 12px;
  margin-bottom: 10px;
}

/* Checkpoint Variations (Zero time references) */
.ag-checkpoint.cp-arena {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.ag-checkpoint.cp-demo {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}
.ag-checkpoint.cp-interview {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.ag-checkpoint.cp-concept {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

/* Dynamic Grid Column Modes */
.agenda-deck-grid.ag-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.agenda-deck-grid.ag-cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* 3-Phase Sequential Roadmap (Ideal for 7 to 9 topics) */
.agenda-phases-roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1240px, 94vw);
  margin-top: 24px;
  align-items: stretch;
}
.agenda-phase-col {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}
.agenda-phase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.agenda-phase-tag {
  font: 900 10.5px 'JetBrains Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.agenda-phase-col:nth-child(1) .agenda-phase-tag { color: #60a5fa; }
.agenda-phase-col:nth-child(2) .agenda-phase-tag { color: #34d399; }
.agenda-phase-col:nth-child(3) .agenda-phase-tag { color: #fbbf24; }
.agenda-phase-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}
.agenda-topic-row {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .15s ease, border-color .15s ease;
  text-align: left;
}
.agenda-topic-row:hover {
  transform: translateX(3px);
  border-color: rgba(96, 165, 250, 0.35);
}
.agenda-topic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.agenda-topic-num {
  font: 900 10.5px 'JetBrains Mono', monospace;
  color: var(--accent2, #60a5fa);
  background: rgba(59, 130, 246, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}
.agenda-topic-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  flex: 1;
}
.agenda-topic-badge {
  font: 800 10px 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.agenda-topic-badge.arena { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.agenda-topic-badge.demo { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.agenda-topic-badge.interview { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.agenda-topic-desc {
  font-size: 11.5px;
  color: var(--muted, #94a3b8);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .agenda-deck-grid,
  .agenda-deck-grid.ag-cols-4,
  .agenda-deck-grid.ag-cols-3,
  .agenda-phases-roadmap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .agenda-deck-grid,
  .agenda-deck-grid.ag-cols-4,
  .agenda-deck-grid.ag-cols-3,
  .agenda-phases-roadmap { grid-template-columns: 1fr; }
}

/* ==========================================================================
   6. INTERVIEW STUDIO TEMPLATE (.scene-interview) — Out-Loud Trainer
   ========================================================================== */
.scene.scene-interview {
  justify-content: flex-start !important;
  padding: 64px 4vw 48px !important;
  overflow-y: auto !important;
  background: radial-gradient(ellipse 1000px 600px at 50% -10%, #042f2e, transparent 75%), var(--bg) !important;
}
.scene.scene-story {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  justify-content: safe center !important;
  align-items: center !important;
  padding: 74px 3.5vw 48px !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  background: radial-gradient(ellipse 1600px 900px at 50% -10%, #1e1b4b 0%, #060913 80%) !important;
}
.interview-split-wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  width: min(1560px, 94vw);
  max-width: 1560px;
  height: auto;
  align-items: start;
  box-sizing: border-box;
}
.interview-left-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
  max-height: calc(100vh - 128px);
  overflow: hidden;
}
.interview-left-col .ibanner {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font: 900 12px 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #042f2e;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.interview-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #059669 rgba(15, 23, 42, 0.7);
}
.interview-nav-btn {
  background: linear-gradient(180deg, var(--card, #1a1f2e), #111827);
  border: 1px solid var(--border, #2a3040);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text, #f1f5f9);
  text-align: left;
  font-family: inherit;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.interview-nav-btn:hover {
  border-color: #10b981;
  transform: translateX(3px);
}
.interview-nav-btn.on {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.5), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 16px -4px rgba(16, 185, 129, 0.4);
}
.in-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.in-qnum {
  font: 900 11px 'JetBrains Mono', monospace;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 7px;
  border-radius: 6px;
  flex: none;
}
.interview-nav-btn.on .in-qnum {
  background: #10b981;
  color: #042f2e;
  border-color: #10b981;
}
.in-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.interview-nav-btn.seen::after {
  content: '✓';
  color: #10b981;
  font-weight: 900;
  font-size: 12px;
  flex: none;
}

.interview-right-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0 !important;
  height: auto;
  align-self: start;
}
.interview-main-panel {
  background: var(--card, #1a1f2e) !important;
  border: 1px solid var(--border, #2a3040) !important;
  border-radius: 18px !important;
  padding: 26px 30px !important;
  height: auto !important;
  max-height: calc(100vh - 140px) !important;
  min-height: auto !important;
  overflow-y: auto !important;
  display: block !important;
  box-sizing: border-box !important;
  text-align: left !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
  scrollbar-width: thin !important;
  scrollbar-color: #10b981 rgba(15, 23, 42, 0.7) !important;
}
.interview-main-panel .iq-company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 11px 'JetBrains Mono', monospace;
  color: #34d399;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.interview-main-panel .iq-question {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 20px;
}
.interview-main-panel .iq-revealbtn {
  background: linear-gradient(135deg, #059669, #047857) !important;
  border: 1px solid #34d399 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 11px 24px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.interview-main-panel .iq-revealbtn:hover {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px);
}
.interview-main-panel .iq-answerbox {
  display: none;
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 14px;
  line-height: 1.7;
  font-size: 14.5px;
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #f1f5f9;
}
.interview-main-panel .iq-answerbox.show {
  display: block;
  animation: iflash .4s ease;
}
@keyframes iflash {
  from { opacity: .4; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   7. KEY TAKEAWAYS BENTO GRID (.scene-takeaways)
   ========================================================================== */
.scene.scene-takeaways {
  justify-content: flex-start !important;
  padding: 64px 4vw 48px !important;
  overflow-y: auto !important;
}
.takeaways-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(1200px, 94vw);
  margin-top: 20px;
  align-items: stretch;
}
.tb-tile {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.tb-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.4);
}
.tb-tile .tb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tb-tile .tb-num {
  font: 900 11px 'JetBrains Mono', monospace;
  color: var(--accent2, #60a5fa);
  background: rgba(59, 130, 246, 0.15);
  padding: 2px 7px;
  border-radius: 99px;
}
.tb-tile .tb-icon {
  font-size: 20px;
}
.tb-tile .tb-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.tb-tile .tb-desc {
  font-size: 12.5px;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
  flex: 1;
}
.tb-tile.tb-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border-color: rgba(96, 165, 250, 0.4);
}
.tb-tile.tb-wide .tb-title {
  color: #60a5fa;
  font-size: 16px;
}

@media (max-width: 820px) {
  .takeaways-bento-grid {
    grid-template-columns: 1fr;
  }
  .interview-split-wrap {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* ==========================================================================
   8. INTERVIEW FAQ ACCORDION STYLE (.interview-faq-wrap)
   ========================================================================== */
.interview-faq-wrap {
  width: min(1040px, 94vw);
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #10b981 rgba(15, 23, 42, 0.7);
}
.ifaq-item {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ifaq-item:hover {
  border-color: rgba(96, 165, 250, 0.4);
}
.ifaq-item.open {
  border-color: #10b981;
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.2);
}
.ifaq-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 12px;
  background: linear-gradient(180deg, var(--card, #1a1f2e), #131926);
}
.ifaq-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.ifaq-num {
  font: 900 11px 'JetBrains Mono', monospace;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  flex: none;
}
.ifaq-company {
  font: 800 10.5px 'JetBrains Mono', monospace;
  color: var(--accent2, #60a5fa);
  background: rgba(59, 130, 246, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  flex: none;
}
.ifaq-title {
  font-size: clamp(13.5px, 1.3vw, 15.5px);
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ifaq-chevron {
  font-size: 13px;
  color: var(--muted, #94a3b8);
  transition: transform .2s ease;
  flex: none;
}
.ifaq-item.open .ifaq-chevron {
  transform: rotate(180deg);
  color: #34d399;
}
.ifaq-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ifaq-item.open .ifaq-body {
  display: block;
}
.ifaq-talking {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(52, 211, 153, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
}
.ifaq-talking-title {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #34d399;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.ifaq-talking ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}
.ifaq-answer {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid #10b981;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #f8fafc;
  line-height: 1.6;
}

/* ==========================================================================
   9. CREATIVE KEY TAKEAWAYS — Infographic Bento & 3 Architectural Pillars
   ========================================================================== */
.takeaways-infographic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1240px, 94vw);
  margin-top: 24px;
  align-items: stretch;
}
.tig-tile {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  text-align: left;
}
.tig-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.tig-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tig-num {
  font: 900 11px 'JetBrains Mono', monospace;
  color: var(--accent2, #60a5fa);
  background: rgba(59, 130, 246, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}
.tig-tag {
  font: 800 10px 'JetBrains Mono', monospace;
  color: var(--muted, #94a3b8);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tig-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.tig-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 12px;
}
.tig-visual {
  margin-top: auto;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

/* Micro-Visual 1: Transformation Flow */
.tib-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
}
.tib-flow-node {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
  flex: 1;
}
.tib-flow-node.highlight {
  background: rgba(51, 103, 145, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.tib-flow-node .lbl {
  font: 800 9px 'JetBrains Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.tib-flow-node .val {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.tib-flow-node img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.tib-flow-arr {
  color: var(--accent2);
  font-weight: 900;
  font-size: 13px;
}

/* Micro-Visual 2: SQL vs NoSQL 80/20 */
.tib-split-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tib-split-col {
  padding: 8px 10px;
  border-radius: 8px;
}
.tib-split-col.sql {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.tib-split-col.nosql {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.tib-split-col .tag {
  font: 800 10.5px 'JetBrains Mono', monospace;
  display: block;
  margin-bottom: 3px;
}
.tib-split-col.sql .tag { color: #34d399; }
.tib-split-col.nosql .tag { color: #fbbf24; }
.tib-split-col .point {
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.35;
}

/* Micro-Visual 3: Relational Keys */
.tib-rel-keys {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}
.tib-key-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  flex: 1;
}
.tib-key-badge {
  font: 900 10px 'JetBrains Mono', monospace;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2px;
}
.tib-key-badge.pk { background: rgba(59, 130, 246, 0.25); color: #60a5fa; }
.tib-key-badge.fk { background: rgba(168, 85, 247, 0.25); color: #c084fc; }
.tib-key-card .fld { font: 700 11.5px 'JetBrains Mono', monospace; color: #fff; }
.tib-key-arrow {
  color: var(--accent2);
  font-size: 14px;
  font-weight: 900;
}

/* Micro-Visual 4: Hierarchy Chain */
.tib-hierarchy-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font: 800 10.5px 'JetBrains Mono', monospace;
}
.tib-hier-step {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.tib-hier-step.active {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.tib-hier-sep {
  color: var(--muted);
  font-size: 10px;
}

/* Micro-Visual 5: 5 Families */
.tib-families-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tib-fam-chip {
  font: 800 10px 'JetBrains Mono', monospace;
  padding: 3px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tib-fam-chip.ddl { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.tib-fam-chip.dml { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tib-fam-chip.dql { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); font-weight: 900; }
.tib-fam-chip.dcl { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.tib-fam-chip.tcl { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }

/* Micro-Visual 6: Declarative Pipeline */
.tib-pipeline-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.tib-pipe-node {
  font: 800 10px 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 6px;
  border-radius: 5px;
  color: #fff;
  text-align: center;
  flex: 1;
}
.tib-pipe-node.focus {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

/* Micro-Visual 7: Hero Career Strip with Real Brand Logos */
.tig-tile.tig-hero-career {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.98));
  border-color: rgba(59, 130, 246, 0.4);
}
.tib-career-ecosystem {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tib-ecosystem-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.tib-ecosystem-item.anchor {
  background: rgba(51, 103, 145, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}
.tib-ecosystem-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.tib-ecosystem-item .info .name {
  font: 800 12.5px 'Inter', sans-serif;
  color: #fff;
  display: block;
}
.tib-ecosystem-item .info .role {
  font: 700 10px 'JetBrains Mono', monospace;
  color: var(--muted);
}
.tib-ecosystem-arrow {
  color: var(--accent2);
  font-size: 16px;
  font-weight: 900;
}

/* Alternative: 3 Architectural Pillars Layout */
.takeaways-pillars-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1240px, 94vw);
  margin-top: 24px;
  align-items: stretch;
}
.pillar-card {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}
.pillar-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
}
.pillar-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pillar-icon-badge {
  font-size: 26px;
  margin-bottom: 8px;
  display: inline-block;
}
.pillar-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.pillar-subtitle {
  font: 800 11px 'JetBrains Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}
.pillar-card:nth-child(1) .pillar-subtitle { color: #60a5fa; }
.pillar-card:nth-child(2) .pillar-subtitle { color: #34d399; }
.pillar-card:nth-child(3) .pillar-subtitle { color: #fbbf24; }

.pillar-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}
.pillar-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pillar-item-desc {
  font-size: 12px;
  color: var(--muted, #94a3b8);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .takeaways-infographic-grid,
  .takeaways-pillars-wrap {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   10. ADDITIONAL COMPONENTS — Common Mistakes, Story, Pro Tip, Syntax Ref, Before/After
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared SQL syntax-highlight token colours (used across all code blocks)
   -------------------------------------------------------------------------- */
.sk  { color: #60a5fa; font-weight: 700; }   /* keyword: SELECT, FROM, WHERE … */
.sc  { color: #94a3b8; font-style: italic; } /* clause / modifier: AS, DESC, MONTH FROM */
.st  { color: #34d399; }                     /* type: TEXT, SERIAL */
.sf  { color: #a78bfa; }                     /* function: EXTRACT, SUM, COUNT */
.sw  { color: #f87171; }                     /* wrong / error line */

/* --------------------------------------------------------------------------
   10A. COMMON MISTAKES BOX
   -------------------------------------------------------------------------- */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: min(1240px, 96vw);
  margin: 0 auto;
}
.cm-card {
  background: #1a1f2e;
  border: 1px solid #2a3040;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
}
.cm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border-bottom: 2px solid #ef4444;
}
.cm-icon { font-size: 20px; line-height: 1; }
.cm-label {
  font: 900 10px 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fca5a5;
}
.cm-title {
  font: 800 14px 'Inter', sans-serif;
  color: #fff;
  margin-left: auto;
  text-align: right;
}
.cm-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.cm-block {
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cm-block.wrong {
  background: rgba(127, 29, 29, 0.35);
  border-left: 3px solid #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left: 3px solid #ef4444;
}
.cm-block.right {
  background: rgba(6, 78, 59, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-left: 3px solid #10b981;
}
.cm-block-label {
  font: 800 11.5px 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cm-block.wrong .cm-block-label { color: #fca5a5; }
.cm-block.right  .cm-block-label { color: #6ee7b7; }
.cm-x     { color: #ef4444; }
.cm-check { color: #10b981; }
.cm-code {
  background: #0d1117;
  border-radius: 7px;
  padding: 9px 12px;
  font: 600 12.5px 'JetBrains Mono', monospace;
  color: #e2e8f0;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}
.cm-block.wrong .cm-code { color: #fca5a5; }
.cm-block.right  .cm-code { color: #6ee7b7; }
.cm-block-note {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}
.cm-block-note code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(255,255,255,0.08);
  padding: 1px 4px;
  border-radius: 3px;
}
.cm-why {
  background: rgba(15, 23, 42, 0.7);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.cm-why-label {
  font: 800 10.5px 'JetBrains Mono', monospace;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 820px) {
  .cm-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10B. STORY / REAL-WORLD CONNECTION (FULL-WIDTH CINEMATIC STUDIO)
   -------------------------------------------------------------------------- */
.story-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.story-toggle-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 99px;
  font: 700 12.5px 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
}
.story-toggle-btn:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.4);
}
.story-toggle-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}
.story-toggle-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.story-card {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 20px;
  overflow: hidden;
  width: min(1680px, 96vw);
  max-width: 1680px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 36px;
  background: linear-gradient(135deg, #1e1b4b, #312e81, #1e293b);
  border-bottom: 2px solid rgba(129, 140, 248, 0.4);
  flex-wrap: wrap;
}
.story-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.story-icon { font-size: 28px; }
.story-label {
  font: 900 12px 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}
.story-title {
  font: 800 22px 'Inter', sans-serif;
  color: #fff;
}
.story-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.story-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 10px;
  font: 700 14px 'Inter', sans-serif;
  color: #f1f5f9;
}
.story-brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.story-time-badge {
  font: 800 12px 'JetBrains Mono', monospace;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
}
.story-body {
  padding: 30px 36px;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 36px;
  align-items: stretch;
}
.story-narrative-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}
.story-para {
  font-size: 15.5px;
  color: #cbd5e1;
  line-height: 1.75;
  margin: 0;
}
.story-para em {
  color: #a5b4fc;
  font-style: italic;
  font-weight: 600;
}
.story-context-quote {
  background: rgba(15, 23, 42, 0.65);
  border-left: 4px solid #818cf8;
  border-radius: 0 12px 12px 0;
  padding: 16px 22px;
  font-size: 16px;
  color: #e2e8f0;
  line-height: 1.7;
}
.story-tool-showdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}
.story-tool-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-tool-box.fail {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.07);
}
.story-tool-box.success {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.07);
}
.story-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.story-tool-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-tool-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.story-tool-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.story-tool-status {
  font: 900 11px 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}
.story-tool-box.fail .story-tool-status {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.story-tool-box.success .story-tool-status {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.story-tool-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
}

.story-terminal-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-code-wrap {
  background: #0d1117;
  border: 1px solid #2a3040;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.story-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}
.story-dots {
  display: flex;
  gap: 7px;
}
.story-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.story-dot.red { background: #ff5f56; }
.story-dot.yellow { background: #ffbd2e; }
.story-dot.green { background: #27c93f; }
.story-code-tab {
  font: 700 12.5px 'JetBrains Mono', monospace;
  color: #8b949e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-code-tab img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.story-code-time {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 5px;
}
.story-code {
  padding: 18px 24px;
  font: 600 14px 'JetBrains Mono', monospace;
  color: #e2e8f0;
  line-height: 1.75;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  flex: 1;
}
.story-perf-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  font: 700 13px 'JetBrains Mono', monospace;
  color: #34d399;
}
.story-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.story-stat-tile {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
}
.story-stat-num {
  font: 900 24px 'Inter', sans-serif;
  color: #fff;
  display: block;
}
.story-stat-lbl {
  font: 700 11.5px 'JetBrains Mono', monospace;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: block;
}
.story-moral {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 36px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(59, 130, 246, 0.1));
  border-top: 1px solid rgba(129, 140, 248, 0.3);
  font-size: 15.5px;
  color: #c7d2fe;
  line-height: 1.7;
}
.story-moral-icon { font-size: 26px; flex: none; margin-top: 2px; }
.story-moral strong { color: #a5b4fc; }

@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   10C. PRO TIP + WATCH OUT
   -------------------------------------------------------------------------- */
.pt-toggle-bar {
  display: inline-flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #2a3040;
  padding: 4px;
  border-radius: 10px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}
.pt-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font: 700 12px 'Inter', sans-serif;
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s ease;
}
.pt-toggle-btn:hover { color: #fff; }
.pt-toggle-btn.active {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}
.pt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: min(1100px, 96vw);
  margin: 0 auto;
}
.pt-layout.pt-single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}
.pt-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
}
.pt-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
}
.pt-card-header.tip {
  background: linear-gradient(135deg, #451a03, #78350f);
  border-bottom: 2px solid #f59e0b;
}
.pt-card-header.warn {
  background: linear-gradient(135deg, #431407, #7c2d12);
  border-bottom: 2px solid #f97316;
}
.pt-card-icon { font-size: 26px; }
.pt-card-label {
  font: 900 11px 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pt-card-header.tip  .pt-card-label { color: #fde68a; }
.pt-card-header.warn .pt-card-label { color: #fed7aa; }
.pt-card-subtitle {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 2px;
}
.pt-card-header.tip  .pt-card-subtitle { color: #d97706; }
.pt-card-header.warn .pt-card-subtitle { color: #ea580c; }
.pt-card-body {
  background: #1a1f2e;
  border: 1px solid #2a3040;
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pt-tip-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}
.pt-tip-title code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  padding: 1px 5px;
  border-radius: 4px;
  color: #fde68a;
}
.pt-tip-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}
.pt-tip-desc code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  padding: 1px 4px;
  border-radius: 3px;
  color: #e2e8f0;
}
.pt-code {
  background: #0d1117;
  border-radius: 9px;
  padding: 12px 14px;
  font: 600 12.5px 'JetBrains Mono', monospace;
  color: #e2e8f0;
  white-space: pre;
  overflow-x: auto;
  margin: 2px 0;
  border: 1px solid #1e2535;
}
.pt-benefit {
  font: 700 12px 'Inter', sans-serif;
  color: #34d399;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  margin-top: auto;
}
.pt-danger {
  font: 700 12px 'Inter', sans-serif;
  color: #fbbf24;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  margin-top: auto;
}
@media (max-width: 820px) {
  .pt-layout { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10D. SYNTAX REFERENCE CARD (Terminal / IDE aesthetic)
   -------------------------------------------------------------------------- */
.sref-terminal {
  width: min(1560px, 96vw);
  max-width: 1560px;
  margin: 0 auto;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,0.65);
}
.sref-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.sref-dots { display: flex; gap: 6px; }
.sref-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.sref-dot.red    { background: #ff5f57; }
.sref-dot.yellow { background: #febc2e; }
.sref-dot.green  { background: #28c840; }
.sref-filename {
  font: 600 12.5px 'JetBrains Mono', monospace;
  color: #8b949e;
  flex: 1;
  text-align: center;
}
.sref-badge {
  font: 800 10px 'JetBrains Mono', monospace;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sref-body {
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sref-block {
  border-radius: 10px;
  border: 1px solid #21262d;
  overflow: hidden;
}
.sref-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}
.sref-block-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}
.sref-copy-btn {
  font-size: 10px !important;
  padding: 2px 7px !important;
}
.sref-block-tag {
  font: 900 9px 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.sref-block-tag.ddl { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.sref-block-tag.dql { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.sref-block-tag.dml { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.sref-block-tag.arch { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }
.sref-block-tag.rule { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.35); }
.sref-block-tag.pipe { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.sref-block-tag.tip { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.sref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
@media (max-width: 1200px) {
  .sref-grid {
    grid-template-columns: 1fr;
  }
}

/* Master 6-Block Reference Grid (No 1/2, Zero Scrollbars) */
.sref-master-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
@media (max-width: 1200px) {
  .sref-master-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .sref-master-grid {
    grid-template-columns: 1fr;
  }
}
.sref-code-clean {
  padding: 8px 12px;
  font: 500 11px/1.42 'JetBrains Mono', monospace;
  color: #c9d1d9;
  background: #090d16;
  margin: 0;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow: visible !important;
}

/* Engine vs Language Studio */
.engine-language-studio {
  width: 100%;
  max-width: 1560px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.els-showdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.els-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}
.els-card.sql {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%);
}
.els-card.engine {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%);
}
.els-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}
.els-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.els-card-icon {
  font-size: 26px;
  line-height: 1;
}
.els-card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.els-card-title {
  font: 800 20px 'Inter', sans-serif;
  color: #fff;
}
.els-card-tag {
  font: 800 11px 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.els-card.sql .els-card-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.els-card.engine .els-card-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.els-points-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.els-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.55;
}
.els-point strong {
  color: #fff;
}
.els-point-bullet {
  color: #38bdf8;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.3;
}
.els-card.engine .els-point-bullet {
  color: #fbbf24;
}
.els-analogy-box {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  border-left: 4px solid #38bdf8;
}
.els-card.engine .els-analogy-box {
  border-left-color: #fbbf24;
}
.els-analogy-label {
  font: 800 11px 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.els-card.sql .els-analogy-label { color: #38bdf8; }
.els-card.engine .els-analogy-label { color: #fbbf24; }
.els-analogy-text {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.55;
}
.els-ecosystem-strip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.els-ecosystem-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 12.5px 'JetBrains Mono', monospace;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.els-engines-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.els-engine-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font: 700 12.5px 'Inter', sans-serif;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.els-engine-chip.highlight {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.els-engine-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.sref-block-title {
  font: 700 12.5px 'Inter', sans-serif;
  color: #f1f5f9;
  flex: 1;
}
.sref-copy-btn {
  background: transparent;
  border: 1px solid #30363d;
  color: #8b949e;
  font: 700 11px 'Inter', sans-serif;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
.sref-copy-btn:hover { color: #fff; border-color: #60a5fa; }
.sref-copy-btn.copied { color: #34d399; border-color: #34d399; }
.sref-code {
  padding: 16px 20px;
  font: 500 13px 'JetBrains Mono', monospace;
  color: #c9d1d9;
  line-height: 1.75;
  margin: 0;
  background: #0d1117;
  overflow-x: auto;
  white-space: pre;
}

/* --------------------------------------------------------------------------
   10E. BEFORE / AFTER CONTRAST
   -------------------------------------------------------------------------- */
.ba-arrow-title {
  color: #60a5fa;
  font-weight: 900;
  display: inline-block;
  animation: baArrowPulse 1.8s ease-in-out infinite;
}
@keyframes baArrowPulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50%       { transform: translateX(5px); opacity: 0.7; }
}

.ba-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  width: min(1200px, 96vw);
  margin: 0 auto;
  align-items: stretch;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 44px rgba(0,0,0,0.55);
  border: 1px solid #2a3040;
}
.ba-pane {
  display: flex;
  flex-direction: column;
}
.ba-pane.before { background: linear-gradient(160deg, #1c0a0a, #1a1215); }
.ba-pane.after  { background: linear-gradient(160deg, #0a1c14, #0f1a1a); }

.ba-pane-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
}
.ba-pane-header.before {
  background: rgba(239, 68, 68, 0.15);
  border-bottom: 2px solid rgba(239, 68, 68, 0.5);
}
.ba-pane-header.after {
  background: rgba(16, 185, 129, 0.15);
  border-bottom: 2px solid rgba(16, 185, 129, 0.5);
}
.ba-pane-icon { font-size: 18px; }
.ba-pane-label {
  font: 800 11px 'JetBrains Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ba-pane-header.before .ba-pane-label { color: #fca5a5; }
.ba-pane-header.after  .ba-pane-label { color: #6ee7b7; }

.ba-pane-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ba-scenario-title {
  font: 800 13px 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 2px;
}
.ba-steps {
  list-style: decimal;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}
.ba-steps li { margin-bottom: 4px; }
.ba-steps code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  background: rgba(255,255,255,0.08);
  padding: 1px 4px;
  border-radius: 3px;
}
.ba-code {
  background: #0d1117;
  border: 1px solid #1e2535;
  border-radius: 10px;
  padding: 14px 16px;
  font: 500 12.5px 'JetBrains Mono', monospace;
  color: #c9d1d9;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
}
.ba-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: auto;
}
.ba-result.bad  {
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.ba-result.good {
  background: rgba(6, 78, 59, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.ba-result-icon { font-size: 20px; flex: none; }
.ba-result-title {
  font: 800 13.5px 'Inter', sans-serif;
  color: #fff;
  margin-bottom: 3px;
}
.ba-result-desc { font-size: 12px; color: #94a3b8; line-height: 1.5; }

.ba-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  background: #0f172a;
  border-left: 1px solid #2a3040;
  border-right: 1px solid #2a3040;
  gap: 8px;
}
.ba-divider-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
  min-height: 40px;
}
.ba-divider-arrow {
  font-size: 22px;
  font-weight: 900;
  color: #60a5fa;
  animation: baArrowPulse 1.8s ease-in-out infinite;
  writing-mode: horizontal-tb;
  line-height: 1;
  padding: 6px 10px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.ba-insight {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1200px, 96vw);
  margin: 16px auto 0;
  padding: 14px 22px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}
.ba-insight-icon { font-size: 22px; flex: none; }
.ba-insight-text strong { color: #60a5fa; }

@media (max-width: 820px) {
  .ba-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .ba-divider {
    flex-direction: row;
    border-left: none;
    border-right: none;
    border-top: 1px solid #2a3040;
    border-bottom: 1px solid #2a3040;
    padding: 6px 0;
  }
  .ba-divider-line {
    height: 1px;
    width: auto;
    flex: 1;
    background: linear-gradient(to right, transparent, #3b82f6, transparent);
    min-height: 0;
  }
}

/* ==========================================================================
   11. FULL-SCREEN STORY STUDIO (EDGE-TO-EDGE WIDESCREEN)
   ========================================================================== */
.story-fullscreen-studio {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.story-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.story-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.story-brand-badge img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}
.story-brand-info {
  display: flex;
  flex-direction: column;
}
.story-brand-title {
  font: 800 16px 'Inter', sans-serif;
  color: #fff;
}
.story-brand-sub {
  font: 700 11px 'JetBrains Mono', monospace;
  color: #38bdf8;
  letter-spacing: 1px;
}
.story-case-tag {
  font: 800 12px 'JetBrains Mono', monospace;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  padding: 6px 14px;
  border-radius: 99px;
  letter-spacing: 1.5px;
}
.story-time-callout {
  font: 800 12px 'JetBrains Mono', monospace;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.story-narrative-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.story-slack-bubble {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid #ec4899;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}
.story-slack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.story-slack-sender {
  font: 800 13px 'Inter', sans-serif;
  color: #f472b6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-slack-sender::before {
  content: '#';
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  color: #ec4899;
}
.story-slack-time {
  font: 600 11px 'JetBrains Mono', monospace;
  color: #94a3b8;
}
.story-slack-text {
  font-size: 16px;
  color: #f1f5f9;
  line-height: 1.55;
  font-style: italic;
}
.story-slack-meta {
  margin-top: 10px;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
}
.story-slack-meta strong { color: #38bdf8; }

.story-comparison-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.story-vs-box {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s ease;
}
.story-vs-box.fail {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.story-vs-box.success {
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}
.story-vs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.story-vs-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 14px 'Inter', sans-serif;
}
.story-vs-tool img {
  width: 20px;
  height: 20px;
}
.story-vs-status {
  font: 800 11px 'JetBrains Mono', monospace;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.story-vs-box.fail .story-vs-status {
  color: #f87171;
  background: rgba(239, 68, 68, 0.2);
}
.story-vs-box.success .story-vs-status {
  color: #34d399;
  background: rgba(16, 185, 129, 0.25);
  animation: beaconPulse 1.8s infinite;
}
.story-vs-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.story-moral-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  color: #e0f2fe;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 12px;
}
.story-moral-banner strong { color: #38bdf8; }

.story-ide-panel {
  display: flex;
  flex-direction: column;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.story-ide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #0f1523;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.story-ide-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 12.5px 'JetBrains Mono', monospace;
  color: #93c5fd;
}
.story-ide-tab img {
  width: 16px;
  height: 16px;
}
.story-ide-time {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}
.story-ide-code {
  margin: 0;
  padding: 20px 22px;
  font: 500 14px/1.65 'JetBrains Mono', monospace;
  color: #f1f5f9;
  overflow-x: auto;
  flex: 1;
}
.story-ide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(16, 185, 129, 0.1);
  border-top: 1px solid rgba(16, 185, 129, 0.25);
  font: 700 12px 'JetBrains Mono', monospace;
  color: #34d399;
}

/* ==========================================================================
   12. FULL-WIDTH KEY TAKEAWAYS BENTO
   ========================================================================== */
.scene.scene-takeaways {
  padding: 22px 2.2vw 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow-y: auto !important;
}
.takeaways-infographic-grid {
  width: 100% !important;
  max-width: 1720px !important;
  margin: 14px auto 0 !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px !important;
}
.takeaways-infographic-grid .tig-tile {
  padding: 13px 17px !important;
}
.takeaways-infographic-grid .tig-tile p {
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
}
.takeaways-infographic-grid .tig-tile.tig-hero-career {
  padding: 11px 17px !important;
}

/* ==========================================================================
   13. MASTER CURRICULUM JOURNEY MAP (FLOW & ROADMAP PIPELINE)
   ========================================================================== */
.journey-flow-arena {
  width: 100%;
  max-width: 1720px;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.journey-flow-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.journey-flow-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.journey-flow-beacon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 16px #10b981;
  animation: beaconPulse 1.8s infinite;
}
.journey-flow-title {
  font: 800 13px 'JetBrains Mono', monospace;
  color: #38bdf8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.journey-flow-waypoint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 99px;
  font: 800 12px 'JetBrains Mono', monospace;
  color: #34d399;
}
.journey-flow-stats {
  font: 700 12.5px 'Inter', sans-serif;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.journey-flow-stats strong { color: #f1f5f9; }

/* The Connected Roadmap Track System */
.journey-track-system {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.journey-tier-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

/* 5-Station Focused Odyssey Roadmap (Start -> Next 2 -> Last 2) */
.journey-milestones-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  width: 100%;
}
.journey-milestones-track::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 25%, #818cf8 50%, #f59e0b 75%, #fbbf24 100%);
  z-index: 1;
  opacity: 0.45;
}

/* Connecting Rail Pipeline Line */
.journey-tier-row::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 33%, #818cf8 66%, #a855f7 100%);
  z-index: 1;
  opacity: 0.35;
}
.journey-tier-row.tier-2::before {
  background: linear-gradient(90deg, #f59e0b 0%, #f43f5e 33%, #10b981 66%, #eab308 100%);
}

.journey-station-card {
  background: rgba(26, 31, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.journey-station-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}
.journey-station-card.active {
  border-color: #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}
.journey-station-card.capstone {
  border-color: rgba(234, 179, 8, 0.6);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 35px rgba(234, 179, 8, 0.25);
}

.journey-station-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}
.journey-station-node {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 13px 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.journey-station-card.active .journey-station-node {
  background: #10b981;
  color: #064e3b;
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}
.journey-station-card.capstone .journey-station-node {
  background: #eab308;
  color: #422006;
  border-color: #fde047;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.6);
}

.journey-station-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.journey-module-num {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #38bdf8;
  letter-spacing: 1px;
}
.journey-topic-count {
  font: 600 11px 'Inter', sans-serif;
  color: #94a3b8;
}

.journey-station-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.journey-station-title {
  font: 800 15.5px 'Inter', sans-serif;
  color: #fff;
  line-height: 1.3;
}
.journey-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.journey-topic-pill {
  font: 500 11.5px 'Inter', sans-serif;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.4;
}
.journey-station-card.active .journey-topic-pill.current {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #86efac;
  font-weight: 700;
}

.journey-station-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.journey-checkpoint-pill {
  font: 800 10.5px 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.journey-checkpoint-pill.cp {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.journey-checkpoint-pill.live {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  animation: beaconPulse 1.8s infinite;
}
.journey-checkpoint-pill.trophy {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047;
}

/* Inter-Tier Bridge Banner */
.journey-tier-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 20px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  font: 800 11.5px 'JetBrains Mono', monospace;
  color: #94a3b8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 4px auto;
  width: fit-content;
}
.journey-tier-bridge span { color: #a78bfa; }

/* ==========================================================================
   14. TACTICAL MISSION CONTROL — TAKE-HOME CHALLENGE
   ========================================================================== */
.challenge-mission-control {
  width: 100%;
  max-width: 1680px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.challenge-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.25), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-wrap: wrap;
  gap: 12px;
}
.challenge-hud-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.challenge-hud-tag {
  font: 800 11.5px 'JetBrains Mono', monospace;
  color: #34d399;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.challenge-hud-title {
  font: 800 20px 'Inter', sans-serif;
  color: #fff;
}
.challenge-hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.challenge-timer-pill {
  font: 800 12px 'JetBrains Mono', monospace;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 14px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.challenge-xp-badge {
  font: 800 12px 'JetBrains Mono', monospace;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 6px 14px;
  border-radius: 99px;
}

.challenge-zones-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.challenge-boss-quest {
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}
.challenge-quest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.challenge-quest-badge {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.challenge-quest-title {
  font: 900 22px 'Inter', sans-serif;
  color: #fff;
  line-height: 1.25;
}
.challenge-quest-sub {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.55;
}

.challenge-app-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.challenge-app-chip {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font: 700 12.5px 'Inter', sans-serif;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
.challenge-app-chip.selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.challenge-checklist-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
}
.challenge-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.5;
}
.challenge-check-item .num {
  font: 800 11.5px 'JetBrains Mono', monospace;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.challenge-check-item strong { color: #fff; }

.challenge-side-drills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.challenge-drill-card {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .2s ease;
}
.challenge-drill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}
.challenge-drill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.challenge-drill-num {
  font: 900 11px 'JetBrains Mono', monospace;
  color: #38bdf8;
}
.challenge-drill-type {
  font: 800 10px 'JetBrains Mono', monospace;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.challenge-drill-title {
  font: 800 14px 'Inter', sans-serif;
  color: #fff;
}
.challenge-drill-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.challenge-submission-cockpit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-size: 13.5px;
  color: #cbd5e1;
  flex-wrap: wrap;
  gap: 12px;
}
.challenge-submission-cockpit strong { color: #818cf8; }
.challenge-peer-tag {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   15. CINEMATIC NEXT SESSION TEASER LAUNCHPAD
   ========================================================================== */
.teaser-cinema-arena {
  width: 100%;
  max-width: 1720px !important;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.teaser-header-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
  gap: 16px;
}
.teaser-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.teaser-tag-pill {
  font: 800 11.5px 'JetBrains Mono', monospace;
  color: #38bdf8;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.teaser-hero-title {
  font: 900 26px 'Inter', sans-serif;
  color: #fff;
  letter-spacing: -0.5px;
}
.teaser-hero-desc {
  font-size: 14.5px;
  color: #94a3b8;
}
.teaser-live-badge {
  font: 800 12.5px 'JetBrains Mono', monospace;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 8px 18px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: beaconPulse 1.8s infinite;
}

.teaser-portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.teaser-portal-card {
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: all .25s ease;
}
.teaser-portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.teaser-portal-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.teaser-portal-icon {
  font-size: 26px;
}
.teaser-portal-name {
  font: 800 16px 'Inter', sans-serif;
  color: #fff;
}
.teaser-portal-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.55;
}

/* Color-coded SQL Superpowers Matrix */
.teaser-superpower-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.teaser-sp-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.teaser-sp-item.ddl { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
.teaser-sp-item.dml { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #86efac; }
.teaser-sp-item.dcl { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde68a; }
.teaser-sp-item.tcl { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); color: #d8b4fe; }
.teaser-sp-item strong { font: 800 12px 'JetBrains Mono', monospace; }

/* Sneak Peek IDE Snippet */
.teaser-ide-snippet {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font: 500 12px/1.5 'JetBrains Mono', monospace;
  color: #cbd5e1;
  overflow-x: auto;
}

.teaser-readiness-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  font-size: 13.5px;
  color: #fde68a;
  flex-wrap: wrap;
  gap: 12px;
}
.teaser-readiness-dock strong { color: #fbbf24; }

/* ==========================================================================
   16. STANDARDIZED DEFINITION SHOWCASE (.def-showcase)
   ========================================================================== */
.def-showcase {
  width: 100%;
  max-width: 1680px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.def-hero-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.def-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.def-tag-badge {
  font: 900 11px 'JetBrains Mono', monospace;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.def-term-title {
  font: 900 22px 'Inter', sans-serif;
  color: #fff;
}
.def-core-law {
  font-size: 15.5px;
  color: #e2e8f0;
  line-height: 1.6;
}
.def-core-law strong { color: #38bdf8; }
.def-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.def-pillar-item {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.def-pillar-label {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #fbbf24;
  text-transform: uppercase;
}
.def-pillar-title {
  font: 800 14px 'Inter', sans-serif;
  color: #fff;
}
.def-pillar-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

/* 16B. DEFINITION VOCABULARY & ANATOMY STUDIO */
.def-toggle-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.def-toggle-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 99px;
  font: 700 13px 'Inter', sans-serif;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.def-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
}
.def-toggle-btn.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.def-vocab-studio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}
.def-anatomy-card {
  background: linear-gradient(145deg, #131b2e, #0c1222);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.def-anatomy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #3b82f6;
}
.def-anatomy-card.col-card::before { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.def-anatomy-card.row-card::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.def-anatomy-card.schema-card::before { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.def-anatomy-card.pk-card::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.def-anatomy-card.fk-card::before { background: linear-gradient(90deg, #10b981, #059669); }

.def-anatomy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.def-anatomy-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.def-anatomy-tag {
  font: 800 10.5px 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.def-anatomy-card.col-card .def-anatomy-tag { color: #38bdf8; }
.def-anatomy-card.row-card .def-anatomy-tag { color: #fbbf24; }
.def-anatomy-card.schema-card .def-anatomy-tag { color: #60a5fa; }
.def-anatomy-card.pk-card .def-anatomy-tag { color: #f87171; }
.def-anatomy-card.fk-card .def-anatomy-tag { color: #34d399; }

.def-anatomy-title {
  font: 900 20px 'Inter', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.def-anatomy-alias {
  font: 600 13px 'Inter', sans-serif;
  color: #94a3b8;
}
.def-anatomy-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.def-matrix-wrap {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
}
.def-matrix-caption {
  font: 700 11px 'JetBrains Mono', monospace;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.def-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.def-matrix-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 11px;
}
.def-matrix-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

/* Column highlighting */
.def-matrix-table th.hl-col {
  background: rgba(56, 189, 248, 0.22) !important;
  color: #38bdf8 !important;
  border-left: 2px solid #38bdf8;
  border-right: 2px solid #38bdf8;
}
.def-matrix-table td.hl-col {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #fff !important;
  font-weight: 700;
  border-left: 2px solid rgba(56, 189, 248, 0.5);
  border-right: 2px solid rgba(56, 189, 248, 0.5);
}

/* Row highlighting */
.def-matrix-table tr.hl-row td {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fff !important;
  font-weight: 700;
  border-top: 1px solid #f59e0b;
  border-bottom: 1px solid #f59e0b;
}
.def-matrix-table tr.hl-row td:first-child {
  border-left: 3px solid #f59e0b;
}

.def-rules-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.def-rule-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}
.def-rule-bullet {
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
}
.def-rule-row strong {
  color: #fff;
}

.def-rejection-alert {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
}
.def-rejection-alert.col-alert {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.def-rejection-alert.row-alert {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}
.def-rejection-alert.triad-alert {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* 16C. RELATIONAL INTEGRITY TRIAD GRID */
.def-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.def-triad-card {
  background: linear-gradient(145deg, #131b2e, #0c1222);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.def-triad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.def-triad-card.schema::before { background: linear-gradient(90deg, #60a5fa, #2563eb); }
.def-triad-card.pk::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.def-triad-card.fk::before { background: linear-gradient(90deg, #10b981, #059669); }

.def-triad-badge {
  font: 800 10px 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}
.def-triad-card.schema .def-triad-badge { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.def-triad-card.pk .def-triad-badge { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.def-triad-card.fk .def-triad-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.def-triad-title {
  font: 900 18px 'Inter', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.def-triad-analogy {
  font: 700 12px 'Inter', sans-serif;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}
.def-triad-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
  flex: 1;
}
.def-triad-diagram-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  font: 600 11px 'JetBrains Mono', monospace;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.def-triad-diagram-box strong { color: #38bdf8; }

/* 16D. SMARTPHONE SQLITE STORY STUDIO */
.phone-story-studio {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 1600px;
  margin: 16px auto 0;
}
.phone-mockup-frame {
  background: #090d16;
  border: 3px solid #334155;
  border-radius: 36px;
  padding: 20px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone-notch-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 4px;
}
.phone-speaker {
  width: 60px;
  height: 5px;
  background: #1e293b;
  border-radius: 99px;
}
.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}
.phone-app-title {
  font: 800 16px 'Inter', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-sqlite-badge {
  font: 800 10px 'JetBrains Mono', monospace;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 99px;
}
.phone-search-box {
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}
.phone-search-query {
  font-weight: 700;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}
.phone-results-counter {
  font: 700 11px 'JetBrains Mono', monospace;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
.phone-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-contact-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font: 800 12px 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phone-contact-name {
  font: 700 12.5px 'Inter', sans-serif;
  color: #fff;
}
.phone-contact-name mark {
  background: rgba(56, 189, 248, 0.35);
  color: #fff;
  border-radius: 2px;
  padding: 0 2px;
}
.phone-contact-phone {
  font: 500 11px 'JetBrains Mono', monospace;
  color: #94a3b8;
}

.phone-story-cockpit {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phone-query-banner {
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.phone-query-tag {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #38bdf8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-query-code {
  font: 600 14px 'JetBrains Mono', monospace;
  color: #e2e8f0;
  line-height: 1.6;
}
.phone-query-code .kw { color: #f472b6; font-weight: 700; }
.phone-query-code .tbl { color: #38bdf8; font-weight: 700; }
.phone-query-code .str { color: #34d399; }

.phone-contrast-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.phone-contrast-card {
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.phone-contrast-card.bad {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.phone-contrast-card.good {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}
.phone-contrast-title {
  font: 800 13px 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-contrast-card.bad .phone-contrast-title { color: #ef4444; }
.phone-contrast-card.good .phone-contrast-title { color: #10b981; }

.phone-verdict-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: #e0e7ff;
  line-height: 1.5;
}
.phone-verdict-banner strong { color: #38bdf8; }

@media (max-width: 1080px) {
  .def-vocab-studio,
  .def-triad-grid,
  .phone-story-studio,
  .phone-contrast-deck {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .journey-milestones-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1080px) {
  .journey-tier-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-workspace-grid,
  .challenge-zones-split {
    grid-template-columns: 1fr;
  }
  .teaser-portals-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .journey-tier-row,
  .journey-milestones-track,
  .takeaways-infographic-grid,
  .def-pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   17. EXPANSIVE DATA -> INFORMATION PIPELINE STUDIO (.data-pipeline-studio)
   ========================================================================== */
.data-pipeline-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  gap: 24px;
  align-items: stretch;
}
.pipeline-concept-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pipeline-formula-badge {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 10px 18px;
  font: 800 12px 'JetBrains Mono', monospace;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pipeline-formula-badge strong { color: #34d399; }

.pipeline-card {
  background: rgba(26, 31, 46, 0.88);
  border: 1px solid var(--border, #2a3040);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: all .2s ease;
}
.pipeline-card.raw {
  border-left: 5px solid #38bdf8;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.9) 100%);
}
.pipeline-card.info {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.9) 100%);
}
.pipeline-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pipeline-card-icon {
  font-size: 24px;
}
.pipeline-card-title {
  font: 800 17px 'Inter', sans-serif;
  color: #fff;
}
.pipeline-card-desc {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.55;
}
.pipeline-card-sub {
  font-size: 12.5px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}
.pipeline-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #34d399;
  font: 800 11px 'JetBrains Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 0;
}

.pipeline-lab-col {
  background: rgba(26, 31, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.pipeline-lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}
.pipeline-lab-title {
  font: 800 15px 'Inter', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pipeline-lab-hint {
  font: 700 11.5px 'JetBrains Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
}
.pipeline-lab-table {
  width: 100%;
  border-collapse: collapse;
}
.pipeline-lab-table th {
  text-align: left;
  padding: 10px 14px;
  font: 800 11.5px 'JetBrains Mono', monospace;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pipeline-lab-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  vertical-align: middle;
}
.pipeline-val-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed #38bdf8;
  color: #38bdf8;
  font: 700 13px 'JetBrains Mono', monospace;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}
.pipeline-val-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-style: solid;
  transform: scale(1.04);
}
.pipeline-lab-table tr.rvrow.done .pipeline-val-chip {
  border-style: solid;
  border-color: #10b981;
  color: #86efac;
  background: rgba(16, 185, 129, 0.15);
}
.pipeline-lab-table .rvcell {
  color: #f1f5f9;
  font-weight: 600;
}
.pipeline-bottom-strip {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pipeline-bottom-strip strong { color: #34d399; }

/* ==========================================================================
   18. WIDESCREEN COMPARISON MATRIX SHOWDOWN (.sql-vs-nosql-showdown)
   ========================================================================== */
.sql-vs-nosql-showdown {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.showdown-table-wrap {
  width: 100%;
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.showdown-table {
  width: 100%;
  border-collapse: collapse;
}
.showdown-table th {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}
.showdown-table th.col-feature {
  width: 24%;
  font: 800 12.5px 'JetBrains Mono', monospace;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.showdown-table th.col-sql {
  width: 38%;
  font: 900 16px 'Inter', sans-serif;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-left: 1px solid rgba(56, 189, 248, 0.2);
}
.showdown-table th.col-nosql {
  width: 38%;
  font: 900 16px 'Inter', sans-serif;
  color: #c084fc;
  background: rgba(192, 132, 252, 0.08);
  border-left: 1px solid rgba(192, 132, 252, 0.2);
}
.showdown-table td {
  padding: 13px 22px;
  font-size: 14.5px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  line-height: 1.5;
}
.showdown-table td.cell-feature {
  font: 700 13.5px 'Inter', sans-serif;
  color: #f1f5f9;
}
.showdown-table td.cell-sql {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.showdown-table td.cell-nosql {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.showdown-table tr.highlight-acid {
  background: rgba(59, 130, 246, 0.12);
}
.showdown-table tr.highlight-acid td {
  color: #fff;
  font-weight: 700;
}
.showdown-table tr.highlight-acid td.cell-sql {
  color: #60a5fa;
}

.showdown-engines-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.engine-showcase-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.engine-showcase-card.sql-dock {
  border-left: 4px solid #38bdf8;
}
.engine-showcase-card.nosql-dock {
  border-left: 4px solid #c084fc;
}
.engine-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.engine-dock-title {
  font: 800 13.5px 'Inter', sans-serif;
  color: #fff;
}
.engine-dock-badge {
  font: 800 10.5px 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.sql-dock .engine-dock-badge { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.nosql-dock .engine-dock-badge { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.engine-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.engine-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font: 600 12px 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 6px;
}
.engine-chip.primary-engine {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 700;
}

/* ==========================================================================
   19. 80/20 DOMINANCE GAUGE & POLYGLOT PERSISTENCE STUDIO (.polyglot-persistence-studio)
   ========================================================================== */
.polyglot-persistence-studio {
  width: 100%;
  max-width: 1560px;
  margin: 18px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dominance-80-20-gauge {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.gauge-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gauge-meta-title {
  font: 800 13px 'JetBrains Mono', monospace;
  color: #38bdf8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.gauge-meta-rule {
  font-size: 13.5px;
  color: #94a3b8;
}
.gauge-bar-track {
  display: flex;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.gauge-segment-sql {
  width: 80%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #fff;
  font: 800 15px 'Inter', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}
.gauge-segment-nosql {
  width: 20%;
  background: linear-gradient(90deg, #475569 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #e2e8f0;
  font: 800 12.5px 'JetBrains Mono', monospace;
  border-left: 2px solid rgba(0, 0, 0, 0.4);
}
.gauge-insight-strip {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}
.gauge-insight-strip strong { color: #f59e0b; }

.polyglot-stack-deck {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 22px;
  align-items: stretch;
}
.polyglot-nodes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.polyglot-node-btn {
  background: rgba(26, 31, 46, 0.85);
  border: 2px solid var(--border, #2a3040);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.polyglot-node-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}
.polyglot-node-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}
.polyglot-node-btn .step-num {
  font: 900 10px 'JetBrains Mono', monospace;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
}
.polyglot-node-btn .node-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.polyglot-node-btn .node-name {
  font: 800 13.5px 'Inter', sans-serif;
  color: #fff;
}
.polyglot-node-btn .node-role {
  font-size: 11px;
  color: #94a3b8;
}

.polyglot-cockpit-panel {
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ==========================================================================
   20. DATABASE EVOLUTION VISUAL ODYSSEY (.database-evolution-odyssey)
   ========================================================================== */
.database-evolution-odyssey {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.evolution-header-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.evolution-timeline-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}
.evolution-era-card {
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: all .25s ease;
  position: relative;
}
.evolution-era-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.evolution-era-card.champion {
  border-color: #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}
.era-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}
.era-year-badge {
  font: 900 13px 'JetBrains Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}
.evolution-era-card.champion .era-year-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
}
.era-icon { font-size: 22px; }
.era-badge-tag {
  font: 800 10.5px 'JetBrains Mono', monospace;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.era-title {
  font: 800 15px 'Inter', sans-serif;
  color: #fff;
  line-height: 1.3;
}
.era-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}
.era-bullet-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #94a3b8;
}
.era-bullet-points span::before {
  content: '→ ';
  color: #38bdf8;
  font-weight: 800;
}
.evolution-era-card.champion .era-bullet-points span::before {
  color: #f59e0b;
}

.evolution-trophy-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 14.5px;
  color: #fde68a;
  display: flex;
  align-items: center;
  gap: 12px;
}
.evolution-trophy-banner strong { color: #fbbf24; }

@media (max-width: 1200px) {
  .evolution-timeline-track {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .evolution-timeline-track,
  .data-pipeline-studio,
  .showdown-engines-dock,
  .polyglot-stack-deck {
    grid-template-columns: 1fr;
  }
}



/* ==========================================================================
   11. UNIVERSAL STUDIO SCENE LAYOUT (ZERO-CONGESTION & VISIBLE SEPARATION)
   ========================================================================== */

/* Universal Studio Scene - Centered presentation with ample breathing room */
.scene.scene-studio {
  justify-content: flex-start !important;
  justify-content: safe center !important;
  align-items: center !important;
  padding: 84px 4vw 64px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

.scene-divider {
  width: min(900px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  margin: 16px auto 24px;
  flex-shrink: 0;
}

.read .scene.scene-studio {
  padding: 34px 0 !important;
}

/* Studio Header Band - Legacy fallback */
.studio-head-band {
  width: 100%;
  max-width: 1620px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px 0;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  flex-shrink: 0;
}

.studio-head-band::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, transparent);
}

/* All Studio content containers scale cleanly to 1600px widescreen with zero empty side void */
.scene > [class*="-studio"],
.scene.scene-studio > [class*="-studio"],
.scene > .teaser-cinema-arena,
.scene > .agenda-phases-roadmap,
.scene > .agenda-summary-dock,
.scene > .challenge-mission-control,
.scene > .journey-flow-arena,
.scene > .interview-split-wrap,
.scene > .sref-terminal {
  width: 100% !important;
  max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.studio-head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.studio-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 11.5px 'JetBrains Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: 6px;
  width: fit-content;
}

.studio-head-title {
  font-size: clamp(22px, 2.3vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px !important;
  margin: 0 !important;
  text-align: left !important;
  color: #f8fafc;
}

.studio-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-head-meta {
  font: 600 12px 'JetBrains Mono', monospace;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   12. SESSION 2 SPECIALIZED STUDIOS (CONNECTED TABLES, HIERARCHY, ANALOGIES)
   ========================================================================== */

/* Connected Tables Studio */
.connected-tables-studio {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.ct-tables-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
}

.ct-table-card {
  background: rgba(26, 31, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.ct-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-table-name {
  font: 800 14.5px 'JetBrains Mono', monospace;
  color: #f1f5f9;
  letter-spacing: -0.2px;
}

.ct-table-badge {
  font: 700 11.5px 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ct-table-data {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
}

.ct-table-data th {
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.7);
  color: #94a3b8;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.ct-table-data th .pk-pill {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 5px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ct-table-data th .fk-pill {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ct-table-data td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.ct-table-data tr.ct-hl-pk {
  background: rgba(16, 185, 129, 0.12);
}

.ct-table-data tr.ct-hl-pk td:first-child {
  border-left: 3px solid #10b981;
  color: #34d399;
  font-weight: 800;
}

.ct-table-data tr.ct-hl-fk {
  background: rgba(56, 189, 248, 0.1);
}

.ct-table-data tr.ct-hl-fk td:nth-child(2) {
  color: #38bdf8;
  font-weight: 800;
}

.ct-fk-match {
  color: #38bdf8;
  font-weight: 800;
}

.ct-ghost-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-left: 6px;
}

.ct-connector-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 10px;
}

.ct-bridge-badge {
  font: 800 12px 'JetBrains Mono', monospace;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
  white-space: nowrap;
}

.ct-bridge-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ct-bridge-arrow {
  font-size: 22px;
  color: #60a5fa;
  animation: pulse-glow 2s infinite ease-in-out;
}

.ct-bridge-rule {
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.ct-rule-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.ct-rule-line {
  font-size: 11px;
  font-weight: 700;
}

.ct-rule-fk { color: #38bdf8; }
.ct-rule-pk { color: #10b981; }

.ct-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ct-insight-card {
  background: rgba(26, 31, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}

.ct-insight-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.ct-insight-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 14px 'Inter', sans-serif;
  color: #f1f5f9;
}

.ct-insight-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
}

.ct-insight-card.danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.ct-insight-card.danger .ct-insight-head { color: #f87171; }

/* Hierarchy & Explorer Studio */
.hierarchy-explorer-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.he-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.he-bread-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 13px 'JetBrains Mono', monospace;
  color: #cbd5e1;
}

.he-bread-node.active {
  color: #38bdf8;
  font-weight: 800;
}

.he-bread-sep {
  color: #64748b;
  font-size: 14px;
}

.he-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.he-schemas-panel {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.he-schemas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.he-schemas-title {
  font: 800 14px 'Inter', sans-serif;
  color: #f1f5f9;
}

.he-schemas-badge {
  font: 700 11px 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.he-schemas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.he-schema-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
}

.he-schema-item .name {
  font: 800 13px 'JetBrains Mono', monospace;
  color: #38bdf8;
  margin-bottom: 4px;
}

.he-schema-item .tables {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.he-more-pill {
  grid-column: span 2;
  text-align: center;
  font: 700 11.5px 'JetBrains Mono', monospace;
  color: #94a3b8;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.he-launchpad-card {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.he-launch-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.he-launch-icon {
  font-size: 32px;
}

.he-launch-title {
  font: 900 18px 'Inter', sans-serif;
  color: #fff;
}

.he-launch-tag {
  font: 700 10.5px 'JetBrains Mono', monospace;
  color: #818cf8;
  letter-spacing: 0.5px;
}

.he-launch-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.he-launch-stats {
  display: flex;
  gap: 12px;
}

.he-stat-chip {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

.he-stat-val {
  font: 800 15px 'JetBrains Mono', monospace;
  color: #fbbf24;
}

.he-stat-lbl {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.he-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font: 700 14px 'Inter', sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
  transition: all .2s ease;
}

.he-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.5);
}

/* English Accent Analogy Studio */
.accent-analogy-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accent-intro-card {
  background: rgba(26, 31, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.accent-q-icon {
  font-size: 28px;
}

.accent-q-text {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.5;
}

.accent-q-text strong { color: #38bdf8; }

.accent-dialects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.accent-dialect-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accent-dialect-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accent-dialect-flag { font-size: 24px; }

.accent-dialect-title {
  font: 800 14px 'Inter', sans-serif;
  color: #fff;
}

.accent-quote-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #38bdf8;
  padding: 10px 14px;
  font: 500 13px 'JetBrains Mono', monospace;
  color: #cbd5e1;
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

.accent-engines-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 31, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 24px;
  gap: 20px;
}

.accent-engine-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.accent-engine-chip img {
  width: 28px;
  height: 28px;
}

.accent-engine-name {
  font: 800 14px 'Inter', sans-serif;
  color: #f1f5f9;
}

.accent-engine-role {
  font-size: 11.5px;
  color: #94a3b8;
}

.accent-moral-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #e2e8f0;
}

/* Restaurant Analogy Studio */
.restaurant-analogy-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.restaurant-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.restaurant-card {
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
}

.restaurant-card.imperative {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.restaurant-card.declarative {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.restaurant-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.restaurant-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 900 16px 'Inter', sans-serif;
}

.restaurant-card.imperative .restaurant-card-title { color: #f87171; }
.restaurant-card.declarative .restaurant-card-title { color: #34d399; }

.restaurant-card-badge {
  font: 800 11px 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 6px;
}

.restaurant-card.imperative .restaurant-card-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.restaurant-card.declarative .restaurant-card-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.restaurant-quote-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}

.restaurant-rule-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.restaurant-moral-strip {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #f1f5f9;
}

/* Generous responsive sizing for Scene 8 Excel Story */
.scene.scene-story#excelStoryScene {
  padding: 74px 3.5vw 48px !important;
}

#excelStoryScene .story-top-banner {
  padding: 14px 24px !important;
}

#excelStoryScene .story-workspace-grid {
  gap: 22px !important;
}

#excelStoryScene .story-slack-bubble {
  padding: 16px 20px !important;
}

#excelStoryScene .story-slack-text {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

#excelStoryScene .story-moral-banner {
  padding: 12px 18px !important;
  font-size: 14px !important;
}

#excelStoryScene .story-vs-box {
  padding: 14px 18px !important;
}

#excelStoryScene .story-vs-desc {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

#excelStoryScene .showdown-table th {
  padding: 10px 16px !important;
  font-size: 13px !important;
}

#excelStoryScene .showdown-table td {
  padding: 8px 16px !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

/* 5 Categories Command Deck Studio (Scene 12) */
.categories-deck-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.categories-5-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.cat-pillar-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}

.cat-pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cat-pillar-card.highlight {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.15), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

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

.cat-num-tag {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #94a3b8;
}

.cat-star-badge {
  font: 800 10px 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.cat-pillar-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-icon { font-size: 24px; }

.cat-acronym {
  font: 900 20px 'JetBrains Mono', monospace;
  color: #fff;
  line-height: 1;
}

.cat-full-name {
  font: 700 11px 'Inter', sans-serif;
  color: #94a3b8;
  margin-top: 2px;
}

.cat-analogy-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
  border-left: 3px solid #3b82f6;
}

.cat-pillar-card.highlight .cat-analogy-box {
  border-left-color: #06b6d4;
}

.cat-commands-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.cat-cmd-chip {
  font: 700 11px 'JetBrains Mono', monospace;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-role-pill {
  font-size: 10.5px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-summary-strip {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #e2e8f0;
}

/* Paradigm Showdown Studio (Python vs SQL - Scenes 14/15/16) */
.paradigm-showdown-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paradigm-task-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.paradigm-task-text {
  font: 800 14px 'JetBrains Mono', monospace;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.paradigm-toggle-group {
  display: flex;
  gap: 8px;
}

.paradigm-btn {
  background: rgba(26, 31, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font: 700 12px 'JetBrains Mono', monospace;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .15s ease;
}

.paradigm-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.paradigm-btn.active.python {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.45);
}

.paradigm-btn.active.sql {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
}

.paradigm-btn.active.both {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.45);
}

.paradigm-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.paradigm-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s ease;
}

.paradigm-card.py-card {
  border-left: 4px solid #ef4444;
}

.paradigm-card.sql-card {
  border-left: 4px solid #10b981;
}

.paradigm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.paradigm-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 900 15px 'Inter', sans-serif;
  color: #fff;
}

.paradigm-badge {
  font: 800 10.5px 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 6px;
}

.paradigm-badge.py {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.paradigm-badge.sql {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.paradigm-code-box {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  font: 500 12px 'JetBrains Mono', monospace;
  line-height: 1.5;
  overflow-x: auto;
}

.paradigm-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.paradigm-stat-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.paradigm-stat-val {
  font: 800 13.5px 'JetBrains Mono', monospace;
}

.paradigm-stat-val.bad { color: #f87171; }
.paradigm-stat-val.good { color: #34d399; }

.paradigm-stat-lbl {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.paradigm-bottom-strip {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #f1f5f9;
}

/* 4-Stage Query Pipeline Studio (Scene 17) */
.pipeline-stages-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-query-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.pipeline-query-code {
  font: 700 13.5px 'JetBrains Mono', monospace;
  color: #f1f5f9;
}

.pipeline-f5-chip {
  font: 800 11px 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.pipeline-stage-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all .2s ease;
}

.pipeline-stage-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pipeline-stage-card.planner {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

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

.pipeline-stage-num {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #94a3b8;
}

.pipeline-stage-badge {
  font: 800 10px 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.pipeline-stage-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipeline-stage-icon { font-size: 24px; }

.pipeline-stage-name {
  font: 900 17px 'Inter', sans-serif;
  color: #fff;
}

.pipeline-stage-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.pipeline-checks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  font: 500 11.5px 'JetBrains Mono', monospace;
  color: #cbd5e1;
  margin-top: auto;
}

.pipeline-check-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.pipeline-check-row.pass { color: #34d399; }
.pipeline-check-row.fail { color: #f87171; }
.pipeline-check-row.star { color: #fbbf24; }

.pipeline-bottom-moral {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #f1f5f9;
}

/* Space utilization fix for Scene 23 (Flipkart Story) */
#storyScene .story-fullscreen-studio {
  max-width: 1560px !important;
  width: 100% !important;
  gap: 16px !important;
}

#storyScene .story-workspace-grid {
  grid-template-columns: 1fr 1.35fr !important;
  gap: 22px !important;
  align-items: stretch !important;
}

#storyScene .story-narrative-panel {
  gap: 14px !important;
  justify-content: space-between !important;
}

#storyScene .story-slack-bubble {
  padding: 16px 20px !important;
}

#storyScene .story-slack-text {
  font-size: 15px !important;
}

#storyScene .story-comparison-strip {
  gap: 12px !important;
}

#storyScene .story-vs-box {
  padding: 14px 16px !important;
}

#storyScene .story-moral-banner {
  padding: 14px 18px !important;
  font-size: 14px !important;
}

#storyScene .story-ide-panel {
  height: 100% !important;
}

#storyScene pre.story-ide-code {
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  padding: 22px 24px !important;
  flex: 1 !important;
}

/* Toolkit Stack Studio (Scene 24) */
.toolkit-stack-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.toolkit-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s ease;
  position: relative;
}

.toolkit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.toolkit-card.highlight {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

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

.toolkit-step-tag {
  font: 800 10.5px 'JetBrains Mono', monospace;
  color: #94a3b8;
}

.toolkit-star-badge {
  font: 800 10px 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.toolkit-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolkit-brand-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.toolkit-brand-name {
  font: 900 17px 'Inter', sans-serif;
  color: #fff;
}

.toolkit-card-role {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.toolkit-card-stat {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  font: 600 11.5px 'JetBrains Mono', monospace;
  color: #cbd5e1;
  margin-top: auto;
}

.toolkit-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.toolkit-why-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toolkit-why-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 13px 'Inter', sans-serif;
  color: #f1f5f9;
}

.toolkit-why-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

/* Career Map Studio (Scene 25) */
.career-map-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.career-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s ease;
  position: relative;
}

.career-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.career-card.highlight {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

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

.career-role-title {
  font: 900 16px 'Inter', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.career-salary-badge {
  font: 800 11.5px 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.career-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.career-meter-labels {
  display: flex;
  justify-content: space-between;
  font: 700 11px 'JetBrains Mono', monospace;
  color: #94a3b8;
}

.career-meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.career-meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6);
}

.career-card.highlight .career-meter-fill {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.career-tasks-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin-top: auto;
}

.career-bottom-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #fde68a;
}

/* ==========================================================================
   12. CAREER & INDUSTRY STUDIO (3-TAB TOGGLE)
   ========================================================================== */
.career-industry-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.career-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: fit-content;
  margin: 0 auto;
}

.career-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font: 700 12.5px 'JetBrains Mono', monospace;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
}

.career-tab-btn:hover { color: #fff; }

.career-tab-btn.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.career-tab-content {
  display: none;
  width: 100%;
}

.career-tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.career-scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.scale-company-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .2s ease;
}

.scale-company-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.scale-company-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scale-company-name {
  font: 800 15px 'Inter', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scale-stat-badge {
  font: 800 11px 'JetBrains Mono', monospace;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.scale-company-task {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================================
   13. MATRIX APPS STORY STUDIO (Scene 30)
   ========================================================================== */
.matrix-story-studio {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.matrix-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.matrix-app-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s ease;
}

.matrix-app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.matrix-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.matrix-app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 14px 'Inter', sans-serif;
  color: #fff;
}

.matrix-app-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.matrix-op-badge {
  font: 800 10px 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.matrix-ui-view {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-ui-view strong { color: #f1f5f9; }

.matrix-db-view {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  font: 500 11.5px 'JetBrains Mono', monospace;
  color: #38bdf8;
  line-height: 1.35;
  word-break: break-all;
}

.matrix-moral-strip {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #f1f5f9;
}

/* ==========================================================================
   14. INTERACTIVE SELF-CHECK STUDIO (Scene 32)
   ========================================================================== */
.self-check-studio {
  width: 100%;
  max-width: 1620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.self-check-score-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.self-check-score-text {
  font: 800 13.5px 'JetBrains Mono', monospace;
  color: #fbbf24;
}

.self-check-bench-pill {
  font: 700 12px 'Inter', sans-serif;
  color: #94a3b8;
}

.self-check-bench-pill strong { color: #34d399; }

.self-check-grid-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sc-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 125px;
  transition: all .2s ease;
  position: relative;
}

.sc-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.sc-num-badge {
  font: 800 11.5px 'JetBrains Mono', monospace;
  color: #38bdf8;
}

.sc-category-tag {
  font: 700 10px 'JetBrains Mono', monospace;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.sc-question-text {
  font: 600 14px 'Inter', sans-serif;
  color: #f1f5f9;
  line-height: 1.48;
  min-height: 44px;
}

.sc-reveal-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font: 700 12px 'JetBrains Mono', monospace;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  transition: all .15s ease;
}

.sc-reveal-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

.sc-answer-drawer {
  display: none;
  background: #090d16;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #34d399;
  line-height: 1.45;
  margin-top: 6px;
}

.sc-card.revealed .sc-answer-drawer {
  display: block;
}

.sc-card.revealed .sc-reveal-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* ==========================================================================
   21. EXPANSIVE WELCOME GATEWAY & AGENDA STUDIOS (ZERO EMPTY VOIDS)
   ========================================================================== */

/* Welcome Gateway Studio */
.welcome-gateway-studio {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcome-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.welcome-app-card {
  background: rgba(26, 31, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Collapsed by default — only icon + name + badge visible */
.welcome-app-card .welcome-app-action,
.welcome-app-card .welcome-app-query,
.welcome-app-card .welcome-app-metric {
  display: none !important;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Expanded state */
.welcome-app-card.active .welcome-app-action {
  display: block !important;
  animation: cardReveal .2s ease;
}
.welcome-app-card.active .welcome-app-query {
  display: flex !important;
  animation: cardReveal .2s ease .05s both;
}
.welcome-app-card.active .welcome-app-metric {
  display: flex !important;
  animation: cardReveal .2s ease .1s both;
}
.welcome-app-card.active {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.welcome-app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.welcome-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.welcome-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 17px 'Inter', sans-serif;
  color: #fff;
  flex-shrink: 0;
}

.welcome-app-title {
  font: 800 15px 'Inter', sans-serif;
  color: #f8fafc;
}

.welcome-app-badge {
  font: 700 10.5px 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-app-action {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.welcome-app-action strong {
  color: #f1f5f9;
}

.welcome-app-query {
  background: rgba(10, 14, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font: 600 11.5px 'JetBrains Mono', monospace;
  color: #38bdf8;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 54px;
  display: flex;
  align-items: center;
}

.welcome-app-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 11px 'JetBrains Mono', monospace;
  color: #94a3b8;
  padding-top: 2px;
}

.welcome-app-metric .val {
  color: #34d399;
}

/* 4 Pillars Strip */
.welcome-pillars-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.welcome-pillar-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.welcome-pillar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 13px 'Inter', sans-serif;
  color: #f8fafc;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.welcome-pillar-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.welcome-footer-dock {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #e2e8f0;
}

.welcome-footer-dock .wfd-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Agenda Studio Enhancements */
.agenda-phases-roadmap {
  width: 100% !important;
  max-width: 1720px !important;
  margin: 0 auto 16px !important;
  gap: 20px !important;
}

.agenda-phase-col {
  padding: 18px 20px !important;
  border-radius: 16px !important;
  background: rgba(26, 31, 46, 0.85) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.agenda-topic-row {
  padding: 12px 15px !important;
  border-radius: 10px !important;
  margin-bottom: 9px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.agenda-topic-name {
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

.agenda-topic-desc {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #94a3b8 !important;
  margin-top: 7px !important;
  padding-top: 7px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.agenda-summary-dock {
  width: 100%;
  max-width: 1720px !important;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.agenda-dock-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.agenda-dock-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.agenda-dock-text strong {
  display: block;
  font-size: 13.5px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.agenda-dock-text span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================================
   22. RESPONSIVE FLUID BREAKPOINTS FOR ALL STUDIO SCENES
   ========================================================================== */

/* Large Laptops and Standard Displays (<= 1280px) */
@media (max-width: 1280px) {
  .welcome-apps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .welcome-pillars-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Tablets and Medium Displays (<= 992px) */
@media (max-width: 992px) {
  .agenda-phases-roadmap {
    grid-template-columns: 1fr !important;
  }
  .agenda-summary-dock {
    grid-template-columns: 1fr !important;
  }
  .teaser-portals-grid {
    grid-template-columns: 1fr !important;
  }
  .takeaways-infographic-grid {
    grid-template-columns: 1fr !important;
  }
  .ct-tables-grid {
    grid-template-columns: 1fr !important;
  }
  .studio-head-band {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .scene.scene-studio {
    padding: 24px 16px 20px !important;
  }
}

/* Mobile Devices and Narrow Windows (<= 640px) */
@media (max-width: 640px) {
  .welcome-apps-grid,
  .welcome-pillars-strip {
    grid-template-columns: 1fr !important;
  }
  .welcome-footer-dock {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .teaser-header-hero {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ==========================================================================
   STANDARD 2-SESSION RECAP COMPONENT (Universal across Module 1-8)
   ========================================================================== */
.recap-duo-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  width: min(1560px, 94vw);
  margin-top: 18px;
  align-items: stretch;
}
.recap-duo-card {
  background: var(--card, #1a1f2e);
  border: 1px solid var(--border, #2a3040);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.recap-duo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}
.recap-duo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.recap-duo-tag {
  font: 800 11px 'JetBrains Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.recap-duo-card:nth-child(1) .recap-duo-tag { color: #60a5fa; }
.recap-duo-card:nth-child(2) .recap-duo-tag { color: #34d399; }
.recap-duo-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
  line-height: 1.25;
}
.recap-duo-icon {
  font-size: 26px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.recap-duo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.recap-duo-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
}
.recap-duo-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.recap-duo-item-desc {
  font-size: 13px;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
}
.recap-duo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.recap-duo-badge {
  font: 800 11px 'JetBrains Mono', monospace;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.recap-duo-card:nth-child(1) .recap-duo-badge {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}
.recap-duo-card:nth-child(2) .recap-duo-badge {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #34d399;
}
.recap-duo-scenes {
  font: 600 12px 'Inter', sans-serif;
  color: var(--muted, #94a3b8);
}
.recap-bridge-dock {
  width: min(1560px, 94vw);
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.recap-bridge-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #e2e8f0;
}
.recap-bridge-left strong {
  color: #38bdf8;
}
.recap-bridge-tag {
  font: 800 11px 'JetBrains Mono', monospace;
  color: #34d399;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .recap-duo-wrap { grid-template-columns: 1fr; }
  .recap-bridge-dock { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   MOBILE PRESENTATION NAVIGATION DOCK
   ========================================================================== */
.mobile-nav-dock {
  display: none;
}
@media (max-width: 768px) {
  .mobile-nav-dock {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 99px;
    padding: 6px 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999;
  }
  .read .mobile-nav-dock,
  .clean .mobile-nav-dock {
    display: none !important;
  }
  .mnav-btn {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #f8fafc;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    touch-action: manipulation;
  }
  .mnav-btn:active {
    background: rgba(56, 189, 248, 0.45);
    transform: scale(0.92);
  }
  .mnav-pill {
    font: 700 12.5px 'JetBrains Mono', monospace;
    color: #38bdf8;
    padding: 0 6px;
    white-space: nowrap;
    user-select: none;
  }
}
