﻿/* ============================================================
   EduCert LR — Design System & Global Styles
   Ministry of Education Validated · ISO 29993 Accredited
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --brand-950: #0f1d35;
  --brand-900: #11233f;
  --brand-800: #1a3764;
  --brand-700: #24538f;
  --brand-500: #3b7ad1;
  --brand-100: #dce9fb;
  --gold-500: #d4a63a;
  --gold-100: #f4e6be;

  --purple-50: #eeedfe;
  --purple-100: #cecbf6;
  --purple-200: #afa9ec;
  --purple-400: #7f77dd;
  --purple-600: #534ab7;
  --purple-800: #3c3489;
  --purple-900: #26215c;

  --teal-50: #e1f5ee;
  --teal-100: #9fe1cb;
  --teal-400: #1d9e75;
  --teal-600: #0f6e56;
  --teal-800: #085041;

  --amber-50: #faeeda;
  --amber-100: #fac775;
  --amber-400: #ba7517;
  --amber-600: #854f0b;

  --coral-50: #faece7;
  --coral-400: #d85a30;
  --coral-600: #993c1d;

  --green-50: #eaf3de;
  --green-600: #3b6d11;

  --red-50: #fcebeb;
  --red-400: #e24b4a;
  --red-600: #a32d2d;

  --gray-50: #f8f7f4;
  --gray-100: #f1efe8;
  --gray-200: #e2e0d8;
  --gray-400: #6f6e68;
  --gray-600: #5f5e5a;
  --gray-900: #1a1a18;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-premium:
    0 10px 30px rgba(15, 23, 42, 0.1),
    0 2px 8px rgba(15, 23, 42, 0.06);

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-spring: 0.46s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 14%, rgba(59, 122, 209, 0.06), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(127, 119, 221, 0.05), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(15, 110, 86, 0.04), transparent 24%);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: var(--font-body);
  cursor: pointer;
}
input,
select,
textarea {
  font-family: var(--font-body);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10000;
  background: var(--purple-800);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.skip-link:focus {
  left: 12px;
}

.noscript-warning {
  margin: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--amber-100);
  background: var(--amber-50);
  color: var(--amber-600);
  font-size: 13px;
}

/* ── Layout Shell ── */
.app-shell {
  --sidebar-width: 240px;
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.app-shell.sidebar-collapsed {
  --sidebar-width: 72px;
}

.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-width);
}

.app-shell.sidebar-collapsed .sidebar-logo {
  justify-content: center;
  padding: 20px 0;
}

.app-shell.sidebar-collapsed .logo-wordmark {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-nav {
  padding: 16px 0;
}

.app-shell.sidebar-collapsed .nav-section-label {
  display: none;
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  font-size: 0;
  padding: 12px 0;
}

.app-shell.sidebar-collapsed .nav-item .nav-icon {
  margin-right: 0;
}

.app-shell.sidebar-collapsed .nav-item .nav-badge {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-user {
  padding: 14px 0;
  justify-content: center;
}

.app-shell.sidebar-collapsed .user-name,
.app-shell.sidebar-collapsed .user-role {
  display: none;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  fill: white;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-wordmark {
  line-height: 1.2;
}
.logo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}
.logo-tagline {
  font-size: 11px;
  color: var(--gray-400);
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  margin-bottom: 2px;
  transition:
    transform var(--transition-slow),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  position: relative;
  transform-origin: left center;
}

.nav-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.nav-item:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
}

.nav-item.active {
  background: var(--purple-50);
  color: var(--purple-800);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--purple-100);
}

.nav-item .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-item.active .nav-icon {
  opacity: 1;
}

.mobile-nav-more-toggle {
  display: none;
  width: 100%;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  color: var(--gray-600);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.mobile-nav-more-toggle:hover,
.mobile-nav-more-toggle:focus-visible {
  border-color: var(--purple-400);
  background: var(--purple-50);
  color: var(--purple-800);
}

.mobile-nav-more-icon {
  font-size: 18px;
  line-height: 1;
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--coral-400);
  color: white;
}

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-800);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
}
.user-role {
  font-size: 11px;
  color: var(--gray-400);
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.main-content:focus {
  outline: none;
}

/* ── Topbar ── */
.topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(208, 222, 232, 0.86);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 110;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition:
    box-shadow var(--transition-slow),
    background var(--transition-slow),
    border-color var(--transition);
}

.topbar-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}

.topbar-search-toggle {
  display: none;
}

.topbar-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--gray-900);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-open-handle {
  display: inline-flex;
  position: fixed;
  left: calc(var(--sidebar-width, 240px) - 22px);
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0 22px 22px 0;
  background: var(--purple-800);
  color: #fff;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    left 0.25s ease;
  animation: handlePulse 3.4s ease-in-out infinite;
}

.app-shell.sidebar-collapsed .sidebar-open-handle {
  left: calc(var(--sidebar-width, 72px) - 22px);
}

.app-shell.sidebar-open .sidebar-open-handle {
  opacity: 0;
  pointer-events: none;
  transform: translate(-120%, -50%);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 25, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 90;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ── Footer ── */
.page-footer {
  margin-top: 32px;
  padding: 18px 24px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.98));
  border-top: 1px solid rgba(36, 83, 143, 0.12);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.04);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.footer-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  font-weight: 600;
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(20, 164, 83, 0.2);
  color: #0f7a42;
}

.pill-whatsapp:hover,
.pill-whatsapp:focus-visible {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(20, 164, 83, 0.34);
  color: #075e35;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--gray-600);
  font-size: 13px;
}

.page-footer .btn {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(36, 83, 143, 0.14);
  color: var(--brand-700);
}

.page-footer .btn:hover,
.page-footer .btn:focus-visible {
  background: var(--brand-100);
  border-color: rgba(36, 83, 143, 0.22);
  color: var(--brand-900);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.whatsapp-assistant-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  max-width: min(286px, calc(100vw - 36px));
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(5, 128, 78, 0.98), rgba(5, 83, 63, 0.98)),
    #075e54;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 16px 34px rgba(6, 95, 70, 0.24),
    0 3px 10px rgba(3, 24, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-decoration: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  isolation: isolate;
  animation: whatsapp-assistant-breathe 7.2s ease-in-out infinite;
  transition:
    left 0.22s ease,
    top 0.22s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.whatsapp-assistant-fab::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.32);
  opacity: 0;
  pointer-events: none;
  animation: whatsapp-assistant-pulse 5.2s ease-out infinite;
  z-index: -1;
}

.whatsapp-assistant-fab:hover,
.whatsapp-assistant-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 22px 44px rgba(6, 95, 70, 0.3),
    0 4px 12px rgba(3, 24, 19, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  filter: saturate(1.04);
  color: #ffffff;
}

.whatsapp-assistant-fab:active,
.whatsapp-assistant-fab[data-dragging="true"] {
  cursor: grabbing;
}

.whatsapp-assistant-fab[data-dragging="true"],
.whatsapp-assistant-fab[data-snapping="true"] {
  animation: none;
  transition: none;
}

.whatsapp-assistant-fab[data-dragging="true"]::after,
.whatsapp-assistant-fab[data-snapping="true"]::after {
  animation: none;
  opacity: 0;
}

@keyframes whatsapp-assistant-breathe {
  0%,
  82%,
  100% {
    transform: translateY(0);
  }
  88% {
    transform: translateY(-2px);
  }
  94% {
    transform: translateY(0);
  }
}

@keyframes whatsapp-assistant-pulse {
  0%,
  62% {
    opacity: 0;
    transform: scale(0.96);
  }
  72% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-assistant-fab,
  .whatsapp-assistant-fab::after {
    animation: none;
    transition: none;
  }
}

.whatsapp-assistant-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.84);
  color: #0b7a4f;
  box-shadow:
    0 8px 18px rgba(3, 64, 47, 0.18),
    inset 0 -1px 0 rgba(11, 122, 79, 0.12);
  flex: 0 0 auto;
}

.whatsapp-assistant-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.whatsapp-assistant-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.whatsapp-assistant-text strong {
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
}

.whatsapp-assistant-text small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
}

.whatsapp-assistant-status {
  position: absolute;
  right: 12px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #dcfce7;
  border: 2px solid rgba(11, 122, 79, 0.98);
  box-shadow: 0 0 0 3px rgba(220, 252, 231, 0.2);
}

.policy-stack {
  display: grid;
  gap: 10px;
}

.policy-stack p {
  margin: 0;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
  color: var(--gray-600);
  display: grid;
  gap: 8px;
}

.compact-steps {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--gray-600);
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.compact-auth-form {
  gap: 10px;
}

.topbar-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  font-size: 13px;
  max-width: 100%;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition-slow);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.topbar-search:hover {
  border-color: var(--gray-300);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.topbar-search:focus-within {
  border-color: var(--purple-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.topbar-search input {
  width: min(100%, 150px);
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-900);
  font-size: 13px;
}

.profile-dropdown,
.topbar-menu-dropdown {
  min-width: min(90vw, 220px);
  width: min(90vw, 220px);
}

.dashboard-continue-card {
  margin: 16px 0;
  box-shadow: var(--shadow-premium);
}

.dashboard-continue-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 20px;
}

.dashboard-continue-copy {
  display: grid;
  gap: 8px;
}

.dashboard-continue-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.dashboard-continue-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dashboard-continue-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
}

.dashboard-continue-meta {
  font-size: 12px;
  color: var(--gray-400);
}

.dashboard-continue-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 241, 250, 0.94));
  border: 1px solid rgba(36, 83, 143, 0.12);
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.topbar-search input::placeholder {
  color: var(--gray-400);
}

.topbar-trust-pill {
  white-space: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.theme-toggle:hover {
  border-color: var(--purple-200);
  color: var(--purple-800);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.1);
}

.theme-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-600);
  box-shadow: 0 0 0 3px var(--purple-50);
}

/* ── Badges / Pills ── */
.pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-purple {
  background: var(--purple-50);
  color: var(--purple-800);
}
.pill-green {
  background: var(--green-50);
  color: var(--green-600);
}
.pill-amber {
  background: var(--amber-50);
  color: var(--amber-600);
}
.pill-coral {
  background: var(--coral-50);
  color: var(--coral-600);
}
.pill-red {
  background: var(--red-50);
  color: var(--red-600);
}
.pill-teal {
  background: var(--teal-50);
  color: var(--teal-600);
}
.pill-live {
  background: var(--coral-400);
  color: white;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-900);
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition-slow),
    filter var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.btn:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.1);
}

.btn-primary {
  background: var(--purple-800);
  color: white;
  border-color: var(--purple-800);
  box-shadow: 0 2px 8px rgba(60, 52, 137, 0.12);
}
.btn-primary:hover {
  background: var(--purple-900);
  border-color: var(--purple-900);
  box-shadow: 0 4px 16px rgba(60, 52, 137, 0.18);
}

.btn-teal {
  background: var(--teal-600);
  color: white;
  border-color: var(--teal-600);
  box-shadow: 0 2px 8px rgba(15, 110, 86, 0.12);
}
.btn-teal:hover {
  background: var(--teal-800);
  box-shadow: 0 4px 16px rgba(15, 110, 86, 0.18);
}

.btn-sm {
  font-size: 12px;
  padding: 5px 12px;
  min-height: 34px;
  line-height: 1.2;
}
.btn-lg {
  font-size: 15px;
  padding: 11px 24px;
  border-radius: var(--radius-lg);
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 24px rgba(15, 23, 42, 0.06);
  transition:
    box-shadow var(--transition),
    transform var(--transition-slow),
    border-color var(--transition),
    background var(--transition-slow);
  position: relative;
  transform-origin: center top;
}

.card:hover {
  border-color: rgba(127, 119, 221, 0.26);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.06),
    0 18px 38px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity var(--transition),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

/* ── First-time Student Tour ── */
.onboarding-tour[aria-hidden="true"] {
  display: none;
}

.onboarding-tour {
  position: fixed;
  inset: 0;
  z-index: 2200;
  pointer-events: none;
}

.onboarding-tour-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 26, 0.58);
  pointer-events: auto;
}

.onboarding-spotlight {
  position: fixed;
  border: 2px solid var(--teal-400);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 9999px rgba(8, 13, 26, 0.48),
    0 18px 40px rgba(3, 8, 24, 0.28);
  transition:
    left var(--transition-slow),
    top var(--transition-slow),
    width var(--transition-slow),
    height var(--transition-slow);
  pointer-events: none;
}

.onboarding-card {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(127, 119, 221, 0.24);
  background: #fff;
  color: var(--gray-900);
  box-shadow: 0 24px 60px rgba(3, 8, 24, 0.28);
  pointer-events: auto;
}

.onboarding-progress {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.onboarding-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--brand-950);
}

.onboarding-card p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.onboarding-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

:root[data-theme="dark"] .onboarding-card {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-900);
}

:root[data-theme="dark"] .onboarding-card h2 {
  color: var(--gray-900);
}

:root[data-theme="dark"] .onboarding-card p {
  color: var(--gray-600);
}

:root[data-theme="dark"] .onboarding-tour-dim {
  background: rgba(2, 6, 16, 0.68);
}

@media (max-width: 560px) {
  .whatsapp-assistant-fab {
    right: 12px;
    bottom: 12px;
    min-height: 52px;
    padding: 7px;
    max-width: 52px;
  }

  .whatsapp-assistant-icon {
    width: 38px;
    height: 38px;
  }

  .whatsapp-assistant-icon svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-assistant-status {
    right: 7px;
    top: 5px;
  }

  .whatsapp-assistant-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .onboarding-card {
    bottom: 12px;
    padding: 16px;
  }

  .onboarding-actions {
    flex-wrap: wrap;
  }

  .onboarding-actions .btn-primary {
    flex: 1 1 100%;
  }
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-900);
}
.card-body {
  padding: 18px;
}

/* ── Stat Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 12px 28px rgba(15, 23, 42, 0.06);
  min-height: 122px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
}

.stat-card:hover {
  border-color: rgba(127, 119, 221, 0.24);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.06),
    0 18px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-400), var(--purple-800));
  opacity: 0.9;
}

.stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
}

.stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--green-600), var(--teal-600));
}

.stat-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--amber-100), var(--amber-400));
}

.stat-label {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1;
}
.stat-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}
.stat-value.accent {
  color: var(--purple-800);
}
.stat-value.green {
  color: var(--teal-600);
}
.stat-value.amber {
  color: var(--amber-400);
}

/* ── Live Event Banner ── */
.live-banner {
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(29, 158, 117, 0.22), transparent 26%),
    linear-gradient(135deg, #342b7b 0%, #4739a3 52%, #23546b 100%);
  background-color: #342b7b;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(60, 52, 137, 0.16);
  transition: all var(--transition);
}

.live-banner:hover {
  box-shadow: 0 12px 32px rgba(60, 52, 137, 0.2);
  transform: translateY(-4px);
}

.live-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.live-banner::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: 80px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: livepulse 1.6s ease-in-out infinite;
}

