@tailwind base;
@tailwind components;
@tailwind utilities;

/* Velociteach custom styles */
:root {
  --brand-blue: #004B91;
  --brand-yellow: #FBB03F;
  --brand-accent: #FBB03F;
  --brand-blue-deep: #0C2340;
  --brand-blue-night: #04111F;
  --brand-slate: #0C2B4A;
  --font-primary: 'Montserrat', sans-serif;
  --font-heading: 'Archivo', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: #222;
  background-color: #fff;
}

/* WCAG 2.1 AA — visible keyboard focus indicator */
:focus-visible {
  outline: 2px solid var(--brand-blue, #004b91);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

body.site-shell {
  margin: 0;
  font-family: var(--font-primary);
  color: #102033;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 45%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, rgba(0, 75, 145, 0.97), rgba(0, 45, 90, 0.95));
  box-shadow: 0 20px 45px -32px rgba(0, 75, 145, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-mobile-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: space-between;
}

.header-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header-mobile-toggle:hover,
.header-mobile-toggle:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.header-mobile-toggle__bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.header-mobile-toggle__bar::before,
.header-mobile-toggle__bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.header-mobile-toggle__bar::before {
  top: -6px;
}

.header-mobile-toggle__bar::after {
  top: 6px;
}

.header-mobile-toggle[aria-expanded="true"] .header-mobile-toggle__bar {
  background: transparent;
}

.header-mobile-toggle[aria-expanded="true"] .header-mobile-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.header-mobile-toggle[aria-expanded="true"] .header-mobile-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: clamp(150px, 22vw, 260px);
  height: auto;
}
.global-header .brand-logo {
  width: clamp(150px, 20vw, 240px);
}
.global-footer .brand-logo {
  width: clamp(180px, 24vw, 300px);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}
.nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover {
  color: #fff;
}
.nav-link.active {
  color: #fff;
  border-color: var(--brand-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-search {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.3rem;
}
.header-search input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.35rem 0.8rem;
  width: 160px;
  font-size: 0.9rem;
}
.header-search input::placeholder {
.product-key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.05rem 0.45rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(12, 35, 64, 0.85);
}
  color: rgba(255, 255, 255, 0.55);
}
.header-search button {
  background: var(--brand-accent);
  border: none;
  color: var(--brand-blue-night);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}
.header-search button:hover {
  filter: brightness(1.05);
}
.header-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.profile-pill:hover,
.profile-pill:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.45);
  outline: none;
}

.profile-pill__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--brand-blue-night);
  font-weight: 700;
  font-size: 0.8rem;
}

.profile-pill__name {
  white-space: nowrap;
}

.profile-pill__caret {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 0.15rem;
}

.header-profile[data-open] .profile-pill,
.header-profile:hover .profile-pill {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.36);
}

.header-profile[data-open] .profile-pill__caret,
.header-profile:hover .profile-pill__caret {
  transform: rotate(-135deg);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(4, 17, 31, 0.08);
  border-radius: 18px;
  padding: 0.5rem 0;
  box-shadow: 0 32px 70px -42px rgba(4, 17, 31, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 50;
}

.profile-menu::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.55rem;
}

.header-profile[data-open] .profile-menu,
.header-profile:hover .profile-menu,
.header-profile:focus-within .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  color: var(--brand-blue-night);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.profile-menu__item:hover,
.profile-menu__item:focus {
  background: rgba(0, 75, 145, 0.08);
  color: var(--brand-blue);
  padding-left: 1.35rem;
  outline: none;
}

.profile-menu__item--danger {
  color: #b3261e;
}

.profile-menu__item--danger:hover,
.profile-menu__item--danger:focus {
  color: #8b1d18;
  background: rgba(179, 38, 30, 0.12);
}

.profile-menu__form {
  margin: 0;
}

.profile-pill--ghost {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-pill--ghost:hover,
.profile-pill--ghost:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

.global-main {
  flex: 1;
  padding: 2.5rem 0;
}

.global-footer {
  background: linear-gradient(140deg, #0c2340, #04111f 70%);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-brand {
  display: grid;
  gap: 1rem;
}
.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  max-width: 320px;
}
.footer-links {
  display: grid;
  gap: 0.6rem;
}
.footer-links h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-meta {
  display: flex;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-mobile-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .header-mobile-panel {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    order: 3;
    background: rgba(0, 28, 61, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 26px 46px -28px rgba(0, 0, 0, 0.5);
  }

  .header-mobile-panel[data-open] {
    display: flex;
  }

  .header-mobile-panel .primary-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    width: 100%;
  }

  .header-mobile-panel .primary-nav__menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .header-mobile-panel .primary-nav__trigger {
    width: 100%;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem 0.85rem;
  }

  .header-mobile-panel .primary-nav__panel {
    position: static;
    box-shadow: none;
    width: 100%;
    margin-top: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .header-mobile-panel .primary-nav__panel-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1rem 0.6rem 2rem;
  }

  .header-mobile-panel .primary-nav__panel-link:hover,
  .header-mobile-panel .primary-nav__panel-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .header-mobile-panel .primary-nav__menu:not([data-open]) .primary-nav__panel {
    display: none;
  }

  .header-mobile-panel .header-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .header-mobile-panel .profile-pill {
    width: 100%;
  }

  .header-mobile-panel .header-search {
    width: 100%;
  }

  .header-mobile-panel .header-search input {
    width: 100%;
  }

  .header-mobile-panel .header-profile {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-pill {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-search button {
    padding: 0.35rem 0.7rem;
  }
  .footer-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}


.site-header {
  background: var(--brand-blue);
  padding: 1rem 0;
}
.site-header .logo img {
  height: 40px;
}
.site-header .main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.site-header .main-nav a {
  color: white;
  font-weight: 500;
  text-decoration: none;
}
.site-header .main-nav a:hover {
  color: var(--brand-yellow);
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('/static/images/hero-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.course-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform .3s;
}
.course-card:hover {
  transform: translateY(-5px);
}
.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.course-info {
  padding: 1rem;
}
.course-info h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0.5rem 0;
}
.course-info p {
  font-size: 0.9rem;
  color: #555;
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--brand-yellow);
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.btn:hover {
  background: #ffca52;
}
.site-footer {
  background: #f7f7f7;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}
/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.dash-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.dash-card.highlight {
  background: var(--brand-blue);
  color: white;
}
.progress-circle {
  width: 100px;
  height: 100px;
  border: 6px solid var(--brand-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: auto;
}

/* Course Detail */
.course-hero {
  position: relative;
}
.course-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}
.course-hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  color: white;
  text-align: center;
}
.lesson-list {
  list-style: none;
  padding: 0;
}
.lesson-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}
.lesson-list li a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}

/* Lesson Player */
.lesson-player {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
}
.video-wrapper video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.lesson-sidebar {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}
.lesson-sidebar ul {
  list-style: none;
  padding: 0;
}
.lesson-sidebar li.active a {
  font-weight: bold;
  color: var(--brand-yellow);
}

/* Instructors */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.instructor-card {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.instructor-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
}

/* Reports */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}
.report-table th, .report-table td {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.report-table th {
  background: var(--brand-blue);
  color: white;
}


/* Modern dashboard refresh */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.95), rgba(0, 45, 90, 0.9));
  color: #fff;
  padding: 4rem 0 3rem;
}
.dashboard-hero::before,
.dashboard-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.dashboard-hero::before {
  top: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: rgba(251, 176, 63, 0.35);
}
.dashboard-hero::after {
  bottom: -160px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: rgba(0, 75, 145, 0.4);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  z-index: 2;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #ffffff;
}
.hero-eyebrow-player {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #102033;
}
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin: 0;
}
.hero-lead {
  font-size: 1.1rem;
  color: #ffffff;
  max-width: 32rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hero-action-stack form {
  margin: 0;
}
.hero-action-stack .btn {
  width: auto;
}
.hero-actions .btn-outline--inverse {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(12, 35, 64, 0.35);
  backdrop-filter: blur(18px);
}
.hero-actions .btn-outline--inverse:hover {
  background: rgba(12, 35, 64, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}
.hero-actions .btn {
  margin-top: 0;
}
.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.hero-tags li {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.progress-card {
  background: rgba(12, 43, 74, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 55px -26px rgba(2, 10, 20, 0.75);
}
.progress-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-insights {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.hero-insights__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-insights__summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}
.hero-insights__note {
  margin: -0.35rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}
.hero-insights__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.hero-insights__metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hero-insights__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.hero-insights__label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.hero-insights__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-insights__footer-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.hero-insights__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(251, 176, 63, 0.25);
  color: var(--brand-yellow);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 24px -18px rgba(251, 176, 63, 0.8);
}
.hero-insights__footer-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero-insights__cta {
  font-size: 0.85rem;
  color: var(--brand-yellow);
  text-decoration: none;
  font-weight: 600;
}
.hero-insights__cta:hover {
  color: #ffe08a;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}
.stat-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.2rem 1rem;
  text-align: center;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.35rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header h2 {
  margin: 0;
  font-size: 2rem;
  font-family: var(--font-heading);
}
.section-header p {
  margin: 0.3rem 0 0;
  color: #4a5b6b;
}
.section-link {
  font-size: 0.9rem;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}
.section-link:hover {
  color: var(--brand-accent);
}

.section-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-count {
  font-size: 0.9rem;
  color: #4a5b6b;
  white-space: nowrap;
}

.dashboard-section {
  padding: 3rem 0;
  background: #fff;
}
.dashboard-section:nth-of-type(even) {
  background: #f6f8fb;
}

.course-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - 4.5rem) / 4));
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}
.course-scroll::-webkit-scrollbar {
  height: 6px;
}
.course-scroll::-webkit-scrollbar-thumb {
  background: rgba(12, 43, 74, 0.3);
  border-radius: 999px;
}
.course-scroll.alt {
  grid-auto-columns: minmax(220px, 0.6fr);
}

.course-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(0, 75, 145, 0.35);
  border: 1px solid rgba(0, 75, 145, 0.1);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -24px rgba(0, 75, 145, 0.45);
}
.course-card.modern,
.course-card.compact,
.course-card.grid {
  min-height: 100%;
}
.course-card.compact {
  background: linear-gradient(160deg, rgba(0, 75, 145, 0.9), rgba(0, 45, 90, 0.85));
  color: #fff;
}
.course-card.grid {
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
}
.course-card.tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
}

.course-card.tile .course-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 75, 145, 0.08);
}

.course-card.tile .course-thumb img,
.course-card.tile .thumb-fallback {
  width: 100%;
  height: 100%;
}

.course-card.tile .thumb-fallback {
  font-size: 2.8rem;
}

.course-card.tile .course-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.75rem;
  flex: 1;
}

.course-card.tile .course-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.course-card.tile .course-meta {
  color: #415062;
}

.course-card.tile .course-actions {
  margin-top: auto;
  justify-content: flex-start;
  gap: 0.75rem;
}

.course-card.tile .course-actions .btn {
  margin-right: auto;
}

.course-card.tile .course-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(251, 176, 63, 0.18);
  color: var(--brand-blue-night);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.course-card.tile .course-blurb {
  color: #425062;
}

