/* ============================================================
   Service Maturity Assessment
   ============================================================ */

:root {
  --g2g-navy: #032D60;
  --g2g-blue: #0176D3;
  --g2g-l1-color: #E86E2C;
  --g2g-l2-color: #1B96FF;
  --g2g-l3-color: #04844B;
  --g2g-bg: #F3F3F3;
  --g2g-border: #ECEBEA;
  --g2g-card-bg: #FFFFFF;
  --g2g-text: #181818;
  --g2g-text-muted: #706E6B;
  --g2g-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --g2g-radius: 10px;
  --g2g-l1-bg: #FFF3EC;
  --g2g-l2-bg: #EBF5FF;
  --g2g-l3-bg: #E6F7EF;
}

.dark {
  --g2g-bg: #1a1a2e;
  --g2g-border: #2a2a3e;
  --g2g-card-bg: #222238;
  --g2g-text: #e0e0e0;
  --g2g-text-muted: #999;
  --g2g-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --g2g-l1-bg: #3a2518;
  --g2g-l2-bg: #172a3e;
  --g2g-l3-bg: #1a3028;
}

/* ---- App Container ---- */
.g2g-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 2rem;
  font-family: var(--font-sans, 'Salesforce Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  color: var(--g2g-text);
}

/* ---- Progress Bar ---- */
.g2g-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 1.25rem 0 0;
}
.g2g-progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.g2g-progress-step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--g2g-border);
  z-index: 0;
}
.g2g-progress-step:first-child::before { left: 50%; }
.g2g-progress-step:last-child::before { right: 50%; }

.g2g-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--g2g-border);
  color: var(--g2g-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.g2g-progress-step.active .g2g-progress-dot {
  background: var(--g2g-blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(1,118,211,0.18);
}
.g2g-progress-step.completed .g2g-progress-dot {
  background: var(--g2g-l3-color);
  color: #fff;
}
.g2g-progress-step.completed::before,
.g2g-progress-step.active::before {
  background: var(--g2g-blue);
}
.g2g-progress-label {
  display: block;
  font-size: 10px;
  color: var(--g2g-text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.g2g-progress-step.active .g2g-progress-label {
  color: var(--g2g-blue);
  font-weight: 600;
}

/* ---- Steps ---- */
.g2g-steps { position: relative; overflow: hidden; }
.g2g-step { display: none; }
.g2g-step.active { display: block; }

/* Directional slide animations */
.g2g-step.g2g-slide-forward {
  animation: g2gSlideInRight 0.35s ease;
}
.g2g-step.g2g-slide-back {
  animation: g2gSlideInLeft 0.35s ease;
}

@keyframes g2gSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes g2gSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes g2gFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Section Headers ---- */
.g2g-section-header {
  margin-bottom: 1.5rem;
}
.g2g-section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g2g-navy);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.dark .g2g-section-header h2 { color: #b8d4f0; }
.g2g-section-header p {
  font-size: 0.95rem;
  color: var(--g2g-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---- Form Elements ---- */
.g2g-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.g2g-form-grid.cols-1 { grid-template-columns: 1fr; }
.g2g-form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.g2g-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.g2g-field.full-width { grid-column: 1 / -1; }

.g2g-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g2g-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.g2g-field input,
.g2g-field select,
.g2g-field textarea {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--g2g-border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--g2g-card-bg);
  color: var(--g2g-text);
  transition: border-color 0.2s;
}
.g2g-field input:focus,
.g2g-field select:focus,
.g2g-field textarea:focus {
  outline: none;
  border-color: var(--g2g-blue);
  box-shadow: 0 0 0 3px rgba(1,118,211,0.12);
}
.g2g-field textarea {
  min-height: 80px;
  resize: vertical;
}

/* ---- Buttons ---- */
.g2g-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--g2g-border);
}
.g2g-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.g2g-btn-primary {
  background: var(--g2g-blue);
  color: #fff;
}
.g2g-btn-primary:hover { background: #015bb5; }
.g2g-btn-secondary {
  background: transparent;
  color: var(--g2g-text-muted);
  border: 1.5px solid var(--g2g-border);
}
.g2g-btn-secondary:hover {
  background: var(--g2g-bg);
  color: var(--g2g-text);
}
.g2g-btn-hero {
  background: var(--g2g-navy);
  color: #fff;
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  border-radius: 10px;
}
.g2g-btn-hero:hover { background: #021b3d; }
.dark .g2g-btn-hero { background: var(--g2g-blue); }
.dark .g2g-btn-hero:hover { background: #015bb5; }

.g2g-btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
}
.g2g-btn-danger {
  background: #e74c3c;
  color: #fff;
}
.g2g-btn-danger:hover { background: #c0392b; }

/* ---- Landing Page ---- */
.g2g-landing {
  text-align: center;
  padding: 3rem 1rem;
}
.g2g-landing h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--g2g-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.dark .g2g-landing h1 { color: #c5ddf5; }
.g2g-landing .g2g-subtitle {
  font-size: 1.1rem;
  color: var(--g2g-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.g2g-landing-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.g2g-saved-list {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.g2g-saved-list h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g2g-text-muted);
  margin-bottom: 0.75rem;
}

/* Responsive grid of square-ish assessment cards */
.g2g-saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.g2g-saved-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  aspect-ratio: 1 / 1;
  padding: 1rem 1rem 0.9rem;
  background: var(--g2g-card-bg);
  border: 1px solid var(--g2g-border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.g2g-saved-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g2g-l1-color), var(--g2g-l2-color), var(--g2g-l3-color));
  opacity: 0.35;
  transition: opacity 0.2s ease;
}
.g2g-saved-card.is-complete::before { opacity: 1; }
.g2g-saved-card:hover,
.g2g-saved-card:focus-visible {
  border-color: var(--g2g-blue);
  box-shadow: var(--g2g-shadow);
  transform: translateY(-2px);
  outline: none;
}
.g2g-saved-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(1,118,211,0.25), var(--g2g-shadow);
}

.g2g-saved-card-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--g2g-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.g2g-saved-card:hover .g2g-saved-card-delete,
.g2g-saved-card:focus-within .g2g-saved-card-delete { opacity: 1; }
.g2g-saved-card-delete:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
}

.g2g-saved-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-right: 2rem;
}
.g2g-saved-card-date {
  font-size: 0.72rem;
  color: var(--g2g-text-muted);
  white-space: nowrap;
}
.g2g-saved-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.g2g-saved-chip-complete {
  background: var(--g2g-l3-bg);
  color: var(--g2g-l3-color);
}
.g2g-saved-chip-draft {
  background: rgba(1,118,211,0.08);
  color: var(--g2g-blue);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.g2g-saved-card-title {
  font-family: var(--font-display, 'Avant Garde', 'Salesforce Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--g2g-text);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g2g-saved-card-sub {
  font-size: 0.78rem;
  color: var(--g2g-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g2g-saved-card-sub-muted { font-style: italic; opacity: 0.75; }

.g2g-saved-card-score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}
.g2g-saved-card-score-value {
  font-family: var(--font-display, 'Avant Garde', 'Salesforce Sans', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--g2g-navy);
  line-height: 1;
}
.g2g-saved-card-score-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g2g-blue);
  letter-spacing: 0.02em;
}
.g2g-saved-card-progress {
  margin-top: auto;
  height: 6px;
  border-radius: 999px;
  background: var(--g2g-border);
  overflow: hidden;
}
.g2g-saved-card-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--g2g-l1-color), var(--g2g-l2-color));
  border-radius: inherit;
  transition: width 0.3s ease;
}

.g2g-saved-card-actions {
  display: flex;
  gap: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--g2g-border);
}
.g2g-saved-action {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--g2g-text);
  background: transparent;
  border: 1px solid var(--g2g-border);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.g2g-saved-action:hover:not(:disabled) {
  background: var(--g2g-bg);
  border-color: var(--g2g-blue);
  color: var(--g2g-blue);
}
.g2g-saved-action:disabled { opacity: 0.6; cursor: progress; }
.g2g-saved-action-open {
  background: var(--g2g-blue);
  border-color: var(--g2g-blue);
  color: #fff;
}
.g2g-saved-action-open:hover:not(:disabled) {
  background: #005FB2;
  border-color: #005FB2;
  color: #fff;
}
.g2g-saved-action svg { flex-shrink: 0; }
.g2g-saved-action.is-loading { color: var(--g2g-text-muted); }

.g2g-saved-action-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: g2gSavedSpin 0.7s linear infinite;
}
@keyframes g2gSavedSpin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .g2g-saved-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .g2g-saved-card { aspect-ratio: auto; min-height: 220px; }
  .g2g-saved-card-delete { opacity: 1; }
}

