:root {
  /* Visual DNA - Boardroom Aesthetic */
  /* Color Palette - Updated from Logo */
  --primary-dark: #0F1F23;    /* Dark Charcoal/Black-Green - Headings/Text */
  --primary-brand: #2F7C7B;   /* Deep Teal - Primary Brand Color */
  --primary-accent: #2FA7A1;  /* Brighter Teal - Accents */
  --primary-accent-hover: #258e89;
  --brand-gold: #F2B542;      /* Mustard/Yellow-Orange - Secondary Accent */
  
  --background: #F4F6F8;      /* Cool Grey - Professional Background */
  --surface: #ffffff;         /* White - Cards/Surface */
  --text-main: #0F1F23;       /* Dark Charcoal - Main Text */
  --muted-text: #5A6B70;      /* Slate Grey - Readable */
  --border-color: #E2E8F0;    /* Light Slate - Subtle Borders */
  --success: #10B981;         /* Emerald Green */
  --warning: #F59E0B;         /* Amber */
  --error: #EF4444;           /* Red */
  
  /* Gradients - Subtle & Executive */
  --gradient-brand: linear-gradient(135deg, #2F7C7B 0%, #0F1F23 100%);
  --gradient-accent: linear-gradient(135deg, #2FA7A1 0%, #2F7C7B 100%);
  --gradient-gold: linear-gradient(135deg, #F2B542 0%, #D99A28 100%);
  /* Dashboard: harmonious tints (teal family + one warm accent) */
  --dash-hero-bg: linear-gradient(135deg, #2F7C7B 0%, #246B6A 50%, #1d5655 100%);
  --dash-focus-bg: linear-gradient(145deg, #1a3d3c 0%, #0F1F23 100%);
  --dash-focus-cta: #5dd4cf;
  --dash-stat-accent: #2F7C7B;
  --dash-icon-teal: rgba(47, 124, 123, 0.12);
  --dash-icon-teal-strong: rgba(47, 124, 123, 0.2);
  --dash-icon-warm: rgba(184, 139, 56, 0.18);
  --dash-icon-success: rgba(47, 167, 161, 0.14);
  --dash-icon-neutral: rgba(15, 31, 35, 0.06);
  --dash-urgency-border: #b8861a;
  --dash-urgency-text: #8B6914;
  --dash-foot-bg: linear-gradient(135deg, rgba(47, 124, 123, 0.06) 0%, rgba(47, 124, 123, 0.02) 100%);

  /* Brand tint scale (derived from --primary-brand) */
  --brand-tint-2: rgba(47, 124, 123, 0.02);
  --brand-tint-3: rgba(47, 124, 123, 0.03);
  --brand-tint-4: rgba(47, 124, 123, 0.04);
  --brand-tint-6: rgba(47, 124, 123, 0.06);
  --brand-tint-8: rgba(47, 124, 123, 0.08);
  --brand-tint-10: rgba(47, 124, 123, 0.10);
  --brand-tint-15: rgba(47, 124, 123, 0.15);
  --brand-tint-25: rgba(47, 124, 123, 0.25);
  --brand-tint-35: rgba(47, 124, 123, 0.35);
  /* Accent tint scale */
  --accent-tint-10: rgba(47, 167, 161, 0.10);
  --accent-tint-12: rgba(47, 167, 161, 0.12);
  /* Gold tint scale */
  --gold-tint-5: rgba(242, 181, 66, 0.05);
  --gold-tint-10: rgba(242, 181, 66, 0.10);
  --gold-tint-12: rgba(242, 181, 66, 0.12);
  --gold-tint-15: rgba(242, 181, 66, 0.15);
  --gold-tint-25: rgba(242, 181, 66, 0.25);
  --gold-tint-35: rgba(242, 181, 66, 0.35);
  /* Dark tint scale */
  --dark-tint-6: rgba(15, 31, 35, 0.06);
  --dark-tint-7: rgba(15, 31, 35, 0.07);
  /* Button-style toggle defaults (solid unless branding toggle enables gradients) */
  --btn-primary-bg: var(--primary-brand);
  --btn-primary-bg-hover: #246B6A;
  --btn-primary-shadow: rgba(47, 124, 123, 0.2);

  /* Budget segment colours (stacked bar + legend + doughnut) */
  --segment-a: #2F7C7B;
  --segment-b: #F2B542;
  --segment-c: #B0BEC5;

  /* Chart.js: harmonised solid series (match theme.derive_css_vars defaults) */
  --chart-series-1: #2F7C7B;
  --chart-series-2: #F2B542;
  --chart-series-3: #5B8DEF;
  --chart-series-4: #2FA7A1;
  --chart-series-5: #E67E5A;
  --chart-series-6: #B0BEC5;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Border Radius - Structured */
  --radius-xl: 1rem;    /* 16px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-md: 0.5rem;  /* 8px */
  --radius-sm: 0.25rem; /* 4px */
  
  /* Shadows - Calm & Authoritative */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-input: 0 0 0 3px rgba(31, 164, 169, 0.15);
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --duration-quick: 120ms;
  --duration-standard: 180ms;
  --duration-emphasis: 240ms;
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --focus-ring: 0 0 0 3px rgba(47, 124, 123, 0.18);
  --focus-ring-strong: 0 0 0 4px rgba(47, 124, 123, 0.24);

  /* Spacing Ladder */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;

  /* Layout Widths */
  --content-max-width: 1200px;
  --content-max-width-wide: 1280px;
  --content-max-width-narrow: 1000px;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --sidebar-nav-font-size: 1rem;
  --sidebar-nav-font-weight: 500;
  --sidebar-nav-line-height: 1.4;

  /* Landing / marketing vertical section rhythm (ties to --space-8) */
  --hero-height: 90vh;
  --section-spacing: calc(var(--space-8) * 2);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  accent-color: var(--primary-accent); /* Modern browser support for inputs */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  font-weight: 400;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--muted-text); }
.text-link { color: var(--primary-accent); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }

.mt-md { margin-top: 1.5rem; }
.mb-md { margin-bottom: 1.5rem; }

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 0.5rem; }

/* Table Styling */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .table {
  width: 100%;
  min-width: 640px;
}

.card,
.mp-panel,
.stat-card {
  min-width: 0;
}

@media (max-width: 768px) {
  .table-scroll .table th,
  .table-scroll .table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }
}

.table th {
  text-align: left;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-text);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table td {
  padding: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

/* Badge & Pill Styling */
.status-badge,
.tag-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-approved, .status-verified, .status-accepted, .status-active { background: var(--accent-tint-12); color: var(--primary-accent); }
.status-under-review, .status-pending, .status-review { background: var(--gold-tint-15); color: var(--dash-urgency-text); }
.status-rejected, .status-expired, .status-critical { background: var(--brand-tint-10); color: var(--primary-dark); }
.status-info, .status-onboarding { background: var(--brand-tint-8); color: var(--primary-brand); }

.tag-badge { background: var(--brand-tint-6); color: var(--muted-text); }

/* Gap Analysis row quick actions */
.gap-row-actions-menu {
  min-width: 170px;
  padding: 0.35rem;
}

.gap-row-action-pill {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin: 0.2rem 0;
  padding: 0.22rem 0.55rem;
  font-size: 0.7rem;
  line-height: 1.2;
}

/* Stepper Component */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

/* Connector Line */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px; /* Center of 32px circle */
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

/* Active Line (Optional: Color the line if step is completed) */
.step.completed:not(:last-child)::after {
  background: var(--success);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--muted-text);
  z-index: 1;
  transition: var(--transition);
  font-size: 0.875rem;
}

.step-label {
  font-size: 0.75rem;
  color: var(--muted-text);
  font-weight: 600;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

/* Active State */
.step.active .step-circle {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 0 0 4px rgba(15, 61, 62, 0.1);
}

.step.active .step-label {
  color: var(--primary-dark);
}

/* Completed State */
.step.completed .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.step.completed .step-label {
  color: var(--success);
}

/* Compliance & BBBEE Enhanced Styles */
.compliance-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.compliance-indicator.compliant {
  border-color: var(--border-color);
  background: var(--accent-tint-12);
}

.compliance-indicator.warning {
  border-color: var(--border-color);
  background: #fffbeb;
}

.compliance-indicator.critical {
  border-color: var(--border-color);
  background: #fef2f2;
}

.compliance-indicator.compact {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
}

.compliance-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
}

.compliant .compliance-status-dot { background: var(--primary-accent); }
.warning .compliance-status-dot { background: #f59e0b; }
.critical .compliance-status-dot { background: var(--error); }

.compliance-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.compliance-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.compliance-timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.compliance-timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary-accent);
  z-index: 1;
}

.compliance-timeline-item.active::before {
  background: var(--primary-accent);
}

.status-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.status-accepted { background: var(--accent-tint-12); color: var(--primary-accent); }
.status-review { background: var(--brand-tint-8); color: var(--primary-brand); }
.status-rejected { background: var(--brand-tint-10); color: var(--primary-dark); }
.status-finance { background: var(--gold-tint-15); color: var(--dash-urgency-text); }

.document-status-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-verified { background: var(--accent-tint-12); color: var(--primary-accent); }
.status-pending { background: var(--gold-tint-15); color: var(--dash-urgency-text); }
.status-expired { background: var(--brand-tint-10); color: var(--primary-dark); }

.bbbee-score-delta {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.delta-up { color: var(--success); }
.delta-down { color: var(--error); }

/* Category Selection Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.category-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card.active {
  border-color: var(--primary-accent);
  background: rgba(31, 164, 169, 0.04);
  box-shadow: 0 0 0 4px rgba(31, 164, 169, 0.1);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  transition: var(--transition);
}

.category-card:hover .category-icon,
.category-card.active .category-icon {
  background: var(--primary-dark);
  color: white;
}

.category-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}

.category-desc {
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.4;
}

/* Document Upload Area */
.doc-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: #f8fafc;
  transition: var(--transition);
}

.doc-upload-box:hover {
  border-color: var(--primary-accent);
  background: #f1f5f9;
}

.type-specific-field.hidden {
  display: none;
}

.step-description {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted-text);
}

.review-section {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.review-section h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}

.review-section p {
  margin-bottom: 0;
  color: var(--text-main);
  font-size: 1rem;
}

/* Mentees card layout */
.mentees-card {
  padding: 1.5rem;
  min-height: 0;
}

.mentees-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.mentees-card-title h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.mentees-layout {
  display: grid;
  grid-template-columns: 2fr 380px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .mentees-layout {
    grid-template-columns: 1fr;
  }
}

.mentor-mentees-autocomplete-dropdown .mentor-mentees-autocomplete-item:hover {
  background-color: var(--brand-tint-8);
}

.mentees-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.mentees-table-wrapper .table {
  margin-top: 0;
  min-width: 700px;
}

.mentee-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mentee-row:hover {
  background-color: var(--brand-tint-4);
}

.mentee-row.selected,
.mentee-row.active {
  background-color: var(--brand-tint-8);
}

.mentor-mentee-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.mentor-mentee-row:hover {
  background-color: var(--brand-tint-6);
}
.mentor-mentee-row.mentor-mentee-row-selected {
  background-color: var(--brand-tint-10);
}

#mentor-mentees-table .mentor-mentees-col-email {
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

.mentee-name {
  font-weight: 600;
  color: var(--primary-dark);
}

.mentee-actions {
  white-space: nowrap;
}

.mentee-actions-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mentee-actions-btns form {
  display: inline-block;
  margin: 0;
}

.mentee-actions-btns .btn-danger {
  color: var(--error);
}

.text-sm { font-size: 0.875rem; }

.mentee-side-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.mentee-side-panel .review-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.mentee-detail-panel {
  display: none;
}

.mentee-placeholder-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  min-height: 200px;
}

.mentee-detail-block {
  margin-bottom: 1.25rem;
}

.mentee-detail-block:last-of-type {
  margin-bottom: 0;
}

.mentee-detail-block .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.mentee-detail-block .text-sm {
  margin-bottom: 0.35rem;
}

.detail-address {
  display: block;
  color: var(--text-main);
}

.detail-kpis {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mentee-detail-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Mentee / mentor admin detail pages */
.mentee-detail-page {
  padding: 0;
}

.mentee-detail-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.mentee-detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-brand);
  text-decoration: none;
}

.mentee-detail-back-link:hover {
  text-decoration: underline;
}

.mentee-detail-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4) var(--space-5);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.mentee-detail-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-brand), var(--brand-gold));
  pointer-events: none;
}

.mentee-detail-hero-avatar {
  width: 4.25rem;
  height: 4.25rem;
  margin-top: 2px;
  border-radius: var(--radius-lg);
  background: var(--dash-icon-teal-strong);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.mentee-detail-hero-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mentee-detail-hero-body .page-header-kicker {
  margin-bottom: 0;
}

.mentee-detail-hero-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.2;
}

.mentee-detail-hero-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-text);
  max-width: 52ch;
}

.mentee-detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.mentee-detail-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  flex-shrink: 0;
}

.mentee-detail-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mentee-chip-prefix {
  font-weight: 600;
  color: var(--muted-text);
  margin-right: 0.2rem;
}

.mentee-detail-flash {
  margin-bottom: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-color: var(--primary-brand);
  background: var(--accent-tint-12);
}

.mentee-detail-flash-line {
  margin: 0;
}

.mentee-detail-flash-line + .mentee-detail-flash-line {
  margin-top: 0.35rem;
}

.mentee-detail-programme-bar {
  padding: var(--space-4) var(--space-5);
}

.mentee-detail-programme-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.mentee-detail-programme-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  min-width: min(100%, 28rem);
}

.mentee-detail-programme-hint {
  margin: var(--space-2) 0 0;
}

.mentee-detail-programme-actions {
  flex-shrink: 0;
}

.mentee-detail-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.mentee-milestone-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-color);
}

.mentee-milestone-summary:last-of-type {
  border-bottom: none;
}

.mentee-milestone-summary-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.mentee-detail-milestones-card .mentee-card-header {
  margin-bottom: var(--space-3);
}

@media (max-width: 768px) {
  .mentee-detail-programme-selects {
    grid-template-columns: 1fr;
  }

  .mentee-detail-programme-actions {
    width: 100%;
  }

  .mentee-detail-programme-actions .btn {
    width: 100%;
  }

  .mentee-detail-hero {
    grid-template-columns: auto 1fr;
    padding: var(--space-4);
  }

  .mentee-detail-hero-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}

.mentee-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .mentee-detail-layout {
    grid-template-columns: 1fr;
  }
}

.mentee-detail-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mentee-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.mentee-detail-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.mentee-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
}

/* Info blocks for mentee detail */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-item-full {
  grid-column: 1 / -1;
}

.info-item-turnover {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--dash-icon-teal);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.info-value-highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-brand);
}

.info-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

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

.info-link {
  color: var(--primary-accent);
  text-decoration: none;
}

.info-link:hover {
  text-decoration: underline;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.mentee-detail-card .table-wrapper .table {
  margin-top: 0;
}

.table-compact th,
.table-compact td {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Session cards */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  background: var(--background);
  transition: var(--transition);
}

.session-card:hover {
  border-color: var(--primary-accent);
  background: var(--brand-tint-3);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.session-date {
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.session-topic {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.session-mentor {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.session-details,
.session-feedback,
.session-action-items {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.session-row {
  margin-top: 0.5rem;
}

.session-row .info-label {
  margin-right: 0.5rem;
}

.session-notes {
  margin-top: 0.5rem;
}

.session-feedback-text {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-style: italic;
  color: var(--muted-text);
}

.session-action-items .table-compact {
  margin-top: 0.5rem;
}

/* Mentee detail page — sessions sidebar (aligned with profile hero accent) */
.mentee-detail-page .mentee-sessions-card {
  border-color: rgba(0, 105, 120, 0.12);
  box-shadow: 0 2px 16px rgba(0, 105, 120, 0.06);
}

.mentee-detail-page .mentee-sessions-card-header {
  border-bottom-color: rgba(0, 105, 120, 0.15);
}

.mentee-detail-page .mentee-sessions-count {
  font-weight: 600;
  color: var(--muted-text);
  font-size: 0.9em;
}

.mentee-detail-page .mentee-sessions-table-wrapper {
  margin: -0.5rem -0.5rem 0;
  border: none;
}

.mentee-detail-page .mentee-sessions-table-wrapper .table {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.mentee-detail-page .mentee-sessions-table-wrapper tr {
  transition: transform 0.15s ease, background 0.15s ease;
}

.mentee-detail-page .mentee-sessions-table-wrapper tr:hover {
  background: var(--brand-tint-4);
  transform: translateX(4px);
}

.mentee-detail-page .mentee-sessions-table-wrapper td {
  padding: 0.75rem 0.5rem;
  border: none;
  vertical-align: middle;
}

.mentee-detail-page .mentee-sessions-table-wrapper td:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding-left: 0.75rem;
  border-left: 3px solid var(--dash-hero-bg, var(--primary-accent));
}

.mentee-detail-page .mentee-sessions-table-wrapper td:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding-right: 0.75rem;
}

.mentee-detail-page .mentee-sessions-table-wrapper thead th {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--muted-text);
  padding-bottom: 0.25rem;
  border: none;
}

.status-badge.compact {
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
}

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

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-accent);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-accent);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.hidden {
  display: none !important;
}

/* Flowless transitions for mentee portal view sections */
.mentee-views-wrapper {
  position: relative;
}
.mentee-views-wrapper .view-section {
  transition: opacity 0.2s ease, visibility 0.2s;
}
.mentee-views-wrapper .view-section.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s var(--transition);
}

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

/* Components */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.95rem;
    gap: 0.5rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
  }

  a.btn:hover,
  a.btn:focus,
  a.btn:visited {
    text-decoration: none;
  }

  .btn-primary {
    background: var(--btn-primary-bg);
    color: white;
    box-shadow: 0 4px 12px var(--btn-primary-shadow);
    border: none;
  }
  
  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--btn-primary-bg-hover);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--btn-primary-shadow);
  }
  
  .btn-primary:hover::before {
    opacity: 1;
  }
  
  .btn-gold {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px var(--gold-tint-25);
    border: none;
  }
  
  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--gold-tint-35);
    filter: brightness(1.05);
  }

  .btn-secondary {
    background: white;
    color: var(--primary-brand);
    border: 1px solid var(--border-color);
  }

  .btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary-brand);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

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

.btn-ghost:hover {
  background: var(--brand-tint-6);
  border-color: var(--primary-brand);
  color: var(--primary-brand);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.dashboard-card.card {
  padding: 1.25rem;
  transition: var(--transition);
}
.dashboard-card.card:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-lg);
}

/* ---- Mentee Dashboard: creative layout ---- */
.mentee-dash {
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}
.mentee-dash-hero {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
  background: var(--dash-hero-bg);
  color: #fff;
  box-shadow: 0 8px 32px var(--dash-icon-teal-strong);
}
.mentee-dash-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.mentee-dash-hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.mentee-dash-hero .hero-greeting {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.35rem;
}
.mentee-dash-hero .hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.mentee-dash-hero .hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  max-width: 420px;
}

/* Compact section hero for non-dashboard mentee views */
.mentee-section-hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--dash-hero-bg);
  color: #fff;
  box-shadow: 0 4px 20px var(--brand-tint-15);
}
.mentee-section-hero .section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.25rem;
}
.mentee-section-hero .section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.mentee-section-hero .section-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

.mentee-dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.mentee-dash-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.mentee-dash-stat-pill span {
  color: var(--dash-stat-accent);
  font-weight: 700;
}

/* Mentor dashboard: My mentees table (scrollable; rows open profile) */
.mentor-dashboard-mentees-strip {
  margin-bottom: 2rem;
}
.mentor-dashboard-mentees-panel {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 12px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.mentor-dashboard-mentees-panel-titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--brand-tint-4, rgba(15, 61, 62, 0.04)) 0%, var(--surface) 100%);
}
.mentor-dashboard-mentees-panel-heading {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.mentor-dashboard-mentees-panel-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.35;
}
.mentor-dashboard-mentees-table-wrap {
  width: 100%;
  max-height: min(52vh, 520px);
  overflow: auto;
  scrollbar-gutter: stable;
}
.mentor-dashboard-mentees-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
.mentor-dashboard-mentees-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-text);
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 0 var(--surface);
  white-space: nowrap;
}
.mentor-dashboard-mentees-table tbody td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-dark);
}
.mentor-dashboard-mentees-table tbody tr:last-child td {
  border-bottom: none;
}
.mentor-dashboard-mentees-table .mentor-dashboard-mentees-td-mentee {
  min-width: 11rem;
  max-width: 16rem;
}
.mentor-dashboard-mentees-table th:nth-child(2),
.mentor-dashboard-mentees-table td:nth-child(2) {
  min-width: 9rem;
}
.mentor-dashboard-mentees-table th:nth-child(3),
.mentor-dashboard-mentees-table td:nth-child(3) {
  min-width: 10rem;
}
.mentor-dashboard-mentees-table th:nth-child(4),
.mentor-dashboard-mentees-table td:nth-child(4) {
  min-width: 8.5rem;
}
.mentor-dashboard-mentee-row:nth-child(even) {
  background: var(--brand-tint-4, rgba(15, 61, 62, 0.03));
}
.mentor-dashboard-mentees-th-actions,
.mentor-dashboard-mentees-td-actions {
  width: 5.5rem;
  text-align: right;
  white-space: nowrap;
}
.mentor-dashboard-mentees-table td > * {
  display: block;
  margin: 0;
}
.mentor-dashboard-mentees-table td > * + * {
  margin-top: 0.2rem;
}
.mentor-dashboard-mentees-table .mentor-dashboard-mentees-td-actions {
  vertical-align: middle;
}
.mentor-dashboard-mentee-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mentor-dashboard-mentee-email {
  font-size: 0.78rem;
  color: var(--muted-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mentor-dashboard-mentee-company {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  overflow-wrap: break-word;
}
.mentor-dashboard-mentee-sub {
  font-size: 0.82rem;
  color: var(--primary-dark);
}
.mentor-dashboard-mentee-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
}
.mentor-dashboard-mentee-stat-line {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--primary-dark);
  overflow-wrap: anywhere;
}
.mentor-dashboard-mentee-muted {
  color: var(--muted-text);
  font-size: 0.85rem;
}
.mentor-dashboard-mentee-stage-pill {
  display: inline-flex;
  font-size: 0.65rem !important;
  font-weight: 700;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  line-height: 1.25;
}
.mentor-dashboard-mentee-missing-hint {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--muted-text);
  max-width: 14rem;
  overflow-wrap: anywhere;
}
.mentor-dashboard-mentees-table td .document-status-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  line-height: 1.25;
  vertical-align: middle;
}
.mentor-dashboard-mentees-table th:nth-child(4),
.mentor-dashboard-mentees-table td:nth-child(4) {
  max-width: 11rem;
}
@media (max-width: 768px) {
  .mentor-dashboard-mentees-panel-titlebar {
    padding: 0.85rem 1rem;
  }
  .mentor-dashboard-mentees-panel-heading {
    font-size: 1.05rem;
  }
  .mentor-dashboard-mentees-table-wrap {
    max-height: min(60vh, 480px);
  }
  .mentor-dashboard-mentees-table {
    min-width: 32rem;
  }
  .mentor-dashboard-mentees-table thead th,
  .mentor-dashboard-mentees-table tbody td {
    padding: 0.75rem 0.85rem;
  }
}
.mentor-dashboard-funding-chip {
  font-weight: 600;
  color: var(--primary-brand);
}

/* Journey summary dots (compact programme tracker) */
.journey-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--border-color);
  color: var(--muted-text);
  transition: var(--transition);
}
.journey-dot.current {
  background: var(--primary-brand);
  color: #fff;
  box-shadow: 0 0 0 3px var(--brand-tint-25);
}
.journey-dot.done {
  background: var(--success);
  color: #fff;
}
.journey-connector {
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background: var(--border-color);
}

/* Journey strip – follows site colour scheme */
.mentee-shell {
  max-width: var(--content-max-width-wide);
  margin: 0 auto 1.5rem;
  padding: 0 0.25rem;
}