@keyframes livepulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.live-label {
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.live-event-title {
  font-size: 17px;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}
.live-event-meta {
  font-size: 13px;
  color: var(--purple-200);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-unit {
  text-align: center;
  min-width: 44px;
}
.cd-num {
  font-size: 26px;
  font-weight: 600;
  color: white;
  font-family: var(--font-mono);
  line-height: 1;
}
.cd-label {
  font-size: 10px;
  color: var(--purple-200);
  margin-top: 2px;
}
.cd-sep {
  font-size: 22px;
  color: var(--purple-400);
  font-weight: 500;
  padding-bottom: 10px;
}

.live-banner .btn {
  background: white;
  color: var(--purple-800);
  border-color: white;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all var(--transition);
}
.live-banner .btn:hover {
  background: var(--purple-50);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

/* ── Course Cards ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.course-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
  cursor: pointer;
}

.course-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--purple-200);
}

.course-thumb {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.course-thumb.purple {
  background: var(--purple-50);
}
.course-thumb.teal {
  background: var(--teal-50);
}
.course-thumb.amber {
  background: var(--amber-50);
}
.course-thumb.coral {
  background: var(--coral-50);
}

.course-body {
  padding: 14px;
}
.course-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.course-meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.course-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.progress-bar {
  height: 5px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.progress-fill.purple {
  background: var(--purple-600);
}
.progress-fill.teal {
  background: var(--teal-400);
}
.progress-fill.amber {
  background: var(--amber-400);
}

.progress-pct {
  font-size: 11px;
  color: var(--gray-400);
}

/* ── Instructor Card (inside course) ── */
.instructor-strip {
  border-top: 1px solid var(--gray-200);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
}

.instructor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.instructor-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
}
.instructor-cred {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.4;
}

/* ── Full Instructor Profile Card ── */
.instructor-profile-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.instructor-profile-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.instructor-profile-header {
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.instructor-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
}

.instructor-profile-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.instructor-profile-title {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.instructor-profile-creds {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.instructor-bio {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.instructor-contact-row {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--gray-50);
}

/* ── Events ── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(208, 222, 232, 0.8);
  transition:
    background var(--transition),
    padding var(--transition),
    border-color var(--transition);
  min-height: 80px;
}

.event-item:last-child {
  border-bottom: none;
}
.event-item:hover {
  background:
    linear-gradient(90deg, rgba(127, 119, 221, 0.06), rgba(255, 255, 255, 0.92));
  border-color: rgba(127, 119, 221, 0.2);
  padding-left: 20px;
}

.event-date-block {
  text-align: center;
  flex-shrink: 0;
  width: 44px;
}
.event-day {
  font-size: 22px;
  font-weight: 700;
  color: var(--purple-800);
  font-family: var(--font-display);
  line-height: 1;
}
.event-month {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-info {
  flex: 1;
}
.event-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.event-meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.event-reminder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.event-reminder-item strong {
  display: block;
  font-size: 13px;
  color: var(--gray-900);
  margin-bottom: 2px;
}

/* ── Achievements / Badges ── */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.achievement-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

.achievement-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--purple-200);
}

.achievement-card.locked {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.achievement-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.achievement-desc {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.4;
}
.achievement-earned {
  font-size: 10px;
  color: var(--teal-600);
  font-weight: 500;
  margin-top: 6px;
}

.lesson-structure {
  display: grid;
  gap: 12px;
}

.lesson-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px 16px;
  transition: all var(--transition);
  cursor: pointer;
}

.lesson-block:hover {
  border-color: var(--purple-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lesson-block h5 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--gray-900);
}

.lesson-block p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

.lesson-key-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.lesson-key-list li {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.modern-skills-rich-lesson {
  width: 100%;
  max-width: 900px;
  min-width: 0;
  margin: 0 auto;
  color: var(--gray-900);
  line-height: 1.7;
  overflow-x: hidden;
}

.modern-skills-rich-lesson .lesson-section {
  margin-bottom: 28px;
}

.modern-skills-rich-lesson .section-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
}

.modern-skills-rich-lesson .section-heading.teal {
  border-bottom-color: var(--teal-500);
}
.modern-skills-rich-lesson .section-heading.brand {
  border-bottom-color: var(--blue-500);
}
.modern-skills-rich-lesson .section-heading.amber {
  border-bottom-color: var(--amber-500);
}
.modern-skills-rich-lesson .section-heading.coral {
  border-bottom-color: var(--coral-500);
}
.modern-skills-rich-lesson .section-heading.purple {
  border-bottom-color: var(--purple-400);
}

.modern-skills-rich-lesson .prose {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 14px;
}

.modern-skills-rich-lesson .prose strong {
  color: var(--gray-900);
}

.modern-skills-rich-lesson .stat-row,
.modern-skills-rich-lesson .key-points,
.modern-skills-rich-lesson .channel-grid,
.modern-skills-rich-lesson .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.modern-skills-rich-lesson .stat-card,
.modern-skills-rich-lesson .key-point,
.modern-skills-rich-lesson .channel-card,
.modern-skills-rich-lesson .metric-card,
.modern-skills-rich-lesson .quiz-block,
.modern-skills-rich-lesson .demo-block {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.modern-skills-rich-lesson .stat-card,
.modern-skills-rich-lesson .key-point,
.modern-skills-rich-lesson .channel-card,
.modern-skills-rich-lesson .metric-card {
  padding: 14px;
}

.modern-skills-rich-lesson .stat-card {
  text-align: center;
}

.modern-skills-rich-lesson .stat-num,
.modern-skills-rich-lesson .metric-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--blue-700);
  line-height: 1.1;
}

.modern-skills-rich-lesson .stat-label,
.modern-skills-rich-lesson .metric-name,
.modern-skills-rich-lesson .metric-formula,
.modern-skills-rich-lesson .kp-text,
.modern-skills-rich-lesson .channel-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.55;
}

.modern-skills-rich-lesson .kp-title,
.modern-skills-rich-lesson .channel-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.modern-skills-rich-lesson .concept-box {
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
  margin: 14px 0;
  background: var(--blue-50);
}

.modern-skills-rich-lesson .concept-box.teal {
  border-left-color: var(--teal-500);
  background: var(--teal-50);
}

.modern-skills-rich-lesson .concept-box.amber {
  border-left-color: var(--amber-500);
  background: var(--amber-50);
}

.modern-skills-rich-lesson .concept-box-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.modern-skills-rich-lesson .concept-box-text {
  font-size: 14px;
  color: var(--gray-800);
}

.modern-skills-rich-lesson .info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 18px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.modern-skills-rich-lesson .info-table th {
  background: var(--gray-100);
  color: var(--gray-700);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-200);
}

.modern-skills-rich-lesson .info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  vertical-align: top;
}

.modern-skills-rich-lesson .demo-block {
  overflow: hidden;
  margin: 14px 0 18px;
}

.modern-skills-rich-lesson .demo-header {
  padding: 10px 14px;
  background: var(--gray-100);
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  font-size: 12px;
}

.modern-skills-rich-lesson .demo-body {
  padding: 18px;
  background: #fff;
}

.modern-skills-rich-lesson .preview-box {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 14px 0 18px;
}

.modern-skills-rich-lesson .preview-header {
  padding: 10px 14px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 12px;
  display: flex;
  align-items: center;
}

.modern-skills-rich-lesson .preview-dot,
.modern-skills-rich-lesson .demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.modern-skills-rich-lesson .preview-body {
  padding: 18px;
  background: #fff;
}

.modern-skills-rich-lesson .code-block {
  background: #0d1117;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 14px 0 18px;
  box-shadow: var(--shadow-card);
}

.modern-skills-rich-lesson .code-block-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-skills-rich-lesson .code-block-lang {
  font-size: 12px;
  font-weight: 700;
  color: #79c0ff;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.modern-skills-rich-lesson .copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #c9d1d9;
  padding: 4px 10px;
  font-size: 11px;
}

.modern-skills-rich-lesson .copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modern-skills-rich-lesson .code-body {
  padding: 18px;
  overflow-x: auto;
  color: #c9d1d9;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre;
}

.modern-skills-rich-lesson .c-tag,
.modern-skills-rich-lesson .c-kw {
  color: #ff7b72;
}
.modern-skills-rich-lesson .c-attr,
.modern-skills-rich-lesson .c-fn {
  color: #d2a8ff;
}
.modern-skills-rich-lesson .c-val,
.modern-skills-rich-lesson .c-str {
  color: #a5d6ff;
}
.modern-skills-rich-lesson .c-cmt {
  color: #8b949e;
}
.modern-skills-rich-lesson .c-num,
.modern-skills-rich-lesson .c-unit {
  color: #79c0ff;
}
.modern-skills-rich-lesson .c-sel,
.modern-skills-rich-lesson .c-tbl {
  color: #7ee787;
}
.modern-skills-rich-lesson .c-prop,
.modern-skills-rich-lesson .c-col {
  color: #ffa657;
}

.modern-skills-rich-lesson .result-label {
  font-size: 11px;
  color: var(--gray-500);
  margin: 8px 0 6px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.modern-skills-rich-lesson .result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 0 0 18px;
}

.modern-skills-rich-lesson .result-table th {
  background: var(--purple-50);
  color: var(--purple-800);
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.modern-skills-rich-lesson .result-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}

.modern-skills-rich-lesson .schema-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 14px 0 18px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.modern-skills-rich-lesson .schema-table {
  display: inline-block;
  min-width: 160px;
  border: 2px solid var(--purple-400);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 8px;
  vertical-align: top;
}

.modern-skills-rich-lesson .schema-table-header {
  background: var(--purple-400);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.modern-skills-rich-lesson .schema-col {
  padding: 7px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--gray-100);
  font-size: 12px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.modern-skills-rich-lesson .schema-col:last-child {
  border-bottom: none;
}

.modern-skills-rich-lesson .schema-col-name {
  color: var(--gray-900);
}

.modern-skills-rich-lesson .schema-col-type {
  color: var(--gray-500);
  font-size: 11px;
}

.modern-skills-rich-lesson .schema-pk,
.modern-skills-rich-lesson .schema-fk {
  font-size: 10px;
  font-weight: 900;
}

.modern-skills-rich-lesson .schema-pk {
  color: var(--amber-600);
}
.modern-skills-rich-lesson .schema-fk {
  color: var(--blue-700);
}

.modern-skills-rich-lesson .do-dont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.modern-skills-rich-lesson .do-box,
.modern-skills-rich-lesson .dont-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px;
}

.modern-skills-rich-lesson .do-box {
  border: 2px solid var(--teal-500);
}
.modern-skills-rich-lesson .dont-box {
  border: 2px solid var(--red-500);
}

.modern-skills-rich-lesson .do-label,
.modern-skills-rich-lesson .dont-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.modern-skills-rich-lesson .do-label {
  color: var(--teal-600);
}
.modern-skills-rich-lesson .dont-label {
  color: var(--red-600);
}

.modern-skills-rich-lesson .do-dont-text {
  font-size: 13px;
  color: var(--gray-600);
}

.modern-skills-rich-lesson .funnel {
  display: grid;
  gap: 5px;
  margin: 14px 0 18px;
}

.modern-skills-rich-lesson .funnel-step {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
}

.modern-skills-rich-lesson .funnel-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 900;
}

.modern-skills-rich-lesson .quiz-block {
  padding: 20px;
}

.modern-skills-rich-lesson .quiz-block-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--amber-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.modern-skills-rich-lesson .quiz-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.modern-skills-rich-lesson .quiz-opts {
  display: grid;
  gap: 8px;
}

.modern-skills-rich-lesson .quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: #fff;
  color: var(--gray-700);
}

.modern-skills-rich-lesson .worked-example,
.modern-skills-rich-lesson .math-box,
.modern-skills-rich-lesson .exam-tip,
.modern-skills-rich-lesson .step-list,
.modern-skills-rich-lesson .try-it {
  min-width: 0;
}

.modern-skills-rich-lesson .worked-example,
.modern-skills-rich-lesson .math-box,
.modern-skills-rich-lesson .exam-tip,
.modern-skills-rich-lesson .step-item {
  overflow-wrap: anywhere;
}

.modern-skills-rich-lesson .step-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.modern-skills-rich-lesson .step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.modern-skills-rich-lesson .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--blue-700);
  flex-shrink: 0;
}

.modern-skills-rich-lesson .step-content {
  min-width: 0;
}

.modern-skills-rich-lesson .step-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.modern-skills-rich-lesson .step-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.65;
}

.modern-skills-rich-lesson .worked-example,
.modern-skills-rich-lesson .exam-tip {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 16px;
  margin: 14px 0 18px;
  box-shadow: var(--shadow-card);
}

.modern-skills-rich-lesson .worked-example-label,
.modern-skills-rich-lesson .exam-tip-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.modern-skills-rich-lesson .worked-example-label {
  color: var(--blue-700);
}

.modern-skills-rich-lesson .exam-tip-label {
  color: var(--amber-600);
}

.modern-skills-rich-lesson .math-box,
.modern-skills-rich-lesson .exam-tip-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-700);
}

.modern-skills-rich-lesson .math-box {
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 14px;
  white-space: pre-wrap;
}

.modern-skills-rich-lesson .formula,
.modern-skills-rich-lesson .answer,
.modern-skills-rich-lesson .comment,
.modern-skills-rich-lesson .warn {
  display: block;
}

.modern-skills-rich-lesson .answer {
  font-weight: 800;
  color: var(--teal-700);
}

.modern-skills-rich-lesson .warn {
  color: var(--amber-700);
}

.modern-skills-rich-lesson .try-it textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--gray-900);
  padding: 12px;
  font-size: 13px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.modern-skills-rich-lesson .try-it-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.modern-skills-rich-lesson .run-btn,
.modern-skills-rich-lesson .try-it-actions .copy-btn {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.modern-skills-rich-lesson .run-btn {
  background: var(--teal-600);
  color: #fff;
}

.modern-skills-rich-lesson .try-it-actions .copy-btn {
  background: var(--gray-100);
  color: var(--gray-800);
}

.modern-skills-rich-lesson .try-result {
  margin-top: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-900);
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.modern-skills-rich-lesson .try-result img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.modern-skills-rich-lesson .try-result-empty {
  color: var(--gray-500);
  font-size: 13px;
}

.modern-skills-rich-lesson .opt-l {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.lesson-further-reading .lesson-reading-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-further-reading .lesson-reading-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-600);
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--teal-50);
}

.lesson-code-grid {
  display: grid;
  gap: 12px;
}

.lesson-code-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  overflow: hidden;
}

.lesson-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  flex-wrap: wrap;
}

.lesson-code-head strong {
  display: block;
  font-size: 13px;
  color: var(--gray-900);
}

.lesson-code-head span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lesson-code-pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: var(--font-mono);
}

.lesson-code-pre code {
  white-space: pre;
}

/* ── Certificate ── */
.certificate-wrapper {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  max-width: 680px;
  margin: 0 auto 24px;
}

.certificate-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../AGI.png");
  background-repeat: no-repeat;
  background-position: center 46%;
  background-size: 180px;
  opacity: 0.045;
  pointer-events: none;
  filter: saturate(0.9);
}

.cert-decorative-border {
  position: absolute;
  inset: 12px;
  border: 2px solid var(--purple-100);
  border-radius: 16px;
  pointer-events: none;
}

.cert-corner {
  position: absolute;
  width: 32px;
  height: 32px;
}

.cert-corner.tl {
  top: 20px;
  left: 20px;
  border-top: 3px solid var(--purple-400);
  border-left: 3px solid var(--purple-400);
}
.cert-corner.tr {
  top: 20px;
  right: 20px;
  border-top: 3px solid var(--purple-400);
  border-right: 3px solid var(--purple-400);
}
.cert-corner.bl {
  bottom: 20px;
  left: 20px;
  border-bottom: 3px solid var(--purple-400);
  border-left: 3px solid var(--purple-400);
}
.cert-corner.br {
  bottom: 20px;
  right: 20px;
  border-bottom: 3px solid var(--purple-400);
  border-right: 3px solid var(--purple-400);
}

.cert-seal {
  width: 56px;
  height: 56px;
  background: rgba(186, 194, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 8px;
  border: 1px solid rgba(186, 194, 255, 0.2);
}

.cert-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-subtitle {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.cert-intro {
  font-size: 15px;
  color: var(--gray-600);
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 6px;
}
.cert-name {
  font-size: 34px;
  font-weight: 400;
  color: var(--purple-800);
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: 8px;
}
.cert-course {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.cert-score {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.cert-instructor-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--purple-50);
  color: var(--purple-800);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  max-width: min(100%, 420px);
  line-height: 1.45;
}

.cert-divider {
  width: 60px;
  height: 1px;
  background: var(--gray-200);
  margin: 0 auto 24px;
}

.cert-signatories {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.cert-signatory {
  text-align: center;
  min-width: 140px;
}
.cert-sig-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
}
.cert-sig-role {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

.cert-signature-mark {
  min-height: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 4px 10px;
  box-shadow: 0 8px 18px rgba(10, 16, 35, 0.14);
}

.cert-signature-image {
  max-width: 150px;
  max-height: 44px;
  object-fit: contain;
}

.cert-signature-script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 22px;
  line-height: 1;
  color: var(--purple-900);
}

.cert-signature-line {
  width: 120px;
  max-width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 8px auto 8px;
}

.cert-qr {
  width: 60px;
  height: 60px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
}

.cert-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Practice Lab ── */
.lab-section-copy {
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray-400);
  max-width: 62ch;
}

.lab-status-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lab-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 83, 143, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 253, 0.96));
  font-size: 13px;
  color: var(--brand-800);
  font-family: var(--font-mono);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.lab-controls-card {
  margin-bottom: 16px;
  box-shadow: var(--shadow-premium);
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 122, 209, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
}

.lab-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(260px, 1.2fr);
  gap: 12px;
  align-items: end;
}

.lab-control-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

.lab-control-field select,
.lab-control-field textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-900);
  font-size: 13px;
  padding: 9px 10px;
}

.lab-control-field textarea {
  resize: vertical;
  min-height: 120px;
}

.lab-control-field select:focus,
.lab-control-field textarea:focus {
  border-color: var(--purple-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.12);
}

.lab-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lab-control-actions .btn-primary {
  box-shadow: 0 8px 20px rgba(60, 52, 137, 0.16);
}