/* ---- Company Hero & Department Pills ---- */
.g2g-company-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.g2g-company-hero h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g2g-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.dark .g2g-company-hero h2 { color: #c5ddf5; }
.g2g-company-hero h2 strong { color: var(--g2g-blue); }
.g2g-company-hero p {
  font-size: 1rem;
  color: var(--g2g-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.g2g-company-input-wrapper {
  max-width: 480px;
  margin: 0 auto;
}
.g2g-company-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.2rem;
  border: 2px solid var(--g2g-border);
  border-radius: 12px;
  background: var(--g2g-card-bg);
  color: var(--g2g-text);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.g2g-company-input:focus {
  border-color: var(--g2g-blue);
  box-shadow: 0 0 0 4px rgba(1, 118, 211, 0.12);
}
.g2g-company-input::placeholder { color: var(--g2g-text-muted); opacity: 0.6; }

.g2g-company-context {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.g2g-industry-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--g2g-blue);
  background: rgba(1, 118, 211, 0.08);
  border: 1px solid rgba(1, 118, 211, 0.2);
  border-radius: 20px;
}
.g2g-company-summary {
  font-size: 0.9rem;
  color: var(--g2g-text-muted);
  line-height: 1.5;
  max-width: 520px;
  margin: 0;
}

.g2g-pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.g2g-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.75rem;
  border: 2px solid var(--g2g-border);
  border-radius: 12px;
  background: var(--g2g-card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  width: 190px;
  min-height: 132px;
}
.g2g-pill:hover {
  border-color: var(--g2g-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.g2g-pill.selected {
  border-color: var(--g2g-blue);
  background: rgba(1, 118, 211, 0.08);
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.15);
  transform: translateY(-2px);
}
.g2g-pill-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.g2g-pill-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--g2g-text);
}
.g2g-pill.selected .g2g-pill-name { color: var(--g2g-blue); }
.g2g-pill-type {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}
.g2g-pill-type--b2c { color: #0e6027; background: rgba(14, 96, 39, 0.1); }
.g2g-pill-type--b2b { color: #6d28d9; background: rgba(109, 40, 217, 0.1); }
.g2g-pill-type--b2b2c { color: #b45309; background: rgba(180, 83, 9, 0.1); }
.g2g-pill-type--internal { color: #64748b; background: rgba(100, 116, 139, 0.1); }
.g2g-pill-check {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--g2g-blue);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}
.g2g-pill.selected .g2g-pill-check {
  opacity: 1;
  transform: scale(1);
}
.g2g-pill-desc {
  font-size: 0.75rem;
  color: var(--g2g-text-muted);
  line-height: 1.3;
}
.g2g-selected-count {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g2g-blue);
  background: rgba(1, 118, 211, 0.08);
  border-radius: 12px;
}
.g2g-muted { color: var(--g2g-text-muted); font-size: 0.9rem; }

.g2g-service-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 980px;
  margin: 0 auto 1.7rem;
}
.g2g-service-model-hero {
  max-width: 980px;
  padding-top: 1.75rem;
  padding-bottom: 1.2rem;
}
.g2g-service-model-heading {
  font-family: var(--font-display, 'Avant Garde', 'Salesforce Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  margin-bottom: 0.6rem;
}
#g2g-service-model-instructions {
  margin-bottom: 1.4rem;
}
.g2g-service-model-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--g2g-blue);
  font-weight: 600;
}
.g2g-service-model-loading .g2g-spinner-sm {
  border-color: rgba(1, 118, 211, 0.25);
  border-top-color: var(--g2g-blue);
}
.g2g-service-model-hero .g2g-form-grid {
  margin-top: 0.2rem;
  row-gap: 1rem;
}
.g2g-service-model-hero .g2g-field.full-width {
  margin-top: 0.85rem;
}
.g2g-service-model-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--g2g-border);
  background: var(--g2g-card-bg);
  color: var(--g2g-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.g2g-service-model-card:hover {
  border-color: var(--g2g-blue);
  transform: translateY(-2px);
}
.g2g-service-model-card.selected {
  border-color: var(--g2g-blue);
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.14);
  background: rgba(1, 118, 211, 0.06);
}
.g2g-service-model-title {
  font-size: 0.94rem;
  font-weight: 700;
}
.g2g-service-model-subtitle {
  font-size: 0.76rem;
  color: var(--g2g-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.g2g-service-model-desc {
  font-size: 0.82rem;
  color: var(--g2g-text-muted);
  line-height: 1.35;
}

.g2g-inline-error {
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes g2g-shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}
.g2g-shake { animation: g2g-shake 0.5s ease; }

/* ---- Channel Strategy prep (before maturity cards) ---- */
.g2g-channel-page-indicator {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--g2g-border);
  border-radius: 10px;
  background: var(--g2g-card-bg);
  color: var(--g2g-text-muted);
  font-size: 0.86rem;
}
.g2g-channel-prep {
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
  display: grid;
  gap: 0.75rem;
}
.g2g-channel-prep-block {
  border: 1px solid var(--g2g-border);
  border-radius: 10px;
  background: var(--g2g-card-bg);
  padding: 0.9rem 1rem;
}
.g2g-channel-prep-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.96rem;
  color: var(--g2g-navy);
}
.g2g-channel-prep-block p {
  margin: 0;
  color: var(--g2g-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.g2g-channel-map-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.g2g-channel-map-col {
  border: 1px solid var(--g2g-border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}
.g2g-channel-map-col h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.g2g-channel-map-col.no-touch h4 { color: #04844B; }
.g2g-channel-map-col.low-touch h4 { color: #0176D3; }
.g2g-channel-map-col.high-touch h4 { color: #E86E2C; }
.g2g-channel-map-col ul {
  margin: 0;
  padding-left: 1rem;
}
.g2g-channel-map-col li {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.g2g-channel-empty {
  font-size: 0.78rem !important;
  color: var(--g2g-text-muted);
}
.g2g-channel-decision {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(1, 118, 211, 0.08);
  color: var(--g2g-text);
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
}
.g2g-ifd-block {
  border-left: 3px solid var(--g2g-blue);
}

/* ---- Manual assessment notice (e.g., Service Console) ---- */
.g2g-manual-assess-notice {
  border-left: 3px solid #E86E2C;
  background: rgba(232, 110, 44, 0.08);
}
.g2g-manual-assess-notice h3 {
  color: #B45309 !important;
}
.dark .g2g-manual-assess-notice h3 { color: #F0A868 !important; }
.g2g-manual-assess-notice .g2g-discovery-q {
  margin-top: 0.55rem;
}

/* ---- Proposed Information Architecture (Intent Engine) ---- */
.g2g-ia-intent-engine {
  margin-top: 1.5rem;
  border: 1px solid var(--g2g-border);
  border-radius: 12px;
  background: var(--g2g-card-bg);
  padding: 1.1rem 1.25rem;
}
.g2g-ia-ie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.g2g-ia-ie-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--g2g-navy);
}
.dark .g2g-ia-ie-header h3 { color: #e0e0e0; }
.g2g-ia-ie-intro {
  margin: 0 0 0.85rem;
  color: var(--g2g-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.g2g-ia-ie-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.g2g-ia-ie-cat-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--g2g-text);
  margin-bottom: 0.3rem;
}
.g2g-ia-ie-cat ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
}
.g2g-ia-ie-cat li {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--g2g-text);
}
.g2g-ia-ie-takeaway {
  margin: 1rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(1, 118, 211, 0.08);
  color: var(--g2g-text);
  font-size: 0.85rem;
  line-height: 1.45;
}
.g2g-ia-ie-error {
  color: var(--g2g-text-muted);
  font-size: 0.86rem;
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

/* ---- The Evolution of an Interaction (Self-Service Part 3) ---- */
.g2g-ss-evolution-rows {
  display: grid;
  gap: 0.6rem;
}
.g2g-ss-evo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border-left: 4px solid var(--g2g-border);
  background: var(--g2g-card-bg);
}
.g2g-ss-evo-row.l1 { border-left-color: var(--g2g-l1-color); background: var(--g2g-l1-bg); }
.g2g-ss-evo-row.l2 { border-left-color: var(--g2g-l2-color); background: var(--g2g-l2-bg); }
.g2g-ss-evo-row.l3 { border-left-color: var(--g2g-l3-color); background: var(--g2g-l3-bg); }
.g2g-ss-evo-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--g2g-text);
  letter-spacing: 0.01em;
}
.g2g-ss-evo-bubble {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.4rem 0.7rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--g2g-border);
  color: #181818;
  font-size: 0.9rem;
  line-height: 1.3;
}
.g2g-channel-recommendation {
  margin-top: 0.55rem !important;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(1, 118, 211, 0.08);
  color: var(--g2g-text);
}

/* ---- Level Cards (maturity assessment) ---- */
.g2g-level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.g2g-level-card {
  position: relative;
  background: var(--g2g-card-bg);
  border: 2px solid var(--g2g-border);
  border-radius: var(--g2g-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.g2g-level-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.g2g-level-card.selected {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.g2g-level-card.selected.l1 { border-color: var(--g2g-l1-color); background: var(--g2g-l1-bg); }
.g2g-level-card.selected.l2 { border-color: var(--g2g-l2-color); background: var(--g2g-l2-bg); }
.g2g-level-card.selected.l3 { border-color: var(--g2g-l3-color); background: var(--g2g-l3-bg); }

.g2g-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.g2g-level-badge.l1 { background: rgba(232,110,44,0.12); color: var(--g2g-l1-color); }
.g2g-level-badge.l2 { background: rgba(27,150,255,0.12); color: var(--g2g-l2-color); }
.g2g-level-badge.l3 { background: rgba(4,132,75,0.12); color: var(--g2g-l3-color); }

.g2g-level-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--g2g-text);
}
.g2g-level-card .g2g-level-tagline {
  font-size: 0.85rem;
  color: var(--g2g-text-muted);
  margin-bottom: 1rem;
  line-height: 1.45;
  font-style: italic;
}
.g2g-level-card .g2g-level-desc {
  font-size: 0.85rem;
  color: var(--g2g-text);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.g2g-level-card .g2g-level-signals {
  list-style: none;
  padding: 0;
  margin: 0;
}
.g2g-level-card .g2g-level-signals li {
  font-size: 0.8rem;
  color: var(--g2g-text-muted);
  padding: 0.3rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}
.g2g-level-card .g2g-level-signals li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g2g-border);
}
.g2g-level-card.selected.l1 .g2g-level-signals li::before { background: var(--g2g-l1-color); }
.g2g-level-card.selected.l2 .g2g-level-signals li::before { background: var(--g2g-l2-color); }
.g2g-level-card.selected.l3 .g2g-level-signals li::before { background: var(--g2g-l3-color); }

.g2g-level-products {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--g2g-border);
}
.g2g-level-products span {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: rgba(1,118,211,0.08);
  color: var(--g2g-blue);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  margin-right: 0.35rem;
  margin-bottom: 0.25rem;
}

.g2g-selected-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.g2g-level-card.selected .g2g-selected-check { display: flex; }
.g2g-level-card.selected.l1 .g2g-selected-check { background: var(--g2g-l1-color); }
.g2g-level-card.selected.l2 .g2g-selected-check { background: var(--g2g-l2-color); }
.g2g-level-card.selected.l3 .g2g-selected-check { background: var(--g2g-l3-color); }

/* ---- Evidence Area ---- */
.g2g-evidence-area {
  margin-top: 1.5rem;
}
.g2g-evidence-area label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g2g-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.4rem;
}
.g2g-evidence-area textarea {
  width: 100%;
  min-height: 90px;
  padding: 0.75rem;
  border: 1.5px solid var(--g2g-border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--g2g-card-bg);
  color: var(--g2g-text);
  resize: vertical;
  box-sizing: border-box;
}
.g2g-evidence-area textarea:focus {
  outline: none;
  border-color: var(--g2g-blue);
  box-shadow: 0 0 0 3px rgba(1,118,211,0.12);
}

