/* ASCEND — Caribbean Career Intelligence Prototype */

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;
  --cloud: #ffffff;
  --cloud-soft: #f8fcff;
  --navy: #0c4a6e;
  --navy-light: #075985;
  --navy-mid: #0369a1;
  --charcoal: #0c4a6e;
  --charcoal-light: #075985;
  --charcoal-mid: #0369a1;
  --accent: #0284c7;
  --accent-light: #38bdf8;
  --accent-dark: #0369a1;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-700: #15803d;
  --green-glow: rgba(34, 197, 94, 0.35);
  --accent-glow: rgba(14, 165, 233, 0.28);
  --sand: #f0f9ff;
  --sand-dark: #e0f2fe;
  --sand-deep: #bae6fd;
  --cream: #f0f9ff;
  --cream-dark: #e0f2fe;
  --teal: #0284c7;
  --teal-light: #38bdf8;
  --teal-glow: rgba(56, 189, 248, 0.25);
  --gold: #38bdf8;
  --gold-light: #7dd3fc;
  --gold-dark: #0284c7;
  --gold-glow: rgba(56, 189, 248, 0.28);
  --text: #0c4a6e;
  --text-muted: #475569;
  --text-light: #64748b;
  --white: #ffffff;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --border: rgba(12, 74, 110, 0.1);
  --shadow: 0 4px 24px rgba(12, 74, 110, 0.08);
  --shadow-lg: 0 16px 48px rgba(12, 74, 110, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #6ec5e8;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#app {
  position: relative;
  z-index: 1;
}

/* Sky & cloud backdrop — 1080p SVG layers */
.sky-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #6ec5e8;
}

.sky-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cloud {
  position: absolute;
  border-radius: 0;
  background: none;
  --drift-x: 0px;
  --drift-y: 0px;
  transform: translate3d(var(--drift-x), var(--drift-y), 0);
  animation: cloudAscend linear infinite;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, bottom, opacity;
  transition: filter 0.25s ease, opacity 0.25s ease;
  filter: drop-shadow(0 10px 22px rgba(71, 142, 183, 0.24));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cloud::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/cloud-hd.svg?v=5') center / contain no-repeat;
  image-rendering: auto;
}

.cloud:hover,
.cloud.cloud-active {
  filter: drop-shadow(0 12px 26px rgba(71, 142, 183, 0.32)) brightness(1.05);
  opacity: 1 !important;
}

.cloud.cloud-active {
  animation-duration: calc(var(--ascend-duration, 50s) * 0.65) !important;
}

.cloud.cloud-boost {
  animation: cloudBoost 0.47s ease-out forwards !important;
}

.cloud-1 { width: 340px; height: 168px; left: -3%; --ascend-duration: 17s; animation-duration: 17s; animation-delay: 0s; opacity: 0.98; }
.cloud-2 { width: 420px; height: 205px; right: -6%; --ascend-duration: 21s; animation-duration: 21s; animation-delay: -4s; opacity: 0.95; }
.cloud-3 { width: 285px; height: 140px; left: 10%; --ascend-duration: 15s; animation-duration: 15s; animation-delay: -8s; opacity: 0.92; }
.cloud-4 { width: 365px; height: 178px; right: 12%; --ascend-duration: 19s; animation-duration: 19s; animation-delay: -3s; opacity: 0.9; }
.cloud-5 { width: 310px; height: 152px; left: 22%; --ascend-duration: 17s; animation-duration: 17s; animation-delay: -11s; opacity: 0.88; }
.cloud-6 { width: 395px; height: 192px; right: 3%; --ascend-duration: 23s; animation-duration: 23s; animation-delay: -6s; opacity: 0.9; }

@keyframes cloudAscend {
  0% {
    bottom: -14%;
    opacity: 0;
    transform: translate3d(var(--drift-x), calc(24px + var(--drift-y)), 0);
  }
  8% { opacity: 0.95; }
  50% {
    transform: translate3d(calc(var(--drift-x) + 18px), var(--drift-y), 0);
  }
  92% { opacity: 0.75; }
  100% {
    bottom: 108%;
    opacity: 0;
    transform: translate3d(calc(var(--drift-x) - 12px), calc(-20px + var(--drift-y)), 0);
  }
}

@keyframes cloudBoost {
  0% { filter: drop-shadow(0 10px 22px rgba(71, 142, 183, 0.24)) brightness(1); }
  100% {
    bottom: 108%;
    opacity: 0;
    filter: drop-shadow(0 14px 28px rgba(71, 142, 183, 0.28)) brightness(1.1);
    transform: translate3d(var(--drift-x), calc(-80px + var(--drift-y)), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation: none;
    bottom: 12%;
    opacity: 0.85;
    pointer-events: none;
  }
  .cloud-1 { bottom: 8%; left: 5%; }
  .cloud-2 { bottom: 22%; right: 8%; }
  .cloud-3 { bottom: 38%; left: 15%; }
  .cloud-4 { bottom: 55%; right: 18%; }
  .cloud-5 { bottom: 72%; left: 28%; }
  .cloud-6 { bottom: 85%; right: 6%; }
}

#view-landing,
#view-onboarding,
#view-processing {
  background: transparent;
}

/* Views */
.view { display: none; min-height: 100vh; }
.view.active { display: block; }

/* Buttons */
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-400));
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 2px 14px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }

.btn-outline {
  background: var(--white);
  color: var(--sky-800);
  border: 2px solid var(--sky-200);
}
.btn-outline:hover { background: var(--sky-800); color: var(--white); border-color: var(--sky-800); }

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

.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  padding: 0;
}
.btn-back:hover { color: var(--teal); }

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  gap: 1rem;
}

.nav-brand, .nav-brand.compact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.logo-mark .logo-pyramid-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 5px rgba(21, 128, 61, 0.35)); }
.logo-mark.large { width: 64px; height: 64px; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--sky-600); }
.nav-links a.active {
  color: var(--sky-700);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--sky-500);
}
.nav-brand-link { cursor: pointer; }
.nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 24px rgba(14, 116, 178, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--sky-200);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--sky-700);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(14, 116, 178, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--sky-600); }

.account-img-individual,
.audience-img-individual {
  object-position: center center;
}
.individual-hero-img {
  background-position: center 35%;
}
.individual-hero-img.individual-hero-img-wide {
  background-position: 15% 40%;
}

/* Hero */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--sky-800);
  color: var(--sky-100);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.hero-acronym {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  max-width: 520px;
}
.hero-acronym-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.hero-acronym-expansion {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 500;
}
.hero-acronym-expansion strong {
  color: var(--teal);
  font-weight: 700;
}
.hero-split .hero-acronym { margin-left: 0; margin-right: auto; }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--sky-600); }

.hero-sub {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(12, 74, 110, 0.9);
  max-width: 680px;
  margin: 0 0 2.5rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.hero-sub-brand {
  font-weight: 700;
  color: var(--navy);
}

.hero-split .hero-sub { margin-left: 0; margin-right: 0; }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}

.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--navy);
  font-weight: 700;
}
.stat span { font-size: 0.8rem; color: var(--text-muted); }

/* Sections */
.section,
section[id] {
  scroll-margin-top: 5.5rem;
}
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  text-align: center;
  color: var(--navy);
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-icon .feature-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(3, 105, 161, 0.12));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.feature-card:hover .feature-icon .feature-icon-svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 10px rgba(3, 105, 161, 0.18));
}
.feature-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

.footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.footer-nav a {
  color: var(--sky-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.footer-nav a:hover { color: var(--sky-500); }
.footer-sub { margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-light); }

/* Onboarding */
.onboard-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.onboard-sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.progress-track {
  height: 4px;
  background: var(--navy-mid);
  border-radius: 2px;
  margin: 2rem 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.step-list {
  list-style: none;
  flex: 1;
}
.step-list li {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
  border-left: 2px solid var(--navy-mid);
  padding-left: 1rem;
  margin-left: 0.5rem;
  transition: all 0.3s;
}
.step-list li.done { color: var(--cream-dark); border-left-color: var(--teal); cursor: pointer; }
.step-list li.done:hover { color: var(--white); }
.step-list li.active { color: var(--teal-light); border-left-color: var(--teal-light); font-weight: 600; }

.onboard-main {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  max-width: 820px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
}

.onboard-main h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.onboard-main .step-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.onboard-actions {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
}

/* Form elements */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.option-card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.option-card:hover { border-color: var(--sky-300); }
.option-card.selected {
  border-color: var(--sky-600);
  background: rgba(224, 242, 254, 0.65);
  box-shadow: 0 0 0 1px var(--sky-400);
}
.option-card .option-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.option-card .option-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.option-card .option-icon { font-size: 1.25rem; margin-bottom: 0.5rem; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.chip:hover { border-color: var(--sky-300); }
.chip.selected { background: var(--sky-600); color: var(--white); border-color: var(--sky-600); }

select, input[type="text"], input[type="number"], textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sky-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
select.country-select { cursor: pointer; }

.range-wrap { display: flex; align-items: center; gap: 1rem; }
.range-wrap input[type="range"] { flex: 1; accent-color: var(--sky-600); }
.range-value { font-weight: 600; color: var(--sky-700); min-width: 3rem; text-align: right; }

/* Upload zones */
.upload-grid { display: grid; gap: 1rem; }
.upload-zone {
  border: 2px dashed var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--white);
  transition: all 0.2s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.04);
}
.upload-zone input[type="file"] { display: none; }
.upload-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.upload-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.upload-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.uploaded-files { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--cream);
  border-radius: 6px;
  font-size: 0.8rem;
}
.uploaded-file .file-name { color: var(--navy); font-weight: 500; }
.uploaded-file .file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.25rem;
}
.uploaded-file .file-remove:hover { color: var(--danger); }

