/* Art direction: Blackshires Leadership Academy LMS → bold, empowering, community-rooted
   Palette: Deep charcoal + golden yellow — directly from blackshires.net brand
   Typography: Clash Display (display) + Satoshi (body) — commanding, modern
   Density: Spacious — this is a cohort program for 10-15 people, not an enterprise tool */

/* ── App Shell ───────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.app-shell.no-sidebar .sidebar { display: none; }
.app-shell.no-sidebar .app-main { margin-left: 0; }

/* Right-side wrapper: stacks header + content vertically */
.app-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100dvh;
}

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  width: 260px;
  min-width: 260px;
  flex-shrink: 0;
  height: 100dvh;
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: var(--z-sidebar);
  transition: transform var(--duration-normal) var(--ease-out),
              width var(--duration-normal) var(--ease-out);
}

.sidebar-logo {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}
.sidebar-logo svg { height: 36px; width: auto; }

.sidebar-nav { flex: 1; padding: var(--space-3) var(--space-2); }

.sidebar-section {
  margin-bottom: var(--space-3);
}
.sidebar-section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-sidebar-muted);
  padding: var(--space-2) var(--space-3) var(--space-1);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-sidebar-text);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  cursor: pointer;
  position: relative;
}
.sidebar-link:hover {
  background: var(--color-sidebar-hover);
}
.sidebar-link.active {
  background: var(--color-sidebar-active-bg, rgba(252,185,0,0.12));
  color: var(--color-sidebar-active);
}
.sidebar-link.active .sidebar-icon {
  color: var(--color-sidebar-active);
}
.sidebar-link .sidebar-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--color-sidebar-muted);
  transition: color var(--duration-fast) var(--ease-out);
}
.sidebar-link:hover .sidebar-icon {
  color: var(--color-sidebar-text);
}
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.sidebar-user:hover { background: var(--color-sidebar-hover); }
.sidebar-user-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.sidebar-user-info { overflow: hidden; }
.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: var(--text-xs);
  color: var(--color-sidebar-muted);
}

/* ── Top Header ──────────────────────────────── */
.top-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  z-index: var(--z-sticky);
  min-height: 56px;
  flex-shrink: 0;
}

.hamburger-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.hamburger-btn:hover { background: var(--color-surface-2); }
.hamburger-btn svg { width: 22px; height: 22px; }

.header-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}
.header-breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.header-breadcrumb span { cursor: pointer; }
.header-breadcrumb span:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.header-icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  position: relative;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.header-icon-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.header-icon-btn svg { width: 20px; height: 20px; }


.accessibility-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
}
.a11y-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}
.a11y-btn:hover, .a11y-btn.active {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

/* ── Main Content ────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-6);
  background: var(--color-bg);
}

.page-header {
  margin-bottom: var(--space-6);
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.page-title svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.page-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.card-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── KPI Cards ───────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.kpi-card-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}
.kpi-card-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums lining-nums;
}
.kpi-card-delta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.kpi-card-delta.positive { background: var(--color-success-bg); color: var(--color-success); }
.kpi-card-delta.negative { background: var(--color-error-bg); color: var(--color-error); }
.kpi-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.kpi-card-icon svg { width: 22px; height: 22px; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 40px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-active); }

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-surface-offset); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover { background: var(--color-surface-2); color: var(--color-text); }

.btn-danger {
  background: var(--color-error);
  color: #FFFFFF;
}
.btn-danger:hover { opacity: 0.9; }

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  min-height: 32px;
}
.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  min-height: 48px;
}
.btn-icon {
  width: 40px; height: 40px; padding: 0;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Badges & Status ─────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.badge-gold { background: var(--color-primary-highlight); color: var(--color-primary-hover); }
.badge-green { background: var(--color-success-bg); color: var(--color-success); }
.badge-red { background: var(--color-error-bg); color: var(--color-error); }
.badge-blue { background: var(--color-info-bg); color: var(--color-info); }
.badge-gray { background: var(--color-surface-2); color: var(--color-text-muted); }
.badge-dark { background: var(--color-dark-accent); color: #F5F5F5; }

/* ── Form Inputs ─────────────────────────────── */
.form-group { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  min-height: 40px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
  outline: none;
}
.form-input::placeholder { color: var(--color-text-faint); }
.form-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-body);
}
.form-help {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

/* ── Tables ──────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.data-table {
  width: 100%;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums lining-nums;
}
.data-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
  position: sticky; top: 0; z-index: 1;
}
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-surface-2); }

/* ── Progress Ring (SVG-based) ───────────────── */
.progress-ring-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.progress-ring-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
}

/* ── Progress Bar ────────────────────────────── */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

/* ── Tabs ────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-5);
  overflow-x: auto;
}
.tab-item {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.tab-item:hover { color: var(--color-text); }
.tab-item.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

/* ── Segmented Control (Login role picker) ──── */
.segmented-control {
  display: flex;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.segment-btn {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.segment-btn:hover { color: var(--color-text); }
.segment-btn.active {
  background: var(--color-primary);
  color: var(--color-primary-text);
  box-shadow: var(--shadow-sm);
}

/* ── Module Cards ────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}
.module-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.module-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.module-card-body {
  padding: var(--space-4);
}
.module-card-phase {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary-hover);
  margin-bottom: var(--space-1);
}
.module-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
.module-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.module-card-status {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* ── Video Placeholder ───────────────────────── */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-dark-accent);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: #F5F5F5;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.video-play-btn {
  width: 64px; height: 64px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--duration-fast) var(--ease-out);
}
.video-placeholder:hover .video-play-btn {
  transform: scale(1.08);
}
.video-play-btn svg { width: 28px; height: 28px; color: var(--color-primary-text); margin-left: 3px; }

/* ── Scenario Cards ──────────────────────────── */
.scenario-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.scenario-number {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary-hover);
  margin-bottom: var(--space-2);
}
.scenario-prompt {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}
.scenario-choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.scenario-choice:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.scenario-choice.selected-best {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}
.scenario-choice.selected-ok {
  border-color: var(--color-warning);
  background: var(--color-warning-bg);
}
.scenario-choice.selected-poor {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}
.scenario-feedback {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* ── Login Page ──────────────────────────────── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: var(--color-bg);
  padding: var(--space-4);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-logo { margin-bottom: var(--space-6); }
.login-logo svg { height: 48px; margin: 0 auto; }
.login-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}
.login-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.login-form .form-group { text-align: left; }
.login-actions { margin-top: var(--space-6); }
.login-actions .btn { width: 100%; }
.login-footer {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.login-footer a { color: var(--color-primary); cursor: pointer; }
.login-footer a:hover { text-decoration: underline; }

/* ── Onboarding Modal ────────────────────────── */
/* ── Onboarding Wizard (Redesigned) ───────────── */
.ob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
  animation: fadeIn var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(4px);
}
.ob-container {
  display: flex;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  min-height: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: slideUp var(--duration-normal) var(--ease-out);
}

/* Left visual panel */
.ob-visual {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
}
.ob-phase-welcome { background: linear-gradient(135deg, #FCB900 0%, #F59E0B 100%); }
.ob-phase-program { background: linear-gradient(135deg, #212121 0%, #374151 100%); }
.ob-phase-cohort { background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%); }
.ob-phase-support { background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%); }

.ob-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ob-visual-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.ob-visual-icon svg { width: 40px; height: 40px; color: #fff; }
.ob-visual-step {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}
.ob-visual-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
                     radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

/* Right content panel */
.ob-content {
  flex: 1;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.ob-top-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.ob-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.ob-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.ob-skip {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
}

.ob-title-area { margin-bottom: var(--space-5); }
.ob-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}
.ob-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.ob-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.ob-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-out);
}
.ob-highlight:hover { background: var(--color-primary-highlight); }
.ob-highlight-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ob-highlight-icon svg { width: 16px; height: 16px; }
.ob-highlight-text {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text);
  padding-top: 5px;
}

/* Cohort preview */
.ob-cohort-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  margin-top: var(--space-2);
}
.ob-avatar-stack { display: flex; }
.ob-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
}
.ob-avatar:first-child { margin-left: 0; }
.ob-avatar-more {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.ob-cohort-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.ob-footer-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-3);
}

/* Navigation */
.ob-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.ob-back {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
}
.ob-back svg { width: 16px; height: 16px; }
.ob-dots {
  display: flex;
  gap: var(--space-2);
}
.ob-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  transition: all var(--duration-fast) var(--ease-out);
}
.ob-dot-active {
  background: var(--color-primary);
  width: 20px;
}
.ob-dot-done {
  background: var(--color-primary);
}
.ob-next-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-weight: var(--weight-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
}
.ob-next-btn svg { width: 16px; height: 16px; }
.ob-start-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-weight: var(--weight-bold);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}
.ob-start-btn svg { width: 18px; height: 18px; }

/* ── Assessment ──────────────────────────────── */
.assessment-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-8);
}
.assessment-progress {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.assessment-question {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-6);
  line-height: var(--leading-snug);
}
.likert-scale {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}
.likert-circle {
  width: 48px; height: 48px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--ease-out);
}
.likert-option:hover .likert-circle {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.likert-option.selected .likert-circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-text);
}
.likert-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}