.mentee-dash-journey {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--dash-foot-bg) 0%, var(--surface) 55%, var(--brand-tint-4) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(15, 61, 62, 0.08);
}
.mentee-dash-journey-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}
.mentee-dash-journey-steps {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 200px;
}
.mentee-dash-journey-stage {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.mentee-dash-journey-hint {
  font-size: 0.85rem;
  color: var(--muted-text);
}
.mentee-dash-journey a {
  color: var(--primary-brand);
  font-weight: 600;
  text-decoration: none;
}
.mentee-dash-journey a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.mentee-dash-journey-empty {
  border-style: dashed;
}
.mentee-dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.mentee-dash-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.mentee-dash-card:hover {
  border-color: var(--primary-brand);
  box-shadow: 0 8px 24px var(--dash-icon-teal);
}
.mentee-dash-card.span-4 { grid-column: span 4; }
.mentee-dash-card.span-6 { grid-column: span 6; }
.mentee-dash-card.span-8 { grid-column: span 8; }
.mentee-dash-card.span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .mentee-dash-card.span-4,
  .mentee-dash-card.span-6,
  .mentee-dash-card.span-8 { grid-column: span 12; }
}
.mentee-dash-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
}
.mentee-dash-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}
.mentee-dash-card-meta {
  font-size: 0.875rem;
  color: var(--muted-text);
}
.mentee-dash-focus {
  background: var(--dash-focus-bg);
  color: #fff;
  border: none;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(15, 31, 35, 0.15);
}
.mentee-dash-focus .mentee-dash-card-label { color: rgba(255,255,255,0.75); }
.mentee-dash-focus .mentee-dash-card-title { color: #fff; }
.mentee-dash-focus .mentee-dash-card-meta { color: rgba(255,255,255,0.85); }
.mentee-dash-focus .focus-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dash-focus-cta);
}
/* Dark focus card: stack bar + legend readable on gradient (not --muted-text) */
.mentee-dash-focus .dash-stack-bar {
  background: rgba(255, 255, 255, 0.18);
}
.mentee-dash-focus .dash-stack-legend {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.mentee-dash-focus .dash-visual-title,
.mentee-dash-focus .dash-visual-note {
  color: rgba(255, 255, 255, 0.8);
}
.mentee-dash-focus .dashboard-chart-container {
  height: 240px;
  min-height: 200px;
}
.mentee-dash-focus .dashboard-chart-container canvas {
  max-width: 100%;
  max-height: none;
}
@media (max-width: 600px) {
  .mentee-dash-focus {
    padding: 1.25rem;
  }
  .mentee-dash-focus .dash-stack-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .mentee-dash-focus .dashboard-chart-container {
    height: 200px;
    min-height: 180px;
  }
}
.mentee-dash-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.mentee-dash-progress-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-brand) 0deg calc(var(--pct, 0) * 3.6deg), var(--border-color) calc(var(--pct, 0) * 3.6deg) 360deg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mentee-dash-progress-ring-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}

/* Reusable dashboard visuals (native graph primitives) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dash-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.9rem;
}
.dash-visual-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  text-transform: uppercase;
}
.dash-visual-note {
  font-size: 0.82rem;
  color: var(--muted-text);
}
.dash-stack-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
  display: flex;
}
.dash-stack-segment {
  height: 100%;
  width: calc(var(--seg, 0) * 1%);
}
.dash-stack-segment.segment-a { background: var(--segment-a); }
.dash-stack-segment.segment-b { background: var(--segment-b); }
.dash-stack-segment.segment-c { background: var(--segment-c); }
.dash-stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--muted-text);
}
.dash-stack-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.dash-stack-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.dash-stack-legend i.segment-a { background: var(--segment-a); }
.dash-stack-legend i.segment-b { background: var(--segment-b); }
.dash-stack-legend i.segment-c { background: var(--segment-c); }
.dash-bar-list {
  display: grid;
  gap: 0.55rem;
}
.dash-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 130px) 1fr auto;
  gap: 0.65rem;
  align-items: center;
}
.dash-bar-label {
  font-size: 0.8rem;
  color: var(--text-main);
}
.dash-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}
.dash-bar-fill {
  width: calc(var(--pct, 0) * 1%);
  height: 100%;
  background: var(--primary-brand);
  border-radius: 999px;
}
.dash-bar-value {
  font-size: 0.75rem;
  color: var(--muted-text);
  font-weight: 600;
}
.dash-mini-bars {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  min-height: 68px;
}
.dash-mini-bar {
  flex: 1;
  min-width: 12px;
  max-width: 22px;
  height: calc(var(--h, 0) * 1%);
  border-radius: 8px 8px 2px 2px;
  background: var(--gradient-accent);
}
.dash-mini-labels {
  display: flex;
  gap: 0.45rem;
}
.dash-mini-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted-text);
}

/* Chart.js dashboard chart wrappers */
.dashboard-chart-container {
  position: relative;
  width: 100%;
  min-height: 180px;
  margin-top: 0.5rem;
}
.dashboard-chart-container canvas {
  max-height: 260px;
}

/* ESD Spend — spend-by-track table + doughnut */
.esd-spend-track-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .esd-spend-track-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.esd-spend-doughnut-chart {
  min-height: 300px;
  height: 300px;
  max-height: none;
  margin-top: 0;
  padding: 1rem 0.75rem 0.5rem;
  background: var(--surface-elevated, #f7fafb);
  border: 1px solid var(--border-color, rgba(15, 31, 35, 0.08));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.esd-spend-doughnut-chart canvas {
  max-height: none;
  width: 100% !important;
  max-width: 280px;
  flex: 1 1 auto;
  min-height: 0;
}
.esd-spend-doughnut-chart--empty {
  text-align: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.esd-spend-doughnut-chart--empty .dashboard-empty-msg {
  margin-bottom: 0.35rem;
}

.dashboard-empty-state {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--brand-tint-6);
  border-radius: var(--radius-md);
  text-align: center;
}
.dashboard-empty-msg {
  margin: 0 0 0.35rem 0;
  font-size: 0.875rem;
  color: var(--muted-text);
}
.dashboard-empty-state .focus-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-brand);
}

.dash-sparkline-box {
  margin-top: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  background: #fbfcfd;
}
.dash-sparkline-svg {
  width: 100%;
  height: 68px;
  display: block;
}
.dash-sparkline-grid {
  stroke: #e6ecf2;
  stroke-width: 1;
}
.dash-sparkline-path {
  fill: none;
  stroke: var(--primary-brand);
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.dash-sparkline-dots {
  fill: var(--primary-brand);
}
.dash-ring-layout {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.8rem;
}
.dash-ring-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dash-ring-summary strong {
  font-size: 1rem;
  color: var(--primary-dark);
}
.dash-ring-summary span {
  font-size: 0.78rem;
  color: var(--muted-text);
}
.dash-card-compact-text .mentee-dash-card-meta {
  max-width: 38ch;
}
.mentee-dash-events-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.mentee-dash-events-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.mentee-dash-events-list li:last-child { border-bottom: none; }
.mentee-dash-events-list .event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-brand);
  flex-shrink: 0;
}
.mentee-dash-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--dash-foot-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}
@media (max-width: 640px) {
  .mentee-dash-foot { grid-template-columns: 1fr; }
}
.mentee-dash-tip {
  font-size: 0.9rem;
  color: var(--muted-text);
  font-style: italic;
}
.mentee-dash-tip strong { color: var(--primary-dark); font-style: normal; }
.mentee-dash-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.mentee-dash-quicklinks a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
}
.mentee-dash-quicklinks a:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  background: var(--dash-icon-teal);
}
.mentee-dash-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mentee-dash-focus .mentee-dash-card-icon.mentee-dash-focus-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.mentee-dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.mentee-dash-card-text {
  min-width: 0;
  flex: 1;
}

.mentee-dash-card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-brand);
}

.mentee-dash-card:hover .mentee-dash-card-cta {
  color: var(--primary-accent);
}

.mentee-dash-card-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.mentee-dash-card-list-summary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.25rem 0;
}

.mentee-dash-card-list-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin: 0 0 0.5rem 0;
}

.mentee-dash-card-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-main);
}

.mentee-dash-card-list-items li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mentee-dash-card-list-items li:last-child {
  border-bottom: none;
}

.mentee-dash-card-list-items li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.mentee-dash-card-list-desc {
  font-size: 0.85rem;
  color: var(--text-main);
  min-width: 0;
  flex: 1;
}

.mentee-dash-card-list-items .mentee-dash-card-list-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin: 0;
  flex-shrink: 0;
}

.mentee-dash-messages-preview li {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.mentee-dash-messages-preview .mentee-dash-card-list-meta {
  font-size: 0.75rem;
}

.mentee-dash-card-list-empty {
  font-size: 0.85rem;
  margin: 0.5rem 0 0 0;
}

/* Events list inside dashboard card */
.mentee-dash-card .mentee-dash-events-list {
  margin-top: 0;
}

.mentee-dash-card .mentee-dash-events-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0;
}

.mentee-dash-card .event-title {
  font-weight: 500;
  color: var(--text-main);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentee-dash-card .event-date {
  font-size: 0.8rem;
  flex-shrink: 0;
}
.mentee-dash-urgency {
  border-left: 4px solid var(--dash-urgency-border);
}
.mentee-dash-urgency .mentee-dash-card-title { color: var(--dash-urgency-text); }

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

/* Form Elements */
.input-group {
  margin-bottom: 1.5rem;
}

.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-input);
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.input-field::placeholder {
  color: #cbd5e1;
}

.input-field-sm {
  width: auto;
  max-width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.8125rem;
  box-shadow: none;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-color);
  border-radius: 24px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary-brand);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: var(--focus-ring);
}

/* Floating Label Input */
.floating-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-input {
  width: 100%;
  padding: 1rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.floating-input:focus {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-input);
}

.floating-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  pointer-events: none;
  color: var(--muted-text);
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0 0.25rem;
  font-weight: 500;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: -0.6rem;
  left: 0.75rem;
  font-size: 0.75rem;
  background: var(--surface);
  color: var(--primary-accent);
  font-weight: 600;
}

/* Auth Specific */
.auth-split-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--background);
  width: 100%;
}

.auth-card-modern {
  width: 100%;
  max-width: 440px;
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-brand);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-logo {
  width: 56px;
  height: 56px;
  background: var(--brand-gold);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(244, 178, 62, 0.3);
}

.auth-title {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.auth-subtitle {
  color: var(--muted-text);
  font-size: 1rem;
}

.auth-switch-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.auth-switch-link {
  color: var(--primary-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-left: 0.25rem;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

/* Mobile responsive for Auth */
@media (max-width: 900px) {
  .auth-split-screen {
    flex-direction: column;
  }
  .auth-brand-side {
    display: none; 
  }
}


/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  transition: grid-template-columns 0.4s cubic-bezier(0.2, 0, 0, 1);
}

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

  .sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem 1rem;
  }

  .sidebar-header {
    margin-bottom: 0;
    margin-right: 0.5rem;
  }

  .sidebar-logo {
    margin-bottom: 0;
    margin-right: 1.5rem;
  }

  .sidebar-nav {
    flex-direction: row;
    align-items: center;
    margin-top: 0;
    gap: 0.6rem;
  }

  .nav-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-group-toggle {
    display: none;
  }

  .nav-group-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-group-items .nav-item {
    padding-left: 0.75rem;
    font-size: 0.92rem;
  }

  .nav-item {
    padding-inline: 0.75rem;
  }

  .main-content {
    padding: 1.25rem 1rem 1.5rem;
  }
}

/* Sidebar Styles */
.sidebar {
  background: var(--gradient-brand);
  color: white;
  padding: 2rem 1.5rem; /* Adjusted padding */
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  min-height: 0;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15); /* Depth */
  z-index: 20;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-left: 0;
  flex-shrink: 0;
}

.sidebar-header .sidebar-logo {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

/* Sidebar rail toggle — low-contrast “ghost” control (inspired by doc-style sidebars) */
.sidebar-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background-color var(--duration-standard) var(--easing-standard),
    color var(--duration-standard) var(--easing-standard);
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.sidebar-toggle:active {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.sidebar-toggle-icon {
  transition: opacity 0.2s ease;
}

.sidebar-toggle-icon-closed {
  display: none;
}

.sidebar-toggle-icon-open {
  display: block;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-left: 0.5rem;
}

.jalusi-logo-svg {
  display: block;
  max-width: 100%;
}

.sidebar-logo .jalusi-logo-svg {
  height: 44px;
  width: auto;
}

.sidebar-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sidebar-logo-pill img {
  display: block;
  max-width: 100%;
  height: auto;
}

.footer-logo .jalusi-logo-svg {
  height: 40px;
  width: auto;
}

.sidebar .jalusi-logo-svg .jalusi-wordmark-main,
.sidebar .jalusi-logo-svg .jalusi-curve-text {
  fill: #e5e7eb;
}

.sidebar .jalusi-logo-svg .jalusi-wordmark-sub,
.sidebar .jalusi-logo-svg .jalusi-wordmark-pty {
  fill: var(--brand-gold);
}

/* ESD360 Portal Logo */
.sidebar .esd360-logo-svg .esd360-text-360 {
  fill: var(--brand-gold);
}

.sidebar .esd360-logo-svg .esd360-degree {
  stroke: var(--brand-gold);
}

.sidebar .esd360-logo-svg .esd360-text-sub {
  fill: var(--brand-gold);
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}


.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-right: 0.15rem;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-family);
  font-size: var(--sidebar-nav-font-size);
  font-weight: var(--sidebar-nav-font-weight);
  line-height: var(--sidebar-nav-line-height);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.nav-group-toggle:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.nav-chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-group.open .nav-chevron {
  transform: rotate(90deg);
}

.nav-group-items {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-group.open .nav-group-items {
  display: flex;
}

.nav-group-items .nav-item {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  padding-left: 2.35rem;
  font-size: 0.92rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-family);
  font-size: var(--sidebar-nav-font-size);
  font-weight: var(--sidebar-nav-font-weight);
  line-height: var(--sidebar-nav-line-height);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sidebar .nav-item > svg,
.sidebar .nav-group-toggle > svg:not(.nav-chevron) {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar .nav-text {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: white;
  background: rgba(31, 164, 169, 0.2); /* Tint of accent */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Secondary cue (e.g. Branding preview) — keep visible on dark sidebar, distinct from primary label */
.nav-text-sublabel {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 181, 66, 0.88);
  margin-left: 0.25rem;
}

/* User Profile in Sidebar */
.user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.user-profile-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}

/* Collapsed sidebar: icon rail (desktop only) */
@media (min-width: 769px) {
  .dashboard-layout.sidebar-collapsed {
    grid-template-columns: var(--sidebar-width-collapsed) 1fr;
  }

  .sidebar-collapsed .sidebar {
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-collapsed .sidebar-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }

  .sidebar-collapsed .sidebar-header .sidebar-logo {
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-md);
    transition: background-color var(--duration-standard) var(--easing-standard);
  }

  .sidebar-collapsed .sidebar-header .sidebar-logo:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .sidebar-collapsed .sidebar-logo .jalusi-logo-svg,
  .sidebar-collapsed .sidebar-logo .esd360-logo-svg {
    max-width: 40px;
    height: 40px;
    width: auto;
  }

  .sidebar-collapsed .sidebar .jalusi-logo-svg .jalusi-wordmark-main,
  .sidebar-collapsed .sidebar .jalusi-logo-svg .jalusi-curve-text,
  .sidebar-collapsed .sidebar .jalusi-logo-svg .jalusi-wordmark-sub,
  .sidebar-collapsed .sidebar .jalusi-logo-svg .jalusi-wordmark-pty,
  .sidebar-collapsed .sidebar .esd360-logo-svg .esd360-text-360,
  .sidebar-collapsed .sidebar .esd360-logo-svg .esd360-degree,
  .sidebar-collapsed .sidebar .esd360-logo-svg .esd360-text-sub {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.25s ease, width 0.25s ease;
  }

  .sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem 0.5rem;
  }

  .sidebar-collapsed .nav-group-toggle {
    justify-content: center;
    padding: 0.75rem 0.5rem;
  }

  .sidebar-collapsed .nav-group-toggle .nav-chevron {
    display: none;
  }

  .sidebar-collapsed .nav-group-items .nav-item {
    padding-left: 0.5rem;
    justify-content: center;
  }

  .sidebar-collapsed .user-profile-trigger {
    justify-content: center;
    padding: 0.5rem;
  }

  .sidebar-collapsed .user-profile-trigger .user-info-text {
    display: none;
  }

  /* Collapsed: hide rail toggle — use logo click to expand (see utils.js) */
  .sidebar-collapsed .sidebar-toggle {
    display: none !important;
  }
}

/* Main Content Area */
.main-content {
  padding: var(--space-6);
  min-height: 0;
  overflow-y: auto;
  height: 100dvh;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.stat-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-top: 0.5rem;
}

/* Profile Tabs */
.profile-tabs,
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.profile-tab,
.tab-btn {
  padding: 1rem 1.5rem;
  cursor: pointer;
  color: var(--muted-text);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  white-space: nowrap;
  text-rendering: geometricPrecision;
}

.profile-tab:hover,
.tab-btn:hover {
  color: var(--primary-dark);
}

.profile-tab.active,
.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--brand-gold);
}

.segment-group {
  display: inline-flex;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 0.15rem;
}

.segment-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted-text);
  font-weight: 500;
  transition: var(--transition);
}

.segment-btn.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Search & Filter Bar */
.search-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
}

.search-input-wrapper .input-field {
  padding-left: 2.75rem;
}

/* Procurement Cards & Details */
.procurement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.procurement-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.procurement-card:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-md);
}

.procurement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.procurement-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.procurement-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.procurement-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Document List & Management */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.doc-item:hover {
  background: white;
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.doc-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.doc-info {
  flex: 1;
}

.doc-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.doc-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.doc-actions {
  display: flex;
  gap: 0.5rem;
}

/* Audit Log */
.audit-log {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.audit-log th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-text);
  text-transform: uppercase;
}

.audit-log td {
  padding: 1rem;
  background: white;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.audit-log td:first-child { border-left: 1px solid var(--border-color); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.audit-log td:last-child { border-right: 1px solid var(--border-color); border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.audit-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audit-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: var(--accent-on-color, #ffffff);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Dropdowns */
.dropdown-menu {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 220px;
  z-index: 100;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show,
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Task List */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.task-item:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
}

.task-content {
  flex: 1;
}

.task-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.task-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
}

/* Session Cards */
.session-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.session-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  color: var(--primary-dark);
}

.session-date {
  font-size: 1.25rem;
  font-weight: 800;
}

.session-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Mentor: session requests + approved schedule (compact) */
.session-requests-pending-title,
.approved-schedule-title,
.session-recent-title {
  margin-bottom: var(--space-3);
  font-size: 1.05rem;
}

.session-requests-detail {
  max-width: 280px;
}

.session-requests-subject {
  font-weight: 600;
}

.session-requests-has-msg {
  display: block;
  margin-top: 0.15rem;
}

.session-requests-col-action {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  text-align: right;
}

.pending-sr-modal-content .modal-body {
  padding-top: 0.25rem;
}

.pending-sr-mentee-line {
  margin: 0 0 0.25rem 0;
}

.pending-sr-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0 0;
  font-size: 0.9rem;
}

.pending-sr-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted-text);
}

.pending-sr-dl dd {
  margin: 0;
}

.pending-sr-message-block {
  margin-top: 1rem;
}

.pending-sr-message-block .label {
  display: block;
  margin-bottom: 0.35rem;
}

.pending-sr-message-text {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border-color);
  min-height: 2.5rem;
}

.pending-sr-modal-actions {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
  padding-top: 0.5rem;
}

.pending-sr-form-approve,
.pending-sr-form-reject {
  margin: 0;
}

.pending-sr-form-reject .label {
  margin-top: 0;
}

.pending-sr-btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

.pending-sr-form-approve .pending-sr-btn-full {
  margin-top: 0;
}

.approved-request-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.approved-request-item {
  padding: 1rem 1.15rem;
  margin-bottom: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--card-bg, var(--surface));
}

.approved-request-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.approved-request-mentee {
  font-weight: 700;
  font-size: 1rem;
}

.approved-request-topic {
  font-size: 0.95rem;
  color: var(--text-main);
}

.approved-request-meta-line {
  line-height: 1.35;
}

.approved-request-item .schedule-appointment-form.approved-schedule-form {
  display: grid;
  grid-template-columns: 130px 130px 1fr minmax(160px, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: end;
}

.approved-request-item .schedule-appointment-form.approved-schedule-form .input-group {
  margin: 0;
}

.approved-request-item .schedule-appointment-form .schedule-submit-wrap {
  display: flex;
  align-items: flex-end;
}

@media (max-width: 1100px) {
  .approved-request-item .schedule-appointment-form.approved-schedule-form {
    grid-template-columns: 1fr 1fr;
  }

  .approved-request-item .schedule-appointment-form .schedule-submit-wrap {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .approved-request-item .schedule-appointment-form.approved-schedule-form {
    grid-template-columns: 1fr;
  }

  .approved-request-item .schedule-appointment-form .schedule-submit-wrap {
    grid-column: span 1;
  }
}

/* Mentee Cards */
.mentee-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.mentee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-accent);
}

.program-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Chat Layout */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 180px);
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.chat-sidebar {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.chat-search {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid #f8fafc;
  position: relative;
}

.chat-item:hover {
  background: #f8fafc;
}

.chat-item.active {
  background: #f0f9fa;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-item-content {
  flex: 1;
  min-width: 0;
}

.chat-name {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--muted-text);
  font-weight: 400;
}

.chat-subject {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-preview {
  font-size: 0.8rem;
  color: var(--muted-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  width: 8px;
  height: 8px;
  background: var(--primary-accent);
  border-radius: 50%;
}

.chat-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  position: absolute;
  bottom: 0;
  right: 0;
}

.chat-status-online { background: var(--success); }
.chat-status-away { background: #f59e0b; }
.chat-status-offline { background: #94a3b8; }

.chat-group-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(31, 164, 169, 0.1);
  color: var(--primary-accent);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.chat-window {
  display: flex;
  flex-direction: column;
}

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

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
}

.message-received {
  align-self: flex-start;
  background: white;
  color: var(--text-main);
  border-bottom-left-radius: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.message-sent {
  align-self: flex-end;
  background: var(--primary-dark);
  color: white;
  border-bottom-right-radius: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.message-time {
  font-size: 0.65rem;
  margin-top: 0.25rem;
  opacity: 0.7;
  text-align: right;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-input);
}

/* Dropdowns */
.dropdown-menu {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 220px;
  z-index: 100;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show,
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-top {
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
}

.dropdown-menu-right {
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
}

.dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #f1f5f9;
}

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

/* Notification Item */
.notification-item {
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-gold);
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.notification-trigger {
  position: relative;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-weight: 700;
}

.notification-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.notification-icon-box:hover {
  background: #f8fafc;
  border-color: var(--primary-accent);
}

/* Program Tags */
.program-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.75rem;
}

.tag-registered {
  background: #dbeafe;
  color: #1e40af;
}
.tag-upcoming {
  background: #fef9c3;
  color: #92400e;
}
.tag-in-progress {
  background: #dcfce7;
  color: #166534;
}
.tag-completed {
  background: #e2e8f0;
  color: #334155;
}

/* Tag Badge */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Read-only Feedback State */
.feedback-readonly {
    opacity: 0.8;
    pointer-events: none;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.feedback-readonly textarea {
    background: transparent;
    border: none;
    padding: 0;
    resize: none;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Responsive Stats Grid */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Modal – single consolidated system */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 31, 35, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Stacked above admin preview when opened from Manage assessment */
#training-assessment-modal.modal-overlay.active {
  z-index: 12100;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--border-color);
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Modal content can override max-width via inline style; keep large modals scrollable */
.modal-content[style*="max-width"] {
  max-width: min(90vw, var(--modal-max-w, 560px));
}

/* Admin preview modal — sticky header, scrollable body, footer actions aligned right */
.admin-preview-modal-content {
  max-width: min(92vw, 640px);
  width: 100%;
  min-height: 0;
}

.modal-header.admin-preview-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  align-items: flex-start;
}

.admin-preview-title {
  font-size: 1.2rem;
  margin: 0;
}

.admin-preview-subtitle {
  margin: 0.35rem 0 0;
}

.admin-preview-badge-wrap {
  margin-top: 0.5rem;
}

.admin-preview-body {
  padding: 1rem 1.25rem;
}

.admin-preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  background: var(--surface);
}

.admin-preview-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.admin-portal-page .table-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-preview-footer-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-preview-person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.admin-portal-page .mentee-actions {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal-overlay.active .modal-content {
    max-width: none;
    width: 100%;
    max-height: 100dvh;
    max-height: 100vh;
    border-radius: 0;
    min-height: 0;
  }

  .admin-preview-modal-content.modal-content {
    max-width: none !important;
  }
}

.gap-fullscreen-modal {
  width: 96vw;
  max-width: 96vw;
  max-height: 96vh;
}

.gap-answer-modal {
  max-width: 980px;
  max-height: 92vh;
  overflow: hidden;
}

.gap-answer-header-subtitle {
  margin-top: 0.35rem;
}

.gap-answer-status {
  margin: 0.9rem 1.5rem 0.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--muted-text);
  background: #f8fafc;
}

.gap-answer-status-success {
  color: #0f5132;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.gap-answer-status-error {
  color: #7f1d1d;
  border-color: #fecaca;
  background: #fef2f2;
}

.gap-answer-errors {
  margin: 0.2rem 1.5rem 0.5rem;
}

.gap-answer-errors-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--error);
  font-size: 0.82rem;
}

.gap-answer-errors-list li {
  margin: 0.2rem 0;
}

.gap-questions-scroll {
  margin: 0.3rem 1.5rem 0;
  padding: 0.2rem;
  max-height: 60vh;
  overflow: auto;
  display: grid;
  gap: 1rem;
}

.gap-answer-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, #ffffff 70%, rgba(255, 255, 255, 0.85));
  border-top: 1px solid var(--border-color);
  padding: 0.9rem 1.5rem 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Mentee portal — gap analysis inline panel */