.course-card.tile .badge-popular {
  background: var(--brand-accent);
  color: var(--brand-blue-night);
}


.course-thumb {
  position: relative;
  overflow: hidden;
}
.course-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.course-card.grid .course-thumb img {
  height: 100%;
  min-height: 120px;
  width: 160px;
}
.thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  background: linear-gradient(145deg, rgba(0, 75, 145, 0.6), rgba(0, 75, 145, 0.8));
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}
.course-card.grid .thumb-fallback {
  width: 160px;
  height: auto;
}

.course-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
}
.course-card.compact .course-body {
  padding: 1.5rem;
}
.course-card.grid .course-body {
  padding: 1.5rem 1.5rem 1.5rem 0;
}
.course-card.pending {
  border: 1px dashed rgba(0, 75, 145, 0.4);
}
.course-card.pending .pending-activation-form {
  margin-top: auto;
}
.pending-activation-form .btn {
  width: 100%;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.is-open {
  display: flex;
}
.modal-open {
  overflow: hidden;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 28, 56, 0.55);
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 38px 60px -30px rgba(6, 28, 56, 0.45);
  padding: 2rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--brand-blue);
  cursor: pointer;
}
.modal__header h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  color: var(--brand-blue);
}
.modal__subtitle {
  margin: 0;
  color: #4a5b6b;
  font-size: 0.95rem;
}
.modal__course {
  font-weight: 600;
  color: var(--brand-blue);
  margin: 0;
}
.modal__copy {
  margin: 0.75rem 0 0;
  color: #4a5b6b;
  font-size: 0.9rem;
}
.modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.modal__actions .btn {
  min-width: 140px;
}
.course-tag {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.course-card.compact .course-tag {
  color: rgba(255, 255, 255, 0.88);
}
.course-body h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: inherit;
}
.course-meta {
  font-size: 0.85rem;
  color: #536172;
}
.course-card.compact .course-meta {
  color: rgba(255, 255, 255, 0.65);
}

.course-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.btn-link {
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  font-size: 0.9rem;
}
.course-card.compact .btn-link {
  color: var(--brand-yellow);
}
.btn-link:hover {
  color: var(--brand-accent);
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--brand-blue-night);
  box-shadow: 0 18px 38px -24px rgba(251, 176, 63, 0.7);
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
}
.btn-primary:hover {
  background: #ffd27a;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(0, 75, 145, 0.55);
  color: var(--brand-blue);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover,
.btn-outline:focus {
  background: rgba(0, 75, 145, 0.08);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -22px rgba(0, 75, 145, 0.55);
  outline: none;
}
.btn-outline--inverse {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 38px -28px rgba(4, 17, 31, 0.65);
}
.btn-outline--inverse:hover,
.btn-outline--inverse:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 44px -26px rgba(4, 17, 31, 0.65);
  color: #fff;
  outline: none;
}
.empty-state {
  text-align: center;
  padding: 3rem;
  border-radius: 24px;
  border: 1px dashed rgba(0, 75, 145, 0.2);
  background: #f8fbff;
}
.empty-state h3 {
  margin-top: 0;
  font-family: var(--font-heading);
}
.empty-copy {
  color: #63758d;
}

@media (max-width: 768px) {
  .dashboard-section {
    padding: 1.5rem 0;
  }
  .section-header {
    margin-bottom: 1rem;
  }
  .section-header h2 {
    font-size: 1.4rem;
  }
  .progress-ring {
    width: 130px;
    height: 130px;
    box-shadow: inset 0 0 0 10px rgba(0, 45, 90, 0.8);
  }
  .course-grid {
    gap: 1rem;
    grid-template-columns: 1fr;
  }
  .course-card.grid {
    flex-direction: column;
  }
  .course-card.grid .course-thumb img,
  .course-card.grid .thumb-fallback {
    width: 100%;
    height: 140px;
  }
  .course-card.grid .course-body {
    padding: 1.25rem;
  }
  .course-card.tile .course-thumb {
    height: 200px;
  }
  .course-card.tile .course-body {
    padding: 1.25rem;
  }
}




/* Shared page hero styles */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #004b91, #002d5a);
}
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
}
.courses-hero {
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.95), rgba(0, 45, 90, 0.9));
  overflow: visible;
}
.courses-hero::before {
  top: -180px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: rgba(251, 176, 63, 0.35);
}
.courses-hero::after {
  bottom: -200px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: rgba(12, 75, 145, 0.45);
}
#flashcard-hero {
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.95), rgba(0, 45, 90, 0.9));
}
#flashcard-hero::before {
  top: -180px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: rgba(251, 176, 63, 0.35);
}
#flashcard-hero::after {
  bottom: -200px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: rgba(12, 75, 145, 0.45);
}
.analytics-hero,
.reports-hero {
  background: linear-gradient(135deg, #004b91, #002d5a);
}
.analytics-hero::before,
.reports-hero::before {
  top: -220px;
  left: 20%;
  width: 520px;
  height: 520px;
  background: rgba(251, 176, 63, 0.28);
}
.analytics-hero::after,
.reports-hero::after {
  bottom: -260px;
  right: 10%;
  width: 540px;
  height: 540px;
  background: rgba(0, 75, 145, 0.55);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}
.page-hero__stats div {
  background: #002040;
  border: 1px solid #1a4a6e;
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  text-align: center;
}
.page-hero__stats .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.page-hero__stats .stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
}

.page-section {
  padding: 2.5rem 0;
}
.page-section.alt {
  background: #f6f8fb;
}

/* Filter controls */
.filter-bar {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 1fr)) auto auto;
  gap: 1rem;
  align-items: end;
}
.filter-card {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: end;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 75, 145, 0.08);
  padding: 1.5rem;
  box-shadow: 0 18px 38px -30px rgba(0, 75, 145, 0.35);
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #ffffff;
}

.courses-hero .filter-label {
  color: rgba(255, 255, 255, 0.88);
}
.filter-bar input,
.filter-bar select,
.filter-card input,
.filter-card select {
  border: 1px solid rgba(0, 75, 145, 0.16);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
}
.filter-bar button,
.filter-card button {
  justify-self: start;
}
.filter-bar .filter-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.filter-actions .btn-outline--inverse.filter-reset {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}
.filter-actions .btn-outline--inverse.filter-reset:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
}

.courses-filter-sticky {
  position: sticky;
  top: 112px;
  z-index: 6;
  width: 100%;
  margin-top: -3rem;
  padding: 0 0 2rem 0;
}
.courses-filter-sticky .filter-bar {
  background: rgba(12, 43, 74, 0.9);
  border: 1px solid rgba(0, 45, 90, 0.35);
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 25px 55px -32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}
.courses-filter-sticky .filter-bar input,
.courses-filter-sticky .filter-bar select {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.3);
}
.courses-trending {
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.96), rgba(0, 45, 90, 0.92));
  padding: 1.5rem 0 3rem;
}
.courses-trending .trending-strip {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .filter-bar .filter-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .filter-bar .filter-actions .btn,
  .filter-bar .filter-actions .filter-reset {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Filter toggle button - hidden on desktop */
.filter-toggle {
  display: none;
}

@media (max-width: 768px) {
  .courses-filter-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 30;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }
  .courses-filter-sticky .container {
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .courses-filter-sticky .filter-bar[data-open] {
    max-height: 70vh;
    overflow-y: auto;
  }
  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--brand-blue);
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  }
  .filter-toggle__badge {
    background: var(--brand-accent);
    color: var(--brand-blue-night);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .courses-filter-sticky .filter-bar {
    padding: 1rem;
    border-radius: 0;
    gap: 0.5rem;
    margin-top: 0;
    background: rgba(12, 43, 74, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    box-sizing: border-box;
  }
  .courses-filter-sticky .filter-bar:not([data-open]) {
    display: none;
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .filter-bar .filter-group {
    gap: 0.15rem;
  }
  .filter-bar .filter-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
  .filter-bar .filter-group {
    min-width: 0;
  }
  .filter-bar input,
  .filter-bar select {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 400;
    border-radius: 10px;
    border: 1px solid rgba(0, 75, 145, 0.16);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 2.25rem;
    line-height: 1.2;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.95);
  }
  .filter-bar input::placeholder {
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.55;
  }
  .filter-bar .filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
  }
  .filter-bar .filter-actions .btn,
  .filter-bar .filter-actions .filter-reset {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
}
.export-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.export-actions .btn {
  padding: 0.65rem 1.4rem;
}

/* Export dropdown */
.export-dropdown {
  position: relative;
  margin-left: auto;
}
.export-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.export-dropdown__trigger:hover {
  border-color: #9ca3af;
}
.export-dropdown__chevron {
  font-size: 0.65rem;
  margin-left: 0.15rem;
}
.export-dropdown__panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
  padding: 0.25rem 0;
}
.export-dropdown__panel.is-open {
  display: block;
}
.export-dropdown__item {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: #374151;
  text-decoration: none;
  transition: background 0.1s;
}
.export-dropdown__item:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Trending strip */
.trending-strip {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.trending-title {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.trending-courses {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trending-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
  align-items: center;
  color: #fff;
}

.courses-hero .trending-card .course-tag {
  color: rgba(255, 255, 255, 0.78);
}
.trending-thumb img,
.trending-card .thumb-fallback {
  border-radius: 14px;
  height: 80px;
  width: 80px;
  object-fit: cover;
}
.trending-card h3 {
  margin: 0.25rem 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.trending-card .course-meta {
  color: rgba(255, 255, 255, 0.88);
}

/* Card grid */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card-grid.single-column {
  justify-content: center;
}
.card-grid.single-column .course-card {
  max-width: 540px;
}
.course-card .course-blurb {
  font-size: 0.9rem;
  color: #5b6a7a;
}
.course-meta-note {
  font-size: 0.85rem;
  color: rgba(4, 17, 31, 0.55);
  margin: 0.35rem 0;
}
.course-card.modern .course-meta-note,
.course-card.tile .course-meta-note {
  color: rgba(4, 17, 31, 0.55);
}
.course-card.compact {
  color: #fff;
}
.course-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.course-actions .course-enrollment {
  font-size: 0.85rem;
  color: rgba(0, 75, 145, 0.6);
}
.course-card.compact .course-actions .course-enrollment {
  color: rgba(255, 255, 255, 0.88);
}

/* Course hero */
.course-hero-modern {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  color: #fff;
  background: linear-gradient(135deg, #004b91, #002d5a);
}
.course-hero-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.course-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}
.course-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.course-hero__panel {
  display: grid;
  gap: 1.2rem;
  background: #002040;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
}
.course-hero__panel .metric-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: #ffffff;
}
.panel-metric {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.panel-metric .metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.panel-progress {
  display: grid;
  gap: 0.4rem;
}
.panel-progress__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #0a2a45;
  position: relative;
  overflow: hidden;
}
.panel-progress__bar span {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--brand-accent), #ffd27a);
  transition: width 0.4s ease;
}
.panel-progress__value {
  font-size: 0.9rem;
  color: #ffffff;
}
.panel-meta {
  background: #0a2a45;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid #1a4a6e;
}
.panel-meta span {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: #ffffff;
}
.panel-meta p {
  margin: 0.4rem 0 0;
  color: #fff;
}
.course-hero__copy .course-status {
  font-size: 0.9rem;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #4a7a9e;
}
.course-detail__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: start;
}
.course-overview {
  display: grid;
  gap: 0.75rem;
}
.course-overview p:empty {
  display: none;
}
.course-detail__grid .course-meta {
  background: #fff;
  border: 1px solid rgba(0, 75, 145, 0.1);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 18px 34px -28px rgba(0, 75, 145, 0.3);
}
.course-detail__grid .course-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.course-detail__grid .course-meta li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #3a4956;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(12, 75, 145, 0.1);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.85rem;
}

