:root {
  --navy: #0b2f63;
  --blue: #1468b3;
  --sky: #d9ebff;
  --teal: #0f8b8d;
  --green: #73a942;
  --ink: #102033;
  --muted: #65758b;
  --line: #d9e2ec;
  --surface: #f7fafc;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 47, 99, 0.06);
  --shadow-hover: 0 10px 24px rgba(15, 47, 99, 0.12);
  --shadow-elevated: 0 16px 36px rgba(15, 47, 99, 0.16);
  --shadow: var(--shadow-hover);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-page: 2.25rem;
  --text-hero: 3.75rem;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background:
    linear-gradient(180deg, #f4f9ff 0, var(--surface) 360px),
    var(--surface);
}

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea {
  font: inherit;
}

small,
.small {
  font-size: var(--text-xs) !important;
  line-height: 1.35;
}

.h4 { font-size: var(--text-xl); }
.h5 { font-size: var(--text-lg); }
.h6 { font-size: var(--text-sm); }

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-weight: 800;
}
.brand small { display: block; color: var(--muted); }
.app-navbar .brand {
  color: var(--white);
  margin-right: 0;
}
.app-navbar .brand:hover,
.app-navbar .brand:focus {
  color: var(--white);
}
.app-navbar .brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-xs);
  line-height: 1.1;
}
.app-navbar .brand strong {
  display: block;
  color: var(--white);
  line-height: 1.05;
}
.app-navbar .brand-mark {
  width: 40px;
  height: 40px;
  color: #062e58;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.partner-lockup {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: var(--text-sm);
  min-width: 0;
}
.partner-lockup span {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.app-navbar {
  min-height: 68px;
  background: #062e58;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 24px rgba(6, 46, 88, 0.16);
}
.app-navbar .container-fluid {
  max-width: 1600px;
  margin-inline: auto;
}
.user-pill {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding-inline: 0.85rem !important;
  background: rgba(255, 255, 255, 0.1);
}
.partner-logo {
  display: block;
  width: auto;
  max-width: clamp(92px, 8vw, 132px);
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.08));
}
.partner-logo-afrique {
  max-width: clamp(108px, 10vw, 158px);
}
.partner-plus {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1;
}

.nav-links, .auth-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links { justify-content: center; color: #29445f; font-size: var(--text-sm); }
.auth-links { justify-content: flex-end; }

.button {
  border: 0;
  border-radius: 8px;
  padding: 0.78rem 1rem;
  color: var(--white);
  background: var(--blue);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 104, 179, 0.18);
}
.button-small { padding: 0.55rem 0.8rem; }
.button-ghost { color: var(--navy); background: var(--sky); box-shadow: none; }
.link-button { padding: 0; color: var(--blue); background: transparent; box-shadow: none; }