.mentee-portal-page .gap-inline-panel {
  padding: var(--space-5) var(--space-6);
}

.gap-inline-header {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.gap-inline-heading {
  margin: 0 0 var(--space-2);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.gap-inline-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted-text);
  max-width: 42rem;
}

.gap-inline-summary {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--brand-tint-3) 0%, var(--surface) 100%);
  border: 1px solid var(--border-color);
}

.gap-inline-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.gap-inline-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.gap-inline-fraction {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.gap-inline-hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 22rem;
}

.gap-inline-hint--warn {
  color: var(--warning);
}

.gap-inline-hint--ok {
  color: var(--success);
}

.gap-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--dark-tint-6);
  overflow: hidden;
}

.gap-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-brand), var(--primary-accent));
  transition: width 0.35s var(--easing-standard, ease);
}

.gap-inline-pct {
  margin: var(--space-2) 0 0;
}

.gap-inline-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  align-items: center;
}

.gap-inline-toolbar .btn-ghost {
  margin-left: auto;
}

@media (max-width: 640px) {
  .gap-inline-toolbar .btn-ghost {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

.gap-inline-shell {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--background);
  overflow: hidden;
}

.gap-inline-shell .gap-answer-status {
  margin: 0.75rem 0.9rem 0.5rem;
}

.gap-inline-shell .gap-answer-errors {
  margin: 0.2rem 0.9rem 0.5rem;
}

#gap-analysis-inline-progress {
  margin: 0 0.9rem 0.55rem;
  font-weight: 600;
}

.gap-questions-inline {
  margin: 0;
  max-height: 55vh;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border-color);
}

.gap-answer-actions-inline {
  position: static;
  border-top: 1px solid var(--border-color);
  padding: 0.8rem 0.9rem 0.9rem;
  justify-content: flex-end;
}

.training-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.training-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.training-card-media {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 154px;
  background: var(--primary-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.training-card-media--has-image {
  padding: 0;
  background: var(--dash-icon-neutral, #e8ecec);
}

.training-card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.training-card-media--has-image::before,
.training-card-media--has-image::after {
  display: none;
}

.training-card-media--has-image .training-card-badge,
.training-card-media--has-image .training-card-icon {
  display: none !important;
}

.training-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px),
    linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 45%);
  background-size: 26px 26px, 34px 34px, 100% 100%;
  opacity: 0.55;
}

.training-card-media::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.training-card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.training-card-icon {
  font-size: 1.25rem;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.training-card-body {
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.training-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.training-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.training-card-title-link:hover {
  color: var(--primary-accent);
}

.training-card-title-link:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.training-card-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted-text);
  line-height: 1.45;
}

.training-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.training-card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.training-card.theme-finance .training-card-media {
  background: linear-gradient(160deg, #1f5f5b, #2c8e88);
}

.training-card.theme-procurement .training-card-media {
  background: linear-gradient(160deg, #0f4a7b, #2284bf);
}

.training-card.theme-marketing .training-card-media {
  background: linear-gradient(160deg, #7d3f0f, #c87a2f);
}

.training-card.theme-strategy .training-card-media {
  background: linear-gradient(160deg, #53337d, #7f55b4);
}

.training-card.theme-general .training-card-media {
  background: linear-gradient(160deg, #0f3d3e, #2fa7a1);
}

.training-card--pending .training-card-icon::before {
  content: "!";
}

.training-card--progress .training-card-icon::before {
  content: "↻";
}

.training-card--completed .training-card-icon::before {
  content: "✓";
}

.training-card--pending .training-card-icon,
.training-card--progress .training-card-icon,
.training-card--completed .training-card-icon {
  font-size: 0;
}

.employment-panel {
  position: relative;
}

.employment-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(47, 167, 161, 0.1), rgba(16, 83, 86, 0.08));
  margin-bottom: 1rem;
  overflow: hidden;
}

.employment-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(47, 167, 161, 0.1) 0 8px, transparent 8px 16px);
  opacity: 0.45;
}

.employment-hero-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-brand);
  color: #fff;
  position: relative;
  z-index: 1;
}

.employment-hero-title {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
}

.employment-hero-text {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--muted-text);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .training-card-grid {
    grid-template-columns: 1fr;
  }
}

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

  .training-card-media {
    min-height: 110px;
  }
}

.modal-header {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: var(--background);
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.modal-header .text-sm {
  margin-top: 0.25rem;
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
}

.modal-body {
  flex: 1;
  min-height: 0;
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* When a form wraps .modal-body, the form must participate in flex layout so the body
   gets a bounded height and can scroll (otherwise content is clipped by .modal-content). */
.modal-content > form:has(.modal-body) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.modal-content > form:has(.modal-body) .modal-body {
  flex: 1 1 auto;
  min-height: 0;
}

/* Forms without .modal-body (e.g. upload) — scroll the form itself */
.modal-content > form:not(:has(.modal-body)) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Direct .modal-body under .modal-content (no wrapping form) — e.g. mentee procurement detail, mentee detail */
.modal-content > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
}

/* Form with .modal-body + .modal-footer (siblings) — body scrolls, footer stays pinned */
.modal-content > form:has(.modal-body):has(.modal-footer) {
  display: flex;
  flex-direction: column;
}

.modal-content > form:has(.modal-body):has(.modal-footer) .modal-footer {
  flex-shrink: 0;
}

.modal-body .input-group {
  margin-bottom: 1.25rem;
}

.modal-body .input-group:last-of-type {
  margin-bottom: 0;
}

.modal-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  background: var(--background);
}

/* Action row (modal body or elsewhere) */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.modal-body .modal-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.modal-content,
.modal-body,
.modal-body > * {
  min-width: 0;
}

.modal-body .grid-two,
.modal-body .mp-detail-grid {
  min-width: 0;
}

.modal-body .grid-two > *,
.modal-body .mp-detail-grid > * {
  min-width: 0;
}

.procurement-edit-modal-content {
  max-height: min(88vh, 860px);
}

.procurement-edit-modal-body .modal-section-title {
  margin-top: 0.35rem;
}

.procurement-edit-grid {
  gap: 0.9rem;
}

.procurement-edit-tags-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 96%, var(--brand-tint-4) 4%);
}

.procurement-req-row {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.procurement-req-head {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.procurement-req-name {
  flex: 1;
}

.procurement-req-required {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .procurement-edit-tags-wrap {
    grid-template-columns: 1fr;
  }

  .procurement-req-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mentor -> Mentee profile modal polish */
.mentee-profile-modal-content {
  border-radius: 1.1rem;
  overflow: hidden;
}

.mentee-profile-modal-header {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
}

.mentee-profile-modal-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mentee-profile-modal-subtitle {
  margin-top: 0.35rem;
}

/* Cloned mentee markup is not inside .mentor-view — duplicate mp-* layout here to avoid overlap. */
.mentee-profile-modal-content > .mentee-profile-modal-body {
  max-height: min(70vh, calc(90vh - 7.5rem));
}

.mentee-profile-modal-body {
  padding: 1.1rem 1.25rem 1.25rem;
  background: #f8fafc;
  min-width: 0;
}

.mentee-profile-modal-body .mp-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.mentee-profile-modal-body .mp-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.mentee-profile-modal-body .mp-panel {
  border-radius: 0.95rem;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.05rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  position: relative;
}

.mentee-profile-modal-body .mp-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  line-height: 1.35;
}

.mentee-profile-modal-body .mp-dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
}

@media (min-width: 420px) {
  .mentee-profile-modal-body .mp-dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mentee-profile-modal-body .mp-dl-grid > div {
  min-width: 0;
}

.mentee-profile-modal-body .mp-dl-grid > div:first-child {
  grid-column: 1 / -1;
}

.mentee-profile-modal-body .mp-dl-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  margin: 0 0 0.25rem;
}

.mentee-profile-modal-body .mp-dl-grid dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--text-main);
}

.mentee-profile-modal-body .mp-list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mentee-profile-modal-body .mp-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mentee-profile-modal-body .mp-list-item:last-child {
  border-bottom: none;
}

.mentee-profile-modal-body .mp-list-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mentee-profile-modal-body .mp-list-row:last-child {
  border-bottom: none;
}

.mentee-profile-modal-body .mp-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45em;
}

.mentee-profile-modal-body .mp-bullet-progress {
  background: var(--brand-gold);
}

.mentee-profile-modal-body .mp-bullet-done {
  background: var(--success);
}

.mentee-profile-modal-body .mp-cell-muted {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.mentee-profile-modal-body .mp-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mentee-profile-modal-body .mp-form-row .input-field,
.mentee-profile-modal-body .mp-form-row select {
  flex: 1 1 12rem;
  min-width: 0;
}

.mentee-profile-modal-body .mp-detail-subsection {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border-color);
}

.mentee-profile-modal-body .mp-detail-subsection .label {
  margin-bottom: 0.35rem;
}

.mentee-profile-modal-body .mp-detail-request-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-main);
}

.mentee-profile-modal-body .mp-detail-request-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mentee-profile-modal-body .mp-detail-request-list li:last-child {
  border-bottom: none;
}

.mentee-profile-modal-body .mp-detail-empty-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.5;
}

.mentee-profile-modal-body .mp-detail-missing-line {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.mentee-profile-modal-body .mp-detail-success-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--success);
}

.mentee-profile-modal-body .btn.btn-ghost.btn-sm {
  border-color: var(--border-color);
  background: #fff;
}

.mentee-profile-modal-actions {
  padding: 0.85rem 1.25rem 1rem;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.mentee-profile-modal-body .mp-list-unstyled,
.mentee-profile-modal-body .mp-list-item,
.mentee-profile-modal-body .mp-list-item a,
.mentee-profile-modal-body .mp-cell-primary,
.mentee-profile-modal-body .mp-cell-muted {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 700px) {
  .mentee-profile-modal-body .mp-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .mentee-profile-modal-body {
    padding: 0.9rem;
  }
}

/* Mentee documents block — stacked rows in modal and inline detail panel */
.mentee-profile-docs-heading {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.mentee-profile-modal-body .mentee-profile-docs-heading {
  color: var(--text-main);
}

.mentee-profile-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mentee-profile-docs-panel {
  padding: 0.9rem 1rem;
  margin-bottom: var(--space-4);
}

.mentee-profile-modal-body .mentee-profile-doc-row,
.mentee-profile-docs-panel .mentee-profile-doc-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.28rem 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--border-color);
}

.mentee-profile-modal-body .mentee-profile-doc-row:last-child,
.mentee-profile-docs-panel .mentee-profile-doc-row:last-child {
  border-bottom: none;
}

.mentee-profile-modal-body .mentee-profile-doc-label,
.mentee-profile-docs-panel .mentee-profile-doc-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  min-width: 0;
}

.mentee-profile-modal-body .mentee-profile-doc-view,
.mentee-profile-docs-panel .mentee-profile-doc-view {
  width: auto;
  justify-content: flex-start;
  text-align: left;
  flex-shrink: 0;
  padding: 0.1rem 0.25rem;
  font-size: 0.76rem;
  min-height: 1.5rem;
}

.btn-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-close:hover {
  background: var(--dark-tint-7);
  color: var(--text-main);
}

.btn-close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Messaging Center */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 140px); /* Adjust based on header/padding */
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.chat-search {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-color);
}

.chat-item:hover, .chat-item.active {
  background: white;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #64748b;
  overflow: hidden;
}

.chat-item-content {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 0.1rem;
  display: flex;
  justify-content: space-between;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--muted-text);
  font-weight: 400;
}

.chat-subject {
  font-size: 0.8rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.chat-preview {
  font-size: 0.75rem;
  color: var(--muted-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-accent);
  border-radius: 50%;
  margin-top: 0.25rem;
}

.chat-window {
  display: flex;
  flex-direction: column;
  background: white;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.message-received {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 0;
  color: var(--text-main);
}

.message-sent {
  align-self: flex-end;
  background: #e0f2fe; /* Light blue */
  color: #0c4a6e;
  border-bottom-right-radius: 0;
}

.message-time {
  font-size: 0.65rem;
  margin-top: 0.25rem;
  opacity: 0.7;
  text-align: right;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: white;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: inherit;
  resize: none;
  max-height: 100px;
  outline: none;
}

.chat-input:focus {
  border-color: var(--primary-accent);
}

/* News Widget */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: #f8fafc;
}

.news-pinned {
  background: #fffbeb; /* Light yellow */
  border-left: 3px solid #f59e0b; /* Amber */
  border-radius: var(--radius-sm);
}

.news-pinned:hover {
  background: #fef3c7;
}

.news-meta {
  display: flex;
}

/* Application Screen Header */
.screen-header {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.screen-header-left {
  position: absolute;
  left: 0;
  top: 0;
}

.screen-header-right {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Timeline Component */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
  margin-left: 1rem;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
}

.timeline-dot.success {
  background: var(--success);
}

.timeline-dot.active {
  background: var(--primary-accent);
}

.timeline-dot.pending {
  background: var(--border-color);
}

.timeline-title {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--muted-text);
}

.timeline-item.opacity-50 {
    opacity: 0.5;
}

/* Status Card */
.status-card {
    max-width: 600px;
    width: 100%;
}

.status-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.status-demo-action {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-accent);
    text-align: center;
}

/* Programs Tab */
.program-image {
  height: 140px;
  background: var(--gradient-brand);
  position: relative;
}

.category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.program-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.program-action-btn {
  margin-top: auto;
  width: 100%;
}

#programs-available-grid,
#programs-my-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  #programs-available-grid,
  #programs-my-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Refactored Utilities & Components */
.container-sm {
  max-width: 800px;
}

.center-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card-compact {
  padding: 1.5rem;
}

.card-centered {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

/* Pending approval / status state card - content-sized, professional */
.pending-approval-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.pending-approval-card .pending-approval-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint-12);
  color: var(--brand-gold);
  border-radius: 50%;
}

.pending-approval-card .pending-approval-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pending-approval-card .pending-approval-desc {
  font-size: 0.9375rem;
  color: var(--muted-text);
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.pending-approval-card .pending-approval-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
}

.pending-approval-card .pending-approval-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d97706;
  animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pending-approval-card .pending-approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

#view-pending-approval .card-centered {
  height: auto;
  min-height: 400px;
  padding: 2rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

.text-accent {
  color: var(--primary-accent);
}

.text-sm {
  font-size: 0.875rem;
}

.mb-xs {
  margin-bottom: 0.5rem;
}

.mb-md {
  margin-bottom: 1.5rem;
}

.mt-md {
  margin-top: 1.5rem;
}

.btn-back {
  padding: 0.5rem;
  color: var(--muted-text);
}

.input-readonly {
  background: var(--background);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.form-actions.space-between {
  justify-content: space-between;
}

.demo-link {
  text-decoration: underline;
  cursor: pointer;
  color: var(--primary-accent);
}

.assessment-grid-header,
.assessment-grid-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
}

.assessment-grid-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.assessment-grid-row {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.assessment-grid-row:hover {
  background: #f8fafc;
}

.assessment-area {
  background: var(--background);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.review-box {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.file-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.file-input:hover {
  border-color: var(--primary-accent);
  background: #f0f9ff;
}

.file-input::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-dark);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.file-input::file-selector-button:hover {
  background: var(--primary-accent);
}

/* File inputs using .input-field (modals, apply flows) — same chrome as .file-input, not text fields */
input[type="file"].input-field {
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none;
}

input[type="file"].input-field:hover {
  border-color: var(--primary-accent);
  background: #f0f9ff;
}

input[type="file"].input-field:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-input);
}

input[type="file"].input-field::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-dark);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

input[type="file"].input-field::file-selector-button:hover {
  background: var(--primary-accent);
}

/* Application form – file upload section (step 3) */
.file-upload-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--brand-tint-4) 0%, var(--brand-tint-2) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.file-upload-item .file-input {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  background: var(--surface);
  transition: var(--transition);
}

.file-upload-item .file-input:hover {
  border-color: var(--primary-accent);
  background: var(--brand-tint-4);
}

.file-upload-item .file-input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px var(--brand-tint-15);
}

.file-upload-item .file-input::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--primary-brand);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-item .file-input::file-selector-button:hover {
  background: var(--primary-accent);
  color: var(--accent-on-color, #ffffff);
}

/* Smooth scroll for in-page anchors (Continue / Review materials → #course-content) */
html.training-course-scroll-root {
  scroll-behavior: smooth;
}

/* Training course – learning portal (fits naturally in dashboard layout) */
.training-course-page .main-content.training-course-main {
  max-width: 100%;
  padding: 1.5rem 2rem 3rem;
  background: var(--background);
  min-height: 0;
}

.training-course-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Minimal top bar – back + logout only */
.training-course-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.training-course-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-text);
  text-decoration: none;
  transition: var(--transition);
}

.training-course-breadcrumb:hover {
  color: var(--primary-brand);
}

.training-course-breadcrumb svg {
  flex-shrink: 0;
}

.training-course-chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.training-course-messages {
  margin-bottom: 1.25rem;
}

.training-course-message {
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Content column – one flowing page */
.training-course-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.training-course-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.training-course-hero--with-cover {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.training-course-hero-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--dash-icon-neutral, #e8ecec);
}

.training-course-hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.training-course-hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 31, 35, 0.45) 100%);
  pointer-events: none;
}

.training-course-hero--with-cover .training-course-hero-content,
.training-course-hero--with-cover .training-course-hero-actions {
  width: 100%;
}

.training-course-hero-content {
  flex: 1;
  min-width: 200px;
}

.training-course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.training-course-badge {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.training-course-badge-type {
  background: var(--dash-icon-teal);
  color: var(--primary-brand);
}

.training-course-badge-category {
  background: var(--dash-icon-neutral);
  color: var(--primary-dark);
}

.training-course-badge-status {
  background: var(--dash-icon-teal);
  color: var(--primary-brand);
}

.training-course-badge-status-completed {
  background: var(--dash-icon-success);
  color: var(--success);
}

.training-course-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.training-course-subtitle {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.55;
}

.training-course-hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

/* Sections – light cards that feel part of the page */
.training-course-section {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 1.25rem;
}

.training-course-section#course-content:target {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-tint-25);
}

.training-course-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.training-course-section-description {
  font-size: 0.875rem;
  color: var(--muted-text);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.training-course-objectives-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.training-course-objective-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.training-course-objective-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--success);
}

.training-course-content-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.training-course-content-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--background);
  transition: var(--transition);
}

.training-course-content-card:hover {
  border-color: var(--brand-tint-35);
  background: var(--brand-tint-4);
  box-shadow: var(--shadow-sm);
}

.training-course-content-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.training-course-content-icon-pdf {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.training-course-content-icon-video {
  background: var(--dash-icon-teal);
  color: var(--primary-brand);
}

.training-course-content-icon-material {
  background: var(--gold-tint-12);
  color: var(--brand-gold);
}

.training-course-content-card-body {
  flex: 1;
  min-width: 0;
}

.training-course-content-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.training-course-content-card-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.4;
}

.training-course-learning-material {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.65;
}

.training-course-empty-state {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--background);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--muted-text);
}

/* ——— Course assessment (LMS knowledge check) ——— */
.training-course-assessment {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(47, 124, 123, 0.07) 0%,
    var(--surface) 42%,
    rgba(242, 181, 66, 0.06) 100%
  );
  border: 1px solid rgba(47, 124, 123, 0.22);
  box-shadow: var(--shadow-md);
  padding: 1.65rem 1.75rem 1.5rem 1.9rem;
}

.training-course-assessment::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(180deg, #2f7c7b 0%, #2f7c7b 55%, #f2b542 55%, #f2b542 100%);
}

.training-course-assessment-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.training-course-assessment-head-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: rgba(47, 124, 123, 0.12);
  color: #2f7c7b;
  border: 1px solid rgba(47, 124, 123, 0.2);
}

.training-course-assessment-head-text {
  min-width: 0;
}

.training-course-assessment-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2f7c7b;
  margin: 0 0 0.25rem;
}

.training-course-assessment-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.training-course-assessment-sub {
  font-size: 0.8125rem;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.45;
}

.training-course-assessment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.training-course-assessment-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.training-course-assessment-pill-pass {
  background: rgba(47, 124, 123, 0.1);
  border-color: rgba(47, 124, 123, 0.28);
  color: #1d5554;
}

.training-course-assessment-instructions {
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  border-left: 3px solid #f2b542;
}

.training-course-assessment-instructions-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.35rem;
}

.training-course-assessment-instructions-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-main);
}

.training-course-assessment-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted-text);
  font-size: 0.875rem;
  background: var(--background);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.training-course-assessment-locked {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.training-course-assessment-locked-icon {
  flex-shrink: 0;
  color: var(--muted-text);
}

.training-course-assessment-locked-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
  color: var(--primary-dark);
}

.training-course-assessment-locked-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-text);
  line-height: 1.45;
}

.training-course-assessment-result {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
  align-items: flex-start;
}

.training-course-assessment-result--pass {
  background: rgba(47, 124, 123, 0.09);
  border: 1px solid rgba(47, 124, 123, 0.25);
}

.training-course-assessment-result--fail {
  background: rgba(242, 181, 66, 0.12);
  border: 1px solid rgba(242, 181, 66, 0.35);
}

.training-course-assessment-result--pass .training-course-assessment-result-icon {
  color: #2f7c7b;
}

.training-course-assessment-result--fail .training-course-assessment-result-icon {
  color: #b8860b;
}

.training-course-assessment-result-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  color: var(--primary-dark);
}

.training-course-assessment-result-score {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-main);
}

.training-course-assessment-result-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-main);
}

.training-course-assessment-cert-btn {
  margin-top: 0.15rem;
}

.training-course-assessment-form-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.training-course-assessment-q-card {
  padding: 1.1rem 1.15rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.training-course-assessment-q-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-bottom: 0.65rem;
}

.training-course-assessment-q-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.training-course-assessment-q-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(47, 124, 123, 0.12);
  color: #1d5554;
  border: 1px solid rgba(47, 124, 123, 0.22);
}

.training-course-assessment-q-badge--multi {
  background: rgba(242, 181, 66, 0.15);
  color: #7a5a12;
  border-color: rgba(242, 181, 66, 0.35);
}

.training-course-assessment-q-text {
  margin: 0 0 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary-dark);
}

.training-course-assessment-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  counter-reset: assess-opt;
}

.training-course-assessment-option {
  counter-increment: assess-opt;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.training-course-assessment-option::before {
  content: counter(assess-opt, upper-alpha);
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #2f7c7b;
  background: rgba(47, 124, 123, 0.1);
  border-radius: 6px;
  line-height: 1;
  margin-top: 0.05rem;
}

.training-course-assessment-option:hover {
  border-color: rgba(47, 124, 123, 0.35);
  background: rgba(47, 124, 123, 0.04);
}

.training-course-assessment-option:has(.training-course-assessment-input:checked) {
  border-color: #2f7c7b;
  background: rgba(47, 124, 123, 0.08);
  box-shadow: 0 0 0 1px rgba(47, 124, 123, 0.2);
}

.training-course-assessment-option:has(.training-course-assessment-input:focus-visible) {
  outline: 2px solid #2f7c7b;
  outline-offset: 2px;
}

.training-course-assessment-input[type="radio"],
.training-course-assessment-input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid rgba(47, 124, 123, 0.55);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.training-course-assessment-input[type="radio"] {
  border-radius: 50%;
}

/* White fill with teal dot (not a solid black disc) */
.training-course-assessment-input[type="radio"]:checked {
  background-color: #fff;
  border-color: #2f7c7b;
  box-shadow: inset 0 0 0 0.2rem #2f7c7b;
}

.training-course-assessment-input[type="checkbox"] {
  border-radius: 4px;
}

.training-course-assessment-input[type="checkbox"]:checked {
  background-color: #2f7c7b;
  border-color: #2f7c7b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 0.72rem 0.72rem;
  background-position: center;
  background-repeat: no-repeat;
}

.training-course-assessment-input[type="radio"]:hover,
.training-course-assessment-input[type="checkbox"]:hover {
  border-color: #2f7c7b;
}

.training-course-assessment-option-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-main);
  padding-top: 0.06rem;
}

.training-course-assessment-form-footer {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-color);
}

.training-course-assessment-submit {
  min-width: 12rem;
}

.training-course-assessment-form-hint {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-text);
}

.training-course-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-color);
}

/*
 * Training page loads Tailwind/Daisy output.css first; .btn gets --btn-shadow tinted by
 * --btn-color (secondary reads pink). Flatten secondary/outline buttons here.
 */
.training-course-page a.btn.btn-secondary,
.training-course-page .btn.btn-secondary {
  --btn-shadow: 0 0 #0000;
  box-shadow: none;
  text-shadow: none;
}

.training-course-page a.btn.btn-secondary:hover,
.training-course-page .btn.btn-secondary:hover {
  box-shadow: none;
}

.training-course-page a.btn.btn-secondary:focus-visible,
.training-course-page .btn.btn-secondary:focus-visible {
  outline: 2px solid var(--border-color);
  outline-offset: 2px;
  box-shadow: none;
}