.lesson-outline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.lesson-outline__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 75, 145, 0.08);
  box-shadow: 0 18px 34px -30px rgba(0, 75, 145, 0.2);
}
.lesson-outline__item.locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.lesson-outline__info {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.1rem;
  align-items: center;
}
.lesson-order {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-blue);
}
.lesson-lock {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b3bdc8;
}

/* Lesson player */
.lesson-shell {
  padding: 0;
  background: #f6f8fb;
}
.lesson-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.lesson-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lesson-progress__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 75, 145, 0.12);
  position: relative;
  overflow: hidden;
}
.lesson-progress__bar span {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--brand-accent), #ffd27a);
  transition: width 0.4s ease;
}
.lesson-progress__value {
  font-size: 0.9rem;
  color: var(--brand-blue);
  font-weight: 600;
}
.lesson-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.6fr);
}
.player-stage {
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 48px -32px rgba(0, 75, 145, 0.45);
  display: block;
}
.player-stage video,
.player-stage iframe {
  width: 100%;
  min-height: 420px;
  display: block;
}
.player-placeholder {
  padding: 2rem;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-blue), #04111f);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

/* Evaluation form and star rating */
.evaluation-stage {
  padding: 1.5rem;
  background: #f6f8fb;
  color: #222;
}
.evaluation-form-wrapper .evaluation-field {
  margin-bottom: 1.25rem;
}
.evaluation-form-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.evaluation-form-wrapper .star-rating {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}
.evaluation-form-wrapper .star-label {
  cursor: pointer;
  display: inline-block;
}
.evaluation-form-wrapper .star-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.evaluation-form-wrapper .star-option {
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: #d1d5db;
  display: inline-block;
  line-height: 1;
}
.evaluation-form-wrapper .star-label:has(.star-input:checked) .star-option,
.evaluation-form-wrapper .star-label:hover .star-option {
  color: var(--brand-accent);
}
.evaluation-form-wrapper .star-hint {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}
.evaluation-form-wrapper .evaluation-stars-row label:first-of-type {
  margin-bottom: 0;
}

.player-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.complete-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.player-nav {
  display: flex;
  gap: 0.75rem;
}
.completion-indicator {
  font-size: 0.85rem;
  color: var(--brand-blue);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.completion-indicator.is-visible {
  opacity: 1;
}
.lesson-outline-panel {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 75, 145, 0.08);
  padding: 1.75rem;
  box-shadow: 0 24px 42px -32px rgba(0, 75, 145, 0.35);
}
.lesson-outline-panel ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.lesson-outline-row {
  border-radius: 14px;
  border: 1px solid rgba(0, 75, 145, 0.08);
  background: #f7f9fc;
  transition: transform 0.2s ease, background 0.2s ease;
}
.lesson-outline-row.completed {
  background: rgba(12, 75, 145, 0.08);
}
.lesson-outline-row.active {
  border-color: var(--brand-accent);
  background: rgba(251, 176, 63, 0.1);
}
.lesson-outline-row a,
.lesson-outline-row > .lesson-name {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.65rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 0.85rem 1rem;
}
.lesson-index {
  grid-row: 1 / -1;
  font-weight: 600;
  color: var(--brand-blue);
  flex-shrink: 0;
}
.lesson-name {
  grid-column: 2;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-blue-night);
}
.lesson-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lesson-duration {
  font-size: 0.75rem;
  color: #748497;
}
.lesson-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 128, 96, 0.12);
  color: #006b54;
  font-size: 0.75rem;
  font-weight: 700;
}
.lesson-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #748497;
}

/* Report tabs navigation */
.report-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.report-tabs::-webkit-scrollbar {
  display: none;
}
.report-tabs__link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 75, 145, 0.2);
  background: #fff;
  color: var(--brand-blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.report-tabs__link:hover,
.report-tabs__link:focus {
  background: rgba(0, 75, 145, 0.08);
  border-color: rgba(0, 75, 145, 0.4);
  outline: none;
}
.report-tabs__link--active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* Mobile card view for data tables */
.data-cards-mobile {
  display: none;
}

@media (max-width: 768px) {
  .report-tabs__link {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
  .filter-card {
    grid-template-columns: 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .chart-card {
    padding: 1rem;
  }
  .data-table-desktop {
    display: none;
  }
  .data-cards-mobile {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(0, 75, 145, 0.08);
    background: #fff;
    overflow: hidden;
  }
  .data-card-m {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 75, 145, 0.08);
  }
  .data-card-m:last-child {
    border-bottom: none;
  }
  .data-card-m__title {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-blue-night);
  }
  .data-card-m__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
  }
  .data-card-m__stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .data-card-m__label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(4, 17, 31, 0.55);
  }
  .data-card-m__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-blue-night);
  }
  .data-table {
    margin-top: 1.5rem;
  }
  .data-table .mobile-cards {
    display: block;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 75, 145, 0.08);
    padding: 0.25rem 1.25rem;
  }
}

/* Reports & analytics shared components */
.report-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.chart-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 75, 145, 0.08);
  padding: 1.5rem;
  box-shadow: 0 24px 42px -32px rgba(0, 75, 145, 0.32);
  display: grid;
  gap: 1.25rem;
}
.chart-card header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-heading);
}
.chart-card header p {
  margin: 0.35rem 0 0;
  color: #5b6a7a;
  font-size: 0.9rem;
}
.data-table {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}
.table-responsive {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 145, 0.08);
  background: #fff;
}
.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}
.table-responsive th,
.table-responsive td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 75, 145, 0.08);
}
.table-responsive th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: #5b6a7a;
}
.table-responsive tr:last-child td {
  border-bottom: none;
}

@media (max-width: 1024px) {
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-outline-panel {
    order: -1;
  }
  .course-detail__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .course-hero-modern {
    padding: 2rem 0 1.5rem;
    background: linear-gradient(135deg, #004b91, #002d5a);
  }
  .course-hero-modern::after {
    display: none;
  }
  .course-hero__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .course-hero__copy {
    gap: 0.75rem;
  }
  .course-hero__copy h1 {
    font-size: 1.6rem;
  }
  .course-hero__copy p {
    font-size: 0.9rem;
  }
  .course-hero__panel {
    gap: 0.8rem;
    padding: 1.25rem;
    border-radius: 18px;
  }
  .panel-metric .metric-value {
    font-size: 1.5rem;
  }
  .page-section {
    padding: 2rem 0;
  }
  .course-overview {
    gap: 0.75rem;
  }
  .course-overview h2 {
    font-size: 1.3rem;
  }
  .course-detail__grid {
    gap: 1.5rem;
  }
  .course-meta {
    padding: 1.25rem;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .page-hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .filter-bar,
  .filter-card {
    grid-template-columns: 1fr;
  }
  .export-actions {
    justify-content: flex-start;
  }
  .player-stage video,
  .player-stage iframe,
  .player-placeholder {
    min-height: 280px;
  }
  .lesson-outline-row a {
    grid-template-columns: 36px 1fr;
  }
  .lesson-type {
    display: none;
  }
}

.course-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(0, 75, 145, 0.1);
  color: #004B91;
}
.status-pill--success {
  background: rgba(34, 197, 94, 0.18);
  color: #047857;
}
.status-pill--muted {
  background: rgba(17, 24, 39, 0.12);
  color: #374151;
}
.status-passport {
  background: rgba(251, 176, 63, 0.18);
  color: #C87800;
}
.status-completed {
  background: #FBB03F;
  color: #004B91;
}
.status-in-progress {
  background: rgba(0, 75, 145, 0.15);
  color: #004B91;
}
.status-not-started {
  background: rgba(0, 75, 145, 0.08);
}
.status-available {
  background: rgba(0, 75, 145, 0.08);
}

.progress-track {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.progress-track .progress-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(0, 75, 145, 0.65);
}
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 75, 145, 0.1);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #004B91, #0C4B91);
}


.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-nav__link,
.admin-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 17, 31, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue-night);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-nav__link:hover,
.admin-nav__link:focus,
.admin-nav__trigger:hover,
.admin-nav__trigger:focus {
  background: rgba(0, 75, 145, 0.12);
  border-color: rgba(0, 75, 145, 0.45);
  box-shadow: 0 12px 38px -24px rgba(0, 75, 145, 0.55);
  outline: none;
}

.admin-nav__link--active,
.admin-nav__menu[data-open] > .admin-nav__trigger,
.admin-nav__trigger--current {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 18px 40px -24px rgba(0, 75, 145, 0.7);
}

.admin-nav__menu {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

.admin-nav__chevron {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 0.35rem;
}

.admin-nav__menu[data-open] .admin-nav__chevron,
.admin-nav__menu:hover .admin-nav__chevron {
  transform: rotate(-135deg);
}

.admin-nav__panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(4, 17, 31, 0.08);
  border-radius: 18px;
  padding: 0.4rem 0;
  box-shadow: 0 30px 70px -38px rgba(4, 17, 31, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 30;
}

.admin-nav__panel::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 0;
  right: 0;
  height: 0.45rem;
}

.admin-nav__menu[data-open] .admin-nav__panel,
.admin-nav__menu:hover .admin-nav__panel,
.admin-nav__menu:focus-within .admin-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-nav__panel-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  color: var(--brand-blue-night);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.admin-nav__panel-link:hover,
.admin-nav__panel-link:focus {
  background: rgba(0, 75, 145, 0.08);
  color: var(--brand-blue);
  padding-left: 1.35rem;
  outline: none;
}

.admin-nav__panel-link--active {
  background: rgba(0, 75, 145, 0.16);
  color: var(--brand-blue-night);
  font-weight: 600;
}