.messages { width: min(1180px, calc(100% - 32px)); margin: 18px auto 0; }
.message { padding: 12px 14px; border-left: 4px solid var(--teal); background: var(--white); box-shadow: var(--shadow-elevated); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: center;
  min-height: 360px;
  padding: 38px 0 32px;
  border-bottom: 1px solid var(--line);
}
.hero-public {
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 430px;
  padding-top: 48px;
}
.hero-copy h1 {
  max-width: 820px;
  margin: 6px 0 20px;
  font-size: var(--text-hero);
  line-height: 1.03;
  letter-spacing: 0;
  color: var(--navy);
}
.hero-public .hero-copy h1 {
  font-size: 4.25rem;
  line-height: 1;
}
.hero-kicker {
  margin: 0;
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}
.hero-subcopy {
  max-width: 720px;
  margin: -5px 0 20px;
  color: var(--muted);
  font-size: var(--text-lg);
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.eyebrow,
.badge:not([class*="text-bg"]) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  min-height: 24px;
  padding: 0.3rem 0.55rem;
  color: var(--navy);
  background: var(--sky);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.3rem 0.55rem;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.search-bar { display: flex; max-width: 780px; gap: 10px; }
.search-bar input,
.search-bar .btn { min-height: 46px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  background: var(--white);
  font-size: var(--text-base);
  line-height: 1.4;
}
.hero-panel, .quiet-panel, .form-panel, .data-panel, .action-panel, .auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}
.hero-panel { display: grid; gap: 12px; padding: 22px; }
.intro-panel > span { padding: 12px; border-radius: 8px; background: #eef7ff; color: #254561; border: 1px solid #dbeeff; }
.workspace-panel {
  --workspace-accent: var(--blue);
  gap: 14px;
  padding: 20px 22px;
  border-top: 4px solid var(--workspace-accent);
  box-shadow: var(--shadow-elevated);
}
.workspace-manager { --workspace-accent: var(--teal); }
.workspace-creator { --workspace-accent: var(--green); }
.workspace-admin { --workspace-accent: #f2b84b; }
.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.workspace-heading h2 {
  margin: 2px 0 0;
  font-size: var(--text-xl);
}
.workspace-label {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}
.workspace-status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--workspace-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--workspace-accent) 15%, transparent);
}
.workspace-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.workspace-item {
  display: grid;
  gap: 3px;
  padding: 11px 0 11px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid #b8c5d3;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.workspace-item:hover,
.workspace-item:focus-visible {
  background: #f8fbff;
  border-left-color: var(--blue);
}
.workspace-item.is-danger { border-left-color: #d92d20; }
.workspace-item.is-warning { border-left-color: #e6a700; }
.workspace-item.is-success { border-left-color: #16854d; }
.workspace-item.is-info { border-left-color: var(--blue); }
.workspace-item-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.workspace-item-label {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}
.workspace-item.is-danger .workspace-item-label { color: #b42318; }
.workspace-item.is-warning .workspace-item-label { color: #946200; }
.workspace-item.is-success .workspace-item-label { color: #087443; }
.workspace-item.is-info .workspace-item-label { color: var(--blue); }
.workspace-arrow {
  color: #91a0b1;
  font-size: var(--text-sm);
  transition: transform 0.16s ease, color 0.16s ease;
}
.workspace-item:hover .workspace-arrow,
.workspace-item:focus-visible .workspace-arrow {
  color: var(--blue);
  transform: translateX(3px);
}
.workspace-item > strong {
  color: var(--navy);
  font-size: var(--text-sm);
  line-height: 1.25;
}
.workspace-item > small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.3;
}
.workspace-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.section, .section-grid, .two-column, .dashboard-grid { margin-top: 34px; }
.section-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.section-heading { margin-bottom: 18px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h2 { color: var(--navy); }
.section-heading h2 {
  margin-bottom: 0.25rem;
  font-size: var(--text-2xl);
  line-height: 1.25;
}
.section-heading p, .page-title p, .lead { color: var(--muted); }

.tile-grid, .card-grid, .dashboard-grid { display: grid; gap: 16px; }
.tile-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card-grid > .empty-state,
.tile-grid > .empty-state { grid-column: 1 / -1; }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }

.tile, .course-card {
  display: grid;
  gap: 5px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}
.tile:hover, .course-card:hover, .timeline-step:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.course-card-title {
  display: -webkit-box;
  height: 2.925rem;
  margin: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.course-card-description {
  display: -webkit-box;
  height: 4.5rem;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.course-card-image {
  flex: 0 0 136px;
  height: 136px;
  margin: -16px -16px 2px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #eaf4ff;
}
.course-card-image img, .course-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(20, 104, 179, 0.95), rgba(15, 139, 141, 0.88)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 8px, transparent 8px 18px);
  font-weight: 800;
}
.course-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  flex-wrap: wrap;
}
.course-detail-banner {
  height: min(360px, 42vw);
  min-height: 220px;
  margin-bottom: 22px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.meta-line, .metric-row, .list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
.course-card-meta,
.course-card-footer {
  min-width: 0;
  font-size: var(--text-xs);
  line-height: 1.35;
}
.course-card-meta {
  margin-top: auto;
}
.course-card-meta span,
.course-card-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.course-card-meta span:first-child,
.course-card-footer span:first-child {
  flex: 1 1 auto;
}
.course-card-meta span:last-child {
  flex: 0 0 auto;
}
.course-card-footer {
  align-self: stretch;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.course-card-footer strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: var(--text-xs);
  font-weight: 700;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0.3rem 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  color: #22543d;
  background: #e7f4df;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.course-card .tag-row {
  min-height: 26px;
  flex-wrap: wrap;
  overflow: visible;
}
.course-card .tag-row > .course-tag {
  flex: 0 0 auto;
  max-width: 100%;
  font-size: x-small;
}
.course-tag-text {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.quiet-panel, .form-panel, .data-panel, .action-panel, .auth-panel { padding: 22px; }
.page-title { padding: 44px 0 18px; border-bottom: 1px solid var(--line); }
.page-title h1,
.page-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: var(--text-page);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0;
}
.filters p, .form-grid p, .form-panel p { margin: 0 0 12px; }
.filters label, .form-grid label, .form-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
}
.active-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
}
.active-filter-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #b9d6ee;
  border-radius: 999px;
  color: var(--navy);
  background: #eef7ff;
  font-size: var(--text-xs);
  line-height: 1.2;
}
.filter-chip span { font-weight: 700; }
.filter-chip strong {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 0.625rem;
}
.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--blue);
  background: #dfefff;
}
.clear-filter-action {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.people-active-filters { margin-top: 0; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-top: 38px; align-items: start; }
.detail-layout h1 { color: var(--navy); font-size: var(--text-page); letter-spacing: 0; line-height: 1.15; }
.detail-layout article > h2:first-of-type {
  font-size: var(--text-page);
  line-height: 1.15;
}
.course-detail-description {
  max-width: 72ch;
  margin: 0 0 18px;
  color: #40546a;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
}
.course-detail-topics {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.course-detail-topics-label {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}
.details, .info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.details div, .info-grid p { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
dt, .info-grid strong { display: block; color: var(--muted); font-size: var(--text-sm); font-weight: 700; }
dd { margin: 4px 0 0; }
.action-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-elevated);
}

.two-column { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.auth-panel {
  width: min(560px, 100%);
  margin: 52px auto;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 10px; }
.timeline { display: grid; gap: 14px; margin-top: 28px; }
.timeline-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.timeline-step > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}
.timeline-step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}
.roadmap-course-row {
  cursor: pointer;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.roadmap-course-row td {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid transparent;
}
.roadmap-course-row:hover,
.roadmap-course-row:focus-visible {
  background: #f3f9ff;
  box-shadow: inset 4px 0 0 var(--blue);
  transform: translateY(-1px);
}
.roadmap-course-row:hover .timeline-step-number,
.roadmap-course-row:focus-visible .timeline-step-number {
  background: var(--blue);
}
.roadmap-course-link {
  color: var(--navy);
  text-decoration: none;
}
.roadmap-course-row:hover .roadmap-course-link,
.roadmap-course-row:focus-visible .roadmap-course-link {
  color: var(--blue);
  text-decoration: underline;
}
.roadmap-progress-summary {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #b9d6ee;
  border-radius: 8px;
  background: #eef7ff;
}
.roadmap-progress-summary > div > div {
  display: grid;
  gap: 2px;
}
.roadmap-progress-summary span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}
.roadmap-progress-summary strong {
  color: var(--navy);
  font-size: var(--text-lg);
}
.roadmap-progress-summary .progress {
  height: 10px;
  background: #d7e6f3;
}
.roadmap-progress-summary .progress-bar { background: var(--teal); }
.roadmap-mobile-steps {
  display: grid;
  gap: 12px;
}
.roadmap-step-card {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  cursor: pointer;
}
.roadmap-step-card:hover,
.roadmap-step-card:focus-visible {
  border-color: var(--blue);
  background: #f3f9ff;
}
.roadmap-step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.roadmap-step-card .roadmap-course-link {
  font-weight: 700;
  line-height: 1.3;
}
.roadmap-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.roadmap-step-entity {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}
.person-row { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.person-card-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.person-card-link:hover,
.person-card-link:focus-visible {
  color: inherit;
  background: #f3f9ff;
  box-shadow: inset 4px 0 0 var(--blue);
  transform: translateY(-1px);
}
.person-profile-link {
  color: var(--navy);
  text-decoration: none;
}
.person-profile-link:hover { color: var(--blue); }
.person-bio-preview {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.person-card-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}
.person-card-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.person-card-actions svg { flex: 0 0 auto; width: 16px; height: 16px; stroke-width: 2.25; }
.empty-state { padding: 24px; color: var(--muted); background: var(--white); border-radius: 8px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.team-list { display: grid; gap: 12px; margin-top: 24px; }
.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.check-row input { width: 18px; height: 18px; margin-top: 3px; }
.check-row small { display: block; color: var(--muted); margin-top: 3px; }
.managed-learners-panel {
  display: grid;
  gap: 14px;
}
.managed-learners-header {
  position: sticky;
  top: 84px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.managed-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid #b7ddff;
  border-radius: 999px;
  background: #eef7ff;
  color: #0b5da7;
  font-size: var(--text-xs);
  font-weight: 800;
}
.managed-save-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.managed-change-status {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}
.managed-change-status.is-dirty { color: #9a6700; }
.managed-roster-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
}
.managed-search {
  position: relative;
  display: block;
}
.managed-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.managed-search .form-control { padding-left: 38px; }
.managed-roster-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.managed-roster-actions .btn.active {
  border-color: var(--blue);
  background: #e8f4ff;
  color: var(--navy);
}
.managed-learner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
}
.managed-person-card {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.managed-person-card:hover,
.managed-person-card:focus-within {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.managed-person-card.is-managed {
  border-color: #7fc2f3;
  background: #f1f8ff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.managed-person-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.managed-check {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}
.managed-check input {
  position: static;
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--blue);
}
.managed-check-label {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}
.managed-check input:checked + .managed-check-label {
  color: var(--blue);
}
.managed-check input:focus-visible { outline: 2px solid rgba(20, 104, 179, 0.32); outline-offset: 2px; }
.managed-person-link {
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
}
.managed-person-link strong {
  display: block;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.managed-person-link:hover strong,
.managed-person-link:focus-visible strong {
  color: var(--blue);
}
.managed-person-details {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.managed-person-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem !important;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.managed-person-details > .managed-person-meta + .managed-person-meta::before {
  content: "\00b7";
  padding: 0 7px;
  color: #9aa9b8;
}
.managed-person-level {
  font-weight: 700;
}
.managed-person-details .managed-check { margin-left: auto; padding-left: 10px; }
.managed-search-empty { text-align: center; }
.people-skill-options {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}
.people-skill-options .dropdown-item[hidden] { display: none !important; }
.people-filter-panel h2 { color: var(--navy); }
.learning-workspace {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.state-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f3f7fb;
}
.state-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #40546a;
  font-size: var(--text-sm);
  font-weight: 700;
}
.state-tabs .nav-link:hover,
.state-tabs .nav-link:focus-visible {
  border-color: #b9d6ee;
  color: var(--navy);
  background: #e8f3fd;
}
.state-tabs .nav-link.active {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}
.state-tabs .nav-link > span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: var(--text-xs);
}
.state-tab-content { min-height: 260px; }
.state-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 20px 20px 14px;
}
.state-panel-heading h2 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: var(--text-xl);
}
.state-panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.learning-state-list { border-top: 1px solid var(--line); }
.learning-state-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.learning-state-row:last-child { border-bottom: 0; }
.learning-state-row:hover { background: #f8fbff; }
.learning-state-row.is-overdue {
  border-left: 4px solid #dc3545;
  padding-left: 16px;
  background: #fff8f7;
}
.learning-state-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.learning-state-main a {
  color: var(--navy);
  line-height: 1.3;
}
.learning-state-main a:hover,
.learning-state-main a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}
.learning-state-main span,
.learning-state-main small {
  color: var(--muted);
  font-size: var(--text-sm);
}
.learning-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.learning-row-actions form { margin: 0; }
.state-empty {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}
.skill-level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 4px 6px 0;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.skill-level-1 {
  color: #4b5563;
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.skill-level-2 {
  color: #1f4f7a;
  background: #dbeafe;
  border-color: #bfdbfe;
}
.skill-level-3 {
  color: #075985;
  background: #bae6fd;
  border-color: #7dd3fc;
}
.skill-level-4 {
  color: #065f46;
  background: #bbf7d0;
  border-color: #86efac;
}
.skill-level-5 {
  color: #ffffff;
  background: linear-gradient(135deg, #1468b3, #0f8b8d);
  border-color: #0f8b8d;
}
.location-editor {
  display: grid;
  gap: 12px;
}
.location-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.location-card.is-primary {
  border-color: #b7ddff;
  background: #f3f9ff;
}
.person-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.person-meta-line > .text-muted {
  min-width: 0;
}
.location-mini-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 26px;
  max-width: 46%;
  margin-left: auto;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--navy);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-summary-grid {
  display: grid;
  gap: 10px;
}
.profile-summary-card {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #f5faff);
}
.profile-summary-card span,
.profile-secondary-locations > span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}
.profile-summary-card strong {
  color: var(--navy);
  font-size: var(--text-base);
  line-height: 1.25;
}
.profile-summary-card.is-location {
  border-color: #b7ddff;
  background: #f3f9ff;
}
.profile-secondary-locations {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px dashed #b7ddff;
  border-radius: 8px;
  background: #fbfdff;
}
.profile-secondary-locations div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-secondary-locations strong,
.profile-secondary-locations em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7f4df;
  color: #22543d;
  font-size: var(--text-sm);
}
.profile-about-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-about-section > div { max-width: 760px; }
.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}
.profile-bio { color: var(--ink); line-height: 1.65; }
.profile-about-section .btn { display: inline-flex; align-items: center; gap: 8px; }
.profile-about-section .btn svg { flex: 0 0 auto; width: 18px; height: 18px; stroke-width: 2.25; }
.resume-upload input[type="file"] { padding: 8px; }
@media (max-width: 575.98px) {
  .profile-about-section { flex-direction: column; }
  .person-card-actions { justify-content: flex-start; }
}
.profile-secondary-locations em {
  background: #f3f4f6;
  color: var(--muted);
  font-style: normal;
}
.profile-activity-list {
  display: grid;
  gap: 10px;
}
.profile-activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.profile-activity-item:hover,
.profile-activity-item:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.profile-activity-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-activity-item span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}
.profile-activity-item.is-complete span {
  color: #065f46;
  background: #dcfce7;
}
.profile-activity-item.is-started span {
  color: #1f4f7a;
  background: #dbeafe;
}
.organization-badge {
  border: 1px solid #acd9d6;
  color: #075f61;
  background: #e5f7f5;
}
.dashboard-metric-list,
.dashboard-activity-list {
  display: grid;
  gap: 10px;
}
.dashboard-metric-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #f5faff);
}
.dashboard-metric-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-metric-card strong {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: var(--text-base);
}
.dashboard-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.dashboard-filter-menu {
  max-height: none !important;
  overflow: hidden !important;
}
.dashboard-skill-options {
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
}
.dashboard-skill-options .dropdown-item[hidden] { display: none !important; }
.dashboard-scope-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.dashboard-scope-summary > div {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}
.dashboard-scope-summary > div:last-child { border-right: 0; }
.dashboard-scope-summary strong {
  color: var(--navy);
  font-size: var(--text-xl);
  line-height: 1.1;
}
.dashboard-scope-summary span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}
.dashboard-chart-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.dashboard-chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.dashboard-chart-controls label {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}
.dashboard-chart-controls .form-select { width: auto; }
.chart-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}
.chart-canvas-frame { min-width: 100%; }
.chart-footnote {
  min-height: 21px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
.dashboard-activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.dashboard-activity-card:hover,
.dashboard-activity-card:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.dashboard-activity-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-activity-card span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 180px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-activity-card.is-assignment span {
  color: #1f4f7a;
  background: #dbeafe;
}
.dashboard-activity-card.is-completion span {
  color: #065f46;
  background: #dcfce7;
}

.navbar .brand { min-width: max-content; }
.app-navbar .navbar-nav {
  gap: 0.2rem;
}
.app-navbar .nav-link {
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.52rem 0.78rem !important;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.show {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
}
.app-navbar .nav-link.active {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
}
.app-navbar .dropdown-menu {
  min-width: 290px;
  margin-top: 0.55rem;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 18px 42px rgba(11, 47, 99, 0.18) !important;
}
.app-navbar .dropdown-header {
  padding: 0.45rem 0.65rem 0.55rem;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.app-navbar .dropdown-item {
  display: grid;
  gap: 2px;
  border-radius: 7px;
  padding: 0.62rem 0.68rem;
  color: var(--ink);
  white-space: normal;
}
.app-navbar .dropdown-item strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
}
.app-navbar .dropdown-item small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.25;
}
.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
  color: var(--navy);
  background: #eef7ff;
}
.app-navbar .dropdown-item:hover strong,
.app-navbar .dropdown-item:focus strong {
  color: var(--navy);
}
.app-navbar .account-dropdown-header {
  display: grid;
  gap: 2px;
  text-transform: none;
}
.app-navbar .account-dropdown-header strong {
  overflow: hidden;
  color: var(--navy);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-navbar .dropdown-signout,
.app-navbar .dropdown-signout strong {
  color: #b42318;
}
.app-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}
.app-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}
.app-navbar .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}
.app-navbar .btn-primary {
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #ffffff;
  --bs-btn-color: #062e58;
  --bs-btn-hover-bg: #d9ebff;
  --bs-btn-hover-border-color: #d9ebff;
  --bs-btn-hover-color: #062e58;
  font-weight: 800;
}
.btn {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-tight);
}
.btn-primary {
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
}
.btn-outline-primary {
  --bs-btn-color: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: var(--blue);
  --bs-btn-hover-border-color: var(--blue);
}
.form-panel .helptext { display: block; color: var(--muted); font-size: var(--text-sm); margin-top: 0.25rem; }
.form-panel ul.errorlist, .auth-panel ul.errorlist { color: #b42318; padding-left: 1.1rem; }
.course-editor {
  display: grid;
  gap: 14px;
}
.course-form-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.course-form-section > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 13px 18px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.course-form-section > summary::-webkit-details-marker { display: none; }
.course-form-section > summary::after {
  color: var(--blue);
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
}
.course-form-section[open] > summary::after { content: "-"; }
.course-form-section > summary:hover,
.course-form-section > summary:focus-visible { background: #f3f9ff; }
.course-form-section > summary > span:first-child {
  display: grid;
  gap: 2px;
}
.course-form-section > summary strong { font-size: var(--text-lg); }
.course-form-section > summary small {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
}
.course-section-state {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #edf2f7;
  font-size: var(--text-xs);
  font-weight: 700;
}
.course-form-section-body {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.course-discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.course-discovery-block { min-width: 0; padding-right: 20px; }
.course-discovery-block + .course-discovery-block {
  padding-right: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.course-discovery-block h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: var(--text-xl);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--white);
}
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: #eef7ff;
}
.icon-button-danger { color: #b42318; }
.icon-button-danger:hover,
.icon-button-danger:focus-visible {
  border-color: #dc3545;
  color: #9f1c13;
  background: #fff1f0;
}
.location-card[hidden] { display: none; }
.location-add-button { justify-self: start; }
.skill-map {
  display: grid;
  gap: 12px;
}
.skill-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}
.skill-level-meter {
  height: 8px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}
.skill-level-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.course-sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.course-sidebar-section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.course-sidebar-section > h2,
.course-report-link h2 {
  margin: 0 0 10px;
  color: var(--navy);
}
.course-sidebar-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.course-progress-state {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 700;
}
.course-progress-state.is-started {
  border-color: #a9cff3;
  color: var(--navy);
  background: #eaf4ff;
}
.course-progress-state.is-completed {
  border-color: #ecd38a;
  color: #725300;
  background: #fff8df;
}
.course-report-link {
  display: grid;
  gap: 2px;
}
.course-sidebar-section:last-child { border-bottom: 0; }
.learning-material-list {
  display: grid;
  gap: 10px;
}
.learning-material-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.existing-material-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.learning-material-card:hover,
.learning-material-card:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.material-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
}
.material-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.material-copy strong,
.material-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-copy strong {
  color: var(--navy);
}
.material-copy small {
  color: var(--muted);
}
.material-action {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf4ff;
  font-size: var(--text-xs);
  font-weight: 700;
}
.learning-material-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdff;
}
.material-upload-list {
  display: grid;
  gap: 12px;
}
.material-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.material-remove-row {
  min-width: 42px;
}
.material-delete-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-height: 100%;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}
.pagination-summary {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}
.pagination {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.pagination .page-link {
  border-radius: 8px;
  color: var(--blue);
  font-weight: 800;
}
.pagination .active .page-link {
  border-color: var(--blue);
  background: var(--blue);
}
.external-access {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.external-access p { margin: 0; color: #e7f2ff; }
.external-access strong { font-size: 1.125rem; }
.external-access-button {
  width: 100%;
  padding-block: 0.75rem;
  color: var(--navy);
  font-size: var(--text-base);
}
.chart-card {
  min-height: 360px;
}
.chart-wrap {
  position: relative;
  min-height: 300px;
}
.filter-dropdown .dropdown-menu {
  max-height: 320px;
  overflow-y: auto;
}
.filter-dropdown .dropdown-item {
  white-space: normal;
  border-radius: 6px;
}
.filter-dropdown .dropdown-item:active {
  color: var(--ink);
  background: #eaf4ff;
}
.picker-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-height: 180px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.selected-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 36px;
}
.course-error-toast {
  max-width: 640px;
  margin-top: 18px;
  background: #fff7f7;
  box-shadow: var(--shadow-elevated);
}
.learning-overdue {
  color: #b42318 !important;
  background: #fff1f0;
}
.learning-overdue strong,
.learning-overdue span {
  color: #b42318 !important;
}
.toast-stack {
  position: sticky;
  top: 78px;
  z-index: 12;
}
.toast-stack .alert {
  box-shadow: var(--shadow-elevated) !important;
}
.action-summary .list-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.action-summary .list-row:last-child {
  border-bottom: 0;
}
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.faq-search-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 7px 14px;
  align-items: center;
  max-width: 720px;
  margin-top: 24px;
}
.faq-search-bar label {
  grid-column: 1 / -1;
  color: var(--navy);
  font-size: var(--text-sm);
  font-weight: 700;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--navy);
  font-weight: 900;
}
.faq-item div {
  padding: 0 18px 18px;
  color: var(--ink);
}
.faq-admin-list {
  display: grid;
  gap: 10px;
}
.faq-admin-card {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fbfdff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.faq-admin-card:hover,
.faq-admin-card:focus-visible {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.faq-admin-card .badge {
  justify-self: start;
}
.faq-admin-card strong {
  color: var(--navy);
}
.faq-admin-card small {
  color: var(--muted);
}
.content-page-title h1 {
  color: var(--navy);
  font-size: var(--text-page);
  line-height: 1.15;
}
.content-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.content-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.content-stat {
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.content-stat:last-child {
  border-right: 0;
}
.content-stat strong {
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
}
.content-stat span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}
.content-stat.is-verified strong {
  color: #087443;
}
.content-management-section {
  margin-top: 34px;
}
.content-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}
.content-section-heading h2 {
  margin: 0 0 3px;
  font-size: var(--text-xl);
}
.content-section-heading p {
  margin: 0;
  color: var(--muted);
}
.content-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding-inline: 9px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--sky);
  font-size: var(--text-xs);
  font-weight: 700;
}
.content-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.content-list-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.content-list-row:last-child {
  border-bottom: 0;
}
.content-list-row:hover {
  background: #f8fbff;
}
.content-list-row.is-roadmap {
  grid-template-columns: minmax(280px, 1fr) auto;
}
.content-list-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.content-title-link {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}
.content-title-link:hover,
.content-title-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}
.content-meta,
.content-analytics-summary,
.content-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.content-meta {
  color: var(--muted);
  font-size: var(--text-sm);
}
.content-meta span:not(:last-child)::after {
  margin-left: 10px;
  color: #b3bfcc;
  content: "\00b7";
}
.content-analytics-summary {
  justify-content: flex-end;
  color: var(--muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}
.content-analytics-summary strong {
  color: var(--navy);
}
.content-row-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.content-empty-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: var(--muted);
  flex-wrap: wrap;
}
.content-empty-state strong {
  color: var(--navy);
}
.content-empty-state .btn {
  margin-left: auto;
}
.site-footer {
  flex-shrink: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  background: #062e58;
}
.footer-inner {
  /*display: grid;*/
  /*grid-template-columns: minmax(0, 1fr) minmax(260px, 1.4fr) auto;*/
  gap: 22px;
  align-items: center;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-mark {
  color: #062e58;
  background: var(--white);
}
.footer-brand strong,
.footer-brand span {
  display: block;
}
.footer-brand span,
.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}
.site-footer a {
  color: var(--white);
  font-weight: 800;
}
.footer-links {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 1199.98px) {
  .app-navbar .navbar-collapse {
    padding: 0.25rem 0 1rem;
  }
  .app-navbar .partner-lockup {
    margin-left: 0 !important;
    padding: 0.75rem 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .app-navbar .navbar-nav {
    gap: 0.2rem;
    padding-top: 0.65rem;
  }
  .app-navbar .nav-item,
  .app-navbar .nav-link {
    width: 100%;
  }
  .app-navbar .nav-link {
    justify-content: flex-start;
    border-radius: 8px;
    text-align: left;
  }
  .app-navbar .user-pill {
    margin-top: 0.35rem;
  }
  .app-navbar .dropdown-menu {
    width: 100%;
    min-width: 0;
    margin: 0.25rem 0 0.45rem;
  }
}

@media (min-width: 992px) {
  .people-filter-panel {
    position: sticky;
    top: 86px;
  }
}

@media (max-width: 1020px) {
  .dashboard-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .content-analytics-summary {
    grid-column: 1;
    justify-content: flex-start;
  }
  .content-row-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 860px) {
  :root {
    --text-page: 1.875rem;
    --text-hero: 2.25rem;
  }
  .site-header, .hero, .section-grid, .detail-layout, .two-column, .dashboard-grid { grid-template-columns: 1fr; }
  .hero,
  .hero-public {
    min-height: 0;
    padding: 34px 0 28px;
  }
  .hero-copy h1,
  .hero-public .hero-copy h1 {
    font-size: 2.25rem;
  }
  .workspace-panel { width: 100%; }
  .site-header { position: static; }
  .nav-links, .auth-links { justify-content: flex-start; }
  .search-bar, .filters { grid-template-columns: 1fr; display: grid; }
  .details, .info-grid { grid-template-columns: 1fr; }
  .action-panel, .course-sidebar { position: static; }
  .course-sidebar { max-height: none; overflow-y: visible; }
  .course-detail-banner { height: 220px; }
  .managed-learners-header { position: static; align-items: stretch; flex-direction: column; }
  .managed-save-actions { justify-content: flex-start; }
  .managed-roster-toolbar { grid-template-columns: 1fr; }
  .managed-roster-actions { justify-content: flex-start; }
  .managed-learner-list { grid-template-columns: 1fr; max-height: 620px; }
  .state-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .state-tabs .nav-link { flex: 0 0 auto; }
  .learning-state-row { grid-template-columns: 1fr; gap: 10px; }
  .learning-state-row > .badge { justify-self: start; }
  .learning-row-actions { justify-content: flex-start; }
  .active-filter-bar { align-items: flex-start; flex-direction: column; }
  .course-discovery-grid { grid-template-columns: 1fr; }
  .course-discovery-block { padding-right: 0; }
  .course-discovery-block + .course-discovery-block {
    margin-top: 20px;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .course-form-section > summary {
    grid-template-columns: minmax(0, 1fr) 24px;
  }
  .course-section-state { display: none; }
  .faq-search-bar { grid-template-columns: 1fr; }
  .dashboard-chart-heading { align-items: stretch; flex-direction: column; }
  .dashboard-chart-controls { justify-content: flex-start; }
  .roadmap-steps-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .material-upload-row { grid-template-columns: 1fr; }
  .pagination-wrap { align-items: stretch; flex-direction: column; }
  .pagination { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .content-create-actions { justify-content: flex-start; }
  .content-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-stat { border-bottom: 1px solid var(--line); }
  .content-stat:nth-child(2n) { border-right: 0; }
  .content-stat:last-child { border-bottom: 0; }
  .content-list-row,
  .content-list-row.is-roadmap {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .content-analytics-summary,
  .content-row-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
  .content-empty-state .btn { margin-left: 0; }
}


@media (max-width: 520px) {
  .dashboard-filter-grid,
  .dashboard-scope-summary { grid-template-columns: 1fr; }
  .dashboard-scope-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-scope-summary > div:last-child { border-bottom: 0; }
  .search-bar .btn { width: 100%; }
  .workspace-actions { display: grid; }
  .workspace-actions .btn { width: 100%; }
  .content-summary { grid-template-columns: 1fr; }
  .content-stat,
  .content-stat:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .content-stat:last-child { border-bottom: 0; }
  .content-create-actions { display: grid; width: 100%; }
  .content-create-actions .btn { width: 100%; }
  .content-row-actions { flex-wrap: wrap; }
}