/* Navigation Bar - Fixed & Creative Floating Island */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1280px;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: center;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 2rem;
  top: 1rem;
  width: 90%; /* Shrink slightly on scroll */
  box-shadow: 
    0 15px 35px -10px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--gold-tint-15) inset;
  border-color: var(--gold-tint-10);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-mobile-toggle {
  display: none;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  letter-spacing: -0.01em;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary-brand);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.btn-nav-login {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.btn-nav-login:hover {
  color: var(--primary-brand);
}

.btn-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-dark);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 31, 35, 0.15);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  background: black;
  box-shadow: 0 8px 20px rgba(15, 31, 35, 0.25);
}

/* Mobile Nav - Stacked but Clean */
@media (max-width: 900px) {
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.98);
    padding: 1.5rem;
  }
  
  .navbar.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
  }

  .navbar-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
  }

  .navbar.mobile-open .nav-links {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: left;
  }

  .nav-cta-group {
    display: none;
    width: 100%;
    justify-content: flex-start;
  }

  .navbar.mobile-open .nav-cta-group {
    display: flex;
  }
}

.nav-logo-svg {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo-svg {
  transform: scale(1.05);
}

/* Creative Logo Animations */
.emblem-part {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 35px 35px; /* Center of the circle roughly */
}

.nav-brand:hover .emblem-part.left {
  transform: translateX(-2px) rotate(-10deg);
}

.nav-brand:hover .emblem-part.right {
  transform: translateX(2px) rotate(10deg);
}

.emblem-j {
  transition: all 0.5s ease;
}

.nav-brand:hover .emblem-j {
  fill: var(--primary-brand);
}

/* ===== Navbar Dropdown System ===== */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-chevron {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
  flex-shrink: 0;
}

.nav-dropdown-trigger.active .nav-chevron,
.nav-dropdown-trigger:hover .nav-chevron {
  opacity: 1;
}

.nav-dropdown-trigger.active .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: rgba(15, 31, 35, 0);
  transition: background 0.3s ease;
}

.nav-dropdown-overlay.visible {
  pointer-events: auto;
  background: var(--dark-tint-7);
}

.nav-mega-dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 560px;
  display: flex;
  gap: 0;
  background: white;
  border-radius: 16px;
  box-shadow:
    0 25px 60px -15px rgba(15, 31, 35, 0.15),
    0 0 0 1px rgba(15, 31, 35, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s 0.2s;
  z-index: 10000;
  overflow: hidden;
}

.nav-mega-dropdown.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s 0s;
}

.nav-mega-dropdown--compact {
  min-width: 380px;
}

.mega-col {
  padding: 1.25rem;
}

.mega-col-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-col-side {
  width: 200px;
  background: var(--background);
  border-left: 1px solid var(--dark-tint-6);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.25rem 1.25rem;
}

.mega-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-text);
  padding: 0.25rem 0.75rem 0.5rem;
}

.mega-col-label--spaced {
  margin-top: var(--space-5);
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
  position: relative;
}

.mega-item:hover {
  background: var(--brand-tint-6);
}

.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mega-item:hover .mega-icon {
  transform: scale(1.08);
}

.mega-icon-tracker { background: var(--dash-icon-teal); color: var(--primary-accent); }
.mega-icon-spend { background: var(--dash-icon-warm); color: var(--brand-gold); }
.mega-icon-mentor { background: var(--dash-icon-teal); color: var(--primary-brand); }
.mega-icon-bee { background: var(--dash-icon-neutral); color: var(--primary-dark); }
.mega-icon-procurement { background: var(--brand-tint-8); color: var(--primary-brand); }
.mega-icon-admin { background: var(--dash-icon-neutral); color: var(--primary-dark); }
.mega-icon-mentee { background: var(--dash-icon-teal); color: var(--primary-accent); }
.mega-icon-mentors { background: var(--dash-icon-warm); color: var(--brand-gold); }
.mega-icon-apply-mentee { background: var(--dash-icon-teal); color: var(--primary-accent); }
.mega-icon-apply-mentor { background: var(--dash-icon-warm); color: var(--brand-gold); }
.mega-icon-apply-demo { background: var(--brand-tint-8); color: var(--primary-brand); }

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.mega-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

.mega-desc {
  font-size: 0.78rem;
  color: var(--muted-text);
  line-height: 1.35;
}

.mega-arrow {
  flex-shrink: 0;
  color: var(--muted-text);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.mega-item--cta:hover .mega-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-side-link {
  display: block;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-weight: 500;
}

.mega-side-link:hover {
  background: var(--brand-tint-8);
  color: var(--primary-brand);
}

@media (max-width: 900px) {
  .nav-dropdown-wrap {
    position: static;
  }

  .nav-mega-dropdown {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    max-height: 0;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 0.5rem;
    display: none;
  }

  .nav-mega-dropdown.open {
    transform: none;
    display: flex;
    max-height: 60vh;
  }

  .mega-col-side {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--dark-tint-6);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .mega-col-side .mega-col-label {
    width: 100%;
  }
}

.mobile-sidebar-toggle {
  display: none;
}

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

  body.sidebar-mobile-open {
    overflow: hidden;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
    position: fixed;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 70;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary-brand);
    box-shadow: var(--shadow-md);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 320px);
    max-width: 100vw;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 75;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-mobile-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-mobile-open .main-content::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 60;
  }

  .sidebar .nav-item,
  .sidebar .nav-group-toggle {
    min-height: 46px;
  }
}

/* Text Gradients */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section - Enhanced */
.hero-section {
  min-height: var(--hero-height);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  /* Sophisticated mesh gradient background */
  background: 
    radial-gradient(circle at 15% 50%, var(--gold-tint-5) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, var(--brand-tint-8) 0%, transparent 30%),
    linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
  overflow: hidden;
}

/* Background decoration */
.hero-bg-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--gradient-accent); /* Use accent gradient */
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.15;
  animation: float 20s infinite ease-in-out;
}

.shape-1 { 
  top: -15%; 
  right: -10%; 
  background: var(--gradient-gold); /* Use gold gradient */
}

.shape-2 { 
  bottom: 5%; 
  left: -10%; 
  animation-delay: -10s; 
  background: var(--gradient-brand); /* Use brand gradient */
  opacity: 0.1;
}

/* --- Landing Page Specific Styles --- */

/* Animation Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-emphasis) var(--easing-standard),
    transform var(--duration-emphasis) var(--easing-standard);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ESD360 Hero Badge - Landing Page */
.esd360-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--brand-tint-6);
  border: 1px solid var(--brand-tint-15);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-brand);
  letter-spacing: 0.02em;
}

.esd360-hero-badge-text {
  letter-spacing: 0.05em;
}

.esd360-hero-badge-text strong {
  color: var(--brand-gold);
  font-weight: 800;
}

.esd360-hero-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-gold);
}

.esd360-hero-badge-label {
  color: var(--muted-text);
  font-weight: 500;
}

/* Hero Text & Visuals */
.hero-text, .hero-visual {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  color: var(--muted-text);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 
    0 20px 40px -5px var(--brand-tint-15),
    0 10px 20px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--brand-tint-10);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface);
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 
    0 30px 60px -10px var(--dash-icon-teal-strong),
    0 15px 30px -10px rgba(0, 0, 0, 0.05);
}

/* ----- Landing redesign: hero blobs, proof, stats, sections, testimonials, CTA ----- */
.hero-section--landing {
  background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-blob--1 {
  width: 500px;
  height: 500px;
  background: var(--brand-tint-15);
  top: -120px;
  right: -100px;
}

.hero-blob--2 {
  width: 400px;
  height: 400px;
  background: var(--gold-tint-12);
  bottom: -80px;
  left: -80px;
}

.hero-blob--3 {
  width: 320px;
  height: 320px;
  background: var(--dark-tint-7);
  top: 40%;
  left: 30%;
}

.hero-title--landing {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  max-width: 560px;
}

.hero-subtitle--landing {
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 99px;
}

.btn-hero-secondary {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 99px;
}

.hero-image-wrapper--landing {
  transform: none;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(15, 31, 35, 0.12), 0 0 0 1px rgba(15, 31, 35, 0.04);
}

.hero-image-wrapper--landing:hover {
  transform: translateY(-4px);
}

.hero-dashboard-preview {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background) 0%, var(--border-color) 100%);
  background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=1000');
  background-size: cover;
  background-position: center;
}

.hero-dashboard-label {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

/* Social proof band */
.landing-proof {
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
  border-bottom: 1px solid var(--dark-tint-6);
}

.landing-proof-inner {
  margin: 0 auto;
}

/* DESIGN.md — landing shell (token-only; body.landing-page in index.html) */
body.landing-page .container.landing-shell-wide {
  max-width: var(--content-max-width-wide);
}

body.landing-page .landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--space-8) + var(--space-4));
  align-items: center;
  width: 100%;
}

body.landing-page .landing-page-footer {
  background: var(--background);
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-top: 1px solid var(--border-color);
}

body.landing-page .landing-footer-inner {
  max-width: var(--content-max-width-wide);
  margin-left: auto;
  margin-right: auto;
}

body.landing-page .landing-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

body.landing-page .landing-footer-bottom {
  text-align: center;
  margin-top: var(--space-7);
  font-size: 0.8rem;
  color: var(--muted-text);
}

@media (max-width: 900px) {
  body.landing-page .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

body.landing-page {
  font-family: var(--font-family);
}

.nav-brand .nav-brand-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

.role-list__icon {
  color: var(--success);
  flex-shrink: 0;
}

.role-card__cta {
  margin-top: auto;
}

.landing-preview-img {
  width: 100%;
  display: block;
}

.landing-footer__logo-wrap {
  margin-bottom: var(--space-4);
}

.landing-footer__heading {
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
  font-weight: 600;
  color: var(--text-main);
}

.landing-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9rem;
}

.landing-footer__links a {
  text-decoration: none;
  color: var(--muted-text);
}

.landing-footer__links a:hover {
  color: var(--primary-brand);
}

#mainNav a:focus-visible,
#mainNav .nav-dropdown-trigger:focus-visible,
#mainNav .nav-mobile-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring-strong);
  border-radius: var(--radius-md);
}

.landing-page .mega-item:focus-visible,
.landing-page .mega-side-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-md);
}

.landing-proof-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-text);
  margin-bottom: 1.5rem;
}

.landing-proof .landing-proof-label {
  margin-bottom: var(--space-8);
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--dark-tint-7);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--brand-tint-15);
  box-shadow: 0 8px 24px -8px var(--dash-icon-teal);
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-text);
  line-height: 1.35;
}

/* Landing section spacing & headings */
.landing-section {
  padding: var(--section-spacing) var(--space-6);
}

.landing-section--alt {
  background: var(--background);
}

.landing-container {
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}

.landing-container--narrow {
  max-width: var(--content-max-width-narrow);
  margin-left: auto;
  margin-right: auto;
}

.landing-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.landing-section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.landing-section-desc {
  font-size: 1.05rem;
  color: var(--muted-text);
  line-height: 1.5;
  margin-bottom: 0;
}

.landing-section-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-section-link:hover {
  color: var(--primary-dark);
}

.landing-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.landing-caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.landing-card {
  border-radius: 16px;
  border: 1px solid var(--dark-tint-7);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04);
}

/* Platform preview with blobs */
.landing-preview-wrap {
  position: relative;
  background: var(--background);
  overflow: hidden;
}

.landing-preview-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.preview-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}

.preview-blob--1 {
  width: 400px;
  height: 400px;
  background: var(--accent-tint-12);
  top: -100px;
  right: -80px;
}

.preview-blob--2 {
  width: 300px;
  height: 300px;
  background: var(--gold-tint-10);
  bottom: -60px;
  left: -60px;
}

.browser-window--landing {
  position: relative;
  z-index: 1;
}

/* Testimonial cards */
.landing-testimonials {
  background: var(--surface);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--dark-tint-7);
  border-radius: 16px;
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-card:hover {
  border-color: var(--dash-icon-teal);
  box-shadow: 0 12px 32px -10px var(--brand-tint-10);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dash-icon-teal);
  color: var(--primary-brand);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.testimonial-company {
  font-size: 0.8rem;
  color: var(--muted-text);
}

/* CTA cards */
.landing-cta {
  padding: var(--section-spacing) var(--space-6);
}

.landing-cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.cta-card {
  flex: 1;
  min-width: 300px;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-card--primary {
  background: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow-md);
}

.cta-card--primary:hover {
  box-shadow: var(--shadow-lg);
}

.cta-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: inherit;
}

.cta-card-desc {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cta-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-cta-primary {
  background: white !important;
  color: var(--primary-dark) !important;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  border-radius: 99px;
}

.btn-cta-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
  background: transparent;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  border-radius: 99px;
}

.cta-card--secondary {
  background: var(--background);
  border: 1px solid var(--border-color);
}

.cta-card--secondary .cta-card-title {
  color: var(--primary-dark);
}

.cta-card--secondary:hover {
  box-shadow: var(--shadow-md);
}

.btn-cta-demo {
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  border-radius: 99px;
}

/* Animation Keyframes */
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 20px) rotate(5deg); }
}

/* Role Cards - Enhanced */
.role-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.role-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px -5px rgba(0, 0, 0, 0.05),
    0 8px 16px -4px rgba(0, 0, 0, 0.02);
  border-color: transparent;
}

.role-card:hover::before {
  opacity: 1;
}

.role-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px -4px rgba(15, 61, 62, 0.2);
  transition: transform 0.3s;
}

.role-card:hover .role-icon {
  transform: scale(1.1) rotate(-3deg);
}

.role-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.role-list li {
  margin-bottom: 0.75rem;
  color: var(--muted-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Capabilities Grid - Enhanced */
.cap-item {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.cap-item:hover {
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cap-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(31, 164, 169, 0.05), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.cap-item:hover::after {
  opacity: 1;
}

.cap-icon {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
  display: inline-block;
}

.cap-item:hover .cap-icon {
  transform: scale(1.1);
  color: var(--primary-accent);
}

/* Browser Window for Preview */
.browser-window {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.browser-window:hover {
  transform: translateY(-5px);
}

.browser-header {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red { background: #FF5F56; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green { background: #27C93F; }

.browser-address-bar {
  flex: 1;
  margin-left: 1rem;
  background: white;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-text);
  max-width: 400px;
}

/* Timeline */
.process-timeline {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 4rem auto 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(15, 31, 35, 0.1);
}

/* Compliance Section */
.compliance-section {
  background: var(--primary-dark);
  color: white;
  position: relative;
  overflow: hidden;
  padding: var(--section-spacing) var(--space-6);
}

.compliance-section__inner {
  max-width: var(--content-max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.compliance-section__title {
  font-family: var(--font-family);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--surface);
  margin-bottom: var(--space-5);
}

.compliance-section__lead {
  opacity: 0.9;
  max-width: 38rem;
  margin: 0 auto var(--space-8);
  color: rgba(255, 255, 255, 0.92);
}

.compliance-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: var(--space-6);
}

.comp-item__text {
  opacity: 0.85;
  margin-bottom: 0;
}

.compliance-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--brand-tint-15) 0%, transparent 70%);
  z-index: 0;
}

.comp-item {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.comp-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
}

.comp-item h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.comp-item p {
  color: rgba(255,255,255,0.7);
}

.comp-item p.comp-item__text {
  color: rgba(255, 255, 255, 0.88);
}

/* Partner Logos */
.partner-logo {
  font-weight: 900;
  font-size: 1.5rem;
  color: #cbd5e1;
  font-family: sans-serif;
  transition: color 0.3s;
  cursor: default;
}

.partner-logo:hover {
  color: var(--muted-text);
}

/* Call to Action Section */
.cta-section {
  background: var(--surface);
  position: relative;
}

/* Footer Improvements */
footer {
  background: var(--background);
  color: var(--text-main);
}

footer a:hover {
  color: var(--primary-brand) !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .process-timeline { flex-direction: column; gap: 2rem; }
  .process-timeline::before { width: 2px; height: 100%; left: 24px; top: 0; }
  .process-step { text-align: left; padding-left: 4rem; }
  .step-number { position: absolute; left: 0; margin: 0; }
  
  .hero-image-wrapper {
    margin-top: 2rem;
    transform: none !important;
  }
}

/* Chat Layout Page Override */
.dashboard-layout.chat-layout-page {
  display: block;
}

.chat-layout-page .main-content {
  margin-left: 0;
  padding: 1rem;
  height: 100vh;
  overflow: hidden;
}

/* ========== Messaging UI - User Friendly ========== */
.msg-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.msg-tab-btn {
  padding: 0.875rem 1.5rem;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--muted-text);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.msg-tab-btn:hover { color: var(--primary-accent); }

.msg-tab-btn.active {
  color: var(--primary-accent);
  border-bottom-color: var(--primary-accent);
}

.msg-conversation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: linear-gradient(90deg, var(--brand-tint-3) 0%, var(--surface) 12%);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.msg-conversation-card:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  background: linear-gradient(90deg, var(--brand-tint-6) 0%, var(--surface) 12%);
}

.msg-conversation-card .msg-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.msg-conversation-card .msg-avatar.msg-avatar-group {
  background: var(--gradient-gold);
  color: var(--primary-dark);
}

.msg-conversation-card .msg-info {
  flex: 1;
  min-width: 0;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.msg-conversation-card .msg-name {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1rem;
  line-height: 1.3;
}

.msg-conversation-card .msg-email,
.msg-conversation-card .msg-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.3;
  word-break: break-word;
}

.msg-conversation-card .msg-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary-accent);
  font-weight: 500;
}

.msg-conversation-card .msg-action svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.msg-conversation-select {
  cursor: pointer;
}

.msg-conversation-select.active {
  border-color: var(--primary-accent);
  background: linear-gradient(90deg, var(--brand-tint-8) 0%, var(--surface) 12%);
}

.msg-messaging-panel {
  position: relative;
}

.msg-messaging-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.msg-messaging-toolbar .msg-tabs {
  flex: 1 1 12rem;
  min-width: 0;
  margin-bottom: 0;
}

.msg-forums-toolbar-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.msg-forum-fab {
  display: none;
  position: absolute;
  z-index: 15;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: var(--surface);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.msg-forum-fab:hover {
  color: var(--surface);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.msg-forum-fab:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 3px;
}

.msg-forum-fab__icon {
  flex-shrink: 0;
}

.msg-forum-fab__label {
  display: none;
}

.msg-messaging-intro {
  margin-bottom: var(--space-6);
}
.msg-messaging-intro .msg-forum-intro-link {
  margin: 0.5rem 0 0;
}
.msg-forum-intro-link--solo {
  margin: 0 0 var(--space-4, 1rem);
}
.msg-forum-intro-link a {
  color: var(--primary-brand);
  font-weight: 600;
  text-decoration: none;
}

.msg-forum-intro-link a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .msg-forum-fab {
    padding: 0 1rem 0 0.85rem;
  }

  .msg-forum-fab__label {
    display: inline;
  }
}

@media (max-width: 768px) {
  .msg-forum-fab {
    right: 0.75rem;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0;
  }

  .msg-forum-fab__label {
    display: none;
  }
}

.msg-split-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  min-height: 70vh;
}

.msg-conversation-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.msg-tab-content-private {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.msg-conversation-list {
  flex: 1;
  overflow-y: auto;
}

.msg-chat-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  height: calc(100vh - 11rem);
  max-height: 860px;
  position: sticky;
  top: 1rem;
  visibility: visible;
  opacity: 1;
}

.msg-chat-placeholder {
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--muted-text);
  text-align: center;
  box-sizing: border-box;
}

.msg-chat-iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  display: none;
  background: var(--background);
}

@media (max-width: 768px) {
  .msg-split-layout {
    grid-template-columns: 1fr !important;
  }
  .msg-chat-panel {
    min-height: 420px;
    height: auto;
    max-height: none;
    position: static;
  }
}

.msg-empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, var(--brand-tint-4) 0%, var(--surface) 100%);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}

.msg-empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.msg-empty-state p {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--muted-text);
}

.msg-empty-state p:first-of-type {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

/* Private / Group Chat Page */
.msg-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.msg-page-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.msg-page-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.msg-page-subtitle {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-top: 0.25rem;
}

/* Community forums — board index & classic thread layout */
.forum-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.forum-breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted-text);
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.forum-breadcrumb a {
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 500;
}

.forum-breadcrumb a:hover {
  text-decoration: underline;
}

.forum-breadcrumb-sep {
  opacity: 0.4;
  user-select: none;
}

.forum-breadcrumb-current {
  color: var(--primary-dark);
  font-weight: 600;
}

.forum-page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.forum-page-hero-text {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  min-width: 0;
}

.forum-page-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary-accent));
  color: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.forum-page-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  stroke: currentColor;
}

.forum-page-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-accent);
  margin: 0 0 0.35rem;
}

.forum-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.forum-page-lead {
  font-size: 0.9375rem;
  color: var(--muted-text);
  margin: 0;
  max-width: 40rem;
  line-height: 1.55;
}

.forum-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.forum-index-stats {
  font-size: 0.8125rem;
  color: var(--muted-text);
  margin-bottom: 0.75rem;
}

.forum-index-stats strong {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Topic-board table (CSS grid, not <table>) */
.forum-index-board {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.forum-index-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--background) 70%, var(--surface));
  border-bottom: 1px solid var(--border-color);
}

.forum-index-toolbar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin: 0;
}

.forum-index-head {
  display: none;
  grid-template-columns: minmax(0, 1fr) 5.5rem 11rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
  background: color-mix(in srgb, var(--background) 88%, var(--surface));
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .forum-index-head {
    display: grid;
  }
}

.forum-index-head-stat {
  text-align: center;
}

.forum-index-head-last {
  text-align: right;
}

.forum-index-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding: 1rem 1rem 1.05rem;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

@media (min-width: 768px) {
  .forum-index-row {
    grid-template-columns: minmax(0, 1fr) 5.5rem 11rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
  }
}

.forum-index-row:last-child {
  border-bottom: none;
}

.forum-index-row:hover {
  background: color-mix(in srgb, var(--primary-accent) 5%, var(--surface));
}

.forum-index-main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.forum-index-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary-dark) 9%, transparent);
  color: var(--primary-dark);
}

.forum-index-ico svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
}

.forum-index-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.forum-index-row:hover .forum-index-title {
  color: var(--primary-accent);
}

.forum-index-excerpt {
  font-size: 0.8125rem;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.forum-index-meta-mobile {
  display: block;
}

@media (min-width: 768px) {
  .forum-index-meta-mobile {
    display: none;
  }
}

.forum-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--primary-accent) 12%, transparent);
  color: var(--primary-dark);
}

.forum-tag--cohort {
  background: color-mix(in srgb, var(--primary-dark) 10%, transparent);
}

.forum-index-stat {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
}

@media (min-width: 768px) {
  .forum-index-stat {
    text-align: center;
  }
}

.forum-index-stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .forum-index-stat-label {
    display: none;
  }
}

.forum-index-last {
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: left;
}

@media (min-width: 768px) {
  .forum-index-last {
    text-align: right;
  }
}

.forum-index-last-time {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
}

.forum-index-last-by {
  display: block;
  color: var(--muted-text);
  font-size: 0.78rem;
}

.forum-empty {
  text-align: center;
  padding: 3rem 1.5rem 3.25rem;
  border-radius: var(--radius-lg);
  border: 1px dashed color-mix(in srgb, var(--muted-text) 35%, var(--border-color));
  background: color-mix(in srgb, var(--background) 88%, var(--surface));
}

.forum-empty-visual {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--primary-accent);
}

.forum-empty-visual svg {
  width: 2.25rem;
  height: 2.25rem;
  stroke: currentColor;
}

.forum-empty h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.5rem;
}

.forum-empty p {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin: 0 auto;
  max-width: 28rem;
  line-height: 1.55;
}

.forum-empty code {
  font-size: 0.8em;
}

/* Thread view */
.forum-thread-shell {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.forum-thread-pinned {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.55;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary-accent) 8%, var(--surface)) 0%,
    var(--surface) 100%
  );
}

.forum-thread-pinned strong {
  color: var(--primary-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

.forum-posts {
  background: var(--background);
}

.forum-post {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .forum-post {
    grid-template-columns: 10.5rem minmax(0, 1fr);
  }
}

.forum-post:last-child {
  border-bottom: none;
}

.forum-post-aside {
  padding: 1rem 1rem 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .forum-post-aside {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    padding: 1.15rem 0.9rem;
  }
}

.forum-post-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--surface);
  background: linear-gradient(145deg, var(--primary-dark), var(--primary-accent));
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.forum-post-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  line-height: 1.25;
  word-break: break-word;
}

.forum-post-meta {
  font-size: 0.72rem;
  color: var(--muted-text);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.forum-post-main {
  padding: 1rem 1.1rem 1.15rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .forum-post-main {
    padding: 1.15rem 1.25rem 1.25rem;
  }
}

.forum-post-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
}

.forum-post-num {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}

.forum-post-date {
  font-size: 0.78rem;
  color: var(--muted-text);
}

.forum-post-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
}

.forum-composer {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.forum-composer-head {
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--background) 75%, var(--surface));
  border-bottom: 1px solid var(--border-color);
}