.custom-input-wrap { margin-top: 1rem; }
.descriptor-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.descriptor-preview.loading { opacity: 0.6; }
.descriptor-preview strong { color: var(--teal); display: block; margin-bottom: 0.35rem; }

/* Credential verification panel */
.credential-panel { border-left: 4px solid var(--teal); }
.credential-panel.status-failed { border-left-color: var(--danger); }
.credential-panel.status-partial { border-left-color: var(--warning); }
.credential-panel.status-verified { border-left-color: var(--success); }

.credential-summary {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
}

.credential-docs { display: flex; flex-direction: column; gap: 0.6rem; }
.credential-doc {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  align-items: start;
}
.credential-doc .doc-name { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.credential-doc .doc-type { font-size: 0.7rem; color: var(--text-muted); }
.credential-doc .doc-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--text-muted); }
.credential-doc .doc-extracted { font-size: 0.75rem; color: var(--teal); }

.verify-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
}
.verify-badge.verified { background: var(--success); color: var(--white); }
.verify-badge.review_required { background: var(--warning); color: var(--white); }
.verify-badge.failed { background: var(--danger); color: var(--white); }

.credential-redirect {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius);
}
.credential-redirect h4 { font-size: 0.9rem; color: var(--danger); margin-bottom: 0.35rem; }
.credential-redirect p { font-size: 0.85rem; color: var(--text-muted); }
.credential-redirect .redirect-role {
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.5rem;
}

/* Role descriptor */
.role-descriptor-panel { border-left: 4px solid var(--coral); }
.role-desc-overview { font-size: 0.9rem; color: var(--navy); line-height: 1.7; margin-bottom: 0.75rem; }
.role-desc-block {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  padding-left: 1rem;
  border-left: 2px solid var(--cream-dark);
}
.role-desc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.role-desc-skills span {
  font-size: 0.75rem;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

/* Processing */
.processing-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: transparent;
  color: var(--navy);
  text-align: center;
}

.processing-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 48px rgba(14, 116, 178, 0.15);
  max-width: 480px;
  width: 100%;
}

.processing-visual {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--sky-400);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}
.pulse-ring.delay { animation-delay: 1s; }

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.processing-shell h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.processing-sub { color: var(--text-muted); margin-bottom: 2.5rem; }

.processing-steps {
  list-style: none;
  text-align: left;
  max-width: 400px;
}
.processing-steps li {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.4;
  transition: all 0.4s;
}
.processing-steps li.active { opacity: 1; color: var(--sky-700); }
.processing-steps li.done { opacity: 0.7; color: var(--text-muted); }
.processing-steps li.done::before { content: '✓ '; color: var(--success); }

/* Dashboard */
.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-nav-center { display: flex; align-items: center; gap: 0.75rem; }
.dash-user { font-weight: 600; font-size: 0.9rem; }
.dash-badge {
  background: var(--teal);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}
.dash-nav-actions { display: flex; gap: 0.5rem; }
.dash-nav .btn-ghost { color: var(--text-light); }
.dash-nav .btn-ghost:hover { color: var(--white); }
.dash-nav .btn-outline { border-color: var(--navy-mid); color: var(--white); }
.dash-nav .btn-outline:hover { background: var(--navy-light); }

.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 52px);
}

.dash-layout.dash-layout-full {
  grid-template-columns: 1fr;
}

.dash-sidebar {
  background: var(--navy-light);
  color: var(--white);
  padding: 1.25rem;
  border-right: 1px solid var(--border);
}

.sidebar-section { margin-bottom: 1rem; }
.sidebar-section h4 {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.sidebar-value {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
}
.sidebar-list {
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}
.sidebar-list li { padding: 0.2rem 0; }
.sidebar-list li::before { content: '• '; color: var(--sky-300); font-weight: 700; }

.fidelity-text { font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); line-height: 1.4; }

.fidelity-meter {
  height: 8px;
  background: var(--navy-mid);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.fidelity-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.dash-main {
  padding: 1.5rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

/* Panels */
.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hidden { display: none !important; }

/* RAG Panel */
.rag-panel { border-left: 4px solid var(--teal); }
.rag-narrative { margin-bottom: 1rem; }
.rag-summary {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.rag-summary strong { color: var(--teal); }
.rag-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--cream-dark);
}
.rag-scores {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}
.guidance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}
.guidance-list li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.guidance-icon { color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* Node detail popup */
.node-detail {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(10, 22, 40, 0.95);
  color: var(--white);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.node-detail.visible { opacity: 1; transform: translateY(0); }
.node-detail strong { color: var(--teal-light); }
.node-detail .nd-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

/* Conflicts */
.conflicts-panel { border-left: 4px solid var(--warning); }
.conflicts-list { display: flex; flex-direction: column; gap: 0.75rem; }

.conflict-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.conflict-severity {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  height: fit-content;
}
.conflict-severity.high { background: var(--danger); color: var(--white); }
.conflict-severity.medium { background: var(--warning); color: var(--white); }
.conflict-severity.low { background: var(--gold); color: var(--navy); }
.conflict-body h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 0.25rem; }
.conflict-body p { font-size: 0.8rem; color: var(--text-muted); }
.conflict-remedy {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 500;
}

/* Scores */
.scores-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.radar-wrap { display: flex; justify-content: center; }
#radar-chart { width: 100%; max-width: 280px; height: auto; }

.score-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.score-card {
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}
.score-card .score-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.score-card .score-value { font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.score-card .score-bar {
  height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.score-card .score-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* Career Map */
.map-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.map-tab {
  padding: 0.5rem 1rem;
  border: 1px solid #bae6fd;
  background: #f8fcff;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.map-tab.active { background: var(--sky-700); color: #ffffff; border-color: var(--sky-700); }
.map-tab:hover:not(.active) { background: #e0f2fe; border-color: #7dd3fc; color: var(--sky-800); }

.career-map-container {
  width: 100%;
  height: 420px;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.career-map-container svg { width: 100%; height: 100%; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.legend-item { display: flex; align-items: center; gap: 0.35rem; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cream-dark);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-item.future::before { background: var(--cream-dark); box-shadow: 0 0 0 2px var(--text-light); }
.timeline-item .tl-period {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.timeline-item .tl-title { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.timeline-item .tl-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Earnings */
.earnings-chart { display: flex; flex-direction: column; gap: 0.75rem; }
.earnings-row {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  align-items: center;
  gap: 1rem;
}
.earnings-label { font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.earnings-bar-wrap {
  height: 28px;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
}
.earnings-bar {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  transition: width 0.8s ease;
}
.earnings-value { font-size: 0.85rem; font-weight: 600; text-align: right; color: var(--text-muted); }

/* Scholarships */
.scholarships-list { display: flex; flex-direction: column; gap: 0.75rem; }
.scholarship-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  gap: 1rem;
}
.scholarship-card .sch-title { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.scholarship-card .sch-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.scholarship-card .sch-match {
  background: var(--success);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* Behavioural personalisation banner */
.personalization-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #0f766e;
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.85), rgba(153, 246, 228, 0.55));
  border: 1px solid #5eead4;
}
.personalization-banner .pz-icon {
  font-size: 1rem;
  line-height: 1;
  animation: pz-pulse 2.4s ease-in-out infinite;
}
.personalization-banner strong { color: #0b3d3a; }
.personalization-banner .pz-verified {
  font-weight: 700;
  color: #0d9488;
}
@keyframes pz-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.referral-card { cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.referral-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13, 148, 136, 0.12); }
.community-listing-card { cursor: pointer; }

/* Referrals */
.referrals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.referral-card {
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  text-align: center;
}
.referral-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 0.75rem;
}
.referral-card .ref-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.referral-card .ref-role { font-size: 0.75rem; color: var(--text-muted); margin: 0.25rem 0; }
.referral-card .ref-tag {
  display: inline-block;
  font-size: 0.65rem;
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Equivalencies */
.equiv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.equiv-card {
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}
.equiv-card .eq-country {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.equiv-card .eq-local { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.equiv-card .eq-equiv { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

/* Responsive */
@media (max-width: 900px) {
  .onboard-shell, .dash-layout { grid-template-columns: 1fr; }
  .onboard-sidebar, .dash-sidebar { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .scores-grid { grid-template-columns: 1fr; }
  .equiv-grid { grid-template-columns: 1fr; }
  .nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sky-200);
    box-shadow: 0 12px 32px rgba(14, 116, 178, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sky-100);
  }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
  #view-landing .nav { position: sticky; flex-wrap: wrap; }
  .platform-module-nav { overflow-x: auto; flex-wrap: nowrap; }
  .mobile-caricom-grid { grid-template-columns: 1fr; }
  .assessment-grid { grid-template-columns: 1fr; }
}

/* Platform Module Navigation */
.platform-module-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(14, 165, 233, 0.18);
  overflow-x: auto;
  flex-wrap: wrap;
  position: sticky;
  top: 52px;
  z-index: 90;
  scrollbar-width: thin;
}

.module-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  flex-shrink: 0;
  background: #f8fcff;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.module-tab:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: var(--sky-800);
}

.module-tab.active {
  background: var(--sky-700);
  border-color: var(--sky-700);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(3, 105, 161, 0.22);
}

.module-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  overflow: visible;
}

.module-icon .module-icon-svg,
.module-icon > svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.panel-heading-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.panel-heading-icon .module-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.panel-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.panel-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--sky-800);
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.platform-module { display: flex; flex-direction: column; gap: 1.25rem; }
.platform-module.hidden { display: none !important; }

.module-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
  font-weight: 500;
}
.panel-tag.live {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* Marketplace */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.marketplace-card {
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}
.mp-header { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.mp-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.mp-role { font-size: 0.75rem; color: var(--text-muted); }
.mp-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.mp-type { background: rgba(13,148,136,0.12); color: var(--teal); padding: 0.15rem 0.5rem; border-radius: 4px; text-transform: capitalize; }
.mp-slots { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.verified-badge { font-size: 0.65rem; color: var(--success); font-weight: 600; }
.booking-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1rem; background: var(--cream); border-radius: var(--radius);
  margin-bottom: 0.5rem; font-size: 0.85rem;
}
.booking-status { font-size: 0.7rem; font-weight: 700; color: var(--success); background: rgba(16,185,129,0.12); padding: 0.2rem 0.55rem; border-radius: 100px; }
.empty-state { font-size: 0.85rem; color: var(--text-muted); }

/* Jobs */
.api-status-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.api-pill {
  font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.65rem;
  border-radius: 100px; background: var(--cream);
}
.api-pill.connected { color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.jobs-list { display: flex; flex-direction: column; gap: 0.6rem; }
.job-card {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: 1rem; background: var(--cream); border-radius: var(--radius);
  border: 1px solid var(--cream-dark); align-items: center;
}
.job-card.executive-job { border-left: 3px solid var(--gold); }
.job-title { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.job-company { font-size: 0.8rem; color: var(--text-muted); margin: 0.2rem 0; }
.job-meta { font-size: 0.75rem; color: var(--text-light); }
.job-right { text-align: right; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-end; }
.job-match { font-size: 1.1rem; font-weight: 700; color: var(--teal); }
.job-source { font-size: 0.65rem; color: var(--text-muted); }
.remote-badge { font-size: 0.65rem; background: var(--navy); color: var(--white); padding: 0.15rem 0.4rem; border-radius: 4px; margin-left: 0.35rem; }
.btn-apply.applied { background: var(--success) !important; opacity: 0.8; }

/* Scholarships API */
.api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.api-card { padding: 0.85rem; background: var(--cream); border-radius: var(--radius); border: 1px solid var(--cream-dark); }
.api-name { font-weight: 600; font-size: 0.8rem; color: var(--navy); margin-bottom: 0.35rem; }
.api-status { font-size: 0.7rem; font-weight: 600; }
.api-status.connected { color: var(--success); }
.api-status.syncing { color: var(--warning); }
.api-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }
.credential-api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.credential-api-item {
  padding: 0.75rem; background: var(--cream); border-radius: var(--radius);
  font-size: 0.78rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.credential-api-item strong { color: var(--navy); }
.credential-api-item span:last-child { color: var(--text-muted); font-size: 0.72rem; }
.sch-api { font-size: 0.7rem; color: var(--teal); margin-top: 0.2rem; }

/* Assessments */
.assessment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.assessment-progress { font-size: 0.75rem; color: var(--teal); font-weight: 600; margin-bottom: 0.75rem; }
.assessment-q { font-size: 0.95rem; color: var(--navy); font-weight: 500; margin-bottom: 1rem; }
.assessment-options { display: grid; gap: 0.5rem; }
.likert-scale { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 0.35rem; }
.likert-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--cream-dark);
  background: var(--white); font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: all 0.2s;
}
.likert-btn:hover { border-color: var(--teal); background: rgba(13,148,136,0.08); }
.likert-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); padding: 0 0.5rem; }
.assessment-result { padding: 1rem; background: var(--cream); border-radius: var(--radius); }
.result-type { font-weight: 700; color: var(--teal); font-size: 1rem; margin-bottom: 0.5rem; }
.disc-bar-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.35rem 0; font-size: 0.8rem; }
.disc-bar-row span:first-child { width: 1rem; font-weight: 700; }
.disc-bar-wrap { flex: 1; height: 6px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; }
.disc-bar-fill { height: 100%; background: var(--teal); border-radius: 3px; }
.bf-row { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 0.5rem; margin: 0.4rem 0; font-size: 0.8rem; }
.bf-bar { height: 6px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; }
.bf-fill { height: 100%; background: var(--teal); border-radius: 3px; }
.industry-expansion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; }
.industry-expansion-card {
  padding: 0.65rem 0.85rem; background: var(--cream); border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500; color: var(--navy);
}

/* Executive */
.executive-readiness { text-align: center; margin-bottom: 1.5rem; }
.readiness-score { font-size: 3rem; font-weight: 700; color: var(--navy); }
.readiness-score span { font-size: 1.25rem; color: var(--text-muted); }
.readiness-label { font-size: 0.85rem; color: var(--teal); font-weight: 600; }
.competency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.competency-card { padding: 1rem; background: var(--cream); border-radius: var(--radius); }
.comp-header { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.comp-bar { height: 4px; background: var(--cream-dark); border-radius: 2px; margin-bottom: 0.5rem; overflow: hidden; }
.comp-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 2px; }
.competency-card p { font-size: 0.75rem; color: var(--text-muted); }
.board-pathway { display: flex; flex-direction: column; gap: 0; padding-left: 1rem; }
.board-step {
  display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0;
  border-left: 2px solid var(--cream-dark); padding-left: 1.5rem; position: relative;
}
.board-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--cream-dark);
  position: absolute; left: -7px;
}
.board-step.current .board-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(234,179,8,0.3); }
.board-step.reachable .board-dot { background: var(--teal); }
.board-label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.board-target { font-size: 0.7rem; color: var(--teal); margin-left: 0.5rem; }

