/* ==========================================================================
   HiroWa Design System - Case Studies Unified Stylesheet
   Inherits all central design system components & tokens from main.css / tokens.css
   ========================================================================== */

/* Detailed Content Transitions for Case Study */
.detailed-content {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-detail-mode="compact"] .detailed-content,
body[data-detail-mode="default"] .detailed-content,
body:not([data-detail-mode="detailed"]) .detailed-content {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

body[data-detail-mode="detailed"] .detailed-content {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Global Case Header & Main Title */
.case-header {
  margin-bottom: 2.5rem;
}

.case-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--active-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.case-title-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Hero Section (Dot grid appears here and fades away into solid background) */
.case-hero-section {
  padding: 3.5rem 0 5rem 0;
  position: relative;
  background: transparent;
}

.case-hero-section .container {
  position: relative;
  z-index: 3;
}

.case-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 2;
}

.case-hero-header {
  margin-bottom: 2rem;
}

.back-link-wrapper {
  margin-bottom: 2.25rem;
}

.back-link-wrapper .back-link {
  display: inline-flex;
}

/* 2-Column Main Layout: Left Sticky TOC + Right Open Content Stream */
.case-layout-container {
  padding-top: 3.5rem;
  padding-bottom: 8rem;
  background: var(--bg);
  position: relative;
  z-index: 10;
}

.case-main-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 4rem;
  align-items: flex-start;
  position: relative;
}

/* Left Sticky TOC Column (Starts naturally below hero, pins on scroll) */
.case-toc-sticky-column {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  z-index: 40;
}

.case-toc-sticky-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-rail-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.5rem;
}

.toc-rail-header i {
  color: var(--active-accent);
  font-size: 0.9rem;
}

.toc-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toc-rail-list li {
  padding: 0;
  margin: 0;
}

.toc-rail-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s ease;
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  opacity: 0.7;
}

.toc-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-rail-link:hover {
  color: var(--fg);
  background: color-mix(in srgb, var(--active-accent) 8%, transparent);
}

.toc-rail-link.active {
  color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  font-weight: 700;
}

.toc-rail-link.active .toc-num {
  color: var(--active-accent);
  opacity: 1;
  font-weight: 700;
}

.toc-rail-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition-base);
}

.toc-rail-top:hover {
  color: var(--active-accent);
}

/* Right Content Stream (Clean open flow on flat background) */
.case-content-stream {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  min-width: 0;
}

.case-section {
  position: relative;
  scroll-margin-top: 135px;
}

.case-section-header {
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  margin: 0;
}

/* Content Stream Section Dividers (Matching Landing Page with Cross Icons) */
.case-content-stream .section-divider-wrapper {
  margin: 0.5rem 0;
  background: transparent;
  width: 100%;
}

.case-content-stream .section-divider-bar {
  max-width: 100%;
  padding: 0;
  height: 15px;
}

.challenge-lead-text {
  margin-bottom: 2rem;
  line-height: 1.65;
}

.design-question-heading {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced CTA Section Box */
.case-cta-box {
  background: 
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--active-accent) 15%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--active-accent) 12%, transparent) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04), 0 0 25px var(--active-glow);
  transition: var(--transition-base);
}

.case-cta-box:hover {
  border-color: color-mix(in srgb, var(--active-accent) 40%, transparent);
}

.case-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.case-cta-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.65;
}

.case-cta-actions {
  display: inline-flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Detailed Mode Content Typography & Spacing */
.detailed-content {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.detailed-content p {
  margin: 0 0 0.5rem 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.detailed-content p:last-child {
  margin-bottom: 0;
}

.toc-back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition-base);
}

.toc-back-to-top:hover {
  color: var(--active-accent);
}

/* Floating Mobile / Tablet TOC Trigger */
.case-toc-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--active-accent) 40%, var(--border));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 20px var(--active-glow);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-base);
}

.case-toc-fab:hover {
  transform: translateY(-2px);
  border-color: var(--active-accent);
}

.case-toc-fab i {
  color: var(--active-accent);
  font-size: 0.95rem;
}

@media (max-width: 1400px) {
  .case-toc-sidebar {
    right: 1.25rem;
    width: 155px;
  }
}

@media (max-width: 1220px) {
  .case-toc-sidebar {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    top: auto;
    width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .case-toc-sidebar.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .case-toc-fab {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .case-study-wrapper .case-card {
    padding: 1.75rem 1.25rem;
  }
}

/* Hero Banner Image Container */
.case-hero-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  aspect-ratio: 16/10;
  background-color: var(--bg-alt);
}

.case-hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bento Grid Meta Info */
.meta-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .meta-bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.meta-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.meta-card-accent {
  background: color-mix(in srgb, var(--active-accent) 4%, var(--surface));
  border-color: color-mix(in srgb, var(--active-accent) 25%, transparent);
}

.meta-card-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--active-accent);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

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

.meta-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg);
}

.meta-card ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-card li {
  font-size: 0.9rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-card li::before {
  content: "•";
  color: var(--active-accent);
  font-weight: bold;
}

/* Results Dashboard Grid */
.results-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .results-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .results-dashboard {
    grid-template-columns: 1fr;
  }
}

.result-widget {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-base);
}

.result-widget:hover {
  border-color: var(--active-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--active-glow);
}

.result-widget-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--active-accent) 8%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-accent);
  font-size: 1.15rem;
}

.result-stat {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--active-accent);
  line-height: 1;
}

.result-label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fg);
}

.result-label strong {
  font-weight: 600;
  color: var(--fg);
}

/* Telemetry Grid inside Accordion */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.telemetry-item-title {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: block;
}

.telemetry-item-desc {
  margin: 0.25rem 0 0 0;
  font-size: 0.88rem;
}

/* TABS WITH FIXED OVERLAY HEIGHT FOR DESIGN SECTION */
.design-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.tab-nav-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-base);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--active-accent) 40%, var(--border));
}

.tab-btn.active {
  color: var(--active-accent);
  border-color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent) 8%, var(--surface));
  box-shadow: 0 0 12px var(--active-glow);
}

.tab-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: var(--active-accent);
  transition: width 0.05s linear;
}