.forum-composer-body {
  padding: 1rem 1.1rem 1.1rem;
}

.forum-composer-hint {
  font-size: 0.78rem;
  color: var(--muted-text);
  margin: 0.5rem 0 0;
}

.forum-composer .msg-chat-input {
  width: 100%;
  min-height: 7rem;
  resize: vertical;
}

.forum-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.forum-alert-msgs {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--primary-accent) 6%, var(--surface));
}

.forum-alert-msgs .text-sm {
  margin: 0.15rem 0;
}

.forum-create-shell {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* Forum portal — match messaging / mp-panel shell */
.forum-portal-page .main-content {
  padding: var(--space-5) var(--space-5) var(--space-6);
  background: linear-gradient(180deg, var(--background) 0%, var(--brand-tint-2) 100%);
}

.forum-view-max {
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}

:is(.forum-view) .mp-intro,
.forum-hub-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.forum-hub-header--actions-only {
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}

.forum-hub-header__text {
  flex: 1;
  min-width: 14rem;
}

.forum-hub-header .mp-intro-title {
  margin: 0 0 var(--space-2);
}

.forum-hub-header .mp-intro-lead {
  margin: 0;
}

.forum-hub-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.forum-hub-search {
  flex: 1;
  min-width: 12rem;
  max-width: 28rem;
}

.forum-hub-search .input-field {
  width: 100%;
}

.forum-hub-tabs.msg-tabs {
  flex-shrink: 0;
  margin-bottom: 0;
}

.forum-alert-msgs {
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--primary-accent) 8%, var(--surface));
  border: 1px solid var(--border-color);
}

.forum-index-body {
  min-width: 0;
}

.forum-index-ico {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.forum-hub__link-row--plain a {
  display: block;
  padding: 0.35rem 0;
}

:is(.forum-view) .mp-intro-title {
  margin: 0 0 var(--space-2);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

:is(.forum-view) .mp-intro-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted-text);
  max-width: 36rem;
}

:is(.forum-view) .mp-panel,
.forum-hub-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  min-width: 0;
}

.forum-hub-panel--narrow {
  max-width: 44rem;
}

.forum-page--hub,
.forum-page.forum-page--hub {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.forum-page {
  max-width: none;
  padding: 0;
  margin: 0;
}

a.msg-tab-btn {
  text-decoration: none;
  color: inherit;
}

a.msg-tab-btn:hover {
  color: var(--primary-accent);
}

.forum-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.forum-hub-toolbar .msg-tabs {
  flex: 1;
  min-width: 12rem;
  margin-bottom: 0;
}

.forum-board-list {
  margin-top: 0.25rem;
}

.forum-board-card .msg-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  line-height: 1.35;
}

.forum-board-card .msg-action {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.forum-board-card .msg-action svg {
  width: 1.1rem;
  height: 1.1rem;
}

.forum-board-avatar {
  background: var(--gradient-brand);
  color: var(--surface);
}

.forum-detail-title {
  font-size: 1.35rem;
}

.forum-detail-header .forum-page-kicker {
  margin: 0 0 0.35rem;
}

.forum-thread-shell--flow {
  min-height: 0;
  height: auto;
  max-height: none;
  position: static;
}

.forum-detail-layout .forum-composer {
  margin-top: var(--space-4);
}

.forum-empty--inline {
  padding: 2rem 1rem;
  text-align: center;
  border: none;
  background: transparent;
  box-shadow: none;
}

.forum-empty--inline p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.forum-hub__nav-link--static {
  cursor: default;
}

.forum-post-role {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.forum-hub__top {
  display: none;
}

/* Forum hub — legacy layout helpers (cards, rail links) */
.forum-page--hub {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.forum-hub {
  max-width: 72rem;
  margin: 0 auto;
}

.forum-hub--simple .forum-hub__layout {
  grid-template-columns: 1fr;
  max-width: 44rem;
}

.forum-hub--simple .forum-hub__top {
  margin-bottom: var(--space-3);
}

.forum-hub__thread-head .forum-page-title {
  margin-bottom: 0.35rem;
}

.forum-hub__thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 1.25rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.forum-hub__thread-hero-text {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .forum-hub__thread-head .forum-page-hero-text,
  .forum-hub__thread-head .forum-hub__thread-hero-text {
    flex: 1;
    min-width: 0;
  }
}

.forum-hub__top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.forum-hub__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.forum-hub__logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-hub__brand-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.forum-hub__brand-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
  background: var(--brand-tint-6);
  border: 1px solid var(--border-color);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
}

.forum-hub__search {
  flex: 1;
  min-width: 12rem;
  max-width: 24rem;
}

.forum-hub__search input[type="search"],
.forum-hub__search input[type="text"] {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-main);
}

.forum-hub__search-wrap {
  position: relative;
}

.forum-hub__search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  color: var(--muted-text);
  pointer-events: none;
}

.forum-hub__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.forum-hub__user-meta {
  display: none;
}

@media (min-width: 640px) {
  .forum-hub__user-meta {
    display: block;
    text-align: right;
  }
  .forum-hub__user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-dark);
  }
  .forum-hub__user-role {
    font-size: 0.6875rem;
    color: var(--muted-text);
  }
}

.forum-hub__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: var(--surface);
  font-size:0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forum-hub__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 1024px) {
  .forum-hub__layout {
    grid-template-columns: 1fr 17rem;
  }
}

.forum-hub__welcome {
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-color);
}

.forum-hub__welcome h2 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.forum-hub__welcome p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-text);
}

.forum-hub__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-color);
}

.forum-hub__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.forum-hub__tab {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-text);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.forum-hub__tab:hover {
  color: var(--primary-dark);
}

.forum-hub__tab.is-active {
  color: var(--primary-dark);
  font-weight: 600;
  border-bottom-color: var(--primary-accent);
}

.forum-hub__cta {
  flex-shrink: 0;
}

.forum-hub__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.forum-hub__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: border-color var(--duration-standard) var(--easing-standard), box-shadow var(--duration-standard) var(--easing-standard);
}

.forum-hub__card:hover {
  border-color: color-mix(in srgb, var(--primary-accent) 35%, var(--border-color));
  box-shadow: var(--shadow-md);
}

.forum-hub__card-inner {
  padding: var(--space-4);
}

.forum-hub__card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.forum-hub__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.forum-hub__card:hover .forum-hub__card-title {
  color: var(--primary-brand);
}

.forum-hub__badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.forum-hub__badge--active {
  background: var(--accent-tint-10);
  color: var(--primary-brand);
  border: 1px solid var(--brand-tint-15);
}

.forum-hub__badge--quiet {
  background: var(--gold-tint-10);
  color: var(--dash-urgency-text);
  border: 1px solid var(--gold-tint-15);
}

.forum-hub__card-excerpt {
  font-size: 0.8125rem;
  color: var(--muted-text);
  margin: 0 0 var(--space-3);
  line-height: 1.45;
}

.forum-hub__card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--muted-text);
}

.forum-hub__stat {
  font-weight: 600;
  color: var(--primary-dark);
}

.forum-hub__rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.forum-hub__panel {
  background: linear-gradient(180deg, var(--brand-tint-3) 0%, var(--surface) 32%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.forum-hub__panel-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-text);
  margin: 0 0 var(--space-3);
}

.forum-hub__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.5rem;
  margin: 0 -0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.forum-hub__nav-link:hover {
  background: var(--brand-tint-4);
  color: var(--primary-dark);
}

.forum-hub__nav-link.is-active {
  background: var(--brand-tint-8);
  color: var(--primary-dark);
  font-weight: 600;
}

.forum-hub__count {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--muted-text);
}

.forum-hub__muted {
  font-size: 0.8125rem;
  color: var(--muted-text);
  margin: 0 0 var(--space-3);
  line-height: 1.5;
}

.forum-hub__muted strong {
  color: var(--primary-dark);
}

/* Funding impact ROI matrix */
.funding-roi-matrix-shell {
  overflow-x: auto;
}

.funding-roi-matrix {
  min-width: 960px;
  font-size: 0.875rem;
}

.funding-roi-matrix-row--suggested {
  background: color-mix(in srgb, var(--background) 65%, var(--surface));
}

.funding-roi-matrix-row--suggested td {
  font-style: normal;
}

.funding-roi-matrix-row--suggested .tag-badge,
.funding-roi-matrix-row--suggested .text-muted {
  opacity: 0.92;
}

.forum-hub__link-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.forum-hub__link-row a {
  font-size: 0.8125rem;
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 500;
}

.forum-hub__link-row a:hover {
  text-decoration: underline;
}

.forum-hub__crumbs {
  font-size: 0.75rem;
  margin-bottom: var(--space-3);
}

.forum-hub__empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.forum-hub__empty h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--primary-dark);
}

/* Detail: thread meta bar */
.forum-hub__thread-meta {
  font-size: 0.8125rem;
  color: var(--muted-text);
  margin-bottom: var(--space-4);
}

.msg-chat-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.msg-chat-messages {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--background);
  flex: 1;
}

.message-bubble {
  max-width: 75%;
  padding: 0.875rem 1.125rem;
  border-radius: 1.125rem;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.message-received {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 0.25rem;
  color: var(--text-main);
}

.message-sent {
  align-self: flex-end;
  background: var(--primary-brand);
  color: var(--surface);
  border: none;
  border-bottom-right-radius: 0.25rem;
}

.chat-group-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--dark-tint-7);
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.message-sent .chat-group-tag { display: none; }

.message-time {
  font-size: 0.7rem;
  margin-top: 0.35rem;
  opacity: 0.9;
  color: inherit;
}

.message-sent .message-time { opacity: 0.9; color: rgba(255,255,255,0.9); }

.msg-chat-input-area {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: 0 1rem 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.msg-chat-input-area form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex: 1;
  width: 100%;
}

.msg-chat-card-embed {
  margin: 0;
  border: none;
  box-shadow: none;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  background: var(--background);
}

.msg-chat-messages-embed {
  max-height: none;
  min-height: 0;
  height: auto;
  padding: 1rem 1rem;
}

.msg-chat-card-embed .msg-chat-input-area {
  margin: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--border-color);
  box-shadow: none;
  padding: 0.75rem 1rem;
  background: var(--surface);
}

.msg-chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  max-height: 120px;
  outline: none;
  transition: var(--transition);
  background: var(--surface);
  color: var(--text-main);
}

.msg-chat-input::placeholder {
  color: var(--muted-text);
}

.msg-chat-input:focus {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-input);
}

.msg-send-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: var(--primary-brand);
  color: var(--surface);
  border: none;
}

.msg-send-btn:hover {
  background: var(--primary-accent);
  color: var(--surface);
}

@media (max-width: 640px) {
  .chat-layout[style*="grid-template-columns: 220px 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* BEE upload cards - interactive hover */
.bee-upload-card:hover {
  border-color: var(--primary-accent) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.bee-upload-card:active {
  transform: translateY(0);
}
@media (max-width: 600px) {
  .bee-upload-options {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Premium Trust Canonical Primitives
   Keep shared behavior here to avoid style drift.
   ========================================================= */

.page-shell {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.page-shell-wide {
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}

.page-header {
  margin-bottom: var(--space-6);
}

.page-header-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page-header-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-brand);
}

.page-header-kicker::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--brand-gold);
}

.page-header-title {
  font-size: 1.95rem;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin: 0;
}

.page-header-lead {
  margin: 0;
  max-width: 60ch;
}

.page-header-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-color);
  background: var(--background);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.status-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary-brand);
}

.status-chip.status-chip-warning::before {
  background: var(--warning);
}

.status-chip.status-chip-success::before {
  background: var(--success);
}

.section-frame {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.section-frame + .section-frame {
  margin-top: var(--space-5);
}

.btn:focus-visible,
.input-field:focus-visible,
.tab-btn:focus-visible,
.nav-item:focus-visible,
.dropdown-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn {
  transition: transform var(--duration-standard) var(--easing-standard),
    box-shadow var(--duration-standard) var(--easing-standard),
    background-color var(--duration-standard) var(--easing-standard),
    color var(--duration-standard) var(--easing-standard),
    border-color var(--duration-standard) var(--easing-standard);
}

.btn-primary:hover:not(:disabled),
.btn-gold:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-secondary:hover,
.btn-ghost:hover {
  transform: none;
}

.card,
.mentee-dash-card,
.stat-card,
.procurement-card,
.task-item,
.doc-item {
  transition: border-color var(--duration-standard) var(--easing-standard),
    box-shadow var(--duration-standard) var(--easing-standard),
    background-color var(--duration-standard) var(--easing-standard),
    transform var(--duration-standard) var(--easing-standard);
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.chat-layout {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.chat-item {
  transition: background-color var(--duration-standard) var(--easing-standard),
    border-color var(--duration-standard) var(--easing-standard);
}

.message-bubble {
  border-radius: 1rem;
}

@media (max-width: 1024px) {
  .page-header-title {
    font-size: 1.65rem;
  }
}

/* Mentor calendar (bento) — scoped to .mentor-calendar */
.mentor-calendar {
  max-width: var(--content-max-width-wide);
}

.mentor-calendar-hub {
  margin-bottom: var(--space-6);
}

/* Sidebar "Feedback" lands on same #view-sessions shell; hide month bento for that entry only. */
#view-sessions.mentor-sessions-hub--feedback-entry #mentor-session-calendar-hub {
  display: none;
}

/* Mentor session list tables: keep status badges and action controls on one line when the viewport narrows */
#mentor-sessions-lists .mentor-sessions-table .session-col-status,
#mentor-sessions-lists .mentor-sessions-table .session-col-actions {
  white-space: nowrap;
  vertical-align: middle;
  width: 1%;
}
#mentor-sessions-lists .mentor-sessions-table .mentor-session-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  max-width: max-content;
}
#mentor-sessions-lists .mentor-sessions-table .mentor-session-action-link,
#mentor-sessions-lists .mentor-sessions-table .mentor-session-action-btn {
  white-space: nowrap;
}

.mc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.mc-view-toggle {
  display: inline-flex;
  padding: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.mc-seg {
  padding: 0.4rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-text);
  cursor: pointer;
  font-family: var(--font-family);
}

.mc-seg.mc-seg-active {
  background: var(--surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.mc-seg:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mc-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 1100px) {
  .mc-bento {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}

.mc-bento-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}

.mc-bento-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.mc-card {
  background: var(--surface);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.mc-card-month {
  padding: var(--space-6);
}

.mc-month-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.mc-month-head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.mc-month-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.mc-month-nav {
  display: inline-flex;
  gap: var(--space-1);
}

.mc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  color: var(--muted-text);
  background: var(--brand-tint-4);
  transition: var(--transition);
}

.mc-icon-btn:hover {
  color: var(--primary-brand);
  background: var(--brand-tint-10);
}

.mc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
}

.mc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mc-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.mc-dot-session {
  background: var(--primary-brand);
}

.mc-dot-event {
  background: var(--brand-gold);
}

.mc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--border-color);
}

.mc-cal-dow {
  padding: var(--space-3) var(--space-2);
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-text);
  border-top: 1px solid var(--border-color);
}

.mc-cal-cell {
  min-height: 6.5rem;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  background: var(--surface);
  overflow: hidden;
}

.mc-cal-grid .mc-cal-cell:nth-child(7n) {
  border-right: none;
}

.mc-cal-cell-muted {
  background: var(--brand-tint-2);
  color: var(--muted-text);
  opacity: 0.85;
}

.mc-cal-cell-today {
  background: var(--brand-tint-6);
  box-shadow: inset 0 0 0 2px var(--primary-brand);
  border-radius: var(--radius-md);
}

.mc-cal-daynum {
  font-size: 0.8rem;
  font-weight: 700;
  color: inherit;
}

.mc-cal-chips {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 0;
}

.mc-chip {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mc-chip-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-chip-session {
  background: var(--accent-tint-12);
  color: var(--primary-dark);
}

.mc-chip-event {
  background: var(--gold-tint-12);
  color: var(--dash-urgency-text);
}

.mc-stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .mc-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

.mc-stat-card {
  padding: var(--space-6);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
}

.mc-stat-primary {
  background: var(--dash-hero-bg);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
}

.mc-stat-primary .mc-stat-kicker {
  color: rgba(255, 255, 255, 0.75);
}

.mc-stat-primary .mc-stat-desc {
  color: rgba(255, 255, 255, 0.88);
}

.mc-stat-muted {
  background: var(--brand-tint-3);
}

.mc-stat-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-text);
  margin-bottom: var(--space-2);
}

.mc-stat-primary .mc-stat-value {
  color: #fff;
}

.mc-stat-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.mc-stat-desc {
  margin: var(--space-3) 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-text);
}

.mc-stat-foot {
  margin-top: var(--space-4);
}

.mc-stat-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.mc-progress-track {
  height: 0.45rem;
  background: var(--brand-tint-4);
  border-radius: 999px;
  overflow: hidden;
  margin-top: var(--space-3);
}

.mc-progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 999px;
  transition: width var(--duration-emphasis) var(--easing-standard);
}

.mc-card-side {
  padding: var(--space-5);
}

.mc-side-head {
  margin-bottom: var(--space-5);
}

.mc-side-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.mc-accent {
  color: var(--primary-brand);
}

.mc-accent-gold {
  color: var(--brand-gold);
}

.mc-timeline {
  position: relative;
  padding-left: var(--space-2);
  margin-bottom: var(--space-5);
  max-height: 28rem;
  overflow-y: auto;
  padding-right: var(--space-2);
}

.mc-timeline::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border-color);
}

.mc-card-side .mc-timeline::before {
  display: none;
}

.mc-tl-item {
  position: relative;
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

.mc-tl-item:last-child {
  padding-bottom: 0;
}

.mc-tl-badge {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--accent-tint-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 1px solid var(--border-color);
}

.mc-tl-day {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-brand);
  line-height: 1;
}

.mc-tl-mon {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-top: 2px;
}

.mc-tl-body {
  flex: 1;
  min-width: 0;
}

.mc-tl-time {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-brand);
  margin: 0 0 0.25rem;
}

.mc-tl-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.mc-tl-mentee {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.mc-tl-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--brand-tint-15);
  color: var(--primary-brand);
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-tl-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-text);
}

.mc-full-width {
  width: 100%;
}

.mc-empty {
  margin: 0;
  font-size: 0.9rem;
}

.mc-card-events .mc-side-title {
  margin-bottom: var(--space-4);
}

.mc-event-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.mc-event-card:last-child {
  margin-bottom: 0;
}

.mc-event-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.mc-event-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-text);
}

.mc-event-title {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
  font-weight: 700;
}

.mc-event-meta {
  margin: 0 0 var(--space-3);
  font-size: 0.85rem;
}

.mc-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.mc-inline-form {
  display: inline;
}

.mc-event-rsvp-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Mentor feedback view — scoped to .mentor-feedback */
.mentor-feedback-max {
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}

.mentor-feedback .mf-section {
  margin-bottom: var(--space-8);
}

.mentor-feedback .mf-section:last-child {
  margin-bottom: 0;
}

.mentor-feedback .mf-section-title {
  margin: 0 0 var(--space-5);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

.mentor-feedback .mf-section-title-sub {
  margin: 0;
  font-size: 1.35rem;
}

.mentor-feedback .mf-pending-block {
  margin-bottom: var(--space-8);
}

.mentor-feedback .mf-pending-block:last-of-type {
  margin-bottom: 0;
}

.mentor-feedback .mf-session-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  background: var(--accent-tint-12);
  border: 1px solid var(--brand-tint-15);
  border-radius: var(--radius-xl);
}

.mentor-feedback .mf-session-banner-icon {
  flex-shrink: 0;
  display: flex;
  color: var(--primary-brand);
}

.mentor-feedback .mf-session-banner-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--primary-dark);
  font-weight: 500;
}

.mentor-feedback .mf-session-banner-lead {
  font-weight: 700;
}

.mentor-feedback .mf-badge-pending {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-tint-12);
  color: var(--dash-urgency-text);
}

.mentor-feedback .mf-form-card {
  background: var(--surface);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6) var(--space-6);
}

.mentor-feedback .mf-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-text);
}

.mentor-feedback .mf-label-inline {
  margin-bottom: 0;
}

.mentor-feedback .mf-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .mentor-feedback .mf-form-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 28rem;
  }
}

.mentor-feedback .mf-field-outcomes {
  margin-bottom: var(--space-5);
}

.mentor-feedback .mf-input,
.mentor-feedback .mf-textarea {
  border: 1px solid transparent;
  background: var(--brand-tint-4);
}

.mentor-feedback .mf-textarea {
  resize: vertical;
  min-height: 6rem;
}

.mentor-feedback .mf-action-items-wrap {
  margin-bottom: var(--space-5);
}

.mentor-feedback .mf-action-items-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.mentor-feedback .mf-add-task {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-brand);
  cursor: pointer;
  font-family: var(--font-family);
}

.mentor-feedback .mf-add-task:hover {
  text-decoration: underline;
}

.mentor-feedback .mf-action-table-shell {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius-xl);
  background: var(--brand-tint-4);
  border: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
}

.mentor-feedback .mf-action-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mentor-feedback .mf-action-table thead th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
  border-bottom: 1px solid var(--border-color);
}

.mentor-feedback .mf-action-table tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.mentor-feedback .mf-action-table tbody tr:last-child td {
  border-bottom: none;
}

.mentor-feedback .mf-table-input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.mentor-feedback .mf-table-select {
  max-width: 10rem;
}

.mentor-feedback .mf-action-col-action {
  width: 3rem;
  text-align: right;
}

.mentor-feedback .mf-row-remove {
  border: none;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--error);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
}

.mentor-feedback .mf-row-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

.mentor-feedback .mf-audit-note {
  font-size: 0.75rem;
  color: var(--muted-text);
  font-style: italic;
  margin: var(--space-3) 0 0;
}

.mentor-feedback .mf-submit-row {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--space-2);
}

.mentor-feedback .mf-submit-btn {
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .mentor-feedback .mf-submit-row {
    justify-content: stretch;
  }

  .mentor-feedback .mf-submit-btn {
    width: 100%;
  }
}

.mentor-feedback .mf-empty {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-color);
  background: var(--brand-tint-2);
  color: var(--muted-text);
}

.mentor-feedback .mf-empty-inline {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-5);
  border: none;
  background: transparent;
}

.mentor-feedback .mf-received-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.mentor-feedback .mf-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand-tint-4);
  color: var(--muted-text);
  cursor: not-allowed;
  opacity: 0.65;
}

.mentor-feedback .mf-ratings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .mentor-feedback .mf-ratings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .mentor-feedback .mf-ratings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mentor-feedback .mf-rating-card {
  background: var(--surface);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-standard) var(--easing-standard),
    transform var(--duration-standard) var(--easing-standard);
}

.mentor-feedback .mf-rating-card:hover {
  box-shadow: var(--shadow-md);
}

.mentor-feedback .mf-rating-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.mentor-feedback .mf-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.mentor-feedback .mf-pill--virtual {
  background: var(--accent-tint-12);
  color: var(--primary-dark);
}

.mentor-feedback .mf-pill--in_person {
  background: var(--gold-tint-15);
  color: var(--dash-urgency-text);
}

.mentor-feedback .mf-rating-score {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-brand);
}

.mentor-feedback .mf-star {
  flex-shrink: 0;
}

.mentor-feedback .mf-rating-num {
  font-size: 0.9rem;
  font-weight: 700;
}

.mentor-feedback .mf-rating-topic {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.mentor-feedback .mf-rating-meta {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  color: var(--muted-text);
}

.mentor-feedback .mf-quote {
  margin: 0;
  padding: 0;
  position: relative;
}

.mentor-feedback .mf-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.35rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--brand-tint-25);
  opacity: 0.5;
  font-family: Georgia, serif;
}

.mentor-feedback .mf-quote p {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--muted-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mentor, mentee & admin portal shared primitives — .mentor-view / .mentee-view / .admin-view + .mp-* */
:is(.mentor-view, .mentee-view, .admin-view) {
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}

:is(.mentor-view-max, .mentee-view-max, .admin-view-max, .forum-view-max) {
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-intro {
  margin-bottom: var(--space-6);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-intro-title {
  margin: 0 0 var(--space-2);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-intro-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted-text);
  max-width: 36rem;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-panel {
  background: var(--surface);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  min-width: 0;
}

/* Keep the mentees filter/table card from touching detail cards below. */
#view-mentees > .mentor-view > .mp-panel {
  margin-bottom: var(--space-6);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-toolbar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-empty {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-color);
  background: var(--brand-tint-2);
  color: var(--muted-text);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-table-shell {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

:is(.mentor-view, .mentee-view, .admin-view) .table-responsive .table td,
:is(.mentor-view, .mentee-view, .admin-view) .table-responsive .table th,
.table-responsive .table td,
.table-responsive .table th {
  word-break: break-word;
  overflow-wrap: anywhere;
}

#view-feedback .admin-session-feedback-table thead th {
  font-size: 0.72rem;
  padding: 0.65rem 0.85rem;
}

#view-feedback .admin-session-feedback-table tbody td {
  padding: 0.75rem 0.85rem;
  vertical-align: middle;
}

#view-feedback .admin-session-feedback-table tbody tr {
  transition: background-color 0.15s ease;
}

#view-feedback .admin-session-feedback-table tbody tr:hover {
  background: var(--brand-tint-6);
}