/* ---- Speech-to-Text Mic Button ---- */
.g2g-evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.g2g-evidence-header label {
  margin-bottom: 0;
}
.g2g-mic-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g2g-mic-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
}
.g2g-mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--g2g-border);
  border-radius: 50%;
  background: var(--g2g-card-bg);
  color: var(--g2g-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.g2g-mic-btn:hover {
  border-color: var(--g2g-blue);
  color: var(--g2g-blue);
}
.g2g-mic-btn.recording {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  animation: g2gMicPulse 1.5s ease-in-out infinite;
}
@keyframes g2gMicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* ---- Contact Driver Cards ---- */
.g2g-driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.g2g-driver-card {
  position: relative;
  border: 1px solid var(--g2g-border);
  border-radius: 12px;
  /* Subtle blue tint layered over the theme card colour so it works in light + dark. */
  background-color: var(--g2g-card-bg);
  background-image: linear-gradient(160deg, rgba(1,118,211,0.05) 0%, rgba(1,118,211,0.11) 100%);
  padding: 0.85rem 0.75rem 0.75rem;
  min-height: 108px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(3,45,96,0.06), 0 6px 16px rgba(3,45,96,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: g2gDriverIn 0.3s ease;
  overflow: hidden;
}
/* Consistent brand accent bar on every card (uniform — not a category signal). */
.g2g-driver-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g2g-blue), #5eb3f0);
}
.g2g-driver-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(3,45,96,0.12), 0 14px 30px rgba(3,45,96,0.08);
  border-color: rgba(1,118,211,0.35);
}
.g2g-driver-card .g2g-field {
  width: 100%;
  margin: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.6rem;
}
.g2g-driver-card .g2g-driver-name {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.25;
  padding: 0.2rem 0.1rem;
  resize: none;
  min-height: 62px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  overflow: visible;
  font-family: var(--font-display, 'Avant Garde', 'Salesforce Sans', -apple-system, BlinkMacSystemFont, sans-serif);
}
.g2g-driver-card .g2g-driver-name:focus {
  outline: none;
}
.g2g-driver-remove {
  background: transparent;
  border: 1px solid transparent;
  color: var(--g2g-text-muted);
  font-size: 1rem;
  line-height: 1;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 6px;
  right: 6px;
  transition: all 0.2s;
}
.g2g-driver-remove:hover { color: #e74c3c; background: rgba(231,76,60,0.08); }

/* ---- Maturity Grid (Hero Component) ---- */
.g2g-maturity-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--g2g-border);
  background: var(--g2g-card-bg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.dark .g2g-maturity-grid { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

.g2g-grid-header {
  padding: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  border-bottom: 2px solid var(--g2g-border);
}
.g2g-grid-header.corner {
  background: var(--g2g-navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
}
.dark .g2g-grid-header.corner { background: #111128; }

.g2g-grid-header.l1-header { background: var(--g2g-l1-color); color: #fff; }
.g2g-grid-header.l2-header { background: var(--g2g-l2-color); color: #fff; }
.g2g-grid-header.l3-header { background: var(--g2g-l3-color); color: #fff; }

.g2g-grid-row-label {
  padding: 1rem;
  background: var(--g2g-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dark .g2g-grid-row-label { background: #111128; }

.g2g-grid-cell {
  padding: 1rem;
  border-bottom: 1px solid var(--g2g-border);
  border-left: 1px solid var(--g2g-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.g2g-grid-cell h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--g2g-text);
}
.g2g-grid-cell .g2g-cell-tagline {
  font-size: 0.75rem;
  color: var(--g2g-text-muted);
  line-height: 1.35;
  margin: 0;
}

/* Selected cell */
.g2g-grid-cell.selected {
  position: relative;
}
.g2g-grid-cell.selected.l1 { background: var(--g2g-l1-bg); border-left: 3px solid var(--g2g-l1-color); }
.g2g-grid-cell.selected.l2 { background: var(--g2g-l2-bg); border-left: 3px solid var(--g2g-l2-color); }
.g2g-grid-cell.selected.l3 { background: var(--g2g-l3-bg); border-left: 3px solid var(--g2g-l3-color); }
.g2g-grid-cell.selected h4 { color: var(--g2g-navy); }
.dark .g2g-grid-cell.selected h4 { color: #e0e0e0; }

.g2g-grid-cell.selected::after {
  content: '\2713';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 14px;
  font-weight: 700;
}
.g2g-grid-cell.selected.l1::after { color: var(--g2g-l1-color); }
.g2g-grid-cell.selected.l2::after { color: var(--g2g-l2-color); }
.g2g-grid-cell.selected.l3::after { color: var(--g2g-l3-color); }

/* Gap cell — opportunity */
.g2g-grid-cell.gap {
  border: 2px dashed rgba(1,118,211,0.3);
  background: rgba(1,118,211,0.03);
}
.g2g-grid-cell.gap h4 { color: var(--g2g-blue); opacity: 0.7; }

/* Past cell — dimmed */
.g2g-grid-cell.past {
  opacity: 0.35;
}

/* Interactive grid */
.g2g-maturity-grid.interactive .g2g-grid-cell {
  cursor: pointer;
}
.g2g-maturity-grid.interactive .g2g-grid-cell:hover {
  background: rgba(1,118,211,0.05);
}

/* Animated grid entry */
.g2g-maturity-grid.animate .g2g-grid-cell {
  animation: g2gCellIn 0.4s ease both;
}
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(5)  { animation-delay: 0.05s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(6)  { animation-delay: 0.08s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(7)  { animation-delay: 0.11s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(8)  { animation-delay: 0.15s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(9)  { animation-delay: 0.18s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(10) { animation-delay: 0.21s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(11) { animation-delay: 0.25s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(12) { animation-delay: 0.28s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(13) { animation-delay: 0.31s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(14) { animation-delay: 0.35s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(15) { animation-delay: 0.38s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(16) { animation-delay: 0.41s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(17) { animation-delay: 0.45s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(18) { animation-delay: 0.48s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(19) { animation-delay: 0.51s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(20) { animation-delay: 0.55s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(21) { animation-delay: 0.58s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(22) { animation-delay: 0.61s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(23) { animation-delay: 0.65s; }
.g2g-maturity-grid.animate .g2g-grid-cell:nth-child(24) { animation-delay: 0.68s; }

@keyframes g2gCellIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- Mini Grid (sidebar preview during assessment) ---- */
.g2g-mini-grid {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--g2g-card-bg);
  border: 1px solid var(--g2g-border);
  border-radius: 10px;
}
.g2g-mini-grid h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g2g-text-muted);
  margin: 0 0 0.75rem;
}
.g2g-mini-grid .g2g-maturity-grid {
  box-shadow: none;
  border: 1px solid var(--g2g-border);
}
.g2g-mini-grid .g2g-maturity-grid .g2g-grid-header { padding: 0.5rem; font-size: 0.65rem; }
.g2g-mini-grid .g2g-maturity-grid .g2g-grid-row-label { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
.g2g-mini-grid .g2g-maturity-grid .g2g-grid-cell { padding: 0.4rem 0.5rem; }
.g2g-mini-grid .g2g-maturity-grid .g2g-grid-cell h4 { font-size: 0.7rem; }
.g2g-mini-grid .g2g-maturity-grid .g2g-grid-cell .g2g-cell-tagline { display: none; }
.g2g-mini-grid .g2g-maturity-grid { grid-template-columns: 110px 1fr 1fr 1fr; }

/* ---- Review Scorecard ---- */
.g2g-scorecard-summary {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  gap: 1rem;
  margin-bottom: 2rem;
}
.g2g-scorecard-title {
  font-size: 2.4rem !important;
}
.g2g-score-card {
  background: var(--g2g-card-bg);
  border: 1.5px solid var(--g2g-border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.g2g-score-card .g2g-score-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--g2g-navy);
  margin-bottom: 0.25rem;
}
.dark .g2g-score-card .g2g-score-value { color: var(--g2g-blue); }
.g2g-score-card .g2g-score-label {
  font-size: 0.78rem;
  color: var(--g2g-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- AI Generation Banner ---- */
.g2g-ai-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgba(1,118,211,0.08), rgba(255,83,138,0.08));
  border: 1px solid rgba(1,118,211,0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--g2g-text);
  margin-bottom: 1rem;
  animation: g2gBannerPulse 2s ease-in-out infinite;
}
@keyframes g2gBannerPulse {
  0%, 100% { border-color: rgba(1,118,211,0.2); }
  50% { border-color: rgba(1,118,211,0.45); }
}
.g2g-ai-banner .g2g-spinner-sm {
  width: 18px;
  height: 18px;
  border-color: rgba(1,118,211,0.2);
  border-top-color: var(--g2g-blue);
  flex-shrink: 0;
}

/* ---- AI Output Placeholder ---- */
.g2g-ai-placeholder {
  text-align: center;
  padding: 3rem;
  background: var(--g2g-card-bg);
  border: 2px dashed var(--g2g-border);
  border-radius: 12px;
}
.g2g-ai-placeholder svg {
  color: var(--g2g-text-muted);
  margin-bottom: 1rem;
}
.g2g-ai-placeholder h3 {
  font-size: 1.1rem;
  color: var(--g2g-text);
  margin-bottom: 0.5rem;
}
.g2g-ai-placeholder p {
  font-size: 0.9rem;
  color: var(--g2g-text-muted);
  margin-bottom: 1.25rem;
}

/* ---- AI Tabs ---- */
.g2g-ai-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--g2g-border);
  margin-bottom: 1.5rem;
}
.g2g-ai-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--g2g-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: inherit;
}
.g2g-ai-tab:hover { color: var(--g2g-text); }
.g2g-ai-tab.active {
  color: var(--g2g-blue);
  border-bottom-color: var(--g2g-blue);
}
.g2g-ai-tab-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  vertical-align: middle;
}
.g2g-ai-tab-icon.done {
  color: var(--g2g-l3-color);
  font-weight: 700;
  font-size: 0.85rem;
}
.g2g-ai-tab-icon.loading .g2g-spinner-sm {
  width: 12px;
  height: 12px;
  border-width: 2px;
  border-color: rgba(1,118,211,0.2);
  border-top-color: var(--g2g-blue);
}
.g2g-ai-banner-progress {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g2g-blue);
  white-space: nowrap;
}

/* ---- AI Loading Shimmer ---- */
.g2g-ai-loading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}
.g2g-shimmer {
  height: 18px;
  background: linear-gradient(90deg, var(--g2g-border) 25%, rgba(1,118,211,0.08) 50%, var(--g2g-border) 75%);
  background-size: 200% 100%;
  animation: g2gShimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}
.g2g-shimmer.short { width: 60%; }
.g2g-ai-loading-msg {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--g2g-text-muted);
  font-style: italic;
}
@keyframes g2gShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- AI Result Content ---- */
.g2g-ai-result {
  background: var(--g2g-card-bg);
  border: 1px solid var(--g2g-border);
  border-radius: 10px;
  padding: 1.75rem;
  line-height: 1.7;
  font-size: 0.92rem;
}
.g2g-ai-result h2, .g2g-ai-result h3, .g2g-ai-result h4 {
  color: var(--g2g-navy);
  margin: 1.25rem 0 0.5rem;
}
.dark .g2g-ai-result h2, .dark .g2g-ai-result h3, .dark .g2g-ai-result h4 { color: #b8d4f0; }
.g2g-ai-result h2 { font-size: 1.3rem; }
.g2g-ai-result h3 { font-size: 1.1rem; }
.g2g-ai-result h4 { font-size: 0.95rem; }
.g2g-ai-result ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.g2g-ai-result li { margin-bottom: 0.35rem; }
.g2g-ai-result strong { color: var(--g2g-navy); }
.dark .g2g-ai-result strong { color: #c5ddf5; }

.g2g-narrative-content.g2g-streaming {
  max-height: 500px;
  overflow-y: auto;
}
.g2g-narrative-content.g2g-streaming::after {
  content: '|';
  animation: g2gBlink 0.7s infinite;
  color: var(--g2g-blue);
  font-weight: 700;
}
@keyframes g2gBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- AI Error ---- */
.g2g-ai-error {
  background: #FFF5F5;
  border: 1px solid #FCA5A5;
  border-radius: 10px;
  padding: 1.25rem;
  color: #991B1B;
  font-size: 0.9rem;
}
.dark .g2g-ai-error { background: #3a1818; border-color: #7f1d1d; color: #fca5a5; }

/* ---- Gap Analysis ---- */
.g2g-gap-summary {
  font-size: 0.95rem;
  color: var(--g2g-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--g2g-border);
}
.g2g-ai-subheading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g2g-text-muted);
  margin: 1.5rem 0 0.75rem;
}
.g2g-priorities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.g2g-priority-card {
  background: var(--g2g-bg);
  border: 1px solid var(--g2g-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.dark .g2g-priority-card { background: rgba(255,255,255,0.03); }
.g2g-priority-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.g2g-priority-dim {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: capitalize;
}
.g2g-priority-badge {
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.g2g-priority-badge.quick-win { background: rgba(4,132,75,0.12); color: var(--g2g-l3-color); }
.g2g-priority-badge.strategic-investment { background: rgba(1,118,211,0.12); color: var(--g2g-blue); }
.g2g-priority-badge.foundation-work { background: rgba(232,110,44,0.12); color: var(--g2g-l1-color); }
.g2g-priority-levels {
  font-size: 0.85rem;
  color: var(--g2g-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.g2g-priority-card p { font-size: 0.88rem; line-height: 1.5; margin: 0 0 0.5rem; color: var(--g2g-text); }
.g2g-priority-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--g2g-text-muted);
}
.g2g-priority-products {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.g2g-priority-products span {
  padding: 0.15rem 0.5rem;
  background: rgba(1,118,211,0.08);
  color: var(--g2g-blue);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
}

/* ---- Dependencies ---- */
.g2g-dependencies { display: flex; flex-direction: column; gap: 0.5rem; }
.g2g-dependency-item {
  padding: 0.75rem 1rem;
  background: var(--g2g-bg);
  border-radius: 8px;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.dark .g2g-dependency-item { background: rgba(255,255,255,0.03); }
.g2g-dependency-item strong { text-transform: capitalize; }
.g2g-dependency-item span { color: var(--g2g-text-muted); font-size: 0.82rem; }

/* ---- Risks ---- */
.g2g-risk-item {
  padding: 0.75rem 1rem;
  background: rgba(232,110,44,0.05);
  border-left: 3px solid var(--g2g-l1-color);
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.5rem;
}
.g2g-risk-item strong { font-size: 0.9rem; }
.g2g-risk-item p { font-size: 0.85rem; margin: 0.25rem 0 0; color: var(--g2g-text-muted); }

/* ---- Customer Stories ---- */
.g2g-stories-result {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: transparent;
  border: none;
  padding: 0;
}
.g2g-story-card {
  background: var(--g2g-card-bg);
  border: 1px solid var(--g2g-border);
  border-radius: 10px;
  padding: 1.5rem;
}
.g2g-story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.g2g-story-header h3 { font-size: 1.1rem; margin: 0; color: var(--g2g-navy); }
.dark .g2g-story-header h3 { color: #b8d4f0; }
.g2g-story-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--g2g-l3-color);
  background: rgba(4,132,75,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.g2g-story-reason {
  font-size: 0.85rem;
  color: var(--g2g-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--g2g-border);
}
.g2g-story-section {
  margin-bottom: 0.75rem;
}
.g2g-story-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  color: #fff;
}
.g2g-story-section:nth-child(3) .g2g-story-label { background: var(--g2g-l2-color); }
.g2g-story-section:nth-child(4) .g2g-story-label { background: var(--g2g-l1-color); }
.g2g-story-section:nth-child(5) .g2g-story-label { background: var(--g2g-l3-color); }
.g2g-story-section:nth-child(6) .g2g-story-label { background: var(--g2g-navy); }
.g2g-story-section p { font-size: 0.88rem; line-height: 1.6; margin: 0.25rem 0 0; }

/* ---- AI Coach Panel ---- */
.g2g-coach-trigger-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.g2g-coach-trigger {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.g2g-coach-trigger:not(:disabled):hover { opacity: 0.92; transform: translateY(-1px); }
.g2g-coach-trigger:not(:disabled):active { transform: translateY(0); }
.g2g-coach-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none;
  transform: none;
}

.g2g-coach-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #64748b;
  padding: 0.35rem 0.65rem;
  background: rgba(100, 116, 139, 0.08);
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.g2g-coach-hint svg { flex-shrink: 0; color: currentColor; }
.g2g-coach-hint.ready {
  color: #047857;
  background: rgba(4, 132, 75, 0.08);
  border-color: rgba(4, 132, 75, 0.35);
  border-style: solid;
}
@media (max-width: 540px) {
  .g2g-coach-trigger-row { flex-direction: column; align-items: stretch; }
  .g2g-coach-hint { justify-content: flex-start; }
}

.g2g-coach-panel {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, rgba(1,118,211,0.04), rgba(4,132,75,0.04));
  border: 1px solid rgba(1,118,211,0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.g2g-coach-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g2g-blue);
  margin-bottom: 0.5rem;
}
.g2g-coach-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--g2g-text);
}
.g2g-coach-body p { margin: 0; }
.g2g-coach-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--g2g-text-muted);
  font-size: 0.85rem;
}
.g2g-coach-error { color: var(--g2g-text-muted); font-style: italic; }

/* ---- AI Suggest Button ---- */
.g2g-btn-ai {
  background: linear-gradient(135deg, var(--g2g-blue), #6366f1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.g2g-btn-ai:hover { background: linear-gradient(135deg, #015bb5, #4f46e5); }
.g2g-btn-ai:disabled { opacity: 0.6; cursor: not-allowed; }

.g2g-driver-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: center;
}

.g2g-ai-suggest-status {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
}
.g2g-ai-suggest-status.loading { color: var(--g2g-blue); background: rgba(1,118,211,0.06); }
.g2g-ai-suggest-status.success { color: var(--g2g-l3-color); background: rgba(4,132,75,0.06); }
.g2g-ai-suggest-status.error { color: #991B1B; background: rgba(231,76,60,0.06); }

/* ---- Spinner (small) ---- */
.g2g-spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: g2gSpin 0.6s linear infinite;
}
.g2g-coach-loading .g2g-spinner-sm {
  border-color: rgba(1,118,211,0.2);
  border-top-color: var(--g2g-blue);
}
@keyframes g2gSpin {
  to { transform: rotate(360deg); }
}

/* ---- Utility ---- */
.g2g-app .hidden { display: none !important; }

.g2g-card {
  background: var(--g2g-card-bg);
  border: 1px solid var(--g2g-border);
  border-radius: var(--g2g-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.g2g-divider {
  border: none;
  border-top: 1px solid var(--g2g-border);
  margin: 1.5rem 0;
}

/* ---- Present & Export Buttons ---- */
.g2g-export-options {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}
.g2g-export-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.g2g-export-toggle input[type="checkbox"] {
  accent-color: hsl(var(--primary));
}

.g2g-present-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.g2g-btn-present {
  background: var(--g2g-navy);
  color: #fff;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-family: inherit;
}
.g2g-btn-present:hover { background: #021b3d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(3,45,96,0.25); }
.dark .g2g-btn-present { background: var(--g2g-blue); }

.g2g-btn-export {
  background: transparent;
  color: var(--g2g-text-muted);
  border: 1.5px solid var(--g2g-border);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-family: inherit;
}
.g2g-btn-export:hover { background: var(--g2g-bg); color: var(--g2g-text); border-color: var(--g2g-blue); }
.g2g-btn-export:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   PRESENTATION MODE
   ============================================================ */

.g2g-pres-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--g2g-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans, 'Salesforce Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  overflow: hidden;
}

/* Controls */
.g2g-pres-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}
.g2g-pres-overlay:hover .g2g-pres-controls { opacity: 1; }

.g2g-pres-exit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.g2g-pres-exit:hover { background: rgba(255,255,255,0.2); color: #fff; }

.g2g-pres-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.g2g-pres-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.g2g-pres-arrow:hover { background: rgba(255,255,255,0.2); color: #fff; }
.g2g-pres-counter {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Progress dots */
.g2g-pres-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.g2g-pres-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.g2g-pres-dot.active {
  background: var(--g2g-blue);
  box-shadow: 0 0 8px rgba(1,118,211,0.5);
  transform: scale(1.3);
}
.g2g-pres-dot:hover { background: rgba(255,255,255,0.4); }

/* Slide container */
.g2g-pres-slide-container {
  width: 100%;
  max-width: 1100px;
  padding: 2rem 3rem;
  animation: g2gPresSlideIn 0.4s ease;
}
@keyframes g2gPresSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Common slide */
.g2g-pres-slide {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.g2g-pres-heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: #fff;
}
.g2g-pres-subheading {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 2rem;
  line-height: 1.6;
}

/* Pink accent */
.g2g-pres-pink { color: #FF538A; }

/* Title slide */
.g2g-pres-title-slide {
  text-align: center;
  align-items: center;
}
.g2g-pres-title-content { max-width: 750px; }
.g2g-pres-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--g2g-blue);
  margin-bottom: 1rem;
}
.g2g-pres-title-slide h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: #fff;
}
.g2g-pres-title-brand {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.g2g-pres-title-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}
.g2g-pres-title-badge {
  position: absolute;
  bottom: 3.5rem;
  right: 3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

/* Pillars slide */
.g2g-pres-pillar-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.g2g-pres-pillar-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  animation: g2gPillarIn 0.5s ease forwards;
  opacity: 0;
  transition: transform 0.2s, border-color 0.2s;
}
.g2g-pres-pillar-card:hover { border-color: #FF538A; transform: translateY(-4px); }
@keyframes g2gPillarIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.g2g-pres-pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FF538A;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.g2g-pres-pillar-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
}
.g2g-pres-pillar-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}
.g2g-pres-pillar-level {
  margin-top: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
}
.g2g-pres-pillar-level.l1 { background: rgba(232,110,44,0.15); color: var(--g2g-l1-color); border: 1px solid rgba(232,110,44,0.3); }
.g2g-pres-pillar-level.l2 { background: rgba(27,150,255,0.15); color: var(--g2g-l2-color); border: 1px solid rgba(27,150,255,0.3); }
.g2g-pres-pillar-level.l3 { background: rgba(4,132,75,0.15); color: var(--g2g-l3-color); border: 1px solid rgba(4,132,75,0.3); }
.g2g-pres-pillar-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 0.35rem;
}
.g2g-pres-pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.g2g-pres-pillar-dot.l1 { background: var(--g2g-l1-color); }
.g2g-pres-pillar-dot.l2 { background: var(--g2g-l2-color); }
.g2g-pres-pillar-dot.l3 { background: var(--g2g-l3-color); }

/* Service Model slide */
.g2g-pres-model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.g2g-pres-model-card {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}
.g2g-pres-model-card.active {
  border-color: #FF538A;
  background: rgba(255,83,138,0.08);
  box-shadow: 0 8px 32px rgba(255,83,138,0.15);
}
.g2g-pres-model-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.g2g-pres-model-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.g2g-pres-model-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}
.g2g-pres-model-facts {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Contact Drivers slide */
.g2g-pres-driver-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.g2g-pres-driver-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.g2g-pres-driver-col-header {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-align: center;
}
.g2g-pres-driver-col-header.high { background: rgba(232,110,44,0.2); color: var(--g2g-l1-color); }
.g2g-pres-driver-col-header.medium { background: rgba(27,150,255,0.2); color: var(--g2g-l2-color); }
.g2g-pres-driver-col-header.low { background: rgba(4,132,75,0.2); color: var(--g2g-l3-color); }
.g2g-pres-driver-bubble {
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255,255,255,0.85);
}
.g2g-pres-driver-bubble.high { background: rgba(232,110,44,0.12); border: 1px solid rgba(232,110,44,0.3); }
.g2g-pres-driver-bubble.medium { background: rgba(27,150,255,0.12); border: 1px solid rgba(27,150,255,0.3); }
.g2g-pres-driver-bubble.low { background: rgba(4,132,75,0.12); border: 1px solid rgba(4,132,75,0.3); }
.g2g-pres-driver-empty {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 1rem;
  font-style: italic;
}

/* Maturity Journey slide */
.g2g-pres-journey-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0.5rem 0 1rem;
}
.g2g-pres-journey-card {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.g2g-pres-journey-card.current {
  border-color: var(--level-color);
  background: color-mix(in srgb, var(--level-color) 10%, transparent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.g2g-pres-journey-card.gap {
  border: 2px dashed rgba(1,118,211,0.4);
  background: rgba(1,118,211,0.04);
}
.g2g-pres-journey-level-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.g2g-pres-journey-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15rem;
}
.g2g-pres-journey-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.6rem;
}
.g2g-pres-journey-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.g2g-pres-journey-section {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.g2g-pres-journey-section strong {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

/* Key Takeaway bar */
.g2g-pres-key-takeaway {
  padding: 0.8rem 1.25rem;
  background: rgba(255,83,138,0.08);
  border: 1px solid rgba(255,83,138,0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.g2g-pres-kt-label {
  font-weight: 700;
  color: #FF538A;
}

/* Two-column layout */
.g2g-pres-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.g2g-pres-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g2g-blue);
  margin: 0 0 1rem;
}
.g2g-pres-fact {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.g2g-pres-fact span { color: rgba(255,255,255,0.5); }
.g2g-pres-fact strong { color: #fff; }

/* Driver list in overview */
.g2g-pres-driver-list { display: flex; flex-direction: column; gap: 0.35rem; }
.g2g-pres-driver {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 0.85rem;
}
.g2g-pres-driver-name { color: rgba(255,255,255,0.85); }
.g2g-pres-driver-freq {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}
.g2g-pres-driver-freq.high { background: rgba(232,110,44,0.2); color: var(--g2g-l1-color); }
.g2g-pres-driver-freq.medium { background: rgba(27,150,255,0.2); color: var(--g2g-l2-color); }
.g2g-pres-driver-freq.low { background: rgba(4,132,75,0.2); color: var(--g2g-l3-color); }

/* Dimension slides - level cards */
.g2g-pres-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1rem 0;
}
.g2g-pres-level-card {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}
.g2g-pres-level-card.current {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.g2g-pres-level-card.current.l1 { border-color: var(--g2g-l1-color); background: rgba(232,110,44,0.12); }
.g2g-pres-level-card.current.l2 { border-color: var(--g2g-l2-color); background: rgba(27,150,255,0.12); }
.g2g-pres-level-card.current.l3 { border-color: var(--g2g-l3-color); background: rgba(4,132,75,0.12); }

.g2g-pres-level-card.gap {
  border: 2px dashed rgba(1,118,211,0.4);
  background: rgba(1,118,211,0.04);
}

.g2g-pres-level-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}
.g2g-pres-level-badge.l1 { background: rgba(232,110,44,0.2); color: var(--g2g-l1-color); }
.g2g-pres-level-badge.l2 { background: rgba(27,150,255,0.2); color: var(--g2g-l2-color); }
.g2g-pres-level-badge.l3 { background: rgba(4,132,75,0.2); color: var(--g2g-l3-color); }

.g2g-pres-level-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: #fff;
}
.g2g-pres-level-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}
.g2g-pres-current-marker {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}
.g2g-pres-gap-products {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.g2g-pres-gap-products span {
  padding: 0.15rem 0.5rem;
  background: rgba(1,118,211,0.15);
  color: var(--g2g-l2-color);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
}
.g2g-pres-evidence {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}
.g2g-pres-evidence strong { color: var(--g2g-blue); }

/* Scorecard slide */
.g2g-pres-scorecard-slide { align-items: center; }
.g2g-pres-grid-wrap {
  width: 100%;
  max-width: 900px;
  margin-top: 1rem;
}
/* Override grid colors for dark presentation */
.g2g-pres-overlay .g2g-maturity-grid { border-color: rgba(255,255,255,0.15); }
.g2g-pres-overlay .g2g-grid-cell { border-color: rgba(255,255,255,0.08); }
.g2g-pres-overlay .g2g-grid-cell h4 { color: rgba(255,255,255,0.85); }
.g2g-pres-overlay .g2g-grid-cell .g2g-cell-tagline { color: rgba(255,255,255,0.5); }
.g2g-pres-overlay .g2g-maturity-grid { background: rgba(255,255,255,0.03); }
.g2g-pres-overlay .g2g-grid-cell.past { opacity: 0.25; }
.g2g-pres-overlay .g2g-grid-cell.gap { border-color: rgba(1,118,211,0.4); background: rgba(1,118,211,0.06); }
/* Selected cells use light-tint backgrounds, so their text must be dark for contrast. */
.g2g-pres-overlay .g2g-grid-cell.selected h4 { color: var(--g2g-navy); }
.g2g-pres-overlay .g2g-grid-cell.selected .g2g-cell-tagline { color: #3a3a3a; }

/* Opportunity / Roadmap slide */
.g2g-pres-summary {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.g2g-pres-priorities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.g2g-pres-priority {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.25rem;
}
.g2g-pres-priority-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.g2g-pres-priority-dim {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: capitalize;
  color: #fff;
}
.g2g-pres-overlay .g2g-priority-badge { font-size: 0.65rem; }
.g2g-pres-priority-arrow {
  font-size: 0.82rem;
  color: var(--g2g-blue);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.g2g-pres-priority p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}
.g2g-pres-priority-prods {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.g2g-pres-priority-prods span {
  padding: 0.15rem 0.5rem;
  background: rgba(1,118,211,0.15);
  color: var(--g2g-l2-color);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 4px;
}

/* Story slide */
.g2g-pres-story-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.g2g-pres-story-step {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid transparent;
}
.g2g-pres-story-step.match { border-left-color: var(--g2g-l2-color); }
.g2g-pres-story-step.struggle { border-left-color: var(--g2g-l1-color); }
.g2g-pres-story-step.win { border-left-color: var(--g2g-l3-color); }
.g2g-pres-story-step.bridge { border-left-color: var(--g2g-navy); border-left-color: #6366f1; }
.g2g-pres-story-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.5);
}
.g2g-pres-story-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0;
}

/* Next Steps slide */
.g2g-pres-product-list { display: flex; flex-direction: column; gap: 0.4rem; }
.g2g-pres-product-item {
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.g2g-pres-product-item strong { font-size: 0.88rem; color: #fff; }
.g2g-pres-product-item span { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

.g2g-pres-actions-list { display: flex; flex-direction: column; gap: 0.5rem; }
.g2g-pres-action-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.g2g-pres-action-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--g2g-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.g2g-pres-footer-badge {
  position: absolute;
  bottom: 3.5rem;
  right: 3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}

/* ---- Auto-Save Toast ---- */
.g2g-autosave-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--g2g-l3-color);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  box-shadow: 0 2px 12px rgba(4,132,75,0.3);
}
.g2g-autosave-toast.show {
  opacity: 1;
  transform: translateY(0);
  animation: g2gToastFade 2s ease forwards;
}
@keyframes g2gToastFade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* ---- Landing Dimension Badges ---- */
.g2g-landing-dims {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.g2g-landing-dim {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  background: color-mix(in srgb, var(--g2g-card-bg) 80%, var(--g2g-bg) 20%);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--g2g-text-muted);
  cursor: default;
  user-select: none;
  transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
  opacity: 0;
  animation: g2gBadgeIn 0.5s ease forwards;
}
.g2g-landing-dim:hover {
  background: #032d60;
  color: #eaf4ff;
  box-shadow: 0 8px 22px rgba(3, 45, 96, 0.24);
}
.g2g-landing-dim-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  background: hsl(var(--primary) / 0.14);
  color: hsl(var(--primary));
  transition: background-color 0.28s ease, color 0.28s ease;
}
.g2g-landing-dim:hover .g2g-landing-dim-index {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.g2g-landing-dim-title {
  letter-spacing: 0.01em;
}
@keyframes g2gBadgeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Score Card Animation ---- */
.g2g-score-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.g2g-score-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ---- Level Card Selection Ripple ---- */
.g2g-level-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--g2g-radius);
  opacity: 0;
  transition: opacity 0.3s;
}
.g2g-level-card.selected.l1::after { background: radial-gradient(circle at center, rgba(232,110,44,0.08), transparent 70%); opacity: 1; }
.g2g-level-card.selected.l2::after { background: radial-gradient(circle at center, rgba(27,150,255,0.08), transparent 70%); opacity: 1; }
.g2g-level-card.selected.l3::after { background: radial-gradient(circle at center, rgba(4,132,75,0.08), transparent 70%); opacity: 1; }

/* ---- Driver Animations ---- */
@keyframes g2gDriverIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Progress Bar Connecting Line ---- */
.g2g-progress-step.completed::before {
  background: linear-gradient(90deg, var(--g2g-l3-color), var(--g2g-blue));
}

/* ---- Nav Button Hover Effects ---- */
.g2g-btn-primary {
  transition: all 0.2s, transform 0.15s;
}
.g2g-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1,118,211,0.3);
}
.g2g-btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}
.g2g-btn-secondary:active {
  transform: scale(0.97);
}

/* ---- Improved Grid Hover States ---- */
.g2g-grid-cell {
  transition: all 0.3s ease, transform 0.2s;
}
.g2g-maturity-grid:not(.interactive) .g2g-grid-cell:hover {
  background: rgba(1,118,211,0.03);
}
.g2g-grid-cell.selected {
  z-index: 1;
}
.g2g-grid-cell.gap {
  animation: g2gGapPulse 3s ease-in-out infinite;
}
@keyframes g2gGapPulse {
  0%, 100% { border-color: rgba(1,118,211,0.2); }
  50% { border-color: rgba(1,118,211,0.45); }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .g2g-app { padding: 0 1rem 2rem; }
  .g2g-pres-slide-container { padding: 2rem; }
  .g2g-pres-two-col { gap: 2rem; }
}
@media (max-width: 900px) {
  .g2g-pill-grid { gap: 0.55rem; }
  .g2g-service-model-grid { grid-template-columns: 1fr; max-width: 580px; }
  .g2g-level-cards { grid-template-columns: 1fr; }
  .g2g-form-grid { grid-template-columns: 1fr; }
  .g2g-driver-grid { grid-template-columns: 1fr; }
  .g2g-channel-map-grid { grid-template-columns: 1fr; }
  .g2g-maturity-grid { grid-template-columns: 100px 1fr 1fr 1fr; font-size: 0.8rem; }
  .g2g-scorecard-summary { grid-template-columns: 1fr; }
  .g2g-present-bar { flex-direction: column; align-items: stretch; }
  .g2g-present-bar .g2g-btn-present,
  .g2g-present-bar .g2g-btn-export { justify-content: center; }
  .g2g-ai-tabs { overflow-x: auto; }
  .g2g-pres-levels { grid-template-columns: 1fr; }
  .g2g-pres-two-col { grid-template-columns: 1fr; }
  .g2g-pres-priorities { grid-template-columns: 1fr; }
  .g2g-pres-story-flow { grid-template-columns: 1fr; }
  .g2g-pres-title-slide h1 { font-size: 2.2rem; }
  .g2g-pres-title-meta { flex-direction: column; gap: 0.5rem; }
  .g2g-pres-pillar-cards { grid-template-columns: repeat(3, 1fr); }
  .g2g-pres-model-cards { grid-template-columns: 1fr; }
  .g2g-pres-driver-columns { grid-template-columns: 1fr; }
  .g2g-pres-journey-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .g2g-landing h1 { font-size: 1.6rem; }
  .g2g-landing .g2g-subtitle { font-size: 0.95rem; }
  .g2g-landing-dims { gap: 0.35rem; }
  .g2g-landing-dim { font-size: 0.75rem; padding: 0.38rem 0.65rem; gap: 0.45rem; }
  .g2g-landing-dim-index { width: 1.05rem; height: 1.05rem; font-size: 0.66rem; }
  .g2g-maturity-grid { grid-template-columns: 80px 1fr 1fr 1fr; }
  .g2g-grid-cell .g2g-cell-tagline { font-size: 0.65rem; }
  .g2g-grid-cell h4 { font-size: 0.75rem; }
  .g2g-nav-buttons { flex-direction: column-reverse; gap: 0.75rem; }
  .g2g-nav-buttons .g2g-btn { width: 100%; justify-content: center; }
  .g2g-progress-label { font-size: 8px; }
  .g2g-progress-dot { width: 24px; height: 24px; font-size: 10px; }
  .g2g-company-hero h2 { font-size: 1.3rem; }
  .g2g-company-input { font-size: 1rem; padding: 0.85rem 1rem; }
  .g2g-pill-grid { gap: 0.5rem; }
  .g2g-pill { width: 165px; min-height: 122px; padding: 0.6rem 0.75rem; }
}

/* ==========================================================================
   COMPETITIVE ANALYSIS
   Shadcn-inspired: subtle borders, rounded-lg, semantic HSL tokens.
   ========================================================================== */

:root {
  --comp-l1: 25 80% 52%;   /* Foundation (amber) */
  --comp-l2: 210 95% 52%;  /* Good (blue) */
  --comp-l3: 152 65% 35%;  /* Great (emerald) */
  --comp-success: 152 65% 35%;
  --comp-warning: 25 80% 52%;
}

/* ---- Hero / search ---- */
.comp-hero { text-align: center; padding: 2.5rem 0 1.75rem; }
.comp-hero-eyebrow {
  display: inline-block; padding: 0.2rem 0.65rem; margin-bottom: 0.9rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--primary)); background: hsl(var(--primary) / 0.08);
  border: 1px solid hsl(var(--primary) / 0.15); border-radius: 9999px;
}
.comp-title {
  font-family: var(--font-display, inherit);
  font-size: 1.9rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.015em;
}
.comp-accent { color: hsl(var(--primary)); }
.comp-subtitle { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin: 0 0 1.5rem; }

.comp-search-bar { display: flex; gap: 0.5rem; max-width: 560px; margin: 0 auto; }
.comp-input-wrap { position: relative; flex: 1; }
.comp-input-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: hsl(var(--muted-foreground)); pointer-events: none;
}
.comp-input {
  width: 100%; height: 42px; padding: 0 0.9rem 0 2.25rem;
  border-radius: 0.5rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); color: hsl(var(--foreground));
  font-family: inherit; font-size: 0.925rem; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.comp-input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}
.comp-input::placeholder { color: hsl(var(--muted-foreground)); }

/* ---- Buttons (shadcn-style default + outline) ---- */
.comp-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  height: 42px; padding: 0 1.1rem; border-radius: 0.5rem; border: 1px solid transparent;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-family: inherit; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; white-space: nowrap; transition: background-color 0.15s, box-shadow 0.15s;
}
.comp-btn-primary:hover:not(:disabled) { background: hsl(var(--primary) / 0.92); }
.comp-btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px hsl(var(--ring) / 0.35); }
.comp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.comp-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 36px; padding: 0 0.9rem; border-radius: 0.5rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  color: hsl(var(--foreground)); font-family: inherit;
  font-weight: 500; font-size: 0.85rem; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.comp-btn-secondary:hover:not(:disabled) { background: hsl(var(--muted)); border-color: hsl(var(--border)); }
.comp-btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25); }
.comp-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Loading (skeleton) ---- */
.comp-loading-wrap { padding: 0.5rem 0 1rem; }
.comp-loading-head {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.75rem 0.9rem; margin-bottom: 1rem;
  border: 1px solid hsl(var(--border)); border-radius: 0.5rem;
  background: hsl(var(--muted) / 0.4);
  color: hsl(var(--foreground)); font-size: 0.875rem;
}
.comp-loading-head strong { font-weight: 600; }
.comp-loading-head .comp-loading-sub {
  margin-left: auto; font-size: 0.75rem; color: hsl(var(--muted-foreground));
}
.comp-loading-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 0 0 hsl(var(--primary) / 0.4);
  animation: comp-pulse 1.4s ease-out infinite;
}
@keyframes comp-pulse {
  0%   { box-shadow: 0 0 0 0 hsl(var(--primary) / 0.4); }
  70%  { box-shadow: 0 0 0 8px hsl(var(--primary) / 0); }
  100% { box-shadow: 0 0 0 0 hsl(var(--primary) / 0); }
}
.comp-skel-stack { display: flex; flex-direction: column; gap: 1rem; }
.comp-skel-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 0.625rem; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.comp-skel-row { display: flex; gap: 0.75rem; }
.comp-skel-row-cols > .comp-skel-block { flex: 1; height: 64px; }
.comp-skel-row-dims { gap: 0.5rem; }
.comp-skel-row-dims .comp-skel-chip { flex: 1; height: 68px; border-radius: 0.5rem; }
.comp-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; justify-content: center; }
.comp-skel {
  position: relative; overflow: hidden;
  background: hsl(var(--muted));
  border-radius: 0.375rem;
}
.comp-skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, hsl(var(--background) / 0.55), transparent);
  transform: translateX(-100%); animation: comp-shimmer 1.4s ease-in-out infinite;
}
@keyframes comp-shimmer { to { transform: translateX(100%); } }
.comp-skel-avatar { width: 44px; height: 44px; border-radius: 50%; }
.comp-skel-line { height: 10px; border-radius: 9999px; }
.comp-skel-line-title { width: 40%; }
.comp-skel-line-sub { width: 65%; }
.comp-skel-block { border-radius: 0.5rem; }

/* ---- Alerts ---- */
.comp-alert {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.1rem; border-radius: 0.625rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
}
.comp-alert-destructive {
  border-color: hsl(var(--destructive) / 0.35);
  background: hsl(var(--destructive) / 0.06);
  color: hsl(var(--destructive));
}
.comp-alert-destructive svg { color: hsl(var(--destructive)); flex-shrink: 0; margin-top: 1px; }
.comp-alert-body { flex: 1; }
.comp-alert-title { font-weight: 600; font-size: 0.92rem; color: hsl(var(--destructive)); }
.comp-alert-desc { margin: 0.25rem 0 0; font-size: 0.85rem; color: hsl(var(--foreground)); }
.comp-alert .comp-btn-secondary { align-self: center; white-space: nowrap; }

/* ---- Results header card ---- */
.comp-result-header {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between;
  padding: 1.25rem 1.25rem;
  margin-bottom: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.625rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.comp-result-header-main { display: flex; gap: 1rem; flex: 1 1 60%; min-width: 280px; }
.comp-result-header-text { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.comp-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--muted-foreground)); font-weight: 600;
}
.comp-result-title {
  font-family: var(--font-display, inherit);
  margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
  color: hsl(var(--foreground));
}
.comp-result-overview {
  margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
.comp-result-header-actions {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}

/* ---- Avatars ---- */
.comp-avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display, inherit);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  color: hsl(var(--comp-hue, 210) 100% 28%);
  background: hsl(var(--comp-hue, 210) 90% 94%);
  border: 1px solid hsl(var(--comp-hue, 210) 80% 80%);
}
.comp-avatar-lg { width: 52px; height: 52px; font-size: 1.05rem; }
.comp-avatar-sm { width: 26px; height: 26px; font-size: 0.7rem; }
.dark .comp-avatar {
  color: hsl(var(--comp-hue, 210) 90% 82%);
  background: hsl(var(--comp-hue, 210) 50% 20%);
  border-color: hsl(var(--comp-hue, 210) 50% 30%);
}

/* ---- Cards ---- */
.comp-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.625rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.comp-card-header { display: flex; flex-direction: column; gap: 0.2rem; }
.comp-card-header-row {
  flex-direction: row; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.comp-card-header-icon {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.comp-card-header-icon > svg {
  width: 18px; height: 18px; margin-top: 2px; color: hsl(var(--primary));
}
.comp-card-title {
  font-family: var(--font-display, inherit);
  margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  color: hsl(var(--foreground));
}
.comp-card-sub {
  margin: 0; font-size: 0.825rem; line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* ---- Badges ---- */
.comp-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 9999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.comp-badge-muted {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
}
.comp-badge-outline {
  background: transparent; padding: 0.1rem 0.4rem; font-size: 0.65rem;
}
.comp-badge.level-l1 {
  background: hsl(var(--comp-l1) / 0.12);
  color: hsl(var(--comp-l1));
  border-color: hsl(var(--comp-l1) / 0.3);
}
.comp-badge.level-l2 {
  background: hsl(var(--comp-l2) / 0.12);
  color: hsl(var(--comp-l2));
  border-color: hsl(var(--comp-l2) / 0.3);
}
.comp-badge.level-l3 {
  background: hsl(var(--comp-l3) / 0.12);
  color: hsl(var(--comp-l3));
  border-color: hsl(var(--comp-l3) / 0.3);
}
.comp-badge.level-empty {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
}

/* ---- Maturity Matrix ---- */
.comp-matrix-card { padding: 1.1rem 1.25rem 1.25rem; }
.comp-legend { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.comp-legend-item {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: hsl(var(--muted-foreground));
}
.comp-legend-swatch {
  width: 8px; height: 8px; border-radius: 2px; background: hsl(var(--muted));
}
.comp-legend-swatch.level-l1 { background: hsl(var(--comp-l1)); }
.comp-legend-swatch.level-l2 { background: hsl(var(--comp-l2)); }
.comp-legend-swatch.level-l3 { background: hsl(var(--comp-l3)); }

.comp-matrix-scroll { margin-top: 0.9rem; overflow-x: auto; }
.comp-matrix {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.825rem;
}
.comp-matrix thead th {
  font-size: 0.7rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: hsl(var(--muted-foreground)); font-weight: 600;
  padding: 0.5rem 0.6rem; text-align: center;
  background: hsl(var(--muted) / 0.4);
  border-bottom: 1px solid hsl(var(--border));
}
.comp-matrix thead th:first-child { text-align: left; }
.comp-matrix thead th:first-child { border-radius: 0.5rem 0 0 0; }
.comp-matrix thead th:last-child { border-radius: 0 0.5rem 0 0; }
.comp-matrix tbody tr + tr th, .comp-matrix tbody tr + tr td { border-top: 1px solid hsl(var(--border)); }
.comp-matrix tbody tr:hover th, .comp-matrix tbody tr:hover td { background: hsl(var(--muted) / 0.35); }
.comp-matrix th.comp-matrix-name {
  text-align: left; padding: 0.6rem 0.75rem;
  display: table-cell; font-weight: 500;
}
.comp-matrix tbody th.comp-matrix-name {
  white-space: nowrap; color: hsl(var(--foreground)); font-weight: 500;
}
.comp-matrix-name-text {
  display: inline-flex; align-items: center; margin-left: 0.5rem;
  vertical-align: middle;
}
.comp-matrix-cell { padding: 0.45rem 0.5rem; text-align: center; }
.comp-matrix-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 22px; padding: 0 0.5rem; font-size: 0.72rem; font-weight: 600;
  border-radius: 0.375rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
  cursor: default;
}
.comp-matrix-pill.level-l1 { background: hsl(var(--comp-l1) / 0.12); color: hsl(var(--comp-l1)); border-color: hsl(var(--comp-l1) / 0.3); }
.comp-matrix-pill.level-l2 { background: hsl(var(--comp-l2) / 0.12); color: hsl(var(--comp-l2)); border-color: hsl(var(--comp-l2) / 0.3); }
.comp-matrix-pill.level-l3 { background: hsl(var(--comp-l3) / 0.12); color: hsl(var(--comp-l3)); border-color: hsl(var(--comp-l3) / 0.3); }

/* ---- Competitor card ---- */
.comp-competitor-header {
  flex-direction: row; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.comp-competitor-identity { display: flex; gap: 0.85rem; align-items: flex-start; flex: 1 1 60%; min-width: 240px; }
.comp-competitor-identity > div { min-width: 0; }

.comp-separator {
  height: 1px; background: hsl(var(--border));
  margin: 1rem 0;
}

/* Strengths & Weaknesses */
.comp-sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.comp-sw-col { display: flex; flex-direction: column; gap: 0.5rem; }
.comp-sw-header {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.comp-sw-count {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 0.4rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0;
  border-radius: 9999px;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
  text-transform: none;
}
.comp-sw-header-strength { color: hsl(var(--comp-success)); }
.comp-sw-header-strength .comp-sw-swatch { background: hsl(var(--comp-success)); }
.comp-sw-header-weakness { color: hsl(var(--comp-warning)); }
.comp-sw-header-weakness .comp-sw-swatch { background: hsl(var(--comp-warning)); }
.comp-sw-swatch { width: 6px; height: 6px; border-radius: 9999px; }

.comp-sw-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.comp-sw-item {
  display: flex; gap: 0.55rem; align-items: flex-start;
  font-size: 0.875rem; line-height: 1.5;
  color: hsl(var(--foreground));
}
.comp-sw-item svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 9999px;
  box-sizing: content-box;
}
.comp-sw-item-strength svg {
  color: hsl(var(--comp-success));
  background: hsl(var(--comp-success) / 0.12);
}
.comp-sw-item-weakness svg {
  color: hsl(var(--comp-warning));
  background: hsl(var(--comp-warning) / 0.12);
}
.comp-sw-empty {
  font-size: 0.82rem; color: hsl(var(--muted-foreground)); font-style: italic;
  padding: 0.2rem 0;
}

/* Dimension chip grid */
.comp-dims-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem;
}
.comp-dim-chip {
  position: relative;
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.65rem 0.7rem;
  background: hsl(var(--muted) / 0.35);
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition: border-color 0.15s, background-color 0.15s;
}
.comp-dim-chip:hover { background: hsl(var(--muted) / 0.6); }
.comp-dim-chip::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  border-radius: 0.5rem 0 0 0.5rem;
  background: hsl(var(--border));
}
.comp-dim-chip.level-l1::before { background: hsl(var(--comp-l1)); }
.comp-dim-chip.level-l2::before { background: hsl(var(--comp-l2)); }
.comp-dim-chip.level-l3::before { background: hsl(var(--comp-l3)); }
.comp-dim-chip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.3rem;
}
.comp-dim-label {
  font-size: 0.72rem; font-weight: 600; color: hsl(var(--foreground));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comp-dim-level {
  font-size: 0.75rem; font-weight: 700;
  color: hsl(var(--foreground));
}
.comp-dim-chip.level-l1 .comp-dim-level { color: hsl(var(--comp-l1)); }
.comp-dim-chip.level-l2 .comp-dim-level { color: hsl(var(--comp-l2)); }
.comp-dim-chip.level-l3 .comp-dim-level { color: hsl(var(--comp-l3)); }
.comp-dim-rationale {
  margin: 0.1rem 0 0;
  font-size: 0.72rem; line-height: 1.45;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Insights ---- */
.comp-insights-card .comp-insights-list {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.comp-insight-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--muted) / 0.35);
}
.comp-insight-item:hover { background: hsl(var(--muted) / 0.55); }
.comp-insight-item p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: hsl(var(--foreground)); }
.comp-insight-num {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.75rem; font-weight: 700;
  margin-top: 1px;
}

/* ---- Saved analyses (landing grid) ---- */
.comp-saved-section { margin-top: 1.25rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); }
.comp-saved-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem;
}
.comp-saved-title {
  font-family: var(--font-display, inherit);
  margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  color: hsl(var(--foreground));
}
.comp-saved-sub {
  margin: 0.2rem 0 0; font-size: 0.825rem; line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.comp-saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.comp-saved-card {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.625rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background-color 0.15s;
  overflow: hidden;
  text-align: left;
}
.comp-saved-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.4));
  opacity: 0.6; transition: opacity 0.15s;
}
.comp-saved-card:hover,
.comp-saved-card:focus-visible {
  outline: none;
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.06), 0 0 0 3px hsl(var(--ring) / 0.12);
  transform: translateY(-1px);
}
.comp-saved-card:hover::before,
.comp-saved-card:focus-visible::before { opacity: 1; }

.comp-saved-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.5rem;
}