/* Fixed Equal Height Tab Container using CSS Grid Overlay */
.tab-panes {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.tab-pane {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateY(6px);
}

.tab-pane.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.tab-pane-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

/* SIDEBAR LAYOUT FOR RESEARCH & ITERATION */
.sidebar-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

@media (max-width: 850px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .sidebar-nav-item {
    width: 100% !important;
    padding: 0.85rem 1.1rem !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: start !important;
  }

  .sidebar-nav-item .item-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }

  .sidebar-nav-item .item-title {
    font-size: 0.9rem !important;
  }

  .sidebar-nav-item .item-subtitle {
    font-size: 0.62rem !important;
    margin-top: 2px !important;
  }

  .sidebar-nav-item:hover,
  .sidebar-nav-item.active {
    transform: none !important;
  }

  .tab-nav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 1rem;
    width: 100%;
  }

  .tab-nav {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.35rem !important;
    background: color-mix(in srgb, var(--surface) 95%, transparent) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
  }

  .tab-btn {
    width: auto !important;
    min-width: 0 !important;
    justify-content: center !important;
    font-size: 0.76rem !important;
    padding: 0.45rem 0.95rem !important;
    border-radius: var(--radius-full) !important;
    border: none !important;
    text-align: center !important;
    transition: var(--transition-base) !important;
  }

  .tab-btn.active {
    background: var(--active-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px var(--active-glow) !important;
  }

  .tab-btn.active span {
    color: #ffffff !important;
  }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: left;
  width: 100%;
}

.sidebar-nav-item:hover {
  border-color: color-mix(in srgb, var(--active-accent) 40%, var(--border));
  background: color-mix(in srgb, var(--active-accent) 4%, var(--surface));
}

.sidebar-nav-item.active {
  border-color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent) 8%, var(--surface));
  box-shadow: 0 0 14px var(--active-glow);
}

.sidebar-nav-item .item-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-nav-item .item-text {
  display: flex;
  flex-direction: column;
}

.sidebar-nav-item .item-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.sidebar-nav-item .item-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.sidebar-panel-container {
  position: relative;
}

.sidebar-panel {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  animation: paneFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sidebar-panel-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.sidebar-panel-callout-label {
  color: var(--active-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.sidebar-panel-callout-text {
  margin: 0.25rem 0 0 0;
  font-size: 0.88rem;
}

/* USER TESTING LAYOUT RESPONSIVENESS */
.user-testing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
  position: relative;
}

.user-testing-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  border-left: 1px dashed var(--border);
  transform: translateX(-50%);
}

@media (max-width: 850px) {
  .user-testing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .user-testing-grid::after {
    display: none;
  }
}

.testing-column-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.testing-column-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--active-accent) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-accent);
  font-size: 1.1rem;
}

.testing-column-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.testing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 0 16px var(--active-glow);
  transition: var(--transition-base);
}

.testing-card:hover {
  border-color: color-mix(in srgb, var(--active-accent) 35%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 0 24px var(--active-glow);
}

.testing-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.25rem 0.25rem 0 0.25rem;
}

.testing-card-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.testing-card-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--active-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--active-accent) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.testing-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  line-height: 1.25;
}

.testing-card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--active-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.testing-card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ACCORDION COMPONENTS */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  overflow: hidden;
  transition: var(--transition-base);
}

.accordion-item.active {
  border-color: color-mix(in srgb, var(--active-accent) 50%, var(--border));
  box-shadow: 0 0 16px var(--active-glow);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  transition: var(--transition-base);
}

.accordion-header:hover {
  background: color-mix(in srgb, var(--active-accent) 6%, transparent);
}

.accordion-header .accordion-icon {
  font-size: 1.15rem;
  color: var(--active-accent);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-header .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.35rem;
}

.accordion-item.active .accordion-content {
  max-height: 1800px;
  padding: 0.75rem 1.35rem 1.5rem 1.35rem;
  border-top: 1px dashed var(--border);
}

/* ACCORDION BULLET LIST & STYLED LIST POSITIONING */
.styled-list,
.accordion-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.styled-list li,
.accordion-content ul li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--fg);
  display: block;
}

.styled-list li::before,
.accordion-content ul li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--active-accent);
  box-shadow: 0 0 6px var(--active-glow);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.styled-list li:hover::before,
.accordion-content ul li:hover::before {
  transform: scale(1.3);
}

/* CHALLENGE 3-CARD BENTO GRID */
.challenge-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .challenge-bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* WORKSHOP 3-CARD BENTO MOSAIC GRID */
.workshop-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.workshop-bento-hero {
  grid-column: span 2;
  background: color-mix(in srgb, var(--active-accent) 2%, var(--surface));
  border-color: color-mix(in srgb, var(--active-accent) 20%, var(--border));
}

@media (max-width: 768px) {
  .workshop-bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .workshop-bento-hero {
    grid-column: 1;
  }
}

.workshop-bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition-base);
}

.workshop-bento-card:hover {
  border-color: color-mix(in srgb, var(--active-accent) 40%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), 0 0 16px var(--active-glow);
}

.workshop-bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.65rem;
}

.workshop-bento-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.workshop-bento-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--active-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--active-accent) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.workshop-bento-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.workshop-bento-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--active-accent) 8%, transparent);
  color: var(--active-accent);
  border: 1px solid color-mix(in srgb, var(--active-accent) 20%, transparent);
  white-space: nowrap;
}

.workshop-bento-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.workshop-bento-card .styled-list {
  margin: 0.25rem 0 0 0;
  gap: 0.5rem;
}

.workshop-bento-card .styled-list li {
  font-size: 0.85rem;
  line-height: 1.45;
}

/* LEADERSHIP & EXPERTISE HIGH-END BENTO GRID */
.leadership-expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .leadership-expertise-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.bento-column-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.column-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--active-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.column-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-accent);
  font-size: 1.15rem;
}

.column-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.visual-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visual-item-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition-base);
  position: relative;
}

.visual-item-card:hover {
  border-color: var(--active-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--active-glow);
}

.visual-item-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem 0;
}