/* ── Certificate ─────────────────────────────── */
.certificate-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.certificate {
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.certificate::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--color-primary);
}
.certificate-shield {
  margin: 0 auto var(--space-4);
}
.certificate-shield svg { width: 64px; height: 64px; margin: 0 auto; }
.certificate-heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary-hover);
  margin-bottom: var(--space-1);
}
.certificate-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}
.certificate-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.certificate-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-hover);
  margin: var(--space-4) 0;
}
.certificate-cohort {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.certificate-date {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.certificate-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ── Events ──────────────────────────────────── */
.event-list { display: flex; flex-direction: column; gap: var(--space-3); }
.event-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}
.event-item:hover { box-shadow: var(--shadow-sm); }
.event-date-box {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 56px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  text-align: center;
}
.event-date-month {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  color: var(--color-primary-hover);
}
.event-date-day {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}
.event-info { flex: 1; }
.event-title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}
.event-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* ── Resource Directory ──────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.resource-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.resource-category {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary-hover);
  margin-bottom: var(--space-2);
}
.resource-name {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
.resource-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

/* ── Discussion Threads ──────────────────────── */
.discussion-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.discussion-post {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.discussion-post.pinned {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.post-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.post-content { flex: 1; }
.post-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.post-author { font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.post-time { font-size: var(--text-xs); color: var(--color-text-faint); }
.post-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
}
.post-actions {
  display: flex;
  gap: var(--space-3);
}
.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}
.post-action-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

/* ── Impact Charter ──────────────────────────── */
.charter-stage {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}
.charter-stage-pill {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
}
.charter-stage-pill.completed { background: var(--color-primary); }
.charter-stage-pill.current { background: var(--color-primary); opacity: 0.5; }

/* ── Stipend Tracker ─────────────────────────── */
.stipend-milestones {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.stipend-milestone {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.stipend-milestone.paid {
  background: var(--color-success-bg);
}
.stipend-check {
  width: 24px; height: 24px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}
.stipend-milestone.paid .stipend-check {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}
.stipend-label { flex: 1; font-size: var(--text-sm); }
.stipend-amount {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

/* ── Coaching Toolkit ────────────────────────── */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.toolkit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: box-shadow var(--duration-fast) var(--ease-out);
}
.toolkit-card:hover { box-shadow: var(--shadow-md); }
.toolkit-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.toolkit-icon svg { width: 22px; height: 22px; }

/* ── Expandable Section ──────────────────────── */
.expandable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  transition: background var(--duration-fast) var(--ease-out);
}
.expandable-header:hover { background: var(--color-surface-offset); }
.expandable-header svg {
  width: 18px; height: 18px;
  transition: transform var(--duration-fast) var(--ease-out);
}
.expandable-header.open svg { transform: rotate(180deg); }
.expandable-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}
.expandable-body.open {
  max-height: 2000px;
}
.expandable-body-inner {
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ── Toggle Switch ───────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.toggle {
  width: 44px; height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  position: relative;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.toggle.active { background: var(--color-primary); }
.toggle-knob {
  width: 18px; height: 18px;
  border-radius: var(--radius-full);
  background: #FFF;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.toggle.active .toggle-knob { transform: translateX(20px); }

/* ── Setting Option Group (segmented selector) ─ */
.setting-option-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.setting-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  background: var(--color-surface);
  border: none;
  border-right: 1px solid var(--color-divider);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-family: inherit;
}
.setting-option:last-child { border-right: none; }
.setting-option:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}
.setting-option.active {
  background: var(--color-primary);
  color: var(--color-primary-text);
}
.setting-option.active .setting-option-icon svg {
  stroke: var(--color-primary-text);
}
.setting-option-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.setting-option-icon svg { width: 18px; height: 18px; }
.setting-option-label {
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
}

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
  animation: fadeIn var(--duration-normal) var(--ease-out);
}
.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--duration-normal) var(--ease-out);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}
.modal-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--duration-fast) var(--ease-out);
}
.modal-close:hover { background: var(--color-surface-2); }
.modal-close svg { width: 18px; height: 18px; }

/* ── Footer ──────────────────────────────────── */
.app-footer {
  padding: var(--space-4) var(--space-6);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  border-top: 1px solid var(--color-divider);
}
.app-footer a {
  color: var(--color-primary);
  transition: color var(--duration-fast) var(--ease-out);
}
.app-footer a:hover { text-decoration: underline; }

/* ── Filter Bar ──────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.filter-bar .form-input, .filter-bar .form-select {
  max-width: 240px;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}
.search-input-wrap svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--color-text-faint);
}
.search-input-wrap .form-input {
  padding-left: var(--space-10);
}

/* ── Empty State ─────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-muted);
}
.empty-state-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
}
.empty-state-icon svg { width: 28px; height: 28px; color: var(--color-text-faint); }
.empty-state-title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Check-in / Coaching Card ────────────────── */
.checkin-list { display: flex; flex-direction: column; gap: var(--space-3); }
.checkin-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.checkin-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--color-primary-hover);
  flex-shrink: 0;
}
.checkin-info { flex: 1; }
.checkin-name { font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.checkin-meta { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ── Profile Tabs ────────────────────────────── */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-text);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}
.profile-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Print Styles ────────────────────────────── */

/* ── Notification Prefs SVG sizing ────────────── */
.notif-pref-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Global SVG Safety Net ────────────────────── */
/* Prevent raw SVGs from expanding to fill their parent */
.main-content svg:not([width]):not([class]) {
  max-width: 24px;
  max-height: 24px;
}


/* ── Growth Report CTA icon ──────────────────── */
.growth-cta-icon svg { width: 32px; height: 32px; }

/* ── Inline check icons in lists ─────────────── */
.main-content li > span > svg,
.main-content li > span svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Inline icon text alignment ──────────────── */
.post-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.kudos-from svg { width: 14px; height: 14px; flex-shrink: 0; }
.session-plan-notes svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Mentorship icon container ───────────────── */
.mentor-icon-wrap svg { width: 24px; height: 24px; }

/* ── Attendance Tracker ────────────────────────────────────── */
.attendance-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.attendance-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: var(--text-sm);
}

.attendance-table th,
.attendance-table td {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  text-align: center;
  vertical-align: middle;
}

.att-fellow-col {
  text-align: left !important;
  min-width: 180px;
  position: sticky;
  left: 0;
  background: var(--color-surface);
  z-index: 2;
}

.att-event-col {
  min-width: 80px;
  max-width: 100px;
}

.att-event-title {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

.att-event-date {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.att-completed-event {
  background: var(--color-surface-raised);
}

.att-fellow-name {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--color-surface);
  z-index: 1;
  font-size: var(--text-sm);
  min-width: 180px;
}

.att-at-risk .att-fellow-name {
  background: var(--color-error-bg);
}

.att-cell {
  cursor: pointer;
  transition: background var(--duration-fast);
  min-width: 56px;
}

.att-cell:hover {
  background: var(--color-primary-highlight);
}

.att-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

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

.att-present { background: var(--color-success-bg); color: var(--color-success); }
.att-absent { background: var(--color-error-bg); color: var(--color-error); }
.att-excused { background: var(--color-warning-bg); color: var(--color-warning); font-weight: bold; }
.att-untracked { background: var(--color-surface-raised); color: var(--color-text-muted); }

.att-pct-col {
  min-width: 80px;
  font-size: var(--text-sm);
}

.att-pct-cell {
  min-width: 80px;
  padding: var(--space-2);
}

.att-pct-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.att-pct-risk .att-pct-value {
  color: var(--color-error);
}

.att-pct-bar {
  width: 60px;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.att-pct-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-normal);
}

.att-total-cell {
  font-weight: var(--weight-semibold);
  background: var(--color-surface-raised);
}

.att-legend {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-3);
}

.att-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.att-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.badge-red {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* ── Progress Reports ──────────────────────────────────────── */
.charter-stage-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
}

.charter-stage-row.active {
  background: var(--color-primary-highlight);
}

.charter-stage-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.charter-stage-dot.done {
  background: var(--color-success);
  color: white;
}

.charter-stage-dot.active {
  background: var(--color-primary);
  color: #212121;
}

.charter-stage-dot svg {
  width: 12px;
  height: 12px;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-sm);
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  font-weight: var(--weight-semibold);
  background: var(--color-surface-raised);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.data-table tbody tr:hover {
  background: var(--color-surface-raised);
}

/* ── Program Outcomes ──────────────────────────────────────── */
.outcomes-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.outcomes-bar-label {
  flex: 0 0 140px;
  font-size: var(--text-xs);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.outcomes-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.outcomes-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-slow);
}

.outcomes-bar-pct {
  flex: 0 0 70px;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-semibold);
}

/* ── Activity Feed ─────────────────────────────────────────── */
.streak-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: linear-gradient(135deg, #212121 0%, #2d2d2d 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
}