.lab-main-grid {
  margin-bottom: 16px;
}

.lab-insights-grid {
  margin-bottom: 8px;
}

.lab-main-grid > .card,
.lab-insights-grid > .card,
.waec-assessment-grid > .card,
.ms-assessment-grid > .card,
.waec-summary-layout > .card,
.ms-summary-layout > .card {
  box-shadow: var(--shadow-premium);
}

.lab-exam-note {
  font-size: 13px;
  color: var(--teal-600);
  background:
    linear-gradient(180deg, rgba(225, 245, 238, 0.92), rgba(239, 250, 246, 0.96));
  border: 1px solid rgba(15, 110, 86, 0.16);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px rgba(15, 110, 86, 0.08);
}

.lab-question-list {
  display: grid;
  gap: 10px;
}

.lab-exam-shell {
  display: grid;
  gap: 14px;
}

.lab-exam-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lab-exam-stat {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.lab-exam-stat strong {
  font-size: 20px;
  color: var(--brand-800);
  font-family: var(--font-mono);
}

.lab-exam-stat span {
  font-size: 12px;
  color: var(--gray-400);
}

.lab-question-navigator {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lab-question-chip {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(36, 83, 143, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lab-question-chip.active {
  border-color: var(--brand-500);
  background: rgba(47, 111, 190, 0.14);
  color: var(--brand-800);
}

.lab-question-chip.answered {
  box-shadow: inset 0 0 0 1px rgba(15, 110, 86, 0.16);
}

.lab-question-chip.flagged {
  border-color: rgba(215, 152, 29, 0.36);
}

.lab-question-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lab-question-prompt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.lab-option-stack {
  display: grid;
  gap: 10px;
}

.lab-option-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.lab-option-card input {
  margin-top: 3px;
}

.lab-option-card.selected {
  border-color: rgba(47, 111, 190, 0.36);
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.98), rgba(246, 250, 255, 0.98));
}

.lab-option-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(29, 79, 145, 0.1);
  color: var(--brand-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.lab-exam-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lab-exam-meta {
  font-size: 12px;
  color: var(--gray-400);
  max-width: 54ch;
}

.lab-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lab-ready-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.lab-ready-card,
.lab-bank-note,
.lab-readiness-band {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.lab-ready-card strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.lab-ready-card p,
.lab-bank-note {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.lab-readiness-band {
  margin-top: 12px;
  display: grid;
  gap: 4px;
}

.lab-readiness-band strong {
  font-size: 13px;
}

.lab-readiness-band span {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

.lab-readiness-band.good {
  border-color: rgba(15, 110, 86, 0.22);
  background: linear-gradient(180deg, rgba(230, 246, 240, 0.94), rgba(241, 250, 246, 0.96));
}

.lab-readiness-band.watch {
  border-color: rgba(215, 152, 29, 0.24);
  background: linear-gradient(180deg, rgba(255, 247, 229, 0.94), rgba(255, 251, 241, 0.96));
}

.lab-readiness-band.risk {
  border-color: rgba(191, 60, 70, 0.2);
  background: linear-gradient(180deg, rgba(255, 239, 240, 0.94), rgba(255, 247, 247, 0.96));
}

.lab-question-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.lab-question-item legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  padding: 0 4px;
}

.lab-question-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 8px;
  cursor: pointer;
  line-height: 1.6;
}

.lab-empty {
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  color: var(--gray-400);
  font-size: 13px;
  line-height: 1.7;
  padding: 14px;
}

.lab-past-header {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lab-past-list {
  display: grid;
  gap: 12px;
  max-height: 390px;
  overflow: auto;
  padding-right: 2px;
}

.lab-past-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.lab-past-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 3px;
}

.lab-past-prompt {
  font-size: 14px;
  color: var(--gray-900);
  line-height: 1.75;
  margin-top: 8px;
}

.lab-auto-summary {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.lab-explanation-list {
  display: grid;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding-right: 2px;
}

.lab-explanation-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.lab-explanation-item.ok {
  border-left: 3px solid var(--teal-600);
}

.lab-explanation-item.warn {
  border-left: 3px solid var(--amber-400);
}

.lab-explanation-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.lab-explanation-meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 3px;
}

.lab-explanation-item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.lab-essay-form {
  display: grid;
  gap: 10px;
}

.lab-essay-prompt-preview {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.lab-essay-prompt-label {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-800);
}

.lab-essay-prompt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.lab-essay-prompt-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-600);
}

.lab-essay-prompt-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-400);
}

.lab-subsection-title {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lab-essay-item,
.lab-history-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.lab-essay-meta,
.lab-history-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-400);
}

.lab-essay-ai {
  margin-top: 10px;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-md);
  background: rgba(246, 249, 255, 0.92);
  padding: 10px 12px;
}

.lab-essay-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-600);
}

:root[data-theme="dark"] .lab-essay-ai {
  background: rgba(22, 34, 62, 0.94);
  border-color: rgba(120, 151, 214, 0.16);
}

.lab-history-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
}

.lab-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lab-analytics-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.lab-analytics-item strong {
  font-size: 20px;
  color: var(--purple-800);
  font-family: var(--font-mono);
}

.lab-analytics-item span {
  font-size: 12px;
  color: var(--gray-400);
}

.lab-analytics-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-400);
}

.lab-weak-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

/* ── Quiz ── */
.quiz-integrity-bar {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--teal-600);
}

.quiz-integrity-spacer {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#quiz-active-label {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 600;
}

.quiz-hub-grid {
  margin-bottom: 16px;
}

.quiz-control-stack {
  display: grid;
  gap: 10px;
}

.quiz-control-label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

.quiz-control-label select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-900);
  font-size: 13px;
  padding: 8px 10px;
}

.quiz-control-label select:focus {
  border-color: var(--purple-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.12);
}

.quiz-selection-summary {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  padding: 10px 11px;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.6;
  display: grid;
  gap: 2px;
}

.quiz-control-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quiz-progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--purple-600);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quiz-question-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-question-counter {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

.quiz-flag-btn {
  color: var(--red-400);
  border-color: var(--red-400);
}

.question-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.q-meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}
.q-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.6;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  font-size: 14px;
  color: var(--gray-900);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
  background: #fff;
}

.option-item:hover {
  border-color: var(--purple-400);
  background: var(--purple-50);
}
.option-item.selected {
  border-color: var(--purple-600);
  background: var(--purple-50);
  color: var(--purple-800);
}
.option-item.correct {
  border-color: var(--teal-600);
  background: var(--teal-50);
  color: var(--teal-600);
}
.option-item.wrong {
  border-color: var(--red-600);
  background: var(--red-50);
  color: var(--red-600);
}
.option-item:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
}

.option-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.quiz-nav-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.quiz-results-shell {
  text-align: center;
  padding: 36px 20px;
}

.quiz-results-score {
  font-size: 60px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.quiz-results-score.ok {
  color: var(--teal-600);
}

.quiz-results-score.warn {
  color: var(--red-400);
}

.quiz-results-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.quiz-results-meta {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.quiz-results-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-leaderboard-card {
  margin-top: 16px;
}

.quiz-leaderboard-controls {
  margin-bottom: 12px;
}

.quiz-leaderboard-group {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.quiz-leaderboard-group h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--gray-900);
}

.quiz-leaderboard-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-600);
  padding: 6px 0;
  border-top: 1px solid var(--gray-200);
}

.quiz-leaderboard-row:first-of-type {
  border-top: none;
}

.quiz-leaderboard-row .rank {
  font-weight: 700;
  color: var(--purple-800);
}

.quiz-leaderboard-row .name {
  font-weight: 600;
  color: var(--gray-900);
}

.quiz-leaderboard-row .score {
  font-family: var(--font-mono);
  color: var(--teal-600);
  font-weight: 700;
}

.quiz-leaderboard-row .meta {
  font-size: 12px;
  color: var(--gray-400);
}

/* ── Integrity Monitor ── */
.integrity-score-ring {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--teal-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--teal-100);
  margin-bottom: 20px;
}

.integrity-ring-val {
  font-size: 40px;
  font-weight: 700;
  color: var(--teal-600);
  font-family: var(--font-mono);
}
.integrity-ring-label {
  font-size: 14px;
  color: var(--teal-600);
  font-weight: 500;
}
.integrity-ring-sub {
  font-size: 12px;
  color: var(--teal-400);
  margin-top: 2px;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.flag-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.flag-label {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.flag-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}
.flag-value.ok {
  color: var(--teal-600);
}
.flag-value.warn {
  color: var(--amber-400);
}
.flag-value.fail {
  color: var(--red-400);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}

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

.timeline-time {
  font-size: 11px;
  color: var(--gray-400);
  font-family: var(--font-mono);
  min-width: 56px;
  padding-top: 2px;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.timeline-dot.ok {
  background: var(--teal-400);
}
.timeline-dot.warn {
  background: var(--amber-400);
}
.timeline-dot.fail {
  background: var(--red-400);
}

.timeline-text {
  font-size: 13px;
  color: var(--gray-600);
  flex: 1;
}

/* ── Panels ── */
.panel {
  display: none;
  padding: 28px 32px;
}
.panel.active {
  display: block;
}

/* ── Two Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(36, 83, 143, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 122, 209, 0.08), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: var(--shadow-premium);
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-950);
}

/* ── Notification Banner ── */
.notify-bar {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--amber-600);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* ── Welcome Panel ── */
.welcome-shell {
  display: grid;
  gap: 16px;
}

.welcome-hero {
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 166, 58, 0.18), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(29, 158, 117, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.96));
  box-shadow: var(--shadow-premium);
  transition: all var(--transition);
}

.welcome-hero:hover {
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.07);
}

.welcome-public-hero {
  position: relative;
  overflow: hidden;
}

.welcome-public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(17, 35, 63, 0.02), transparent 30%),
    linear-gradient(300deg, rgba(59, 122, 209, 0.06), transparent 34%);
  pointer-events: none;
}

.welcome-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.welcome-hero-main {
  display: grid;
  gap: 16px;
}

.welcome-hero-side {
  display: grid;
  gap: 14px;
}

.welcome-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.welcome-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--brand-950);
  font-family: var(--font-display);
}

.welcome-copy {
  max-width: 60ch;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
}

.welcome-quick-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-public-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.welcome-proof-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 83, 143, 0.12);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(4px);
}

.welcome-proof-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-700);
}

.welcome-proof-item strong {
  font-size: 15px;
  color: var(--gray-900);
}

.welcome-proof-item span:last-child {
  font-size: 12px;
  line-height: 1.55;
  color: var(--gray-600);
}

.welcome-investor-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.welcome-investor-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 158, 117, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(240, 253, 248, 0.86), rgba(255, 255, 255, 0.78));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.welcome-investor-item strong {
  font-size: 13px;
  color: var(--gray-900);
}

.welcome-investor-item span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--gray-600);
}

.welcome-next-step {
  padding: 16px 18px;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 255, 0.9));
}

.welcome-next-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.welcome-next-step-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.welcome-side-card,
.welcome-metric-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 83, 143, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.96));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.welcome-side-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.welcome-side-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-600);
}

.welcome-side-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--brand-950);
}

.welcome-side-list {
  display: grid;
  gap: 12px;
}

.welcome-side-list div {
  display: grid;
  gap: 3px;
}

.welcome-side-list strong {
  font-size: 14px;
  color: var(--gray-900);
}

.welcome-side-list span {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}

.welcome-side-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.welcome-metric-card {
  padding: 16px;
  min-height: 116px;
}

.welcome-metric-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: var(--brand-900);
  margin-bottom: 8px;
}

.welcome-metric-label {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.55;
}

.public-pilot-results {
  margin-top: 18px;
}

.public-pilot-metrics {
  margin-bottom: 16px;
}

.public-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(36, 83, 143, 0.1);
}

.public-review-head > div {
  display: grid;
  gap: 4px;
}

.public-review-head strong {
  color: var(--gray-900);
  font-size: 15px;
}

.public-review-head span {
  color: var(--gray-600);
  font-size: 13px;
}

.public-review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.public-review-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 16px;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.95));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.welcome-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.welcome-portal-card p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-public-grid {
  align-items: stretch;
}

.welcome-note-card {
  min-height: 100%;
}

.welcome-note-copy {
  font-size: 14px;
  color: var(--gray-600);
}

.welcome-note-copy strong {
  color: var(--gray-900);
}

.pilot-hero .welcome-title {
  max-width: 12ch;
}

.pilot-checklist {
  display: grid;
  gap: 10px;
}

.pilot-task {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.pilot-task-status {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-700);
  background: rgba(59, 122, 209, 0.1);
  border: 1px solid rgba(59, 122, 209, 0.18);
}

.pilot-task.is-done {
  border-color: rgba(29, 158, 117, 0.28);
  background:
    linear-gradient(180deg, rgba(240, 253, 248, 0.86), rgba(255, 255, 255, 0.96));
}

.pilot-task.is-done .pilot-task-status {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.22);
}

.impact-preview-grid,
.demo-pack-grid,
.demo-pack-strip {
  display: grid;
  gap: 14px;
}

.impact-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.impact-preview-grid > div,
.demo-pack-grid > article,
.demo-pack-strip > div {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
}

.impact-preview-grid strong,
.demo-pack-strip strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.impact-preview-grid span,
.demo-pack-strip span {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.55;
}

.demo-pack {
  padding: 26px;
}

.demo-pack-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.demo-pack-header h2 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  color: var(--brand-950);
  font-family: var(--font-display);
}

.demo-pack-header p,
.demo-pack-grid p {
  color: var(--gray-600);
  line-height: 1.65;
}

.demo-pack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-pack-grid h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 17px;
}

.demo-pack-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.assistant-feature,
.assistant-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 248, 0.92));
  border-color: rgba(29, 158, 117, 0.18);
  box-shadow: var(--shadow-premium);
}

.assistant-feature-main,
.assistant-page-copy {
  display: grid;
  gap: 12px;
}

.assistant-feature h2,
.assistant-page-hero h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  color: var(--brand-950);
  font-family: var(--font-display);
  letter-spacing: 0;
}

.assistant-feature p,
.assistant-page-hero p,
.student-assistant-card-body p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.assistant-feature-actions,
.assistant-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assistant-feature-side {
  min-width: 0;
}

.assistant-chat-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(7, 31, 24, 0.94));
  border: 1px solid rgba(37, 211, 102, 0.22);
  box-shadow: 0 16px 34px rgba(7, 31, 24, 0.18);
}

.assistant-chat-preview.large {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(7, 31, 24, 0.96));
}

.assistant-chat-row {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.assistant-chat-row.student {
  justify-self: end;
  background: #dcfce7;
  color: #065f46;
  border-bottom-right-radius: 5px;
}

.assistant-chat-row.bot {
  justify-self: start;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 5px;
}

.assistant-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.assistant-info-card {
  min-height: 100%;
}

.assistant-capability-grid,
.assistant-sync-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assistant-capability-grid div,
.assistant-sync-list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(29, 158, 117, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(240, 253, 248, 0.72);
}

.assistant-capability-grid strong,
.assistant-sync-list strong {
  color: var(--gray-900);
  font-size: 14px;
}

.assistant-capability-grid span,
.assistant-sync-list span {
  color: var(--gray-600);
  font-size: 12px;
  line-height: 1.55;
}

.assistant-qr-card,
.assistant-link-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.assistant-qr-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(29, 158, 117, 0.18);
}

.assistant-qr-card strong {
  color: var(--gray-900);
  font-size: 14px;
}

.assistant-qr-card span,
.assistant-link-qr span {
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.5;
}

.assistant-qr-frame,
.assistant-link-qr-frame {
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.assistant-qr-frame {
  width: 156px;
  height: 156px;
  padding: 12px;
}

.assistant-link-qr {
  margin-top: 12px;
  justify-items: start;
  text-align: left;
}

.assistant-link-qr-frame {
  width: 96px;
  height: 96px;
  padding: 8px;
}

.assistant-qr-frame img,
.assistant-link-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.assistant-link-note {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 158, 117, 0.16);
  background: rgba(240, 253, 248, 0.78);
  color: var(--gray-700);
  font-size: 13px;
  line-height: 1.6;
}

.assistant-steps {
  margin-top: 0;
}

.student-assistant-card-body {
  display: grid;
  gap: 12px;
}

.pwa-install-btn[hidden] {
  display: none !important;
}