.visual-item-sublabel {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.visual-item-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Project Images & Figures */
.case-figure {
  margin: 2.5rem 0 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg-alt);
}

.case-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.case-figure-caption {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

/* Double Layout Grid */
.double-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .double-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Impact Section Stacked Layout */
#impact .double-layout,
.impact-stacked-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
  align-items: stretch !important;
}

#impact .double-layout > div:first-child,
.impact-stacked-layout > div:first-child,
.impact-stacked-layout .impact-narrative {
  max-width: 900px;
  width: 100%;
}

#impact .double-layout > div:first-child p,
.impact-stacked-layout > div:first-child p,
.impact-stacked-layout .impact-narrative p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 1rem;
}

#impact .double-layout > div:first-child p:last-child,
.impact-stacked-layout > div:first-child p:last-child,
.impact-stacked-layout .impact-narrative p:last-child {
  margin-bottom: 0;
}

#impact .creator-impact-dashboard,
#impact .clinical-impact-dashboard,
#impact .decision-funnel-card,
.impact-stacked-layout .creator-impact-dashboard,
.impact-stacked-layout .clinical-impact-dashboard,
.impact-stacked-layout .decision-funnel-card {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

/* Outcome Blueprint Callout Card */
.outcome-blueprint-card {
  margin-top: 2rem;
  background: color-mix(in srgb, var(--active-accent) 4%, var(--surface));
  border: 1.5px solid var(--active-accent);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 4px 16px var(--active-glow);
}

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

.outcome-blueprint-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--active-accent);
  font-size: 1.15rem;
}

.outcome-blueprint-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}

.outcome-blueprint-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
}

.case-cta-buttons {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Code-Native Graphic Assets, Models & Funnel Component System
   Clean, window-chromeless, scalable diagrams, charts and models
   ========================================================================== */

.code-model-wrapper {
  margin: 1.5rem 0 0 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 0 16px var(--active-glow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.code-model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.code-model-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--active-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-model-title.muted {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
}

.code-model-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--active-accent) 25%, transparent);
}

.graphic-legend-footer {
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px stroke var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.graphic-legend-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--fg);
}

/* 1. RESEARCH AFFINITY CLUSTER ABSTRACTED UI (CHROMELESS) */
.affinity-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .affinity-cluster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .affinity-cluster-grid {
    grid-template-columns: 1fr !important;
  }

  .affinity-cluster-column {
    grid-column: span 1 !important;
  }

  .decision-flow-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .code-model-wrapper {
    padding: 0.85rem !important;
  }

  .graphic-legend-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
}

.affinity-cluster-column {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(8px);
  transition: var(--transition-base);
}

.affinity-cluster-column:hover {
  border-color: color-mix(in srgb, var(--active-accent) 40%, var(--border));
  box-shadow: 0 4px 16px var(--active-glow);
}

.affinity-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.affinity-column-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.affinity-column-tag.routines {
  background: color-mix(in srgb, #3b82f6 14%, transparent);
  color: #3b82f6;
  border: 1px solid color-mix(in srgb, #3b82f6 30%, transparent);
}

.affinity-column-tag.trust {
  background: color-mix(in srgb, #10b981 14%, transparent);
  color: #10b981;
  border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}

.affinity-column-tag.cognitive {
  background: color-mix(in srgb, #ec4899 14%, transparent);
  color: #ec4899;
  border: 1px solid color-mix(in srgb, #ec4899 30%, transparent);
}

.affinity-column-tag.accessibility {
  background: color-mix(in srgb, #8b5cf6 14%, transparent);
  color: #8b5cf6;
  border: 1px solid color-mix(in srgb, #8b5cf6 30%, transparent);
}

.affinity-column-tag.alignment {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #f59e0b;
  border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}

.affinity-note-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--fg);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.affinity-note-card:hover {
  transform: translateY(-2px);
  border-color: var(--active-accent);
}

.affinity-note-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 2. WORKSHOP KANO 2X2 DIAGRAM MODEL */
.kano-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  position: relative;
}

@media (max-width: 768px) {
  .kano-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.kano-quadrant-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-base);
}

.kano-quadrant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--active-glow);
}

.kano-quadrant-card.delighter {
  border-left: 4px solid #10b981;
}

.kano-quadrant-card.satisfier {
  border-left: 4px solid #f43f5e;
}

.kano-quadrant-card.musthave {
  border-left: 4px solid #3b82f6;
}

.kano-quadrant-card.basic {
  border-left: 4px solid #a855f7;
}

.kano-quadrant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.kano-quadrant-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kano-quadrant-card.delighter .kano-quadrant-title {
  color: #10b981;
}

.kano-quadrant-card.satisfier .kano-quadrant-title {
  color: #f43f5e;
}

.kano-quadrant-card.musthave .kano-quadrant-title {
  color: #3b82f6;
}

.kano-quadrant-card.basic .kano-quadrant-title {
  color: #a855f7;
}

.kano-feature-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kano-feature-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kano-feature-quote {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

/* 3. USER TESTING A/B COMPARISON MODEL */
.ab-testing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .ab-testing-grid {
    grid-template-columns: 1fr;
  }
}

.ab-variant-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  backdrop-filter: blur(8px);
  transition: var(--transition-base);
}

.ab-variant-card.winner {
  border-color: var(--active-accent);
  box-shadow: 0 0 20px var(--active-glow);
}

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

.ab-variant-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ab-variant-card.control .ab-variant-badge {
  background: color-mix(in srgb, var(--muted) 15%, transparent);
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
}

.ab-variant-card.winner .ab-variant-badge {
  background: color-mix(in srgb, var(--active-accent) 15%, transparent);
  color: var(--active-accent);
  border: 1px solid color-mix(in srgb, var(--active-accent) 30%, transparent);
}

.ab-snippet-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ab-stat-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ab-stat-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

.ab-stat-progress-track {
  height: 8px;
  background: color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 4px;
  overflow: hidden;
}

.ab-stat-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4. DECISION FUNNEL COMPARISON (EXACT DATASET FROM IMPACT.PNG) */
.decision-funnel-card {
  margin-top: 1.75rem;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 6px 24px var(--active-glow);
}

.funnel-header-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.funnel-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.funnel-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.funnel-legend-color.pre {
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.funnel-legend-color.post {
  background: var(--active-accent);
}

.funnel-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(100px, 1.3fr) minmax(100px, auto) minmax(120px, max-content);
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 820px) {
  .funnel-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
  }
}