.streak-fire {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.streak-info {
  flex: 1;
}

.streak-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.streak-label {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.streak-days {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.streak-day {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.streak-day.active {
  background: var(--color-primary);
  color: #212121;
}

.streak-day.today {
  border: 2px solid var(--color-primary);
  color: white;
}

.streak-day.active.today {
  background: var(--color-primary);
  color: #212121;
  border-color: white;
}

.weekly-chart {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  height: 120px;
  padding: var(--space-3) var(--space-4) 0;
}

.weekly-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  height: 100%;
}

.weekly-bar-container {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.weekly-bar {
  width: 100%;
  background: var(--color-border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 4px;
  transition: height var(--duration-normal);
  background: var(--color-info);
  opacity: 0.6;
}

.weekly-bar.today {
  background: var(--color-primary);
  opacity: 1;
}

.weekly-bar-label {
  font-size: 10px;
  color: var(--color-text-muted);
}

.weekly-bar-val {
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-fast);
}

.activity-item:hover {
  background: var(--color-surface-raised);
}

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

.activity-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-type-icon svg {
  width: 14px;
  height: 14px;
}

.activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.activity-user {
  font-weight: var(--weight-semibold);
}

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

.activity-detail {
  color: var(--color-primary);
  font-weight: var(--weight-medium);
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Peer Learning Circles ─────────────────────────────────── */
.circle-members {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.circle-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.circle-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.circle-member-name {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 80px;
  line-height: 1.2;
}

.circle-prompt {
  padding: var(--space-4);
  background: var(--color-primary-highlight);
  margin: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.circle-prompt-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.circle-prompt-label svg {
  width: 14px;
  height: 14px;
}

.circle-prompt-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  font-style: italic;
}

.reflection-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

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

.reflection-content {
  flex: 1;
}

.reflection-author {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.reflection-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

.reflection-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ── Fellow Spotlight ──────────────────────────────────────── */
.spotlight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
}

.spotlight-body {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
}

.spotlight-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.spotlight-info {
  flex: 1;
}

.spotlight-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}

.spotlight-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.spotlight-project {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.spotlight-quote {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

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

@media print {
  .sidebar, .top-header, .hamburger-btn, .header-actions { display: none !important; }
  .main-content { padding: 0; overflow: visible; }
  .app-shell, .app-main { display: block; height: auto; overflow: visible; }
  body { overflow: visible; }
}

/* ── Tablet ──────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .sidebar {
    width: 220px;
    min-width: 220px;
  }
}

/* ── Mobile / Narrow embed ─────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    min-width: 280px;
    transform: translateX(-100%);
    z-index: var(--z-sidebar);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: calc(var(--z-sidebar) - 1);
    display: none;
  }
  .sidebar-backdrop.open { display: block; }

  .main-content {
    padding: var(--space-4);
  }
  .hamburger-btn { display: flex; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .toolkit-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .form-input, .filter-bar .form-select, .search-input-wrap { max-width: 100%; }



  .event-item { flex-direction: column; gap: var(--space-2); }
  .event-date-box { flex-direction: row; gap: var(--space-2); min-width: auto; }
  
  .profile-header-card { flex-direction: column; text-align: center; }


  .login-card { padding: var(--space-5); }

  .likert-scale { gap: var(--space-2); }
  .likert-circle { width: 40px; height: 40px; font-size: var(--text-sm); }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .tab-bar { gap: 0; }
  .tab-item { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
}

/* ── Toast Notifications ─────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-content {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.toast-content svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ── Video Embed ─────────────────────────────── */
.video-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

/* ── Form Select ─────────────────────────────── */
.form-select {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: var(--space-8);
}
.form-select:focus {
  border-color: var(--color-primary);
}

/* ── Danger Button ───────────────────────────── */
.btn-danger {
  background: var(--color-error);
  color: white;
  border: none;
}
.btn-danger:hover {
  opacity: 0.9;
}


/* ═══════════════════════════════════════════════════════════════
   Alumni Network Styles
   ═══════════════════════════════════════════════════════════════ */
.tab-bar {
  display: flex;
  gap: var(--space-1);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  margin-bottom: var(--space-6);
}
.tab-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-sm);
}
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}
.alumni-card {
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.alumni-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.alumni-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.alumni-card-info { flex: 1; }
.alumni-card-project {
  background: var(--color-surface-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}
.alumni-achievements {
  margin-top: var(--space-3);
}
.alumni-achievements svg {
  width: 14px;
  height: 14px;
}
.alumni-stats .kpi-grid {
  margin-top: var(--space-2);
}
.mentor-card {
  border-left: 3px solid var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════
   Impact Dashboard Styles
   ═══════════════════════════════════════════════════════════════ */
.impact-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.impact-bar-row:last-child { border-bottom: none; }
.impact-bar-label {
  width: 140px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  flex-shrink: 0;
}
.impact-bar-track {
  flex: 1;
  height: 24px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.impact-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
  min-width: 4px;
}
.impact-bar-value {
  width: 80px;
  text-align: right;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Growth Report / Pre-Post Assessment Styles
   ═══════════════════════════════════════════════════════════════ */
.growth-summary-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
}
.growth-summary-card {
  padding: var(--space-5);
}
.growth-delta {
  border: 2px solid var(--color-success);
  background: var(--color-success-bg);
}
.growth-question-row {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.growth-question-row:last-of-type { border-bottom: none; }
.growth-question-text {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
.growth-question-scores {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.growth-score-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.growth-bar-pre,
.growth-bar-post {
  height: 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-2);
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  min-width: 32px;
  transition: width 0.6s ease;
}
.growth-bar-pre {
  background: var(--color-text-faint);
  color: white;
}
.growth-bar-post {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.growth-diff {
  width: 48px;
  text-align: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.growth-diff.positive { color: var(--color-success); }
.growth-diff.negative { color: var(--color-error); }

/* ═══════════════════════════════════════════════════════════════
   Responsive overrides for new features
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .alumni-grid {
    grid-template-columns: 1fr;
  }
  .growth-summary-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .impact-bar-label { width: 100px; }
  .impact-bar-value { width: 60px; }
  .tab-bar { flex-wrap: wrap; }
}


/* ═══════════════════════════════════════════════════════════════
   Enhanced Stipend Payment Tracking
   ═══════════════════════════════════════════════════════════════ */
.stipend-progress-track {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-2);
  position: relative;
}
.stipend-progress-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--space-2) + 16px);
  right: calc(var(--space-2) + 16px);
  height: 4px;
  background: var(--color-border);
  transform: translateY(-50%);
  z-index: 0;
}
.stipend-progress-segment {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.stipend-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}
.stipend-progress-dot svg {
  width: 16px;
  height: 16px;
}
.stipend-progress-segment.paid .stipend-progress-dot {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}
.stipend-progress-segment.current .stipend-progress-dot {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-highlight);
}

.stipend-milestones-detailed {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stipend-milestone-detail {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  transition: all 0.2s ease;
}
.stipend-milestone-detail.paid {
  border-color: var(--color-success);
  background: color-mix(in srgb, var(--color-success) 4%, transparent);
}
.stipend-milestone-detail.next {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.stipend-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
}
.stipend-detail-left {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.stipend-detail-check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.stipend-detail-check svg {
  width: 14px;
  height: 14px;
}
.stipend-detail-check.paid {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}
.stipend-detail-label {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}
.stipend-detail-trigger {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: var(--leading-relaxed);
}
.stipend-detail-right {
  text-align: right;
  flex-shrink: 0;
}
.stipend-detail-amount {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.stipend-detail-amount.paid {
  color: var(--color-success);
}
.stipend-detail-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

/* ═══════════════════════════════════════════════════════════════
   Resource Bookmarking & Notes
   ═══════════════════════════════════════════════════════════════ */
.bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-faint);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bookmark-btn:hover {
  color: var(--color-primary);
}
.bookmark-btn.active {
  color: var(--color-primary);
}
.bookmark-btn.active svg {
  fill: var(--color-primary);
}
.bookmark-btn svg {
  width: 18px;
  height: 18px;
}
.resource-card.bookmarked {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.resource-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.resource-note-area {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}
.resource-note-area textarea {
  width: 100%;
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════
   Calendar button on events
   ═══════════════════════════════════════════════════════════════ */
.event-item .btn-ghost svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stipend-detail-header {
    flex-direction: column;
    gap: var(--space-2);
  }
  .stipend-detail-right {
    text-align: left;
    display: flex;
    gap: var(--space-2);
    align-items: center;
  }
}


/* ═══════════════════════════════════════════════════════════════
   Bulk Operations
   ═══════════════════════════════════════════════════════════════ */
.bulk-phase-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.bulk-phase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}
.bulk-phase-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.bulk-recipient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.bulk-recipient-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
}
.bulk-cert-summary {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}
.bulk-cert-stat {
  text-align: center;
}
.bulk-cert-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.bulk-cert-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.bulk-cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}
.bulk-cert-fellow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.bulk-cert-check {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}
.bulk-cert-check svg {
  width: 16px;
  height: 16px;
}
.bulk-stipend-bar {
  height: 8px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.bulk-stipend-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-success), var(--color-primary));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   Audit Log
   ═══════════════════════════════════════════════════════════════ */
.audit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.audit-filter-btn {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all 0.15s ease;
}
.audit-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.audit-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark-accent);
}
.audit-table {
  overflow-x: auto;
}
.audit-table-header {
  display: grid;
  grid-template-columns: 140px 130px 1fr 1fr 100px;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.audit-table-row {
  display: grid;
  grid-template-columns: 140px 130px 1fr 1fr 100px;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  align-items: start;
  transition: background 0.1s ease;
}
.audit-table-row:hover {
  background: var(--color-surface-2);
}
.audit-table-row:last-child {
  border-bottom: none;
}
.audit-timestamp {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
}
.audit-user-name {
  display: block;
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}
.audit-user-role {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.audit-col-detail {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.audit-cat-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  text-transform: capitalize;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   Branding Panel
   ═══════════════════════════════════════════════════════════════ */
.branding-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.branding-color-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.branding-color-input {
  width: 48px;
  height: 40px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 2px;
  background: var(--color-surface);
}
.branding-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.branding-color-input::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-sm);
}
.branding-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.branding-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}
.branding-preset-btn:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.branding-preset-swatch {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: inline-block;
}
.branding-preset-name {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.branding-preview {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
}
.branding-preview-sidebar {
  width: 160px;
  padding: var(--space-3);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-shrink: 0;
}
.branding-preview-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.branding-preview-logo svg {
  width: 18px;
  height: 18px;
}
.branding-preview-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.branding-preview-navitem {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.branding-preview-navitem.active {
  font-weight: 600;
}
.branding-preview-content {
  flex: 1;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}
.branding-preview-header {
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid;
  font-size: 11px;
}
.branding-preview-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.branding-preview-kpi {
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
}
.branding-preview-btn {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  width: fit-content;
}

/* ── Responsive overrides ──────────────────────────────────── */
@media (max-width: 768px) {
  .bulk-phase-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .branding-color-grid {
    grid-template-columns: 1fr;
  }
  .branding-presets {
    grid-template-columns: repeat(2, 1fr);
  }
  .branding-preview {
    flex-direction: column;
    height: auto;
  }
  .branding-preview-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: var(--space-2);
    gap: var(--space-4);
  }
  .branding-preview-nav {
    flex-direction: row;
  }
  .audit-table-header,
  .audit-table-row {
    grid-template-columns: 120px 100px 1fr 1fr 80px;
    font-size: var(--text-xs);
  }
  .audit-col-detail {
    display: none;
  }
}
@media (max-width: 480px) {
  .audit-table-header,
  .audit-table-row {
    grid-template-columns: 1fr 1fr;
  }
  .audit-col-time,
  .audit-col-cat,
  .audit-col-detail {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   Gamification: Badges
   ═══════════════════════════════════════════════════════════════ */
.badge-showcase {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-1);
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 72px;
  cursor: default;
}
.badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease;
}
.badge-icon svg {
  width: 22px;
  height: 22px;
}
.badge-item.earned .badge-icon {
  box-shadow: 0 2px 8px rgba(252, 185, 0, 0.3);
}
.badge-item.earned:hover .badge-icon {
  transform: scale(1.1);
}
.badge-item.locked .badge-icon,
.locked-icon {
  background: var(--color-surface-offset) !important;
  color: var(--color-text-faint);
  opacity: 0.5;
}
.badge-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}
.badge-item.locked .badge-name {
  color: var(--color-text-faint);
}

/* Badge grid on full page */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}
.badge-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.2s ease;
}
.badge-card.earned {
  background: var(--color-surface);
  border-color: var(--color-primary);
}
.badge-card.earned:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.badge-card.locked {
  background: var(--color-surface-2);
  opacity: 0.6;
}
.badge-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--space-2);
}
.badge-card-icon svg {
  width: 26px;
  height: 26px;
}
.badge-card.locked .badge-card-icon {
  color: var(--color-text-faint);
}
.badge-card-name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}
.badge-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}
.badge-card-date {
  font-size: 10px;
  color: var(--color-primary);
  font-weight: var(--weight-medium);
}