#view-feedback .admin-col-numeric {
  text-align: center;
  white-space: nowrap;
}

.audit-log .status-badge.audit-log-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 28px;
  padding: 0 10px;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-table-shell .table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
}

.admin-view .mp-panel .card-header + .mp-table-shell {
  margin-top: 0.75rem;
}

#admin-doc-types-section .mp-table-shell .table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

#admin-doc-types-section .mp-table-shell .table tbody td {
  border-bottom: none;
}

#admin-doc-types-section .mp-table-shell .table tbody tr:last-child {
  border-bottom: none;
}

.dashboard-layout > .main-content {
  min-width: 0;
}

/* Admin portal — DESIGN.md shell (tokens only; was inline in admin-portal.html) */
.admin-portal-page .main-content {
  padding: var(--space-5) var(--space-5) var(--space-6);
  background: linear-gradient(180deg, var(--background) 0%, var(--brand-tint-2) 100%);
}

.admin-portal-page .page-header.page-shell {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.admin-portal-page .page-header.page-shell .page-header-meta {
  flex-shrink: 0;
}

.admin-portal-page .admin-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.admin-portal-page .admin-view .mp-panel {
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}

.admin-portal-page .admin-view .mp-toolbar {
  margin-bottom: var(--space-4);
}

.admin-portal-page .search-filter-bar {
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.admin-portal-page .card-header {
  margin-bottom: var(--space-3);
}

/* Admin mentor review detail page */
.admin-portal-page .main-content.mentor-review-page {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.admin-portal-page .mentor-review-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}

.admin-portal-page .mentor-review-header-block {
  margin-bottom: 0;
}

.admin-portal-page .mentor-review-flash {
  padding: var(--space-3) var(--space-4);
  border-color: var(--primary-brand);
  background: var(--accent-tint-12);
}

.admin-portal-page .mentor-review-flash-line {
  margin: 0;
}

.admin-portal-page .mentor-review-flash-line + .mentor-review-flash-line {
  margin-top: 0.35rem;
}

.admin-portal-page .mentor-review-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: var(--space-4);
}

.admin-portal-page .mentor-review-main-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.admin-portal-page .mentor-review-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.admin-portal-page .mentor-review-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.admin-portal-page .mentor-review-summary-label {
  color: var(--muted-text);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-portal-page .mentor-review-summary-value {
  color: var(--text-color);
  font-weight: 600;
}

.admin-portal-page .mentor-review-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.admin-portal-page .mentor-review-detail-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-portal-page .mentor-review-detail-row:last-child {
  border-bottom: none;
}

.admin-portal-page .mentor-review-detail-label {
  color: var(--muted-text);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-portal-page .mentor-review-detail-value {
  color: var(--text-color);
  font-weight: 500;
}

.admin-portal-page .mentor-review-actions {
  position: sticky;
  top: var(--space-4);
}

.admin-portal-page .mentor-review-actions-help,
.admin-portal-page .mentor-review-docs-lead {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.admin-portal-page .mentor-review-status-banner {
  margin: 0 0 var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-portal-page .mentor-review-status-banner--approved {
  background: var(--accent-tint-12);
  border: 1px solid var(--primary-accent);
  color: var(--primary-dark);
}

.admin-portal-page .mentor-review-status-banner--rejected {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.admin-portal-page .mentor-review-form .input-group {
  margin-bottom: var(--space-3);
}

.admin-portal-page .mentor-review-action-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.admin-portal-page .mentor-review-btn-full {
  width: 100%;
  justify-content: center;
}

.admin-portal-page .mentor-review-reject-btn {
  color: #dc2626;
  border-color: #fecaca;
}

.admin-portal-page .mentor-review-reject-btn:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #dc2626;
}

.admin-portal-page .mentor-review-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.admin-portal-page .mentor-review-dl dt {
  margin-bottom: 0.25rem;
}

.admin-portal-page .mentor-review-dl dd {
  margin: 0;
  font-weight: 500;
}

.admin-portal-page .mentor-review-docs {
  grid-column: auto;
}

.admin-portal-page .mentor-review-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.admin-portal-page .mentor-review-doc-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  min-height: 100%;
}

.admin-portal-page .mentor-review-doc-card--missing {
  border-color: #fecaca;
  background: #fffbfb;
}

.admin-portal-page .mentor-review-doc-card--optional {
  opacity: 0.92;
}

.admin-portal-page .mentor-review-doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--dash-icon-teal-strong);
  color: var(--primary-brand);
}

.admin-portal-page .mentor-review-doc-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

.admin-portal-page .mentor-review-doc-label {
  color: var(--muted-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-portal-page .mentor-review-doc-missing {
  font-size: 0.85rem;
  color: #b91c1c;
  font-weight: 600;
}

.admin-portal-page .mentee-detail-layout {
  align-items: start;
  gap: var(--space-4);
}

.admin-portal-page .mentee-detail-main .mentee-detail-card,
.admin-portal-page .mentee-detail-sidebar .mentee-detail-card {
  width: 100%;
}

.admin-portal-page .mentor-review-doc-link {
  font-weight: 600;
  text-decoration: none;
}

.admin-portal-page .mentor-review-doc-link:hover {
  text-decoration: underline;
}

@media (max-width: 920px) {
  .admin-portal-page .main-content {
    padding: var(--space-4) var(--space-4) var(--space-5);
  }

  .admin-portal-page .page-header.page-shell {
    padding: var(--space-4);
  }

  .admin-portal-page .admin-view .mp-panel {
    padding: var(--space-4);
  }

  .admin-portal-page .main-content.mentor-review-page {
    padding: var(--space-4) var(--space-4) var(--space-5);
  }
}

@media (max-width: 1024px) {
  .admin-portal-page .mentor-review-actions {
    position: static;
  }
  .admin-portal-page .mentor-review-grid {
    grid-template-columns: 1fr;
  }
  .admin-portal-page .mentor-review-summary-grid {
    grid-template-columns: 1fr;
  }
  .admin-portal-page .mentor-review-doc-grid {
    grid-template-columns: 1fr;
  }
  .admin-portal-page .mentor-review-dl {
    grid-template-columns: 1fr;
  }
  .admin-portal-page .mentor-review-detail-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

/* Mentee portal — DESIGN.md shell (tokens only; training cards were inline in mentee-portal.html) */
.mentee-portal-page .main-content {
  padding: var(--space-5) var(--space-5) var(--space-6);
  background: linear-gradient(180deg, var(--background) 0%, var(--brand-tint-2) 100%);
}

.mentee-portal-page .page-header.page-shell {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.mentee-portal-page .page-header.page-shell .page-header-meta {
  flex-shrink: 0;
}

.mentee-portal-page .mentee-view .mp-panel {
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}

.mentee-portal-page .training-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.mentee-portal-page .training-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.mentee-portal-page .training-card-media {
  min-height: 154px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--surface);
  background: var(--primary-brand);
}

.mentee-portal-page .gap-inline-shell {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--background);
  overflow: hidden;
}

.mentee-portal-page .gap-questions-inline {
  margin: 0;
  max-height: 55vh;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  .mentee-portal-page .training-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mentee-portal-page .training-card {
    grid-template-columns: 1fr;
  }

  .mentee-portal-page .training-card-media {
    min-height: 110px;
  }
}

@media (max-width: 920px) {
  .mentee-portal-page .main-content {
    padding: var(--space-4) var(--space-4) var(--space-5);
  }

  .mentee-portal-page .page-header.page-shell {
    padding: var(--space-4);
  }

  .mentee-portal-page .mentee-view .mp-panel {
    padding: var(--space-4);
  }
}

/* Mentor portal — DESIGN.md shell (matches mentee/admin) */
.mentor-portal-page .main-content {
  padding: var(--space-5) var(--space-5) var(--space-6);
  background: linear-gradient(180deg, var(--background) 0%, var(--brand-tint-2) 100%);
}

.mentor-portal-page .page-header.page-shell {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.mentor-portal-page .page-header.page-shell .page-header-meta {
  flex-shrink: 0;
}

.mentor-portal-page .mentor-view .mp-panel {
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}

/* Mentor portal — compact data tables (aligned borders, clamped text, stable badges) */
.mentor-portal-page .mp-table-cell-ellipsis {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mentor-portal-page .mp-table-cell-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mentor-portal-page .mp-table-shell > :is(.table, table) {
  margin-top: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: 36rem;
}

.mentor-portal-page .mp-table-shell > :is(.table, table) :is(th, td) {
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.mentor-portal-page .mp-table-shell > :is(.table, table) thead th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-text);
  background: var(--surface);
  white-space: nowrap;
  vertical-align: middle;
}

.mentor-portal-page .mp-table-shell > :is(.table, table) tbody tr:last-child :is(th, td) {
  border-bottom: none;
}

.mentor-portal-page .mp-table-shell :is(td, th) :is(.mp-cell-primary, .mp-cell-muted, span, div, p, a) {
  overflow-wrap: normal;
  word-break: normal;
}

.mentor-portal-page .mp-table-shell .mp-table-cell-clamp-2,
.mentor-portal-page .mp-table-shell .mp-table-cell-ellipsis,
.mentor-portal-page .mentor-dashboard-mentee-missing-hint {
  overflow-wrap: anywhere;
}

.mentor-portal-page .mp-table-shell .mp-table-badge-col,
.mentor-portal-page .mp-table-shell .mrs-col-badge,
.mentor-portal-page .mp-table-shell .session-col-status,
.mentor-portal-page .mp-table-shell .session-col-actions,
.mentor-portal-page .mp-table-shell .mrs-th-actions,
.mentor-portal-page .mp-table-shell .mrs-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: left;
}

.mentor-portal-page .mp-table-shell :is(.status-badge, .tag-badge, .document-status-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.mentor-portal-page #mentor-resources-table th:nth-child(1),
.mentor-portal-page #mentor-resources-table td:nth-child(1) {
  width: 38%;
  min-width: 10rem;
}

.mentor-portal-page #mentor-resources-table th:nth-child(2),
.mentor-portal-page #mentor-resources-table td:nth-child(2) {
  width: 14%;
  min-width: 5.5rem;
}

.mentor-portal-page #mentor-resources-table th:nth-child(3),
.mentor-portal-page #mentor-resources-table td:nth-child(3) {
  width: 12%;
  min-width: 5rem;
}

.mentor-portal-page #mentor-resources-table th:nth-child(4),
.mentor-portal-page #mentor-resources-table td:nth-child(4) {
  width: 11%;
  min-width: 4.5rem;
}

.mentee-portal-page .mp-table-shell .mp-table-badge-col,
.mentee-portal-page .mp-table-shell .mrs-col-badge,
.mentee-portal-page .mp-table-shell .mrs-th-actions,
.mentee-portal-page .mp-table-shell .mrs-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: left;
}

.mentee-portal-page .mp-table-shell :is(.status-badge, .tag-badge, .document-status-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.mentee-portal-page #mentee-shared-resources-table th:nth-child(1),
.mentee-portal-page #mentee-shared-resources-table td:nth-child(1) {
  width: 42%;
  min-width: 10rem;
}

.mentee-portal-page #mentee-shared-resources-table th:nth-child(2),
.mentee-portal-page #mentee-shared-resources-table td:nth-child(2) {
  width: 16%;
  min-width: 5.5rem;
}

.mentee-portal-page #mentee-shared-resources-table th:nth-child(3),
.mentee-portal-page #mentee-shared-resources-table td:nth-child(3) {
  width: 18%;
  min-width: 6rem;
}

.mentee-portal-page .mrs-table-wrap .mrs-col-title .mp-cell-primary {
  font-weight: 600;
  color: var(--primary-dark);
}

.mentee-portal-page .mrs-table-wrap .mrs-col-from {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12rem;
}

/* Mentee procurement tables — compact columns (aligned with mentor portal tables) */
.mentee-portal-page .mentee-proc-table .mentee-proc-td-badge,
.mentee-portal-page .mentee-proc-table .mentee-proc-td-date,
.mentee-portal-page .mentee-proc-table .mentee-proc-th-actions,
.mentee-portal-page .mentee-proc-table .mentee-proc-td-actions {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.mentee-portal-page .mentee-proc-table .mentee-proc-td-actions {
  text-align: right;
}

.mentee-portal-page .mentee-proc-table :is(.status-badge, .tag-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.mentee-portal-page .mentee-proc-table .mentee-proc-td-title .mp-cell-primary {
  font-weight: 600;
  color: var(--primary-dark);
}

.mentee-portal-page .mentee-proc-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.mentee-portal-page .mentee-proc-table .mentee-proc-td-buyer {
  max-width: 11rem;
}

.mentee-portal-page #mentee-procurement-tenders-table th:nth-child(1),
.mentee-portal-page #mentee-procurement-tenders-table td:nth-child(1) {
  width: 34%;
  min-width: 9rem;
}

.mentee-portal-page #mentee-procurement-tenders-table th:nth-child(2),
.mentee-portal-page #mentee-procurement-tenders-table td:nth-child(2) {
  width: 22%;
  min-width: 7rem;
}

.mentee-portal-page #mentee-procurement-tenders-table th:nth-child(3),
.mentee-portal-page #mentee-procurement-tenders-table td:nth-child(3) {
  width: 14%;
  min-width: 5.5rem;
}

.mentee-portal-page #mentee-procurement-tenders-table th:nth-child(4),
.mentee-portal-page #mentee-procurement-tenders-table td:nth-child(4) {
  width: 12%;
  min-width: 4.5rem;
}

.mentee-portal-page #mentee-procurement-opportunities-table th:nth-child(1),
.mentee-portal-page #mentee-procurement-opportunities-table td:nth-child(1) {
  width: 28%;
  min-width: 8rem;
}

.mentee-portal-page #mentee-procurement-opportunities-table th:nth-child(2),
.mentee-portal-page #mentee-procurement-opportunities-table td:nth-child(2) {
  width: 12%;
  min-width: 5rem;
}

.mentee-portal-page #mentee-procurement-opportunities-table th:nth-child(3),
.mentee-portal-page #mentee-procurement-opportunities-table td:nth-child(3) {
  width: 18%;
  min-width: 6rem;
}

.mentee-portal-page #mentee-procurement-opportunities-table th:nth-child(4),
.mentee-portal-page #mentee-procurement-opportunities-table td:nth-child(4) {
  width: 12%;
  min-width: 5rem;
}

.mentee-portal-page #mentee-procurement-opportunities-table th:nth-child(5),
.mentee-portal-page #mentee-procurement-opportunities-table td:nth-child(5) {
  width: 11%;
  min-width: 4.5rem;
}

@media (max-width: 720px) {
  .mentee-portal-page .mentee-proc-table .mentee-proc-td-buyer {
    max-width: 7rem;
  }
}

.mentee-portal-page #mentee-procurement-applied-table th:nth-child(1),
.mentee-portal-page #mentee-procurement-applied-table td:nth-child(1) {
  width: 28%;
  min-width: 8rem;
}

.mentee-portal-page #mentee-procurement-applied-table th:nth-child(2),
.mentee-portal-page #mentee-procurement-applied-table td:nth-child(2) {
  width: 12%;
  min-width: 5rem;
}

.mentee-portal-page #mentee-procurement-applied-table th:nth-child(3),
.mentee-portal-page #mentee-procurement-applied-table td:nth-child(3) {
  width: 16%;
  min-width: 5.5rem;
}

.mentee-portal-page #mentee-procurement-applied-table th:nth-child(4),
.mentee-portal-page #mentee-procurement-applied-table td:nth-child(4),
.mentee-portal-page #mentee-procurement-applied-table th:nth-child(5),
.mentee-portal-page #mentee-procurement-applied-table td:nth-child(5) {
  width: 11%;
  min-width: 4.5rem;
}

/* Market Access Hub — mentee procurement shell */
.mentee-market-access .mah-shell {
  padding: 1rem 1.15rem 1.25rem;
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--brand-tint-4) 35%, var(--surface)) 100%);
}

.mentee-market-access .mah-banner,
.mentee-market-access .mgt-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary-accent, #ea580c) 25%, var(--border-color));
  background: color-mix(in srgb, var(--primary-accent, #ea580c) 6%, var(--surface));
}

.mentee-market-access .mgt-banner-icon {
  flex-shrink: 0;
  font-size: 0.65rem;
  line-height: 1.6;
  color: var(--primary-accent, #ea580c);
}

.mentee-market-access .mgt-banner-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-main);
}

.mentee-market-access .mah-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.mentee-market-access .mah-stats .mgt-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-text);
  white-space: nowrap;
}

.mentee-market-access .mah-nav {
  margin-bottom: 1rem;
}

.mentee-market-access .mah-nav-segment {
  display: flex;
  flex-wrap: wrap;
  padding: 0.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--brand-tint-4) 50%, var(--surface));
  gap: 0.15rem;
}

.mentee-market-access .mah-nav-seg {
  border: none;
  background: transparent;
  padding: 0.4rem 0.7rem;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-text);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  white-space: nowrap;
}

.mentee-market-access .mah-nav-seg:hover {
  color: var(--primary-dark);
}

.mentee-market-access .mah-nav-seg.active {
  background: var(--surface);
  color: var(--primary-accent, #ea580c);
  box-shadow: var(--shadow-sm);
}

.mentee-market-access .mah-tab-panel {
  padding-top: 0.15rem;
}

.mentee-market-access .mah-tab-panel.hidden {
  display: none;
}

.mentee-market-access .mah-panel-head {
  margin-bottom: 0.85rem;
}

.mentee-market-access .mah-panel-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.mentee-market-access .mah-panel-meta {
  margin: 0;
}

.mentee-market-access .mah-filter {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface);
}

.mentee-market-access .mah-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-4, 1rem);
  align-items: start;
}

.mentee-market-access .mah-filter-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mentee-market-access .mah-filter-grid .input-field {
  width: 100%;
}

.mentee-market-access .mah-req-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mentee-market-access .mah-req-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.mentee-market-access .mah-req-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.mentee-market-access .mah-req-card-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.mentee-market-access .mah-req-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.mentee-market-access .mgt-due-pill {
  font-size: 0.72rem;
  color: var(--muted-text);
}

.mentee-market-access .mah-req-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mentee-market-access .mah-req-item {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--border-color) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, var(--brand-tint-4) 8%);
}

.mentee-market-access .mah-req-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
}

.mentee-market-access .mah-req-item .status-badge {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.mentee-market-access .mah-req-item-desc {
  margin: 0.35rem 0 0;
}

.mentee-market-access .mah-interest-form {
  margin: 0;
}

.mentee-market-access .mah-interest-hint {
  margin: 0 0 0.65rem;
  font-weight: 500;
}

.mentee-market-access .mah-interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mentee-market-access .mah-interest-chip {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.mentee-market-access .mah-interest-chip-text {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.mentee-market-access .mah-interest-chip:hover .mah-interest-chip-text {
  border-color: color-mix(in srgb, var(--primary-accent) 50%, var(--border-color));
  color: var(--primary-dark);
}

.mentee-market-access .mah-interest-input:checked + .mah-interest-chip-text {
  border-color: var(--primary-accent, #ea580c);
  background: color-mix(in srgb, var(--primary-accent, #ea580c) 12%, var(--surface));
  color: var(--primary-dark);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-accent, #ea580c) 25%, transparent);
}

.mentee-market-access .mah-interest-input:focus-visible + .mah-interest-chip-text {
  outline: 2px solid var(--primary-accent, #ea580c);
  outline-offset: 2px;
}

.mentee-market-access .mah-interest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-color);
}

/* B-BBEE hub — document checklist */
.mentee-bee-hub .bee-shell {
  padding: 1rem 1.15rem 1.25rem;
}

.mentee-bee-hub .bee-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.mentee-bee-hub .bee-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.mentee-bee-hub .bee-lead {
  margin: 0;
  max-width: 40rem;
}

.mentee-bee-hub .bee-doc-summary {
  min-width: min(100%, 12rem);
  flex: 0 1 14rem;
}

.mentee-bee-hub .bee-doc-summary-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text-main);
}

.mentee-bee-hub .bee-doc-progress-track {
  height: 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-color) 70%, var(--surface));
  overflow: hidden;
}

.mentee-bee-hub .bee-doc-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-brand, #c2410c), var(--primary-accent, #ea580c));
  min-width: 2%;
  transition: width 0.3s ease;
}

.mentee-bee-hub .bee-status-grid {
  gap: 0.85rem;
}

.mentee-bee-hub .bee-doc-checklist {
  margin-top: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.mentee-bee-hub .bee-doc-checklist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.mentee-bee-hub .bee-doc-checklist-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.mentee-bee-hub .bee-doc-checklist-lead {
  margin: 0;
  max-width: 36rem;
}

.mentee-bee-hub .bee-doc-upload-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.mentee-bee-hub .bee-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mentee-bee-hub .bee-doc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "status main action";
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--surface) 94%, var(--brand-tint-4) 6%);
}

.mentee-bee-hub .bee-doc-row--done {
  border-color: color-mix(in srgb, var(--success, #16a34a) 35%, var(--border-color));
  background: color-mix(in srgb, var(--surface) 90%, var(--success, #16a34a) 5%);
}

.mentee-bee-hub .bee-doc-row--required-missing {
  border-color: color-mix(in srgb, var(--error, #dc2626) 40%, var(--border-color));
}

.mentee-bee-hub .bee-doc-row--disabled {
  opacity: 0.6;
  border-style: dashed;
}

.mentee-bee-hub .bee-doc-row-status {
  grid-area: status;
}

.mentee-bee-hub .bee-doc-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.mentee-bee-hub .bee-doc-status-icon--done {
  background: var(--success, #16a34a);
  color: #fff;
}

.mentee-bee-hub .bee-doc-status-icon--pending {
  border: 2px solid var(--border-color);
  background: var(--surface);
}

.mentee-bee-hub .bee-doc-row--required-missing .bee-doc-status-icon--pending {
  border-color: var(--error, #dc2626);
}

.mentee-bee-hub .bee-doc-row-main {
  grid-area: main;
  min-width: 0;
}

.mentee-bee-hub .bee-doc-row-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mentee-bee-hub .bee-doc-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.25rem;
}

.mentee-bee-hub .bee-doc-row-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-accent, #ea580c);
}

.mentee-bee-hub .bee-doc-row-link:hover {
  text-decoration: underline;
}

.mentee-bee-hub .bee-doc-row-action {
  grid-area: action;
  flex-shrink: 0;
}

.mentee-bee-hub .bee-doc-row-action .btn {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .mentee-bee-hub .bee-doc-checklist-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mentee-bee-hub .bee-doc-upload-all {
    width: 100%;
    justify-content: center;
  }

  .mentee-bee-hub .bee-doc-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "status main"
      "action action";
    align-items: start;
  }

  .mentee-bee-hub .bee-doc-row-action {
    width: 100%;
    padding-top: 0.15rem;
  }

  .mentee-bee-hub .bee-doc-row-action .btn {
    width: 100%;
    justify-content: center;
  }

  .mentee-bee-hub .bee-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mentee-market-access .mah-filter-grid {
    grid-template-columns: 1fr;
  }

  .mentee-market-access .mah-nav-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mentee-market-access .mah-nav-seg {
    text-align: center;
    white-space: normal;
    font-size: 0.72rem;
    padding: 0.45rem 0.4rem;
  }
}

.mentor-portal-page #mentor-sessions-lists .mentor-sessions-table th:nth-child(1),
.mentor-portal-page #mentor-sessions-lists .mentor-sessions-table td:nth-child(1) {
  width: 14%;
}

.mentor-portal-page #mentor-sessions-lists .mentor-sessions-table th:nth-child(2),
.mentor-portal-page #mentor-sessions-lists .mentor-sessions-table td:nth-child(2) {
  width: 16%;
}

.mentor-portal-page #mentor-sessions-lists .mentor-sessions-table .session-col-topic {
  width: 28%;
  min-width: 8rem;
}

.mentor-portal-page #mentor-sessions-lists .mentor-deliverables-table .mentor-deliverables-col-task {
  width: 32%;
  min-width: 9rem;
}

.mentor-portal-page #mentor-sessions-lists .mentor-deliverables-table .mentor-deliverables-col-session {
  width: 22%;
  min-width: 7rem;
}

.mentor-portal-page #view-impact .mp-table-shell > table th:nth-child(1),
.mentor-portal-page #view-impact .mp-table-shell > table td:nth-child(1) {
  width: 22%;
}

.mentor-portal-page #view-impact .mp-table-shell > table th:nth-child(2),
.mentor-portal-page #view-impact .mp-table-shell > table td:nth-child(2) {
  width: 24%;
}

.mentor-portal-page #view-reporting .mp-table-shell > table th:first-child,
.mentor-portal-page #view-reporting .mp-table-shell > table td:first-child {
  width: 28%;
}

@media (max-width: 768px) {
  .mentor-portal-page .mp-table-shell > :is(.table, table) {
    min-width: 32rem;
  }

  .mentor-dashboard-mentees-table th:nth-child(4),
  .mentor-dashboard-mentees-table td:nth-child(4) {
    max-width: 9rem;
  }
}