.funnel-stage-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
}

.funnel-bars-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.funnel-bar-outer {
  height: 10px;
  background: color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.funnel-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s ease;
}

.funnel-bar-fill.pre {
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.funnel-bar-fill.post {
  background: var(--active-accent);
}

.funnel-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  justify-content: flex-end;
}

.funnel-num-pre {
  color: var(--muted);
  opacity: 0.75;
}

.funnel-num-post {
  color: var(--active-accent);
  font-weight: 700;
}

.funnel-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  width: fit-content;
  min-width: max-content;
  justify-self: end;
}

.funnel-badge.up {
  background: color-mix(in srgb, #10b981 15%, transparent);
  color: #10b981;
}

.funnel-badge.down {
  background: color-mix(in srgb, #f43f5e 15%, transparent);
  color: #f43f5e;
}

.funnel-badge.neutral {
  opacity: 0;
}

/* SVG GRAPHIC & CHART SCALABLE CONTAINERS */
.svg-graphic-container {
  width: 100%;
  height: auto;
  max-height: 260px;
}

/* ==========================================================================
   Micro-UI Illustration Component System (Bento Grid Visuals)
   ========================================================================== */

/* Minimalist User Testing Vector Illustrations */
.testing-illustration-box {
  margin: 1rem 0 0.85rem 0;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 155px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-base);
}

.testing-card:hover .testing-illustration-box {
  border-color: color-mix(in srgb, var(--active-accent) 30%, var(--border));
}

.testing-illustration-box svg {
  width: 100%;
  height: 100%;
  max-height: 140px;
  display: block;
}

/* ==========================================================================
   Presentation Deck Mode & Prototype Mode (Fullscreen App Overlays)
   ========================================================================== */

.presentation-deck-container,
.prototype-viewer-container {
  display: none !important;
}

body[data-detail-mode="deck"] > main,
body[data-detail-mode="deck"] #global-header,
body[data-detail-mode="deck"] #simple-footer,
body[data-detail-mode="deck"] #case-toc,
body[data-detail-mode="deck"] .case-toc-fab,
body[data-detail-mode="deck"] .section-divider-wrapper,
body[data-detail-mode="deck"] .fab-container,
body[data-detail-mode="deck"] #floating-actions,
body[data-detail-mode="prototype"] > main,
body[data-detail-mode="prototype"] #global-header,
body[data-detail-mode="prototype"] #simple-footer,
body[data-detail-mode="prototype"] #case-toc,
body[data-detail-mode="prototype"] .case-toc-fab,
body[data-detail-mode="prototype"] .section-divider-wrapper,
body[data-detail-mode="prototype"] .fab-container,
body[data-detail-mode="prototype"] #floating-actions {
  display: none !important;
}

body[data-detail-mode="deck"],
body[data-detail-mode="prototype"] {
  overflow: hidden !important;
}

body[data-detail-mode="deck"] .presentation-deck-container {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  user-select: none;
}

body[data-detail-mode="prototype"] .prototype-viewer-container {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  user-select: none;
}

/* Deck Top Bar */
.deck-top-bar {
  height: 56px;
  padding: 0 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  flex-shrink: 0;
}

.deck-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.deck-brand .brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.deck-brand .brand-logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.deck-title-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.deck-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.deck-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  transition: var(--transition-base);
}

.deck-action-btn:hover {
  background: var(--bg-alt);
  border-color: var(--active-accent);
}

.deck-exit-btn {
  background: color-mix(in srgb, var(--active-accent) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--active-accent) 40%, transparent);
  color: var(--active-accent);
}

.deck-exit-btn:hover {
  background: var(--active-accent);
  color: #ffffff;
}

/* Slides Stage */
.deck-slides-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem 4.5rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97) translateY(12px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.deck-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.deck-slide-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Slide Header Inner */
.deck-slide-header-inner {
  margin-bottom: 1.75rem;
}

.deck-slide-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--active-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.deck-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

/* Slide 1: Hero */
.deck-slide-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.deck-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--active-accent);
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.6rem;
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  border-radius: var(--radius-sm);
}

.deck-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.deck-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2rem;
}

.deck-stat-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.deck-stat-card {
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.deck-stat-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--active-accent);
}

.deck-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.deck-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Two Column Layout */
.deck-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.deck-card-visual-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deck-metric-highlight {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.deck-huge-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: #f43f5e;
  line-height: 1;
}

.deck-highlight-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fg);
}

.deck-risk-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deck-risk-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.deck-focus-card {
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--active-accent) 15%, transparent) 0%, transparent 60%), var(--surface);
  border-color: color-mix(in srgb, var(--active-accent) 30%, var(--border));
}

.deck-focus-icon {
  font-size: 1.75rem;
  color: var(--active-accent);
  margin-bottom: 0.75rem;
}

.deck-hmw-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--active-accent);
  margin-bottom: 0.5rem;
}

.deck-hmw-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.deck-pill-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.deck-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
}