/* ── Getting Started Checklist ────────────────── */
.cl-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.cl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.cl-header-left { flex: 1; }
.cl-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}
.cl-title svg { width: 22px; height: 22px; }
.cl-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Progress ring */
.cl-progress-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.cl-progress-ring svg {
  width: 48px;
  height: 48px;
  transform: rotate(0deg);
}
.cl-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
}

.cl-progress-bar {
  height: 3px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  overflow: hidden;
}
.cl-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Task list */
.cl-tasks {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.cl-task {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.cl-task:hover:not(.cl-done) { background: var(--color-surface-2); }
.cl-done { background: var(--color-surface); }
.cl-task-num { flex-shrink: 0; }
.cl-num-circle {
  width: 24px; height: 24px;
  border: 2px solid var(--color-surface-offset);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-faint);
}
.cl-check-circle {
  width: 24px; height: 24px;
  background: #22C55E;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: checkPop 0.3s ease;
}
.cl-check-circle svg { width: 14px; height: 14px; }
@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cl-task-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.cl-task-icon svg { width: 16px; height: 16px; }
.cl-done .cl-task-icon { opacity: 0.5; }
.cl-task-body { flex: 1; min-width: 0; }
.cl-task-label {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  line-height: 1.3;
}
.cl-done .cl-task-label {
  text-decoration: line-through;
  color: var(--color-text-muted);
}
.cl-task-desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 1px;
}
.cl-task-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.cl-task-time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  background: var(--color-surface-2);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.cl-task-go {
  color: var(--color-text-faint);
}
.cl-task-go svg { width: 16px; height: 16px; }

/* Footer */
.cl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cl-footer .btn svg { width: 14px; height: 14px; }

/* Celebration state */
.cl-complete {
  border-left-color: #22C55E;
}
.cl-celebrate {
  text-align: center;
  padding: var(--space-4) 0;
}
.cl-celebrate-icon {
  width: 56px; height: 56px;
  background: #dcfce7;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  color: #15803d;
  animation: checkPop 0.5s ease;
}
.cl-celebrate-icon svg { width: 28px; height: 28px; }
.cl-celebrate-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}
.cl-celebrate-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ═══════════════════════════════════════════════════════════════
   Mentor Matching
   ═══════════════════════════════════════════════════════════════ */
.mentor-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.mentor-card:last-child {
  border-bottom: none;
}
.mentor-card-left {
  display: flex;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}
.mentor-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-dark-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mentor-card-info {
  flex: 1;
  min-width: 0;
}
.mentor-card-name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}
.mentor-card-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.mentor-card-project {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
}
.mentor-card-project svg {
  width: 12px;
  height: 12px;
}
.mentor-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.mentor-match-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--weight-medium);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}
.mentor-match-tag.high {
  background: var(--color-success-bg, #d1fae5);
  color: var(--color-success);
}
.mentor-match-tag.medium {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.mentor-match-tag.shared {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
}
.mentor-achievements {
  margin-top: var(--space-2);
}
.mentor-achievement {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.mentor-achievement svg {
  width: 12px;
  height: 12px;
  color: var(--color-success);
}
.mentor-card-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.mentor-active-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}
.mentor-active-name {
  font-weight: var(--weight-semibold);
}
.mentor-active-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mentor-card {
    flex-direction: column;
  }
  .mentor-card-action {
    width: 100%;
  }
  .mentor-card-action .btn {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .badge-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Kudos System ────────────────────────────────────────────── */
.kudos-give-card .kudos-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
}

.kudos-category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.kudos-cat-chip {
  cursor: pointer;
}

.kudos-cat-chip input {
  display: none;
}

.kudos-cat-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: var(--text-sm);
  border: 2px solid var(--color-border);
  transition: all 0.2s ease;
  color: var(--color-text-muted);
}

.kudos-cat-chip input:checked + .kudos-cat-label {
  border-color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  color: var(--cat-color);
  font-weight: 600;
}

.kudos-cat-chip:hover .kudos-cat-label {
  border-color: var(--cat-color);
}

.kudos-feed {
  display: flex;
  flex-direction: column;
}

.kudos-card {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.kudos-card:last-child {
  border-bottom: none;
}

.kudos-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.kudos-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.kudos-meta {
  flex: 1;
  min-width: 0;
}

.kudos-from {
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.kudos-from svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.kudos-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.kudos-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.kudos-category-tag svg {
  width: 12px;
  height: 12px;
}

.kudos-message {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  padding-left: calc(36px + var(--space-3));
  margin-bottom: var(--space-2);
}

.kudos-actions {
  padding-left: calc(36px + var(--space-3));
}

.kudos-liked {
  color: var(--color-gold) !important;
}

/* ── Notification Preferences ────────────────────────────────── */
.notif-delivery-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
}

.notif-delivery-option {
  cursor: pointer;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all 0.2s ease;
}

.notif-delivery-option input {
  display: none;
}

.notif-delivery-option.active,
.notif-delivery-option:has(input:checked) {
  border-color: var(--color-gold);
  background: color-mix(in srgb, var(--color-gold) 8%, transparent);
}

.notif-delivery-label {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.notif-delivery-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.notif-category-list {
  display: flex;
  flex-direction: column;
}

.notif-category-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.notif-category-row:last-child {
  border-bottom: none;
}

.notif-category-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.notif-category-icon svg { width: 18px; height: 18px; }

.notif-category-info {
  flex: 1;
  min-width: 0;
}

.notif-category-label {
  font-weight: 600;
  font-size: var(--text-sm);
}

.notif-category-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* 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;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-gold);
}

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

.notif-quiet-section {
  padding: var(--space-4);
}

.notif-quiet-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.notif-quiet-times {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* ── PWA Install Banner (optional) ───────────────────────────── */
.pwa-install-banner {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-charcoal);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999;
  font-size: var(--text-sm);
}

.pwa-install-banner .btn {
  white-space: nowrap;
}

/* ── Responsive adjustments ──────────────────────────────────── */
@media (max-width: 768px) {
  .notif-delivery-options {
    grid-template-columns: 1fr;
  }
  .kudos-message {
    padding-left: 0;
  }
  .kudos-actions {
    padding-left: 0;
  }
  .notif-quiet-times {
    flex-direction: column;
  }
  .kudos-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ── Cohort Timeline / Gantt ─────────────────────────────────── */
.gantt-container {
  padding: var(--space-4);
  overflow-x: auto;
}

.gantt-header {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
}

.gantt-label-col {
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: var(--space-3);
}

.gantt-month {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.gantt-week-row {
  display: flex;
  margin-bottom: var(--space-2);
}

.gantt-weeks {
  display: flex;
  flex: 1;
}

.gantt-week-marker {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--color-text-faint);
  padding: 2px 0;
  border-right: 1px solid var(--color-border);
}

.gantt-week-marker.current {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.gantt-row {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 2px;
}

.gantt-event-label {
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-event-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gantt-bar-track {
  flex: 1;
  position: relative;
  height: 24px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
}

.gantt-bar {
  position: absolute;
  height: 100%;
  border-radius: var(--radius-sm);
  min-width: 12px;
  transition: opacity 0.2s;
}

.gantt-bar.past {
  opacity: 0.9;
}

.gantt-bar:hover {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gantt-today-row {
  border-top: 1px dashed var(--color-border);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
}

.gantt-today-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  background: var(--color-error);
  border-radius: 2px;
  z-index: 2;
}

.gantt-today-marker::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-error);
}

/* Module Progression Grid */
.module-progression-grid {
  padding: var(--space-4);
  overflow-x: auto;
}

.mp-header, .mp-row {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.mp-header {
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mp-name-col {
  width: 100px;
  min-width: 100px;
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.mp-name {
  font-weight: 500;
}

.mp-module-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.mp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: transparent;
  transition: all 0.2s;
}

.mp-dot.done {
  background: var(--color-success);
  border-color: var(--color-success);
}

.mp-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.mp-dot.locked {
  background: transparent;
  border-color: var(--color-border);
}

/* ── Session Planning ────────────────────────────────────────── */
.session-plan-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.session-plan-card:last-child {
  border-bottom: none;
}

.session-plan-card.completed {
  opacity: 0.85;
}

.session-plan-info {
  flex: 1;
  min-width: 0;
}

.session-plan-title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.session-plan-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.session-plan-notes {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  line-height: var(--leading-relaxed);
}

.session-plan-notes svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.session-plan-status {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.materials-list {
  padding: var(--space-3) var(--space-4);
}

.material-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

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

.material-item svg {
  color: var(--color-success);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.material-item span:nth-child(2) {
  flex: 1;
}

/* Attendance grid */
.attendance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-2);
  padding: var(--space-4);
}

.attendance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.attendance-item:hover {
  border-color: var(--color-primary);
}

.attendance-item.present {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

.attendance-item.present .attendance-status {
  color: var(--color-success);
}

.attendance-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}

.attendance-name {
  font-size: var(--text-xs);
  font-weight: 500;
}

.attendance-status {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.attendance-status svg {
  width: 14px;
  height: 14px;
}

/* ── Wellness Flags ──────────────────────────────────────────── */
.wellness-dashboard-card .wellness-alert-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.wellness-dashboard-card .wellness-alert-row:last-child {
  border-bottom: none;
}

.wellness-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wellness-alert-icon svg {
  width: 16px;
  height: 16px;
}

.wellness-alert-info {
  flex: 1;
  min-width: 0;
}

.wellness-alert-name {
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.wellness-alert-reason {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.wellness-alert-detail {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.wellness-alert-detail:last-child {
  border-bottom: none;
}

.wellness-alert-left {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.wellness-alert-right {
  flex-shrink: 0;
  max-width: 300px;
}

.wellness-sev-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.wellness-recommendation {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
}

.wellness-recommendation svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.wellness-actions {
  display: flex;
  gap: var(--space-2);
}

.healthy-fellows-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4);
}

.healthy-fellow-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gantt-label-col {
    width: 120px;
    min-width: 120px;
  }
  .gantt-event-label {
    font-size: var(--text-xs);
  }
  .session-plan-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .session-plan-status {
    margin-bottom: var(--space-2);
  }
  .wellness-alert-detail {
    flex-direction: column;
  }
  .wellness-alert-right {
    max-width: none;
    padding-left: calc(32px + var(--space-3));
  }
  .attendance-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .mp-name-col {
    width: 70px;
    min-width: 70px;
  }
}


/* ── Enhanced Events ─────────────────────────── */
.events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.events-view-toggle {
  display: flex;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 2px;
}
.evt-view-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.evt-view-btn svg { width: 16px; height: 16px; }
.evt-view-btn.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.evt-view-btn:hover:not(.active) { color: var(--color-text); }
.events-filters {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.evt-filter-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.evt-filter-btn.active {
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-color: var(--color-primary);
}
.evt-filter-btn:hover:not(.active) {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}
.events-section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

/* Next Event Banner */
.next-event-banner {
  background: var(--color-primary-highlight);
  border: 1px solid var(--color-primary);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.next-event-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-hover);
  margin-bottom: var(--space-2);
}
.next-event-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.next-event-info { flex: 1; }
.next-event-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.next-event-details {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.next-event-details span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.next-event-countdown {
  text-align: center;
  flex-shrink: 0;
  min-width: 72px;
}
.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-hover);
  line-height: 1;
}
.countdown-unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Event item enhancements */
.event-item { cursor: pointer; }
.event-past { opacity: 0.6; }
.event-expanded { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.event-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: var(--leading-relaxed);
}
.event-description-preview {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  line-height: var(--leading-normal);
}
.event-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.event-expand-indicator {
  display: flex;
  align-items: center;
  color: var(--color-text-faint);
  flex-shrink: 0;
}
.event-expand-indicator svg { width: 16px; height: 16px; }

/* RSVP badges */
.rsvp-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.rsvp-badge svg { width: 12px; height: 12px; }
.rsvp-confirmed {
  background: #dcfce7;
  color: #15803d;
}
.rsvp-pending {
  background: #fef9c3;
  color: #a16207;
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--color-text-faint);
  color: var(--color-text-muted);
}

/* ── Calendar Grid ───────────────────────────── */
.cal-container {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.cal-month-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}
.cal-nav-btn svg { width: 16px; height: 16px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cal-day-header {
  background: var(--color-surface-2);
  padding: var(--space-2);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
}
.cal-cell {
  background: var(--color-surface);
  min-height: 72px;
  padding: var(--space-2);
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
}
.cal-cell:hover { background: var(--color-surface-2); }
.cal-cell-empty { background: var(--color-surface-2); opacity: 0.5; }
.cal-cell-num {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}
.cal-today { background: var(--color-primary-highlight); }
.cal-today-num {
  background: var(--color-primary);
  color: var(--color-primary-text);
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}
.cal-has-event { cursor: pointer; }
.cal-event-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  margin-top: var(--space-1);
  display: inline-block;
  margin-right: 3px;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out);
}
.cal-event-dot:hover { transform: scale(1.5); }
.cal-legend {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.cal-legend-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ── Redesigned Notification Dropdown ────────── */
.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
  z-index: 300;
  margin-top: var(--space-2);
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}
.notif-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.notif-header-title {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
}
.notif-header-count {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-hover);
  background: var(--color-primary-highlight);
  padding: 1px 8px;
  border-radius: var(--radius-full);
}
.notif-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.notif-header-actions .btn svg { width: 14px; height: 14px; }
.notif-section-label {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  background: var(--color-surface-2);
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--color-surface-2); }
.notif-item.unread { background: var(--color-primary-highlight); }
.notif-item.unread:hover { background: color-mix(in srgb, var(--color-primary-highlight), var(--color-surface-2) 30%); }
.notif-icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-icon-wrap svg { width: 16px; height: 16px; }
.notif-body { flex: 1; min-width: 0; }
.notif-text {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text);
}
.notif-item.unread .notif-text { font-weight: var(--weight-medium); }
.notif-time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 2px;
}
.notif-unread-dot {
  width: 8px; height: 8px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-empty {
  padding: var(--space-8) var(--space-4);
  text-align: center;
}
.notif-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.notif-empty-icon svg { width: 24px; height: 24px; }
.notif-empty-text {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}
.notif-empty-sub {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.notif-dropdown-footer {
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--color-divider);
  text-align: center;
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
}

/* Notification badge count */
.notif-badge-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: var(--color-error);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-surface);
  padding: 0 4px;
  line-height: 1;
}