/* Mobile & CARICOM */
.mobile-caricom-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; }
.phone-frame {
  width: 260px; margin: 0 auto; background: var(--navy);
  border-radius: 32px; padding: 12px; box-shadow: var(--shadow-lg);
}
.phone-notch { width: 80px; height: 6px; background: var(--navy-mid); border-radius: 3px; margin: 0 auto 8px; }
.phone-screen { background: var(--cream); border-radius: 24px; overflow: hidden; min-height: 420px; }
.phone-header {
  background: var(--navy); color: var(--white); padding: 1rem;
  font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
}
.phone-greeting { padding: 1rem 1rem 0.5rem; font-size: 0.85rem; color: var(--navy); font-weight: 600; }
.phone-user-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin: 0 1rem 0.75rem; border: 2px solid var(--teal-light); }
.phone-cards { padding: 0 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.phone-card {
  background: var(--white); padding: 0.75rem; border-radius: 10px;
  font-size: 0.8rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; box-shadow: var(--shadow);
}
.phone-card-leading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.phone-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  line-height: 0;
}
.phone-card-icon .module-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.phone-card-title { line-height: 1.2; }
.phone-card span { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.phone-nav {
  display: flex; justify-content: space-around; padding: 0.75rem;
  border-top: 1px solid var(--cream-dark); margin-top: 1.5rem;
  font-size: 0.65rem; color: var(--text-muted);
}
.phone-nav .active { color: var(--teal); font-weight: 700; }
.territory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.territory-card {
  padding: 0.75rem; background: var(--cream); border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}
.territory-name { font-weight: 600; font-size: 0.8rem; color: var(--navy); }
.territory-status { font-size: 0.68rem; font-weight: 600; }
.status-live .territory-status { color: var(--success); }
.status-beta .territory-status { color: var(--warning); }
.status-planned .territory-status { color: var(--text-light); }
.territory-users { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
.deployment-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
  padding-top: 1rem; border-top: 1px solid var(--cream-dark);
}
.dep-stat { text-align: center; }
.dep-stat strong { display: block; font-size: 1.5rem; color: var(--navy); }
.dep-stat span { font-size: 0.7rem; color: var(--text-muted); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none !important; }
.login-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.login-modal.is-open { display: flex; }
.login-modal .modal-content input[type="email"],
.login-modal .modal-content input[type="password"] {
  width: 100%; margin-top: 0.35rem;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,22,40,0.6); }
.modal-content {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; max-width: 440px; width: 90%; box-shadow: var(--shadow-lg);
}
.modal-content h3 { color: var(--navy); margin-bottom: 1rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
.booking-provider-info { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Hero split & Caribbean visual layout */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1180px;
  text-align: left;
  padding: 3rem 2rem 2rem;
  margin: 0 auto;
}
.hero-split .hero-stats-wide { grid-column: 1 / -1; text-align: center; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-logo-mark {
  width: min(340px, 78vw);
  height: min(340px, 78vw);
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 58%, rgba(255, 255, 255, 0) 72%);
  box-shadow: 0 20px 56px rgba(14, 116, 178, 0.16);
}
.hero-logo-mark .logo-pyramid-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 28px rgba(21, 128, 61, 0.38));
}
.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(14, 116, 178, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.92);
}
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
  height: 460px;
}
.hero-mosaic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}
.hero-mosaic-img.featured {
  grid-row: span 2;
  height: 100%;
  border-color: var(--sky-300);
}
.hero-mosaic-badge {
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sky-800);
  color: var(--sky-100);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  z-index: 5;
}
.hero-photo-stack { position: relative; height: 420px; }
.hero-photo {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.hero-photo-1 { width: 55%; height: 85%; left: 0; top: 10%; z-index: 1; }
.hero-photo-2 { width: 55%; height: 85%; right: 0; bottom: 0; z-index: 2; border: 4px solid var(--sand); }
.hero-actions.secondary {
  margin-top: -0.5rem;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.hero-demo-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Interactive demo section */
.demo-section {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--cream-dark);
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.demo-card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(14, 116, 178, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.demo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.12);
}
.demo-card-icon {
  width: 48px;
  height: 48px;
  line-height: 1;
}

.demo-card-icon .feature-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(3, 105, 161, 0.12));
}
.demo-card h3 { font-size: 1.05rem; margin: 0; color: var(--navy); }
.demo-card-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0;
}
.demo-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.demo-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}
.demo-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
}
.demo-launch-btn { margin-top: auto; }

.caribbean-strip {
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 24px rgba(14, 116, 178, 0.08);
}
.caribbean-strip h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-align: center;
}
.caribbean-strip-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}
.caribbean-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}
.caribbean-flag-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--sand);
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--sand-dark);
}
.caribbean-flag-item span:first-child { font-size: 1rem; }