@media (max-width: 768px) {
  .admin-nav {
    flex-direction: column;
    gap: 0.6rem;
  }

  .admin-nav__link,
  .admin-nav__trigger {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .admin-nav__menu {
    width: 100%;
  }

  .admin-nav__panel {
    position: static;
    margin-top: 0.4rem;
    border-radius: 14px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .admin-nav__menu:not([data-open]) .admin-nav__panel {
    display: none;
  }
  .admin-nav__panel::before {
    content: none;
  }
}

.admin-portal-container {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}
.admin-content-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-dashboard__hero {
  margin-top: 0;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #e8f3ff);
  border: 1px solid rgba(0, 75, 145, 0.16);
  box-shadow: 0 26px 60px -44px rgba(4, 17, 31, 0.4);
  display: grid;
  gap: 2rem;
  color: var(--brand-blue-night);
  align-items: center;
}

@media (min-width: 1040px) {
  .admin-dashboard__hero {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.admin-dashboard__hero-copy {
  display: grid;
  gap: 0.65rem;
  max-width: 640px;
}

.admin-dashboard__hero-copy .hero-heading {
  margin: 0;
  color: var(--brand-blue-night);
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.admin-dashboard__hero-copy .hero-lead {
  margin: 0;
  color: rgba(6, 56, 99, 0.9);
  line-height: 1.6;
}

.admin-dashboard__hero-copy .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.admin-dashboard__hero-metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.hero-metric {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 75, 145, 0.12);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.4rem;
  color: var(--brand-blue-night);
}

.hero-metric__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(4, 17, 31, 0.72);
  margin: 0;
}

.hero-metric__value {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.hero-metric__note {
  font-size: 0.85rem;
  margin: 0;
  color: rgba(4, 17, 31, 0.68);
}

.admin-dashboard__stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.metric-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 75, 145, 0.1);
  box-shadow: 0 2px 8px -4px rgba(4, 17, 31, 0.15);
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.35rem;
  color: var(--brand-blue-night);
}

.metric-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(4, 17, 31, 0.72);
  margin: 0;
}

.metric-card__value {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 700;
}

.metric-card__note {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(4, 17, 31, 0.7);
  line-height: 1.5;
}

.admin-dashboard__courses {
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.admin-dashboard__courses .section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.section-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--brand-blue-night);
}

.section-subtitle {
  margin: 0.35rem 0 0;
  color: rgba(4, 17, 31, 0.72);
  font-size: 0.95rem;
  max-width: 620px;
}

.metrics-filter {
  background: rgba(0, 75, 145, 0.04);
  border: 1px solid rgba(0, 75, 145, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.metrics-filter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
}

.metrics-filter__field {
  display: grid;
  gap: 0.25rem;
  flex: 1;
  min-width: 120px;
  max-width: 100%;
}

.metrics-filter__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(4, 17, 31, 0.68);
}

.metrics-filter__field input,
.metrics-filter__field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 75, 145, 0.18);
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  color: var(--brand-blue-night);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.metrics-filter__field--short {
  max-width: 160px;
}

.metrics-filter__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.metrics-filter__apply,
.metrics-filter__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metrics-filter__apply {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 16px 30px -20px rgba(0, 75, 145, 0.6);
}

.metrics-filter__apply:hover,
.metrics-filter__apply:focus {
  background: #0b61b2;
  border-color: #0b61b2;
  outline: none;
}

.metrics-filter__reset {
  background: transparent;
  color: var(--brand-blue);
  border-color: rgba(0, 75, 145, 0.25);
}

.metrics-filter__reset:hover,
.metrics-filter__reset:focus {
  border-color: var(--brand-blue);
  color: var(--brand-blue-night);
  outline: none;
}
.metrics-toolbar {
  display: grid;
  gap: 0.75rem;
}

.metrics-overview {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metrics-overview__item {
  background: rgba(0, 75, 145, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(0, 75, 145, 0.12);
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--brand-blue-night);
}

.metrics-overview__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(4, 17, 31, 0.62);
}

.metrics-overview__value {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
}

.metrics-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.metrics-active-filters__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(4, 17, 31, 0.62);
}

.metrics-active-filters__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 75, 145, 0.12);
  color: var(--brand-blue-night);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .metrics-toolbar {
    gap: 1rem;
  }

  .metrics-overview {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .metrics-active-filters__chip {
    font-size: 0.8rem;
  }
}


.course-metrics-table {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(0, 75, 145, 0.1);
  box-shadow: 0 18px 48px -36px rgba(4, 17, 31, 0.35);
  overflow: hidden;
}

.course-cards-mobile {
  display: none;
}

.table-scroll {
  overflow-x: auto;
}

@media (max-width: 768px) {
  .course-table-desktop {
    display: none;
  }
  .course-cards-mobile {
    display: flex;
    flex-direction: column;
  }
  .course-card-m {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 75, 145, 0.08);
  }
  .course-card-m:last-child {
    border-bottom: none;
  }
  .course-card-m__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-blue-night);
  }
  .course-card-m__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
  }
  .course-card-m__stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .course-card-m__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(4, 17, 31, 0.55);
  }
  .course-card-m__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-blue-night);
  }
  .course-card-m__snapshot {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 75, 145, 0.12);
  }
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.metrics-table thead th {
  background: rgba(0, 75, 145, 0.06);
  color: var(--brand-blue-night);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 75, 145, 0.12);
  text-align: left;
}

.metrics-table tbody td,
.metrics-table tbody th {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 75, 145, 0.08);
  font-size: 0.95rem;
  color: var(--brand-blue-night);
  vertical-align: top;
}

.metrics-table tbody tr:last-child td,
.metrics-table tbody tr:last-child th {
  border-bottom: none;
}

.course-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.course-cell__name {
  font-weight: 600;
}

.course-cell__badge {
  background: rgba(0, 75, 145, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.course-preview td {
  background: rgba(0, 75, 145, 0.04);
}

.course-preview__wrapper {
  display: grid;
  gap: 0.75rem;
}

.course-preview__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(4, 17, 31, 0.68);
}

.course-preview__list {
  display: grid;
  gap: 0.6rem;
}

.course-preview__item {
  display: grid;
  gap: 0.2rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 0.9rem 1rem;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 75, 145, 0.12);
}

.course-preview__name {
  font-weight: 600;
  color: var(--brand-blue-night);
}

.course-preview__meta {
  font-size: 0.85rem;
  color: rgba(4, 17, 31, 0.72);
}

.course-preview__note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(4, 17, 31, 0.68);
}

.empty-state {
  margin: 0;
  padding: 1.5rem;
  color: rgba(4, 17, 31, 0.72);
  font-size: 0.95rem;
}

.muted {
  color: rgba(4, 17, 31, 0.55);
}

@media (max-width: 960px) {
  .admin-dashboard__hero {
    padding: 1.8rem;
  }

  .metrics-filter__row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .metrics-filter__field--short {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .admin-dashboard__hero {
    padding: 1.5rem;
  }

  .admin-dashboard__hero-copy .hero-heading {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .metrics-filter {
    padding: 0.85rem;
  }

  .metrics-filter__actions {
    flex-wrap: wrap;
  }

  .metrics-filter__apply,
  .metrics-filter__reset {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .course-preview__item {
    grid-template-columns: 1fr;
  }
}



.profile-shell {
  margin-top: 4rem;
  display: grid;
  gap: 2.5rem;
}

.profile-lead {
  display: grid;
  gap: 0.75rem;
  max-width: 640px;
}

.profile-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.profile-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
  color: var(--brand-blue-night);
}

.profile-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: #546476;
  line-height: 1.6;
}

.profile-messages {
  display: grid;
  gap: 0.5rem;
}

.profile-message {
  background: rgba(251, 176, 63, 0.12);
  border: 1px solid rgba(251, 176, 63, 0.45);
  color: var(--brand-blue-night);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.profile-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.profile-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(4, 17, 31, 0.08);
  box-shadow: 0 24px 70px -46px rgba(4, 17, 31, 0.4);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.profile-card--secondary {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 65%);
  border-color: rgba(0, 75, 145, 0.12);
}

.profile-card__title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--brand-blue-night);
  font-weight: 700;
}

.profile-card__intro {
  margin: 0;
  color: #5a6474;
  font-size: 0.95rem;
}

.profile-form {
  display: grid;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid--stack {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-label {
  font-weight: 600;
  color: var(--brand-blue-night);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  border: 1px solid rgba(4, 17, 31, 0.16);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
  color: var(--brand-blue-night);
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 75, 145, 0.18);
  outline: none;
}

.form-field--error .form-label {
  color: #a1211c;
}

.form-field--error .form-input {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}

.form-help {
  font-size: 0.8rem;
  color: #647185;
  margin: 0;
}

.form-error {
  font-size: 0.8rem;
  color: #b3261e;
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--brand-blue);
  color: #ffffff;
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #0059ad;
  border-color: #0059ad;
  box-shadow: 0 18px 40px -26px rgba(0, 75, 145, 0.55);
  outline: none;
  transform: translateY(-1px);
}

.btn-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-link:hover,
.btn-link:focus {
  text-decoration: underline;
  outline: none;
}

.profile-cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.profile-cert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 75, 145, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-cert-title {
  font-weight: 600;
  color: var(--brand-blue-night);
  flex: 1;
}

.profile-cert-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.profile-cert-link:hover,
.profile-cert-link:focus {
  text-decoration: underline;
  outline: none;
}

.profile-empty {
  margin: 0;
  color: #6f7a8c;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .profile-menu::before {
    content: none;
  }
  .profile-shell {
    margin-top: 3rem;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: flex-start;
  }
}
.profile-message--error {
  background: rgba(179, 38, 30, 0.12);
  border-color: rgba(179, 38, 30, 0.4);
  color: #8b1d18;
}

.profile-message--success {
  background: rgba(0, 128, 96, 0.12);
  border-color: rgba(0, 128, 96, 0.35);
  color: #005944;
}

.profile-message--error p,
.profile-message--success p {
  margin: 0;
}

.form-field--error input,
.form-field--error input:focus {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}

.profile-form input[type="text"],
.profile-form input[type="password"],
.profile-form input[type="email"],
.profile-form input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(4, 17, 31, 0.16);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
  color: var(--brand-blue-night);
}

.profile-form input[type="text"]:focus,
.profile-form input[type="password"]:focus,
.profile-form input[type="email"]:focus,
.profile-form input[type="search"]:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 75, 145, 0.18);
  outline: none;
}
.admin-page-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.admin-page-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-blue-night);
  letter-spacing: -0.02em;
}

.admin-page-subtitle {
  margin: 0;
  color: #5c6879;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.admin-form {
  display: grid;
  gap: 1.75rem;
}

.admin-form__section {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(4, 17, 31, 0.08);
  box-shadow: 0 4px 24px -8px rgba(4, 17, 31, 0.12);
  padding: 1.75rem;
  display: grid;
  gap: 1.5rem;
}

/* Optional: visual break between logical groups within a section */
.admin-form__field-group {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(4, 17, 31, 0.08);
}

.admin-form__field-group .admin-form__field--stacked {
  margin-top: 1.25rem;
}

.admin-form__field-group .admin-form__field--stacked:first-child {
  margin-top: 0;
}

.admin-form__section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-blue-night);
  letter-spacing: -0.02em;
}

.admin-form__section-header p {
  margin: 0.5rem 0 0;
  color: #5c6879;
  font-size: 0.9375rem;
  line-height: 1.45;
  max-width: 42em;
}

/* Wrapper for section fields: single-column flow with consistent gaps */
.admin-form__section-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.admin-form__section-fields .admin-subform__grid {
  min-width: 0; /* allow nested grids to shrink on narrow viewports */
}

.admin-form__fields {
  display: grid;
  gap: 1rem;
}

.admin-form__fields--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-form__field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.admin-form__field--full {
  grid-column: 1 / -1;
}

.admin-form__field--toggle {
  align-items: center;
}