/* Mobile responsive for events/calendar */
@media (max-width: 768px) {
  .events-toolbar { flex-direction: column; align-items: stretch; }
  .events-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--space-1); }
  .next-event-content { flex-direction: column; align-items: flex-start; }
  .next-event-countdown { flex-direction: row; display: flex; align-items: baseline; gap: var(--space-1); }
  .cal-cell { min-height: 48px; padding: var(--space-1); }
  .cal-cell-num { font-size: var(--text-xs); }
  .notif-dropdown { width: calc(100vw - 32px); right: -60px; }
}

/* Mobile onboarding */
@media (max-width: 768px) {
  .ob-container {
    flex-direction: column;
    min-height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  .ob-visual {
    width: 100%;
    min-height: 120px;
    padding: var(--space-4);
  }
  .ob-visual-icon { width: 56px; height: 56px; }
  .ob-visual-icon svg { width: 28px; height: 28px; }
  .ob-content { padding: var(--space-4); }
  .ob-title { font-size: var(--text-xl); }
  .cl-task { padding: var(--space-3); }
  .cl-task-icon { display: none; }
}


/* ── Discussion Improvements ────────────────── */
.post-action-btn.liked {
  color: #F43F5E;
}
.post-action-btn.liked svg {
  fill: #F43F5E;
  stroke: #F43F5E;
}
.post-action-btn.active {
  color: var(--color-primary);
}

.reply-compose {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}
.reply-compose-row {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.reply-avatar {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.6rem !important;
  flex-shrink: 0;
}
.reply-textarea {
  flex: 1;
  min-height: 56px;
  resize: vertical;
}
.reply-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.replies-thread {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}
.reply-item {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
  border-left: 2px solid var(--color-divider);
}
.reply-body {
  flex: 1;
  min-width: 0;
}
.replies-show-more {
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.replies-show-more svg {
  width: 14px;
  height: 14px;
}
.btn-xs {
  font-size: var(--text-xs);
  padding: 1px 6px;
}

.disc-stats {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.disc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.disc-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1;
}
.disc-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.disc-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.disc-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  margin-left: 4px;
}

/* ── Roadmap ────────────────────────────────── */
.roadmap-phase {
  margin-bottom: var(--space-6);
}
.roadmap-phase-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.roadmap-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}
.roadmap-phase-badge svg { width: 14px; height: 14px; }
.roadmap-phase-count {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
}
.roadmap-item-marker {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 6px;
}
.roadmap-item-content { flex: 1; min-width: 0; }
.roadmap-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.roadmap-item-title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}
.roadmap-cat-badge {
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.roadmap-item-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ── Feature Requests ───────────────────────── */
.fr-compose {
  margin-bottom: var(--space-4);
  max-width: 680px;
}
.fr-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.fr-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.fr-card:hover {
  border-color: var(--color-surface-offset);
}
.fr-vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  min-width: 48px;
  transition: all var(--duration-fast) var(--ease-out);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  align-self: flex-start;
}
.fr-vote-btn svg { width: 16px; height: 16px; }
.fr-vote-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.fr-vote-btn.voted {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}
.fr-body { flex: 1; min-width: 0; }
.fr-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.fr-title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  line-height: 1.3;
}
.fr-badges {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}
.fr-status-badge {
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.fr-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-2);
}
.fr-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ── Cohort Management ─────────────────────────────────────────── */
.cm-cohort-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.cm-cohort-header-info {
  flex: 1;
  min-width: 0;
}

.cm-cohort-header-info svg {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: var(--space-1);
}

.cm-stacked-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--color-surface-offset);
  margin-bottom: var(--space-3);
}

.cm-stacked-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.cm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cm-fellow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.cm-fellow-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.cm-fellow-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cm-fellow-card.cm-at-risk {
  border-left: 3px solid var(--color-warning);
}

.cm-fellow-card svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.cm-card-stats {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.cm-card-stat {
  flex: 1;
  text-align: center;
}

.cm-card-stat-value {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.cm-card-stat-label {
  font-size: 10px;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cm-risk-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--color-warning);
  display: flex;
  align-items: center;
  gap: 2px;
}

.cm-risk-badge svg {
  width: 12px;
  height: 12px;
}

.cm-fellow-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  transition: background 0.1s ease;
}

.cm-fellow-row:last-child {
  border-bottom: none;
}

.cm-fellow-row:hover {
  background: var(--color-surface-offset);
}

/* Timeline */
.cm-timeline {
  position: relative;
  padding-left: var(--space-2);
}

.cm-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
  padding-bottom: var(--space-5);
}

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