.people-banner {
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}
.people-banner-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--sky-800) 0%, var(--sky-600) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--sky-200);
}
.people-banner-inner.people-banner-text-only {
  grid-template-columns: 1fr;
  text-align: center;
  min-height: auto;
}
.people-banner-inner.people-banner-text-only .people-banner-text {
  padding: 2rem;
}
.people-banner-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.92;
}
.people-banner-text {
  padding: 2rem 2rem 2rem 0;
  color: var(--sand);
}
.people-banner-text h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--sky-100);
}
.people-banner-text p { font-size: 0.95rem; opacity: 0.88; line-height: 1.55; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.6rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.25rem;
}
.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem !important;
  gap: 0.35rem;
}
.country-card.selected {
  border-color: var(--gold-dark) !important;
  background: rgba(232, 185, 35, 0.1);
}
.country-flag { font-size: 1.75rem; line-height: 1; }
.country-card .option-title { font-size: 0.72rem; line-height: 1.25; padding: 0 !important; }

.section-sub { text-align: center; color: var(--text-muted); margin: -1.5rem auto 2rem; max-width: 560px; }

/* Audience cards */
.audience-section {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  margin: 2rem auto;
  max-width: 1180px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 32px rgba(14, 116, 178, 0.1);
}

/* About Us */
.about-section {
  max-width: 1180px;
  margin: 2rem auto;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 32px rgba(14, 116, 178, 0.1);
}
.about-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) 1.4fr;
  gap: 2.5rem;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 45%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: block;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  image-rendering: auto;
}
.about-quote {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--sky-800), var(--sky-600));
  color: var(--sky-50);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  border-left: 4px solid var(--demo-accent-bright, #10b981);
}
.about-prose p {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}
.about-benefits {
  margin: 0 0 1.25rem 1.1rem;
  color: var(--navy);
  line-height: 1.7;
}
.about-benefits li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.about-closer {
  font-weight: 600;
  color: var(--sky-800) !important;
  font-size: 1.02rem !important;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.section.features, .section.testimonials-section, .section.pricing-section {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  margin: 2rem auto;
  max-width: 1180px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 32px rgba(14, 116, 178, 0.1);
}
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.account-card-wide { grid-column: 1 / -1; }
.marketplace-tutor-hint { margin-top: 1rem; text-align: center; }

.provider-status-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1rem;
}
.provider-status-card {
  padding: 0.85rem; border: 1px solid var(--cream-dark); border-radius: var(--radius); background: var(--white);
  display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.82rem;
}
.provider-status-card.active { border-color: rgba(20, 184, 166, 0.35); background: rgba(20, 184, 166, 0.06); }
.provider-status-card.highlight { border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.06); }
.provider-status-icon { font-size: 1.25rem; line-height: 1; }
.provider-status-card p { margin: 0.15rem 0 0; color: var(--text-muted); font-size: 0.72rem; }
.provider-quick-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.provider-preview-card {
  display: flex; gap: 1rem; flex-wrap: wrap; padding: 1rem; background: var(--cream); border-radius: var(--radius);
}
.provider-preview-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.provider-preview-name { font-weight: 600; color: var(--navy); }
.provider-preview-role, .provider-preview-meta { font-size: 0.82rem; color: var(--text-muted); }
.provider-preview-bio { font-size: 0.85rem; margin: 0.5rem 0; }
.provider-subject-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.provider-session-row, .provider-request-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--cream-dark); font-size: 0.85rem;
}
.provider-request-card.accepted { background: rgba(20, 184, 166, 0.05); padding: 0.85rem; border-radius: var(--radius); margin-bottom: 0.5rem; border: none; }
.provider-request-meta { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }
.provider-request-actions { display: flex; gap: 0.5rem; }
.provider-offerings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.provider-offering-card { padding: 0.85rem; border: 1px solid var(--cream-dark); border-radius: var(--radius); font-size: 0.82rem; }
.provider-offering-card.active { border-color: var(--teal); }
.provider-offering-toggle { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.provider-safe-room-features { font-size: 0.85rem; margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
.provider-integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 0.75rem 0 1rem;
}
.provider-integration-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.provider-integration-card.active {
  border-color: #7dd3fc;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.12);
}
.provider-integration-card.locked {
  opacity: 0.82;
}
.provider-integration-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.provider-integration-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.provider-integration-copy {
  flex: 1;
  min-width: 0;
}
.provider-integration-copy strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}
.provider-integration-copy .hint {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.4;
}
.provider-integration-account {
  font-size: 0.78rem;
  color: var(--sky-800);
  margin: 0;
}
.provider-integration-locked {
  margin: 0;
}
.provider-default-platform-group {
  margin-top: 0.5rem;
}
.provider-default-platform-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.provider-default-platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.entry-exam-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--sky-800);
}
.entry-exam-meta span strong {
  color: var(--navy);
}
.entry-exam-onboard-panel {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
}
.input-target-exam {
  width: 100%;
  max-width: 28rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font-size: 0.9rem;
}
.provider-default-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--sky-800);
  cursor: pointer;
}
.provider-onboard-note { font-size: 0.85rem; }
.audience-card {
  background: var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--sand-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.audience-card:focus-within { outline: 2px solid var(--sky-400); outline-offset: 2px; }
.audience-card.featured { border-color: var(--sky-500); box-shadow: 0 8px 32px var(--accent-glow); }
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.audience-img { width: 100%; height: 180px; object-fit: cover; }
.audience-body { padding: 1.5rem; }
.audience-body h3 { color: var(--navy); margin-bottom: 0.5rem; }
.audience-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.onboard-audience { margin-top: 1rem; }
.account-card { padding: 0 !important; overflow: hidden; }
.account-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.account-card .option-title, .account-card .option-desc { padding: 0 1rem 1rem; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.testimonial-photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1rem; border: 3px solid var(--sky-300);
}
.testimonial-card blockquote { font-size: 0.95rem; color: var(--text); margin-bottom: 1rem; }
.testimonial-card blockquote { font-size: 0.9rem; color: var(--text); line-height: 1.6; margin-bottom: 1rem; font-style: italic; }
.testimonial-card cite { font-size: 0.8rem; color: var(--text-muted); font-style: normal; }

/* Pricing */
.pricing-section { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); }
.pricing-toggle-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.pricing-toggle {
  padding: 0.6rem 1.25rem; border: 2px solid var(--cream-dark); background: var(--white);
  border-radius: 100px; font-family: var(--font); font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.pricing-toggle.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.pricing-grid:not([data-pricing-panel]) { display: grid; }
.pricing-grid[data-pricing-panel]:not(.is-active) { display: none !important; }
.pricing-grid[data-pricing-panel].is-active { display: grid !important; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem;
  border: 2px solid var(--cream-dark); position: relative;
}
.pricing-card.featured { border-color: var(--teal); box-shadow: 0 8px 32px var(--teal-glow); }
.pricing-popular { position: absolute; top: -10px; right: 1rem; background: var(--teal); color: white; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 100px; }
.pricing-badge { font-size: 0.7rem; color: var(--coral); font-weight: 600; }
.pricing-card h3 { color: var(--navy); margin: 0.5rem 0; }
.pricing-price { font-size: 2rem; font-weight: 700; color: var(--navy); }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0 1rem; }
.pricing-features { list-style: none; font-size: 0.8rem; color: var(--text); margin-bottom: 1.25rem; }
.pricing-features li { padding: 0.3rem 0; }
.btn-block { width: 100%; justify-content: center; }
.pricing-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 1.5rem; }
.plan-select-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.plan-select.featured-plan { border-color: var(--teal); box-shadow: 0 8px 24px var(--teal-glow); }
.plan-select { position: relative; align-items: stretch; text-align: left; }
.plan-select-popular {
  position: absolute; top: 0.65rem; right: 0.75rem;
  background: var(--teal); color: white; font-size: 0.6rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 100px;
}
.plan-select-badge { display: block; font-size: 0.68rem; color: var(--coral); font-weight: 600; margin-bottom: 0.35rem; }
.plan-select-price { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-top: 0.25rem; }
.plan-select-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.plan-select-blurb { font-size: 0.78rem; color: var(--text-muted); margin: 0.35rem 0 0.65rem; line-height: 1.45; }
.plan-select-features { list-style: none; font-size: 0.72rem; color: var(--text); margin: 0; padding: 0; }
.plan-select-features li { padding: 0.18rem 0; }
.plan-currency-note {
  font-size: 0.82rem;
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.65);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  margin: -0.25rem 0 1rem;
}
.pricing-locale-note { margin-top: 0; margin-bottom: 0.35rem; }