.comp-saved-card-body { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.comp-saved-card-title {
  font-family: var(--font-display, inherit);
  margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em;
  color: hsl(var(--foreground));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comp-saved-card-meta {
  margin: 0; font-size: 0.78rem; color: hsl(var(--muted-foreground));
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
}
.comp-saved-card-dot { color: hsl(var(--border)); }

.comp-saved-card-footer {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed hsl(var(--border));
}
.comp-saved-card-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600;
  color: hsl(var(--primary));
}
.comp-saved-card:hover .comp-saved-card-cta svg,
.comp-saved-card:focus-visible .comp-saved-card-cta svg {
  transform: translateX(2px);
}
.comp-saved-card-cta svg { transition: transform 0.15s; }

.comp-saved-delete {
  position: absolute; top: 0.5rem; right: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  border-radius: 9999px;
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  opacity: 0; transition: opacity 0.15s, background-color 0.15s, color 0.15s, border-color 0.15s;
  z-index: 1;
}
.comp-saved-card:hover .comp-saved-delete,
.comp-saved-card:focus-within .comp-saved-delete { opacity: 1; }
.comp-saved-delete:hover {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.35);
}

/* ---- Back-to-saved bar ---- */
.comp-back-bar { margin-bottom: 0.5rem; }
.comp-back-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 32px; padding: 0 0.7rem 0 0.55rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-family: inherit; font-size: 0.825rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.comp-back-btn:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.comp-back-btn:focus-visible {
  outline: none; box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25);
}