.cm-timeline-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-divider);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.cm-timeline-marker.completed {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.cm-timeline-marker svg {
  width: 14px;
  height: 14px;
}

.cm-timeline-line {
  position: absolute;
  left: 13px;
  top: 28px;
  width: 2px;
  height: calc(100% - 28px);
  background: var(--color-divider);
}

.cm-timeline-line.completed {
  background: var(--color-success);
}

.cm-timeline-content {
  padding-top: var(--space-1);
}

/* Profile header */
.cm-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.cm-profile-header .badge svg {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
}

/* Stipend grid */
.cm-stipend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.cm-stipend-item {
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  background: var(--color-surface-offset);
}

.cm-stipend-item.paid {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

.cm-stipend-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto var(--space-1);
  border-radius: 50%;
  border: 2px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-stipend-item.paid .cm-stipend-icon {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.cm-stipend-icon svg {
  width: 14px;
  height: 14px;
}

/* Charter progress stepper */
.cm-charter-progress {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.cm-charter-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.cm-charter-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface-offset);
  border: 2px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-faint);
}

.cm-charter-step.done .cm-charter-step-dot {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.cm-charter-step.done .cm-charter-step-dot svg {
  width: 16px;
  height: 16px;
}

.cm-charter-step.current .cm-charter-step-dot {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.cm-charter-step-line {
  width: 40px;
  height: 2px;
  background: var(--color-divider);
  margin-top: 15px;
  flex-shrink: 0;
}

.cm-charter-step-line.done {
  background: var(--color-success);
}

/* Health header */
.cm-health-header {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

/* Responsive */
@media (max-width: 768px) {
  .cm-cohort-header {
    flex-direction: column;
    text-align: center;
  }
  .cm-fellow-grid {
    grid-template-columns: 1fr;
  }
  .cm-stipend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cm-profile-header {
    flex-direction: column;
    text-align: center;
  }
}


/* ── Bulk Operations: Enhanced Admin CRUD ────────────────────── */
.bulk-create-form {
  padding-top: var(--space-3);
}
.bulk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 640px) {
  .bulk-form-grid { grid-template-columns: 1fr; }
}
.bulk-cohort-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bulk-cohort-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  gap: var(--space-4);
}
.bulk-cohort-info {
  flex: 1;
  min-width: 0;
}
.bulk-cohort-name {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.bulk-cohort-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  align-items: center;
}
.bulk-cohort-meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.bulk-cohort-actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

/* Mode toggles */
.bulk-mode-toggle {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

/* Entry table */
.bulk-entry-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bulk-entry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.bulk-entry-table th {
  text-align: left;
  padding: var(--space-2);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.bulk-entry-table td {
  padding: var(--space-1) var(--space-2);
  vertical-align: middle;
}
.bulk-entry-table .form-input-sm,
.bulk-entry-table .form-select {
  padding: 6px 10px;
  font-size: var(--text-sm);
  height: 34px;
}
.bulk-entry-table tbody tr:hover {
  background: var(--color-surface-alt);
}

/* CSV paste area */
.bulk-csv-textarea {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--text-sm);
  line-height: 1.6;
  min-height: 180px;
}

/* Preview section */
.bulk-preview {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}
.bulk-preview h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Modal for delete confirmation */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}
.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.modal-header h3 svg { width: 20px; height: 20px; vertical-align: -3px; }
.modal-body p { margin-bottom: var(--space-3); font-size: var(--text-sm); line-height: 1.6; }
.modal-warning-box {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.modal-warning-box svg { width: 16px; height: 16px; vertical-align: -3px; }


/* ── Alumni Mode Styles ─────────────────────────────────────── */
.alumni-grad-banner {
  background: linear-gradient(135deg, #212121 0%, #333 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  color: #fff;
}
.alumni-grad-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.alumni-grad-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.alumni-grad-icon svg {
  width: 40px;
  height: 40px;
  color: #FCB900;
}
.alumni-grad-content {
  flex: 1;
  min-width: 200px;
}
.alumni-grad-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 2px;
}
.alumni-grad-detail {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

/* Quick actions grid */
.alumni-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}
.alumni-qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
}
.alumni-qa-btn:hover {
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.alumni-qa-btn svg {
  width: 22px;
  height: 22px;
}

/* Dashboard post feed */
.alumni-dash-post {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.alumni-dash-post:last-child {
  border-bottom: none;
}
.alumni-dash-post-content {
  flex: 1;
  min-width: 0;
}

/* Current cohort mini-grid */
.alumni-cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
.alumni-cohort-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  align-items: center;
}

/* Read-only banner for alumni on completed pages */
.alumni-readonly-banner {
  background: var(--color-success-bg);
  color: var(--color-success);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.alumni-readonly-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Project update items */
.project-update-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.project-update-item:last-child {
  border-bottom: none;
}
.project-update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-update-header .badge svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

/* 4-button segmented control adjustment */
.segmented-control {
  display: flex;
}
.segment-btn {
  flex: 1;
  min-width: 0;
}


/* ── User Management ─────────────────────────────────────────── */
.convert-inline {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  min-width: 280px;
}

.convert-select {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  min-width: 100px;
  height: 32px;
}

.convert-actions {
  display: flex;
  gap: var(--space-1);
}

.conversion-history {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.conversion-entry {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
}

.conversion-entry-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conversion-entry-icon svg {
  width: 16px;
  height: 16px;
}

.conversion-entry-content {
  flex: 1;
  min-width: 0;
}

.conversion-entry .badge {
  display: inline-flex;
  font-size: 0.65rem;
  padding: 1px 6px;
  vertical-align: middle;
}

/* User management action buttons */
.user-actions-row {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.user-actions-row .btn svg {
  width: 15px;
  height: 15px;
}
.user-delete-btn {
  color: var(--color-text-muted) !important;
  transition: color 0.15s ease;
}
.user-delete-btn:hover {
  color: var(--color-error) !important;
  background: var(--color-error-bg) !important;
}

/* Inline edit form inputs (compact) */
.form-input-sm {
  padding: var(--space-1) var(--space-2) !important;
  height: 32px !important;
  font-size: var(--text-sm) !important;
}

@media (max-width: 768px) {
  .convert-inline {
    flex-direction: column;
    align-items: flex-start;
    min-width: 160px;
  }
  .convert-select {
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════
   MOBILE IMPROVEMENTS — Comprehensive 375px pass
   ═══════════════════════════════════════════════════════ */

/* ── Header: Compact on mobile ────────────────────────── */
@media (max-width: 768px) {
  .top-header {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }
  .header-title {
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  .header-actions {
    gap: var(--space-1);
  }
  .header-icon-btn {
    width: 36px;
    height: 36px;
  }
  .accessibility-controls {
    display: none;
  }
  .header-actions .btn-sm {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }
}

/* ── Page headers: stack on mobile ────────────────────── */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--space-2) !important;
  }
  .page-header .btn {
    align-self: flex-start;
  }
  .page-title {
    font-size: var(--text-lg);
    word-break: break-word;
  }
  .page-title svg {
    width: 22px;
    height: 22px;
  }
  .page-subtitle {
    font-size: var(--text-xs);
  }
}

/* ── KPI cards: 1-col at 480, 2-col at 768 ───────────── */
@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3);
  }
  .kpi-card {
    padding: var(--space-3);
  }
  .kpi-value {
    font-size: var(--text-xl);
  }
  .kpi-label {
    font-size: var(--text-xs);
  }
  .kpi-sub {
    font-size: 0.65rem;
  }
}
@media (max-width: 400px) {
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Tables: better scroll hint, min-widths ───────────── */
@media (max-width: 768px) {
  .table-wrap {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, transparent, var(--color-surface));
    pointer-events: none;
    opacity: 0.8;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
  .data-table {
    font-size: var(--text-xs);
    min-width: 580px;
  }
  .data-table th,
  .data-table td {
    padding: var(--space-2) var(--space-3);
    white-space: nowrap;
  }
  .data-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--color-surface);
    z-index: 1;
    white-space: normal;
  }
}

/* ── Tab bars: horizontal scroll ──────────────────────── */
@media (max-width: 768px) {
  .tab-bar {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding-bottom: var(--space-1);
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
  .tab-item svg {
    display: none;
  }
}

/* ── Cards: tighter padding on mobile ─────────────────── */
@media (max-width: 768px) {
  .card {
    border-radius: var(--radius-md);
  }
  .card-header {
    padding: var(--space-3);
  }
  .card-header h3 {
    font-size: var(--text-sm);
  }
}

/* ── Spotlight card: stack vertically ─────────────────── */
@media (max-width: 768px) {
  .spotlight-body {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  .spotlight-avatar {
    margin: 0 auto;
  }
  .spotlight-meta {
    justify-content: center;
  }
}

/* ── Module grid: already 1fr, but tighter cards ──────── */
@media (max-width: 768px) {
  .module-card {
    padding: var(--space-3);
  }
  .module-card-title {
    font-size: var(--text-sm);
  }
  .video-placeholder {
    height: 160px;
    font-size: var(--text-sm);
  }
}

/* ── Module detail tabs ───────────────────────────────── */
@media (max-width: 768px) {
  .module-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .module-tabs::-webkit-scrollbar { display: none; }
  .module-tab {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }
}

/* ── Charter stages: compact on mobile ────────────────── */
@media (max-width: 768px) {
  .charter-stage {
    gap: var(--space-1);
  }
  .charter-stage-pill {
    font-size: 0.6rem;
    padding: var(--space-1) var(--space-2);
  }
  .charter-stage-row {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* ── Discussion replies: less indent on mobile ────────── */
@media (max-width: 768px) {
  .reply-item {
    margin-left: var(--space-3);
    padding-left: var(--space-3);
  }
  .reply-textarea {
    font-size: var(--text-sm);
  }
  .reply-compose {
    padding: var(--space-2);
  }
}

/* ── Events: better stacking ──────────────────────────── */
@media (max-width: 768px) {
  .event-item {
    padding: var(--space-3);
  }
  .event-item .badge {
    font-size: 0.6rem;
  }
}

/* ── Forms: full width on mobile ──────────────────────── */
@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* Prevents iOS zoom */
  }
}

/* ── Profile header: stack ────────────────────────────── */
@media (max-width: 768px) {
  .profile-header-card {
    gap: var(--space-3);
  }
  .profile-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }
}

/* ── Filter chips: wrap nicely ────────────────────────── */
@media (max-width: 768px) {
  .filter-bar {
    gap: var(--space-2);
  }
  .filter-bar .btn-sm {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }
}

/* ── Wellness flags, check-in cards ───────────────────── */
@media (max-width: 768px) {
  .wellness-alert {
    flex-direction: column;
    gap: var(--space-2);
  }
  .wellness-alert-actions {
    align-self: flex-start;
  }
}

/* ── Bulk operations: tighter forms ───────────────────── */
@media (max-width: 768px) {
  .bulk-create-form {
    gap: var(--space-3);
  }
  .bulk-entry-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Onboarding wizard: fit screen ────────────────────── */
@media (max-width: 768px) {
  .ob-wizard {
    padding: var(--space-4);
    max-width: 100%;
    margin: var(--space-4);
  }
  .ob-title {
    font-size: var(--text-lg);
  }
  .ob-subtitle {
    font-size: var(--text-sm);
  }
  .ob-avatars {
    gap: var(--space-1);
  }
  .ob-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
  }
}

/* ── Cohort comparison: stack cards ────────────────────── */
@media (max-width: 768px) {
  .cohort-compare-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Notification dropdown: full width mobile ─────────── */
@media (max-width: 768px) {
  .notif-dropdown {
    position: fixed;
    top: 56px;
    left: var(--space-3);
    right: var(--space-3);
    width: auto;
    max-height: calc(100vh - 80px);
  }
}

/* ── User Management convert inline ───────────────────── */
@media (max-width: 768px) {
  .convert-inline {
    flex-direction: column;
    min-width: 0;
  }
  .convert-select {
    width: 100%;
  }
}

/* ── Likert scale: tighter on very small ──────────────── */
@media (max-width: 400px) {
  .likert-scale {
    gap: var(--space-1);
  }
  .likert-circle {
    width: 36px;
    height: 36px;
    font-size: var(--text-xs);
  }
}

/* ── Alumni dashboard: compact ────────────────────────── */
@media (max-width: 768px) {
  .alumni-banner {
    padding: var(--space-4);
    flex-direction: column;
    text-align: center;
  }
}

/* ── Checklist items: don't overflow ──────────────────── */
@media (max-width: 768px) {
  .ob-checklist-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
  .ob-checklist-time {
    align-self: flex-end;
  }
}

/* ── Empty states ─────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  text-align: center;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-text-faint);
}
.empty-state-icon svg {
  width: 24px;
  height: 24px;
}
.empty-state-title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 360px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.empty-state-action .btn {
  margin-top: var(--space-2);
}
@media (max-width: 768px) {
  .empty-state {
    padding: var(--space-8) var(--space-4);
  }
  .empty-state-icon {
    width: 48px;
    height: 48px;
  }
}

/* ── Auth Loading Spinner ─────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ── Certificate Progress Empty State ──────────────────────── */
.cert-progress-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.cert-progress-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  text-align: left;
}
.cert-progress-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-progress-icon svg {
  width: 24px; height: 24px;
  color: var(--color-primary);
}
.cert-progress-title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin: 0;
}
.cert-progress-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: var(--space-1) 0 0;
}
.cert-progress-bar-wrap {
  height: 8px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  overflow: hidden;
}
.cert-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out);
}
.cert-module-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}
.cert-module-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
}
.cert-module-done {
  opacity: 0.7;
}
.cert-module-check {
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-divider);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-module-done .cert-module-check {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.cert-module-done .cert-module-check svg {
  width: 12px; height: 12px;
  color: var(--color-primary-text);
}
.cert-module-name {
  flex: 1;
  color: var(--color-text);
  font-weight: var(--weight-medium);
}
.cert-module-done .cert-module-name {
  text-decoration: line-through;
  color: var(--color-text-muted);
}
.cert-module-status {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: var(--weight-medium);
}

/* ── Event badges grouping ──────────────────────────────────── */
.event-badges-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

/* ── Circle empty reflections improvement ────────────────── */
.circle-empty-reflections {
  padding: var(--space-8) var(--space-4);
}
.circle-empty-reflections .empty-state-desc {
  max-width: 380px;
  margin: 0 auto;
}

/* ── Improved focus indicators for accessibility ─────────── */
.btn:focus-visible,
.tab-btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible,
.sidebar-link:focus-visible,
.fr-vote-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── Toggle switch a11y labels ───────────────────────────── */
.toggle-switch {
  position: relative;
}
.toggle-label-on,
.toggle-label-off {
  position: absolute;
  font-size: 9px;
  font-weight: var(--weight-semibold);
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}
.toggle-label-on {
  left: 6px;
  color: var(--color-primary-text);
  opacity: 0;
}
.toggle-label-off {
  right: 6px;
  color: var(--color-text-faint);
  opacity: 1;
}
.toggle-input:checked ~ .toggle-slider .toggle-label-on { opacity: 1; }
.toggle-input:checked ~ .toggle-slider .toggle-label-off { opacity: 0; }


/* ── Facilitator Selector (multi-select chips) ──────────────── */
.facilitator-selector {
  display: flex;
  flex-direction: column;
}
.facilitator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.facilitator-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.facilitator-chip .chip-remove {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.1em;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.6;
}
.facilitator-chip .chip-remove:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   Help & Guide Page — Comprehensive Redesign
   ═══════════════════════════════════════════════════════════════ */

/* ── Search Bar ───────────────────────────────────────────────── */
.guide-search-wrap {
  position: relative;
  max-width: 560px;
  margin-bottom: var(--space-6);
}
.guide-search-wrap svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.guide-search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-8);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 15%, transparent);
}
.guide-search-input::placeholder {
  color: var(--color-text-muted);
}
.guide-search-clear {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 2px;
  display: none;
  line-height: 1;
}
.guide-search-clear.visible {
  display: block;
}
.guide-no-results {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
}
.guide-no-results svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
  opacity: 0.4;
}
.guide-no-results p {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.guide-no-results small {
  font-size: var(--text-sm);
}

/* ── Navigation Pills ─────────────────────────────────────────── */
.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.guide-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.guide-nav-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.guide-nav-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface));
}
.guide-nav-pill.active {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  color: var(--color-text);
}

