/**
 * MYPEAS Profile Redesign CSS
 * Phase 1: Extracted inline styles + v0-inspired improvements
 *
 * Table of Contents:
 * 0. Global Mobile Overflow Fix
 * 1. CSS Variables (Design Tokens)
 * 2. Activity Cards
 * 3. HITL Badges
 * 4. Cost Savings Card
 * 5. Metric Boxes
 * 6. Tab Navigation
 * 7. Buttons
 * 8. Utility Classes
 */

/* ==========================================================================
   0. Global Mobile Overflow Fix
   ========================================================================== */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

/* ==========================================================================
   1. CSS Variables (Design Tokens)
   ========================================================================== */

:root {
  /* Colors - Primary */
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;

  /* Colors - Semantic */
  --color-success: #10b981;
  --color-success-light: #ecfdf5;
  --color-success-border: #10b981;

  --color-warning: #f59e0b;
  --color-warning-light: #fffbeb;
  --color-warning-border: #f59e0b;

  --color-danger: #ef4444;
  --color-danger-light: #fef2f2;
  --color-danger-border: #ef4444;

  --color-neutral: #9ca3af;
  --color-neutral-light: #f3f4f6;
  --color-neutral-border: #9ca3af;

  /* Colors - Text */
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;

  /* Colors - Background */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;

  /* Colors - Border */
  --color-border: #e5e7eb;
  --color-border-light: lightgray;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 20px;

  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* ==========================================================================
   2. Activity Cards
   ========================================================================== */

.activity-card {
  position: relative;
  padding: var(--spacing-xl);
  background: var(--color-bg-primary);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-success);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.activity-card[data-locked="true"] {
  cursor: not-allowed;
}

.activity-card__lock-icon {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
}

.activity-card__lock-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FFBF00;
}

.activity-card__trending-icon {
  margin-bottom: var(--spacing-sm);
}

.activity-card__trending-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-neutral);
  transition: stroke var(--transition-fast);
}

.activity-card:hover .activity-card__trending-icon svg {
  stroke: var(--color-primary);
}

.activity-card__title {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
  line-height: 1.4;
}