/* Slide 3: Affinity Grid */
.deck-affinity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.deck-affinity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.deck-aff-head {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.deck-aff-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.deck-aff-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Slide 4: Kano Grid */
.deck-kano-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.deck-kano-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.deck-kano-head {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.deck-kano-box.delighter .deck-kano-head { color: #10b981; }
.deck-kano-box.satisfier .deck-kano-head { color: #f43f5e; }
.deck-kano-box.musthave .deck-kano-head { color: #3b82f6; }
.deck-kano-box.deprioritized .deck-kano-head { color: var(--muted); }

.deck-kano-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.deck-kano-items strong {
  color: var(--fg);
}

/* Slide 5: Pillars */
.deck-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.deck-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.deck-pillar-img-wrap {
  height: 160px;
  overflow: hidden;
  background: var(--bg);
}

.deck-pillar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-pillar-body {
  padding: 1rem;
}

.deck-pillar-body h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.deck-pillar-body p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Slide 6: A/B Compare */
.deck-graph-card {
  gap: 1.25rem;
}

.deck-graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.deck-badge-success {
  background: color-mix(in srgb, #10b981 15%, transparent);
  color: #10b981;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.deck-stat-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.deck-stat-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.deck-stat-mini-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.deck-stat-big-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.deck-stat-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.deck-bar-prog-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.deck-bar-prog {
  height: 8px;
  border-radius: 4px;
}

.deck-bar-prog.control {
  background: var(--muted);
}

.deck-bar-prog.variant {
  background: #10b981;
}

.deck-metric-split {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.deck-split-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.deck-split-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Slide 7: Funnel */
.deck-funnel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.deck-funnel-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.deck-funnel-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.deck-funnel-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.deck-funnel-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Slide 8: Summary */
.deck-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.deck-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg);
}

.deck-cta-col {
  display: flex;
  justify-content: center;
}

.deck-cta-card {
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--active-accent) 15%, transparent) 0%, transparent 60%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--active-accent) 30%, var(--border));
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
}

.deck-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.65rem;
}

.deck-cta-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.deck-cta-btns {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Bottom HUD Bar (10% Opacity Default, 100% on Hover, Flat Outline Divider) */
.deck-hud-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  flex-shrink: 0;
  gap: 1.5rem;
  z-index: 10000;
  opacity: 0.1;
  transform: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.deck-hud-bar:hover,
.deck-hud-bar:focus-within {
  opacity: 1;
}

/* Actions in Deck HUD Right */
/* Deck HUD FAB Row & Popovers (Identical to FAB) */
.deck-hud-right {
  display: flex;
  align-items: center;
  position: relative;
}

.deck-fab-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deck-fab-buttons-row .fab-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  box-shadow: none;
}

.deck-fab-buttons-row .deck-exit-btn {
  background: color-mix(in srgb, var(--active-accent) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--active-accent) 35%, transparent);
  color: var(--active-accent);
}

.deck-fab-buttons-row .deck-exit-btn:hover {
  background: var(--active-accent);
  color: #ffffff;
}

/* Ensure deck popovers position nicely right above the deck HUD */
.deck-hud-right .fab-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  z-index: 10002;
}

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

.deck-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg);
  cursor: pointer;
  transition: var(--transition-base);
}

.deck-nav-btn:hover:not(:disabled) {
  background: var(--bg-alt);
  border-color: var(--active-accent);
}

.deck-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.deck-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg);
  min-width: 60px;
  text-align: center;
}

.deck-progress-track {
  flex: 1;
  max-width: 300px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.deck-progress-fill {
  height: 100%;
  background: var(--active-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-hud-right {
  display: flex;
  align-items: center;
}

.deck-shortcut-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.deck-shortcut-hint kbd {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: inherit;
}

@media (max-width: 800px) {
  .deck-slide-hero,
  .deck-two-col-grid,
  .deck-affinity-grid,
  .deck-kano-grid,
  .deck-funnel-grid {
    grid-template-columns: 1fr;
  }
  .deck-pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
  .deck-shortcut-hint {
    display: none;
  }
}

/* -------------------------------------------------------------
 * UNIFIED REAL SCALED SLIDE THUMBNAILS (For Speaker Notes Window)
 * ------------------------------------------------------------- */
.thumb-card {
  background: var(--card-bg, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.3rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
  text-align: left;
  overflow: hidden;
}

.thumb-card:hover {
  border-color: var(--active-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.thumb-card.is-active {
  border-color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--active-accent) 30%, transparent);
}

.thumb-card.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--active-accent);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 6px var(--active-accent);
}

.thumb-mini-slide-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid var(--border);
}

.thumb-mini-slide-canvas {
  width: 1200px !important;
  height: 675px !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transform-origin: top left !important;
  transform: scale(0.12);
  pointer-events: none !important;
  user-select: none !important;
  box-sizing: border-box !important;
  color: var(--fg) !important;
  font-family: var(--font-body) !important;
  background: var(--bg) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem 2.5rem !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.thumb-mini-slide-canvas * {
  pointer-events: none !important;
}

/* Exact Desktop Slide Stage Override */
.thumb-mini-slide-canvas .deck-slide {
  position: static !important;
  opacity: 1 !important;
  pointer-events: none !important;
  transform: none !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.thumb-mini-slide-canvas .deck-slide-content {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Slide 1: Hero Layout */
.thumb-mini-slide-canvas .deck-slide-hero {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 2.5rem !important;
  align-items: center !important;
}
.thumb-mini-slide-canvas .deck-hero-title {
  font-family: var(--font-display) !important;
  font-size: 2.75rem !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  line-height: 1.15 !important;
  margin-bottom: 1rem !important;
}
.thumb-mini-slide-canvas .deck-hero-subtitle {
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  color: var(--muted) !important;
  margin-bottom: 2rem !important;
}
.thumb-mini-slide-canvas .deck-stat-pills {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.85rem !important;
}
.thumb-mini-slide-canvas .deck-stat-card {
  padding: 0.85rem 1.1rem !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
}
.thumb-mini-slide-canvas .deck-stat-val {
  font-family: var(--font-display) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--active-accent) !important;
}
.thumb-mini-slide-canvas .deck-stat-lbl {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  color: var(--muted) !important;
}
.thumb-mini-slide-canvas .deck-hero-img {
  width: 100% !important;
  height: auto !important;
  max-height: 320px !important;
  object-fit: cover !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
}

/* Header & Tags */
.thumb-mini-slide-canvas .deck-slide-header-inner {
  margin-bottom: 1.75rem !important;
}
.thumb-mini-slide-canvas .deck-slide-tag {
  display: inline-block !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  color: var(--active-accent) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.4rem !important;
}
.thumb-mini-slide-canvas .deck-slide-title {
  font-family: var(--font-display) !important;
  font-size: 2.15rem !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  line-height: 1.2 !important;
}

/* Two-Column Grid */
.thumb-mini-slide-canvas .deck-two-col-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.75rem !important;
}
.thumb-mini-slide-canvas .deck-card-visual-block {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.75rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.thumb-mini-slide-canvas .deck-metric-highlight {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  margin-bottom: 1.5rem !important;
}
.thumb-mini-slide-canvas .deck-huge-num {
  font-family: var(--font-display) !important;
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
.thumb-mini-slide-canvas .deck-highlight-desc {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: var(--fg) !important;
}
.thumb-mini-slide-canvas .deck-risk-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}
.thumb-mini-slide-canvas .deck-risk-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  font-size: 0.88rem !important;
  color: var(--muted) !important;
}
.thumb-mini-slide-canvas .deck-focus-card {
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--active-accent) 15%, transparent) 0%, transparent 60%), var(--surface) !important;
  border-color: color-mix(in srgb, var(--active-accent) 30%, var(--border)) !important;
}
.thumb-mini-slide-canvas .deck-focus-icon {
  font-size: 1.75rem !important;
  color: var(--active-accent) !important;
  margin-bottom: 0.75rem !important;
}
.thumb-mini-slide-canvas .deck-hmw-heading {
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--active-accent) !important;
  margin-bottom: 0.5rem !important;
}
.thumb-mini-slide-canvas .deck-hmw-quote {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--fg) !important;
  line-height: 1.45 !important;
  margin-bottom: 1.5rem !important;
}
.thumb-mini-slide-canvas .deck-pill-cluster {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}
.thumb-mini-slide-canvas .deck-pill {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  padding: 0.3rem 0.65rem !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--fg) !important;
}