@media (max-width: 920px) {
  .mentor-portal-page .main-content {
    padding: var(--space-4) var(--space-4) var(--space-5);
  }

  .mentor-portal-page .page-header.page-shell {
    padding: var(--space-4);
  }

  .mentor-portal-page .mentor-view .mp-panel {
    padding: var(--space-4);
  }
}

/* Mentor — Reporting: blended single panel */
.mentor-portal-page #view-reporting .mentor-reporting-panel {
  overflow: visible;
}

.mentor-portal-page #view-reporting .mentor-reporting-head {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.mentor-portal-page #view-reporting .mentor-reporting-head-text {
  min-width: 0;
}

.mentor-portal-page #view-reporting .mentor-reporting-actions {
  flex-shrink: 0;
}

.mentor-portal-page #view-reporting .mentor-reporting-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: stretch;
}

/* Equal card footprint; engagement % + badge on one row when space allows */
.mentor-portal-page #view-reporting .mentor-reporting-stats-strip > .stat-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 7.75rem;
  padding: var(--space-4) var(--space-3);
}

.mentor-portal-page #view-reporting .mentor-reporting-stats-strip > .stat-card > .stat-label {
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.mentor-portal-page #view-reporting .mentor-reporting-stats-strip > .stat-card > .stat-value {
  flex-shrink: 0;
  line-height: 1.25;
}

.mentor-portal-page #view-reporting .mentor-reporting-engagement-value {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: 100%;
}

.mentor-portal-page #view-reporting .mentor-reporting-engagement-pct {
  white-space: nowrap;
}

.mentor-portal-page #view-reporting .mentor-reporting-engagement-badge.status-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  line-height: 1.2;
}

@media (max-width: 520px) {
  .mentor-portal-page #view-reporting .mentor-reporting-engagement-value {
    flex-wrap: wrap;
  }
}

.mentor-portal-page #view-reporting .mentor-reporting-stats-strip .stat-card--accent {
  background: linear-gradient(145deg, var(--brand-tint-8) 0%, var(--surface) 72%);
  border: 1px solid var(--border-color);
}

.mentor-portal-page #view-reporting .mentor-reporting-empty-hint {
  margin-bottom: var(--space-5);
}

.mentor-portal-page #view-reporting .mentor-reporting-subtitle {
  margin-bottom: var(--space-2);
}

.mentor-portal-page #view-reporting .mentor-reporting-subtext {
  margin: 0 0 var(--space-4);
}

.mentor-portal-page #view-reporting .mentor-reporting-section-divider {
  height: 1px;
  margin: var(--space-6) 0 var(--space-5);
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--border-color) 85%, transparent),
    transparent
  );
}

/* Mentor — My mentees: expanded mentee detail cards (scoped to #view-mentees) */
.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-grid > div > .mp-panel {
  margin-bottom: var(--space-6);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-grid > div > .mp-panel:last-child {
  margin-bottom: 0;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-panel {
  background: linear-gradient(165deg, var(--brand-tint-3) 0%, var(--surface) 55%);
  border: 1px solid var(--border-color);
  box-shadow:
    0 1px 2px rgba(15, 31, 35, 0.04),
    0 10px 28px rgba(15, 31, 35, 0.05);
  padding: var(--space-5) var(--space-5);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-panel:hover {
  box-shadow: var(--shadow-md);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-panel > h3.mp-section-title {
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-dl-grid {
  gap: var(--space-3);
}

@media (min-width: 420px) {
  .mentor-portal-page #view-mentees .mentee-detail-panel .mp-dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-dl-grid > div:first-child {
  grid-column: 1 / -1;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-dl-grid > div {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 0 rgba(15, 31, 35, 0.04);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-dl-grid dt.label {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-dl-grid dd {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-main);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-list-unstyled.mentee-profile-docs-list {
  gap: 0.35rem;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mentee-profile-docs-panel {
  padding: var(--space-5) var(--space-5);
  margin-bottom: var(--space-6);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mentee-profile-docs-panel .mentee-profile-doc-row {
  padding: 0.5rem 0.65rem;
  margin: 0;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-md);
  background: var(--brand-tint-2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mentee-profile-docs-panel .mentee-profile-doc-row:hover {
  background: var(--surface);
  border-color: var(--border-color);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-list-unstyled:not(.mentee-profile-docs-list) {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-list-row {
  flex-wrap: wrap;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  background: var(--brand-tint-2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-list-row:hover {
  background: var(--brand-tint-4);
  border-color: var(--border-color);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-subsection {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--border-color);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-subsection .label {
  margin-bottom: var(--space-2);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-request-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-main);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-request-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-request-list li:last-child {
  border-bottom: none;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-empty-hint {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin: 0;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  background: var(--brand-tint-2);
  text-align: center;
  line-height: 1.5;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-missing-line {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin: 0 0 0.75rem;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mp-detail-success-hint {
  font-size: 0.9rem;
  color: var(--success);
  margin: 0;
}

.mentor-portal-page #view-mentees .mentee-detail-panel .mentee-reviews-panel {
  background: linear-gradient(180deg, var(--brand-tint-2) 0%, var(--surface) 65%);
}


@media (max-width: 920px) {
  .mentor-portal-page #view-mentees .mentee-detail-panel .mp-panel {
    padding: var(--space-4);
  }

  .mentor-portal-page #view-mentees .mentee-detail-panel .mentee-profile-docs-panel {
    padding: var(--space-4);
  }
}

.admin-view .table th,
.admin-view .table td {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.admin-view .btn.btn-sm {
  white-space: nowrap;
}

.admin-portal-page .mentee-kpi-quick-action {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.admin-portal-page .mentee-kpi-quick-action:hover {
  background: var(--accent-tint-12);
  color: var(--primary-dark);
}

.admin-portal-page #impact-records-table :is(th, td) {
  vertical-align: middle;
}

.admin-portal-page #impact-records-table .impact-value-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-portal-page #impact-records-table .impact-value-num {
  font-variant-numeric: tabular-nums;
}

.admin-portal-page #view-csi .mp-table-shell .table :is(th, td) {
  vertical-align: middle;
}

.admin-portal-page #view-csi .csi-col-nowrap,
.admin-portal-page #view-csi .csi-col-money,
.admin-portal-page #view-csi .csi-col-numeric,
.admin-portal-page #view-csi .csi-col-status,
.admin-portal-page #view-csi .csi-col-actions {
  white-space: nowrap;
}

.admin-portal-page #view-csi .csi-col-wrap {
  white-space: normal;
  max-width: 11rem;
  min-width: 7rem;
}

.admin-portal-page #view-csi .csi-cell-ellipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

.admin-portal-page #view-csi .csi-money {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-portal-page #view-csi .csi-col-actions {
  width: 1%;
}

.admin-portal-page #view-csi .csi-col-status :is(.status-badge) {
  white-space: nowrap;
}

.admin-portal-page #view-csi .csi-cell-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.admin-portal-page #view-csi .csi-inline-actions {
  flex-wrap: wrap;
}

.admin-portal-page #view-csi .csi-col-evidence {
  white-space: normal;
  min-width: 10rem;
  max-width: 16rem;
}

.admin-portal-page #view-csi .csi-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.admin-portal-page #view-csi .csi-evidence-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border-color);
}

.admin-portal-page #view-csi .csi-evidence-row:first-child {
  border-top: none;
  padding-top: 0;
}

.admin-portal-page #view-csi .csi-evidence-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
}

.admin-portal-page #view-csi .csi-evidence-filename {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.admin-portal-page #view-csi .csi-evidence-actions {
  flex-wrap: wrap;
}

.admin-portal-page #view-csi .csi-row-actions {
  flex-wrap: wrap;
}

.admin-portal-page #view-csi #csi-invoices-table {
  min-width: 52rem;
}

.admin-preview-body .admin-csi-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-preview-body .admin-csi-evidence-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.admin-preview-body .admin-csi-evidence-item:first-child {
  border-top: none;
  padding-top: 0;
}

.admin-preview-body .admin-csi-evidence-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
}

.admin-portal-page #view-csi #csi-invoices-table :is(th, td):nth-child(6),
.admin-portal-page #view-csi #csi-invoices-table :is(th, td):nth-child(7),
.admin-portal-page #view-csi #csi-invoices-table :is(th, td):nth-child(8) {
  text-align: right;
}

.admin-portal-page #csi-running-remaining-before,
.admin-portal-page #csi-running-remaining-after {
  word-break: break-word;
  line-height: 1.25;
}

.admin-portal-page #allocate-csi-budget-modal .csi-allocation-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-portal-page .esd-total-allocated-card {
  position: relative;
}

.admin-portal-page .esd-hover-breakdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: min(360px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-portal-page .esd-total-allocated-card:hover .esd-hover-breakdown,
.admin-portal-page .esd-total-allocated-card:focus-within .esd-hover-breakdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-portal-page .esd-hover-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
  .admin-view .table-scroll .table,
  .admin-view .mp-table-shell .table {
    min-width: max-content;
  }

  .admin-view .mp-table-shell .table th,
  .admin-view .mp-table-shell .table td {
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
  }
}

/* Gap analysis — template edit cards */
.gap-template-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

.gap-template-card .grid-two {
  margin-bottom: 0;
}

#view-gap-analysis .gap-analysis-mentee-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

#view-gap-analysis .gap-add-question-card {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 105, 120, 0.2);
  background: linear-gradient(145deg, rgba(0, 105, 120, 0.08) 0%, var(--surface) 55%);
  box-shadow: 0 2px 12px rgba(0, 105, 120, 0.07);
}

#view-gap-analysis .gap-add-question-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
}

#view-gap-analysis .gap-add-question-lead {
  margin: 0 0 1rem 0;
}

#view-gap-analysis .gap-add-question-form .gap-add-question-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

#view-gap-analysis .gap-add-question-form .gap-add-question-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

#view-gap-analysis .gap-template-list-heading {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

#view-gap-analysis .gap-template-empty {
  margin: 0;
  padding: 0.5rem 0 0.25rem;
}

#view-gap-analysis .gap-template-card--numbered {
  padding-top: 0.85rem;
}

#view-gap-analysis .gap-template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

#view-gap-analysis .gap-template-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-accent);
}

#view-gap-analysis .gap-template-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

#view-gap-analysis .gap-template-card-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-view .gap-mentee-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border-color);
}

.admin-view .gap-mentee-picker-wrap,
.mentor-view .gap-mentee-picker-wrap {
  max-height: 255px;
  overflow: auto;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
}

.mentor-view .mentor-gap-target-wrap.gap-mentee-picker-wrap {
  max-height: none;
  padding: 0;
  border: none;
  background: transparent;
}

/* Mentor gap analysis — compact mentee completion table */
#view-gap-analysis .mentor-gap-section-title {
  margin: 0.75rem 0 0.5rem;
}

#view-gap-analysis .mentor-gap-table-shell {
  max-height: min(52vh, 420px);
  overflow: auto;
}

#view-gap-analysis .mentor-gap-mentees-table {
  margin-top: 0;
  table-layout: fixed;
  min-width: 22rem;
}

#view-gap-analysis .mentor-gap-mentees-table thead th {
  padding: 0.5rem 0.65rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

#view-gap-analysis .mentor-gap-mentees-table tbody td {
  padding: 0.45rem 0.65rem;
  vertical-align: middle;
}

#view-gap-analysis .mentor-gap-mentees-table tbody tr:nth-child(even) {
  background: var(--brand-tint-4, rgba(15, 61, 62, 0.03));
}

#view-gap-analysis .mentor-gap-mentees-table .mentor-gap-td-mentee {
  width: 28%;
  min-width: 7rem;
}

#view-gap-analysis .mentor-gap-mentees-table .mentor-gap-td-completion {
  width: auto;
}

#view-gap-analysis .mentor-gap-mentees-table .mentor-gap-th-actions,
#view-gap-analysis .mentor-gap-mentees-table .mentor-gap-td-actions {
  width: 11rem;
  text-align: right;
  white-space: nowrap;
}

#view-gap-analysis .mentor-gap-completion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

#view-gap-analysis .mentor-gap-status-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  line-height: 1.25;
  white-space: nowrap;
}

#view-gap-analysis .mentor-gap-progress-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

#view-gap-analysis .mentor-gap-progress-track {
  flex: 1 1 4rem;
  min-width: 3rem;
  max-width: 10rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--border-color);
  overflow: hidden;
}

#view-gap-analysis .mentor-gap-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-accent);
  min-width: 0;
  transition: width 0.2s ease;
}

#view-gap-analysis .mentor-gap-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

#view-gap-analysis .mentor-gap-actions .btn {
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

#view-gap-analysis .mentor-gap-mentee-row.mentor-mentee-row-selected {
  background: var(--brand-tint-6, rgba(0, 105, 120, 0.1)) !important;
  box-shadow: inset 3px 0 0 var(--primary-accent);
}