/* ── Presentation Overlay (fullscreen) ────────────────────────── */
.comp-pres-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: hsl(215 70% 8%);
  display: flex; flex-direction: column;
  /* Reserve a CSS variable for chrome height so the slide can size
     against (100vh - chrome). Updated in :fullscreen below. */
  --comp-pres-chrome: 8.5rem;
  color: #e0e8f0;
}
.comp-pres-overlay:fullscreen,
.comp-pres-overlay:-webkit-full-screen {
  --comp-pres-chrome: 7rem;
}
.comp-pres-wrapper {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: 1rem clamp(1rem, 2.5vw, 2.5rem) 1.25rem;
}
.comp-pres-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.65); font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.comp-pres-toolbar-actions { display: flex; align-items: center; gap: 0.4rem; }
.comp-pres-fs,
.comp-pres-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
}
.comp-pres-close { font-size: 1.25rem; line-height: 1; }
.comp-pres-fs:hover,
.comp-pres-close:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.2);
}

/* Stage centers the 16:9 slide and lets it grow to fill the viewport. */
.comp-pres-stage {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.comp-pres-slide-container {
  background: linear-gradient(180deg, hsl(215 70% 12%), hsl(215 75% 9%));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  /* Largest 16:9 box that fits both the available width and
     (viewport - chrome) height. */
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - var(--comp-pres-chrome)) * 16 / 9));
  height: auto;
  max-height: 100%;
  overflow: hidden;
  /* Internal padding scales with the slide size for a true presentation feel. */
  padding: clamp(1.5rem, 4cqw, 4rem) clamp(2rem, 5cqw, 5rem);
  container-type: inline-size;
}
.comp-pres-slide {
  width: 100%; height: 100%;
  color: #e0e8f0;
  display: flex; flex-direction: column;
  /* Use container-query font sizing so 1cqw == 1% of the slide width.
     This makes type scale identically with the slide regardless of viewport. */
  font-size: clamp(14px, 1.55cqw, 24px);
  line-height: 1.55;
}
.comp-pres-slide h1 {
  font-family: var(--font-display, inherit);
  font-size: clamp(2rem, 5.5cqw, 5rem);
  color: white; font-weight: 700; margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.comp-pres-slide h2 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 3.8cqw, 3.5rem);
  color: white; font-weight: 700; margin: 0 0 1.25rem;
  letter-spacing: -0.015em;
}
.comp-pres-slide h4 {
  font-size: clamp(0.9rem, 1.6cqw, 1.5rem);
  margin: 0 0 0.6rem; font-weight: 600;
}
.comp-pres-eyebrow {
  font-size: clamp(0.7rem, 0.95cqw, 1rem);
  letter-spacing: 0.32em; color: hsl(210 100% 60%);
  font-weight: 700; margin: 0 0 0.75rem;
}
.comp-pres-brand {
  font-size: clamp(1rem, 1.9cqw, 1.75rem);
  color: #aabbcc; margin: 1.25rem 0 0; font-weight: 500;
}
.comp-pres-date {
  font-size: clamp(0.8rem, 1.1cqw, 1.1rem);
  color: #778899; margin: 0.5rem 0 0;
}
.comp-pres-body {
  font-size: clamp(1rem, 1.6cqw, 1.5rem);
  line-height: 1.7; color: #ccddee; margin: 0;
}
.comp-pres-desc {
  font-size: clamp(0.85rem, 1.25cqw, 1.2rem);
  color: #99aabb; margin: 0 0 1.25rem;
}