.offline-status-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 9998;
  width: min(620px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(29, 158, 117, 0.26);
  background: rgba(240, 253, 248, 0.96);
  color: var(--teal-800);
  box-shadow: var(--shadow-lift);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.offline-status-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.offline-status-banner.is-offline {
  border-color: rgba(212, 166, 58, 0.32);
  background: rgba(255, 249, 232, 0.97);
  color: var(--amber-700);
}

:root[data-theme="dark"] .offline-status-banner {
  border-color: rgba(59, 122, 209, 0.38);
  background: rgba(18, 26, 44, 0.96);
  color: var(--gray-100);
}

:root[data-theme="dark"] .offline-status-banner.is-offline {
  border-color: rgba(212, 166, 58, 0.42);
  background: rgba(45, 35, 16, 0.96);
  color: var(--amber-100);
}

.notification-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.notification-settings-card .muted {
  margin-bottom: 14px;
}

.notification-permission-box {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, 0.82);
}

.notification-permission-box p {
  margin-top: 4px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.45;
}

.notification-permission-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.notification-toggle-list {
  display: grid;
  gap: 10px;
}

.notification-toggle-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.notification-toggle-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-600);
}

.notification-toggle-item span {
  display: grid;
  gap: 3px;
}

.notification-toggle-item strong {
  color: var(--gray-900);
  font-size: 14px;
}

.notification-toggle-item small {
  color: var(--gray-600);
  font-size: 12px;
  line-height: 1.4;
}

.notification-policy-list {
  display: grid;
  gap: 12px;
}

.notification-policy-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(247, 250, 252, 0.76);
}

.notification-policy-list strong,
.notification-policy-list span {
  display: block;
}

.notification-policy-list strong {
  margin-bottom: 4px;
  color: var(--gray-900);
}

.notification-policy-list span {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.45;
}

:root[data-theme="dark"] .notification-permission-box,
:root[data-theme="dark"] .notification-toggle-item,
:root[data-theme="dark"] .notification-policy-list div {
  border-color: rgba(142, 155, 176, 0.22);
  background: rgba(17, 24, 39, 0.62);
}

:root[data-theme="dark"] .notification-toggle-item strong,
:root[data-theme="dark"] .notification-policy-list strong {
  color: var(--gray-100);
}

:root[data-theme="dark"] .notification-toggle-item small,
:root[data-theme="dark"] .notification-policy-list span,
:root[data-theme="dark"] .notification-permission-box p {
  color: var(--gray-300);
}

/* ── Student Home ── */
.student-home {
  display: grid;
  gap: 18px;
}

.student-hero {
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 0%, rgba(36, 83, 143, 0.16), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(212, 166, 58, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: var(--shadow-premium);
}

.student-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.student-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 8px;
}

.student-hero-title {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.34em;
  row-gap: 0.04em;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--brand-950);
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.student-hero-title span {
  display: inline-block;
}

.student-hero-copy {
  max-width: 58ch;
  font-size: 14px;
  color: var(--gray-600);
}

.student-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.student-hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-hero-summary {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.student-summary-toggle {
  display: none;
  margin-top: 12px;
}

.student-summary-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 83, 143, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.student-summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.student-summary-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 6px;
}

.student-summary-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.student-list {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
}

.student-list-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}

.student-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.student-metric {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  text-align: center;
}

.student-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.student-metric-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
  display: block;
}

.student-support p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.student-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-next-body {
  display: grid;
  gap: 10px;
}

.student-next-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.student-next-copy {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.student-next-meta {
  font-size: 12px;
  color: var(--gray-400);
}

.student-next-action {
  justify-self: start;
}

.hero-actions-menu {
  position: relative;
}

.hero-actions-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  display: none;
  flex-direction: column;
  min-width: 180px;
  padding: 6px;
  z-index: 50;
}

.hero-actions-dropdown.open {
  display: flex;
}

.hero-actions-item {
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}

.hero-actions-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.student-grid-toggle {
  display: none;
  justify-content: center;
}

.dashboard-secondary-details {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.dashboard-secondary-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
}

.dashboard-secondary-summary::-webkit-details-marker {
  display: none;
}

.dashboard-secondary-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.dashboard-secondary-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

.dashboard-secondary-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
}

.dashboard-secondary-grid {
  padding: 0 20px 20px;
}

.dashboard-subcard {
  box-shadow: none;
}

.student-progress {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.student-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-400);
}

.student-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.student-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-400), var(--purple-400));
  transition: width 0.4s ease;
}

.student-challenge p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.student-start-body p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.student-start-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin: -6px 0 10px;
}

.student-compact-card details {
  border-radius: var(--radius-md);
}

.student-accordion summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}

.student-accordion summary::-webkit-details-marker {
  display: none;
}

.student-accordion summary::after {
  content: "+";
  font-weight: 700;
  color: var(--gray-400);
}

.student-accordion[open] summary::after {
  content: "–";
}

.student-accordion-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.student-accordion-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.student-accordion-copy {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.profile-menu {
  position: relative;
  display: none;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 12px;
  color: var(--gray-600);
  cursor: pointer;
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.profile-label {
  font-weight: 600;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 100;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-dropdown.open {
  display: flex;
}

.profile-item {
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
  display: flex;
  align-items: center;
}

.profile-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  padding-left: 14px;
}

.topbar-menu {
  position: relative;
  display: none;
}

.topbar-menu-btn {
  min-width: 36px;
  font-size: 18px;
  line-height: 1;
}

.topbar-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  min-width: 160px;
  max-width: calc(100vw - 20px);
  padding: 6px;
  z-index: 120;
  overflow-x: hidden;
  word-break: break-word;
  animation: slideDown 0.2s ease;
}

.topbar-menu-dropdown.open {
  display: flex;
}

.topbar-menu-dropdown:not(.open) {
  display: none !important;
}

.topbar-menu-item {
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}

.topbar-menu-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.leaderboard-preview {
  display: grid;
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-600);
}

.leaderboard-row.highlight {
  border-color: var(--purple-100);
  background: var(--purple-50);
  color: var(--purple-800);
  font-weight: 600;
}

.leaderboard-rank {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
}

.leaderboard-row.highlight .leaderboard-rank {
  color: var(--purple-800);
}

.leaderboard-score {
  font-weight: 600;
  color: var(--gray-900);
}

.leaderboard-row.highlight .leaderboard-score {
  color: var(--purple-800);
}

.leaderboard-placeholder {
  font-size: 12px;
  color: var(--gray-400);
  padding: 4px 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quiz-micro-panel {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  font-size: 13px;
  color: var(--teal-600);
  font-weight: 600;
}

.quiz-micro-next {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--gray-600);
}

.quiz-micro-panel .btn {
  margin-top: 10px;
  align-self: start;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flags-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .student-grid {
    grid-template-columns: 1fr;
  }
  .student-accordion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .sidebar {
    width: 200px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .lab-controls-grid {
    grid-template-columns: 1fr;
  }
  .lab-control-actions {
    justify-content: flex-start;
  }
  .lab-analytics-grid {
    grid-template-columns: 1fr;
  }
  .quiz-integrity-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .quiz-integrity-spacer {
    margin-left: 0;
  }
  .quiz-coright {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }
  .topbar-search,
  .theme-toggle,
  .topbar-auth-actions,
  #auth-status-pill,
  .topbar-right > .btn[data-target-panel="feedback"],
  .official-mail-pill,
  .support-mail-pill,
  .topbar-trust-pill,
  .profile-menu {
    display: none;
  }
  .app-shell {
    --sidebar-width: 72px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    max-width: 240px;
    transform: translateX(-100%);
    height: 100vh;
    z-index: 100;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  }

  .app-shell.sidebar-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar-hamburger {
    display: inline-flex;
  }

  .sidebar-open-handle {
    display: none;
  }

  .topbar-menu {
    display: inline-flex;
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-logo {
    justify-content: center;
    padding: 16px 0;
  }

  .logo-wordmark,
  .nav-section-label,
  .nav-badge,
  .user-name,
  .user-role {
    display: block;
  }

  .sidebar-nav {
    padding: 16px 12px;
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    justify-content: flex-start;
    font-size: 14px;
    padding: 9px 10px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    white-space: normal;
  }

  .nav-item .nav-icon {
    margin-right: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .nav-item::after {
    display: none;
  }

  .nav-item:hover::after,
  .nav-item:focus-visible::after,
  .nav-item:active::after {
    display: none;
  }

  .nav-section-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 8px 6px;
    margin-bottom: 4px;
  }

  .sidebar-user {
    padding: 14px 0;
    justify-content: center;
  }
  .topbar-menu-dropdown {
    right: auto;
    left: 0;
    top: auto;
    bottom: calc(100% + 8px);
    min-width: min(80vw, 260px);
    width: min(80vw, 260px);
  }
}

@media (max-width: 600px) {
  .sidebar {
    display: block;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel {
    padding: 16px;
  }
  .notification-settings-grid {
    grid-template-columns: 1fr;
  }
  .notification-permission-box {
    align-items: stretch;
    flex-direction: column;
  }
  .notification-permission-actions {
    justify-content: flex-start;
  }
  .student-hero {
    padding: 20px;
  }
  .student-hero-title {
    font-size: 26px;
  }
  .student-hero-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-hero-summary:not(.expanded) .student-summary-extra {
    display: none;
  }
  .student-summary-toggle {
    display: inline-flex;
  }
  .student-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .student-card-progress {
    order: 1;
  }
  .student-card-challenge {
    order: 2;
  }
  .student-card-start {
    order: 3;
  }
  .student-grid-toggle {
    display: inline-flex;
    order: 4;
  }
  .student-grid:not(.expanded) .student-card-plan,
  .student-grid:not(.expanded) .student-card-next,
  .student-grid:not(.expanded) .student-card-leaderboard,
  .student-grid:not(.expanded) .student-card-support {
    display: none;
  }
  .student-grid.expanded .student-card-plan,
  .student-grid.expanded .student-card-next,
  .student-grid.expanded .student-card-leaderboard,
  .student-grid.expanded .student-card-support {
    display: block;
  }
}

@media (max-width: 1100px) {
  .student-hero-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-hero-summary:not(.expanded) .student-summary-extra {
    display: none;
  }

  .student-summary-toggle {
    display: inline-flex;
  }

  .student-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .student-card-progress {
    order: 1;
  }

  .student-card-challenge {
    order: 2;
  }

  .student-card-start {
    order: 3;
  }

  .student-grid-toggle {
    display: inline-flex;
    order: 4;
  }

  .student-grid:not(.expanded) .student-card-plan,
  .student-grid:not(.expanded) .student-card-next,
  .student-grid:not(.expanded) .student-card-leaderboard,
  .student-grid:not(.expanded) .student-card-support {
    display: none;
  }

  .student-grid.expanded .student-card-plan,
  .student-grid.expanded .student-card-next,
  .student-grid.expanded .student-card-leaderboard,
  .student-grid.expanded .student-card-support {
    display: block;
  }
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel.active > * {
  animation: fadeUp 0.3s ease forwards;
}

.panel.active > *:nth-child(2) {
  animation-delay: 0.05s;
}
.panel.active > *:nth-child(3) {
  animation-delay: 0.1s;
}
.panel.active > *:nth-child(4) {
  animation-delay: 0.15s;
}

.welcome-hero,
.student-hero,
.academy-hero,
.skills-hero,
.academy-kpi,
.skills-kpi,
.course-shell-switcher,
.course-shell-group,
.course-shell-switch,
.course-shell-lesson,
.waec-past-item {
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition),
    background var(--transition-slow);
}

.academy-kpi:hover,
.skills-kpi:hover,
.course-shell-switch:hover,
.course-shell-group:hover,
.waec-past-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.course-shell-lesson:hover {
  transform: translateX(3px);
}

.course-shell-lesson.active,
.course-shell-switch.active {
  animation: softSelect 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.academy-kpi-value,
.skills-kpi-value,
.stat-value,
.quiz-results-score {
  animation: settlePop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.course-shell-progress-fill,
#overall-progress,
#lesson-progress-fill {
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -10px, 0) scale(1.03);
  }
}

@keyframes handlePulse {
  0%,
  100% {
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.18);
  }
  50% {
    box-shadow: 2px 8px 26px rgba(60, 52, 137, 0.28);
  }
}

@keyframes softSelect {
  0% {
    transform: scale(0.988);
  }
  60% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes settlePop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body::before,
  .sidebar-open-handle,
  .live-dot,
  .card::after {
    animation: none !important;
  }
}

/* ===== Academy Overview Merge ===== */
.academy-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 24px;
  margin-bottom: 16px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(127, 119, 221, 0.18),
      transparent 44%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(15, 110, 86, 0.14),
      transparent 40%
    ),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: var(--shadow-premium);
}

.academy-hero-main h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--brand-950);
  margin: 12px 0 10px;
}

.academy-hero-main p {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 60ch;
  line-height: 1.75;
}

.academy-hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.academy-disclaimer {
  margin-top: 14px;
  max-width: 62ch;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(186, 117, 23, 0.18);
  background:
    linear-gradient(180deg, rgba(250, 238, 218, 0.92), rgba(255, 246, 231, 0.96));
  font-size: 13px;
  color: var(--amber-600);
  box-shadow: 0 8px 18px rgba(186, 117, 23, 0.08);
}

.academy-disclaimer strong {
  color: var(--amber-600);
}

.academy-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.academy-hero-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.academy-kpi {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.96));
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.academy-kpi-label {
  font-size: 12px;
  color: var(--gray-400);
}

.academy-kpi-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--brand-800);
  margin-top: 4px;
}

.skills-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.8fr);
  gap: 18px;
  padding: 24px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 95% 0%, rgba(59, 122, 209, 0.14), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(29, 158, 117, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: var(--shadow-premium);
}

.skills-hero-main {
  display: grid;
  gap: 14px;
}

.skills-hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-hero h2 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--brand-950);
}

.skills-hero p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 58ch;
}

.skills-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skills-hero-point {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 83, 143, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.skills-hero-point strong {
  font-size: 14px;
  color: var(--gray-900);
}

.skills-hero-point span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-600);
}

.skills-hero-side {
  display: grid;
  gap: 10px;
}

.skills-kpi {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 83, 143, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.96));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.skills-kpi-label {
  font-size: 12px;
  color: var(--gray-400);
}

.skills-kpi-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-800);
}

.academy-copy p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.academy-copy p:last-child {
  margin-bottom: 0;
}

.academy-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}

.academy-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--gray-600);
}

.academy-checklist li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-600);
  font-weight: 700;
}

.footer-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray-400);
}

.alpha-track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.alpha-track-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
  background: linear-gradient(160deg, #fff 0%, var(--gray-50) 100%);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.alpha-track-card:hover {
  border-color: var(--purple-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.alpha-track-card h3 {
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.alpha-track-card p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.mentor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mentor-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px;
  background: #fff;
}

.mentor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-800);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mentor-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

.mentor-role {
  font-size: 11px;
  color: var(--gray-400);
}

.testimonial-stack {
  display: grid;
  gap: 10px;
}

.testimonial-stack blockquote {
  margin: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: var(--gray-600);
  background: #fff;
}

.testimonial-stack cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  color: var(--gray-400);
}

@media (max-width: 1100px) {
  .academy-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .alpha-track-grid {
    grid-template-columns: 1fr;
  }
  .mentor-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== WAEC Academy ===== */
.waec-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 18px;
  transition: grid-template-columns var(--transition);
}

.waec-sidebar-card {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.waec-main-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.waec-layout.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.waec-layout.sidebar-collapsed .waec-sidebar-card {
  display: none;
}

.waec-sidebar-body,
.ms-sidebar-body {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 4px;
}

.course-shell-sidebar {
  display: grid;
  gap: 14px;
}

.course-shell-header {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.98));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.course-shell-back {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.course-shell-header h3 {
  margin: 0;
  font-size: 24px;
  color: var(--brand-950);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.course-shell-header p {
  margin: 0;
  font-size: 12px;
  color: var(--gray-400);
}

.course-shell-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(36, 83, 143, 0.1);
  overflow: hidden;
}

.course-shell-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-400), var(--teal-400));
}

.course-shell-progress-text {
  font-size: 11px;
  color: var(--gray-400);
}

.course-shell-switcher {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(36, 83, 143, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 255, 0.82);
}

.course-shell-switcher-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-shell-switcher-list {
  display: grid;
  gap: 8px;
}

.course-shell-switch {
  width: 100%;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.course-shell-switch strong {
  font-size: 13px;
  color: var(--gray-900);
}

.course-shell-switch span {
  font-size: 11px;
  color: var(--gray-400);
}

.course-shell-switch.active {
  border-color: var(--purple-400);
  background:
    linear-gradient(180deg, rgba(238, 237, 254, 0.95), rgba(246, 244, 255, 0.98));
  box-shadow: 0 10px 22px rgba(60, 52, 137, 0.09);
}

.course-shell-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 119, 221, 0.34);
}