#view-gap-analysis .mentor-gap-footnote {
  margin: 0.65rem 0 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  #view-gap-analysis .mentor-gap-mentees-table .mentor-gap-th-actions,
  #view-gap-analysis .mentor-gap-mentees-table .mentor-gap-td-actions {
    width: 8.5rem;
  }

  #view-gap-analysis .mentor-gap-progress-track {
    flex-basis: 100%;
    max-width: none;
  }
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-stat-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 900px) {
  :is(.mentor-view, .mentee-view, .admin-view) .mp-stat-strip {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-stat-card {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: var(--brand-tint-4);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-stat-card-cta {
  padding: var(--space-6);
  background: var(--dash-hero-bg);
  color: var(--surface);
  border-radius: var(--radius-xl);
  border: none;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-3);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 11.25rem;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-search-icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
  pointer-events: none;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-search-input {
  padding: 0.4rem 0.6rem 0.4rem 2rem;
  font-size: 0.8rem;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-detail-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
  min-width: 0;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-detail-grid > * {
  min-width: 0;
}

@media (min-width: 768px) {
  :is(.mentor-view, .mentee-view, .admin-view) .mp-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-section-title {
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
  font-weight: 700;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-dl-grid {
  display: grid;
  gap: var(--space-3);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-dl-grid dt {
  margin-bottom: 0.25rem;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-dl-grid dd {
  margin: 0;
  font-size: 0.95rem;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-list-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-list-item:last-child {
  border-bottom: none;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-list-row {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-list-row:last-child {
  border-bottom: none;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-bullet-progress {
  background: var(--brand-gold);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-bullet-done {
  background: var(--success, #22c55e);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-form-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-select-auto {
  width: auto;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-tag-row {
  display: flex;
  gap: 0.4rem;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-cell-primary {
  font-weight: 600;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-cell-muted {
  font-size: 0.8rem;
  color: var(--muted-text);
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-panel :is(p, span, dd, dt, a, button, .text-sm, .mp-cell-primary, .mp-cell-muted) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

:is(.mentor-view, .mentee-view, .admin-view) .mp-table-shell,
.responsive-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

:is(.mentor-view, .mentee-view, .admin-view) :is(.mp-toolbar, .mp-tag-row, .mc-cal-chips) {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
}

:is(.mentor-view, .mentee-view, .admin-view) :is(.mp-toolbar, .mp-tag-row, .mc-cal-chips) > * {
  flex-shrink: 0;
}

@media (max-width: 920px) {
  :is(.mentor-view, .mentee-view, .admin-view) .mp-panel {
    padding: var(--space-4);
  }
}

/* Mentee portal — extra polish (mentor-aligned rhythm, dashboard + alerts + cards) */
.mentee-dash-page-intro {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, var(--surface) 0%, var(--brand-tint-4) 45%, var(--brand-tint-3) 100%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.mentee-dash-page-intro::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 42%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.mentee-dash-page-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-brand);
  margin-bottom: 0.35rem;
}

.mentee-dash-page-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

.mentee-dash-page-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted-text);
  max-width: 38rem;
}

/* --- Business toolkits (mentee standalone) --- */
.toolkits-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.toolkits-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.toolkits-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: var(--space-5);
}
.toolkits-panel-heading-text {
  flex: 1;
  min-width: 0;
}
.toolkits-panel-action {
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
}
.toolkits-panel-heading .mp-section-title {
  margin: 0 0 0.35rem;
}
.toolkits-panel-desc {
  margin: 0;
  max-width: 36rem;
}
.toolkits-panel-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.toolkits-panel-title-row .mp-section-title {
  margin-bottom: 0;
}
.toolkits-panel-cta {
  flex-shrink: 0;
}
.toolkits-panel-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--brand-tint-3);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.toolkits-panel-icon svg {
  display: block;
}
.toolkits-panel-icon-muted {
  background: var(--brand-tint-2);
  color: var(--muted-text);
}
.toolkits-invoice-summary {
  margin: -0.5rem 0 var(--space-4);
}
.toolkits-table-wrap {
  margin-top: 0;
}
.toolkits-invoice-number {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.toolkits-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.toolkits-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.toolkits-empty-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}
.toolkits-empty-lead {
  margin: 0;
  max-width: 22rem;
  line-height: 1.5;
}
.toolkits-empty-muted .toolkits-empty-title {
  font-weight: 600;
}
.toolkits-template-grid {
  margin-top: 0;
}
.toolkits-template-card.mrs-mentee-card.mentee-dash-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none;
}
.toolkits-template-card-head {
  margin-bottom: 0;
}
.toolkits-soon-panel {
  background: linear-gradient(145deg, var(--brand-tint-2) 0%, var(--surface) 55%);
  border-style: dashed;
  box-shadow: none;
}
.toolkits-soon-panel:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}
.toolkits-panel-heading-soon {
  margin-bottom: 0;
}
.toolkits-soon-badges {
  margin-bottom: 0.35rem;
}
.toolkits-soon-badge {
  opacity: 0.95;
}

.toolkits-pitch-modal-content {
  max-width: min(92vw, 560px);
}
.toolkits-pitch-modal-body {
  display: grid;
  gap: 0.85rem;
}
.toolkits-pitch-detail {
  max-width: 52rem;
}
.toolkits-pitch-slides {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.toolkits-pitch-slide-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.toolkits-pitch-slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.toolkits-pitch-slide-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.toolkits-pitch-slide-item {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}
.toolkits-pitch-slide-body {
  margin: 0;
  line-height: 1.55;
  color: var(--text-main);
  white-space: pre-wrap;
}
.toolkits-pitch-slide-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.toolkits-pitch-slide-figure {
  margin: 0;
}
.toolkits-pitch-slide-img {
  max-width: 100%;
  width: auto;
  max-height: 12rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  object-fit: cover;
}
.toolkits-pitch-slide-form-panel .input-group + .input-group {
  margin-top: 0.75rem;
}
.toolkits-pitch-delete-form {
  display: inline;
  margin: 0;
}

.toolkits-invoice-modal-content {
  max-width: min(92vw, 880px);
}

.toolkits-invoice-modal-body {
  display: grid;
  gap: 0.85rem;
  overflow-y: auto;
}

.toolkits-invoice-fields-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.toolkits-invoice-fields-row--2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.toolkits-invoice-lines-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.toolkits-invoice-lines-header .mp-section-title {
  margin: 0;
}

.toolkits-invoice-lines-table-wrap {
  overflow-x: auto;
}

.toolkits-invoice-col-qty {
  width: 100px;
}

.toolkits-invoice-col-price {
  width: 120px;
}

.toolkits-invoice-col-total {
  width: 120px;
}

.toolkits-invoice-col-action {
  width: 56px;
}

.toolkits-invoice-grand-total {
  margin: 0.75rem 0 0;
  text-align: right;
}

/* --- Milestones & tasks tracker (mentee goal tracking) --- */
.milestones-tracker {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.milestone-section-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.milestone-goals-section {
  margin: 0;
}

.milestone-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.milestone-goal-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.milestone-goal-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
}

.milestone-goal-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.3;
}

.milestone-goal-period {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}

.milestone-goal-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
}

.milestone-goal-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--brand-tint-4, rgba(0, 0, 0, 0.06));
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.milestone-goal-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--primary-brand, #c2410c) 0%,
    var(--primary-accent, #ea580c) 100%
  );
  min-width: 4%;
  transition: width 0.35s ease;
}

.milestone-goal-progress-meta {
  margin: 0;
}

.milestone-empty-state {
  margin: 0;
}

.milestone-block-head {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.milestone-block-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.25;
}

.milestone-block-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.milestone-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--brand-tint-4, var(--surface));
}

.milestone-meta-pill--date {
  border-color: color-mix(in srgb, var(--primary-accent) 35%, var(--border-color));
}

.milestone-meta-label {
  font-weight: 600;
  color: var(--muted-text);
}

.milestone-block-goal {
  margin: 0.35rem 0 0;
}

.milestone-block-desc {
  margin: 0.65rem 0 0;
}

.milestone-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.milestone-task {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--surface) 92%, var(--brand-tint-4) 8%);
  overflow: hidden;
}

.milestone-task-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.milestone-task-summary::-webkit-details-marker {
  display: none;
}

.milestone-task-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.milestone-task-chevron {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid var(--muted-text);
  border-bottom: 2px solid var(--muted-text);
  transform: rotate(-45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-top: -0.15em;
}

.milestone-task[open] .milestone-task-chevron {
  transform: rotate(45deg);
  margin-top: 0.1em;
}

.milestone-task-name {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.milestone-task-badge {
  flex-shrink: 0;
}

.milestone-task-body {
  padding: 0 1rem 1.1rem;
  border-top: 1px dashed color-mix(in srgb, var(--border-color) 80%, transparent);
}

.milestone-task-desc {
  margin: 0 0 1rem;
}

.milestone-task-section {
  margin-bottom: 1rem;
}

.milestone-task-section:last-child {
  margin-bottom: 0;
}

.milestone-task-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
  margin-bottom: 0.45rem;
}

.milestone-task-status-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.milestone-task-status-label {
  margin: 0;
}

.milestone-task-status-select {
  min-width: 11rem;
}

.milestone-task-hint {
  margin: 0;
}

.milestone-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.milestone-checklist-row {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.milestone-checklist-row--done {
  border-color: color-mix(in srgb, var(--success, #16a34a) 40%, var(--border-color));
  background: color-mix(in srgb, var(--surface) 88%, var(--success, #16a34a) 6%);
}

.milestone-checklist-form {
  margin: 0;
}

.milestone-checklist-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  font-size: 0.88rem;
}

.milestone-checklist-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary-accent, #ea580c);
}

.milestone-checklist-text {
  line-height: 1.4;
}

.milestone-evidence-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.milestone-evidence-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--surface);
}

.milestone-evidence-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

/* Goal tracking hub — mentor + mentee (workspace + timeline layout) */
:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-shell {
  padding: 1rem 1.15rem 1.25rem;
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--brand-tint-4) 35%, var(--surface)) 100%);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--primary-accent) 25%, var(--border-color));
  background: color-mix(in srgb, var(--primary-accent) 8%, var(--surface));
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-banner-icon {
  flex-shrink: 0;
  font-size: 0.55rem;
  line-height: 1.6;
  color: var(--primary-accent);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-banner-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted-text);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-mentee {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-mentee:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-mentee-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-mentee-identity {
  flex: 1 1 10rem;
  min-width: 0;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-mentee-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  line-height: 1.25;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-mentee-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--brand-tint-6, rgba(0, 105, 120, 0.08));
  border: 1px solid var(--border-color);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-create {
  margin-bottom: 0.85rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-create-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-create-segment {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--brand-tint-4, rgba(15, 61, 62, 0.04));
  gap: 0.15rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-create-seg {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-text);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-create-seg:hover {
  color: var(--primary-dark);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-create-seg--active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-create-panel {
  margin-top: 0.55rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-create-panel.hidden {
  display: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form.hidden {
  display: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-heading {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-field-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-text);
  line-height: 1.2;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-more {
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.55rem;
  background: color-mix(in srgb, var(--brand-tint-4) 50%, var(--surface));
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-more summary {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-accent);
  cursor: pointer;
  list-style: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-more summary::-webkit-details-marker {
  display: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-more .mgt-field {
  margin-top: 0.45rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-color);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-drawer--inline {
  margin-top: 0.65rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-drawer--inline .mgt-form {
  margin-top: 0.35rem;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--brand-tint-4) 30%, var(--surface));
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-inline-add {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-accent);
  cursor: pointer;
  list-style: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-inline-add::-webkit-details-marker {
  display: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 0.85rem;
  align-items: start;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0.75rem 0.85rem;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-panel-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-panel-meta {
  font-size: 0.72rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-panel-empty {
  margin: 0;
  padding: 0.5rem 0;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goals-track {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: min(42vh, 380px);
  overflow-y: auto;
  padding-right: 0.15rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goal-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  background: color-mix(in srgb, var(--brand-tint-4) 40%, var(--surface));
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goal-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.35rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goal-period {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goal-metric-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  margin-bottom: 0.35rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goal-progress {
  margin-bottom: 0.2rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goal-progress-label {
  margin: 0 0 0.35rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goal-actual {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-color);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding-right: 0.15rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-card {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0 0.65rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-rail {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-node {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--surface);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-node--approved {
  border-color: var(--primary-accent);
  background: var(--primary-accent);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-node--pending_approval {
  border-color: var(--dash-urgency-text, #b45309);
  background: var(--gold-tint-15, #fef3c7);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-node--rejected {
  border-color: #b91c1c;
  background: #fecaca;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-node--draft {
  border-color: var(--muted-text);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-body {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  background: var(--surface);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-head-main {
  flex: 1 1 12rem;
  min-width: 0;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-title {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-status-badge {
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-due-pill {
  font-size: 0.72rem;
  color: var(--muted-text);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-submit-form {
  flex-shrink: 0;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-milestone-desc {
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-rejection {
  margin: 0 0 0.5rem;
  color: var(--error, #b91c1c);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-task {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--brand-tint-4) 25%, var(--surface));
  overflow: hidden;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-task-summary {
  padding: 0.45rem 0.6rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-task-body {
  padding: 0 0.6rem 0.6rem;
}

@media (max-width: 960px) {
  :is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-workspace {
    grid-template-columns: 1fr;
  }

  :is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-goals-track,
  :is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-timeline {
    max-height: none;
  }
}

@media (max-width: 640px) {
  :is(.mentor-goal-tracking, .mentee-goal-tracking) .mgt-form-row-2 {
    grid-template-columns: 1fr;
  }
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-goal-actual-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-color);
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-goal-actual-form-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
  white-space: nowrap;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-goal-actual-input {
  width: 100%;
  min-width: 0;
  max-width: 6.5rem;
  justify-self: start;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-goal-actual-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-inline-form .input-field {
  flex: 1 1 12rem;
  min-width: 0;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-checklist--readonly .milestone-checklist-row {
  pointer-events: none;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-checklist-readonly {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-checklist-mark {
  flex-shrink: 0;
  color: var(--primary-brand);
  line-height: 1.4;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-tasks-empty {
  margin: 0.35rem 0 0;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-evidence-row {
  align-items: center;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-evidence-actions {
  flex: 0 1 auto;
  max-width: 100%;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-evidence-verify-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.45rem;
  width: 100%;
  max-width: 16rem;
  margin-left: auto;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-evidence-verify-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-text);
  white-space: nowrap;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-evidence-verify-input {
  width: 100%;
  min-width: 0;
  max-width: 9rem;
}

:is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-evidence-verify-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  :is(.mentor-goal-tracking, .mentee-goal-tracking) .milestone-evidence-verify-form {
    max-width: 100%;
    margin-left: 0;
  }
}

.mentee-goal-tracking .mgt-mentee-header--solo {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.mentee-goal-tracking .mentee-evidence-upload {
  margin-top: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px dashed color-mix(in srgb, var(--primary-accent) 45%, var(--border-color));
  background: color-mix(in srgb, var(--surface) 94%, var(--brand-tint-4) 6%);
  padding: 0.85rem 1rem;
}

.mentee-goal-tracking .mentee-evidence-upload-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.mentee-goal-tracking .mentee-evidence-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}

.mentee-goal-tracking .mentee-evidence-upload-form {
  margin: 0;
}

@media (max-width: 560px) {
  .mentee-goal-tracking .mentee-evidence-upload-grid {
    grid-template-columns: 1fr;
  }
}

.milestone-evidence-link {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}

.milestone-evidence-verified {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.milestone-evidence-actions {
  flex-shrink: 0;
}

.milestone-evidence-delete-form {
  margin: 0;
}

.milestone-evidence-empty {
  margin: 0 0 0.85rem;
}

.milestone-upload-card {
  border-radius: var(--radius-lg);
  border: 1px dashed color-mix(in srgb, var(--primary-accent) 45%, var(--border-color));
  background: color-mix(in srgb, var(--surface) 94%, var(--brand-tint-4) 6%);
  padding: 0.9rem 1rem 1rem;
}

.milestone-upload-title {
  margin: 0 0 0.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.milestone-upload-hint {
  margin: 0 0 0.75rem;
}

.milestone-upload-form.stack-form {
  margin: 0;
}

.milestone-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.milestone-upload-file-label .input-field[type="file"] {
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.milestone-upload-submit {
  width: fit-content;
}

.milestone-tasks-empty {
  margin: 0;
  padding: 0.75rem 0;
}

@media (max-width: 560px) {
  .milestone-task-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .milestone-task-badge {
    align-self: flex-start;
  }

  .milestone-upload-grid {
    grid-template-columns: 1fr;
  }
}

.mentee-mp-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--surface) 0%, var(--brand-tint-4) 100%);
  box-shadow: 0 6px 28px rgba(217, 119, 6, 0.12);
}

.mentee-mp-alert-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 0.2rem;
}

.mentee-mp-alert-meta {
  font-size: 0.85rem;
  color: var(--muted-text);
}

:is(.mentee-view, .admin-view) .mp-panel {
  transition: box-shadow var(--duration-standard, 0.2s) var(--easing-standard, ease),
    transform var(--duration-standard, 0.2s) var(--easing-standard, ease);
}

:is(.mentee-view, .admin-view) .mp-panel:hover {
  box-shadow: var(--shadow-md);
}

.mentee-stepper-wrap {
  margin-bottom: 2rem;
  padding: 1.25rem 1rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-color);
}

.mentee-stepper-wrap .stepper {
  margin-bottom: 0;
}

.mentee-appt-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Mentee appointments — action items table + mobile cards */
#mentee-appointments-action-items {
  margin-top: 1.5rem;
}

.mentee-action-items-hint {
  margin: -0.35rem 0 1rem;
}

#mentee-appointments-action-items .mentee-action-items-table {
  width: 100%;
  min-width: 36rem;
  table-layout: fixed;
}

#mentee-appointments-action-items .mentee-action-item-open {
  cursor: pointer;
}

#mentee-appointments-action-items .mentee-action-items-table tbody tr.mentee-action-item-open {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

#mentee-appointments-action-items .mentee-action-items-table tbody tr.mentee-action-item-open:hover,
#mentee-appointments-action-items .mentee-action-items-table tbody tr.mentee-action-item-open:focus-visible {
  background: var(--brand-tint-4);
}

#mentee-appointments-action-items .mentee-action-items-col-task {
  width: 34%;
  min-width: 9rem;
}

#mentee-appointments-action-items .mentee-action-items-col-session {
  width: 32%;
}

#mentee-appointments-action-items .mentee-action-items-col-due,
#mentee-appointments-action-items .mentee-action-items-col-owner {
  width: 14%;
  white-space: nowrap;
}

#mentee-appointments-action-items .mentee-action-items-col-session .mp-cell-muted {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mentee-appointments-action-items .mentee-action-items-col-owner .status-badge {
  white-space: nowrap;
}

.mentee-action-items-cards {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 0.75rem;
}

.mentee-action-item-card {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mentee-action-item-card.mentee-action-item-open {
  cursor: pointer;
}

.mentee-action-item-card.mentee-action-item-open:hover,
.mentee-action-item-card.mentee-action-item-open:focus-visible {
  border-color: var(--primary-accent);
  background: var(--brand-tint-4);
  box-shadow: var(--shadow-md);
}

.mentee-action-item-card-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.mentee-action-item-card.mentee-action-item-open:hover .mentee-action-item-card-chevron,
.mentee-action-item-card.mentee-action-item-open:focus-visible .mentee-action-item-card-chevron {
  opacity: 1;
  color: var(--primary-brand);
  transform: translateX(2px);
}

.mentee-action-item-card-body {
  flex: 1;
  min-width: 0;
}

.mentee-action-item-card-task {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.mentee-action-item-card-session {
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.mentee-action-item-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

@media (max-width: 768px) {
  #mentee-appointments-action-items .mentee-action-items-table-wrap {
    display: none;
  }

  #mentee-appointments-action-items .mentee-action-items-cards {
    display: flex;
  }
}

.mentee-view .mentee-session-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.mentee-view .mentee-session-card:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-md);
}

.mentee-view .mentee-session-card-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.mentee-view .mentee-session-card--past {
  align-items: flex-start;
  opacity: 0.96;
}

.mentee-view .mentee-session-card--past .mentee-rating-form {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--brand-tint-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

#past-sessions-list {
  max-height: 48rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.mentee-dash-stat-pill {
  transition: var(--transition);
}

.mentee-dash-stat-pill:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Admin portal — tab rows inside .admin-view (pair with .tab-btn from JS) */
.admin-portal-page .admin-view .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-5);
  align-items: flex-end;
}

.admin-portal-page .admin-view .tabs .tab-btn {
  padding: var(--space-3) var(--space-4);
  border: none;
  background: none;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: var(--muted-text);
  margin-bottom: -1px;
}

.admin-portal-page .admin-view .tabs .tab-btn.active {
  border-bottom-color: var(--primary-accent);
  color: var(--primary-accent);
}

/* Mentor events view — scoped to .mentor-events */
.mentor-events-max {
  max-width: var(--content-max-width-wide);
  margin: 0 auto;
}

.mentor-events .me-intro {
  margin-bottom: var(--space-8);
}

.mentor-events .me-intro-title {
  margin: 0 0 var(--space-2);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

.mentor-events .me-intro-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-text);
  max-width: 36rem;
}

.mentor-events .me-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .mentor-events .me-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .mentor-events .me-events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mentor-events .me-event-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-standard) var(--easing-standard);
}

.mentor-events .me-event-card:hover {
  box-shadow: var(--shadow-lg);
}

.mentor-events .me-event-hero {
  height: 12rem;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.mentor-events .me-event-hero--workshop {
  background: var(--primary-brand);
}

.mentor-events .me-event-hero--webinar {
  background: var(--primary-accent);
}

.mentor-events .me-event-hero--training {
  background: var(--primary-dark);
}

.mentor-events .me-event-hero--networking {
  background: var(--brand-gold);
}

.mentor-events .me-event-hero--other {
  background: var(--primary-brand);
}

.mentor-events .me-event-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.mentor-events .me-event-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mentor-events .me-event-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-brand);
}

.mentor-events .me-event-date-icon {
  flex-shrink: 0;
  display: flex;
}

.mentor-events .me-event-datetime {
  flex: 1;
  min-width: 0;
}

.mentor-events .me-event-title {
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  transition: color var(--duration-standard) var(--easing-standard);
}

.mentor-events .me-event-card:hover .me-event-title {
  color: var(--primary-brand);
}

.mentor-events .me-event-desc {
  margin: 0 0 var(--space-4);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted-text);
  flex: 1;
}

.mentor-events .me-event-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: var(--space-5);
}

.mentor-events .me-event-loc-icon {
  flex-shrink: 0;
  display: flex;
}

.mentor-events .me-event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: auto;
}

.mentor-events .me-rsvp-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.mentor-events .me-inline-form {
  display: inline;
}

.mentor-events .me-action-btn {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mentor-events .me-empty {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-color);
  background: var(--brand-tint-2);
  color: var(--muted-text);
}

.mentor-events .me-empty-grid-span {
  grid-column: 1 / -1;
}

.mentor-events .me-events-footer {
  display: block;
}

.mentor-events .me-footer-stats {
  padding: var(--space-6);
  background: var(--brand-tint-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.mentor-events .me-footer-title {
  margin: 0 0 var(--space-3);
  font-size: 1.1rem;
  font-weight: 700;
  color: inherit;
}

.mentor-events .me-footer-stats .me-footer-title {
  color: var(--text-main);
}

.mentor-events .me-footer-stats-text {
  margin: 0 0 var(--space-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mentor-events .me-footer-stats-text:last-child {
  margin-bottom: 0;
}

/* Branding preset palette buttons */
.branding-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.branding-preset-btn:hover {
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 2px var(--brand-tint-10);
}
.preset-dots {
  display: inline-flex;
  gap: 3px;
}
.preset-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Admin portal — preview modal, collapsibles, filters, mobile, toasts */
.status-open,
.status-draft {
  background: var(--brand-tint-10);
  color: var(--primary-dark);
}
.admin-view-max .mp-panel.admin-collapsible-panel {
  width: 100%;
}
.admin-collapsible-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.admin-collapsible-toggle {
  border: 1px solid var(--border-color);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.admin-filter-loading {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}
#admin-toast-host,
#portal-toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 13000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(420px, 92vw);
}
.admin-toast,
.portal-toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.admin-toast-visible,
.portal-toast-visible {
  opacity: 1;
  transform: translateY(0);
}
.admin-toast-success,
.portal-toast-success {
  border-color: var(--accent-tint-12);
}
.admin-toast-error,
.portal-toast-error {
  border-color: rgba(220, 38, 38, 0.35);
}
.admin-toast-warning,
.portal-toast-warning {
  border-color: rgba(217, 119, 6, 0.4);
}
.admin-toast-info,
.portal-toast-info {
  border-color: var(--border-color);
}

.admin-flash-messages,
.portal-flash-messages {
  position: relative;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
}

.admin-flash-messages.admin-flash-dismissed,
.portal-flash-messages.admin-flash-dismissed {
  opacity: 0;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

.admin-flash-dismiss,
.portal-flash-dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  border: none;
  background: transparent;
  color: var(--muted-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.admin-flash-dismiss:hover,
.portal-flash-dismiss:hover {
  color: var(--text-main);
  background: var(--brand-tint-6);
}
.admin-mobile-layout .admin-mobile-hide-table .mp-table-shell {
  display: none;
}

/* Same element: .mp-table-shell.admin-mobile-hide-table (mentees, employment, …) */
.admin-mobile-layout .mp-table-shell.admin-mobile-hide-table {
  display: none;
}

.admin-mobile-layout .admin-mobile-cards {
  display: block;
}
.admin-mobile-cards {
  display: none;
}
.admin-mobile-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}
.admin-mobile-card-actions {
  margin-top: 0.75rem;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-filter-drawer {
  display: none;
}
.admin-mobile-layout .admin-filter-drawer {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.admin-mobile-layout .admin-filter-drawer.admin-filter-drawer-open {
  max-height: 480px;
}
@media (min-width: 768px) {
  .admin-filter-drawer {
    display: contents;
  }
  .admin-mobile-filter-toggle-wrap {
    display: none;
  }
}
.admin-skeleton-line {
  height: 0.65rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-tint-6), var(--brand-tint-10), var(--brand-tint-6));
  background-size: 200% 100%;
  animation: admin-shimmer 1.1s ease infinite;
}
@keyframes admin-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Mentor / mentee resource sharing --- */
.mrs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-4, 1rem);
}
.mrs-toolbar--actions-only {
  justify-content: flex-end;
  align-items: center;
}
.mrs-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
}
.mrs-lead {
  margin: 0;
  max-width: 42rem;
}
.mrs-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-4, 1rem);
  align-items: start;
}
.mrs-filter-grid--mentee {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.mrs-filter-bar--mentee {
  margin-bottom: var(--space-4, 1rem);
}
.mrs-toolbar--intro {
  align-items: flex-end;
}
.mrs-toolbar--intro .mgt-mentee-stats {
  flex-shrink: 0;
}
.mrs-filter-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mrs-filter-grid > div .input-field {
  width: 100%;
}
@media (max-width: 900px) {
  .mrs-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .mrs-filter-grid {
    grid-template-columns: 1fr;
  }
}
.mrs-actions-cell,
.mrs-th-actions {
  width: 5.5rem;
  text-align: right;
  white-space: nowrap;
}
.mrs-mentor-detail-modal {
  max-width: 560px;
}
.mrs-mentor-modal-body {
  max-height: min(70vh, 520px);
  overflow-y: auto;
}
.mrs-mentor-detail-panel.hidden {
  display: none;
}
.mrs-mentor-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.mrs-mentor-detail-title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.mrs-mentor-detail-desc {
  margin: 0 0 0.75rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.mrs-mentor-detail-meta {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}
.mrs-mentor-detail-meta dd {
  margin: 0.15rem 0 0;
}
.mrs-mentor-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.mrs-mentor-detail-actions .mrs-inline-form {
  display: inline;
}
.mrs-inline-form {
  display: inline;
}
.mrs-reject-hint {
  margin-top: 0.35rem;
  color: var(--error, #b91c1c);
}
.mrs-mentee-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.25rem 0;
}
.mrs-mentee-check {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.mrs-mentee-check input {
  margin-right: 0.35rem;
}
.mrs-mentee-toolbar {
  margin-bottom: 1rem;
  align-items: flex-start;
}
.mrs-mentee-toolbar .mrs-heading {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.mrs-mentee-toolbar .mrs-lead {
  margin: 0;
  max-width: 42rem;
}
.mrs-mentee-table-panel {
  padding: 0;
  overflow: hidden;
}
.mrs-mentee-table td > * {
  display: block;
}
.mrs-mentee-table td > * + * {
  margin-top: 0.25rem;
}
.mrs-mentee-table-title {
  font-weight: 600;
  color: var(--primary-dark);
}
.mrs-mentee-table-desc {
  line-height: 1.35;
}
.mrs-mentee-table-meta {
  display: block;
}
.mrs-mentee-th-actions,
.mrs-mentee-td-actions {
  width: 5.5rem;
  text-align: right;
  white-space: nowrap;
}
.mrs-mentee-detail-modal {
  max-width: 520px;
}
.mrs-mentee-modal-body {
  max-height: min(70vh, 480px);
  overflow-y: auto;
}
.mrs-mentee-detail-panel.hidden {
  display: none;
}
.mrs-mentee-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.mrs-mentee-detail-title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.mrs-mentee-detail-desc {
  margin: 0 0 1rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.mrs-mentee-detail-meta {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}
.mrs-mentee-detail-meta dd {
  margin: 0.15rem 0 0;
}
.mrs-mentee-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mrs-mentor-shared-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mrs-mentor-shared-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-color);
}
.mrs-mentor-shared-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.mrs-mentee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4, 1rem);
}
.mrs-mentee-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.mrs-mentee-card-title {
  font-size: 1.05rem;
  margin: 0;
}
.mrs-admin-pending .mrs-inline-actions,
.mrs-admin-pending .mrs-reject-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
}
.mrs-reject-note {
  min-width: 140px;
  max-width: 220px;
}
.mrs-table-wrap {
  overflow-x: auto;
}

.mentor-portal-page .mrs-table-wrap .mrs-col-title .mp-cell-primary {
  font-size: 0.8125rem;
  font-weight: 600;
}

.mentor-portal-page .mrs-table-wrap .mrs-col-title .mp-table-cell-clamp-2 {
  margin-top: 0.15rem;
  font-size: 0.75rem;
}

/* Impact & Reporting hub */
.impact-hub-panel,
.funding-applications-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  min-width: 0;
}
.impact-hub-panel__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.impact-hub-panel__intro-text {
  flex: 1;
  min-width: 16rem;
}
.impact-hub-panel__intro-text .page-header-title {
  margin-bottom: 0.35rem;
}
.impact-hub-panel__intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.impact-hub-tabs {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.impact-hub-section {
  min-width: 0;
}
.impact-hub-block {
  min-width: 0;
}
.impact-hub-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.impact-hub-controls.impact-hub-filters {
  display: block;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.impact-hub-section__toolbar.impact-hub-controls {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
}
.impact-hub-period-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.impact-hub-period-filter__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-text);
}
.impact-hub-period-filter__select {
  width: auto;
  min-width: 10.5rem;
  max-width: 14rem;
  margin-bottom: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.impact-hub-overview-stats {
  margin-bottom: 1.25rem;
}
.impact-hub-overview-charts {
  margin-bottom: 0;
}
.impact-hub-filters__row,
.funding-applications-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
}
.impact-hub-filters__row .input-group,
.funding-applications-filters__row .input-group {
  flex: 0 1 11rem;
  min-width: 9rem;
  margin-bottom: 0;
}
.impact-hub-filters__actions,
.funding-applications-filters__actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  align-self: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin: 0;
}
.impact-hub-filters__actions .btn,
.funding-applications-filters__actions .btn {
  margin: 0;
  white-space: nowrap;
}
.impact-hub-funding-stats {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}
.impact-hub-funding-stats .mentee-dash-stat-pill {
  background: var(--brand-tint-2, var(--surface));
}
:is(.impact-hub-panel, .funding-applications-panel) .mp-table-shell {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.impact-hub-metric-actions {
  white-space: nowrap;
  text-align: right;
}
.impact-hub-metric-actions .impact-metric-verify-form {
  display: inline;
  margin: 0;
}
.impact-hub-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted-text);
}
.impact-hub-note {
  margin: 0 0 1rem;
}

/* Funding applications hub */
.funding-applications-panel__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.funding-applications-panel__head .mentee-dash-stats,
.impact-hub-funding-stats.mentee-dash-stats {
  margin-bottom: 0;
}
.funding-applications-panel .mentee-dash-stat-pill {
  background: var(--brand-tint-2, var(--surface));
}
.funding-applications-tabs {
  margin-bottom: 0;
  width: 100%;
}
.funding-applications-tab-count {
  opacity: 0.7;
  font-size: 0.8em;
  margin-left: 0.15rem;
}
.funding-applications-filters {
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.funding-applications-table {
  padding-top: 0.25rem;
}
.funding-applications-filters__search {
  flex: 1 1 12rem;
  min-width: 12rem;
  max-width: 22rem;
}
.funding-applications-empty {
  padding: 1.5rem;
  text-align: center;
}
.funding-applications-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.funding-applications-applicant {
  display: block;
  font-weight: 600;
}
.funding-applications-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.training-assessment-modal-content {
  max-width: 720px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.training-assessment-modal-body {
  overflow-y: auto;
  max-height: min(62vh, 520px);
  padding-right: 0.25rem;
}

.training-assessment-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.training-assessment-tab {
  background: transparent;
  border: none;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-text);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.training-assessment-tab.is-active {
  color: var(--brand-primary, var(--primary));
  background: var(--brand-tint-8, rgba(0, 0, 0, 0.04));
}

.training-assessment-panel {
  display: none;
}

.training-assessment-panel.is-active {
  display: block;
}

.training-assessment-settings {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--surface-alt, var(--surface));
}

.training-assessment-enable {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.training-assessment-settings-grid {
  margin-top: 0.5rem;
}

.training-assessment-builder-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.training-assessment-builder-lead {
  margin: 0;
  flex: 1;
  min-width: 12rem;
}

.training-assessment-questions-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.training-assessment-q-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--surface);
}

.training-assessment-q-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.training-assessment-q-num {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.training-assessment-q-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.training-assessment-q-head-actions select {
  min-width: 10rem;
}

.training-assessment-options-block {
  margin-top: 0.5rem;
}

.training-assessment-options-block > .label {
  display: block;
  margin-bottom: 0.35rem;
}

.training-assessment-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.training-assessment-option-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}

.training-assessment-opt-correct {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  cursor: pointer;
}

.training-assessment-import-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.training-assessment-import-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.training-assessment-import-row .input-field {
  flex: 1;
  min-width: 12rem;
}

.training-assessment-csv-status.is-error {
  color: var(--danger, #b91c1c);
}

.training-assessment-csv-status.is-success {
  color: var(--success, #15803d);
}

.training-assessment-csv-preview {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--brand-tint-8, rgba(0, 0, 0, 0.03));
  border-radius: var(--radius-md);
}

.training-assessment-form-error {
  color: var(--danger, #b91c1c);
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.training-assessment-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.training-assessment-summary {
  margin-right: auto;
}

.training-assessment-template-link {
  font-weight: 600;
}

/* Admin + shared training cover upload */
.training-cover-hint {
  margin: 0.25rem 0 0.5rem;
}

.training-cover-preview {
  margin-top: 0.65rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--surface-alt, var(--surface));
}

.training-cover-preview-img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.training-cover-remove-wrap {
  margin-top: 0.5rem;
}

.training-cover-remove-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.admin-training-title-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: min(220px, 32vw);
}

.admin-training-title-text {
  min-width: 0;
  flex: 1;
}

.admin-training-title-name {
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-training .mp-table-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#view-training .mp-table-shell .table {
  table-layout: auto;
  width: 100%;
}

#view-training .mp-table-shell .table th:first-child,
#view-training .mp-table-shell .table td:first-child {
  width: 1%;
  max-width: min(220px, 32vw);
}

.admin-preview-description {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.admin-preview-description .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  margin-bottom: 0.35rem;
}

.admin-preview-description p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary, inherit);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-training-list-thumb {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.admin-training-list-thumb--empty {
  display: inline-block;
  background: var(--dash-icon-neutral, #e8ecec);
}

.mentor-training-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mentor-training-thumb {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.mentor-training-thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: var(--primary-brand);
  color: #fff;
}

.mentor-training-row-text {
  font-weight: 500;
}

.mentor-training-assign {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.mentor-training-assign-lead {
  margin: 0 0 0.5rem;
}

.mentor-training-assign-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mentor-training-assign-form select {
  flex: 1;
  min-width: 10rem;
}

.mentor-training-assign-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mentor-training-unassign-form {
  margin: 0;
}

.training-cover-preview.hidden,
.training-assessment-empty-hint.hidden,
.training-assessment-form-error.hidden,
.training-assessment-csv-preview.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .training-assessment-option-row {
    grid-template-columns: 1fr;
  }

  .training-assessment-modal-content {
    max-width: 100%;
  }
}