/* Slide 3: Affinity Grid */
.thumb-mini-slide-canvas .deck-affinity-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.25rem !important;
}
.thumb-mini-slide-canvas .deck-affinity-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.35rem 1.5rem !important;
}
.thumb-mini-slide-canvas .deck-aff-head {
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 0.65rem !important;
}
.thumb-mini-slide-canvas .deck-aff-quote {
  font-size: 0.95rem !important;
  font-style: italic !important;
  color: var(--fg) !important;
  line-height: 1.5 !important;
  margin-bottom: 0.75rem !important;
}
.thumb-mini-slide-canvas .deck-aff-sub {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  color: var(--muted) !important;
}

/* Slide 4: Kano Grid */
.thumb-mini-slide-canvas .deck-kano-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.25rem !important;
}
.thumb-mini-slide-canvas .deck-kano-box {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.35rem !important;
}
.thumb-mini-slide-canvas .deck-kano-head {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  margin-bottom: 0.75rem !important;
}
.thumb-mini-slide-canvas .deck-kano-items {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  font-size: 0.82rem !important;
  color: var(--muted) !important;
}

/* Slide 5: Pillars Grid */
.thumb-mini-slide-canvas .deck-pillars-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
}
.thumb-mini-slide-canvas .deck-pillar-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.thumb-mini-slide-canvas .deck-pillar-img-wrap {
  height: 160px !important;
  overflow: hidden !important;
  background: var(--bg) !important;
}
.thumb-mini-slide-canvas .deck-pillar-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.thumb-mini-slide-canvas .deck-pillar-body {
  padding: 1rem !important;
}
.thumb-mini-slide-canvas .deck-pillar-body h4 {
  font-family: var(--font-display) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  margin-bottom: 0.35rem !important;
}
.thumb-mini-slide-canvas .deck-pillar-body p {
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  color: var(--muted) !important;
}

/* Slide 6: A/B Compare */
.thumb-mini-slide-canvas .deck-stat-compare-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}
.thumb-mini-slide-canvas .deck-stat-box {
  padding: 1rem !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  display: flex !important;
  flex-direction: column !important;
}
.thumb-mini-slide-canvas .deck-stat-big-num {
  font-family: var(--font-display) !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin-bottom: 0.35rem !important;
}
.thumb-mini-slide-canvas .deck-bar-prog-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}
.thumb-mini-slide-canvas .deck-bar-prog {
  height: 8px !important;
  border-radius: 4px !important;
}
.thumb-mini-slide-canvas .deck-metric-split {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}
.thumb-mini-slide-canvas .deck-split-item h4 {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  color: var(--fg) !important;
  margin-bottom: 0.35rem !important;
}

/* Slide 7: Funnel Grid */
.thumb-mini-slide-canvas .deck-funnel-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
}
.thumb-mini-slide-canvas .deck-funnel-metric {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.75rem 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.thumb-mini-slide-canvas .deck-funnel-val {
  font-family: var(--font-display) !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin-bottom: 0.5rem !important;
}
.thumb-mini-slide-canvas .deck-funnel-label {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  margin-bottom: 0.35rem !important;
}

/* Slide 8: Summary / CTA */
.thumb-mini-slide-canvas .deck-summary-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  margin-top: 1.25rem !important;
}
.thumb-mini-slide-canvas .deck-summary-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.4rem 0.8rem !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  color: var(--fg) !important;
}
.thumb-mini-slide-canvas .deck-cta-card {
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--active-accent) 15%, transparent) 0%, transparent 60%), var(--surface) !important;
  border: 1px solid color-mix(in srgb, var(--active-accent) 30%, var(--border)) !important;
  border-radius: var(--radius-lg) !important;
  padding: 2.25rem !important;
  text-align: center !important;
}
.thumb-mini-slide-canvas .deck-cta-card h3 {
  font-family: var(--font-display) !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  margin-bottom: 0.65rem !important;
}
.thumb-mini-slide-canvas .deck-cta-card p {
  font-size: 0.9rem !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
  margin-bottom: 1.5rem !important;
}
.thumb-mini-slide-canvas .deck-cta-btns {
  display: inline-flex !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.thumb-caption {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow: hidden;
  margin-top: 0.05rem;
}

.thumb-caption-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--active-accent);
  flex-shrink: 0;
}