/* Sidebar avatar */
.sidebar-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal-light); margin-bottom: 0.5rem; }
.sidebar-avatar-individual { object-position: 12% 42%; }
.sidebar-profile-photo { text-align: center; }
.referral-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.75rem; display: block; }
.avatar-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0f766e;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  border: 2px solid #5eead4;
}
.avatar-initials.mp-photo,
.mp-photo.avatar-initials {
  width: 48px;
  height: 48px;
  margin: 0;
  font-size: 0.85rem;
}
.avatar-initials.community-listing-photo {
  width: 52px;
  height: 52px;
  margin: 0;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.avatar-initials.chat-thread-avatar,
.avatar-initials.chat-pane-avatar {
  width: 40px;
  height: 40px;
  margin: 0;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.chat-pane-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-thread-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.referral-photo.is-hidden,
.mp-photo.is-hidden { display: none; }
.mp-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Team & employer */
.panel-hero-img { height: 160px; background-size: cover; background-position: center; border-radius: var(--radius) var(--radius) 0 0; margin: -1.5rem -1.5rem 0; }
.panel.with-hero-img { padding-top: 0; overflow: hidden; }
.panel-hero-overlay { padding: 1.25rem 1.5rem; background: linear-gradient(transparent, rgba(10,22,40,0.85)); color: white; margin: -4rem 0 0; position: relative; }
.panel-hero-overlay h3 { color: white; }
.panel-hero-overlay p { color: var(--text-light); font-size: 0.85rem; }
.team-grid { display: grid; gap: 0.75rem; }
.team-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem; background: var(--cream); border-radius: var(--radius); border-left: 3px solid var(--teal);
}
.team-card.status-at-risk { border-left-color: var(--danger); }
.team-card.status-needs-support { border-left-color: var(--warning); }
.team-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.team-info strong { display: block; color: var(--navy); font-size: 0.9rem; }
.team-info span { font-size: 0.75rem; color: var(--text-muted); }
.team-target { color: var(--teal) !important; font-weight: 500; }
.team-progress { height: 4px; background: var(--cream-dark); border-radius: 2px; margin: 0.35rem 0; overflow: hidden; }
.team-progress-fill { height: 100%; background: var(--teal); border-radius: 2px; }
.team-pct { font-size: 0.7rem; color: var(--text-muted); }
.team-gaps { font-size: 0.7rem; color: var(--warning); margin-top: 0.25rem; }
.heatmap-row { display: grid; grid-template-columns: 140px 80px 1fr 80px; gap: 0.5rem; align-items: center; margin: 0.4rem 0; font-size: 0.8rem; }
.hm-bar-wrap { height: 8px; background: var(--cream-dark); border-radius: 4px; overflow: hidden; }
.hm-bar.current { height: 100%; background: var(--teal); border-radius: 4px; }

/* Training */
.training-visual { position: relative; margin-bottom: 1rem; }
.training-banner-img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); }
.training-flow { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--teal); }
.training-paths-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.training-path-card { background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius-lg); padding: 1.25rem; }
.tp-progress { height: 6px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; margin: 0.5rem 0; }
.tp-fill { height: 100%; background: var(--teal); }
.tp-modules { font-size: 0.78rem; color: var(--text-muted); margin: 0.75rem 0; padding-left: 1rem; }
.individual-learning { display: flex; gap: 1rem; align-items: center; }
.learning-avatar { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; }

/* Billing */
.billing-current { display: flex; gap: 1.5rem; align-items: center; }
.billing-plan-card { flex: 1; padding: 1.25rem; background: var(--cream); border-radius: var(--radius); }
.billing-plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.billing-active { background: var(--success); color: white; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 100px; }
.billing-price { font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.billing-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.billing-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal-light); }
.billing-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--cream-dark); font-size: 0.85rem; align-items: center; }
.paid { color: var(--success); font-weight: 600; font-size: 0.75rem; }

/* ROI */
.roi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.roi-card { background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.roi-value { font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.roi-change { font-size: 0.75rem; color: var(--success); font-weight: 600; }
.roi-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.mobility-row { display: grid; grid-template-columns: 100px 1fr 80px; gap: 0.75rem; align-items: center; margin: 0.5rem 0; font-size: 0.85rem; }
.mob-bar { height: 8px; background: var(--cream-dark); border-radius: 4px; overflow: hidden; }
.mob-bar div { height: 100%; background: var(--teal); border-radius: 4px; }

/* Partner portal */
.partner-header-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.partner-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.partner-job-card { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--cream); border-radius: var(--radius); margin-bottom: 0.5rem; gap: 1rem; flex-wrap: wrap; }
.job-status { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 4px; margin-left: 0.35rem; }
.job-status.active { background: rgba(16,185,129,0.15); color: var(--success); }
.job-status.draft { background: var(--cream-dark); color: var(--text-muted); }
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.candidate-card { text-align: center; padding: 1rem; background: var(--cream); border-radius: var(--radius); }
.candidate-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.5rem; display: block; }
.c-match { display: block; color: var(--teal); font-weight: 700; font-size: 0.85rem; margin: 0.35rem 0; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-acronym { margin-left: auto; margin-right: auto; align-items: center; }
  .hero-split .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-logo-mark { width: min(280px, 68vw); height: min(280px, 68vw); padding: 2rem; }
  .hero-illustration { max-width: 520px; margin: 0 auto; }
  .people-banner-inner { grid-template-columns: 1fr; }
  .people-banner-text { padding: 1.5rem; }
  .audience-grid, .testimonials-grid, .plan-select-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; margin: 0 auto; }
  .billing-current { flex-direction: column; }
}

/* Learning Analytics */
.readiness-banner {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem;
  border-radius: var(--radius); margin-bottom: 1.25rem;
}
.readiness-banner.good { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); }
.readiness-banner.warn { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); }
.readiness-banner.danger { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); }
.readiness-score { font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.readiness-score span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.subject-analysis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.subject-card { padding: 1rem; border-radius: var(--radius); border: 1px solid var(--cream-dark); background: var(--white); }
.subject-card.status-struggling { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.04); }
.subject-card.status-at-risk { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.04); }
.subject-card.status-on-track { border-color: rgba(16,185,129,0.3); }
.subject-card.status-strong { border-color: rgba(13,148,136,0.4); background: rgba(13,148,136,0.04); }
.subject-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.subject-status { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.subject-score { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.subject-score span { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); display: block; }
.subject-bar { height: 6px; background: var(--cream-dark); border-radius: 3px; margin: 0.5rem 0; overflow: hidden; }
.subject-bar-fill { height: 100%; background: var(--teal); border-radius: 3px; }
.subject-trend { font-size: 0.75rem; font-weight: 600; }
.subject-trend.up { color: var(--success); }
.subject-trend.down { color: var(--danger, #ef4444); }
.struggle-item { padding: 0.75rem; background: rgba(239,68,68,0.06); border-radius: var(--radius); margin-bottom: 0.5rem; font-size: 0.9rem; }
.resource-block { margin-bottom: 1rem; }
.resource-block ul { margin: 0.35rem 0 0 1.25rem; font-size: 0.85rem; color: var(--text); }
.urgency-badge { font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 4px; }
.urgency-badge.struggling { background: rgba(239,68,68,0.15); color: #dc2626; }
.urgency-badge.at-risk { background: rgba(245,158,11,0.15); color: #d97706; }

/* Entrepreneur Hub */
.venture-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.venture-founder-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.venture-needs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.need-chip { font-size: 0.75rem; padding: 0.25rem 0.6rem; background: var(--cream); border-radius: 999px; border: 1px solid var(--cream-dark); }
.stage-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.stage-step { padding: 0.75rem; border: 1px solid var(--cream-dark); border-radius: var(--radius); cursor: pointer; font-size: 0.8rem; transition: border-color 0.15s; }
.stage-step:hover { border-color: var(--teal); }
.stage-step.active { border-color: var(--teal); background: rgba(13,148,136,0.06); }
.stage-step.done { opacity: 0.7; }
.stage-icon { font-size: 1.25rem; display: block; margin-bottom: 0.25rem; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.5rem 0; }
.exp-tag { font-size: 0.65rem; padding: 0.15rem 0.4rem; background: var(--cream); border-radius: 4px; color: var(--text-muted); }
.checklist { display: flex; flex-direction: column; gap: 0.5rem; }
.checklist-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; padding: 0.5rem; background: var(--cream); border-radius: var(--radius); }
.checklist-item.done { opacity: 0.75; text-decoration: line-through; }
.onboard-audience { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Community Directory */
.listing-opt-in-panel {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.55);
}
.listing-opt-in-panel.is-active { border-color: var(--teal); background: rgba(13, 148, 136, 0.05); }
.listing-toggle-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
}
.listing-toggle-row input { margin-top: 0.25rem; accent-color: var(--teal); flex-shrink: 0; }
.listing-toggle-row .hint { display: block; margin-top: 0.25rem; font-size: 0.82rem; }
.listing-intent-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 0.75rem; }
.listing-intent-card { min-height: 120px; }
.listing-opt-in-note { margin-top: 0.75rem; margin-bottom: 0; }
.listing-cta-banner {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  margin-bottom: 1rem;
}
.listing-cta-banner p { margin: 0 0 0.65rem; font-size: 0.9rem; }
.listing-preview-wrap { margin: 1rem 0; }
.form-label-sm { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.community-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.community-listings-grid.compact { margin: 1rem 0; }
.community-listing-card {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}
.community-listing-card.is-self { border-color: var(--teal); box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15); }
.listing-self-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
}
.community-listing-header { display: flex; gap: 0.75rem; align-items: flex-start; }
.community-listing-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.community-listing-name { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.community-listing-founder { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.community-listing-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.community-listing-summary { font-size: 0.85rem; color: var(--text); margin: 0; line-height: 1.45; flex: 1; }
.community-listing-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: auto; }
.listing-match { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.listing-intent-badge, .listing-stage-badge, .listing-industry-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  color: var(--text-muted);
}
.listing-intent-badge.intent-launch { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.25); color: #1d4ed8; }
.listing-intent-badge.intent-collaborate { background: rgba(13, 148, 136, 0.1); border-color: rgba(13, 148, 136, 0.25); color: var(--teal); }
.listing-intent-badge.intent-seek-help { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.25); color: #b45309; }
.community-filters { display: flex; flex-direction: column; gap: 0.75rem; }
.community-search {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font: inherit;
}
.listing-management-panel .btn-outline { margin-top: 0.75rem; }
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link:hover { color: var(--demo-accent, #047857); }

/* Demo flow — sky blue chrome (onboarding, processing, dashboard) */
#view-onboarding,
#view-processing,
#view-dashboard {
  --demo-ink: #0a2540;
  --demo-ink-muted: #1e4976;
  --demo-on-sky: #ffffff;
  --demo-accent: #047857;
  --demo-accent-bright: #10b981;
}

#view-onboarding .onboard-sidebar {
  background: linear-gradient(180deg, var(--sky-400) 0%, var(--sky-500) 45%, var(--sky-600) 100%);
}
#view-onboarding .progress-track { background: rgba(255, 255, 255, 0.28); }
#view-onboarding .step-list li {
  border-left-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(10, 37, 64, 0.28);
}
#view-onboarding .step-list li.active {
  color: var(--demo-on-sky);
  border-left-color: var(--demo-accent-bright);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(10, 37, 64, 0.35);
}
#view-onboarding .step-list li.done {
  color: rgba(255, 255, 255, 0.88);
  border-left-color: rgba(255, 255, 255, 0.65);
}
#view-onboarding .step-list li.done:hover { color: var(--demo-on-sky); }
#view-onboarding .nav-brand.compact .logo-text {
  color: var(--demo-on-sky);
  text-shadow: 0 1px 2px rgba(10, 37, 64, 0.3);
}
#view-onboarding .onboard-main h2 { color: var(--demo-ink); }
#view-onboarding .onboard-main .step-desc { color: var(--demo-ink-muted); }
#view-onboarding .btn-back { color: var(--demo-accent); font-weight: 600; }
#view-onboarding .btn-back:hover { color: var(--demo-ink); }
#view-onboarding .progress-fill {
  background: linear-gradient(90deg, var(--demo-accent-bright), var(--demo-accent));
}