/* ── Section Headers ──────────────────────────────────────────── */
.guide-section {
  margin-bottom: var(--space-6);
  scroll-margin-top: var(--space-8);
}
.guide-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.guide-section-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
  flex-shrink: 0;
}
.guide-section-icon svg {
  width: 20px;
  height: 20px;
}
.guide-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin: 0;
}
.guide-section-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Getting Started Steps ────────────────────────────────────── */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}
.guide-step-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-step-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-accent) 8%, transparent);
}
.guide-step-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.guide-step-content h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-1) 0;
  color: var(--color-text);
}
.guide-step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Feature Cards Grid ───────────────────────────────────────── */
.guide-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}
.guide-feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.15s;
  cursor: default;
}
.guide-feature-card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 50%, var(--color-border));
  transform: translateY(-1px);
}
.guide-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.guide-feature-icon svg {
  width: 18px;
  height: 18px;
}
.guide-feature-icon.gold { background: color-mix(in srgb, #FCB900 15%, transparent); color: #D4A000; }
.guide-feature-icon.blue { background: color-mix(in srgb, #3B82F6 12%, transparent); color: #3B82F6; }
.guide-feature-icon.green { background: color-mix(in srgb, #10B981 12%, transparent); color: #10B981; }
.guide-feature-icon.purple { background: color-mix(in srgb, #8B5CF6 12%, transparent); color: #8B5CF6; }
.guide-feature-icon.rose { background: color-mix(in srgb, #F43F5E 12%, transparent); color: #F43F5E; }
.guide-feature-icon.orange { background: color-mix(in srgb, #F97316 12%, transparent); color: #F97316; }
.guide-feature-icon.teal { background: color-mix(in srgb, #14B8A6 12%, transparent); color: #14B8A6; }
.guide-feature-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-1) 0;
  color: var(--color-text);
}
.guide-feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Tip Callout ──────────────────────────────────────────────── */
.guide-tip-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
}
.guide-tip-callout svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.guide-tip-callout p {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}
.guide-tip-callout strong {
  color: var(--color-accent);
}

/* ── FAQ Section ──────────────────────────────────────────────── */
.guide-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.guide-faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.guide-faq-item:hover {
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
}
.guide-faq-item.open {
  border-color: var(--color-accent);
}
.guide-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  transition: background 0.15s;
}
.guide-faq-question:hover {
  background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface));
}
.guide-faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
}
.guide-faq-item.open .guide-faq-chevron {
  transform: rotate(180deg);
}
.guide-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.guide-faq-answer-inner {
  padding: 0 var(--space-4) var(--space-4) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}

/* ── Contact Cards ────────────────────────────────────────────── */
.guide-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}
.guide-contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.guide-contact-card:hover {
  border-color: var(--color-accent);
}
.guide-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.guide-contact-info h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin: 0 0 2px 0;
  color: var(--color-text);
}
.guide-contact-info p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}
.guide-contact-info a {
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-decoration: none;
}
.guide-contact-info a:hover {
  text-decoration: underline;
}

/* ── Quick Links Bar ──────────────────────────────────────────── */
.guide-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.guide-quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.guide-quick-link svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.guide-quick-link:hover {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface));
  transform: translateY(-1px);
}

/* ── Impact Charter Stages ────────────────────────────────────── */
.guide-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.guide-stage-card {
  text-align: center;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}
.guide-stage-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.guide-stage-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-1) 0;
  color: var(--color-text);
}
.guide-stage-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Module List ──────────────────────────────────────────────── */
.guide-module-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.guide-module-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.guide-module-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  flex-shrink: 0;
}
.guide-module-item h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin: 0;
  color: var(--color-text);
}
.guide-module-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Search highlight ─────────────────────────────────────────── */
.guide-highlight {
  background: color-mix(in srgb, var(--color-accent) 25%, transparent);
  border-radius: 2px;
  padding: 0 1px;
}