.thumb-caption-title {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thumb-card:hover .thumb-caption-title,
.thumb-card.is-active .thumb-caption-title {
  color: var(--fg);
}

/* ==========================================================================
   SPEAKER NOTES WINDOW UI
   ========================================================================== */
body.speaker-notes-body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  padding: 0.75rem 0.95rem !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  opacity: 1 !important;
  animation: none !important;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.speaker-notes-body .top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.speaker-notes-body .brand-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.speaker-notes-body .brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.speaker-notes-body .brand-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.speaker-notes-body .top-controls-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.speaker-notes-body .timer-cluster {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.speaker-notes-body .timer-box {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--active-accent) 25%, transparent);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.speaker-notes-body .timer-ctrl-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.speaker-notes-body .timer-ctrl-btn:hover {
  color: var(--fg);
  border-color: var(--active-accent);
  background: var(--bg-alt);
}

.speaker-notes-body .clock-display {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.speaker-notes-body .slide-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.35rem 0 0.25rem 0;
  flex-shrink: 0;
}

.speaker-notes-body .slide-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--active-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  padding: 0.1rem 0.38rem;
  border-radius: var(--radius-sm);
}

.speaker-notes-body .slide-counter {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.speaker-notes-body .progress-bar-wrap {
  width: 100%;
  height: 3px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border-radius: 2px;
  margin-bottom: 0.4rem;
  overflow: hidden;
  flex-shrink: 0;
}

.speaker-notes-body .progress-bar-fill {
  height: 100%;
  background: var(--active-accent);
  width: 12.5%;
  transition: width 0.25s ease;
}

.speaker-notes-body .notes-container {
  flex: 1;
  min-height: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  overflow-y: auto;
  user-select: text;
  font-size: 0.95rem;
  line-height: 1.55;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.speaker-notes-body .notes-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0.2rem 0 0.5rem 0;
}

.speaker-notes-body .notes-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.speaker-notes-body .notes-highlight {
  background: color-mix(in srgb, var(--active-accent) 8%, transparent);
  border-left: 3px solid var(--active-accent);
  padding: 0.5rem 0.75rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  color: var(--fg);
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

.speaker-notes-body .notes-list {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.speaker-notes-body .notes-list li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.speaker-notes-body .notes-list strong {
  color: var(--fg);
}

.speaker-notes-body .next-up-card {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.7rem;
  margin: 0.4rem 0 0.35rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.speaker-notes-body .next-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.speaker-notes-body .next-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speaker-notes-body .thumb-accordion-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.4rem;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.speaker-notes-body .thumb-accordion-wrap:hover {
  border-color: var(--active-accent);
}

.speaker-notes-body .thumb-accordion-toggle {
  width: 100%;
  padding: 0.35rem 0.6rem;
  background: var(--bg-alt);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  transition: all 0.15s ease;
  user-select: none;
}

.speaker-notes-body .thumb-accordion-toggle:hover {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.speaker-notes-body .accordion-title-cluster {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.speaker-notes-body .accordion-title-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg);
  text-transform: uppercase;
}

.speaker-notes-body .gallery-count-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent) 12%, transparent);
  padding: 0.06rem 0.32rem;
  border-radius: 3px;
}

.speaker-notes-body .accordion-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.speaker-notes-body .accordion-hint {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--muted);
}