.course-shell-groups {
  display: grid;
  gap: 10px;
}

.course-shell-group {
  display: grid;
  gap: 6px;
}

.course-shell-group-head {
  width: 100%;
  border: none;
  background: transparent;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 6px 0;
}

.course-shell-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  margin-top: 2px;
}

.course-shell-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-shell-group-meta {
  font-size: 11px;
  color: var(--gray-400);
}

.course-shell-lesson-list {
  display: grid;
  gap: 4px;
}

.course-shell-lesson {
  width: 100%;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: transparent;
  padding: 10px 10px 10px 12px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--gray-600);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.course-shell-lesson:hover {
  background: rgba(248, 250, 255, 0.9);
  border-color: rgba(36, 83, 143, 0.08);
  transform: translateX(2px);
}

.course-shell-lesson.active {
  background:
    linear-gradient(180deg, rgba(238, 237, 254, 0.95), rgba(246, 244, 255, 0.98));
  color: var(--purple-800);
  border-left-color: var(--purple-400);
  border-color: rgba(127, 119, 221, 0.18);
  box-shadow: 0 10px 20px rgba(60, 52, 137, 0.06);
}

.course-shell-lesson.done .course-shell-lesson-num {
  background: var(--teal-500);
  color: #fff;
  border-color: var(--teal-500);
}

.course-shell-lesson-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(36, 83, 143, 0.12);
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
}

.course-shell-lesson-name {
  font-size: 13px;
  line-height: 1.35;
}

.course-shell-lesson-time {
  font-size: 11px;
  color: var(--gray-400);
}

.course-shell-module-status {
  font-size: 11px;
  color: var(--gray-400);
  padding: 4px 0 0 35px;
}

.course-shell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.course-shell-stage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.course-shell-stage-tab {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-600);
  text-align: left;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.course-shell-stage-tab:hover {
  border-color: rgba(127, 119, 221, 0.26);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.course-shell-stage-tab.active {
  border-color: var(--purple-400);
  background:
    linear-gradient(180deg, rgba(238, 237, 254, 0.95), rgba(246, 244, 255, 0.98));
  color: var(--purple-800);
}

.course-shell-stage-tab.locked,
.course-shell-group.locked .course-shell-group-head,
.course-shell-lesson.locked {
  opacity: 0.6;
}

.course-shell-stage-tab.locked:hover,
.course-shell-group.locked .course-shell-group-head:hover,
.course-shell-lesson.locked:hover {
  transform: none;
  border-color: var(--gray-200);
  box-shadow: none;
}

.course-shell-stage-tab span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-shell-stage-tab strong {
  font-size: 11px;
  color: inherit;
}

.course-shell-breadcrumb {
  font-size: 13px;
  color: var(--gray-400);
}

.course-shell-breadcrumb span {
  margin: 0 6px;
}

.course-shell-current {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-950);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.course-shell-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.course-shell-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

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

.waec-course-item,
.waec-module-item {
  width: 100%;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  padding: 14px;
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.waec-course-item:hover,
.waec-module-item:hover {
  border-color: var(--purple-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.waec-course-item.active,
.waec-module-item.active {
  border-color: var(--purple-400);
  box-shadow: 0 14px 28px rgba(60, 52, 137, 0.08);
}

.waec-course-item strong,
.waec-module-item strong {
  font-size: 13px;
  color: var(--gray-900);
}

.waec-course-item span,
.waec-module-item span {
  font-size: 12px;
  color: var(--gray-600);
}

.waec-item-progress {
  color: var(--purple-800) !important;
  font-weight: 600;
}

.waec-details-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.waec-details-head h3 {
  margin: 10px 0 0;
  color: var(--gray-900);
  font-size: 24px;
}

.waec-progress-bar {
  height: 7px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.waec-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-400), var(--purple-400));
}

.waec-progress-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-400);
}

.waec-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.waec-lesson-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.waec-lesson-head h4 {
  margin: 8px 0 0;
  color: var(--gray-900);
  font-size: 18px;
}

.waec-lesson-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.waec-objective {
  margin-bottom: 10px;
  color: var(--gray-600);
  font-size: 13px;
}

.waec-assessment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.waec-assessment-head h4 {
  margin: 0;
  font-size: 16px;
  color: var(--gray-900);
}

.waec-assessment-form {
  display: grid;
  gap: 10px;
}

.waec-question {
  margin: 0;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.waec-question legend {
  font-size: 12px;
  color: var(--gray-600);
  padding: 0 4px;
}

.waec-question label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.waec-quiz-review-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}

.waec-quiz-review-summary.passed {
  background: var(--teal-50);
  color: var(--teal-800);
  border: 1px solid rgba(15, 110, 86, 0.18);
}

.waec-quiz-review-summary.needs-review {
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid rgba(163, 45, 45, 0.18);
}

.waec-review-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.waec-review-option.correct {
  border-color: rgba(15, 110, 86, 0.35);
  background: var(--teal-50);
  color: var(--teal-800);
}

.waec-review-option.wrong {
  border-color: rgba(163, 45, 45, 0.35);
  background: var(--red-50);
  color: var(--red-600);
}

.waec-review-option strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.waec-question-feedback {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}

.waec-question-feedback.correct {
  background: rgba(225, 245, 238, 0.72);
  color: var(--teal-800);
}

.waec-question-feedback.wrong {
  background: rgba(252, 235, 235, 0.72);
  color: var(--red-600);
}

.waec-year-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.waec-year-tab {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.waec-year-tab.active {
  border-color: var(--purple-400);
  color: var(--purple-800);
  background: var(--purple-50);
}

.waec-past-list {
  display: grid;
  gap: 12px;
}

.waec-past-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.waec-past-prompt {
  font-size: 14px;
  color: var(--gray-900);
  line-height: 1.75;
  margin: 8px 0 10px;
}

.waec-past-meta {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.65;
  margin: 0 0 10px;
}

.practice-question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.practice-question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--purple-50);
  color: var(--purple-800);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.practice-question-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-align: right;
}

.practice-answer-guide,
.practice-answer-key {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 158, 117, 0.16);
  background: rgba(236, 253, 245, 0.7);
}

.practice-answer-guide strong,
.practice-answer-key strong {
  font-size: 12px;
  color: var(--teal-700);
}

.practice-answer-guide span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-700);
}

.practice-option-list {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
}

.practice-option-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid rgba(36, 83, 143, 0.1);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.84);
}

.practice-option-list li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.practice-option-list p {
  margin: 0;
  color: var(--gray-700);
  font-size: 13px;
  line-height: 1.65;
}

.practice-option-list li.is-correct {
  border-color: rgba(29, 158, 117, 0.28);
  background: rgba(236, 253, 245, 0.78);
}

.practice-option-list li.is-correct > span {
  background: var(--teal-600);
  color: #fff;
}

.waec-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.waec-summary-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 2px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.waec-summary-item strong {
  font-size: 20px;
  color: var(--purple-800);
}

.waec-summary-item span {
  font-size: 12px;
  color: var(--gray-600);
}

.waec-cert-card {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.waec-cert-card h4 {
  margin: 0;
  font-size: 16px;
  color: var(--gray-900);
}

.waec-cert-card p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
}

@media (max-width: 1200px) {
  .waec-layout {
    grid-template-columns: 1fr;
  }

  .waec-sidebar-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .waec-module-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #school-ministry-demo-pack,
  #school-ministry-demo-pack * {
    visibility: visible;
  }
  #school-ministry-demo-pack {
    position: absolute;
    inset: 0;
    box-shadow: none;
    border: 0;
  }
  #school-ministry-demo-pack .btn {
    display: none;
  }
}

@media (max-width: 700px) {
  .waec-summary-grid {
    grid-template-columns: 1fr;
  }

  .waec-lesson-head,
  .waec-details-head {
    flex-direction: column;
  }
}

/* ===== Modern Skills Studio ===== */
.ms-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 18px;
  transition: grid-template-columns var(--transition);
}

.ms-sidebar-card {
  position: sticky;
  top: 88px;
  align-self: start;
  box-shadow: var(--shadow-premium);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.ms-layout.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.ms-layout.sidebar-collapsed .ms-sidebar-card {
  display: none;
}

.course-shell-group.locked .course-shell-group-meta,
.course-shell-lesson.locked .course-shell-lesson-time,
.course-shell-stage-tab.locked strong {
  color: var(--gray-400);
}

.ms-main-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.ms-tier-label {
  margin: 10px 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-400);
}

.ms-course-item,
.ms-stage-item {
  width: 100%;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  padding: 14px;
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.ms-course-item:hover,
.ms-stage-item:hover {
  border-color: var(--purple-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.ms-course-item.active,
.ms-stage-item.active {
  border-color: var(--purple-400);
  box-shadow: 0 14px 28px rgba(60, 52, 137, 0.08);
}

.ms-course-item strong,
.ms-stage-item strong {
  font-size: 13px;
  color: var(--gray-900);
}

.ms-course-item span,
.ms-stage-item span {
  font-size: 12px;
  color: var(--gray-600);
}

.ms-course-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ms-course-badges em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-800);
  border: 1px solid rgba(127, 119, 221, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(238, 237, 254, 0.92);
}

.ms-progress-text {
  color: var(--teal-600) !important;
  font-weight: 600;
}

.ms-details-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.ms-details-head h3 {
  margin: 10px 0 0;
  color: var(--brand-950);
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.ms-progress-bar {
  height: 8px;
  background: rgba(36, 83, 143, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.ms-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-400), var(--teal-400));
}

.ms-progress-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-400);
}

.ms-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ms-lesson-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.ms-lesson-head h4 {
  margin: 8px 0 0;
  font-size: 20px;
  color: var(--brand-950);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ms-lesson-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ms-objective {
  margin-bottom: 10px;
  color: var(--gray-600);
  font-size: 13px;
}

.ms-assessment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ms-assessment-head h4 {
  margin: 0;
  font-size: 16px;
  color: var(--gray-900);
}

.ms-assessment-form {
  display: grid;
  gap: 10px;
}

.ms-question {
  margin: 0;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ms-question legend {
  font-size: 12px;
  color: var(--gray-600);
  padding: 0 4px;
}

.ms-question label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.ms-project-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.ms-project-list li {
  font-size: 13px;
  color: var(--gray-600);
}

.ms-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ms-summary-item {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ms-summary-item strong {
  font-size: 20px;
  color: var(--purple-800);
}

.ms-summary-item span {
  font-size: 12px;
  color: var(--gray-600);
}

.ms-cert-card {
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ms-cert-card h4 {
  margin: 0;
  font-size: 16px;
  color: var(--gray-900);
}

.ms-cert-card p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
}

#waec-course-details,
#ms-course-details,
#waec-lesson-view,
#ms-lesson-view,
#waec-lesson-quiz,
#ms-lesson-quiz,
#waec-module-test,
#ms-final-assessment,
#waec-past-questions,
#ms-project-lab,
#waec-progress-summary,
#ms-progress-summary,
#waec-certificate,
#ms-certificate,
#lab-exam-simulator,
#lab-past-bank,
#lab-auto-grade,
#lab-score-history,
#lab-analytics-summary,
#lab-weak-areas,
#lab-essay-history {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

@media (max-width: 1200px) {
  .skills-hero {
    grid-template-columns: 1fr;
  }

  .skills-hero-points {
    grid-template-columns: 1fr;
  }

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

  .ms-sidebar-card {
    position: static;
    max-height: none;
  }

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

  .waec-sidebar-card {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .course-shell-stage-strip {
    grid-template-columns: 1fr;
  }

  .modern-skills-rich-lesson .do-dont {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ms-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .academy-hero,
  .skills-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .ms-summary-grid {
    grid-template-columns: 1fr;
  }

  .ms-details-head,
  .ms-lesson-head,
  .course-shell-topbar {
    flex-direction: column;
  }

  .lab-question-item,
  .waec-question,
  .ms-question,
  .waec-past-item,
  .waec-summary-item,
  .waec-cert-card,
  .ms-summary-item,
  .ms-cert-card {
    padding: 12px;
  }

  .modern-skills-rich-lesson .info-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .modern-skills-rich-lesson .code-block-header,
  .modern-skills-rich-lesson .preview-header,
  .modern-skills-rich-lesson .demo-header {
    flex-wrap: wrap;
  }

  .modern-skills-rich-lesson .preview-body,
  .modern-skills-rich-lesson .demo-body,
  .modern-skills-rich-lesson .code-body,
  .modern-skills-rich-lesson .quiz-block,
  .modern-skills-rich-lesson .worked-example,
  .modern-skills-rich-lesson .exam-tip,
  .modern-skills-rich-lesson .math-box {
    padding-left: 14px;
    padding-right: 14px;
  }

  .modern-skills-rich-lesson .stat-row,
  .modern-skills-rich-lesson .key-points,
  .modern-skills-rich-lesson .channel-grid,
  .modern-skills-rich-lesson .metric-grid,
  .modern-skills-rich-lesson .do-dont {
    grid-template-columns: 1fr;
  }

  .modern-skills-rich-lesson .preview-body[style*="grid-template-columns"] {
    display: block !important;
  }

  .modern-skills-rich-lesson .step-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .academy-hero-main h2,
  .skills-hero h2 {
    font-size: 28px;
  }

  .academy-kpi,
  .skills-kpi {
    padding: 14px;
  }

  .lab-control-actions {
    justify-content: stretch;
  }

  .lab-control-actions .btn,
  .waec-lesson-nav .btn,
  .ms-lesson-nav .btn,
  .course-shell-actions .btn {
    flex: 1 1 100%;
  }

  .course-shell-current {
    font-size: 18px;
  }

  .course-shell-breadcrumb,
  .course-shell-subtitle,
  .waec-objective,
  .ms-objective {
    font-size: 12px;
  }

  .course-shell-stage-tab,
  .course-shell-lesson,
  .waec-course-item,
  .waec-module-item {
    padding: 10px;
  }

  .modern-skills-rich-lesson .section-heading {
    font-size: 16px;
  }

  .modern-skills-rich-lesson .prose,
  .modern-skills-rich-lesson .math-box,
  .modern-skills-rich-lesson .exam-tip-text,
  .modern-skills-rich-lesson .step-text {
    font-size: 13px;
  }

  .modern-skills-rich-lesson .quiz-opt,
  .waec-question label,
  .ms-question label {
    align-items: flex-start;
  }

  .modern-skills-rich-lesson .code-body {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* ===== Resources Directory ===== */
.resources-section {
  margin-bottom: 16px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.resources-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.resources-filter-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

.resources-filter-field input,
.resources-filter-field select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-900);
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.resources-filter-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-400);
}

.resource-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(15, 23, 42, 0.05);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 158, 117, 0.24);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.05),
    0 18px 34px rgba(15, 23, 42, 0.08);
}

.resource-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--purple-50);
  color: var(--purple-800);
  border: 1px solid var(--purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.resource-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.resource-external {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.resource-desc {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.resource-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.resource-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-600);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  padding: 3px 8px;
}

@media (max-width: 1200px) {
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .resources-filter-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Light / Dark Theme ===== */
:root[data-theme="dark"] {
  --brand-950: #f4f8ff;
  --brand-900: #dbe8ff;
  --brand-800: #bfd5ff;
  --brand-700: #9fc1f5;
  --brand-500: #6ea3ee;
  --brand-100: #1b2d4a;

  --purple-50: #1a2236;
  --purple-100: #2b3552;
  --purple-200: #3c4971;
  --purple-400: #7f90d8;
  --purple-600: #9aa8ef;
  --purple-800: #c0c9ff;
  --purple-900: #e5e9ff;

  --teal-50: #122724;
  --teal-100: #21403c;
  --teal-400: #4abf97;
  --teal-600: #7adfbe;
  --teal-800: #9df2d5;

  --amber-50: #2e2414;
  --amber-100: #5a4522;
  --amber-400: #e3b15d;
  --amber-600: #f6cb81;

  --coral-50: #32231f;
  --coral-400: #e08264;
  --coral-600: #f0a28a;

  --green-50: #1d2b1c;
  --green-600: #90d58b;

  --red-50: #351f1f;
  --red-400: #ee8b8a;
  --red-600: #ffb0ad;

  --gray-50: #0b1220;
  --gray-100: #111a2c;
  --gray-200: #223049;
  --gray-400: #9ca9be;
  --gray-600: #d5e1f4;
  --gray-900: #f4f8ff;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-lift: 0 6px 18px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .question-card,
:root[data-theme="dark"] .flag-card,
:root[data-theme="dark"] .instructor-profile-card,
:root[data-theme="dark"] .certificate-wrapper,
:root[data-theme="dark"] .academy-kpi,
:root[data-theme="dark"] .mentor-card,
:root[data-theme="dark"] .testimonial-stack blockquote,
:root[data-theme="dark"] .alpha-track-card,
:root[data-theme="dark"] .option-item,
:root[data-theme="dark"] .achievement-card,
:root[data-theme="dark"] .achievement-card.locked,
:root[data-theme="dark"] .event-item,
:root[data-theme="dark"] .event-reminder-item,
:root[data-theme="dark"] .course-thumb,
:root[data-theme="dark"] .notify-bar,
:root[data-theme="dark"] .integrity-score-ring,
:root[data-theme="dark"] .live-banner,
:root[data-theme="dark"] .topbar-search,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .waec-course-item,
:root[data-theme="dark"] .waec-module-item,
:root[data-theme="dark"] .waec-question,
:root[data-theme="dark"] .waec-year-tab,
:root[data-theme="dark"] .waec-past-item,
:root[data-theme="dark"] .waec-summary-item,
:root[data-theme="dark"] .waec-cert-card,
:root[data-theme="dark"] .ms-course-item,
:root[data-theme="dark"] .ms-stage-item,
:root[data-theme="dark"] .ms-question,
:root[data-theme="dark"] .ms-summary-item,
:root[data-theme="dark"] .ms-cert-card,
:root[data-theme="dark"] .resource-card,
:root[data-theme="dark"] .quiz-selection-summary,
:root[data-theme="dark"] .quiz-leaderboard-group,
:root[data-theme="dark"] .option-item {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .theme-toggle {
  color: var(--gray-900);
}

:root[data-theme="dark"] .section-header,
:root[data-theme="dark"] .lab-controls-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 154, 215, 0.1), transparent 26%),
    linear-gradient(145deg, rgba(18, 28, 48, 0.98), rgba(11, 18, 32, 0.95));
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .section-title {
  color: var(--gray-900);
}

:root[data-theme="dark"] .lab-timer {
  background:
    linear-gradient(180deg, rgba(34, 48, 73, 0.92), rgba(17, 26, 44, 0.96));
  border-color: var(--gray-200);
  color: var(--gray-900);
}

:root[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--purple-400);
  color: var(--purple-900);
}

:root[data-theme="dark"] .page-footer {
  background: rgba(4, 8, 19, 0.78);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

:root[data-theme="dark"] .footer-title {
  color: #9fb1d8;
}

:root[data-theme="dark"] .footer-meta {
  color: #c4d0eb;
}

:root[data-theme="dark"] .page-footer .btn {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-900);
}

:root[data-theme="dark"] .pill-whatsapp {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.26);
  color: #8bf1b2;
}

:root[data-theme="dark"] .pill-whatsapp:hover,
:root[data-theme="dark"] .pill-whatsapp:focus-visible {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.36);
  color: #c9fddd;
}