.admin-form__label {
  font-weight: 600;
  color: var(--brand-blue-night);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.admin-form__help {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #5c6879;
}

.admin-form__help code {
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(4, 17, 31, 0.06);
}

.admin-form__hint {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #6b7280;
}
.admin-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-blue-night);
}
.admin-form__checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand-blue);
  cursor: pointer;
}
.admin-form__error {
  margin: 0;
  font-size: 0.8rem;
  color: #b3261e;
}

.admin-form__field--error .admin-form__label {
  color: #b3261e;
}

.admin-form__alert {
  border-radius: 16px;
  border: 1px solid rgba(179, 38, 30, 0.35);
  background: rgba(179, 38, 30, 0.12);
  padding: 0.9rem 1.1rem;
  color: #8b1d18;
  font-size: 0.9rem;
}

.admin-form__switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue-night);
  cursor: pointer;
  user-select: none;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
}

.admin-form__fields[data-disabled="true"] {
  opacity: 0.5;
}

.admin-form__fields[data-disabled="true"] input,
.admin-form__fields[data-disabled="true"] select {
  cursor: not-allowed;
}

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-org-list {
  display: grid;
  gap: 1.5rem;
}

.admin-org-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(4, 17, 31, 0.08);
  box-shadow: 0 26px 70px -48px rgba(4, 17, 31, 0.4);
  padding: 1.75rem;
  display: grid;
  gap: 1.5rem;
}

.admin-org-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.admin-org-card__heading {
  flex: 1;
  min-width: 220px;
}

.admin-org-card__header-right {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.admin-org-card__edit {
  font-size: 0.85rem;
}


.admin-org-card__header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--brand-blue-night);
}

.admin-org-card__description {
  margin: 0.35rem 0 0;
  color: #5c6879;
  font-size: 0.9rem;
}

.admin-org-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6f7a8c;
  align-items: flex-end;
}

.admin-org-card__meta a {
  color: var(--brand-blue);
  text-decoration: none;
}

.admin-org-card__meta a:hover,
.admin-org-card__meta a:focus {
  text-decoration: underline;
}

.admin-org-card__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-org-card__section {
  display: grid;
  gap: 0.75rem;
}

.admin-org-card__section h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-blue-night);
}

.admin-org-card__section dl {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.admin-org-card__section dl div {
  display: grid;
  gap: 0.2rem;
}

.admin-org-card__section dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6f7a8c;
}

.admin-org-card__section dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--brand-blue-night);
}

.admin-org-card__muted {
  color: #9aa3b1;
}

.admin-org-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 75, 145, 0.12);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-org-filters {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-org-filters__form {
  background: rgba(0, 75, 145, 0.05);
  border: 1px solid rgba(0, 75, 145, 0.12);
  border-radius: 18px;
  padding: 1rem 1.25rem;
}

.admin-org-filters__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.admin-org-filters__field {
  display: grid;
  gap: 0.35rem;
}

.admin-org-filters__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6f7a8c;
}

.admin-org-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.admin-org-filters__summary {
  margin: 0;
  font-size: 0.85rem;
  color: #5c6879;
}

.admin-org-card__section--members {
  display: grid;
  gap: 1rem;
}

.admin-org-card__members-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.admin-org-card__members-status {
  font-size: 0.78rem;
  color: #6f7a8c;
}

.admin-org-card__member-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-org-card__member-controls .form-input,
.admin-org-card__member-controls .form-select {
  min-width: 220px;
}

.admin-org-card__member-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.admin-org-card__member-results {
  display: grid;
  gap: 0.75rem;
}

.admin-org-card__member-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 75, 145, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-org-card__member-row:hover,
.admin-org-card__member-row:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 6px 20px -16px rgba(0, 75, 145, 0.6);
  outline: none;
}

.admin-org-card__member-row--active {
  border-color: var(--brand-blue);
  background: rgba(0, 75, 145, 0.08);
}

.admin-org-card__member-primary {
  display: grid;
  gap: 0.2rem;
}

.admin-org-card__member-name {
  font-weight: 600;
  color: var(--brand-blue-night);
}

.admin-org-card__member-username {
  font-size: 0.8rem;
  color: #6f7a8c;
}

.admin-org-card__member-email {
  font-size: 0.9rem;
  color: #344055;
  word-break: break-word;
}

.admin-org-card__member-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6f7a8c;
  align-self: center;
  justify-self: end;
}

.admin-org-card__member-detail {
  border: 1px solid rgba(0, 75, 145, 0.12);
  border-radius: 14px;
  background: rgba(0, 75, 145, 0.04);
  padding: 1rem 1.25rem;
  min-height: 200px;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.admin-org-card__member-detail[data-loading='true'] {
  opacity: 0.6;
}

.admin-org-card__member-detail-card {
  display: grid;
  gap: 1rem;
}

.admin-org-card__member-detail-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--brand-blue-night);
  font-size: 1.05rem;
}

.admin-org-card__member-detail-username {
  font-size: 0.85rem;
  color: #6f7a8c;
}

.admin-org-card__member-detail-meta {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.admin-org-card__member-detail-meta div {
  display: grid;
  gap: 0.2rem;
}

.admin-org-card__member-detail-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6f7a8c;
}

.admin-org-card__member-detail-meta dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--brand-blue-night);
}

.admin-org-card__member-enrollments {
  display: grid;
  gap: 0.75rem;
}

.admin-org-card__member-enrollments h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-blue-night);
}

.admin-org-card__enrollment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-org-card__enrollment-row {
  border: 1px solid rgba(0, 75, 145, 0.12);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.5rem;
}

.admin-org-card__enrollment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.admin-org-card__enrollment-title {
  font-weight: 600;
  color: var(--brand-blue-night);
}

.admin-org-card__enrollment-title a {
  color: inherit;
  text-decoration: none;
}

.admin-org-card__enrollment-title a:hover,
.admin-org-card__enrollment-title a:focus {
  text-decoration: underline;
}

.admin-org-card__enrollment-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-blue);
}

.admin-org-card__enrollment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #5c6879;
}

.admin-org-card__member-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.admin-org-card__member-pagination [data-member-page] {
  font-size: 0.85rem;
  color: #6f7a8c;
}

.admin-org-empty {
  margin: 1rem 0 0;
  color: #5c6879;
  font-size: 0.95rem;
}

.admin-pagination {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-pagination__status {
  font-size: 0.9rem;
  color: #5c6879;
}

.admin-pagination__links {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .admin-org-card__member-layout {
    grid-template-columns: 1fr;
  }

  .admin-org-card__member-row {
    grid-template-columns: 1fr;
  }

  .admin-org-card__member-role {
    justify-self: flex-start;
  }
}

@media (max-width: 720px) {
  .admin-org-filters__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .admin-org-filters__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .admin-form__section {
    padding: 1.25rem 1rem;
  }

  .admin-form__section-fields {
    gap: 1.25rem;
  }

  .admin-form__section-header h2 {
    font-size: 1.125rem;
  }

  .admin-form__section-header p {
    font-size: 0.875rem;
  }

  .admin-page-title {
    font-size: 1.5rem;
  }

  .admin-page-subtitle {
    font-size: 0.875rem;
  }

  /* Comfortable touch targets for form actions and single-line inputs */
  .admin-form__actions .btn-primary,
  .admin-form__actions .btn-secondary,
  .admin-form__section-actions .btn-secondary {
    min-height: 2.75rem;
    padding: 0.6rem 1rem;
  }

  .admin-form input.form-input:not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
    min-height: 2.75rem;
  }

  .admin-org-card {
    padding: 1.35rem;
  }

  .admin-org-card__meta {
    align-items: flex-start;
  }

  .admin-org-card__header-right {
    align-items: flex-start;
  }

  .admin-org-card__edit {
    align-self: flex-start;
  }
}
.admin-org-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}


.admin-form__section-header {
  display: grid;
  gap: 0.35rem;
}


.primary-nav__menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.primary-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav__menu:hover .primary-nav__trigger,
.primary-nav__menu:focus-within .primary-nav__trigger {
  color: #fff;
}

.primary-nav__menu[data-open] .primary-nav__trigger,
.primary-nav__trigger--current {
  color: #fff;
  border-color: var(--brand-accent);
}

.primary-nav__caret {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 0.15rem;
}

.primary-nav__menu[data-open] .primary-nav__caret,
.primary-nav__menu:hover .primary-nav__caret,
.primary-nav__menu:focus-within .primary-nav__caret {
  transform: rotate(-135deg);
}

.primary-nav__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(4, 17, 31, 0.1);
  padding: 0.45rem 0;
  box-shadow: 0 26px 70px -48px rgba(4, 17, 31, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 60;
}

.primary-nav__panel::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.primary-nav__menu[data-open] .primary-nav__panel,
.primary-nav__menu:hover .primary-nav__panel,
.primary-nav__menu:focus-within .primary-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.primary-nav__panel-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  color: var(--brand-blue-night);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.primary-nav__panel-link:hover,
.primary-nav__panel-link:focus {
  background: rgba(0, 75, 145, 0.08);
  color: var(--brand-blue);
  padding-left: 1.25rem;
  outline: none;
}

.primary-nav__panel-link--active {
  font-weight: 600;
  color: var(--brand-blue);
}

@media (max-width: 960px) {
  .primary-nav__menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav__trigger {
    justify-content: space-between;
    width: 100%;
  }

  .primary-nav__panel {
    position: static;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .primary-nav__panel::before {
    content: none;
  }

  .primary-nav__panel-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1rem 0.6rem 2rem;
    font-size: 0.9rem;
  }

  .primary-nav__panel-link:hover,
  .primary-nav__panel-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 2rem;
  }

  .primary-nav__panel-link--active {
    color: var(--brand-accent);
  }

  .primary-nav__menu:not([data-open]) .primary-nav__panel {
    display: none;
  }
}
main input[type="text"],
main input[type="email"],
main input[type="password"],
main input[type="search"],
main input[type="tel"],
main input[type="url"],
main input[type="number"],
main select,
main textarea {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid rgba(4, 17, 31, 0.16);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--brand-blue-night);
  width: 100%;
}

main input[type="text"]:focus,
main input[type="email"]:focus,
main input[type="password"]:focus,
main input[type="search"]:focus,
main input[type="tel"]:focus,
main input[type="url"]:focus,
main input[type="number"]:focus,
main select:focus,
main textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 75, 145, 0.18);
  outline: none;
}

.admin-page-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: auto;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(4, 17, 31, 0.08);
  box-shadow: 0 18px 50px -40px rgba(4, 17, 31, 0.5);
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(4, 17, 31, 0.06);
}

.admin-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6f7a8c;
}

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

.admin-table__meta {
  color: #6f7a8c;
  font-size: 0.8rem;
}

.admin-table__actions {
  text-align: right;
}

