/* =============================================================================
   CGI Staff Onboarding Portal — styles (v2)
   Mobile-first. Clickable logo. Breadcrumbs. Toasts. Better focus states.
   ============================================================================= */

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

:root {
  --navy: #1e3a5f;
  --navy-dark: #142842;
  --navy-light: #2d4f7a;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  --green: #059669;
  --green-light: #d1fae5;
  --red: #dc2626;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --purple: #7c3aed;

  --bg: #f5f7fa;
  --card: #ffffff;
  --card-hover: #fafbfc;

  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --border: #e5e7eb;
  --border-dark: #d1d5db;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  --focus-ring: 0 0 0 3px rgba(30, 58, 95, 0.2);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); }

/* Universal focus ring for accessibility */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* =============================================================================
   LAYOUT
   ============================================================================= */
.container { max-width: 720px; margin: 0 auto; padding: 16px; }

/* =============================================================================
   HEADER — with clickable logo + text-labeled nav
   ============================================================================= */
header.site-header {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
header.site-header .inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}

/* Clickable logo (primary way back to home) */
.logo-link {
  display: flex; align-items: center; gap: 10px;
  color: white; text-decoration: none;
  padding: 6px; margin: -6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  min-width: 0; flex: 1;
}
.logo-link:hover { background: rgba(255,255,255,0.08); }
.logo-link:active { background: rgba(255,255,255,0.15); }

.logo-badge {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.logo-text { min-width: 0; }
.logo-brand {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo-sub { font-size: 11px; opacity: 0.75; font-weight: 500; }

/* Header nav */
.header-nav { display: flex; gap: 4px; flex-shrink: 0; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 10px;
  color: white; text-decoration: none;
  font-size: 11px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  min-width: 52px;
}
.nav-item:hover { background: rgba(255,255,255,0.08); }
.nav-item:active { background: rgba(255,255,255,0.15); }
.nav-item .nav-icon { font-size: 18px; line-height: 1; }
.nav-item .nav-label { opacity: 0.9; }

/* View-as banner */
.view-as-banner {
  background: var(--purple); color: white;
  padding: 10px 16px; font-size: 13px;
  position: sticky; top: 62px; z-index: 90;
}
.view-as-banner .inner {
  max-width: 720px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.btn-tiny {
  background: rgba(255,255,255,0.2); color: white;
  padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-tiny:hover { background: rgba(255,255,255,0.3); }

/* Progress bar under header */
.progress-under-header {
  background: var(--navy-dark);
  padding: 10px 16px 12px;
  color: white;
  position: sticky; top: 62px; z-index: 90;
}
.progress-under-header .inner { max-width: 720px; margin: 0 auto; }
.progress-under-header .label {
  display: flex; justify-content: space-between; font-size: 13px;
  margin-bottom: 6px; opacity: 0.9;
}
.progress-track {
  background: rgba(255,255,255,0.15);
  height: 8px; border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 4px; transition: width 0.4s ease;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all 0.15s ease;
  min-height: 44px;
  -webkit-appearance: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-primary:disabled { background: var(--text-light); cursor: not-allowed; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: #f9fafb; border-color: var(--navy); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }

/* =============================================================================
   BREADCRUMBS (module view)
   ============================================================================= */
.breadcrumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; margin-bottom: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--navy); text-decoration: none;
  padding: 4px 8px; margin: -4px -8px;
  border-radius: 4px; font-weight: 600;
}
.breadcrumbs a:hover { background: #f3f4f6; }
.breadcrumbs .separator { color: var(--text-light); }
.breadcrumbs .current {
  color: var(--text); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;
}

/* =============================================================================
   TOAST NOTIFICATIONS
   ============================================================================= */
.toast-container {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  z-index: 1000; pointer-events: none;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: var(--navy-dark); color: white;
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  max-width: 400px; width: 100%;
  display: flex; align-items: center; gap: 10px;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--navy); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toast-out {
  to { transform: translateY(20px); opacity: 0; }
}

/* =============================================================================
   LOGIN VIEW
   ============================================================================= */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.login-card {
  background: var(--card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 400px;
}
.login-logo {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.login-card h1 {
  font-size: 24px; text-align: center;
  margin-bottom: 6px; color: var(--navy);
}
.login-card .subtitle {
  color: var(--text-muted); font-size: 15px; text-align: center;
  margin-bottom: 28px;
}
.login-card label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
}
.login-card input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px;
  margin-bottom: 16px;
  -webkit-appearance: none;
}
.login-card input:focus {
  outline: none; border-color: var(--navy);
  box-shadow: var(--focus-ring);
}
.login-hint {
  margin-top: 20px; padding: 14px;
  background: #f9fafb; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-muted); line-height: 1.6;
}
.login-hint strong { color: var(--text); }
.login-hint code {
  background: white; padding: 2px 6px; border-radius: 4px;
  font-size: 11px; color: var(--navy); font-weight: 600;
  display: inline-block; margin: 2px 2px;
  border: 1px solid var(--border);
}

/* =============================================================================
   DASHBOARD
   ============================================================================= */
.welcome-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white; padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.welcome-banner h2 { font-size: 18px; margin-bottom: 4px; }
.welcome-banner p { font-size: 14px; opacity: 0.95; }

.next-up-section { margin-bottom: 28px; }
.next-up-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.next-up-label::before {
  content: "→"; font-size: 18px; color: var(--accent);
}
.next-up-card {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s ease;
  display: block; text-decoration: none; color: inherit;
}
.next-up-card:active { transform: scale(0.98); }
.next-up-card:hover { box-shadow: var(--shadow-lg); }
.next-up-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.next-up-card .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.next-up-card .cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-dark); font-weight: 600; font-size: 14px;
}

.section-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 700;
  margin: 24px 0 12px 4px;
}
.training-grid { display: grid; gap: 10px; }

.training-card {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 64px;
  text-decoration: none; color: inherit;
}
.training-card:hover { background: var(--card-hover); border-color: var(--border-dark); }
.training-card:active { transform: scale(0.98); }
.training-card.done { opacity: 0.7; }
.training-card.done h3 { text-decoration: line-through; text-decoration-color: var(--text-light); }

.status-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.status-icon.todo { background: #f3f4f6; color: var(--text-muted); }
.status-icon.done { background: var(--green-light); color: var(--green); }
.status-icon.optional { background: #fef3c7; color: var(--accent-dark); }

/* IdentoGO code chips */
.code-chip {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 20px; font-weight: 700; color: var(--navy);
  background: white; padding: 8px 14px; border-radius: 6px;
  display: inline-block; border: 1px solid #bfdbfe; margin-top: 4px;
  letter-spacing: 1px; user-select: all;
}

/* Phone-friendly upload control */
.upload-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 32px 20px;
  border: 2px dashed var(--border-dark); border-radius: var(--radius);
  background: #fafbfc; cursor: pointer; text-align: center;
  transition: all 0.15s ease;
}
.upload-drop:hover, .upload-drop:active { border-color: var(--navy); background: #f0f4f8; }
.upload-drop .upload-icon { font-size: 40px; }
.upload-drop .upload-text { font-size: 16px; font-weight: 600; color: var(--navy); }
.upload-drop .upload-sub { font-size: 12px; color: var(--text-muted); }

.training-card .body { flex: 1; min-width: 0; }
.training-card h3 {
  font-size: 15px; color: var(--text); font-weight: 600;
  line-height: 1.3; margin-bottom: 4px;
}
.training-card .meta { font-size: 12px; color: var(--text-muted); }
.training-card .meta span + span::before { content: " · "; margin: 0 2px; }
.training-card .chevron {
  color: var(--text-light); font-size: 22px; flex-shrink: 0;
  line-height: 1;
}

/* =============================================================================
   MODULE VIEW
   ============================================================================= */
.module-header {
  background: var(--card); padding: 20px;
  border-radius: var(--radius); margin-bottom: 16px;
  border: 1px solid var(--border);
}
.module-header h1 {
  font-size: 22px; color: var(--navy);
  margin-bottom: 10px; line-height: 1.25;
}
.module-header .description {
  color: var(--text); margin-top: 14px; font-size: 15px;
}
.module-header .meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.module-header .meta span { display: inline-flex; align-items: center; gap: 4px; }

.video-placeholder {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  aspect-ratio: 16/9; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; text-align: center; padding: 20px;
  position: relative; overflow: hidden;
}
.video-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
}
.video-placeholder .content { position: relative; z-index: 1; }
.video-placeholder .play-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 28px;
}
.video-placeholder strong { display: block; font-size: 16px; margin-bottom: 6px; }
.video-placeholder .note { font-size: 12px; opacity: 0.7; max-width: 320px; margin: 8px auto 0; }

.external-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 18px; border-radius: var(--radius); margin-bottom: 16px;
}
.external-card h4 { color: #92400e; margin-bottom: 8px; font-size: 15px; }
.external-card p { color: #78350f; font-size: 14px; margin-bottom: 12px; line-height: 1.5; }
.access-codes {
  background: white;
  padding: 12px 14px; border-radius: var(--radius-sm);
  margin: 12px 0;
  font-family: "SF Mono", Monaco, monospace; font-size: 13px;
  border: 1px solid #fde68a;
}
.access-codes strong {
  color: var(--navy); font-family: -apple-system, sans-serif;
  font-size: 12px; display: block; margin-bottom: 6px;
}
.access-codes code {
  background: #fef3c7; padding: 3px 8px; border-radius: 4px;
  font-weight: 700; color: #92400e;
}

.card {
  background: var(--card); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 16px;
}
.card h3 {
  font-size: 15px; margin-bottom: 14px; color: var(--navy);
  font-weight: 700;
}
/* Readable spacing for rich content inside cards (handbook, job descriptions, info pages) */
.card p { line-height: 1.65; margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 24px; margin: 8px 0 14px; line-height: 1.6; }
.card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card li { margin-bottom: 8px; padding-left: 3px; }
.card li:last-child { margin-bottom: 0; }
.card strong { color: var(--navy); }

.resources-list { list-style: none; }
.resources-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.resources-list li:last-child { border-bottom: none; }
.resources-list a {
  color: var(--navy); text-decoration: none; font-weight: 500;
  display: flex; align-items: center; gap: 10px; flex: 1;
}
.resources-list .file-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: #eff6ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* Quiz */
.quiz-question { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.quiz-question:last-of-type { border-bottom: none; margin-bottom: 16px; padding-bottom: 0; }
.q-num {
  display: inline-block; background: var(--navy); color: white;
  border-radius: 50%; width: 24px; height: 24px;
  line-height: 24px; text-align: center;
  font-size: 13px; font-weight: 700; margin-right: 8px;
}
.quiz-question .q-text { font-weight: 600; margin-bottom: 14px; font-size: 15px; }
.quiz-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s; font-size: 14px;
}
.quiz-option:hover { background: #f9fafb; border-color: var(--border-dark); }
.quiz-option input { margin-top: 3px; flex-shrink: 0; cursor: pointer; }
.quiz-option.correct { border-color: var(--green); background: var(--green-light); color: #065f46; }
.quiz-option.incorrect { border-color: var(--red); background: #fee2e2; color: #991b1b; }

/* =============================================================================
   ADMIN VIEW
   ============================================================================= */
.admin-hero {
  background: var(--card); padding: 20px;
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.admin-hero h1 { font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.admin-hero p { color: var(--text-muted); font-size: 14px; }

/* Admin stats row */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card); padding: 16px 12px;
  border-radius: var(--radius); border: 1px solid var(--border);
  text-align: center;
}
.stat-value {
  font-size: 28px; font-weight: 800; color: var(--navy);
  line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 600;
}
.stat-card.alert .stat-value { color: var(--accent-dark); }
.stat-card.success .stat-value { color: var(--green); }

/* Admin quick actions */
.quick-actions {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 12px; margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.quick-actions::-webkit-scrollbar { display: none; }
.action-chip {
  background: var(--card); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  white-space: nowrap; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.action-chip:hover { background: var(--navy); color: white; border-color: var(--navy); }
.action-chip:active { transform: scale(0.97); }

/* Admin search */
.admin-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  padding: 12px 14px; border-radius: var(--radius);
  margin-bottom: 16px;
}
.admin-search input {
  border: none; background: transparent;
  flex: 1; font-size: 15px; outline: none;
  min-width: 0;
}
.admin-search .search-icon { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }

/* Staff list */
.staff-list { display: grid; gap: 10px; }
.staff-card {
  background: var(--card); padding: 16px;
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all 0.15s ease;
  text-decoration: none; color: inherit;
}
.staff-card:hover { background: var(--card-hover); }
.staff-card:active { transform: scale(0.99); }
.staff-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.staff-card .info { flex: 1; min-width: 0; }
.staff-card .name { font-size: 15px; font-weight: 600; color: var(--text); }
.staff-card .role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.staff-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.staff-tags .tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  background: #eef2ff; color: var(--navy);
  padding: 2px 7px; border-radius: 10px;
}
.staff-card .progress-inline {
  background: #f3f4f6; height: 6px; border-radius: 3px;
  margin-top: 8px; overflow: hidden;
}
.staff-card .progress-inline-fill {
  height: 100%; background: var(--accent); border-radius: 3px;
}
.status-pill {
  padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  flex-shrink: 0;
}
.status-pill.invited { background: #fef3c7; color: #92400e; }
.status-pill.not-started { background: #f3f4f6; color: #6b7280; }
.status-pill.locked { background: #fef3c7; color: #92400e; }
.login-foot { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.status-pill.in-progress { background: #dbeafe; color: #1e40af; }
.status-pill.complete { background: var(--green-light); color: #065f46; }

/* Activity feed */
.activity-feed {
  background: var(--card); padding: 20px;
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 20px;
}
.activity-feed h2 {
  font-size: 16px; color: var(--navy); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.activity-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.activity-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.activity-body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.activity-body strong { color: var(--navy); }
.activity-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.prototype-banner {
  background: #fef3c7; color: #92400e;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px;
  margin-bottom: 16px; border-left: 4px solid var(--accent);
  line-height: 1.4;
}

/* Training library summary */
.roles-preview {
  margin-top: 20px; background: var(--card);
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.roles-preview h2 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.roles-preview > p { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.role-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.role-row:last-child { border-bottom: none; }
.role-row strong { color: var(--text); font-size: 14px; }
.role-row small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* =============================================================================
   UTILITIES
   ============================================================================= */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.flex-row { display: flex; gap: 12px; align-items: center; }

/* =============================================================================
   TABLET / DESKTOP
   ============================================================================= */
@media (min-width: 640px) {
  .container { padding: 24px; }
  header.site-header { padding: 14px 24px; }
  .login-card { padding: 40px; }
  .module-header { padding: 28px; }
  .module-header h1 { font-size: 26px; }
  .logo-brand { font-size: 16px; }
  .nav-item { padding: 8px 14px; min-width: 64px; }
}

/* iOS safe area for home-bar devices */
@supports (padding: max(0px)) {
  header.site-header {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}