#view-processing .processing-shell { color: var(--demo-ink); }
#view-processing .processing-card {
  border-color: rgba(186, 230, 253, 0.9);
  box-shadow: 0 12px 48px rgba(14, 165, 233, 0.22);
}
#view-processing .processing-shell h2 {
  color: var(--demo-ink);
  font-weight: 700;
}
#view-processing .processing-sub {
  color: var(--demo-ink-muted);
  font-weight: 500;
}
#view-processing .processing-steps li {
  color: var(--demo-ink-muted);
  opacity: 0.75;
}
#view-processing .processing-steps li.active {
  opacity: 1;
  color: var(--demo-accent);
  font-weight: 700;
}
#view-processing .processing-steps li.done {
  color: var(--demo-ink-muted);
  opacity: 0.85;
}
#view-processing .pulse-ring { border-color: var(--demo-accent-bright); }

#view-dashboard .dash-nav {
  background: linear-gradient(90deg, var(--sky-400) 0%, var(--sky-500) 50%, var(--sky-600) 100%);
}
#view-dashboard .dash-nav .dash-user {
  color: var(--demo-on-sky);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(10, 37, 64, 0.35);
}
#view-dashboard .dash-sidebar {
  background: linear-gradient(180deg, var(--sky-400) 0%, var(--sky-500) 55%, var(--sky-600) 100%);
  border-right-color: rgba(255, 255, 255, 0.25);
  padding: 1.15rem;
}

#view-dashboard .dash-sidebar .sidebar-section:not(.sidebar-profile-photo) {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 12px rgba(3, 105, 161, 0.14);
}

#view-dashboard .dash-sidebar .sidebar-section-link {
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#view-dashboard .dash-sidebar .sidebar-section-link:hover {
  transform: translateY(-1px);
  border-color: #7dd3fc;
  box-shadow: 0 4px 16px rgba(3, 105, 161, 0.18);
  background: #ffffff;
}

#view-dashboard .dash-sidebar .sidebar-section-link:focus-visible {
  outline: 2px solid var(--sky-500);
  outline-offset: 2px;
}

#view-dashboard .dash-sidebar .sidebar-section-link.is-active {
  border-color: var(--sky-600);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.22);
  background: #ffffff;
}

.sidebar-link-hint {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sky-700);
}

#view-dashboard .dash-sidebar .sidebar-profile-photo.sidebar-section-link {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
}

#view-dashboard .dash-sidebar .sidebar-profile-photo.sidebar-section-link:hover {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.85);
}

#view-dashboard .dash-sidebar .sidebar-section h4 {
  color: var(--sky-800);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: none;
  margin-bottom: 0.35rem;
}

#view-dashboard .dash-sidebar .sidebar-value {
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  text-shadow: none;
}

#view-dashboard .dash-sidebar .sidebar-list {
  color: var(--sky-800);
  font-size: 0.875rem;
  font-weight: 500;
}

#view-dashboard .dash-sidebar .sidebar-list li::before {
  color: var(--sky-600);
}

#view-dashboard .dash-sidebar .fidelity-meter {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}

#view-dashboard .dash-sidebar .fidelity-text {
  color: var(--sky-800);
  font-weight: 600;
  text-shadow: none;
}

#view-dashboard .dash-sidebar .btn-outline {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: var(--navy);
  font-weight: 600;
  border-radius: 999px;
}

#view-dashboard .dash-sidebar .btn-outline:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: var(--sky-800);
}

#view-dashboard .dash-sidebar .sidebar-profile-photo {
  padding: 0.35rem 0 0.15rem;
  margin-bottom: 0.25rem;
}

#view-dashboard .dash-sidebar .sidebar-avatar {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(3, 105, 161, 0.22);
}

#view-dashboard .dash-sidebar .sidebar-section-link.is-active .sidebar-link-hint {
  color: var(--sky-800);
}

#view-dashboard .dash-badge {
  background: var(--demo-on-sky);
  color: var(--demo-ink);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(10, 37, 64, 0.15);
}
#view-dashboard .fidelity-meter { background: rgba(255, 255, 255, 0.35); }
#view-dashboard .dash-nav .btn-outline { border-color: rgba(255, 255, 255, 0.65); color: var(--demo-on-sky); font-weight: 600; }
#view-dashboard .dash-nav .btn-outline:hover { background: rgba(255, 255, 255, 0.22); color: var(--demo-on-sky); }
#view-dashboard .dash-nav .btn-ghost {
  color: var(--demo-on-sky);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(10, 37, 64, 0.25);
}
#view-dashboard .dash-nav .btn-ghost:hover { color: var(--demo-on-sky); opacity: 0.92; }
#view-dashboard .dash-nav .nav-brand.compact .logo-text {
  color: var(--demo-on-sky);
  text-shadow: 0 1px 2px rgba(10, 37, 64, 0.3);
}
#view-dashboard .dash-nav-actions .btn-outline,
#view-dashboard .dash-nav-actions .btn-ghost {
  color: var(--navy) !important;
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  text-shadow: none !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.14);
}
#view-dashboard .dash-nav-actions .btn-outline:hover,
#view-dashboard .dash-nav-actions .btn-ghost:hover {
  background: #f0f9ff !important;
  color: var(--navy) !important;
  border-color: #ffffff !important;
  opacity: 1 !important;
}

#view-dashboard .module-tab-hero .panel-hero-img,
#view-dashboard .module-hero-img {
  height: 180px;
}
#view-dashboard .module-hero-img.hero-img-wide {
  background-position: 12% 42%;
}
#view-dashboard .with-hero-img .panel-hero-overlay,
#view-dashboard .module-tab-hero .panel-hero-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
  padding-top: 3.25rem;
}
#view-dashboard .with-hero-img .panel-hero-overlay h3,
#view-dashboard .module-tab-hero .panel-hero-overlay h3 {
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: none;
}
#view-dashboard .with-hero-img .panel-hero-overlay p,
#view-dashboard .module-tab-hero .panel-hero-overlay p {
  color: var(--demo-ink-muted);
  text-shadow: none;
}

#view-dashboard .platform-module-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 2px 12px rgba(12, 74, 110, 0.04);
}

#view-dashboard .module-tab {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

#view-dashboard .module-tab:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: var(--sky-800);
}

#view-dashboard .module-tab.active {
  background: var(--sky-700);
  border-color: var(--sky-700);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(3, 105, 161, 0.24);
}

#view-dashboard .dash-main { background: var(--sky-50); }

#view-dashboard .dash-main .panel-header h3 {
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
}

#view-dashboard .dash-main .panel-tag {
  color: var(--sky-800);
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  font-weight: 600;
  text-transform: none;
}
#view-dashboard .dash-main .module-intro { color: var(--demo-ink-muted); }
#view-dashboard .map-tab.active { background: var(--sky-700); border-color: var(--sky-700); color: #ffffff; }
#view-dashboard .career-map-container { background: linear-gradient(145deg, var(--sky-500) 0%, var(--sky-600) 100%); }
#view-dashboard .phone-frame { background: var(--sky-600); }
#view-dashboard .phone-notch { background: var(--sky-400); }
#view-dashboard .phone-header { background: linear-gradient(90deg, var(--sky-400), var(--sky-500)); }
#view-dashboard .rag-summary strong { color: var(--demo-accent); }
#view-dashboard .guidance-list li { color: var(--demo-ink-muted); }
#view-dashboard .dash-main .score-card .score-value,
#view-dashboard .dash-main .conflict-body h4,
#view-dashboard .dash-main .timeline-item .tl-title {
  color: var(--demo-ink);
}
#view-dashboard .dash-main .rag-detail,
#view-dashboard .dash-main .rag-summary {
  color: var(--demo-ink-muted);
}