@media (max-width: 720px) {
  .admin-table {
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .admin-table tr {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(4, 17, 31, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 44px -38px rgba(4, 17, 31, 0.35);
  }

  .admin-table td {
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .admin-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6f7a8c;
  }

  .admin-table__actions {
    text-align: left;
  }

  .admin-table__actions a {
    align-self: flex-start;
  }
}

.admin-subform {
  border: 1px solid rgba(4, 17, 31, 0.08);
  border-radius: 18px;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.admin-subform + .admin-subform {
  margin-top: 1rem;
}

.admin-subform__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.admin-subform__header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-blue-night);
}

.admin-subform__meta {
  font-size: 0.8rem;
  color: #6f7a8c;
}

.admin-subform__title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-subform__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-subform__reorder {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 17, 31, 0.12);
  background: #f7f9fc;
  color: var(--brand-blue-night);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-subform__reorder:hover,
.admin-subform__reorder:focus {
  background: var(--brand-blue-night);
  color: #ffffff;
  border-color: var(--brand-blue-night);
}

.admin-subform__reorder:disabled {
  opacity: 0.45;
  cursor: default;
  background: #edf1f7;
  color: #6f7a8c;
  border-color: rgba(4, 17, 31, 0.08);
}

.admin-form__formset {
  display: grid;
  gap: 1rem;
}
.lesson-transcript {
  margin-top: 1.5rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(4, 17, 31, 0.08);
  box-shadow: 0 18px 50px -38px rgba(4, 17, 31, 0.35);
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 1rem;
}
.lesson-transcript__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lesson-transcript__header h2 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-heading);
  color: var(--brand-blue-night);
}
.lesson-transcript__body {
  max-height: 320px;
  overflow: auto;
  color: #425062;
  font-size: 0.95rem;
  line-height: 1.6;
}
.lesson-transcript__body p {
  margin: 0 0 0.75rem;
}
.lesson-transcript__body::-webkit-scrollbar {
  width: 6px;
}
.lesson-transcript__body::-webkit-scrollbar-thumb {
  background: rgba(0, 75, 145, 0.35);
  border-radius: 3px;
}

.course-documents {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}
.course-documents h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-heading);
  color: var(--brand-blue-night);
}
.course-documents ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.course-documents li a {
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}
.course-documents li a:hover,
.course-documents li a:focus {
  text-decoration: underline;
}
.course-document__desc {
  display: block;
  font-size: 0.8rem;
  color: #748497;
  margin-top: 0.25rem;
}

@media (max-width: 960px) {
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-transcript {
    max-height: none;
  }
}
.admin-page-actions { justify-self: end; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 17, 31, 0.2);
  background: #ffffff;
  color: var(--brand-blue-night);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(0, 75, 145, 0.12);
  border-color: rgba(0, 75, 145, 0.35);
  outline: none;
  transform: translateY(-1px);
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid #dc2626;
  background: #ffffff;
  color: #dc2626;
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-danger:hover,
.btn-danger:focus {
  background: #fee2e2;
  border-color: #b91c1c;
  outline: none;
  transform: translateY(-1px);
}

.btn-text {
  border: none;
  background: none;
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.btn-text:hover,
.btn-text:focus {
  color: #003864;
  text-decoration: underline;
  outline: none;
}

.admin-form__section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.admin-subform__grid {
  display: grid;
  gap: 1rem;
}
.admin-subform__grid--single {
  grid-template-columns: 1fr;
}
.admin-subform__grid--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.admin-subform__grid--three,
.admin-subform__grid--triple {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.admin-subform__grid--four {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-form__field--file input[type="file"] {
  padding: 0.4rem;
}

/* Current file display (ClearableFileInput) */
.file-current {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: #f0f4f8;
  border: 1px solid rgba(0, 75, 145, 0.12);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.file-current__link {
  color: var(--brand-blue);
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}
.file-current__link:hover {
  text-decoration: underline;
}
.file-current__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-size: 0.8rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}
.file-current__clear input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #dc2626;
  cursor: pointer;
}
.file-current__clear:has(input:checked) {
  color: #dc2626;
  font-weight: 600;
}
.admin-form__field--file br {
  display: none;
}

.admin-subform__remove {
  margin-left: auto;
}

.admin-subform__delete {
  display: none;
}

.admin-subform--removed {
  opacity: 0.45;
  position: relative;
}
.admin-subform--removed::after {
  content: 'Marked for removal';
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8b1d18;
}
.admin-subform--removed .admin-subform__remove {
  pointer-events: none;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ── Velociteach corporate header (unauthenticated) ── */
.vt-utility-bar {
  background: #004b91;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.2;
}
.vt-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
}
.vt-utility-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.vt-utility-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}
.vt-utility-links a:hover {
  color: #ffffff;
}
.vt-utility-phone {
  color: #ffffff;
  font-weight: 400;
}
.vt-utility-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.vt-utility-search {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}
.vt-utility-search input {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 0.3rem 0.6rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  width: 160px;
}
.vt-utility-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.vt-utility-search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
}
.vt-utility-search button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.vt-utility-search button:hover {
  color: #ffffff;
}
.vt-utility-login {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}
.vt-utility-login:hover {
  color: #ffffff;
}

.global-header--vt {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 40;
}
.global-header--vt .header-inner {
  padding: 0.75rem 1rem;
}
.global-header--vt .brand-logo {
  width: clamp(160px, 20vw, 220px);
}
.global-header--vt .header-mobile-toggle__bar,
.global-header--vt .header-mobile-toggle__bar::before,
.global-header--vt .header-mobile-toggle__bar::after {
  background: #004b91;
}
.global-header--vt .header-mobile-toggle {
  border-color: rgba(0, 75, 145, 0.3);
  color: #004b91;
}
.global-header--vt .header-mobile-toggle:hover {
  border-color: #004b91;
  background: rgba(0, 75, 145, 0.06);
}

/* ── Mega nav ── */
.vt-mega-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}
.vt-mega-menu {
  position: relative;
}
.vt-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: none;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: #004b91;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.vt-mega-trigger:hover {
  color: var(--brand-gold);
}
.vt-mega-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}
.vt-mega-menu[data-open] .vt-mega-caret,
.vt-mega-menu:hover .vt-mega-caret {
  transform: rotate(180deg);
}

/* Mega panels */
.vt-mega-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.vt-mega-menu[data-open] .vt-mega-panel,
.vt-mega-menu:hover .vt-mega-panel,
.vt-mega-menu:focus-within .vt-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.vt-mega-panel--narrow {
  min-width: 260px;
  padding: 0.5rem 0;
}

/* Card-style mega items (Training By Role, All Training Options) */
.vt-mega-grid {
  display: grid;
  gap: 1rem;
}
.vt-mega-grid--3col {
  grid-template-columns: repeat(3, 240px);
}
.vt-mega-card {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s ease;
}
.vt-mega-card:hover {
  background: #f5f7fa;
}
.vt-mega-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #004b91;
  font-size: 0.95rem;
}
.vt-mega-card span {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #666;
}

/* Link-style mega items (Resources, About) */
.vt-mega-link {
  display: block;
  padding: 0.55rem 1.25rem;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.vt-mega-link:hover {
  background: #f5f7fa;
  color: #004b91;
}

/* ── Mobile breakpoint for Velociteach header ── */
@media (max-width: 960px) {
  .vt-utility-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .vt-utility-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .global-header--vt .header-mobile-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }
  .global-header--vt .header-mobile-panel {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.2);
  }
  .global-header--vt .header-mobile-panel[data-open] {
    display: flex;
  }
  .global-header--vt .vt-mega-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .global-header--vt .vt-mega-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
  }
  .global-header--vt .vt-mega-trigger:hover {
    background: #f5f7fa;
  }
  .global-header--vt .vt-mega-panel {
    position: static;
    box-shadow: none;
    border-radius: 8px;
    background: #f9fafb;
    transform: none;
    padding: 0.5rem;
  }
  .global-header--vt .vt-mega-menu:not([data-open]) .vt-mega-panel {
    display: none;
    opacity: 0;
    visibility: hidden;
  }
  .global-header--vt .vt-mega-menu[data-open] .vt-mega-panel {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .vt-mega-grid--3col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .vt-utility-bar {
    display: none;
  }
}

/* ── Velociteach corporate footer (unauthenticated) ── */
.vt-footer {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  color: #000;
  font-size: 1rem;
  line-height: 1.2;
}
.vt-footer-rule {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 0 3rem;
}
.vt-footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 2rem 0 3rem;
}
.vt-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.vt-footer-brand .brand-logo {
  width: 220px;
}
.vt-footer-desc {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
}
.vt-footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.vt-footer-social a {
  color: #004b91;
  transition: color 0.2s ease;
}
.vt-footer-social a:hover {
  color: #e8a723;
}
.vt-footer-social svg {
  display: block;
}
.vt-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}
.vt-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.vt-footer-col h4 {
  margin: 0 0 0.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 600;
  font-style: italic;
  color: #004b91;
  border-bottom: 2px solid #e8a723;
  padding-bottom: 0.5rem;
}
.vt-footer-col a {
  color: #004b91;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  transition: color 0.2s ease;
}
.vt-footer-col a:hover {
  color: #e8a723;
}

/* Footer bottom bar */
.vt-footer-bottom {
  background: #ccdbe9;
  padding: 1.5rem 0;
  font-style: normal;
  font-size: 0.8rem;
}
.vt-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.vt-footer-bottom-inner + .vt-footer-bottom-inner {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 75, 145, 0.15);
}
.vt-footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.vt-footer-legal a {
  color: #004b91;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}
.vt-footer-legal a:hover {
  text-decoration: underline;
}
.vt-footer-legal span {
  color: #333;
  font-size: 0.8rem;
}
.vt-footer-bottom p {
  margin: 0;
  color: #333;
  font-size: 0.8rem;
}
.vt-footer-trademark {
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
}

@media (max-width: 960px) {
  .vt-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .vt-footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .vt-footer-nav {
    grid-template-columns: 1fr;
  }
  .vt-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-shell--auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f0f5fc 0%, #ffffff 50%);
}
.global-main--auth {
  flex: 1;
  display: flex;
}
.auth-shell {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 4rem 1.5rem;
  align-items: center;
}
.auth-hero {
  display: flex;
  justify-content: flex-end;
}
.auth-brand {
  max-width: 500px;
  display: grid;
  gap: 1.25rem;
  color: var(--brand-blue-night);
}
.auth-brand h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-family: var(--font-heading);
  line-height: 1.2;
}
.auth-brand p {
  margin: 0;
  color: #66768b;
}
.auth-brand__lead {
  font-size: 1.05rem;
  line-height: 1.6;
}
.auth-features {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.25rem;
  display: grid;
  gap: 0.5rem;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
}
.auth-features li::marker {
  color: var(--brand-gold);
}
.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(4, 17, 31, 0.08);
  box-shadow: 0 50px 120px -70px rgba(4, 17, 31, 0.65);
  padding: 2.5rem 2.75rem;
  display: grid;
  gap: 1.25rem;
}
.auth-form {
  display: grid;
  gap: 1.25rem;
}
.auth-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--brand-blue-night);
}
.auth-field {
  display: grid;
  gap: 0.4rem;
}
.auth-field label {
  font-weight: 600;
  color: var(--brand-blue-night);
}
.auth-field input {
  width: 100%;
  border: 1px solid rgba(4, 17, 31, 0.16);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-field input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 75, 145, 0.18);
  outline: none;
}
.auth-field--error input {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}
.auth-error {
  margin: 0;
  font-size: 0.8rem;
  color: #b3261e;
}
.auth-help {
  margin: 0;
  font-size: 0.8rem;
  color: #687488;
}
.auth-alert {
  background: rgba(179, 38, 30, 0.12);
  border: 1px solid rgba(179, 38, 30, 0.4);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: #8b1d18;
  font-size: 0.9rem;
}
.auth-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #5c6677;
}
.auth-meta a {
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}
.auth-meta a:hover,
.auth-meta a:focus {
  text-decoration: underline;
}
.btn-primary--wide {
  width: 100%;
  justify-content: center;
}