.speaker-notes-body .accordion-caret {
  font-size: 0.76rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.speaker-notes-body .thumb-accordion-wrap.is-collapsed .accordion-caret {
  transform: rotate(-90deg);
}

.speaker-notes-body .thumb-accordion-wrap.is-collapsed .thumb-accordion-toggle {
  border-bottom: none;
}

.speaker-notes-body .thumb-accordion-body {
  max-height: 195px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.45rem;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.speaker-notes-body .thumb-accordion-wrap.is-collapsed .thumb-accordion-body {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

.speaker-notes-body .thumb-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.speaker-notes-body .nav-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.speaker-notes-body .nav-action-btn {
  flex: 1;
  padding: 0.45rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.speaker-notes-body .nav-action-btn:hover:not(:disabled) {
  background: var(--bg-alt);
  border-color: var(--active-accent);
  color: var(--active-accent);
}

.speaker-notes-body .nav-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.speaker-notes-body .hotkey-hint {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.22rem;
  flex-shrink: 0;
}

/* ==========================================================================
   5. BESPOKE CODE ARTIFACTS: JTBD, JOURNEY MAP, RISK LEDGER
   ========================================================================== */

/* --- 5A. JOBS TO BE DONE (JTBD) FRAMEWORK --- */
.jtbd-framework-wrapper {
  margin-top: 1.5rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.jtbd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
}

.jtbd-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jtbd-title-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--active-accent) 15%, transparent);
  color: var(--active-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.jtbd-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.jtbd-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.jtbd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

@media (max-width: 992px) {
  .jtbd-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .jtbd-grid {
    grid-template-columns: 1fr;
  }
}

.jtbd-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.jtbd-card:hover {
  transform: translateY(-2px);
  border-color: var(--active-accent);
  box-shadow: 0 6px 20px var(--active-glow);
}

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

.jtbd-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.jtbd-pill.clarity {
  background: color-mix(in srgb, #3b82f6 15%, transparent);
  color: #3b82f6;
  border: 1px solid color-mix(in srgb, #3b82f6 30%, transparent);
}

.jtbd-pill.remediation {
  background: color-mix(in srgb, #10b981 15%, transparent);
  color: #10b981;
  border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}

.jtbd-pill.transparency {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #f59e0b;
  border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}

.jtbd-pill.empathy {
  background: color-mix(in srgb, #ec4899 15%, transparent);
  color: #ec4899;
  border: 1px solid color-mix(in srgb, #ec4899 30%, transparent);
}

.jtbd-pill.parity {
  background: color-mix(in srgb, #8b5cf6 15%, transparent);
  color: #8b5cf6;
  border: 1px solid color-mix(in srgb, #8b5cf6 30%, transparent);
}

.jtbd-pill.agency {
  background: color-mix(in srgb, #06b6d4 15%, transparent);
  color: #06b6d4;
  border: 1px solid color-mix(in srgb, #06b6d4 30%, transparent);
}

.jtbd-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.jtbd-job-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.jtbd-statement {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
  position: relative;
  padding-left: 0.75rem;
  border-left: 2px solid color-mix(in srgb, var(--active-accent) 40%, var(--border));
}

.jtbd-card-footer {
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- 5B. USER JOURNEY MAP (LOAN APPLICATION FLOW) --- */
.journey-map-wrapper {
  margin-top: 1.5rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.journey-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
}

.journey-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

@media (max-width: 1024px) {
  .journey-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .journey-map-grid {
    grid-template-columns: 1fr;
  }
}

.journey-stage-column {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.journey-stage-column:hover {
  transform: translateY(-2px);
  border-color: var(--active-accent);
  box-shadow: 0 6px 20px var(--active-glow);
}

.journey-stage-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.journey-stage-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent) 14%, transparent);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.journey-stage-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.journey-cell {
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journey-cell-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.journey-cell-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--fg);
  margin: 0;
}

/* User Goal Cell */
.journey-cell.goal {
  background: color-mix(in srgb, #3b82f6 8%, transparent);
  border: 1px solid color-mix(in srgb, #3b82f6 20%, transparent);
}
.journey-cell.goal .journey-cell-label {
  color: #3b82f6;
}

/* Pain Point Cell */
.journey-cell.pain {
  background: color-mix(in srgb, #ef4444 8%, transparent);
  border: 1px solid color-mix(in srgb, #ef4444 20%, transparent);
}
.journey-cell.pain .journey-cell-label {
  color: #ef4444;
}

/* Design Move Cell */
.journey-cell.move {
  background: color-mix(in srgb, #10b981 10%, transparent);
  border: 1px solid color-mix(in srgb, #10b981 25%, transparent);
}
.journey-cell.move .journey-cell-label {
  color: #10b981;
}

/* --- 5C. RISK LEDGER MATRIX --- */
.risk-ledger-wrapper {
  margin-top: 1.75rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.risk-ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.risk-legend-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.risk-legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.risk-dot.high {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}
.risk-dot.med {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}
.risk-dot.low {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.risk-table-container {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.risk-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.risk-ledger-table th {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.risk-ledger-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.risk-ledger-table tbody tr:last-child td {
  border-bottom: none;
}

.risk-ledger-table tbody tr {
  transition: background 0.15s ease;
}

.risk-ledger-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}

.risk-issue-name {
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.risk-badge.high {
  background: color-mix(in srgb, #ef4444 14%, transparent);
  color: #ef4444;
  border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
}

.risk-badge.med {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #f59e0b;
  border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}

.risk-badge.low {
  background: color-mix(in srgb, #10b981 14%, transparent);
  color: #10b981;
  border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}

/* --- 5D. CLINICAL OUTCOMES & HEALTHCARE ECONOMICS DASHBOARD (MEDTECH) --- */
.clinical-impact-dashboard {
  margin-top: 1.75rem;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px var(--active-glow);
}

.clinical-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.clinical-header-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clinical-header-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--active-accent) 15%, transparent);
  color: var(--active-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.clinical-header-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.clinical-header-subtitle {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
}

.clinical-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.clinical-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.clinical-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.clinical-legend-dot.baseline {
  background: color-mix(in srgb, var(--muted) 45%, transparent);
}

.clinical-legend-dot.pilot {
  background: var(--active-accent);
}

.clinical-endpoints-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.clinical-endpoint-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(100px, 1.3fr) minmax(100px, auto) minmax(130px, max-content);
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.clinical-endpoint-item:hover {
  transform: translateY(-2px);
  border-color: var(--active-accent);
  box-shadow: 0 4px 16px var(--active-glow);
}

@media (max-width: 900px) {
  .clinical-endpoint-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.85rem;
  }
}

.clinical-endpoint-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.clinical-endpoint-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
}

.clinical-endpoint-desc {
  font-size: 0.72rem;
  color: var(--muted);
}

.clinical-meters-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.clinical-meter-track {
  height: 8px;
  background: color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.clinical-meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.clinical-meter-fill.baseline {
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.clinical-meter-fill.pilot {
  background: var(--active-accent);
}

.clinical-endpoint-values {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  justify-content: flex-end;
}

.clinical-val-baseline {
  color: var(--muted);
  opacity: 0.8;
}

.clinical-val-pilot {
  color: var(--active-accent);
  font-weight: 700;
}

.clinical-endpoint-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
  width: fit-content;
  min-width: max-content;
  justify-self: end;
}

.clinical-endpoint-badge.positive {
  background: color-mix(in srgb, #10b981 14%, transparent);
  color: #10b981;
  border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}

.clinical-roi-banner {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--active-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--active-accent) 25%, transparent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clinical-roi-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, #10b981 16%, transparent);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.clinical-roi-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--fg);
  margin: 0;
}

.clinical-roi-text strong {
  color: var(--active-accent);
}

/* ==========================================================================
   5. GENAI CREATOR SAAS IMPACT & AUDIO TELEMETRY DASHBOARD (JEGALABS)
   ========================================================================== */
.creator-impact-dashboard {
  margin-top: 1.75rem;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 6px 24px var(--active-glow);
}

.creator-impact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.75rem;
}

.creator-impact-legend {
  display: flex;
  gap: 1.5rem;
}

.creator-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.creator-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.creator-legend-color.pre {
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.creator-legend-color.post {
  background: var(--active-accent);
}

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

.creator-meter-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(100px, 1.3fr) minmax(100px, auto) minmax(130px, max-content);
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 820px) {
  .creator-meter-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
  }
}

.creator-meter-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
}

.creator-meter-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.creator-meter-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.creator-bar-outer {
  height: 6px;
  background: color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 3px;
  overflow: hidden;
}

.creator-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.creator-bar-fill.pre {
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.creator-bar-fill.post {
  background: var(--active-accent);
}

.creator-meter-values {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-val-pre {
  color: var(--muted);
}

.creator-val-post {
  color: var(--active-accent);
  font-weight: 700;
}

.creator-endpoint-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
  width: fit-content;
  min-width: max-content;
  justify-self: end;
}

.creator-endpoint-badge.positive {
  background: color-mix(in srgb, #10b981 14%, transparent);
  color: #10b981;
  border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}

.creator-roi-banner {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--active-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--active-accent) 25%, transparent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.creator-roi-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, #10b981 16%, transparent);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.creator-roi-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--fg);
  margin: 0;
}

.creator-roi-text strong {
  color: var(--active-accent);
}