.activity-card__description {
  margin: 0 0 var(--spacing-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Backwards compatibility with existing class */
.segment-container {
  position: relative;
  padding: var(--spacing-xl);
  background: var(--color-bg-primary);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.segment-container:hover {
  transform: translateY(-4px);
  border-color: var(--color-success);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.segment-container h4 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
}

.segment-container p {
  margin: 0 0 var(--spacing-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   2b. Activity Groups (with headers)
   ========================================================================== */

.activity-group {
  margin-bottom: var(--spacing-xl);
}

.activity-group:last-child {
  margin-bottom: 0;
}

.activity-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.activity-group__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.activity-group__segment-name {
  color: var(--color-text-muted);
}

.activity-group__separator {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.activity-group__activity-name {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

.activity-group__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.activity-group__output-count {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  background: var(--color-bg-tertiary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
}

.activity-group__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--color-text-secondary);
}

.activity-group__toggle:hover {
  background: var(--color-border);
}

.activity-group__toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.activity-group__toggle svg {
  transition: transform var(--transition-fast);
}

.activity-group--collapsed .activity-group__header {
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.activity-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

@media (max-width: 640px) {
  .activity-group__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .activity-group__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3. HITL Badges
   ========================================================================== */

.hitl-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border-width: 2px;
  border-style: solid;
}

.hitl-badge svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Low HITL (≤1.5) - Green */
.hitl-badge--low,
.hitl-badge[data-hitl-level="low"] {
  border-color: var(--color-success-border);
  color: var(--color-success);
  background-color: var(--color-success-light);
}

.hitl-badge--low svg,
.hitl-badge[data-hitl-level="low"] svg {
  stroke: var(--color-success);
}

/* Medium HITL (≤3.5) - Amber */
.hitl-badge--medium,
.hitl-badge[data-hitl-level="medium"] {
  border-color: var(--color-warning-border);
  color: var(--color-warning);
  background-color: var(--color-warning-light);
}

.hitl-badge--medium svg,
.hitl-badge[data-hitl-level="medium"] svg {
  stroke: var(--color-warning);
}

/* High HITL (>3.5) - Red */
.hitl-badge--high,
.hitl-badge[data-hitl-level="high"] {
  border-color: var(--color-danger-border);
  color: var(--color-danger);
  background-color: var(--color-danger-light);
}

.hitl-badge--high svg,
.hitl-badge[data-hitl-level="high"] svg {
  stroke: var(--color-danger);
}

/* No score - Gray */
.hitl-badge--none,
.hitl-badge[data-hitl-level="none"] {
  border-color: var(--color-neutral-border);
  color: var(--color-neutral);
  background-color: var(--color-neutral-light);
}

.hitl-badge--none svg,
.hitl-badge[data-hitl-level="none"] svg {
  stroke: var(--color-neutral);
}

/* ==========================================================================
   4. Cost Savings Card
   ========================================================================== */

.cost-savings-card {
  margin: var(--spacing-lg);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-primary);
  border: 2px solid var(--color-border-light);
}

/* v0-inspired: Emerald accent version */
.cost-savings-card--accent {
  border-color: #a7f3d0;
  background: linear-gradient(to bottom right, #ecfdf5, #d1fae5);
}

.cost-savings-card__title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.cost-savings-card__icon {
  font-size: var(--font-size-xl);
}

.cost-savings-card__subtitle {
  margin: 0 0 var(--spacing-xl) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.cost-savings-card__metrics {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

@media (max-width: 640px) {
  .cost-savings-card__metrics {
    flex-direction: column;
  }
}

.cost-savings-card__assumptions {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-lg);
}

.cost-savings-card__assumptions strong {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}

.assumptions-list {
  padding-left: var(--spacing-xl);
  margin: var(--spacing-sm) 0 var(--spacing-lg) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.assumptions-list li {
  margin-bottom: var(--spacing-xs);
}

.cost-savings-card__disclaimer {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--color-warning);
  background-color: var(--color-warning-light);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   5. Metric Boxes
   ========================================================================== */

.metric-box {
  flex: 1;
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-bg-primary);
  border-radius: var(--radius-md);
}

/* v0-inspired: with subtle shadow */
.metric-box--elevated {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.metric-box__icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.metric-box__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-success);
}

.metric-box__value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.metric-box__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   6. Tab Navigation
   ========================================================================== */

.tab-container {
  width: 100%;
}

.tab-nav {
  display: flex;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.tab-button {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-button:hover {
  color: var(--color-text-primary);
}

.tab-button.active {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.btn--outline:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-secondary);
}

.btn--success {
  background: var(--color-success);
  color: white;
}

.btn--success:hover {
  background: #059669;
}

/* v0-inspired: amber CTA button */
.btn--amber {
  background: #f59e0b;
  color: white;
}

.btn--amber:hover {
  background: #d97706;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   8. Utility Classes
   ========================================================================== */

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Text */
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }

.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }

.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Display */
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

/* Cards grid (for activity cards) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

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

/* ==========================================================================
   9. Segment Navigation (Modern Dropdown Style)
   ========================================================================== */

/* Segment Navigation Container */
.segment-nav {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Selector Section */
.segment-nav__selector-wrapper {
  margin-bottom: 20px;
}

.segment-nav__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.segment-nav__sublabel {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.segment-nav__dropdown-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

.segment-nav__dropdown {
  width: 100%;
  padding: 14px 48px 14px 18px;
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.2s ease;
}

.segment-nav__dropdown:hover {
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.segment-nav__dropdown:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.segment-nav__dropdown-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  transition: color 0.2s ease;
}

.segment-nav__dropdown:hover + .segment-nav__dropdown-arrow,
.segment-nav__dropdown:focus + .segment-nav__dropdown-arrow {
  color: #10b981;
}

/* Segment Card Container - wraps header and activities together */
.segment-card-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.segment-card-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.segment-card-header__title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.segment-card-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment-card-header__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}

.segment-card-header__badge--count {
  background: rgba(16, 185, 129, 0.1);
  color: #0e8856;
}

.segment-card-header__badge--steps {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.segment-card-header__badge--efficiency {
  background: rgba(168, 85, 247, 0.1);
  color: #7c3aed;
}

.segment-card-body {
  padding: 24px;
  background: #fafbfc;
}

/* Activities Container */
.segment-nav__activities {
  min-height: 200px;
  transition: opacity 0.15s ease;
}

.segment-nav__activities--loading {
  opacity: 0.5;
}

.segment-nav__empty {
  text-align: center;
  padding: 48px 24px;
  color: #94a3b8;
  font-size: 15px;
}

.segment-activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Mobile responsive for segment navigation */
@media (max-width: 768px) {
  .segment-nav {
    padding: 16px;
  }

  .segment-nav__dropdown-wrapper {
    max-width: 100%;
  }

  .segment-card-header {
    padding: 16px;
  }

  .segment-card-header__title {
    font-size: 18px;
  }

  .segment-card-body {
    padding: 16px;
  }

  .segment-activities-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .segment-card-header__badges {
    flex-direction: column;
  }
}

/* ==========================================================================
   10. Job-Holder Card
   ========================================================================== */

.job-holder-card {
  background: var(--color-bg-primary);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.job-holder-card__header {
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.job-holder-card__title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.job-holder-card__description {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
}

.job-holder-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-holder-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.job-holder-card__badge--primary {
  background: rgba(16, 185, 129, 0.1);
  color: #0e8856;
}

.job-holder-card__badge--framework {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  color: #334155;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.job-holder-card__badge--framework:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.job-holder-card__accordions {
  padding: 0;
}

/* ==========================================================================
   11. Accordion Component
   ========================================================================== */

.accordion {
  border-bottom: 1px solid #e2e8f0;
}

.accordion:last-child {
  border-bottom: none;
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.2s ease;
}

.accordion__header:hover {
  background: #f8fafc;
}

.accordion__title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.accordion__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  flex-shrink: 0;
}

.accordion__icon svg {
  width: 18px;
  height: 18px;
  stroke: #64748b;
}

.accordion__icon--success {
  background: rgba(16, 185, 129, 0.1);
}

.accordion__icon--success svg {
  stroke: var(--color-success);
}

.accordion__icon--warning {
  background: rgba(245, 158, 11, 0.1);
}

.accordion__icon--warning svg {
  stroke: var(--color-warning);
}

.accordion__icon--primary {
  background: rgba(59, 130, 246, 0.1);
}

.accordion__icon--primary svg {
  stroke: var(--color-primary);
}

.accordion__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.accordion__summary {
  font-size: 13px;
  color: #64748b;
  margin-left: auto;
  padding-right: 12px;
}

.accordion__toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #64748b;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion.expanded .accordion__toggle {
  transform: rotate(180deg);
}

.accordion__content {
  display: none;
  padding: 0 24px 20px 24px;
  animation: accordionSlideDown 0.3s ease-out;
}

.accordion.expanded .accordion__content {
  display: block;
}

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

/* ==========================================================================
   12. ROI Accordion Content
   ========================================================================== */

.roi-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.roi-metric {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.roi-metric__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 4px;
}

.roi-metric__label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roi-note {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}

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

/* ==========================================================================
   13. HITL Distribution Accordion Content
   ========================================================================== */

.hitl-distribution {
  margin-bottom: 16px;
}

.hitl-bar {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.hitl-bar__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
  min-width: 40px;
  transition: flex 0.3s ease;
}

.hitl-bar__segment--ai-ready {
  background: var(--color-success);
}

.hitl-bar__segment--human-in-loop {
  background: var(--color-warning);
}

.hitl-bar__segment--human-led {
  background: var(--color-danger);
}

.hitl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hitl-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.hitl-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hitl-legend__dot--ai-ready {
  background: var(--color-success);
}

.hitl-legend__dot--human-in-loop {
  background: var(--color-warning);
}

.hitl-legend__dot--human-led {
  background: var(--color-danger);
}

/* ==========================================================================
   14. Tool Categories Accordion Content
   ========================================================================== */

.tool-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
}

.tool-category:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.tool-category svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   Tool Categories Section - Full Content (matching mypeas.js production)
   -------------------------------------------------------------------------- */

.tools-section {
  padding: 0;
}

.tools-intro {
  font-size: 16px;
  color: #374151;
  margin-bottom: 16px;
  line-height: 1.5;
}

.tools-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tools-category-card {
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 0 8px 8px 0;
}

.tools-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.tools-category-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tools-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6366F1;
}

.tools-category-icon svg {
  width: 14px;
  height: 14px;
}

.tools-relevance-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.tools-relevance-badge--high {
  background: #D1FAE5;
  color: #065F46;
}

.tools-relevance-badge--medium {
  background: #DBEAFE;
  color: #1E40AF;
}

.tools-relevance-badge--low {
  background: #F3F4F6;
  color: #374151;
}

.tools-category-activities {
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.tools-category-usecase {
  font-size: 14px;
  color: #374151;
  margin: 0;
  line-height: 1.4;
}

/* Workflow Type Distribution */
.tools-distribution-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.tools-distribution-heading {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 12px 0;
}

.tools-distribution-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tools-distribution-badge {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  background: #EEF2FF;
  color: #4F46E5;
  font-weight: 500;
  text-transform: capitalize;
}

/* ==========================================================================
   15. Workflow Opportunities Accordion Content
   ========================================================================== */

.workflow-opportunities {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.workflow-item:hover {
  border-color: var(--color-success);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.workflow-item__info {
  flex: 1;
}

.workflow-item__title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.workflow-item__meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.workflow-item__savings {
  color: var(--color-success);
  font-weight: 600;
}

.workflow-item__complexity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.workflow-item__complexity--low {
  color: var(--color-success);
}

.workflow-item__complexity--medium {
  color: var(--color-warning);
}

.workflow-item__complexity--high {
  color: var(--color-danger);
}

.workflow-item__arrow {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.workflow-item:hover .workflow-item__arrow {
  transform: translateX(4px);
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   Workflow Cards Section - Full Content (matching mypeas.js production)
   -------------------------------------------------------------------------- */

.workflows-section {
  padding: 0;
}

.workflows-intro {
  font-size: 16px;
  color: #374151;
  margin-bottom: 20px;
  line-height: 1.5;
}

.workflows-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.workflow-card {
  border-left: 4px solid #4F46E5;
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.workflow-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}

.workflow-card__value-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.workflow-card__value-badge--transformational {
  background: #F3E8FF;
  color: #6B21A8;
}

.workflow-card__value-badge--high {
  background: #DBEAFE;
  color: #1E40AF;
}

.workflow-card__value-badge--medium {
  background: #F3F4F6;
  color: #374151;
}

.workflow-card__description {
  font-size: 14px;
  color: #374151;
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.workflow-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  font-size: 14px;
  margin-bottom: 12px;
}

.workflow-card__metric {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.workflow-card__metric-label {
  font-weight: 600;
  color: #374151;
}

.workflow-card__metric-value {
  color: #6B7280;
}

.workflow-card__metric-value--highlight {
  color: #4F46E5;
  font-weight: 600;
}

.workflow-card__benefits {
  font-size: 14px;
  margin-bottom: 12px;
}

.workflow-card__benefits-label {
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 4px;
}

.workflow-card__benefits-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  color: #6B7280;
}

.workflow-card__benefits-list li {
  margin-bottom: 4px;
}

.workflow-card__outputs {
  font-size: 14px;
  background: #EFF6FF;
  border-left: 2px solid #3B82F6;
  padding: 12px;
  margin-top: 12px;
  border-radius: 0 6px 6px 0;
}

.workflow-card__outputs-label {
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 4px;
}

.workflow-card__outputs-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  color: #374151;
}

.workflow-card__outputs-list li {
  margin-bottom: 2px;
}

.workflow-card__outputs-more {
  color: #6B7280;
  font-style: italic;
}

.workflow-card__nav-hint {
  font-size: 13px;
  color: #6B7280;
  margin: 8px 0 0 0;
}

.workflow-card__nav-hint strong {
  color: #374151;
}

.workflow-activity-link {
  color: #1bb978;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed #1bb978;
  transition: all 0.2s ease;
}

.workflow-activity-link:hover {
  color: #0e8856;
  border-bottom-color: #0e8856;
  border-bottom-style: solid;
}

/* Mobile responsive for workflow cards */
@media (max-width: 640px) {
  .workflow-card__metrics {
    grid-template-columns: 1fr;
  }

  .workflow-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   16. ROI Content Section (Production-matching with visual structure)
   ========================================================================== */

/* Section container with visual separation */
.roi-section {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.roi-section:first-child {
  padding-top: 0;
}

.roi-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.roi-section__heading {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.roi-summary {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin: 0;
}

.roi-summary strong {
  color: #111827;
}

/* Methodology Note callout */
.roi-methodology {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fde047;
  border-radius: 10px;
  padding: 14px 16px !important;
  margin: 0;
}

.roi-methodology__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #854d0e;
}

.roi-methodology__icon {
  font-size: 16px;
}

.roi-methodology__text {
  font-size: 13px;
  color: #713f12;
  line-height: 1.6;
  margin: 0;
}

.roi-methodology__text strong {
  color: #854d0e;
}

/* Breakdown by Strategic Impact */
.roi-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-breakdown__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
}

.roi-breakdown__item--high {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left: 3px solid #10b981;
}

.roi-breakdown__item--medium {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 3px solid #94a3b8;
}

.roi-breakdown__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.roi-breakdown__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.roi-breakdown__dot--high {
  background: #10b981;
}

.roi-breakdown__dot--medium {
  background: #94a3b8;
}

.roi-breakdown__value {
  font-size: 13px;
  color: #64748b;
}

/* Quick-Win Opportunities list */
.roi-opportunities__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-opportunity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.roi-opportunity:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.roi-opportunity__content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.roi-opportunity__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e0e7ff;
  color: #4f46e5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.roi-opportunity__title {
  font-size: 14px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roi-opportunity__stats {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.roi-opportunity__hours {
  font-size: 14px;
  font-weight: 600;
  color: #4F46E5;
}

.roi-opportunity__efficiency {
  font-size: 12px;
  color: #6B7280;
}

/* Clickable quick-win opportunities */
.roi-opportunity--clickable {
  cursor: pointer;
  position: relative;
}

.roi-opportunity--clickable:hover {
  background-color: #eef2ff;
  border-color: #a5b4fc;
  transform: translateX(4px);
}

.roi-opportunity--clickable:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.roi-opportunity__arrow {
  font-size: 16px;
  color: #a5b4fc;
  margin-left: 8px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.roi-opportunity--clickable:hover .roi-opportunity__arrow {
  transform: translateX(4px);
  color: #6366f1;
}

/* ROI section explainer text */
.roi-section__explainer {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 12px 0;
  font-style: italic;
}

.roi-section__info-icon {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-left: 6px;
  cursor: help;
}

/* HITL Activity Links - clickable activities in Automation Suitability section */
.hitl-activity-link {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.hitl-activity-link:hover {
  background-color: #eef2ff;
  border-color: #a5b4fc;
  transform: translateX(4px);
}

.hitl-activity-link:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.hitl-activity-link__arrow {
  font-size: 14px;
  color: #c7d2fe;
  margin-left: auto;
  padding-left: 8px;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  opacity: 0.6;
}

.hitl-activity-link:hover .hitl-activity-link__arrow {
  transform: translateX(4px);
  color: #6366f1;
  opacity: 1;
}

/* Activity card highlight animation */
.activity-card--highlighted {
  animation: card-highlight 2s ease-out;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

@keyframes card-highlight {
  0% {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.6);
    background-color: rgba(238, 242, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
    background-color: rgba(238, 242, 255, 0.4);
  }
  100% {
    box-shadow: none;
    background-color: transparent;
  }
}

/* Quick Win Banner - shown in activity detail when navigating from ROI section */
.quick-win-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  animation: banner-slide-in 0.3s ease-out;
}

@keyframes banner-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-win-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #4f46e5;
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.quick-win-banner__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-win-banner__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #4338ca;
  font-weight: 500;
}

.quick-win-banner__stat svg {
  color: #6366f1;
}

.quick-win-banner__value {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid #fcd34d;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .quick-win-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .quick-win-banner__stats {
    gap: 10px;
  }

  .quick-win-banner__stat {
    font-size: 13px;
  }
}

/* HITL Context Banner - shown in activity detail when navigating from HITL section */
.hitl-context-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  animation: banner-slide-in 0.3s ease-out;
}

.hitl-context-banner--high {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
}

.hitl-context-banner--medium {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}

.hitl-context-banner--low {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
}

.hitl-context-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.hitl-context-banner--high .hitl-context-banner__badge {
  background: #059669;
  color: white;
}

.hitl-context-banner--medium .hitl-context-banner__badge {
  background: #d97706;
  color: white;
}

.hitl-context-banner--low .hitl-context-banner__badge {
  background: #dc2626;
  color: white;
}

.hitl-context-banner__icon {
  font-size: 14px;
}

.hitl-context-banner__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.hitl-context-banner--high .hitl-context-banner__desc {
  color: #047857;
}

.hitl-context-banner--medium .hitl-context-banner__desc {
  color: #b45309;
}

.hitl-context-banner--low .hitl-context-banner__desc {
  color: #b91c1c;
}

@media (max-width: 600px) {
  .hitl-context-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* KPI Context Banner - shown in activity detail when navigating from demo KPIs */
.kpi-context-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  animation: banner-slide-in 0.3s ease-out;
}

.kpi-context-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #059669;
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
  width: fit-content;
}

.kpi-context-banner__badge svg {
  stroke: white;
}

.kpi-context-banner__title {
  font-size: 18px;
  font-weight: 700;
  color: #047857;
  margin: 4px 0;
}

.kpi-context-banner__target {
  font-size: 14px;
  color: #065f46;
  font-weight: 500;
}

.kpi-context-banner__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.kpi-context-banner__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #047857;
  font-weight: 500;
}

.kpi-context-banner__stat svg {
  color: #10b981;
}

@media (max-width: 600px) {
  .kpi-context-banner__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Workflow Opportunity Banner - shown above AI Workflows section when navigating from workflow opportunities */
.workflow-opportunity-banner {
  padding: 16px 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  animation: banner-slide-in 0.3s ease-out;
}

.workflow-opportunity-banner__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.workflow-opportunity-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.workflow-opportunity-banner__value {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  text-transform: capitalize;
}

.workflow-opportunity-banner__title {
  font-size: 16px;
  font-weight: 600;
  color: #047857;
  margin-bottom: 8px;
}

.workflow-opportunity-banner__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.workflow-opportunity-banner__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #047857;
  font-weight: 500;
}

.workflow-opportunity-banner__stat svg {
  color: #059669;
}

.workflow-opportunity-banner__desc {
  font-size: 13px;
  color: #065f46;
  margin: 0;
}

@media (max-width: 600px) {
  .workflow-opportunity-banner {
    padding: 14px 16px;
  }

  .workflow-opportunity-banner__header {
    flex-wrap: wrap;
  }

  .workflow-opportunity-banner__stats {
    gap: 10px;
  }

  .workflow-opportunity-banner__stat {
    font-size: 13px;
  }
}

/* ==========================================================================
   Tool Category Cards - Clickable styles
   ========================================================================== */

.tools-category-card--clickable {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tools-category-card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tools-category-card--clickable:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.tools-category-card__arrow {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #6366f1;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tools-category-card--clickable:hover .tools-category-card__arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ==========================================================================
   Tool Category Expanded View
   ========================================================================== */

.tool-category-view {
  padding: 0;
}

.tool-category-banner {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: 24px;
}

.tool-category-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* .tool-category-banner__back - now uses unified back button style below */

.tool-category-banner__relevance {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-transform: capitalize;
}

.tool-category-banner__title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.tool-category-banner__usecase {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.tool-category-banner__activities {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

.tool-category-content {
  padding: 0;
}

/* Tool Category Section - for grouping tools (Essential AI Assistants, Recommended, etc.) */
.tool-category-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.tool-category-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tool-category-section__title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.tool-category-section__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px 0;
}

.tool-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-category-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6b7280;
}

.tool-category-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tool-category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 15px;
}

/* Tool Category Card */
.tool-category-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tool-category-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.tool-category-card__image {
  height: 140px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-category-card__placeholder {
  font-size: 48px;
  opacity: 0.5;
}

.tool-category-card__content {
  padding: 16px;
  flex: 1;
}

.tool-category-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
}

.tool-category-card__group {
  display: inline-block;
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
}

.tool-category-card__group--clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-category-card__group--clickable:hover {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.tool-category-results-info {
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 16px;
}

.tool-category-results-info p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.tool-category-card__desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.tool-category-card__link {
  display: block;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  color: #6366f1;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease;
}

.tool-category-card__link:hover {
  background: #eef2ff;
}

/* Pagination */
.tool-category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 0;
}

.tool-category-pagination__btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-category-pagination__btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #d1d5db;
}

.tool-category-pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tool-category-pagination__info {
  font-size: 14px;
  color: #6b7280;
  min-width: 100px;
  text-align: center;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .tool-category-banner {
    padding: 16px;
  }

  .tool-category-banner__title {
    font-size: 20px;
  }

  .tool-category-grid {
    grid-template-columns: 1fr;
  }

  .tool-category-pagination {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Tool Expanded View - Full page tool detail with actions
   ========================================================================== */

.tool-expanded-view {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

.tool-expanded-view__header {
  margin-bottom: 24px;
}

/* .tool-expanded-view__back - now uses unified back button style below */

.tool-expanded-view__hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.tool-expanded-view__image-container {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-expanded-view__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-expanded-view__placeholder {
  font-size: 48px;
}

.tool-expanded-view__info {
  flex: 1;
}

.tool-expanded-view__name {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.tool-expanded-view__category {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 12px;
}

.tool-expanded-view__usecase {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.5;
}

/* Action Buttons */
.tool-expanded-view__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tool-expanded-view__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.tool-expanded-view__btn--share {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.tool-expanded-view__btn--share:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.tool-expanded-view__btn--visit {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
}

.tool-expanded-view__btn--visit:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
}

.tool-expanded-view__btn--track {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.tool-expanded-view__btn--track:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}

/* Description Section */
.tool-expanded-view__description {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.tool-expanded-view__description h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.tool-expanded-view__description-text {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

/* Description HTML formatting */
.tool-expanded-view__description-text p {
  margin: 0 0 12px 0;
}

.tool-expanded-view__description-text p:last-child {
  margin-bottom: 0;
}

.tool-expanded-view__description-text ul,
.tool-expanded-view__description-text ol {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.tool-expanded-view__description-text li {
  margin-bottom: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tool-expanded-view {
    padding: 16px;
  }

  .tool-expanded-view__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .tool-expanded-view__image-container {
    width: 100px;
    height: 100px;
  }

  .tool-expanded-view__name {
    font-size: 24px;
  }

  .tool-expanded-view__actions {
    justify-content: center;
  }

  .tool-expanded-view__btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.mypeas-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: #1f2937;
  color: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mypeas-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.mypeas-toast--success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mypeas-toast--error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@media (max-width: 768px) {
  .mypeas-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   Unified Back Button Style
   ========================================================================== */

/* All back buttons now use a consistent style: white bg with border */
.mypeas-back-btn,
.tool-category-banner__back,
.tool-expanded-view__back,
.activity-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mypeas-back-btn:hover,
.tool-category-banner__back:hover,
.tool-expanded-view__back:hover,
.activity-detail__back:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.mypeas-back-btn svg,
.tool-category-banner__back svg,
.tool-expanded-view__back svg,
.activity-detail__back svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   17. HITL Content Section (Production-matching with visual structure)
   ========================================================================== */

/* Section container with visual separation */
.hitl-section {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.hitl-section:first-child {
  padding-top: 0;
}

.hitl-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hitl-section__heading {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.hitl-summary {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.hitl-summary strong {
  color: #111827;
}

.hitl-bucket-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  color: #374151;
}

.hitl-bucket-list li {
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 14px;
  border-left: 3px solid #e2e8f0;
}

.hitl-bucket-list li strong {
  color: #1e293b;
}

/* Critical Dimensions */
.hitl-dimensions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hitl-dimension {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
}

.hitl-dimension__name {
  font-size: 14px;
  color: #374151;
  text-transform: capitalize;
  font-weight: 500;
}

.hitl-dimension__score {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hitl-dimension__importance {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

.hitl-importance--high {
  background: #fef2f2;
  color: #DC2626;
}

.hitl-importance--medium {
  background: #fffbeb;
  color: #D97706;
}

.hitl-importance--low {
  background: #ecfdf5;
  color: #059669;
}

/* Oversight reasons */
.hitl-oversight-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  color: #374151;
}

.hitl-oversight-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
}

.hitl-oversight-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #f59e0b;
  font-weight: bold;
}

/* Automation Suitability Grid */
.hitl-suitability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  font-size: 14px;
}

.hitl-suitability-column {
  min-width: 0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
}

.hitl-suitability-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hitl-suitability-icon {
  font-size: 14px;
}

.hitl-suitability-title--high {
  color: #059669;
}

.hitl-suitability-title--medium {
  color: #D97706;
}

.hitl-suitability-title--low {
  color: #DC2626;
}

.hitl-suitability-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  color: #64748b;
}

.hitl-suitability-list li {
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid #e2e8f0;
}

.hitl-suitability-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   18. Accordion Emoji (Production-matching)
   ========================================================================== */

.accordion__emoji {
  font-size: 18px;
  margin-right: 8px;
}

.accordion__toggle {
  font-size: 14px;
  color: #6B7280;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.accordion.expanded .accordion__toggle {
  transform: rotate(90deg);
}

/* Mobile responsive for job-holder card */
@media (max-width: 640px) {
  .job-holder-card__header {
    padding: 16px;
  }

  .job-holder-card__title {
    font-size: 22px;
  }

  .accordion__header {
    padding: 14px 16px;
  }

  .accordion__content {
    padding: 0 16px 16px 16px;
  }

  .accordion__summary {
    display: none;
  }

  .hitl-legend {
    flex-direction: column;
    gap: 8px;
  }

  .workflow-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .workflow-item__arrow {
    display: none;
  }

  .roi-opportunity {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .roi-opportunity__content {
    width: 100%;
  }

  .roi-opportunity__stats {
    text-align: left;
    width: 100%;
    display: flex;
    gap: 12px;
  }

  .roi-breakdown__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hitl-suitability-grid {
    grid-template-columns: 1fr;
  }

  .hitl-dimension {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hitl-dimension__score {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================================
   Custom Profile CTA Card
   Modern, clean design matching the site aesthetic
   ============================================================================ */

.cta-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fbbf24;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.cta-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cta-card__icon {
  font-size: 24px;
  line-height: 1;
}

.cta-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #92400e;
  margin: 0;
  line-height: 1.3;
}

.cta-card__description {
  font-size: 14px;
  color: #78350f;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

/* Role Variants Section */
.cta-card__variants {
  margin-bottom: 16px;
}

.cta-card__variants-label {
  font-size: 13px;
  font-weight: 500;
  color: #92400e;
  margin: 0 0 8px 0;
}

.cta-card__variants-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-card__variant-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: white;
  border: 1px solid #f59e0b;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #92400e;
  transition: all 0.2s ease;
}

.cta-card__variant-badge:hover {
  background: #fef3c7;
  border-color: #d97706;
  transform: translateY(-1px);
}

/* Value Proposition Box */
.cta-card__value-box {
  background: white;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.cta-card__value-intro {
  font-size: 14px;
  color: #1f2937;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.cta-card__benefits-list {
  font-size: 13px;
  color: #374151;
  margin: 0 0 12px 0;
  padding: 0 0 0 20px;
  line-height: 1.7;
}

.cta-card__benefits-list li {
  margin-bottom: 4px;
}

.cta-card__benefits-list li::marker {
  color: #f59e0b;
}

.cta-card__value-closure {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.5;
}

.cta-card__highlight {
  color: #dc2626;
  font-weight: 700;
}

/* CTA Button */
.cta-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.cta-card__button--primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3), 0 2px 4px -1px rgba(245, 158, 11, 0.2);
}

.cta-card__button--primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px -1px rgba(245, 158, 11, 0.35), 0 4px 6px -1px rgba(245, 158, 11, 0.25);
}

.cta-card__button--primary:active {
  transform: translateY(0);
}

.cta-card__button-icon {
  font-size: 18px;
  line-height: 1;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .cta-card {
    padding: 20px 16px;
    margin: 16px 0;
  }

  .cta-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cta-card__title {
    font-size: 16px;
  }

  .cta-card__variant-badge {
    padding: 5px 12px;
    font-size: 12px;
  }

  .cta-card__value-box {
    padding: 14px 16px;
  }

  .cta-card__button {
    width: 100%;
    padding: 14px 20px;
  }
}

/* ==========================================================================
   19. Activity Detail View (Inline page style matching v0 production)
   ========================================================================== */

/* Main container - transparent, no wrapper styling */
.activity-detail {
  background: transparent;
  padding: 0;
}

/* Header */
.activity-detail__header {
  padding: 16px 0 24px 0;
}

/* .activity-detail__back - now uses unified back button style above */

/* Card containers - white with subtle border */
.activity-detail__card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.activity-detail__card-header {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.activity-detail__card-subtitle {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.activity-detail__card-subtitle strong {
  color: #374151;
}

.activity-detail__label {
  margin: 20px 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* Current step - green highlight card */
.activity-detail__current-step {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.activity-detail__current-step-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #166534;
  line-height: 1.5;
}

/* Steps Navigation - simple list style */
.activity-detail__steps-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.activity-detail__step-nav-item {
  display: block;
  padding: 8px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: #d1d5db;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.activity-detail__step-nav-item:last-child {
  border-bottom: none;
}

.activity-detail__step-nav-item:hover {
  color: #111827;
  text-decoration-color: #6b7280;
}

.activity-detail__step-nav-item--active {
  color: #059669;
  font-weight: 500;
  text-decoration: none;
}

/* HITL Score Section - prominent display */
.activity-detail__hitl-container {
  /* Container for HITL content */
}

.activity-detail__hitl-result {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.activity-detail__hitl-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.activity-detail__hitl-score-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-detail__hitl-score-circle--low {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 2px solid #86efac;
}

.activity-detail__hitl-score-circle--medium {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 2px solid #fcd34d;
}

.activity-detail__hitl-score-circle--high {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid #fca5a5;
}

.activity-detail__hitl-score-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-detail__hitl-content {
  flex: 1;
}

.activity-detail__hitl-bucket-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.activity-detail__hitl-bucket-badge--low {
  background: #dcfce7;
  color: #166534;
}

.activity-detail__hitl-bucket-badge--medium {
  background: #fef3c7;
  color: #92400e;
}

.activity-detail__hitl-bucket-badge--high {
  background: #fee2e2;
  color: #991b1b;
}

.activity-detail__hitl-reasoning {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.activity-detail__hitl-explain {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
  text-decoration: none;
}

.activity-detail__hitl-explain:hover {
  text-decoration: underline;
}

/* HITL Request state */
.activity-detail__hitl-request {
  padding: 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
}

/* Tool Cards - matching v0 style */
.activity-detail__tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.activity-detail__tool-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.activity-detail__tool-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.activity-detail__tool-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.activity-detail__tool-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.activity-detail__tool-name {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.activity-detail__tool-desc {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.activity-detail__tool-placeholder {
  grid-column: 1 / -1;
  padding: 32px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.activity-detail__tools-hint {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6b7280;
}

/* Cost Savings - clean white card with metrics */
.activity-detail__cost-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.activity-detail__cost-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.activity-detail__cost-icon {
  font-size: 18px;
}

.activity-detail__cost-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.activity-detail__cost-subtitle {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #6b7280;
}

.activity-detail__cost-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.activity-detail__cost-metric {
  text-align: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.activity-detail__cost-metric-icon {
  font-size: 20px;
  margin-bottom: 8px;
  color: #6b7280;
}

.activity-detail__cost-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.activity-detail__cost-metric-label {
  font-size: 12px;
  color: #6b7280;
}

.activity-detail__cost-assumptions {
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.activity-detail__cost-assumptions-title {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.activity-detail__cost-assumptions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #6b7280;
}

.activity-detail__cost-assumptions-list li {
  margin-bottom: 4px;
}

.activity-detail__cost-edit-btn {
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.activity-detail__cost-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: #fef3c7;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
}

.activity-detail__cost-disclaimer-icon {
  flex-shrink: 0;
}

/* Efficiency Gain Section */
.activity-detail__efficiency-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.activity-detail__efficiency-desc {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.activity-detail__efficiency-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.activity-detail__efficiency-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
}

.activity-detail__efficiency-badge--inactive {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.activity-detail__efficiency-badge-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.activity-detail__efficiency-badge-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}

.activity-detail__efficiency-badge--inactive .activity-detail__efficiency-badge-content h4 {
  color: #6b7280;
}

.activity-detail__efficiency-badge-content p {
  margin: 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}

/* Workflows & Agents - simple card style */
.activity-detail__card {
  margin-bottom: 20px;
}

.activity-detail__card-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.activity-detail__card-desc {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.activity-detail__card-desc strong {
  color: #374151;
}

.activity-detail__card-links {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

.activity-detail__card-links a {
  color: #2563eb;
  text-decoration: none;
}

.activity-detail__card-links a:hover {
  text-decoration: underline;
}

/* Need Help Section */
.activity-detail__help-card {
  background: #ffffff;
}

.activity-detail__help-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.activity-detail__help-avatar {
  width: 48px;
  height: 48px;
  background: #ede9fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-detail__help-avatar svg {
  color: #7c3aed;
}

.activity-detail__help-text {
  flex: 1;
}

.activity-detail__help-text h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.activity-detail__help-text p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Track Impact Info Box */
.activity-detail__track-impact-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #3b82f6;
}

.activity-detail__track-impact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.activity-detail__track-impact-icon {
  font-size: 24px;
  line-height: 1;
}

.activity-detail__track-impact-card .activity-detail__card-header {
  color: #1e40af;
  margin: 0;
}

.activity-detail__track-impact-card .activity-detail__card-subtitle {
  color: #1e3a8a;
  margin-bottom: 16px;
}

.activity-detail__track-impact-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-detail__track-impact-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #93c5fd;
  border-radius: 10px;
}

.activity-detail__track-impact-benefit-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.activity-detail__track-impact-benefit strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}

.activity-detail__track-impact-benefit p {
  margin: 0;
  font-size: 13px;
  color: #3730a3;
  line-height: 1.5;
}

/* Report Section */
.activity-detail__report-content {
  /* Container */
}

.activity-detail__report-key-deliverable {
  margin-bottom: 16px;
}

.activity-detail__report-key-deliverable h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.activity-detail__report-key-deliverable p {
  margin: 0;
  font-size: 15px;
  color: #374151;
}

/* Visual layout with document illustration */
.activity-detail__report-visual {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 16px;
}

.activity-detail__report-illustration {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  color: #9ca3af;
}

.activity-detail__report-checkmark {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-detail__report-checkmark svg {
  width: 16px;
  height: 16px;
}

.activity-detail__report-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.activity-detail__report-cta {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .activity-detail__report-visual {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .activity-detail__report-action {
    align-items: center;
  }
}

/* Buttons */
.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn--outline:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn--outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #111827;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn--primary:hover:not(:disabled) {
  background: #1f2937;
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--dark {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.btn--dark:hover:not(:disabled) {
  background: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
  .activity-detail__tools-grid {
    grid-template-columns: 1fr;
  }

  .activity-detail__cost-metrics {
    grid-template-columns: 1fr;
  }

  .activity-detail__efficiency-badges {
    flex-direction: column;
  }

  .activity-detail__efficiency-badge {
    min-width: 100%;
  }

  .activity-detail__help-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .activity-detail__section {
    padding: 16px;
  }

  .activity-detail__title-card {
    padding: 16px;
  }

  .activity-detail__title {
    font-size: 18px;
  }
}

/* ============================================================
   API Integration Result Styles
   ============================================================ */

/* Loading State */
.activity-detail__loading {
  padding: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* No Results State */
.activity-detail__no-results {
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  background: #f9fafb;
  border-radius: 8px;
  margin: 12px 0;
}

/* Tools Toggle Component - Three Tab Design */
.activity-detail__tools-toggle {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.activity-detail__tools-toggle-pills {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.activity-detail__tools-toggle-pill {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.activity-detail__tools-toggle-pill:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
}

.activity-detail__tools-toggle-pill.active {
  background: white;
  color: #2e7d32;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Loading state for tools grid */
.activity-detail__job-tools-grid.loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
  min-height: 120px;
}

.activity-detail__job-tools-grid.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 2px solid #2e7d32;
  border-top-color: transparent;
  border-radius: 50%;
  animation: tools-spinner 0.8s linear infinite;
}

@keyframes tools-spinner {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Tool Sections */
.activity-detail__tools-section {
  margin-bottom: 20px;
}

.activity-detail__tools-section:last-child {
  margin-bottom: 0;
}

.activity-detail__tools-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 2px 0;
}

.activity-detail__tools-section-subtitle {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 8px 0;
}

/* Tool Cards - Horizontal Scroll */
.activity-detail__tools-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 8px 0 0 0;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.activity-detail__tools-grid::-webkit-scrollbar {
  height: 6px;
}

.activity-detail__tools-grid::-webkit-scrollbar-track {
  background: transparent;
}

.activity-detail__tools-grid::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.activity-detail__tools-grid::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.activity-detail__tool-card {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-width: 200px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.activity-detail__tool-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.activity-detail__tool-screenshot {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.activity-detail__tool-info {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-detail__tool-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-detail__tool-category {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 3px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.activity-detail__tool-desc {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Workflow Cards */
.activity-detail__workflow-results {
  margin-top: 16px;
}

.activity-detail__workflow-card {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
}

.activity-detail__workflow-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.activity-detail__workflow-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.activity-detail__workflow-link {
  font-size: 13px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.activity-detail__workflow-link:hover {
  text-decoration: underline;
}

/* Agent Cards */
.activity-detail__agent-results {
  margin-top: 16px;
}

.activity-detail__agent-card {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
}

.activity-detail__agent-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.activity-detail__agent-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.activity-detail__agent-link {
  font-size: 13px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.activity-detail__agent-link:hover {
  text-decoration: underline;
}

/* Advice Results */
.activity-detail__advice-results {
  margin-top: 16px;
}

.activity-detail__advice-container {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 16px;
}

.activity-detail__advice-title {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 12px 0;
}

.activity-detail__advice-item {
  padding: 12px 0;
  border-bottom: 1px solid #fde68a;
}

.activity-detail__advice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-detail__advice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.activity-detail__advice-header strong {
  color: #78350f;
}

.activity-detail__advice-group {
  font-size: 11px;
  padding: 2px 8px;
  background: #fef3c7;
  color: #b45309;
  border-radius: 4px;
}

.activity-detail__advice-reason {
  font-size: 13px;
  color: #78350f;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.activity-detail__advice-expand {
  font-size: 12px;
  color: #b45309;
  font-style: italic;
}

/* Document Outline Results */
.activity-detail__outline-results {
  margin-top: 16px;
}

.activity-detail__outline-container {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 20px;
}

.activity-detail__outline-title {
  font-size: 16px;
  font-weight: 600;
  color: #166534;
  margin: 0 0 12px 0;
}

.activity-detail__outline-instructions {
  font-size: 13px;
  color: #15803d;
  margin: 0 0 16px 0;
  line-height: 1.5;
  padding: 12px;
  background: #dcfce7;
  border-radius: 6px;
}

.activity-detail__outline-sections {
  margin-top: 12px;
}

.activity-detail__outline-section {
  padding: 12px 0;
  border-bottom: 1px solid #bbf7d0;
}

.activity-detail__outline-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-detail__outline-section strong {
  display: block;
  color: #166534;
  margin-bottom: 4px;
}

.activity-detail__outline-section p {
  font-size: 13px;
  color: #15803d;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   9. Header Component
   ========================================================================== */

.mypeas-header {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mypeas-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mypeas-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mypeas-header__logo {
  height: 32px;
}

.mypeas-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: 3rem;
  flex: 1;
}

.mypeas-header__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mypeas-header__link:hover {
  color: var(--color-text-primary);
}

.mypeas-header__user {
  position: relative;
}

.mypeas-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.mypeas-header__avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mypeas-header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.mypeas-header__dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mypeas-header__dropdown-header {
  padding: 1rem;
}

.mypeas-header__dropdown-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.mypeas-header__dropdown-email {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-top: 0.125rem;
  word-break: break-all;
}

.mypeas-header__dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

.mypeas-header__dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: background 0.15s;
}

.mypeas-header__dropdown-item:hover {
  background: var(--color-bg-secondary);
}

.mypeas-header__dropdown-logout {
  color: var(--color-danger);
}

.mypeas-header__dropdown-logout:hover {
  background: var(--color-danger-light);
}

.mypeas-header__login-btn {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #1bb978 0%, #0e8856 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mypeas-header__login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 185, 120, 0.3);
}

.mypeas-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
}

.mypeas-header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mypeas-header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mypeas-header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.mypeas-header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mypeas-header__mobile-menu {
  display: none;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem 1.5rem;
}

.mypeas-header__mobile-menu.show {
  display: block;
}

.mypeas-header__mobile-link {
  display: block;
  width: 100%;
  padding: 0.875rem 0;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mypeas-header__mobile-link:hover {
  color: var(--color-primary);
}

.mypeas-header__mobile-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

.mypeas-header__mobile-logout {
  color: var(--color-danger);
}

@media (max-width: 768px) {
  .mypeas-header__nav {
    display: none;
  }

  .mypeas-header__user {
    display: none;
  }

  .mypeas-header__login-btn {
    display: none;
  }

  .mypeas-header__hamburger {
    display: flex;
  }
}

/* ==========================================================================
   10. Footer Component
   ========================================================================== */

.mypeas-footer {
  background: #1e293b;
  color: #e2e8f0;
  margin-top: 3rem;
}

.mypeas-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}

.mypeas-footer__main {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
}

.mypeas-footer__brand {
  padding-right: 2rem;
}

.mypeas-footer__logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.mypeas-footer__logo {
  height: 32px;
  filter: brightness(0) invert(1);
}

.mypeas-footer__tagline {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.mypeas-footer__social {
  display: flex;
  gap: 1rem;
}

.mypeas-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #334155;
  color: #e2e8f0;
  transition: all 0.2s;
}

.mypeas-footer__social-link:hover {
  background: #6366f1;
  transform: translateY(-2px);
}

.mypeas-footer__column {
  min-width: 0;
}

.mypeas-footer__heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mypeas-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mypeas-footer__links li {
  margin-bottom: 0.75rem;
}

.mypeas-footer__links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.mypeas-footer__links a:hover {
  color: white;
}

.mypeas-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
}

.mypeas-footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

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

  .mypeas-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .mypeas-footer__main {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   11. Modal Base Styles
   ========================================================================== */

.mypeas-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mypeas-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.mypeas-modal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.mypeas-modal__content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mypeas-modal__content--wide {
  max-width: 640px;
}

.mypeas-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.mypeas-modal__close:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.mypeas-modal__body {
  margin-top: 0.5rem;
}

.mypeas-modal__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.mypeas-modal__subtitle {
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.mypeas-modal__field {
  margin-bottom: 1.5rem;
}

.mypeas-modal__field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.mypeas-modal__value {
  font-weight: 600;
  color: var(--color-primary);
}

.mypeas-modal__slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--color-bg-tertiary);
  appearance: none;
  cursor: pointer;
}

.mypeas-modal__slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.mypeas-modal__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
}

.mypeas-modal__btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.mypeas-modal__btn--primary {
  width: 100%;
  background: linear-gradient(135deg, #1bb978 0%, #0e8856 100%);
  color: white;
}

.mypeas-modal__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 185, 120, 0.3);
}

/* ==========================================================================
   12. HITL Modal
   ========================================================================== */

.hitl-modal__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hitl-modal__score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  background: var(--color-warning);
  flex-shrink: 0;
}

.hitl-modal__score-circle--low {
  background: var(--color-success);
}

.hitl-modal__score-circle--medium {
  background: var(--color-warning);
}

.hitl-modal__score-circle--high {
  background: var(--color-danger);
}

.hitl-modal__score-info {
  flex: 1;
}

.hitl-modal__bucket {
  margin: 0.25rem 0 0 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.hitl-modal__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.hitl-modal__table th,
.hitl-modal__table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.hitl-modal__table th {
  background: var(--color-bg-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hitl-modal__table th:last-child,
.hitl-modal__table td:last-child {
  text-align: center;
  white-space: nowrap;
  width: 100px;
}

.hitl-modal__score-cell {
  font-weight: 600;
  font-size: 1rem;
}

.hitl-modal__toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
}

.hitl-modal__toggle:hover {
  text-decoration: underline;
}

.hitl-modal__rubric {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.hitl-modal__rubric ol {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.hitl-modal__rubric li {
  margin-bottom: 0.25rem;
}

.hitl-modal__commentary {
  background: var(--color-bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.hitl-modal__commentary h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.hitl-modal__commentary p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   13. App/Tool Modal
   ========================================================================== */

.app-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-modal__info {
  flex: 1;
}

.app-modal__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.app-modal__category {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.app-modal__image-container {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.app-modal__image {
  width: 100%;
  height: auto;
  display: block;
}

.app-modal__description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   14. Lead Form
   ========================================================================== */

.lead-form-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.lead-form__header {
  margin-bottom: 1.5rem;
}

.lead-form__card {
  padding: 2rem;
}

.lead-form__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.lead-form__subtitle {
  margin: 0 0 2rem 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.lead-form__question {
  animation: fadeIn 0.3s ease-out;
}

.lead-form__question-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.lead-form__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.lead-form__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.lead-form__option:hover {
  background: var(--color-bg-tertiary);
}

.lead-form__option:has(input:checked) {
  background: #e0f2fe;
  border-color: var(--color-primary);
}

.lead-form__option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.lead-form__select {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  margin-bottom: 1.5rem;
}

.lead-form__slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--color-bg-tertiary);
  appearance: none;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.lead-form__slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}

.lead-form__budget-display {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.lead-form__input {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.lead-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.lead-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.lead-form__checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.lead-form__checkbox a {
  color: var(--color-primary);
}

.lead-form__error {
  padding: 0.75rem;
  background: var(--color-danger-light);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-sm);
  color: var(--color-danger);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.lead-form__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.lead-form__nav a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.lead-form__nav a:hover {
  color: var(--color-primary);
}

.lead-form__btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.lead-form__btn--next,
.lead-form__btn--submit {
  background: linear-gradient(135deg, #1bb978 0%, #0e8856 100%);
  color: white;
}

.lead-form__btn--next:hover,
.lead-form__btn--submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 185, 120, 0.3);
}

.lead-form__success {
  text-align: center;
  padding: 2rem 0;
}

.lead-form__success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.lead-form__success h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--color-text-primary);
}

.lead-form__success p {
  margin: 0 0 1.5rem 0;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   15. Workflow Cards
   ========================================================================== */

.activity-detail__workflow-results {
  margin-top: 1rem;
}

.activity-detail__workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.activity-detail__workflow-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: white;
  transition: all 0.2s;
}

.activity-detail__workflow-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.activity-detail__workflow-name {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.activity-detail__workflow-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.activity-detail__workflow-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.activity-detail__workflow-badge--neutral {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.activity-detail__workflow-badge--score {
  background: #dbeafe;
  color: #1e40af;
}

.activity-detail__workflow-category {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.activity-detail__workflow-actions {
  display: flex;
  gap: 0.5rem;
}

.activity-detail__workflow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.activity-detail__workflow-btn--primary {
  background: var(--color-primary);
  color: white;
}

.activity-detail__workflow-btn--primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.activity-detail__workflow-btn--track {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

.activity-detail__workflow-btn--track:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

/* ==========================================================================
   16. Agent Cards
   ========================================================================== */

.activity-detail__agent-results {
  margin-top: 1rem;
}

.activity-detail__agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.activity-detail__agent-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: white;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-detail__agent-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.activity-detail__agent-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  padding: 4px;
}

.activity-detail__agent-title-section {
  flex: 1;
  min-width: 0;
}

.activity-detail__agent-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-detail__agent-company {
  margin: 0.125rem 0 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.activity-detail__agent-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-detail__agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}

.activity-detail__agent-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.activity-detail__agent-tag--function {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.activity-detail__agent-tag--type {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.activity-detail__agent-tag--badge {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.activity-detail__agent-score {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
}

.activity-detail__agent-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.activity-detail__agent-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.activity-detail__agent-btn--primary {
  background: var(--color-primary);
  color: white;
}

.activity-detail__agent-btn--primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.activity-detail__agent-btn--track {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.activity-detail__agent-btn--track:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

/* ==========================================================================
   17. AI Summary Box
   ========================================================================== */

.activity-detail__ai-summary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.activity-detail__ai-summary--loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.activity-detail__ai-summary-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #bae6fd;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Inline loading spinner for streaming states */
.activity-detail__loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #bae6fd;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.activity-detail__ai-summary-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.activity-detail__ai-summary-content p {
  margin: 0;
}

.activity-detail__ai-summary-content p + p {
  margin-top: 0.5rem;
}

/* ==========================================================================
   18. Sort Controls
   ========================================================================== */

.activity-detail__sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.activity-detail__sort-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-right: 0.25rem;
}

.activity-detail__sort-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: white;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.activity-detail__sort-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.activity-detail__sort-btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.activity-detail__sort-btn--active:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: white;
}

/* ==========================================================================
   19. Results CTA
   ========================================================================== */

.activity-detail__results-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.activity-detail__results-cta a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.activity-detail__results-cta a:hover {
  text-decoration: underline;
}

/* Highlight effect for scroll target */
.activity-detail__consultant-btn.highlight-pulse {
  animation: highlightPulse 1.5s ease-out;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* ==========================================================================
   20. Document Generator (Full-Page View)
   ========================================================================== */

/* Page container */
.doc-generator-page {
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Header with back button */
.doc-generator__header {
  margin-bottom: 1rem;
}

/* Card styling */
.doc-generator__card {
  margin-bottom: 1rem;
}

.doc-generator__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.doc-generator__subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.5rem 0;
}

/* Form fields */
.doc-generator__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.doc-generator__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.doc-generator__textarea {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.doc-generator__textarea:focus {
  outline: none;
  border-color: #1bb978;
  box-shadow: 0 0 0 3px rgba(27, 185, 120, 0.1);
}

.doc-generator__hint {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Options row */
.doc-generator__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.doc-generator__option {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

/* Info icon for tooltips */
.doc-generator__info-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.375rem;
  color: #94a3b8;
  cursor: help;
  vertical-align: middle;
}

.doc-generator__info-icon:hover {
  color: #1bb978;
}

.doc-generator__info-icon svg {
  display: block;
}

/* Tooltip container */
.doc-generator__tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  margin-top: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  pointer-events: none;
}

.doc-generator__option:has(.doc-generator__info-icon:hover) .doc-generator__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.doc-generator__tooltip-content {
  background: #1e293b;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.doc-generator__tooltip-content strong {
  color: #1bb978;
}

.doc-generator__select {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.doc-generator__select:focus {
  outline: none;
  border-color: #1bb978;
}

/* Help me choose section */
.doc-generator__choose-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.doc-generator__or-text {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}

/* Help me choose button */
.doc-generator__suggest-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.doc-generator__suggest-btn:hover {
  color: #1bb978;
  border-color: #1bb978;
  background: #f0fdf4;
}

.doc-generator__suggest-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.doc-generator__suggest-btn svg {
  flex-shrink: 0;
}

/* Inline spinner for button */
.doc-generator__spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #cbd5e1;
  border-top-color: #1bb978;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Suggestion box */
.doc-generator__suggestion {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
}

.doc-generator__suggestion-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

#doc-generator-suggestion-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.4;
}

#doc-generator-suggestion-text strong {
  color: #16a34a;
}

.doc-generator__apply-btn {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: #1bb978;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.doc-generator__apply-btn:hover {
  background: #159a63;
}

.doc-generator__dismiss-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.doc-generator__dismiss-btn:hover {
  border-color: #94a3b8;
  color: #475569;
}

/* Generate button */
.doc-generator__generate-btn {
  display: block;
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: #1bb978;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.doc-generator__generate-btn:hover {
  background: #159a63;
}

.doc-generator__generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Output Area */
.doc-generator__output {
  margin-top: 0;
}

.doc-generator__output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.doc-generator__output-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.doc-generator__output-actions {
  display: flex;
  gap: 0.5rem;
}

.doc-generator__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.doc-generator__action-btn:hover {
  border-color: #1bb978;
  color: #1bb978;
}

.doc-generator__action-btn svg {
  flex-shrink: 0;
}

.doc-generator__action-btn--copied {
  background: #dcfce7;
  border-color: #16a34a;
  color: #16a34a;
}

.doc-generator__output-content {
  padding: 1rem;
  max-height: none;
  overflow-y: visible;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #fafafa;
  color: #1e293b;
  border-radius: 8px;
  margin: 0 -0.5rem;
}

/* Loading state */
.doc-generator__output-content--loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #64748b;
  font-family: inherit;
}

.doc-generator__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: #1bb978;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .doc-generator-page {
    padding: 0.75rem;
  }

  .doc-generator__title {
    font-size: 1.25rem;
  }

  .doc-generator__output-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -1rem -1rem 1rem -1rem;
    padding: 0.625rem 0.75rem;
  }

  .doc-generator__output-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .doc-generator__action-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }

  .doc-generator__output-content {
    font-size: 0.75rem;
    padding: 0.75rem;
  }

  .doc-generator__open-in {
    flex-wrap: wrap;
  }
}

/* "Open in" tool buttons */
.doc-generator__open-in {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  margin: 0 -1.5rem -1.5rem -1.5rem;
  border-radius: 0 0 12px 12px;
}

.doc-generator__open-in-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  margin-right: 0.25rem;
}

.doc-generator__open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.doc-generator__open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.doc-generator__open-btn--chatgpt {
  background: #10a37f;
}

.doc-generator__open-btn--gemini {
  background: #4285f4;
}

.doc-generator__open-btn--perplexity {
  background: #1a1a2e;
}

/* ==========================================================================
   Streaming Cursor Animation
   ========================================================================== */

/* Blinking cursor effect for streaming text */
.streaming-cursor::after {
  content: '▋';
  display: inline-block;
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--color-primary, #3b82f6);
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Streaming text containers */
.activity-detail__advice-streaming {
  padding: 12px 16px;
  background: var(--color-bg-secondary, #f9fafb);
  border-radius: var(--radius-md, 8px);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  min-height: 60px;
}

.activity-detail__advice-text {
  line-height: 1.6;
}

/* AI summary streaming state */
.activity-detail__ai-summary-text.streaming-cursor {
  min-width: 100px;
}

/* Document generator streaming state */
#doc-generator-content.streaming-cursor {
  min-height: 200px;
  white-space: pre-wrap;
}

/* ==========================================================================
   n8n Info Modal
   ========================================================================== */

.n8n-info-header {
  text-align: center;
  margin-bottom: 24px;
}

.n8n-info-logo {
  height: 48px;
  margin-bottom: 12px;
}

.n8n-info-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.n8n-info-header p {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: 15px;
}

.n8n-info-section {
  margin-bottom: 24px;
}

.n8n-info-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
}

.n8n-info-section p {
  color: var(--color-text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.n8n-info-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-secondary);
}

.n8n-info-section li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.n8n-info-image {
  margin: 16px 0;
}

.n8n-info-image img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.n8n-info-caption {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

.n8n-info-cta {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.n8n-info-cta p {
  margin: 0 0 16px 0;
  color: var(--color-text-secondary);
}

.n8n-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1a1a1a;
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.n8n-info-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #333;
}

.n8n-info-btn svg {
  width: 18px;
  height: 18px;
}

.n8n-info-btn-icon {
  height: 20px;
  width: auto;
}

/* ==========================================================================
   Content Gating - Locked content styling
   ========================================================================== */

/* Locked content indicator */
[data-locked="true"] {
  position: relative;
  cursor: pointer;
}

[data-locked="true"]::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFBF00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

[data-locked="true"]:hover {
  opacity: 0.85;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Content gate overlay */
#content-gate-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9998;
  backdrop-filter: blur(4px);
}