@media (max-width: 720px) {
  .auth-shell {
    padding: 3rem 1.25rem;
  }
  .auth-card {
    padding: 2rem 2.25rem;
  }
}
.html5-package {
  position: relative;
  aspect-ratio: 983 / 509;
  background: #000;
}
.lesson-layout:has(.html5-package) {
  grid-template-columns: 1fr;
}
.lesson-layout:has(.html5-package) .lesson-outline-panel {
  order: 2;
}
.html5-package iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Admin portal - user workspace */
.global-messages {
  margin: 0 auto 1.5rem;
  max-width: 960px;
}
.flash-message {
  background: #fef3c7;
  color: #0a2746;
  border-radius: 18px;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px -24px rgba(10, 39, 70, 0.5);
}
.admin-panel {
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(1.6rem, 2.2vw, 2.3rem);
  box-shadow: 0 22px 48px -30px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.admin-user-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-top: 2.5rem;
}
.admin-user-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.12), rgba(4, 17, 31, 0.02));
}
.admin-user-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(251, 176, 63, 0.16), transparent 45%);
  pointer-events: none;
}
.admin-user-hero > * {
  position: relative;
  z-index: 1;
}
.admin-user-hero__identity {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 220px;
}
.admin-user-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.9), rgba(12, 35, 64, 0.9));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  font-weight: 600;
  box-shadow: 0 12px 24px -18px rgba(0, 75, 145, 0.6);
  border: 3px solid rgba(255, 255, 255, 0.9);
}
.admin-user-hero__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-user-hero__name {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  color: #0c2b4a;
}
.admin-user-hero__username {
  margin: 0;
  color: rgba(4, 17, 31, 0.65);
  font-weight: 500;
}
.admin-user-hero__email {
  color: var(--brand-blue);
  font-size: 0.95rem;
  text-decoration: none;
}
.admin-user-hero__email:hover,
.admin-user-hero__email:focus {
  text-decoration: underline;
}
.admin-user-hero__meta {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  flex: 1 1 320px;
}
.admin-user-hero__meta-item dt {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(4, 17, 31, 0.55);
  font-weight: 600;
}
.admin-user-hero__meta-item dd {
  margin: 0;
  font-size: 0.98rem;
  color: #0c2b4a;
}
.admin-user-hero__meta-item--full {
  grid-column: 1 / -1;
}
.admin-pill-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(12, 35, 64, 0.08);
  color: #0c2b4a;
}
.admin-pill--outline {
  background: transparent;
  border: 1px solid rgba(12, 35, 64, 0.2);
}
.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem;
  background: rgba(12, 35, 64, 0.08);
  color: #0c2b4a;
}
.admin-status--success {
  background: rgba(16, 185, 129, 0.18);
  color: #0f9a63;
}
.admin-status--warning {
  background: rgba(251, 176, 63, 0.2);
  color: #b97310;
}
.admin-status--accent {
  background: rgba(0, 75, 145, 0.16);
  color: #004b91;
}
.admin-status--muted {
  background: rgba(4, 17, 31, 0.08);
  color: rgba(4, 17, 31, 0.6);
}
.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.admin-quick-actions__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.08), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(12, 35, 64, 0.08);
  color: #0c2b4a;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.admin-quick-actions__link:hover,
.admin-quick-actions__link:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -24px rgba(0, 75, 145, 0.6);
}
.admin-quick-actions__label {
  font-weight: 600;
}
.admin-quick-actions__description {
  font-size: 0.9rem;
  color: rgba(4, 17, 31, 0.7);
}
.admin-summary__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.admin-summary__card {
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  background: linear-gradient(160deg, rgba(4, 17, 31, 0.04), rgba(255, 255, 255, 0.95));
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.admin-summary__label {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(4, 17, 31, 0.55);
}
.admin-summary__value {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  color: #0c2b4a;
}
.admin-summary__meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(4, 17, 31, 0.6);
}
.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.admin-meta-list {
  display: grid;
  gap: 1rem;
}
.admin-meta-list div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-meta-list dt {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(4, 17, 31, 0.55);
  font-weight: 600;
}
.admin-meta-list dd {
  margin: 0;
  font-size: 0.98rem;
  color: #0c2b4a;
}
.admin-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0c2b4a;
}
.admin-section-subtitle {
  margin: 0.35rem 0 0;
  color: rgba(4, 17, 31, 0.6);
  font-size: 0.95rem;
}
.admin-table-wrapper {
  overflow-x: auto;
}
.admin-table--compact th,
.admin-table--compact td {
  padding: 0.9rem 1rem;
}
.admin-table__title {
  font-weight: 600;
  color: #0c2b4a;
}
.admin-table__meta-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(4, 17, 31, 0.6);
}
.admin-link {
  color: #004b91;
  text-decoration: none;
  font-weight: 600;
}
.admin-link:hover,
.admin-link:focus {
  text-decoration: underline;
}
.admin-passport-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.admin-passport-note {
  font-size: 0.85rem;
  color: rgba(4, 17, 31, 0.65);
}
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 35, 64, 0.18);
  background: transparent;
  color: #0c2b4a;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn-tertiary:hover,
.btn-tertiary:focus {
  background: rgba(0, 75, 145, 0.08);
  color: #004b91;
}
.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.admin-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  background: rgba(4, 17, 31, 0.02);
}
.admin-list--stacked .admin-list__item {
  align-items: flex-start;
}
.admin-list__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-list__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0c2b4a;
}
.admin-list__meta {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(4, 17, 31, 0.6);
}
.admin-passport-course-list {
  gap: 1.2rem;
}
.admin-passport-course-list .admin-list__item {
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(12, 43, 74, 0.07), rgba(0, 75, 145, 0.08));
  border: 1px solid rgba(0, 75, 145, 0.12);
  box-shadow: 0 18px 42px -32px rgba(4, 17, 31, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex-wrap: wrap;
}
.admin-passport-course-list .admin-list__item:hover,
.admin-passport-course-list .admin-list__item:focus-within {
  transform: translateY(-2px);
  border-color: rgba(0, 75, 145, 0.24);
  box-shadow: 0 26px 48px -30px rgba(0, 75, 145, 0.32);
}
.admin-passport-course {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1 1 260px;
  min-width: 0;
}
.admin-passport-course__emblem {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.12), rgba(0, 75, 145, 0.28));
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  text-transform: uppercase;
}
.admin-passport-course__content {
  display: grid;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.admin-passport-course__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-passport-course__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(0, 75, 145, 0.1);
  color: var(--brand-blue);
}
.admin-passport-course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(4, 17, 31, 0.6);
}
.admin-passport-course__meta span::before {
  content: '•';
  margin: 0 0.5rem 0 0;
  color: rgba(4, 17, 31, 0.25);
}
.admin-passport-course__meta span:first-child::before {
  content: none;
  margin: 0;
}
.admin-passport-course__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 75, 145, 0.18);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.admin-passport-course__link:hover,
.admin-passport-course__link:focus {
  background: rgba(0, 75, 145, 0.1);
  border-color: rgba(0, 75, 145, 0.32);
  color: var(--brand-blue);
  outline: none;
}
.admin-passport-course-empty {
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px dashed rgba(0, 75, 145, 0.2);
  background: rgba(4, 17, 31, 0.02);
  color: rgba(4, 17, 31, 0.6);
}
.admin-user-empty {
  margin-top: 2.5rem;
  text-align: center;
}
.admin-search-panel {
  margin-top: 1.5rem;
}
@media (max-width: 720px) {
  .admin-user-hero {
    padding: 1.6rem;
  }
  .admin-summary__grid,
  .admin-quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.admin-form__actions--separated {
  margin-bottom: 1.5rem;
}
.admin-form__actions--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.admin-filter-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.admin-section-count {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(4, 17, 31, 0.65);
}
.reports-hero__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.reports-hero__stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.reports-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.reports-hero__stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}
.reports-hero__stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
}
.reports-hero__stat-unit {
  margin-left: 0.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
}

.reports-overview__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.reports-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 24px 48px -32px rgba(4, 17, 31, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.reports-card__header {
  padding: 1.6rem 1.6rem 0.75rem;
}
.reports-card__header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0c2b4a;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.reports-card__header p {
  margin: 0.4rem 0 0;
  color: rgba(4, 17, 31, 0.78);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.reports-card__body {
  padding: 0 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-wrap: anywhere;
}
.reports-card__body--metrics {
  gap: 1.2rem;
}
.reports-metric {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.reports-metric__value {
  font-size: 2rem;
  font-weight: 700;
  color: #0c2b4a;
}
.reports-metric__label {
  font-size: 0.95rem;
  color: rgba(4, 17, 31, 0.78);
}
.reports-delta {
  font-weight: 600;
  font-size: 0.9rem;
}
.delta-positive {
  color: #15803d;
}
.delta-negative {
  color: #b91c1c;
}
.reports-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.reports-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.reports-list__primary {
  font-weight: 600;
  color: #0c2b4a;
}
.reports-list__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.reports-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reports-chip--warning {
  background: rgba(251, 176, 63, 0.2);
  color: #b97310;
}
.reports-chip--success {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}
.reports-chip--muted {
  background: rgba(12, 35, 64, 0.08);
  color: rgba(12, 35, 64, 0.82);
}
.reports-card__body--goal {
  gap: 1.5rem;
}
.goal-progress {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.goal-form {
  margin-top: 0.5rem;
}
.goal-form__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, auto));
  align-items: end;
}
.goal-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(12, 43, 74, 0.7);
}
.goal-form__field .form-input, .goal-form__field input {
  width: 100%;
  border: 1px solid rgba(12, 43, 74, 0.18);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
}
.goal-form__submit {
  justify-self: start;
}
.goal-form__error {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: #b91c1c;
}
.progress-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(12, 35, 64, 0.65);
}
.reports-card--credits .reports-card__body {
  gap: 1rem;
}
.reports-credit-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.reports-credit-list h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0c2b4a;
}
.reports-credit-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.reports-credit-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: rgba(4, 17, 31, 0.72);
}
.credit-progress {
  display: grid;
  gap: 1rem;
  padding: 0 1.6rem 1.6rem;
}
.credit-progress__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.credit-progress__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0c2b4a;
}
.achievement-list {
  display: grid;
  gap: 1rem;
}
.achievement-item {
  background: rgba(12, 35, 64, 0.05);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.achievement-item--complete {
  background: rgba(34, 197, 94, 0.12);
}
.achievement-item__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0c2b4a;
}