.comp-pres-title-slide {
  align-items: center; justify-content: center; text-align: center;
}

.comp-pres-sw-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2cqw, 2rem);
  margin-bottom: clamp(1rem, 2cqw, 1.75rem);
}
.comp-pres-sw-grid ul { padding-left: 1.2rem; margin: 0; }
.comp-pres-sw-grid li {
  font-size: clamp(0.85rem, 1.35cqw, 1.25rem);
  padding: 0.25rem 0; color: #ccddee; line-height: 1.55;
}

.comp-pres-dims {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.4rem, 0.8cqw, 0.8rem);
  margin-top: auto;
}
.comp-pres-dim {
  background: rgba(10,22,40,0.8);
  padding: clamp(0.5rem, 1cqw, 1rem);
  border-radius: 0.5rem;
  border: 1px solid rgba(100,140,180,0.2);
  font-size: clamp(0.7rem, 0.95cqw, 0.95rem);
  line-height: 1.45;
}
.comp-pres-dim strong {
  display: block; font-size: clamp(0.7rem, 0.95cqw, 0.95rem);
  color: white; margin-bottom: 0.2rem;
}
.comp-pres-dim small {
  color: #99aabb; font-size: clamp(0.65rem, 0.85cqw, 0.85rem);
}
.comp-pres-dim.level-l1 { border-color: hsl(25 80% 52% / 0.4); }
.comp-pres-dim.level-l2 { border-color: hsl(210 100% 55% / 0.4); }
.comp-pres-dim.level-l3 { border-color: hsl(152 96% 26% / 0.4); }