/* Registration & identity verification onboarding */
.reg-safety-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
  margin-bottom: 1.5rem;
}
.reg-safety-icon { font-size: 1.5rem; flex-shrink: 0; }
.reg-safety-banner strong { display: block; margin-bottom: 0.25rem; }
.reg-safety-banner p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.45; }
.reg-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cream-dark);
}
.reg-section:last-of-type { border-bottom: none; }
.reg-section-optional { opacity: 0.95; }
.reg-section-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.reg-required-tag,
.reg-optional-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.reg-required-tag { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.reg-optional-tag { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.reg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.reg-select { width: 100%; padding: 0.65rem 0.75rem; border-radius: var(--radius); border: 1px solid var(--cream-dark); font-size: 0.9rem; }
.reg-field-note { margin-bottom: 0.75rem; }
.reg-identity-grid { margin-bottom: 1rem; }
.reg-identity-card { min-height: 130px; }
.reg-upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.reg-upload-block { display: flex; flex-direction: column; gap: 0.5rem; }
.reg-upload-zone { min-height: 120px; }
.reg-parent-panel {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  margin-bottom: 1rem;
}
.reg-parent-panel h4 { margin: 0 0 0.75rem; font-size: 0.95rem; }
.reg-consent { margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.45; }
.reg-verified-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}
.dash-verify-badge { background: var(--navy-mid); }
.dash-verify-badge.is-verified { background: #15803d; }
.dash-verify-badge.is-pending { background: #b45309; }

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

/* Safe virtual sessions */
.modal-content-wide { max-width: 720px; width: 94%; }
.vs-booking-safety-banner {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
.vs-booking-safety-banner p { margin: 0.25rem 0 0; color: var(--text-muted); }
.vs-subject-focus { font-size: 0.9rem; margin-bottom: 1rem; }
.vs-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}
.vs-platform-card { min-height: 130px; position: relative; cursor: pointer; }
.vs-platform-rec {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal);
}
.vs-parent-notify {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  cursor: pointer;
}
.vs-parent-notify input { margin-top: 0.2rem; accent-color: var(--teal); }

.vs-safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.vs-safety-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.vs-safety-icon { font-size: 1.35rem; flex-shrink: 0; }
.vs-safety-item p { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.vs-platform-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.vs-platform-tile {
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  background: var(--sand);
}
.vs-platform-tile-icon { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.vs-platform-tile p { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.vs-book-hint { margin-bottom: 0.75rem; }

.vs-session-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  background: #fff;
}
.vs-session-card.compact { padding: 0.85rem; }
.vs-session-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.vs-session-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }
.vs-session-notes { font-size: 0.78rem; color: #94a3b8; margin-top: 0.35rem; font-style: italic; }
.vs-session-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.vs-session-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }
.vs-status-scheduled { background: rgba(13, 148, 136, 0.12); color: var(--teal); }
.vs-status-live { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }

.vs-room-shell {
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  min-height: 340px;
}
.vs-room-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vs-room-live-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
}
.vs-room-live-badge.is-live { background: #fee2e2; color: #b91c1c; }
.vs-room-code { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.vs-room-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: #0f172a;
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 220px;
}
.vs-room-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #e2e8f0;
  text-align: center;
  font-size: 0.85rem;
}
.vs-room-participant small { font-size: 0.7rem; color: #94a3b8; }
.vs-room-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.vs-room-participant.student .vs-room-avatar { border-color: var(--teal); }
.vs-room-sidebar {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 0.82rem;
}
.vs-room-sidebar h4 { margin: 0 0 0.5rem; font-size: 0.85rem; }
.vs-room-safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.vs-room-note { margin: 0.5rem 0 0; font-size: 0.72rem; }
.vs-room-controls {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cream-dark);
}

@media (max-width: 640px) {
  .vs-platform-showcase { grid-template-columns: 1fr; }
  .vs-room-shell { grid-template-columns: 1fr; }
  .vs-room-sidebar { grid-row: auto; }
  .vs-session-card { flex-direction: column; }
  .vs-session-actions { align-items: flex-start; width: 100%; }
}

/* Live chat (community connections) */
.chat-safety-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
}
.chat-safety-note p { margin: 0.15rem 0 0; color: var(--text-muted); }
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 420px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.chat-thread-list {
  border-right: 1px solid var(--cream-dark);
  background: var(--sand);
  display: flex;
  flex-direction: column;
}
.chat-thread-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--cream-dark);
}
.chat-thread-list-header h4 { margin: 0; font-size: 0.9rem; }
.chat-thread-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid var(--cream-dark);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.chat-thread-item:hover, .chat-thread-item.active { background: #fff; }
.chat-thread-item.active { border-left: 3px solid var(--teal); }
.chat-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.chat-thread-meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.chat-thread-meta strong { font-size: 0.85rem; color: var(--navy); }
.chat-thread-venture { font-size: 0.72rem; color: var(--teal); font-weight: 600; }
.chat-thread-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.chat-pane {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.chat-pane-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}
.chat-pane-empty-icon { font-size: 2.5rem; opacity: 0.5; }
.chat-pane-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--cream-dark);
}
.chat-pane-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-pane-sub { display: block; font-size: 0.78rem; color: var(--text-muted); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #f8fafc;
}
.chat-bubble {
  max-width: 78%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.chat-bubble p { margin: 0; }
.chat-bubble time { display: block; font-size: 0.65rem; margin-top: 0.25rem; opacity: 0.7; }
.chat-bubble.is-peer {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--cream-dark);
  color: var(--navy);
}
.chat-bubble.is-self {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
}
.chat-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--cream-dark);
  background: #fff;
}
.chat-compose input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.btn-listing-connect.is-pending { opacity: 0.75; cursor: wait; }
.btn-listing-connect.is-disabled { opacity: 0.55; cursor: not-allowed; }
.module-tab-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-500);
  margin-left: 0.15rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.module-tab.active .module-tab-dot {
  background: #ffffff;
}

/* ── Revenue & Monetization ── */
.rev-wallet-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  padding: 0.85rem 1.1rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%);
  border: 1px solid rgba(20, 184, 166, 0.22); border-radius: var(--radius);
}
.rev-wallet-item { display: flex; flex-direction: column; gap: 0.1rem; }
.rev-wallet-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rev-wallet-item strong { font-size: 0.95rem; color: var(--navy); }
.rev-wallet-cta { margin-left: auto; }
.rev-hub-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; margin-bottom: 1rem;
  background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.rev-hub-banner p { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--text-muted); max-width: 36rem; }
.rev-hub-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rev-subnav {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem;
  padding: 0.35rem; background: var(--cream); border-radius: var(--radius);
}
.rev-subnav-btn {
  padding: 0.45rem 0.85rem; border: none; background: transparent;
  border-radius: calc(var(--radius) - 2px); font-size: 0.78rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
}
.rev-subnav-btn.active { background: var(--white); color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.rev-checkout-panel {
  margin-top: 1rem; padding: 1rem; background: var(--cream);
  border-radius: var(--radius); border: 1px solid var(--cream-dark);
}
.rev-checkout-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.rev-checkout-rows { font-size: 0.85rem; }
.rev-checkout-row { display: flex; justify-content: space-between; padding: 0.3rem 0; color: var(--text); }
.rev-checkout-row.credit { color: var(--teal); }
.rev-checkout-row.total { border-top: 1px solid var(--cream-dark); margin-top: 0.35rem; padding-top: 0.5rem; font-size: 0.95rem; }
.rev-checkout-warn { font-size: 0.78rem; color: var(--coral); margin: 0.35rem 0; }
.rev-checkout-note { margin: 0.5rem 0 0; font-size: 0.72rem; }
.rev-copay-toggle { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.8rem; cursor: pointer; }
.rev-flywheel { padding: 1rem; background: var(--cream); border-radius: var(--radius); margin-bottom: 1rem; }
.rev-flywheel-title { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.65rem; }
.rev-flywheel-track { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.rev-flywheel-step { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--text-muted); }
.rev-flywheel-step.done .rev-flywheel-dot { background: var(--teal); color: #fff; }
.rev-flywheel-step.current { color: var(--navy); font-weight: 600; }
.rev-flywheel-dot {
  width: 1.25rem; height: 1.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; background: var(--cream-dark); color: var(--text-muted);
}
.rev-dollar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.rev-dollar-card { padding: 0.85rem; background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); }
.rev-dollar-card span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.rev-dollar-card strong { font-size: 1.1rem; color: var(--navy); }
.rev-dollar-card.highlight { border-color: rgba(20, 184, 166, 0.35); background: rgba(20, 184, 166, 0.06); }
.rev-export-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.rev-roi-dollar-panel { margin-bottom: 1rem; }
.rev-mobility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.65rem; margin: 0.75rem 0 1.25rem; }
.rev-mobility-card { padding: 0.75rem; background: var(--cream); border-radius: var(--radius); text-align: center; }
.rev-mobility-score { display: block; font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.rev-section-sub { font-size: 0.85rem; color: var(--navy); margin: 1rem 0 0.5rem; }
.rev-benchmark-table { font-size: 0.78rem; }
.rev-benchmark-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 0.5rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--cream-dark); align-items: center;
}
.rev-addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.rev-addon-card { padding: 1rem; border: 1px solid var(--cream-dark); border-radius: var(--radius); background: var(--white); }
.rev-addon-card.owned { border-color: var(--teal); background: rgba(20, 184, 166, 0.04); }
.rev-addon-price { display: block; font-weight: 700; color: var(--navy); margin: 0.35rem 0; }
.rev-addon-card p { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 0.65rem; }
.rev-payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.65rem; }
.rev-payment-card { padding: 0.85rem; border: 2px solid var(--cream-dark); border-radius: var(--radius); cursor: pointer; }
.rev-payment-card.selected { border-color: var(--teal); background: rgba(20, 184, 166, 0.04); }
.rev-payment-icon { font-size: 1.25rem; }
.rev-payment-card p { font-size: 0.72rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.rev-payment-brands { display: block; font-size: 0.65rem; color: var(--teal); font-weight: 600; margin: 0.2rem 0; }
.rev-payment-active { font-size: 0.65rem; color: var(--teal); font-weight: 600; }
.rev-payment-connect { margin-top: 0.5rem; width: 100%; }
.rev-wallet-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }
.rev-wallet-detail { padding: 0.85rem; background: var(--cream); border-radius: var(--radius); }
.rev-wallet-detail span { display: block; font-size: 0.72rem; color: var(--text-muted); }
.rev-wallet-detail strong { font-size: 1rem; color: var(--navy); }
.rev-wallet-detail p { font-size: 0.7rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.rev-tx-row { display: grid; grid-template-columns: 5rem 1fr auto auto; gap: 0.75rem; align-items: center; }
.rev-tx-desc { font-size: 0.82rem; }
.rev-tx-type { font-size: 0.65rem; text-transform: capitalize; }
.rev-alert-banner {
  padding: 0.65rem 0.85rem; margin-bottom: 0.75rem; background: #fef3c7; border-radius: var(--radius);
  font-size: 0.82rem; color: #92400e; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.panel-tag.warn { background: #fef3c7; color: #92400e; }
.seat-activation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.65rem; }
.seat-card { padding: 0.75rem; border-radius: var(--radius); border: 1px solid var(--cream-dark); font-size: 0.82rem; }
.seat-card.inactive { background: #fef2f2; border-color: #fecaca; }
.seat-card.active { background: rgba(20, 184, 166, 0.04); }
.seat-last { display: block; font-size: 0.72rem; color: var(--text-muted); margin: 0.2rem 0; }
.seat-badge { font-size: 0.65rem; color: var(--coral); display: block; margin: 0.25rem 0; }
.seat-ok { font-size: 0.72rem; color: var(--teal); }
.leaderboard-list { font-size: 0.82rem; }
.leaderboard-row {
  display: grid; grid-template-columns: 2rem 1fr 1fr auto auto; gap: 0.5rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--cream-dark); align-items: center;
}
.lb-rank { font-weight: 700; color: var(--teal); }
.lb-points { font-weight: 600; color: var(--navy); }
.tp-price-row { margin: 0.35rem 0; font-size: 0.85rem; }
.tp-bulk { display: block; font-size: 0.72rem; color: var(--teal); margin-top: 0.15rem; }
.tp-cert { font-size: 0.75rem; color: var(--text-muted); margin: 0.5rem 0; }
.tp-assign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-top: 0.5rem; }
.tp-seat-input { width: 4rem; padding: 0.3rem 0.5rem; margin-left: 0.35rem; border: 1px solid var(--cream-dark); border-radius: 4px; }
.rev-ld-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.talent-pipeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }
.talent-pipeline-card { padding: 1rem; border: 1px solid var(--cream-dark); border-radius: var(--radius); font-size: 0.82rem; }
.talent-pipeline-card p { margin: 0.35rem 0; color: var(--text-muted); }
.tp-cred { font-size: 0.75rem; }
.tp-actions { display: flex; gap: 0.5rem; margin-top: 0.65rem; }
.rev-brand-toggle, .rev-compliance-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-top: 0.75rem; font-size: 0.82rem; }
.rev-gov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.65rem; margin: 0.75rem 0; }
.rev-gov-card { padding: 0.85rem; background: var(--cream); border-radius: var(--radius); font-size: 0.8rem; }
.rev-gov-card span { display: block; color: var(--text-muted); font-size: 0.72rem; margin-top: 0.2rem; }
.rev-gov-status { color: var(--teal) !important; font-weight: 500; }
.rev-provider-cta {
  margin-top: 1rem; padding: 0.85rem; background: var(--cream); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.rev-provider-cta p { margin: 0; font-size: 0.82rem; }
.rev-featured-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700; padding: 0.15rem 0.45rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; border-radius: 100px;
}
.community-listing-card.is-featured { border-color: rgba(245, 158, 11, 0.45); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12); }
.rev-featured-promo {
  margin-top: 0.75rem; padding: 0.65rem; background: rgba(245, 158, 11, 0.08);
  border-radius: var(--radius); font-size: 0.78rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}