/* ── Hidden by search filter ──────────────────────────────────── */
.guide-section.guide-hidden {
  display: none;
}

/* ── Responsive adjustments ───────────────────────────────────── */
@media (max-width: 640px) {
  .guide-features-grid {
    grid-template-columns: 1fr;
  }
  .guide-steps {
    grid-template-columns: 1fr;
  }
  .guide-quick-links {
    grid-template-columns: 1fr 1fr;
  }
  .guide-contact-grid {
    grid-template-columns: 1fr;
  }
  .guide-stages {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Operations Center ────────────────────────────────────────── */
.ops-context-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.ops-context-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.ops-context-label svg { width: 16px; height: 16px; }
.ops-context-select {
  flex: 1;
  max-width: 400px;
  font-size: var(--text-sm);
}

.ops-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.ops-stat {
  text-align: center;
  padding: var(--space-3) var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.ops-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  margin-bottom: 4px;
}
.ops-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.ops-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.ops-action-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.ops-action-card:hover {
  border-color: var(--color-primary);
}
.ops-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ops-action-icon svg { width: 20px; height: 20px; }
.ops-action-info {
  flex: 1;
  min-width: 0;
}
.ops-action-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: 2px;
}
.ops-action-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.ops-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.ops-section-header svg { width: 14px; height: 14px; }

/* Phase bar */
.ops-phase-bar {
  display: flex;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-2);
  gap: 2px;
}
.ops-phase-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  min-width: 28px;
}

/* Roster */
.ops-roster {
  display: flex;
  flex-direction: column;
}
.ops-roster-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
}
.ops-roster-row:last-child { border-bottom: none; }
.ops-roster-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}
.ops-roster-info {
  flex: 1;
  min-width: 0;
}
.ops-roster-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-roster-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-roster-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  width: 120px;
}
.ops-roster-bar {
  flex: 1;
  height: 6px;
  background: var(--color-surface-alt);
  border-radius: 3px;
  overflow: hidden;
}
.ops-roster-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.ops-roster-pct {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  width: 32px;
  text-align: right;
}

/* Communications */
.ops-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.ops-recipient-chip {
  padding: 2px var(--space-2);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.ops-recipient-more {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-color: transparent;
}
.ops-templates {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.ops-template-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}

/* Finance */
.ops-finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.ops-finance-stat {
  text-align: center;
}
.ops-finance-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1.2;
}
.ops-finance-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.ops-stipend-list {
  display: flex;
  flex-direction: column;
}
.ops-stipend-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
}
.ops-stipend-row:last-child { border-bottom: none; }
.ops-stipend-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  min-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-stipend-bar-mini {
  flex: 1;
  height: 6px;
  background: var(--color-surface-alt);
  border-radius: 3px;
  overflow: hidden;
}
.ops-stipend-fill-mini {
  height: 100%;
  border-radius: 3px;
  background: var(--color-success);
  transition: width 0.3s ease;
}
.ops-stipend-amount {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  min-width: 100px;
  text-align: right;
}

/* Certificates */
.ops-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.ops-cert-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--color-success-bg);
  border-radius: var(--radius-sm);
}
.ops-cert-check {
  color: var(--color-success);
  flex-shrink: 0;
}
.ops-cert-check svg { width: 14px; height: 14px; }
.ops-cert-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Badge Management ─────────────────────────────── */
.ops-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.ops-badge-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.ops-badge-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}
.ops-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ops-badge-icon svg {
  width: 24px;
  height: 24px;
}
.ops-badge-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ops-badge-icon-sm svg {
  width: 16px;
  height: 16px;
}
.ops-badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ops-badge-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-badge-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ops-badge-table {
  margin-top: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ops-badge-table-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-surface-sunken);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ops-badge-table-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s ease;
}
.ops-badge-table-row:last-child {
  border-bottom: none;
}
.ops-badge-table-row:hover {
  background: var(--color-surface-sunken);
}
.ops-badge-table-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ops-fellow-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.ops-fellow-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: var(--text-sm);
}
.ops-fellow-check-item:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.ops-fellow-check-item input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .ops-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .ops-actions-grid {
    grid-template-columns: 1fr;
  }
  .ops-action-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .ops-context-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .ops-context-select {
    max-width: 100%;
    width: 100%;
  }
  .ops-finance-summary {
    grid-template-columns: 1fr;
  }
  .ops-roster-progress {
    width: 80px;
  }
  .ops-badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ops-badge-table-head,
  .ops-badge-table-row {
    gap: 8px;
    padding: 8px 10px;
  }
  .ops-fellow-checks {
    grid-template-columns: 1fr;
  }
}


/* ── Member Directory ──────────────────────────────────────── */
.md-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.md-search-wrap {
  position: relative;
  flex: 1;
}
.md-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  display: flex;
}
.md-search-icon svg { width: 16px; height: 16px; }
.md-search {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color 0.15s;
}
.md-search:focus {
  outline: none;
  border-color: var(--color-primary);
}
.md-filters {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.md-filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.md-filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.md-filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #212121;
}
.md-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.md-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}
.md-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all 0.2s;
}
.md-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.md-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.md-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.md-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.md-card-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-card-project {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}
.md-card-project svg { width: 13px; height: 13px; flex-shrink: 0; }
.md-card-org {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.md-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: var(--color-text-muted);
}
.md-card-cohort {
  font-weight: 500;
}
.md-card-active {
  opacity: 0.7;
}

/* ── Member Profile ────────────────────────────────────────── */
.mp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--space-4);
  transition: color 0.15s;
}
.mp-back:hover { color: var(--color-primary); }
.mp-back svg { width: 16px; height: 16px; }
.mp-header-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.mp-header-top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.mp-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.mp-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mp-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.mp-pronouns {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.mp-title-org {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 4px 0 0;
}
.mp-contact-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.mp-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.mp-contact-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.mp-contact-btn svg { width: 16px; height: 16px; }
.mp-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}
.mp-detail-card .card-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mp-detail-card .card-title svg { width: 16px; height: 16px; }
.mp-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.mp-detail-row:last-child { border-bottom: none; }
.mp-detail-label {
  color: var(--color-text-muted);
  font-weight: 500;
}
.mp-detail-value {
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-progress-wrap {
  width: 80px;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}
.mp-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.3s;
}

/* ── Roadmap Hub ───────────────────────────────────────────── */
.rh-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
}
.rh-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.rh-tab:hover { color: var(--color-text); }
.rh-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.rh-tab svg { width: 16px; height: 16px; }
.rh-admin-bar {
  margin-bottom: var(--space-4);
}
.rh-add-form {
  max-width: 600px;
}
.rh-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rh-phase-select {
  padding: 3px 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 11px;
  cursor: pointer;
}
.rh-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.rh-action-btn:hover {
  color: var(--color-error);
  background: color-mix(in srgb, var(--color-error) 10%, transparent);
}
.rh-action-btn svg { width: 14px; height: 14px; }
.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
}
.btn-xs svg { width: 12px; height: 12px; }
.fr-meta .rh-phase-select {
  margin-left: auto;
}
.fr-meta .btn-xs {
  white-space: nowrap;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .md-grid {
    grid-template-columns: 1fr;
  }
  .mp-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .mp-details-grid {
    grid-template-columns: 1fr;
  }
  .rh-tabs {
    overflow-x: auto;
  }
}


/* ── Header Segmented Controls ─────────────────────────────── */
.hdr-seg {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 1px;
}
.hdr-seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.hdr-seg-btn svg {
  width: 16px;
  height: 16px;
}
.hdr-seg-btn:hover {
  color: var(--color-text);
  background: var(--color-surface);
}
.hdr-seg-btn.active {
  background: var(--color-primary);
  color: #212121;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.hdr-seg-btn.active svg {
  color: #212121;
}
.hdr-seg-sys {
  padding: 0 8px;
}

@media (max-width: 600px) {
  .hdr-seg {
    display: none;
  }
}

/* ── Bulk Actions ──────────────────────────────────────────── */
.bulk-cb { width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer; }
.bulk-action-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--color-primary-highlight); border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg); margin-bottom: var(--space-3);
  animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.bulk-bar-left { display: flex; align-items: center; gap: var(--space-3); }
.bulk-count { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--color-primary); }
.bulk-bar-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.bulk-dropdown-wrap { position: relative; }
.bulk-dropdown {
  position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 180px; background: var(--color-surface-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  margin-top: var(--space-1); overflow: hidden;
}
.bulk-drop-item {
  display: block; width: 100%; padding: var(--space-2) var(--space-3);
  text-align: left; font-size: var(--text-sm); border: none; background: none;
  color: var(--color-text); cursor: pointer; transition: background 0.15s;
}
.bulk-drop-item:hover { background: var(--color-surface-offset); }
.bulk-drop-footer { padding: var(--space-2); border-top: 1px solid var(--color-border); }
.bulk-user-preview {
  max-height: 240px; overflow-y: auto; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-2); margin-top: var(--space-3);
}
.bulk-preview-row {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
}
.bulk-preview-row:nth-child(even) { background: var(--color-surface-offset); }

/* ── Column Picker ──────────────────────────────────────────── */
.column-picker-dropdown {
  position: absolute; top: 100%; right: 0; z-index: 100;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: var(--space-2); min-width: 180px; margin-top: var(--space-1);
}
.column-picker-title {
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  color: var(--color-text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; padding: var(--space-1) var(--space-2);
  margin-bottom: var(--space-1);
}
.column-picker-item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
  cursor: pointer; font-size: var(--text-sm); color: var(--color-text);
  transition: background 0.15s;
}
.column-picker-item:hover { background: var(--color-surface-offset); }
.column-picker-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--color-primary);
  cursor: pointer; flex-shrink: 0;
}

/* ── User Name Link ─────────────────────────────────────────── */
.user-name-link {
  transition: color 0.15s;
}
.user-name-link:hover {
  color: var(--color-primary) !important;
  text-decoration: underline;
}