.comp-pres-insights { padding-left: 1.75rem; margin: 0; }
.comp-pres-insights li {
  font-size: clamp(1rem, 1.7cqw, 1.5rem);
  line-height: 1.6; padding: 0.5rem 0; color: #ccddee;
}

.comp-pres-nav {
  display: flex; justify-content: center; gap: 0.75rem;
  flex-shrink: 0;
}
.comp-pres-nav button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  border-radius: 0.5rem;
  padding: 0.55rem 1.4rem;
  font-family: inherit; font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.comp-pres-nav button:hover:not(:disabled) {
  background: rgba(255,255,255,0.16);
  color: white;
  border-color: rgba(255,255,255,0.25);
}
.comp-pres-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

@media (max-width: 900px) {
  .comp-dims-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .comp-search-bar { flex-direction: column; }
  .comp-search-bar .comp-btn-primary { width: 100%; }
  .comp-result-header { flex-direction: column; align-items: stretch; }
  .comp-result-header-actions { justify-content: flex-end; }
  .comp-sw-grid { grid-template-columns: 1fr; }
  .comp-dims-row { grid-template-columns: repeat(2, 1fr); }
  .comp-pres-dims { grid-template-columns: repeat(2, 1fr); }
  .comp-pres-sw-grid { grid-template-columns: 1fr; }
  .comp-competitor-header { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .comp-dims-row { grid-template-columns: 1fr; }
  .comp-legend { font-size: 0.68rem; }
}

/* ---- COMPETITIVE TOGGLE CARD (Shadcn-style) ---- */
.comp-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--g2g-radius);
  background: hsl(var(--card));
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comp-toggle-card.active {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.15);
}
.comp-toggle-card-info h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.comp-toggle-card-info p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