:root[data-theme="dark"] .assistant-feature,
:root[data-theme="dark"] .assistant-page-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(12, 31, 35, 0.94));
  border-color: rgba(37, 211, 102, 0.2);
}

:root[data-theme="dark"] .assistant-feature h2,
:root[data-theme="dark"] .assistant-page-hero h2 {
  color: #f8fafc;
}

:root[data-theme="dark"] .assistant-feature p,
:root[data-theme="dark"] .assistant-page-hero p,
:root[data-theme="dark"] .student-assistant-card-body p {
  color: var(--gray-600);
}

:root[data-theme="dark"] .assistant-qr-card,
:root[data-theme="dark"] .assistant-capability-grid div,
:root[data-theme="dark"] .assistant-sync-list div,
:root[data-theme="dark"] .assistant-link-note {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(37, 211, 102, 0.18);
}

:root[data-theme="dark"] .assistant-qr-card strong,
:root[data-theme="dark"] .assistant-capability-grid strong,
:root[data-theme="dark"] .assistant-sync-list strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .assistant-qr-frame,
:root[data-theme="dark"] .assistant-link-qr-frame {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .whatsapp-assistant-fab {
  border-color: rgba(154, 255, 196, 0.28);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(37, 211, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .whatsapp-assistant-icon {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(220, 252, 231, 0.82)),
    #dcfce7;
}

:root[data-theme="dark"] .cert-signature-mark {
  background: rgba(170, 182, 255, 0.12) !important;
  border: 1px solid rgba(170, 182, 255, 0.24) !important;
  box-shadow: 0 10px 22px rgba(3, 8, 24, 0.36) !important;
}

:root[data-theme="dark"] .cert-signature-script {
  color: #ffffff !important;
}

:root[data-theme="dark"] .certificate-wrapper::before {
  opacity: 0.07;
}

:root[data-theme="dark"] body {
  background: var(--gray-50);
  color: var(--gray-900);
}

:root[data-theme="dark"] .app-shell,
:root[data-theme="dark"] .main-content,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .panel-header,
:root[data-theme="dark"] .section-header,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .resource-card,
:root[data-theme="dark"] .course-card,
:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .theme-toggle {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .topbar {
  background: rgba(17, 26, 44, 0.88);
  border-bottom-color: rgba(61, 78, 110, 0.86);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .card-header {
  background:
    linear-gradient(180deg, rgba(28, 39, 61, 0.96), rgba(17, 26, 44, 0.98));
  border-bottom-color: rgba(61, 78, 110, 0.72);
}

:root[data-theme="dark"] .card-title {
  color: var(--gray-900);
}

:root[data-theme="dark"] .card:hover,
:root[data-theme="dark"] .stat-card:hover,
:root[data-theme="dark"] .resource-card:hover,
:root[data-theme="dark"] .iam-metric-card:hover {
  border-color: rgba(127, 144, 216, 0.34);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.22),
    0 18px 34px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .theme-toggle-dot {
  background: var(--purple-900);
  box-shadow: 0 0 0 3px rgba(229, 233, 255, 0.12);
}

:root[data-theme="dark"] .lab-question-item,
:root[data-theme="dark"] .lab-past-item,
:root[data-theme="dark"] .practice-option-list li,
:root[data-theme="dark"] .practice-answer-guide,
:root[data-theme="dark"] .practice-answer-key,
:root[data-theme="dark"] .lab-explanation-item,
:root[data-theme="dark"] .lab-essay-prompt-preview,
:root[data-theme="dark"] .lab-essay-item,
:root[data-theme="dark"] .lab-history-item,
:root[data-theme="dark"] .lab-analytics-item,
:root[data-theme="dark"] .lab-weak-item,
:root[data-theme="dark"] .lesson-block,
:root[data-theme="dark"] .lesson-code-card,
:root[data-theme="dark"] .lesson-code-head,
:root[data-theme="dark"] .lesson-code-pre,
:root[data-theme="dark"] .lab-control-field select,
:root[data-theme="dark"] .lab-control-field textarea,
:root[data-theme="dark"] .resources-filter-field input,
:root[data-theme="dark"] .resources-filter-field select,
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .lab-empty {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .practice-answer-guide,
:root[data-theme="dark"] .practice-answer-key,
:root[data-theme="dark"] .practice-option-list li.is-correct {
  background: rgba(24, 88, 72, 0.28);
  border-color: rgba(74, 191, 151, 0.28);
}

:root[data-theme="dark"] .practice-question-number {
  background: rgba(170, 182, 255, 0.14);
  color: #dfe5ff;
}

:root[data-theme="dark"] .practice-question-meta,
:root[data-theme="dark"] .waec-past-meta,
:root[data-theme="dark"] .practice-option-list p,
:root[data-theme="dark"] .practice-answer-guide span,
:root[data-theme="dark"] .practice-answer-key .lesson-key-list li {
  color: var(--gray-600);
}

:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea {
  color: var(--gray-900);
}

:root[data-theme="dark"] .lesson-code-head strong,
:root[data-theme="dark"] .lesson-code-pre {
  color: var(--gray-900);
}

:root[data-theme="dark"] .student-hero {
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(74, 191, 151, 0.12),
      transparent 45%
    ),
    radial-gradient(
      circle at 88% 100%,
      rgba(227, 177, 93, 0.18),
      transparent 40%
    ),
    var(--gray-100);
}

:root[data-theme="dark"] .welcome-public-hero::before {
  background:
    linear-gradient(120deg, rgba(122, 154, 215, 0.08), transparent 34%),
    linear-gradient(300deg, rgba(212, 166, 58, 0.08), transparent 34%);
}

:root[data-theme="dark"] .live-banner {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(74, 191, 151, 0.18), transparent 28%),
    linear-gradient(135deg, #17203a 0%, #24335d 54%, #133440 100%);
  background-color: #17203a;
  border-color: rgba(127, 144, 216, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .live-event-meta,
:root[data-theme="dark"] .cd-label {
  color: #d5e1f4;
}

:root[data-theme="dark"] .student-summary-card,
:root[data-theme="dark"] .student-list-item,
:root[data-theme="dark"] .student-metric {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .welcome-proof-item,
:root[data-theme="dark"] .welcome-side-card,
:root[data-theme="dark"] .welcome-metric-card,
:root[data-theme="dark"] .welcome-next-step,
:root[data-theme="dark"] .public-review-card,
:root[data-theme="dark"] .pilot-task,
:root[data-theme="dark"] .impact-preview-grid > div,
:root[data-theme="dark"] .demo-pack-grid > article,
:root[data-theme="dark"] .demo-pack-strip > div,
:root[data-theme="dark"] .academy-kpi,
:root[data-theme="dark"] .skills-kpi,
:root[data-theme="dark"] .course-shell-header,
:root[data-theme="dark"] .course-shell-switcher {
  background:
    linear-gradient(180deg, rgba(17, 26, 44, 0.92), rgba(11, 18, 32, 0.88));
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .welcome-side-title,
:root[data-theme="dark"] .welcome-metric-value,
:root[data-theme="dark"] .welcome-proof-item strong,
:root[data-theme="dark"] .public-review-head strong,
:root[data-theme="dark"] .welcome-title,
:root[data-theme="dark"] .demo-pack-header h2,
:root[data-theme="dark"] .demo-pack-grid h3,
:root[data-theme="dark"] .impact-preview-grid strong,
:root[data-theme="dark"] .demo-pack-strip strong,
:root[data-theme="dark"] .dashboard-continue-kicker,
:root[data-theme="dark"] .academy-hero-main h2,
:root[data-theme="dark"] .skills-hero h2,
:root[data-theme="dark"] .skills-kpi-value {
  color: var(--gray-900);
}

:root[data-theme="dark"] .welcome-proof-item span:last-child,
:root[data-theme="dark"] .welcome-side-list span,
:root[data-theme="dark"] .welcome-metric-label,
:root[data-theme="dark"] .public-review-head span,
:root[data-theme="dark"] .demo-pack-header p,
:root[data-theme="dark"] .demo-pack-grid p,
:root[data-theme="dark"] .impact-preview-grid span,
:root[data-theme="dark"] .demo-pack-strip span {
  color: var(--gray-400);
}

:root[data-theme="dark"] .dashboard-secondary-details,
:root[data-theme="dark"] .dashboard-secondary-summary,
:root[data-theme="dark"] .dashboard-subcard {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .dashboard-secondary-summary {
  background:
    linear-gradient(180deg, rgba(34, 48, 73, 0.88), rgba(17, 26, 44, 0.96));
}

:root[data-theme="dark"] .dashboard-secondary-kicker {
  color: var(--gray-400);
}

:root[data-theme="dark"] .dashboard-secondary-title {
  color: var(--gray-900);
}

:root[data-theme="dark"] .dashboard-secondary-trigger {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gray-200);
  color: var(--gray-900);
}

:root[data-theme="dark"] .auth-card {
  background:
    radial-gradient(circle at top right, rgba(127, 144, 216, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(17, 26, 44, 0.98), rgba(11, 18, 32, 0.95));
}

:root[data-theme="dark"] .auth-choice-card,
:root[data-theme="dark"] .student-auth-steps div {
  background: rgba(17, 38, 52, 0.72);
  border-color: rgba(65, 201, 161, 0.2);
}

:root[data-theme="dark"] .student-auth-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(65, 201, 161, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(18, 28, 48, 0.98), rgba(11, 18, 32, 0.95));
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .student-auth-hero h2,
:root[data-theme="dark"] .auth-choice-card strong {
  color: var(--gray-900);
}

:root[data-theme="dark"] .student-auth-hero p,
:root[data-theme="dark"] .auth-choice-card span,
:root[data-theme="dark"] .auth-card-intro,
:root[data-theme="dark"] .student-auth-steps span {
  color: var(--gray-300);
}

:root[data-theme="dark"] .resource-card {
  background:
    linear-gradient(180deg, rgba(17, 26, 44, 0.98), rgba(11, 18, 32, 0.95));
}

:root[data-theme="dark"] .iam-metric-card,
:root[data-theme="dark"] .content-item,
:root[data-theme="dark"] .ops-health-item {
  background:
    linear-gradient(180deg, rgba(17, 26, 44, 0.98), rgba(11, 18, 32, 0.95));
}

:root[data-theme="dark"] .student-progress-bar {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .stat-icon {
  background:
    linear-gradient(180deg, rgba(34, 48, 73, 0.92), rgba(17, 26, 44, 0.96));
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .academy-hero,
:root[data-theme="dark"] .skills-hero {
  background:
    radial-gradient(circle at 95% 0%, rgba(122, 154, 215, 0.12), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(74, 191, 151, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(18, 28, 48, 0.98), rgba(11, 18, 32, 0.95));
}

:root[data-theme="dark"] .course-shell-switch,
:root[data-theme="dark"] .waec-course-item,
:root[data-theme="dark"] .waec-module-item,
:root[data-theme="dark"] .ms-course-item,
:root[data-theme="dark"] .ms-stage-item,
:root[data-theme="dark"] .course-shell-stage-tab,
:root[data-theme="dark"] .course-shell-lesson {
  background: rgba(17, 26, 44, 0.9);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .course-shell-switch,
:root[data-theme="dark"] .course-shell-lesson,
:root[data-theme="dark"] .course-shell-lesson-num,
:root[data-theme="dark"] .course-shell-progress,
:root[data-theme="dark"] .course-shell-stage-tab,
:root[data-theme="dark"] .waec-review-option,
:root[data-theme="dark"] .modern-skills-rich-lesson .stat-card,
:root[data-theme="dark"] .modern-skills-rich-lesson .key-point,
:root[data-theme="dark"] .modern-skills-rich-lesson .channel-card,
:root[data-theme="dark"] .modern-skills-rich-lesson .metric-card,
:root[data-theme="dark"] .modern-skills-rich-lesson .quiz-block,
:root[data-theme="dark"] .modern-skills-rich-lesson .demo-block,
:root[data-theme="dark"] .modern-skills-rich-lesson .demo-body,
:root[data-theme="dark"] .modern-skills-rich-lesson .preview-box,
:root[data-theme="dark"] .modern-skills-rich-lesson .preview-body,
:root[data-theme="dark"] .modern-skills-rich-lesson .worked-example,
:root[data-theme="dark"] .modern-skills-rich-lesson .exam-tip,
:root[data-theme="dark"] .modern-skills-rich-lesson .step-item,
:root[data-theme="dark"] .modern-skills-rich-lesson .try-it textarea,
:root[data-theme="dark"] .modern-skills-rich-lesson .try-result,
:root[data-theme="dark"] .modern-skills-rich-lesson .schema-box,
:root[data-theme="dark"] .modern-skills-rich-lesson .result-table,
:root[data-theme="dark"] .modern-skills-rich-lesson .do-box,
:root[data-theme="dark"] .modern-skills-rich-lesson .dont-box,
:root[data-theme="dark"] .modern-skills-rich-lesson .quiz-opt {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .course-shell-switch.active,
:root[data-theme="dark"] .course-shell-lesson.active,
:root[data-theme="dark"] .course-shell-stage-tab.active {
  background: rgba(127, 119, 221, 0.18);
  border-color: rgba(127, 119, 221, 0.35);
}

:root[data-theme="dark"] .waec-quiz-review-summary.passed,
:root[data-theme="dark"] .waec-review-option.correct,
:root[data-theme="dark"] .waec-question-feedback.correct {
  background: rgba(29, 158, 117, 0.16);
  color: #9fe1cb;
  border-color: rgba(159, 225, 203, 0.28);
}

:root[data-theme="dark"] .waec-quiz-review-summary.needs-review,
:root[data-theme="dark"] .waec-review-option.wrong,
:root[data-theme="dark"] .waec-question-feedback.wrong {
  background: rgba(226, 75, 74, 0.14);
  color: #f5aaa5;
  border-color: rgba(245, 170, 165, 0.28);
}

:root[data-theme="dark"] .course-shell-header,
:root[data-theme="dark"] .course-shell-switch strong,
:root[data-theme="dark"] .course-shell-current,
:root[data-theme="dark"] .course-shell-header h3,
:root[data-theme="dark"] .waec-details-head h3,
:root[data-theme="dark"] .ms-details-head h3,
:root[data-theme="dark"] .waec-lesson-head h4,
:root[data-theme="dark"] .ms-lesson-head h4,
:root[data-theme="dark"] .waec-project-head h5,
:root[data-theme="dark"] .waec-project-meta-grid strong,
:root[data-theme="dark"] .waec-project-list-grid h6,
:root[data-theme="dark"] .modern-skills-rich-lesson,
:root[data-theme="dark"] .modern-skills-rich-lesson .section-heading,
:root[data-theme="dark"] .modern-skills-rich-lesson .prose strong,
:root[data-theme="dark"] .modern-skills-rich-lesson .kp-title,
:root[data-theme="dark"] .modern-skills-rich-lesson .channel-name,
:root[data-theme="dark"] .modern-skills-rich-lesson .quiz-q,
:root[data-theme="dark"] .modern-skills-rich-lesson .schema-col-name {
  color: var(--gray-900);
}

:root[data-theme="dark"] .course-shell-back,
:root[data-theme="dark"] .course-shell-header p,
:root[data-theme="dark"] .course-shell-progress-text,
:root[data-theme="dark"] .course-shell-group-title,
:root[data-theme="dark"] .course-shell-group-meta,
:root[data-theme="dark"] .course-shell-lesson-time,
:root[data-theme="dark"] .course-shell-module-status,
:root[data-theme="dark"] .course-shell-breadcrumb,
:root[data-theme="dark"] .course-shell-subtitle,
:root[data-theme="dark"] .course-shell-switch span,
:root[data-theme="dark"] .waec-project-intro,
:root[data-theme="dark"] .waec-project-help,
:root[data-theme="dark"] .waec-project-objective p,
:root[data-theme="dark"] .waec-project-list-grid ol,
:root[data-theme="dark"] .waec-project-list-grid ul,
:root[data-theme="dark"] .modern-skills-rich-lesson .prose,
:root[data-theme="dark"] .modern-skills-rich-lesson .stat-label,
:root[data-theme="dark"] .modern-skills-rich-lesson .metric-name,
:root[data-theme="dark"] .modern-skills-rich-lesson .metric-formula,
:root[data-theme="dark"] .modern-skills-rich-lesson .kp-text,
:root[data-theme="dark"] .modern-skills-rich-lesson .channel-desc,
:root[data-theme="dark"] .modern-skills-rich-lesson .info-table td,
:root[data-theme="dark"] .modern-skills-rich-lesson .result-table td,
:root[data-theme="dark"] .modern-skills-rich-lesson .step-text,
:root[data-theme="dark"] .modern-skills-rich-lesson .exam-tip-text,
:root[data-theme="dark"] .modern-skills-rich-lesson .schema-col-type,
:root[data-theme="dark"] .modern-skills-rich-lesson .do-dont-text,
:root[data-theme="dark"] .modern-skills-rich-lesson .try-result,
:root[data-theme="dark"] .modern-skills-rich-lesson .quiz-opt {
  color: var(--gray-400);
}

:root[data-theme="dark"] .modern-skills-rich-lesson .try-result {
  background: var(--gray-100) !important;
  border-color: var(--gray-200) !important;
  color: var(--gray-900) !important;
}

:root[data-theme="dark"] .modern-skills-rich-lesson .try-result-empty {
  color: var(--gray-500);
}

:root[data-theme="dark"] .modern-skills-rich-lesson .concept-box,
:root[data-theme="dark"] .modern-skills-rich-lesson .demo-header,
:root[data-theme="dark"] .modern-skills-rich-lesson .preview-header,
:root[data-theme="dark"] .modern-skills-rich-lesson .math-box,
:root[data-theme="dark"] .modern-skills-rich-lesson .result-table th,
:root[data-theme="dark"] .modern-skills-rich-lesson .info-table th {
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .waec-project-card {
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.96), rgba(12, 19, 34, 0.94));
  border-color: rgba(131, 155, 222, 0.22);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .waec-project-meta-grid article,
:root[data-theme="dark"] .waec-project-objective,
:root[data-theme="dark"] .waec-project-list-grid article {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(131, 155, 222, 0.18);
}

:root[data-theme="dark"] .skills-hero-point {
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.96), rgba(12, 19, 34, 0.9));
  border-color: rgba(131, 155, 222, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .skills-hero-point strong {
  color: var(--gray-900);
}

:root[data-theme="dark"] .skills-hero-point span {
  color: var(--gray-400);
}

:root[data-theme="dark"] .student-challenge p {
  color: var(--gray-400);
}

:root[data-theme="dark"] .hero-actions-dropdown {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .hero-actions-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .student-accordion summary {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-400);
}

:root[data-theme="dark"] .feedback-optional summary {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-400);
}

:root[data-theme="dark"] .leaderboard-row {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-400);
}

:root[data-theme="dark"] .leaderboard-row.highlight {
  background: rgba(127, 119, 221, 0.2);
  border-color: rgba(127, 119, 221, 0.35);
  color: var(--gray-900);
}

:root[data-theme="dark"] .leaderboard-score {
  color: var(--gray-900);
}

:root[data-theme="dark"] .leaderboard-placeholder {
  color: var(--gray-400);
}

:root[data-theme="dark"] .quiz-micro-panel {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: var(--teal-600);
}

:root[data-theme="dark"] .quiz-micro-next {
  color: var(--gray-400);
}

:root[data-theme="dark"] .profile-button {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-900);
}

:root[data-theme="dark"] .profile-dropdown {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .profile-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .topbar-menu-dropdown {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .topbar-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .student-summary-label,
:root[data-theme="dark"] .student-summary-sub,
:root[data-theme="dark"] .student-metric-label,
:root[data-theme="dark"] .student-list {
  color: var(--gray-400);
}

:root[data-theme="dark"] .student-summary-value,
:root[data-theme="dark"] .student-metric-value,
:root[data-theme="dark"] .student-hero-title {
  color: var(--gray-900);
}

:root[data-theme="dark"] .lesson-further-reading .lesson-reading-links a {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: var(--teal-600);
}

:root[data-theme="dark"] .course-thumb.purple {
  background: rgba(127, 119, 221, 0.2);
}
:root[data-theme="dark"] .course-thumb.teal {
  background: rgba(29, 158, 117, 0.2);
}
:root[data-theme="dark"] .course-thumb.amber {
  background: rgba(186, 117, 23, 0.2);
}
:root[data-theme="dark"] .course-thumb.coral {
  background: rgba(216, 90, 48, 0.2);
}
:root[data-theme="dark"] .noscript-warning {
  background: var(--amber-50);
  border-color: var(--amber-100);
  color: var(--amber-600);
}

/* ===== Modern Skills + Auth + Studio ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skills-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.skills-card h3 {
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.skills-card p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.tool-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-800);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 20px;
  padding: 4px 9px;
}

.course-track-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.course-track-list li {
  font-size: 13px;
  color: var(--gray-600);
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-layout-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.auth-choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(29, 158, 117, 0.18);
  border-radius: var(--radius-md);
  background: rgba(240, 253, 248, 0.82);
}

.auth-choice-card div {
  display: grid;
  gap: 2px;
}

.auth-choice-card strong {
  font-size: 13px;
  color: var(--gray-900);
}

.auth-choice-card span,
.auth-card-intro {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-600);
}

.student-auth-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(29, 158, 117, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.96));
}

.student-auth-kicker {
  margin-bottom: 6px;
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.student-auth-hero h2 {
  margin-bottom: 6px;
  color: var(--brand-950);
  font-size: 26px;
  letter-spacing: 0;
}

.student-auth-hero p {
  max-width: 62ch;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

.student-auth-steps {
  display: grid;
  gap: 8px;
  min-width: min(280px, 100%);
}

.student-auth-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 83, 143, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.student-auth-steps strong {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal-600);
  color: #fff;
  font-size: 12px;
}

.student-auth-steps span {
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
}

.student-auth-layout .auth-card:first-child {
  border-color: rgba(29, 158, 117, 0.28);
}

.student-auth-layout .auth-card:first-child::before {
  background: linear-gradient(90deg, var(--teal-500), var(--brand-500));
}

.auth-card {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(127, 119, 221, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-400), var(--teal-400));
  opacity: 0.92;
}

.auth-card .card-body {
  padding-top: 14px;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.project-submission-form,
.project-review-form {
  margin-top: 12px;
}

.waec-project-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(36, 83, 143, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.waec-project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.waec-project-eyebrow,
.waec-project-meta-grid span,
.waec-project-objective span {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: 700;
}

.waec-project-head h5 {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.waec-project-intro,
.waec-project-help {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

.waec-project-meta-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
}

.waec-project-meta-grid article,
.waec-project-objective,
.waec-project-list-grid article {
  min-width: 0;
  border: 1px solid rgba(36, 83, 143, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.waec-project-meta-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.waec-project-objective p {
  margin: 6px 0 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

.waec-project-list-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 12px;
}

.waec-project-list-grid h6 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 14px;
}

.waec-project-list-grid ol,
.waec-project-list-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.waec-project-list-grid li {
  padding-left: 2px;
  overflow-wrap: anywhere;
}

.waec-project-card .project-content {
  display: grid;
  gap: 12px;
}

.auth-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 4px;
}

.icon-sprite {
  display: none;
}

.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;
}

.password-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.auth-form .password-label-row label {
  margin-top: 0;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-500);
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  color: var(--brand-700);
  background: rgba(75, 59, 170, 0.08);
  border-color: rgba(75, 59, 170, 0.18);
  outline: none;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap .password-visibility-toggle {
  transform: translateY(-50%);
}

.password-input-wrap .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-input-wrap .icon-eye-off {
  display: none;
}

.password-input-wrap .password-visibility-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}

.password-input-wrap .password-visibility-toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-900);
  font-size: 13px;
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.auth-form .password-input-wrap input {
  padding-right: 48px;
}

.auth-form textarea {
  resize: vertical;
}

.auth-form input:hover,
.auth-form select:hover,
.auth-form textarea:hover {
  border-color: var(--gray-300);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--purple-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.14), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.auth-form .btn {
  margin-top: 8px;
}

.form-help {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-400);
}

.form-hint {
  margin: 4px 0 6px;
  font-size: 11px;
  color: var(--gray-400);
}

.feedback-optional summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  margin-bottom: 10px;
}

.feedback-optional summary::after {
  content: "+";
  font-weight: 700;
  color: var(--gray-400);
}

.feedback-optional[open] summary::after {
  content: "–";
}

.feedback-optional summary::-webkit-details-marker {
  display: none;
}

.feedback-mobile-hint {
  display: none;
}

@media (max-width: 600px) {
  .feedback-mobile-hint {
    display: block;
  }
}

.form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  display: block;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-900);
  font-size: 13px;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--purple-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.14);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-card .card-body {
  display: grid;
  gap: 12px;
}

.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.muted {
  color: var(--gray-600);
  font-size: 13px;
}

.studio-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.iam-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.iam-metric-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  padding: 16px 18px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.iam-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-400), var(--purple-800));
}

.iam-metric-card:nth-child(2)::before,
.iam-metric-card:nth-child(5)::before {
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
}

.iam-metric-card:nth-child(3)::before,
.iam-metric-card:nth-child(6)::before {
  background: linear-gradient(90deg, var(--amber-100), var(--amber-400));
}

.iam-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 119, 221, 0.2);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.05),
    0 18px 36px rgba(15, 23, 42, 0.08);
}

.iam-metric-label {
  font-size: 12px;
  color: var(--gray-400);
}

.iam-metric-value {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--purple-800);
  font-weight: 700;
  margin-top: 4px;
}

.content-list {
  display: grid;
  gap: 10px;
}

.content-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.content-item.is-draft {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.82), rgba(255, 255, 255, 0.96));
}

.content-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.content-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.content-desc {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.content-link {
  font-size: 12px;
  color: var(--teal-600);
  font-weight: 600;
}

.content-form-actions,
.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.content-form-actions {
  margin-top: 4px;
}

.content-actions {
  margin-top: 10px;
}

.btn.danger {
  border-color: rgba(220, 38, 38, 0.22);
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.72);
}

.btn.danger:hover {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(254, 202, 202, 0.92);
}

.ops-health-grid,
.ops-filter-grid {
  display: grid;
  gap: 12px;
}

.ops-health-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-health-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  padding: 14px;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ops-health-item span {
  font-size: 12px;
  color: var(--gray-400);
}

.ops-health-item strong {
  font-size: 15px;
  color: var(--brand-950);
}

.ops-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.ops-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ops-certificate-grid,
.ops-staff-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ops-certificate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-staff-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-certificate-grid .form-field,
.ops-staff-form .form-field {
  display: grid;
  gap: 6px;
}

.ops-certificate-grid .form-field span,
.ops-staff-form .form-field span {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}

.ops-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.studio-layout > .card {
  box-shadow: var(--shadow-premium);
}

.empty-state {
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  color: var(--gray-400);
  background: var(--gray-50);
}

#auth-status-pill {
  font-weight: 600;
}

.official-mail-pill {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-theme="dark"] .skills-card,
:root[data-theme="dark"] .content-item,
:root[data-theme="dark"] .iam-metric-card,
:root[data-theme="dark"] .ops-health-item,
:root[data-theme="dark"] .auth-form input,
:root[data-theme="dark"] .auth-form select,
:root[data-theme="dark"] .auth-form textarea,
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .resources-filter-field input,
:root[data-theme="dark"] .resources-filter-field select,
:root[data-theme="dark"] .quiz-control-label select,
:root[data-theme="dark"] .lab-control-field select,
:root[data-theme="dark"] .lab-control-field textarea,
:root[data-theme="dark"] .empty-state {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .content-item.is-draft {
  background: rgba(146, 107, 14, 0.16);
  border-color: rgba(245, 158, 11, 0.3);
}

:root[data-theme="dark"] .btn.danger {
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

:root[data-theme="dark"] .auth-form input,
:root[data-theme="dark"] .auth-form select,
:root[data-theme="dark"] .auth-form textarea,
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .resources-filter-field input,
:root[data-theme="dark"] .resources-filter-field select,
:root[data-theme="dark"] .quiz-control-label select,
:root[data-theme="dark"] .lab-control-field select,
:root[data-theme="dark"] .lab-control-field textarea {
  color: var(--gray-900);
}

:root[data-theme="dark"] .auth-form input::placeholder,
:root[data-theme="dark"] .auth-form textarea::placeholder,
:root[data-theme="dark"] .form-field input::placeholder,
:root[data-theme="dark"] .form-field textarea::placeholder,
:root[data-theme="dark"] .resources-filter-field input::placeholder,
:root[data-theme="dark"] .lab-control-field textarea::placeholder {
  color: var(--gray-400);
}

:root[data-theme="dark"] .auth-form input:focus,
:root[data-theme="dark"] .auth-form select:focus,
:root[data-theme="dark"] .auth-form textarea:focus,
:root[data-theme="dark"] .form-field input:focus,
:root[data-theme="dark"] .form-field select:focus,
:root[data-theme="dark"] .form-field textarea:focus,
:root[data-theme="dark"] .resources-filter-field input:focus,
:root[data-theme="dark"] .resources-filter-field select:focus,
:root[data-theme="dark"] .quiz-control-label select:focus,
:root[data-theme="dark"] .lab-control-field select:focus,
:root[data-theme="dark"] .lab-control-field textarea:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.2);
}

:root[data-theme="dark"] select option {
  background: var(--gray-100);
  color: var(--gray-900);
}

:root[data-theme="dark"] .welcome-hero {
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(154, 168, 239, 0.2),
      transparent 44%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(74, 191, 151, 0.2),
      transparent 36%
    ),
    var(--gray-100);
}

:root[data-theme="dark"] .welcome-next-step {
  background: rgba(11, 18, 32, 0.7);
  border-color: var(--gray-200);
}

:root[data-theme="dark"] .welcome-investor-item {
  background:
    linear-gradient(180deg, rgba(17, 38, 52, 0.78), rgba(17, 26, 44, 0.92));
  border-color: rgba(65, 201, 161, 0.2);
}

:root[data-theme="dark"] .welcome-investor-item strong {
  color: var(--gray-900);
}

:root[data-theme="dark"] .welcome-investor-item span {
  color: var(--gray-300);
}

:root[data-theme="dark"] .academy-disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gray-200);
  color: #f6c578;
}

:root[data-theme="dark"] .academy-disclaimer strong {
  color: #f6c578;
}

:root[data-theme="dark"] .welcome-note-copy,
:root[data-theme="dark"] .footer-disclaimer {
  color: var(--gray-400);
}

:root[data-theme="dark"] .welcome-note-copy strong {
  color: var(--gray-900);
}

@media (max-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .iam-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .ops-health-grid,
  .ops-filter-grid,
  .ops-certificate-grid,
  .ops-staff-form,
  .ops-analytics-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flags-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-title {
    font-size: 28px;
  }
  .welcome-portal-grid {
    grid-template-columns: 1fr;
  }
  .welcome-hero-grid,
  .welcome-proof-strip,
  .welcome-investor-strip,
  .assistant-feature,
  .assistant-page-hero,
  .assistant-page-grid,
  .assistant-capability-grid,
  .assistant-sync-list,
  .public-review-list,
  .impact-preview-grid,
  .demo-pack-grid,
  .demo-pack-strip {
    grid-template-columns: 1fr;
  }
  .pilot-task,
  .demo-pack-header {
    grid-template-columns: 1fr;
  }
  .pilot-task {
    align-items: start;
  }
  .demo-pack-header {
    display: grid;
  }
  .student-auth-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .academy-disclaimer {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .section-header {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
  }

  html {
    overflow-x: hidden;
  }
  
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .app-shell {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    max-width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    border-right: 1px solid var(--gray-200);
    border-bottom: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    box-shadow: none;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  }

  .app-shell.sidebar-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-logo,
  .sidebar-user {
    display: none;
  }

  .nav-section-label {
    display: block;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 12px;
    overflow-x: visible;
    overflow-y: auto;
    white-space: normal;
  }

  .sidebar-nav::-webkit-scrollbar {
    width: 6px;
  }

  .sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 999px;
  }

  .nav-item {
    margin-bottom: 2px;
    flex: 1 1 auto;
    white-space: normal;
    padding: 9px 10px;
    min-height: auto;
    font-size: 14px;
    border: none;
    background: transparent;
  }

  .topbar {
    padding: 12px 14px;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .topbar-title {
    flex: 0 0 auto;
    font-size: 16px;
    margin-right: auto;
  }

  .topbar-hamburger {
    display: inline-flex;
    flex-shrink: 0;
  }

  .sidebar-open-handle {
    display: none;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 1 auto;
    overflow: hidden;
  }

  .topbar-right > .theme-toggle,
  .topbar-right > .btn[data-target-panel="feedback"],
  .topbar-right > #auth-status-pill,
  .topbar-right > .profile-menu,
  .official-mail-pill,
  .support-mail-pill,
  .topbar-trust-pill {
    display: none;
  }

  .topbar-menu {
    display: inline-flex;
  }

  .topbar-search {
    display: none;
    order: 10;
  }

  .topbar-right .btn,
  .topbar-right .theme-toggle {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
  .course-track-list {
    grid-template-columns: 1fr;
  }
  .official-mail-pill {
    display: none;
  }
  .support-mail-pill {
    display: none;
  }
  .topbar-trust-pill {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .three-col {
    grid-template-columns: 1fr;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .lab-controls-grid {
    grid-template-columns: 1fr;
  }
  .lab-control-actions {
    justify-content: flex-start;
  }
  .lab-analytics-grid {
    grid-template-columns: 1fr;
  }
  .quiz-integrity-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .quiz-integrity-spacer {
    margin-left: 0;
  }
  .quiz-control-actions {
    justify-content: flex-start;
  }
  .quiz-leaderboard-row {
    grid-template-columns: auto 1fr auto;
  }
  .quiz-leaderboard-row .meta {
    display: none;
  }
  .live-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .countdown {
    flex-wrap: wrap;
  }
  .cert-signatories {
    gap: 20px;
  }
  .certificate-wrapper {
    padding: 30px 22px;
  }
  .cert-name {
    font-size: 30px;
  }
  .cert-course {
    font-size: 14px;
  }
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section-header {
    padding: 12px 14px;
    align-items: flex-start;
  }

  .topbar-right .topbar-trust-pill,
  .topbar-right .official-mail-pill,
  .topbar-right .support-mail-pill {
    display: none;
  }

  .topbar-auth-actions {
    order: 15;
    display: flex;
    gap: 6px;
    flex: 0 1 auto;
  }

  .topbar-right > .theme-toggle,
  .topbar-right > .btn[data-target-panel="feedback"],
  .topbar-right > #auth-status-pill,
  .topbar-right > .profile-menu {
    display: none;
  }

  .topbar-auth-actions .btn {
    min-height: 36px;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .topbar-right > .btn,
  .topbar-right > .theme-toggle {
    min-height: 36px;
  }

  .certificate-wrapper {
    padding: 18px 12px;
    border-radius: 20px;
  }

  .certificate-wrapper::before {
    background-size: 120px;
    background-position: center 44%;
  }

  .cert-decorative-border {
    inset: 8px;
    border-radius: 14px;
  }

  .cert-corner {
    width: 22px;
    height: 22px;
  }

  .cert-corner.tl {
    top: 14px;
    left: 14px;
  }

  .cert-corner.tr {
    top: 14px;
    right: 14px;
  }

  .cert-corner.bl {
    bottom: 14px;
    left: 14px;
  }

  .cert-corner.br {
    bottom: 14px;
    right: 14px;
  }

  .cert-seal {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }

  .cert-subtitle {
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .certificate-wrapper .section-title {
    font-size: 14px;
    line-height: 1.2;
  }

  .cert-intro {
    font-size: 12px;
  }

  .cert-name {
    font-size: 22px;
    line-height: 1.08;
    margin-bottom: 8px;
  }

  .cert-course {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .cert-score {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .cert-instructor-line {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 14px;
    max-width: 230px;
  }

  .cert-divider {
    margin-bottom: 14px;
  }

  .cert-signatories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    align-items: start;
  }

  .cert-signatory {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cert-signature-mark {
    min-height: 28px;
    width: 100%;
    max-width: 104px;
    padding: 3px 6px;
  }

  .cert-signature-script {
    font-size: 14px;
  }

  .cert-signature-line {
    width: 78px;
    margin: 5px auto 6px;
  }

  .cert-sig-name {
    font-size: 11px;
    line-height: 1.25;
  }

  .cert-sig-role {
    font-size: 10px;
    line-height: 1.25;
  }

  .cert-qr {
    width: 46px;
    height: 46px;
  }

  .cert-actions {
    gap: 8px;
  }

  .cert-actions .btn {
    width: 100%;
  }

  #theme-toggle-label {
    display: none;
  }

  .theme-toggle {
    padding: 6px;
    gap: 0;
  }

  .topbar-menu-dropdown {
    position: fixed !important;
    right: 12px !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 150px !important;
    z-index: 150 !important;
  }
}

@media (max-width: 380px) {
  .certificate-wrapper {
    padding: 16px 10px;
  }

  .cert-name {
    font-size: 20px;
  }

  .cert-signatories {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cert-signature-mark {
    max-width: 160px;
  }

  .cert-instructor-line {
    max-width: 210px;
  }
}

@media (max-width: 560px) {
  .panel {
    padding: 20px 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .flags-grid {
    grid-template-columns: 1fr;
  }
  .iam-metrics {
    grid-template-columns: 1fr;
  }
  .welcome-hero {
    padding: 20px;
  }

  .welcome-hero-grid {
    grid-template-columns: 1fr;
  }

  .welcome-proof-strip {
    grid-template-columns: 1fr;
  }

  .welcome-side-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-title {
    font-size: 24px;
  }

  .topbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .topbar-hamburger {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .topbar-title {
    font-size: 14px;
    flex-shrink: 0;
  }

  .topbar-search {
    display: none;
    order: 5;
    width: 100%;
    padding: 9px 12px;
  }

  .topbar-right {
    gap: 4px;
    flex-wrap: nowrap;
    min-width: auto;
  }

  .topbar-right .btn,
  .topbar-right .theme-toggle {
    min-height: 40px;
    padding: 6px 10px;
    font-size: 11px;
    min-width: auto;
  }

  .theme-toggle {
    padding: 6px;
  }

  .topbar-search input {
    width: 100%;
    font-size: 14px;
  }

  .event-item {
    flex-direction: column;
    gap: 10px;
  }

  .event-date-block {
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .event-item button {
    width: 100%;
  }

  .event-reminder-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .certificate-wrapper {
    padding: 24px 18px;
  }

  .cert-name {
    font-size: 28px;
  }

  .integrity-score-ring {
    flex-direction: column;
    align-items: flex-start;
  }

  .q-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .quiz-results-score {
    font-size: 48px;
  }
}

@media (max-width: 430px) {
  .topbar {
    padding: 10px 12px;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .topbar-hamburger {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 6px;
    font-size: 18px;
    flex-shrink: 0;
  }

  .topbar-title {
    font-size: 15px;
    min-width: auto;
    flex-shrink: 0;
    margin-right: auto;
  }

  .topbar-right {
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
  }

  .topbar-right .btn,
  .topbar-right .theme-toggle {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    min-width: auto;
    white-space: nowrap;
  }

  .theme-toggle {
    padding: 6px;
    border: 1px solid var(--gray-200);
    display: inline-flex !important;
  }

  .topbar-right .btn:nth-child(n + 5) {
    display: none !important;
  }

  .topbar-right .topbar-menu-btn {
    display: inline-flex !important;
  }

  .topbar-menu-dropdown {
    position: fixed !important;
    right: 12px !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 150px !important;
    width: auto !important;
    z-index: 150 !important;
  }

  .topbar-auth-actions {
    display: flex !important;
  }

  .auth-btn-text {
    font-size: 11px;
    white-space: nowrap;
  }

  #auth-btn {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .academy-hero,
  .skills-hero,
  .course-shell-sidebar,
  .course-shell-header,
  .course-shell-switcher,
  .course-shell-switcher-list,
  .course-shell-group,
  .course-shell-lesson-list,
  .course-shell-topbar,
  .course-shell-actions,
  .course-shell-stage-strip,
  .waec-lesson-head,
  .ms-lesson-head,
  .waec-lesson-nav,
  .ms-lesson-nav,
  .waec-past-list,
  .waec-past-item,
  .waec-project-card,
  .waec-project-head,
  .waec-project-meta-grid,
  .waec-project-list-grid,
  .project-submission-form,
  .project-content,
  .academy-kpi,
  .skills-kpi,
  .skills-hero-point {
    min-width: 0;
  }

  .academy-hero-main h2,
  .skills-hero h2,
  .course-shell-header h3,
  .course-shell-current,
  .waec-lesson-head h4,
  .ms-lesson-head h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .course-shell-breadcrumb,
  .course-shell-subtitle,
  .waec-objective,
  .ms-objective,
  .course-shell-header p,
  .course-shell-switch strong,
  .course-shell-lesson-name,
  .waec-past-prompt,
  .waec-past-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .course-shell-topbar,
  .waec-lesson-head,
  .ms-lesson-head,
  .waec-project-head,
  .waec-project-meta-grid,
  .waec-project-list-grid {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .waec-project-head > .pill,
  .waec-project-head > span[class^="pill"],
  .waec-project-head > span[class*=" pill-"] {
    justify-self: flex-start;
  }

  .course-shell-actions,
  .waec-lesson-nav,
  .ms-lesson-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .course-shell-actions .btn,
  .waec-lesson-nav .btn,
  .ms-lesson-nav .btn {
    flex: 1 1 160px;
  }

  .course-shell-switcher-list,
  .course-shell-stage-strip,
  .waec-year-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .course-shell-switch,
  .course-shell-stage-tab {
    width: 100%;
  }

  .course-shell-lesson {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 4px;
  }

  .course-shell-lesson-time {
    grid-column: 2;
    justify-self: flex-start;
  }

  .skills-hero-points {
    grid-template-columns: 1fr;
  }

  .academy-hero-side,
  .skills-hero-side {
    grid-template-columns: 1fr;
  }

  .project-submission-form input,
  .project-submission-form textarea,
  .project-submission-form .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .academy-hero,
  .skills-hero {
    padding: 18px;
  }

  .academy-hero-main h2,
  .skills-hero h2 {
    font-size: 28px;
  }

  .course-shell-topbar,
  .waec-lesson-head,
  .ms-lesson-head,
  .course-shell-stage-strip,
  .course-shell-switcher-list,
  .course-shell-lesson-list,
  .project-content,
  .waec-project-card,
  .waec-project-list-grid {
    gap: 10px;
  }

  .course-shell-actions .btn,
  .waec-lesson-nav .btn,
  .ms-lesson-nav .btn,
  .waec-year-tab {
    width: 100%;
  }

  .waec-past-item {
    padding: 14px;
  }

  .course-shell-header,
  .course-shell-switcher,
  .course-shell-group,
  .academy-kpi,
  .skills-kpi,
  .skills-hero-point {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 900px) {
  .mobile-nav-more-toggle {
    display: inline-flex;
  }

  .sidebar-nav .mobile-nav-secondary {
    display: none;
  }

  .sidebar-nav.mobile-secondary-open .nav-item.mobile-nav-secondary {
    display: flex;
  }

  .sidebar-nav.mobile-secondary-open .nav-section-label.mobile-nav-secondary {
    display: block;
  }

  .mobile-nav-accounts-label {
    display: none;
  }

  .topbar-search-toggle {
    display: inline-flex;
    min-height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
  }

  .topbar.search-open {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .topbar.search-open .topbar-search {
    display: flex !important;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    order: 20;
  }

  .dashboard-continue-body {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .dashboard-continue-actions {
    width: 100%;
  }

  .dashboard-continue-actions .btn {
    flex: 1 1 160px;
  }

  .course-mobile-toggle {
    display: inline-flex;
  }

  .course-mobile-card.is-collapsed .card-body {
    display: none;
  }
}

@media (max-width: 700px) {
  .welcome-side-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-continue-title {
    font-size: 18px;
  }

  .dashboard-continue-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

:root[data-theme="dark"] .lab-timer,
:root[data-theme="dark"] .lab-question-item,
:root[data-theme="dark"] .lab-past-item,
:root[data-theme="dark"] .lab-explanation-item,
:root[data-theme="dark"] .lab-essay-item,
:root[data-theme="dark"] .lab-history-item,
:root[data-theme="dark"] .lab-analytics-item,
:root[data-theme="dark"] .lab-weak-item,
:root[data-theme="dark"] .lab-exam-stat,
:root[data-theme="dark"] .lab-ready-card,
:root[data-theme="dark"] .lab-bank-note,
:root[data-theme="dark"] .lab-readiness-band,
:root[data-theme="dark"] .lab-question-chip,
:root[data-theme="dark"] .lab-option-card {
  background: rgba(16, 26, 48, 0.96);
  border-color: rgba(120, 151, 214, 0.18);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

:root[data-theme="dark"] .lab-question-prompt,
:root[data-theme="dark"] .lab-history-title,
:root[data-theme="dark"] .lab-ready-card strong,
:root[data-theme="dark"] .lab-exam-stat strong,
:root[data-theme="dark"] .lab-essay-prompt-title {
  color: #f2f6ff;
}

:root[data-theme="dark"] .lab-essay-prompt-label {
  color: #b8c7ff;
}

:root[data-theme="dark"] .lab-ready-card p,
:root[data-theme="dark"] .lab-bank-note,
:root[data-theme="dark"] .lab-readiness-band span,
:root[data-theme="dark"] .lab-explanation-item p,
:root[data-theme="dark"] .lab-past-prompt,
:root[data-theme="dark"] .lab-weak-item,
:root[data-theme="dark"] .lab-exam-meta,
:root[data-theme="dark"] .lab-essay-prompt-text,
:root[data-theme="dark"] .lab-essay-prompt-meta,
:root[data-theme="dark"] .lab-control-field {
  color: rgba(214, 224, 255, 0.76);
}

:root[data-theme="dark"] .lab-option-card.selected,
:root[data-theme="dark"] .lab-question-chip.active {
  background: rgba(55, 79, 141, 0.34);
  border-color: rgba(144, 177, 245, 0.42);
}

@media (max-width: 1080px) {
  .lab-controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-control-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .lab-exam-summary,
  .lab-ready-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lab-controls-grid,
  .lab-exam-summary,
  .lab-ready-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-option-card {
    grid-template-columns: auto 1fr;
  }

  .lab-option-card input {
    grid-column: 1;
  }

  .lab-option-badge {
    grid-column: 1;
    grid-row: 2;
  }

  .lab-option-card span:last-child {
    grid-column: 2;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px !important;
    line-height: 1.45;
  }
}