.reports-heatmap-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.reports-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.reports-section-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #0c2b4a;
}
.reports-section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(12, 35, 64, 0.78);
}
.reports-heatmap {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}
.heatmap-week {
  display: grid;
  gap: 0.3rem;
}
.heatmap-day {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(12, 35, 64, 0.08);
  position: relative;
}
.heatmap-day span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.25), rgba(0, 75, 145, 0.8));
  opacity: calc(var(--heat-intensity) / 100);
}
.heatmap-day[data-count="0"] span {
  opacity: 0;
  background: transparent;
}

.reports-card--benchmarks .reports-card__body {
  gap: 1rem;
}
.reports-benchmarks {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.benchmark-item {
  background: rgba(12, 43, 74, 0.04);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.benchmark-item h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0c2b4a;
}
.benchmark-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #004B91;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.benchmark-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(12, 35, 64, 0.6);
}
.benchmark-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(12, 35, 64, 0.6);
}
.reports-card--share .reports-card__body {
  gap: 1rem;
}
.reports-share {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.share-summary {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(12, 35, 64, 0.75);
}
.reports-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.reports-copy-btn {
  cursor: pointer;
}
.league-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.league-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.league-filter-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(12, 35, 64, 0.6);
}
.league-filter-form select {
  border-radius: 10px;
  border: 1px solid rgba(12, 35, 64, 0.18);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
}
.league-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.reports-card--league .reports-card__body {
  gap: 1rem;
}
.league-table-wrapper {
  overflow-x: auto;
}
.league-table {
  width: 100%;
  border-collapse: collapse;
}
.league-table th,
.league-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}
.league-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: rgba(12, 35, 64, 0.6);
}
.league-row--me {
  background: rgba(34, 197, 94, 0.12);
}
.league-row--extra {
  border-top: 2px dashed rgba(12, 35, 64, 0.2);
}
.league-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.league-badge--muted {
  background: rgba(12, 35, 64, 0.1);
  color: rgba(12, 35, 64, 0.7);
}
.league-table tbody tr:hover {
  background: rgba(0, 75, 145, 0.05);
}

.reports-chart-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.chart-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 20px 44px -30px rgba(0, 75, 145, 0.25);
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chart-card header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0c2b4a;
  overflow-wrap: anywhere;
}
.chart-card header p {
  margin: 0.35rem 0 1rem;
  font-size: 0.9rem;
  color: rgba(4, 17, 31, 0.65);
  overflow-wrap: anywhere;
}
.chart-card canvas {
  width: 100% !important;
  height: auto;
}

.reports-table-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.reports-table-grid .data-table {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 16px 40px -28px rgba(4, 17, 31, 0.2);
  padding: 1.4rem;
}
.reports-table-grid .data-table header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0c2b4a;
}
.reports-table-grid .data-table header p {
  margin: 0.3rem 0 1.1rem;
  color: rgba(4, 17, 31, 0.65);
  font-size: 0.92rem;
}

.reports-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid rgba(0, 75, 145, 0.08);
  background: #fff;
}
.reports-table {
  width: 100%;
  border-collapse: collapse;
}
.reports-table th,
.reports-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 75, 145, 0.08);
  font-size: 0.9rem;
  color: var(--brand-blue-night);
}
.reports-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5b6a7a;
}

/* Mobile cards for certificate tables */
.mobile-cards {
  display: none;
}
.cert-card-m {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 75, 145, 0.08);
}
.cert-card-m:last-child {
  border-bottom: none;
}
.cert-card-m__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-blue-night);
}
.cert-card-m__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.cert-card-m__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.cert-card-m__detail {
  font-size: 0.85rem;
  color: rgba(4, 17, 31, 0.6);
}
.cert-card-m__action {
  margin-top: 0.25rem;
}

/* Activity card for recent activity on mobile */
.activity-card-m {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 75, 145, 0.08);
}
.activity-card-m:last-child {
  border-bottom: none;
}
.activity-card-m__lesson {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-blue-night);
  margin-bottom: 0.2rem;
}
.activity-card-m__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(4, 17, 31, 0.55);
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .desktop-only {
    display: none;
  }
  .mobile-cards {
    display: block;
  }
  .reports-overview__grid {
    grid-template-columns: 1fr !important;
  }
  .reports-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 2.5rem 0 2rem;
  }
  .page-hero::before,
  .page-hero::after {
    display: none;
  }
  .page-hero__content {
    gap: 1.25rem;
  }
  .reports-hero__content {
    gap: 1.5rem;
  }
  .page-hero__stats {
    gap: 0.75rem;
  }
  .page-hero__stats div {
    padding: 0.85rem 1rem;
    border-radius: 14px;
  }
  .reports-hero__stats {
    grid-template-columns: 1fr 1fr;
  }
  .reports-hero__stat-value {
    font-size: 1.8rem;
  }
  .hero-heading {
    font-size: 1.6rem;
  }
  .hero-lead {
    font-size: 0.95rem;
  }
  .reports-overview__grid {
    grid-template-columns: 1fr;
  }
  .reports-card {
    border-radius: 18px;
  }
  .reports-card__header {
    padding: 1.2rem 1.2rem 0.6rem;
  }
  .reports-card__body {
    padding: 0 1.2rem 1.2rem;
  }
  .credit-progress {
    padding: 0 1.2rem 1.2rem;
  }
}
@media (max-width: 640px) {
  .reports-hero__stat-value {
    font-size: 1.5rem;
  }
  .chart-card {
    padding: 1.1rem;
  }
}
.flashcard-deck-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.flashcard-deck-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  padding: 1.5rem;
  box-shadow: 0 18px 36px -28px rgba(12, 35, 64, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.flashcard-deck-card h2 {
  margin: 0;
  font-size: 1.2rem;
}
.flashcard-player {
  display: flex;
  justify-content: center;
}
.flashcard-view {
  background: #f9fafc;
  border-radius: 24px;
  border: 1px solid rgba(12, 35, 64, 0.1);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 60px -32px rgba(12, 35, 64, 0.28);
}
.flashcard-card {
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  min-height: 380px;
}
.flashcard-side {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
  transition: transform 0.5s ease;
}
.flashcard-back {
  transform: rotateY(180deg);
}
.flashcard-card.is-flipped .flashcard-front {
  transform: rotateY(180deg);
}
.flashcard-card.is-flipped .flashcard-back {
  transform: rotateY(0deg);
}
.flashcard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.flashcard-progress {
  font-weight: 600;
  color: rgba(12, 35, 64, 0.8);
}
.flashcard-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(12, 35, 64, 0.6);
  text-align: center;
}
@media (max-width: 640px) {
  .flashcard-view {
    padding: 1.25rem;
  }
  .flashcard-side {
    padding: 1.5rem;
  }
}
.flashcard-mini-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.flashcard-mini-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 18px 40px -30px rgba(12, 35, 64, 0.25);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.flashcard-mini-card h3 {
  margin: 0;
  font-size: 1.1rem;
}
.flashcard-mini-meta {
  font-size: 0.85rem;
  color: rgba(12, 35, 64, 0.6);
}
.flashcard-mini-card .btn-link {
  align-self: flex-start;
}

/* ── Testing Lab ── */

.tl-exam-type-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.tl-exam-type-card:hover {
  border-color: var(--brand-blue);
  background: #f0f4f8;
}
.tl-exam-type-radio:checked + .tl-exam-type-label {
  color: var(--brand-blue);
}
.tl-exam-type-card:has(.tl-exam-type-radio:checked) {
  border-color: var(--brand-blue);
  background: #eaf0f8;
}
.tl-exam-type-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.tl-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.tl-choice:hover {
  border-color: var(--brand-blue);
  background: #f8fafc;
}
.tl-choice--selected {
  border-color: var(--brand-blue);
  background: #eaf0f8;
}
.tl-choice__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.tl-choice--selected .tl-choice__letter {
  background: var(--brand-blue);
  color: #fff;
}
.tl-choice__text {
  padding-top: 0.15rem;
  line-height: 1.5;
}

.tl-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  font-weight: 600;
}
.tl-timer__label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
}
.tl-timer__value {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.tl-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #fff;
  transition: background 0.1s;
}
.tl-nav-btn:hover {
  background: #f3f4f6;
}
.tl-nav-btn--current {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.tl-nav-btn--answered {
  background: #bbf7d0;
  border-color: #86efac;
}
.tl-nav-btn--marked {
  border-color: #fbbf24;
  border-width: 2px;
}

.tl-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tl-stat-card {
  text-align: center;
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 0.75rem;
}
.tl-stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.tl-stat-card__label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.tl-mark-checkbox {
  accent-color: var(--brand-yellow);
  width: 16px;
  height: 16px;
}

/* Testing Lab exam layout */
.tl-exam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tl-progress-track {
  width: 100%;
  background: #e5e7eb;
  border-radius: 9999px;
  height: 0.5rem;
  margin-bottom: 1.5rem;
}
.tl-progress-fill {
  background: var(--brand-blue);
  height: 0.5rem;
  border-radius: 9999px;
  transition: width 0.3s;
}
.tl-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: #004b91;
  margin-bottom: 0.5rem;
  font-style: italic;
}
.tl-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tl-exam-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tl-nav-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}
.tl-nav-hidden {
  display: none;
}
.tl-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.tl-nav-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}
.tl-nav-legend__dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.25rem;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.tl-nav-legend__dot--current {
  background: var(--brand-blue);
}
.tl-nav-legend__dot--answered {
  background: #22c55e;
}
.tl-nav-legend__dot--marked {
  border: 2px solid #fbbf24;
}

/* Testing Lab review */
.tl-review-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tl-review-item {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid;
}
.tl-review-item--correct {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.tl-review-item--incorrect {
  background: #fef2f2;
  border-color: #fecaca;
}
.tl-review-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.tl-review-choices {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.tl-review-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
}
.tl-review-choice--correct {
  background: #dcfce7;
}
.tl-review-choice--wrong {
  background: #fee2e2;
}
/* Exhibit inline display */
.tl-exhibit img {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.tl-exhibit iframe {
  width: 100%;
  height: 450px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .tl-exhibit img {
    max-height: 280px;
  }
  .tl-exhibit iframe {
    height: 280px;
  }
}
/* Testing Lab admin type list */
.tl-admin-type-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tl-admin-type-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.1s;
}
.tl-admin-type-option:hover {
  background: #f3f4f6;
}
.tl-admin-type-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
  flex-shrink: 0;
}
.tl-admin-type-option__text {
  font-size: 0.9rem;
}

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

.tl-review-explanation {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #eff6ff;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.resume-banner {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}
.resume-banner__head {
  margin-bottom: 0.75rem;
}
.resume-banner__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #78350f;
}
.resume-banner__lead {
  margin: 0;
  color: #92400e;
  font-size: 0.9rem;
}
.resume-banner__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.resume-banner__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0.5rem;
  flex-wrap: wrap;
}
.resume-banner__course strong {
  color: #111827;
}
.resume-banner__meta {
  color: #6b7280;
  font-size: 0.875rem;
}
.resume-banner__status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.resume-banner__time {
  font-size: 0.875rem;
  color: #78350f;
  font-weight: 500;
}