/* Shadcn toggle switch */
.comp-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.comp-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.comp-toggle-slider {
  position: absolute;
  inset: 0;
  background: hsl(var(--muted));
  border-radius: 9999px;
  transition: background 0.2s;
}
.comp-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.comp-toggle-switch input:checked + .comp-toggle-slider {
  background: hsl(var(--primary));
}
.comp-toggle-switch input:checked + .comp-toggle-slider::before {
  transform: translateX(20px);
}

/* Skeleton loading (Shadcn-style) */
.comp-skeleton-group {
  padding: 1rem 0;
}
.comp-skeleton {
  background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 75%);
  background-size: 200% 100%;
  animation: comp-skeleton-pulse 1.5s infinite ease-in-out;
  border-radius: var(--g2g-radius);
}
.comp-skeleton-title {
  height: 1.25rem;
  width: 60%;
  margin-bottom: 0.75rem;
}
.comp-skeleton-text {
  height: 0.85rem;
  width: 90%;
  margin-bottom: 0.5rem;
}
.comp-skeleton-short {
  height: 0.85rem;
  width: 45%;
}
@keyframes comp-skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Inline results card */
.comp-inline-results {
  margin-top: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--g2g-radius);
  background: hsl(var(--card));
  overflow: hidden;
}
.comp-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
}
.comp-inline-header h5 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.comp-inline-header svg {
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s;
}
.comp-inline-header.open svg {
  transform: rotate(180deg);
}
.comp-inline-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
}
.comp-inline-body.open {
  max-height: 600px;
  padding: 0.5rem 1rem 1rem;
}
.comp-inline-summary {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.comp-inline-competitors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.comp-inline-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

/* Slides export — status line under the Scorecard action bar */
.g2g-slides-export-msg {
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}
.g2g-slides-export-msg a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.g2g-slides-export-msg--success {
  background: hsl(142 71% 45% / 0.12);
  color: hsl(142 71% 30%);
  border-color: hsl(142 71% 45% / 0.35);
}
.g2g-slides-export-msg--warn {
  background: hsl(38 92% 50% / 0.12);
  color: hsl(32 90% 28%);
  border-color: hsl(38 92% 50% / 0.35);
}
.g2g-slides-export-msg--neutral {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}
.g2g-slides-export-msg--error {
  background: hsl(var(--destructive) / 0.08);
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.35);
}
@media (prefers-color-scheme: dark) {
  .g2g-slides-export-msg--success {
    background: hsl(142 71% 45% / 0.18);
    color: hsl(142 71% 62%);
    border-color: hsl(142 71% 45% / 0.4);
  }
  .g2g-slides-export-msg--warn {
    background: hsl(38 92% 50% / 0.15);
    color: hsl(45 95% 70%);
    border-color: hsl(38 92% 50% / 0.35);
  }
}