@media (max-width: 768px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-thread-list { max-height: 200px; overflow-y: auto; border-right: none; border-bottom: 1px solid var(--cream-dark); }
  .rev-benchmark-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .rev-tx-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .leaderboard-row { grid-template-columns: 2rem 1fr auto; }
  .lb-dept, .lb-completions { display: none; }
}

.match-context-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #0f766e;
  line-height: 1.45;
}
.match-context-icon { margin-right: 0.35rem; }

.consent-validation {
  color: #b45309;
  margin-top: 0.5rem;
}
.consent-validation.hidden { display: none; }
.consent-validation:not(.hidden) { color: #b91c1c; margin-top: 0.75rem; }
.account-password-error {
  color: #b91c1c;
  font-size: 0.88rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.account-password-error.hidden { display: none; }
.dashboard-sync-banner {
  margin: 0 1.5rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.dashboard-sync-banner.is-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.dashboard-sync-banner.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}
.consent-row input { margin-top: 0.2rem; flex-shrink: 0; }

.feedback-stars {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.feedback-stars .chip.selected {
  background: var(--teal-600, #0d9488);
  color: #fff;
  border-color: transparent;
}
.feedback-comment {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.outcome-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.outcome-form input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}
@media (max-width: 720px) {
  .outcome-form { grid-template-columns: 1fr; }
}

/* —— Mobile / PWA UX (desktop layout unchanged above 900px) —— */
.mobile-step-rail,
.mobile-module-jump,
.dash-menu-toggle { display: none; }

.module-nav-wrap { display: contents; }

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-menu-open { overflow: hidden; }
body.dash-menu-open { overflow: hidden; }

@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  /* Prevent iOS input zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  .section { padding-left: 1.15rem; padding-right: 1.15rem; }

  .hero { padding: 1.5rem 1.15rem 2rem; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.15; }
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .hero-actions .btn,
  .hero-actions.secondary .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .hero-stats { gap: 0.65rem; }
  .hero-stats > div { padding: 0.75rem; }

  .btn, .chip, .module-tab, .option-card {
    min-height: 44px;
  }
  .chip { padding: 0.55rem 0.9rem; }

  /* Landing hamburger menu */
  .nav-links {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }

  /* Onboarding mobile step rail (sidebar is hidden) */
  .mobile-step-rail {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.35rem 0 0.85rem;
    margin-bottom: 0.35rem;
    scrollbar-width: none;
  }
  .mobile-step-rail::-webkit-scrollbar { display: none; }
  .mobile-step-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid #bae6fd;
    background: #f8fcff;
    color: var(--navy);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 40px;
    cursor: pointer;
    white-space: nowrap;
  }
  .mobile-step-pill.active {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
  }
  .mobile-step-pill.done {
    background: #ecfdf5;
    border-color: #99f6e4;
    color: #0f766e;
  }
  .mobile-step-pill:disabled {
    opacity: 0.45;
    cursor: default;
  }

  .onboard-main {
    padding: 1rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom));
  }
  .onboard-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.65rem;
    padding: 0.75rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
    z-index: 20;
  }
  .onboard-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .account-card-img { height: 120px; }
  .account-card-wide { grid-column: auto; }

  /* Dashboard top bar — scrolls away; module jump stays sticky for easy nav */
  .dash-nav {
    position: relative;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.7rem 1rem;
    padding-top: calc(0.7rem + env(safe-area-inset-top));
  }
  .dash-nav-center {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .dash-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 9px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
  }
  .dash-menu-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .dash-nav-actions {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.35rem;
  }
  .dash-nav-actions.open { display: flex; }
  .dash-nav-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* Module navigation — swipeable + jump select */
  .module-nav-wrap {
    display: block;
    position: sticky;
    top: 0;
    z-index: 95;
    background: #fff;
    border-bottom: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: 0 4px 14px rgba(14, 116, 178, 0.06);
  }
  .mobile-module-jump {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0369a1;
  }
  .mobile-module-jump select {
    flex: 1;
    min-height: 42px;
    border: 1px solid #7dd3fc;
    border-radius: 10px;
    background: #f0f9ff;
    color: var(--navy);
    font-weight: 600;
    padding: 0.4rem 0.65rem;
  }
  .platform-module-nav {
    top: auto;
    position: relative;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding: 0.55rem 1rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-bottom: none;
  }
  .platform-module-nav::-webkit-scrollbar { display: none; }
  .module-tab {
    scroll-snap-align: start;
    min-height: 44px;
    padding: 0.6rem 0.95rem;
    font-size: 0.84rem;
  }
  .module-icon,
  .module-icon .module-icon-svg,
  .module-icon > svg {
    width: 22px;
    height: 22px;
  }
  .module-tab.active .module-icon-svg rect[fill="#e0f2fe"] {
    fill: rgba(255, 255, 255, 0.2);
  }
  #view-dashboard .platform-module-nav {
    top: auto;
    position: relative;
  }

  .dash-main {
    padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
  }
  .panel { padding: 1rem; }
  .panel-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .marketplace-grid,
  .referrals-grid,
  .community-listings-grid,
  .pricing-grid.is-active,
  .feature-grid {
    grid-template-columns: 1fr !important;
  }
  .mp-header { align-items: flex-start; }
  .demo-grid { grid-template-columns: 1fr; }

  .modal-content, .modal-content-wide {
    width: min(96vw, 720px);
    max-height: min(88vh, 900px);
    overflow-y: auto;
    margin: 1rem auto;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
  }

  .dashboard-sync-banner {
    margin: 0 1rem 0.85rem;
  }
}

@media (max-width: 640px) {
  .dash-badge { font-size: 0.62rem; }
  .pricing-card { padding: 1.1rem; }
  .community-listing-header { flex-direction: column; }
  .filter-chips { gap: 0.4rem; }
  .chip-grid { gap: 0.4rem; }
}

/* Installed PWA standalone polish */
@media (display-mode: standalone) {
  #view-landing .nav {
    padding-top: calc(0.75rem + env(safe-area-inset-top));
  }
  .dash-nav {
    padding-top: calc(0.7rem + env(safe-area-inset-top));
  }
}
