:root {
  --brand-primary: #0d6efd;
  --brand-accent: #20c997;
  --brand-dark: #0b1220;
  --brand-surface: #f4f7fb;
  --brand-muted: #6c7a92;
  --brand-border: rgba(16, 24, 40, 0.08);
  --brand-warning: #f59f00;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

.course-prose-block p:last-child {
  margin-bottom: 0;
}

.course-accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.module-accordion-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.module-accordion-header {
  padding: 1.5rem 1.6rem 1.35rem;
}

.module-accordion-body {
  padding: 0 1.6rem 1.6rem;
}

.course-module-summary-card {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(33, 89, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(33, 89, 255, 0.04), rgba(33, 89, 255, 0.015));
}

.lesson-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lesson-item {
  border-radius: 18px;
  overflow: hidden;
}

.lesson-row {
  padding: 1.25rem 1.35rem;
}

.lesson-content-inner {
  padding: 1.35rem 1.5rem 1.5rem;
}

.course-resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.course-resource-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
}

.course-resource-card .fw-semibold,
.course-resource-card .small {
  white-space: normal;
}

.task-mark-input {
  min-width: 0;
}

.app-shell.sidebar-collapsed .app-sidebar {
  width: 92px;
  padding-inline: 12px;
}

.app-shell.sidebar-collapsed .sidebar-head,
.app-shell.sidebar-collapsed .sidebar-section,
.app-shell.sidebar-collapsed .sidebar-footer {
  align-items: center;
}

.app-shell.sidebar-collapsed .sidebar-link {
  width: 56px;
  min-height: 56px;
  justify-content: center;
  margin-inline: auto;
  padding-inline: 0;
  border-radius: 18px;
}

.app-shell.sidebar-collapsed .sidebar-link i {
  margin-right: 0;
}

.app-shell.sidebar-collapsed #logoutBtn {
  width: 56px;
  min-height: 56px;
  margin-inline: auto;
  justify-content: center;
  padding-inline: 0;
  border-radius: 18px;
}

.app-shell.sidebar-collapsed .sidebar-toggle-btn {
  margin-inline: auto;
}

@media (max-width: 1399.98px) {
  .course-resource-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--brand-dark);
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 58%, #eef4fb 100%);
}

a {
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
}

.top-nav {
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.12);
}

.hero-section {
  padding: 3rem 0 2rem;
}

.hero-card,
.glass-card,
.feature-card,
.domain-card,
.metric-card {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  overflow: hidden;
}

.hero-copy {
  padding: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-title {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero-title .accent {
  color: var(--brand-primary);
}

.hero-lead,
.section-copy,
.muted-copy {
  color: var(--brand-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(13, 110, 253, 0.96), rgba(32, 201, 151, 0.94)),
    #0d6efd;
  color: #fff;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.hero-visual::before {
  width: 220px;
  height: 220px;
  top: -56px;
  right: -44px;
}

.hero-visual::after {
  width: 140px;
  height: 140px;
  bottom: 12px;
  left: -32px;
}

.panel-card {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  opacity: 0.78;
}

.progress-strip {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.progress-strip > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, #dffef2);
}

.metric-card,
.feature-card,
.domain-card,
.glass-card {
  padding: 1.5rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover,
.feature-card:hover,
.domain-card:hover,
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(13, 110, 253, 0.18);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
}

.metric-label {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.section-block {
  padding: 2rem 0 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 700;
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.18));
  color: var(--brand-primary);
  font-size: 1.15rem;
}

.domain-card .domain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.domain-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.tool-chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #35518b;
  font-size: 0.82rem;
}

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  color: var(--brand-muted);
}

.check-list li::before {
  content: "•";
  color: var(--brand-accent);
  font-weight: 700;
}

.cta-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0b1220 0%, #13213b 55%, #16325f 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.footer-note {
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.btn {
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), #2f7bff);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(13, 110, 253, 0.2);
}

.btn-outline-dark {
  border-color: rgba(15, 23, 42, 0.18);
}

@media (max-width: 991.98px) {
  .hero-copy,
  .hero-visual {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.auth-shell {
  border: 1px solid var(--brand-border);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.auth-showcase {
  position: relative;
  height: 100%;
  padding: 2.5rem;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(160deg, #081a37 0%, #0d6efd 52%, #20c997 100%);
}

.auth-showcase::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.auth-panel {
  padding: 2.5rem;
}

.auth-toggle {
  display: inline-flex;
  padding: 0.35rem;
  border-radius: 999px;
  background: #edf3ff;
}

.auth-toggle .btn {
  min-width: 132px;
  padding-inline: 1rem;
  box-shadow: none;
}

.auth-toggle .btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), #2f7bff);
}

.auth-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #41506a;
}

.auth-input {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  padding-inline: 1rem;
}

.auth-input:focus {
  border-color: rgba(13, 110, 253, 0.4);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.auth-tip,
.demo-card {
  border-radius: 18px;
  background: #f7faff;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.auth-tip {
  padding: 1rem 1.1rem;
}

.demo-card {
  padding: 1.15rem;
}

.demo-badge {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.mini-stat {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

@media (max-width: 991.98px) {
  .auth-showcase,
  .auth-panel {
    padding: 2rem;
  }
}

.app-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 20%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3fb 100%);
}

.app-shell {
  display: flex;
  min-height: 100vh;
  --sidebar-width: 290px;
  --sidebar-collapsed-width: 96px;
}

.app-sidebar {
  width: var(--sidebar-width);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  transition: width 220ms ease, padding 220ms ease, box-shadow 220ms ease;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sidebar-brand {
  min-width: 0;
}

.sidebar-brand-label,
.sidebar-section-label,
.sidebar-link-label,
.user-chip-copy,
.sidebar-logout-label {
  transition: opacity 160ms ease, transform 160ms ease;
}

.sidebar-toggle-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.sidebar-toggle-btn:hover {
  color: var(--brand-primary);
  border-color: rgba(13, 110, 253, 0.18);
  background: #fff;
  transform: translateY(-1px);
}

.sidebar-toggle-btn i {
  transition: transform 220ms ease;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: #334155;
  font-weight: 500;
  transition: all 180ms ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--brand-primary);
  background: rgba(13, 110, 253, 0.08);
}

.sidebar-footer {
  padding-top: 1.25rem;
  display: grid;
  gap: 0.9rem;
  margin-top: auto;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(13, 110, 253, 0.06);
}

.user-chip-light {
  background: #fff;
  border: 1px solid var(--brand-border);
  max-width: min(100%, 340px);
  min-width: 0;
  flex-shrink: 1;
}

.user-chip-light .user-chip-copy {
  min-width: 0;
}

.user-chip-light .fw-semibold,
.user-chip-light .small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  font-weight: 700;
}

.sidebar-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.app-main {
  flex: 1;
  min-width: 0;
  transition: width 220ms ease;
}

.app-topbar {
  padding: 1.75rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.app-topbar > * {
  min-width: 0;
}

.topbar-meta {
  margin-left: auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.app-content {
  padding: 0 2rem 2rem;
}

.app-shell.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-width);
  padding-inline: 0.85rem;
}

.app-shell.sidebar-collapsed .sidebar-toggle-btn i {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: 0.7rem;
}

.app-shell.sidebar-collapsed .sidebar-brand-label,
.app-shell.sidebar-collapsed .sidebar-section-label,
.app-shell.sidebar-collapsed .sidebar-link-label,
.app-shell.sidebar-collapsed .user-chip-copy {
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
}

.app-shell.sidebar-collapsed .sidebar-section {
  margin-top: 1.25rem;
}

.app-shell.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding-inline: 0.75rem;
}

.app-shell.sidebar-collapsed .sidebar-link i {
  margin: 0;
  font-size: 1.1rem;
}

.app-shell.sidebar-collapsed .sidebar-footer {
  display: grid;
  gap: 0.85rem;
}

.app-shell.sidebar-collapsed .user-chip {
  justify-content: center;
  padding: 0.75rem;
}

.app-shell.sidebar-collapsed #logoutBtn {
  width: 48px !important;
  min-width: 48px;
  margin-inline: auto;
  padding-inline: 0.7rem;
  font-size: 0.88rem;
}

.app-shell.sidebar-collapsed .sidebar-logout-label {
  opacity: 0;
  transform: translateX(-6px);
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .app-shell {
    --sidebar-width: 100%;
    --sidebar-collapsed-width: 100%;
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    position: static;
    height: auto;
    padding: 1rem;
  }

  .app-topbar {
    padding: 1.5rem 1.25rem 1rem;
    flex-direction: column;
  }

  .topbar-meta {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .user-chip-light {
    max-width: 100%;
    width: 100%;
  }

  .user-chip-light .fw-semibold,
  .user-chip-light .small {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  .app-content {
    padding: 0 1.25rem 1.5rem;
  }

  .app-shell.sidebar-collapsed .app-sidebar {
    width: 100%;
    padding: 1rem;
  }

  .app-shell.sidebar-collapsed .sidebar-brand-label,
  .app-shell.sidebar-collapsed .sidebar-section-label,
  .app-shell.sidebar-collapsed .sidebar-link-label,
  .app-shell.sidebar-collapsed .user-chip-copy {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .app-shell.sidebar-collapsed .sidebar-link,
  .app-shell.sidebar-collapsed .user-chip,
  .app-shell.sidebar-collapsed .sidebar-brand {
    justify-content: flex-start;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle-btn i {
    transform: none;
  }
}

.dashboard-card,
.timeline-card,
.status-card,
.mentor-card,
.module-card {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.dashboard-hero {
  padding: 1.75rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(135deg, #0b1220 0%, #12315e 55%, #0d6efd 100%);
  color: #fff;
}

.dashboard-grid-stat {
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 110, 253, 0.08);
  box-shadow: var(--shadow-card);
}

.stat-kicker {
  color: #64748b;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.module-badge {
  display: inline-flex;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.task-status-pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.task-status-pill.pending {
  background: rgba(245, 159, 0, 0.12);
  color: #9a6700;
}

.task-status-pill.reviewed {
  background: rgba(32, 201, 151, 0.14);
  color: #0c7a5f;
}

.task-status-pill.submitted {
  background: rgba(13, 110, 253, 0.12);
  color: #0d58ca;
}

.task-status-pill.overdue,
.task-status-pill.danger {
  background: rgba(239, 68, 68, 0.14);
  color: #b42318;
}

.task-status-pill.new {
  background: rgba(13, 110, 253, 0.12);
  color: #0d58ca;
}

.task-status-pill.checked {
  background: rgba(32, 201, 151, 0.14);
  color: #0c7a5f;
}

.mini-progress {
  height: 10px;
  border-radius: 999px;
  background: #e9eef8;
  overflow: hidden;
}

.mini-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.resource-list,
.stack-list {
  padding-left: 1rem;
  color: var(--brand-muted);
}

.resource-list li,
.stack-list li {
  margin-bottom: 0.5rem;
}

.table-card {
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.chart-bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e7edf7;
  overflow: hidden;
}

.chart-bar-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.empty-state {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(13, 110, 253, 0.05);
  border: 1px dashed rgba(13, 110, 253, 0.18);
  color: var(--brand-muted);
  text-align: center;
}

.module-image-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--brand-border);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.module-image-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.module-image-card .caption {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--brand-muted);
}

.module-image-grid {
  display: grid;
  gap: 1rem;
}

.module-image-card-rich {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.module-image-card-rich:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(13, 110, 253, 0.16);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.module-image-card-rich img {
  height: 220px;
}

.loading-state {
  padding: 4rem 1.5rem;
  text-align: center;
}

.loading-emoji {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.loading-bar {
  max-width: 420px;
  margin: 0 auto;
  height: 10px;
  border-radius: 999px;
  background: #e8eef8;
  overflow: hidden;
}

.loading-bar > span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  animation: loading-slide 1.2s infinite ease-in-out;
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 17, 31, 0.24);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.global-loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.global-loading-card {
  width: min(420px, 100%);
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.analytics-dashboard {
  display: grid;
  gap: 1.25rem;
}

.analytics-header-card,
.analytics-kpi-card,
.analytics-chart-card {
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.analytics-header-card {
  padding: 1.5rem;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.analytics-page-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  margin: 0.35rem 0 0.25rem;
}

.analytics-page-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.analytics-last-updated {
  font-size: 0.92rem;
  color: #64748b;
}

.analytics-sticky-filters {
  position: sticky;
  top: 1rem;
  z-index: 12;
}

.analytics-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.analytics-filter-actions {
  display: flex;
  justify-content: flex-end;
}

.analytics-kpi-card {
  padding: 1.25rem;
  border-radius: 24px;
  height: 100%;
}

.analytics-kpi-value {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-top: 0.55rem;
}

.analytics-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.analytics-trend.success {
  color: #0c7a5f;
  background: rgba(16, 185, 129, 0.12);
}

.analytics-trend.warning {
  color: #8a5a00;
  background: rgba(245, 158, 11, 0.14);
}

.analytics-trend.danger {
  color: #b42318;
  background: rgba(239, 68, 68, 0.14);
}

.analytics-kpi-meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7edf7;
}

.analytics-kpi-meter span,
.analytics-inline-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

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

.analytics-chart-card {
  padding: 1.35rem;
  border-radius: 24px;
  min-width: 0;
}

.analytics-chart-card-wide {
  grid-column: 1 / -1;
}

.analytics-canvas-shell {
  height: 280px;
  position: relative;
}

.analytics-canvas-shell canvas,
.analytics-detail-chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}

.analytics-sort-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  font-weight: 700;
}

.analytics-sort-btn:hover {
  color: var(--brand-primary);
}

.analytics-mini-table td,
.analytics-mini-table th {
  white-space: nowrap;
}

.analytics-inline-metric {
  display: grid;
  gap: 0.45rem;
}

.analytics-inline-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7edf7;
  min-width: 140px;
}

.analytics-progress-cell span {
  font-weight: 700;
}

.analytics-progress-cell.danger span {
  color: #b42318;
}

.analytics-progress-cell.warning span {
  color: #8a5a00;
}

.analytics-progress-cell.success span {
  color: #0c7a5f;
}

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

.analytics-row-clickable {
  cursor: pointer;
}

.analytics-row-clickable:hover {
  background: rgba(13, 110, 253, 0.03);
}

.analytics-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100vh;
  z-index: 2200;
  padding: 1.35rem;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--brand-border);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

.analytics-detail-drawer.open {
  transform: translateX(0);
}

.analytics-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.analytics-drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.analytics-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.analytics-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.analytics-detail-kpis {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.analytics-detail-kpi {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.analytics-detail-kpi span,
.analytics-detail-info-grid span {
  display: block;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-detail-kpi strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.25rem;
}

.analytics-detail-chart-shell {
  margin-top: 1.25rem;
  height: 320px;
}

.analytics-module-bars {
  display: grid;
  gap: 0.85rem;
}

.analytics-module-bar-row {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.analytics-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.analytics-detail-info-grid div {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.analytics-detail-info-grid strong {
  display: block;
  margin-top: 0.3rem;
  color: #0f172a;
}

.analytics-mini-heatmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.analytics-mini-heatmap-cell {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
}

.analytics-mini-heatmap-cell.present {
  background: rgba(16, 185, 129, 0.18);
}

.analytics-mini-heatmap-cell.absent {
  background: rgba(239, 68, 68, 0.18);
}

.analytics-mini-heatmap-cell.rest-day {
  background: rgba(148, 163, 184, 0.22);
}

.analytics-mini-heatmap-cell.on-duty {
  background: rgba(59, 130, 246, 0.18);
}

.analytics-mini-heatmap-cell.empty {
  background: #f8fafc;
}

.analytics-skeleton-card {
  display: grid;
  gap: 0.8rem;
}

.analytics-skeleton-line,
.analytics-skeleton-chart {
  border-radius: 999px;
  background: linear-gradient(90deg, #eef3fb 25%, #f7faff 37%, #eef3fb 63%);
  background-size: 400% 100%;
  animation: analytics-shimmer 1.3s infinite;
}

.analytics-skeleton-line.short {
  height: 14px;
  width: 34%;
}

.analytics-skeleton-line.medium {
  height: 16px;
  width: 56%;
}

.analytics-skeleton-line.tall {
  height: 42px;
  width: 44%;
}

.analytics-skeleton-chart {
  height: 210px;
  border-radius: 24px;
}

@keyframes analytics-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.safe-mode-banner {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: var(--shadow-card);
}

.safe-mode-banner-on {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.18);
  color: #8a5a00;
}

.safe-mode-banner-off {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
  color: #9f1239;
}

.safe-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  font-weight: 700;
  color: #334155;
}

.safe-mode-toggle input {
  margin: 0;
}

.domain-list-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.92);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.domain-list-card.active,
.domain-list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.domain-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.domain-color-dot.indigo,
.color-swatch.indigo {
  background: #6366f1;
}

.domain-color-dot.teal,
.color-swatch.teal {
  background: #14b8a6;
}

.domain-color-dot.orange,
.color-swatch.orange {
  background: #f97316;
}

.domain-color-dot.pink,
.color-swatch.pink {
  background: #ec4899;
}

.domain-color-dot.purple,
.color-swatch.purple {
  background: #8b5cf6;
}

.domain-color-dot.green,
.color-swatch.green {
  background: #10b981;
}

.domain-color-dot.red,
.color-swatch.red {
  background: #ef4444;
}

.domain-color-dot.blue,
.color-swatch.blue {
  background: #3b82f6;
}

.code-preview-block {
  max-height: 70vh;
  overflow: auto;
  padding: 1rem;
  border-radius: 20px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.8rem;
}

.color-swatch-grid,
.emoji-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.color-swatch,
.emoji-picker-btn {
  border: 1px solid rgba(16, 24, 40, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.color-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.emoji-picker-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
}

.color-swatch.active,
.emoji-picker-btn.active,
.emoji-picker-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.domain-builder-handle {
  cursor: grab;
  color: #64748b;
}

.table-responsive-card {
  border-radius: 24px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-modern {
  margin-bottom: 0;
}

.table-modern th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f8fbff;
}

.table-modern td,
.table-modern th {
  padding: 1rem;
  vertical-align: middle;
}

.table-row-link {
  cursor: pointer;
}

.metric-tile {
  padding: 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.student-detail-hero {
  padding: 1.9rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #081a37 0%, #12315e 58%, #0d6efd 100%);
  color: #fff;
}

.student-detail-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.student-detail-hero-card {
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-dark);
  box-shadow: var(--shadow-card);
}

.student-risk-banner {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.student-risk-banner-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.18);
  color: #0f766e;
}

.student-risk-banner-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.2);
  color: #9a6700;
}

.student-risk-banner-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b42318;
}

.student-risk-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.student-risk-dismiss {
  color: inherit;
  padding: 0.25rem;
}

.student-detail-score {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--brand-primary);
}

.student-detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.student-detail-chart {
  display: grid;
  gap: 1rem;
}

.student-chart-shell {
  min-height: 340px;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(13, 110, 253, 0.08);
  position: relative;
}

.student-chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}

.student-detail-empty-chart {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(13, 110, 253, 0.04);
  color: var(--brand-muted);
  text-align: center;
  padding: 1.5rem;
}

.student-detail-chart-row {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.student-detail-chart-value,
.student-detail-module-progress {
  font-weight: 800;
  color: var(--brand-primary);
}

.student-detail-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.student-detail-module-card {
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid var(--brand-border);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.student-detail-module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 110, 253, 0.16);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.student-detail-module-progress {
  font-size: 1.55rem;
}

.student-detail-module-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.student-detail-module-meta div {
  padding: 0.9rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.student-detail-module-meta strong {
  display: block;
  font-size: 1.2rem;
}

.student-detail-module-meta span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--brand-muted);
}

.student-detail-subpanel {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.student-task-list {
  display: grid;
  gap: 0.95rem;
}

.student-task-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
}

.student-task-row-main {
  min-width: 0;
  flex: 1;
}

.student-task-row-actions {
  width: min(240px, 100%);
}

.student-detail-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.student-detail-review-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.attendance-mini-card {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.attendance-summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-primary);
  font-weight: 700;
}

.attendance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.attendance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.attendance-dot,
.attendance-status-chip,
.attendance-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.attendance-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
}

.attendance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.9rem;
}

.attendance-day-card {
  padding: 0.9rem 0.8rem;
  border-radius: 22px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.attendance-day-card:hover {
  transform: translateY(-4px);
}

.attendance-day-label {
  font-size: 0.82rem;
  color: var(--brand-muted);
}

.attendance-day-badge,
.attendance-status-chip {
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 16px;
  margin: 0.7rem auto 0.45rem;
}

.attendance-day-status {
  font-size: 0.82rem;
  color: #22324f;
  font-weight: 600;
}

.attendance-status-chip {
  min-width: 2.2rem;
  min-height: 2.2rem;
  margin: 0;
}

.attendance-select {
  max-width: 148px;
  border-radius: 14px;
}

.attendance-select-wide {
  min-width: 150px;
  border-radius: 14px;
}

.attendance-dot.present,
.attendance-status-chip.present,
.attendance-day-card.present .attendance-day-badge {
  background: rgba(25, 135, 84, 0.14);
  color: #137a52;
}

.attendance-dot.absent,
.attendance-status-chip.absent,
.attendance-day-card.absent .attendance-day-badge {
  background: rgba(220, 53, 69, 0.14);
  color: #b42318;
}

.attendance-dot.rest-day,
.attendance-status-chip.rest-day,
.attendance-day-card.rest-day .attendance-day-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #a16207;
}

.attendance-dot.on-duty,
.attendance-status-chip.on-duty,
.attendance-day-card.on-duty .attendance-day-badge {
  background: rgba(13, 110, 253, 0.14);
  color: #0d58ca;
}

.attendance-day-card.present {
  border-color: rgba(25, 135, 84, 0.18);
}

.attendance-day-card.absent {
  border-color: rgba(220, 53, 69, 0.18);
}

.attendance-day-card.rest-day {
  border-color: rgba(245, 158, 11, 0.22);
}

.attendance-day-card.on-duty {
  border-color: rgba(13, 110, 253, 0.2);
}

.attendance-page-card,
.attendance-side-panel {
  min-height: 100%;
}

.attendance-calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.attendance-calendar-head,
.attendance-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}

.attendance-calendar-head {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.attendance-calendar-cell {
  min-height: 112px;
  padding: 0.85rem 0.75rem;
  border-radius: 22px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.attendance-calendar-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.attendance-calendar-cell.muted {
  opacity: 0.42;
}

.attendance-calendar-cell.selected {
  border-color: rgba(13, 110, 253, 0.34);
  box-shadow: 0 18px 32px rgba(13, 110, 253, 0.12);
}

.attendance-calendar-date {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #22324f;
}

.attendance-calendar-code {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.attendance-calendar-cell.present .attendance-calendar-code {
  background: rgba(25, 135, 84, 0.14);
  color: #137a52;
}

.attendance-calendar-cell.absent .attendance-calendar-code {
  background: rgba(220, 53, 69, 0.14);
  color: #b42318;
}

.attendance-calendar-cell.rest-day .attendance-calendar-code {
  background: rgba(245, 158, 11, 0.18);
  color: #a16207;
}

.attendance-calendar-cell.on-duty .attendance-calendar-code {
  background: rgba(13, 110, 253, 0.14);
  color: #0d58ca;
}

.student-attendance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.student-attendance-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.student-attendance-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.student-attendance-legend-dot.present {
  background: #10b981;
}

.student-attendance-legend-dot.absent {
  background: #ef4444;
}

.student-attendance-legend-dot.rest-day {
  background: #94a3b8;
}

.student-attendance-legend-dot.on-duty {
  background: #2563eb;
}

.student-note-composer {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.student-note-list {
  display: grid;
  gap: 1rem;
}

.mentor-note-card {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mentor-note-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}

.attendance-status-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid var(--brand-border);
  background: rgba(247, 250, 255, 0.95);
}

.attendance-status-banner.present {
  border-color: rgba(25, 135, 84, 0.18);
}

.attendance-status-banner.absent {
  border-color: rgba(220, 53, 69, 0.18);
}

.attendance-status-banner.rest-day {
  border-color: rgba(245, 158, 11, 0.22);
}

.attendance-status-banner.on-duty {
  border-color: rgba(13, 110, 253, 0.2);
}

.attendance-detail-block {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.sidebar-progress {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--brand-primary);
  font-weight: 700;
}

.course-side-progress {
  padding: 1rem;
  border-radius: 18px;
  background: #f7faff;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.course-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e6eefb;
  overflow: hidden;
}

.course-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.course-accordion-stack {
  display: grid;
  gap: 1.25rem;
}

.module-accordion-card {
  border-radius: 28px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.module-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 0;
  background: transparent;
  text-align: left;
}

.module-accordion-meta {
  min-width: 128px;
}

.module-progress-ring {
  width: 82px;
  height: 82px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0f6ff, #ffffff);
  border: 1px solid rgba(13, 110, 253, 0.14);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.module-accordion-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
}

.module-accordion-card.open .module-accordion-body {
  display: block;
}

.lesson-stack {
  display: grid;
  gap: 0.9rem;
}

.lesson-item {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lesson-item.active {
  border-color: rgba(13, 110, 253, 0.28);
  box-shadow: 0 18px 32px rgba(13, 110, 253, 0.1);
}

.lesson-item.locked {
  opacity: 0.74;
}

.lesson-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  text-align: left;
}

.lesson-row.disabled {
  cursor: not-allowed;
}

.lesson-main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.lesson-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.14));
  color: var(--brand-primary);
  flex-shrink: 0;
}

.lesson-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.lesson-title {
  font-weight: 600;
  color: #15253f;
}

.lesson-type-pill {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #35518b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lesson-meta {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--brand-muted);
  font-size: 0.86rem;
}

.lesson-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lesson-check {
  position: relative;
  display: inline-flex;
}

.lesson-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lesson-check span {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid rgba(13, 110, 253, 0.22);
  background: #fff;
  display: inline-block;
}

.lesson-check input:checked + span {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-color: transparent;
  box-shadow: inset 0 0 0 3px #fff;
}

.lesson-check-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.lesson-chevron {
  color: #64748b;
  transition: transform 180ms ease;
}

.lesson-item.open .lesson-chevron {
  transform: rotate(180deg);
}

.lesson-content {
  display: none;
  border-top: 1px solid rgba(16, 24, 40, 0.06);
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
}

.lesson-item.open .lesson-content {
  display: block;
}

.lesson-content-inner {
  padding: 1rem 1.1rem 1.1rem;
}

.lesson-task-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(13, 110, 253, 0.05);
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.lesson-rich-stack,
.lesson-topic-grid,
.lesson-link-grid {
  display: grid;
  gap: 1rem;
}

.lesson-topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lesson-rich-card {
  padding: 1.1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(13, 110, 253, 0.08);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.lesson-rich-hero {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(32, 201, 151, 0.08));
  border-color: rgba(13, 110, 253, 0.14);
}

.lesson-checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.lesson-checklist li {
  display: flex;
  gap: 0.65rem;
  color: #334155;
}

.lesson-checklist li::before {
  content: "✓";
  color: var(--brand-accent);
  font-weight: 700;
}

.lesson-code-block {
  margin: 0;
  padding: 1rem;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
}

.lesson-dataset-table th,
.lesson-dataset-table td {
  white-space: nowrap;
}

.lesson-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lesson-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(13, 110, 253, 0.12);
  background: #eef4ff;
  color: #244684;
  font-weight: 600;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lesson-link-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: 0 14px 24px rgba(13, 110, 253, 0.08);
}

.lesson-resource-card {
  height: 100%;
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.module-sections-stack {
  display: grid;
  gap: 1.25rem;
}

.module-section-card {
  padding: 1.4rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.section-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section-block-card,
.section-highlight-card,
.assessment-question-card,
.assessment-answer-item {
  padding: 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
}

.section-highlight-card {
  grid-column: 1 / -1;
  border-color: rgba(13, 110, 253, 0.16);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(32, 201, 151, 0.06));
}

.section-block-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.assessment-stack,
.assessment-answers-list {
  display: grid;
  gap: 1rem;
}

.assessment-review-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  align-items: start;
}

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

.assessment-summary-card {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.assessment-summary-card:hover,
.assessment-summary-card.active {
  transform: translateY(-3px);
  border-color: rgba(13, 110, 253, 0.18);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.08);
}

.assessment-summary-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #64748b;
}

.assessment-list-panel,
.assessment-detail-panel {
  min-width: 0;
}

.assessment-student-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.assessment-detail-scorecards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.assessment-mini-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.assessment-correction-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.assessment-score-banner {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(32, 201, 151, 0.12));
  border: 1px solid rgba(13, 110, 253, 0.12);
  color: #183153;
  font-weight: 600;
}

.assessment-detail-panel {
  position: sticky;
  top: 1rem;
}

.assessment-group-card {
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}

.assessment-student-list {
  display: grid;
  gap: 0.7rem;
}

.assessment-student-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
  color: #15253f;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.assessment-student-row:hover,
.assessment-student-row.active {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.24);
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.08);
}

.assessment-student-row small {
  display: block;
  color: var(--brand-muted);
  margin-top: 0.15rem;
}

.assessment-option-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.assessment-option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.2);
}

.assessment-option-card input {
  accent-color: var(--brand-primary);
}

.assessment-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.assessment-rating-pill {
  cursor: pointer;
}

.assessment-rating-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.assessment-rating-pill span {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.16);
  background: #fff;
  color: #35518b;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.assessment-rating-pill:hover span,
.assessment-rating-pill input:checked + span {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  box-shadow: 0 14px 24px rgba(13, 110, 253, 0.16);
}

.assessment-comment-input {
  min-height: 92px;
}

.task-focus-card {
  border-color: rgba(13, 110, 253, 0.28);
  box-shadow: 0 20px 36px rgba(13, 110, 253, 0.12);
}

.live-quiz-banner {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(32, 201, 151, 0.08));
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.quiz-options-grid {
  display: grid;
  gap: 0.85rem;
}

.quiz-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
  color: #15253f;
  font-weight: 600;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quiz-option-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.08);
}

.quiz-option-btn:disabled {
  opacity: 0.85;
  cursor: default;
}

.quiz-option-btn.selected {
  border-color: rgba(13, 110, 253, 0.3);
  background: rgba(13, 110, 253, 0.06);
}

.quiz-option-label {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

.live-quiz-student-card {
  overflow: hidden;
}

.builder-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.builder-stack {
  display: grid;
  gap: 1rem;
}

.builder-card {
  border-radius: 22px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.builder-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
  background: rgba(13, 110, 253, 0.03);
}

.builder-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

@keyframes loading-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (max-width: 991.98px) {
  .analytics-filter-grid,
  .analytics-chart-grid,
  .analytics-detail-kpis,
  .analytics-detail-info-grid {
    grid-template-columns: 1fr;
  }

  .analytics-header-card {
    flex-direction: column;
  }

  .analytics-page-actions {
    width: 100%;
    justify-items: stretch;
  }

  .analytics-canvas-shell {
    height: 240px;
  }

  .analytics-detail-drawer {
    width: 100%;
  }

  .app-shell {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--brand-border);
  }

  .app-topbar,
  .app-content {
    padding-inline: 1rem;
  }

  .topbar-meta {
    width: 100%;
  }

  .module-accordion-header {
    flex-direction: column;
  }

  .module-accordion-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .builder-section-head {
    flex-direction: column;
  }
}

.landing-shell {
  position: relative;
  overflow: hidden;
}

.landing-top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
}

.landing-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  opacity: 0.45;
}

.landing-orb-one {
  width: 360px;
  height: 360px;
  top: 120px;
  right: -120px;
  background: rgba(13, 110, 253, 0.16);
}

.landing-orb-two {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: 160px;
  background: rgba(32, 201, 151, 0.18);
}

.hero-section-xl {
  padding: 2rem 0 3rem;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-card-premium {
  position: relative;
  overflow: hidden;
  min-height: 720px;
}

.hero-card-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(13, 110, 253, 0.14), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(32, 201, 151, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 251, 255, 0.94));
  transform: translate(var(--spotlight-x, 0), var(--spotlight-y, 0));
  transition: transform 180ms ease-out;
}

.hero-copy-premium {
  position: relative;
  z-index: 1;
  padding: 4rem;
}

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

.rotating-word {
  display: inline-block;
  color: #0d6efd;
  transition: opacity 180ms ease, transform 180ms ease;
}

.word-visible {
  opacity: 1;
  transform: translateY(0);
}

.word-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.hero-marquee {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.hero-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0.85rem 1.25rem;
  animation: marquee-slide 20s linear infinite;
  color: #35518b;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-spotlight-stack {
  display: grid;
  gap: 1.25rem;
}

.hero-spotlight-card,
.hero-mini-card,
.journey-step,
.contact-form-card,
.contact-intro,
.journey-shell {
  border-radius: 28px;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.hero-spotlight-card {
  padding: 2rem;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.hero-mini-card {
  padding: 1.5rem;
}

.spotlight-progress-list {
  display: grid;
  gap: 1rem;
}

.progress-strip.dark {
  background: #deebff;
}

.progress-strip.dark > span {
  background: linear-gradient(90deg, #0d6efd, #20c997);
}

.hero-scroll-indicator {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.hero-scroll-indicator a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #35518b;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1rem;
}

.feature-card-premium {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.95));
}

.domain-card-premium {
  position: relative;
  overflow: hidden;
}

.domain-card-premium::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.06);
}

.domain-card-header,
.domain-inline-stats,
.domain-footer,
.cta-stack {
  display: flex;
  gap: 1rem;
}

.domain-card-header {
  justify-content: space-between;
  align-items: flex-start;
}

.domain-ring {
  min-width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0f6ff, #ffffff);
  border: 1px solid rgba(13, 110, 253, 0.12);
  text-align: center;
}

.domain-ring strong {
  font-size: 1.6rem;
  line-height: 1;
}

.domain-ring span,
.domain-inline-stats span {
  font-size: 0.8rem;
  color: var(--brand-muted);
}

.domain-inline-stats {
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f6f9ff;
}

.domain-inline-stats div {
  display: grid;
  gap: 0.15rem;
}

.journey-shell {
  padding: 2rem;
}

.journey-track {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.journey-step {
  padding: 1.5rem;
}

.journey-count {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.18));
  color: #0d6efd;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-card-premium {
  overflow: hidden;
}

.cta-stack {
  flex-direction: column;
}

.contact-shell {
  padding: 2rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.92));
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-soft);
}

.contact-intro,
.contact-form-card {
  padding: 1.75rem;
  height: 100%;
}

.contact-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.metric-card-premium {
  position: relative;
  overflow: hidden;
}

.metric-card-premium::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.05);
}

.reveal-card {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1199.98px) {
  .landing-hero-grid,
  .journey-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .hero-copy-premium,
  .journey-shell,
  .contact-shell {
    padding: 1.5rem;
  }

  .hero-card-premium {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .analytics-canvas-shell {
    height: 220px;
  }

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

  .assessment-detail-panel {
    position: static;
  }

  .assessment-detail-scorecards {
    grid-template-columns: 1fr;
  }

  .section-block-grid {
    grid-template-columns: 1fr;
  }

  .student-detail-module-meta {
    grid-template-columns: 1fr;
  }

  .student-task-row,
  .mentor-note-meta {
    flex-direction: column;
  }

  .student-task-row-actions {
    width: 100%;
  }

  .attendance-calendar-head,
  .attendance-calendar-grid {
    gap: 0.45rem;
  }

  .attendance-calendar-cell {
    min-height: 84px;
    padding: 0.7rem 0.55rem;
  }

  .attendance-calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-mini-grid,
  .domain-card-header,
  .domain-inline-stats {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .domain-footer {
    flex-direction: column;
  }

  .cta-stack .btn,
  .domain-footer .btn {
    width: 100%;
  }

  .hero-copy-premium {
    padding: 1.4rem;
  }

  .lesson-row,
  .lesson-main {
    align-items: flex-start;
  }

  .lesson-row {
    flex-direction: column;
  }

  .lesson-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.portfolio-body {
  --portfolio-bg: #07111f;
  --portfolio-surface: rgba(12, 22, 37, 0.76);
  --portfolio-surface-strong: rgba(18, 34, 55, 0.92);
  --portfolio-border: rgba(154, 194, 255, 0.18);
  --portfolio-copy: #dbe8ff;
  --portfolio-muted: #8ba3c7;
  --portfolio-accent: #6ae3ff;
  --portfolio-accent-strong: #8a7dff;
  --portfolio-warm: #ff9d6c;
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--portfolio-copy);
  background:
    radial-gradient(circle at 20% 20%, rgba(106, 227, 255, 0.16), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(138, 125, 255, 0.18), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(255, 157, 108, 0.08), transparent 22%),
    linear-gradient(180deg, #040914 0%, #07111f 36%, #09172b 100%);
  overflow-x: hidden;
}

.portfolio-body .btn {
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.portfolio-body .btn-primary {
  background: linear-gradient(135deg, var(--portfolio-accent), var(--portfolio-accent-strong));
  border: none;
  box-shadow: 0 18px 40px rgba(106, 227, 255, 0.2);
}

.portfolio-body .btn-outline-light {
  border-color: rgba(219, 232, 255, 0.32);
  color: #f5f9ff;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--portfolio-accent), var(--portfolio-warm));
  box-shadow: 0 0 18px rgba(106, 227, 255, 0.7);
}

.portfolio-shell {
  position: relative;
  isolation: isolate;
}

.ambient,
.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  filter: blur(60px);
  opacity: 0.5;
}

.ambient-one {
  top: 8%;
  left: -6%;
  width: 24rem;
  height: 24rem;
  background: rgba(106, 227, 255, 0.18);
}

.ambient-two {
  top: 38%;
  right: -8%;
  width: 28rem;
  height: 28rem;
  background: rgba(138, 125, 255, 0.2);
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

.portfolio-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--portfolio-border);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.68);
  backdrop-filter: blur(20px);
}

.brand-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #f5f9ff;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portfolio-accent), var(--portfolio-accent-strong));
  box-shadow: 0 0 0 8px rgba(106, 227, 255, 0.12);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--portfolio-muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
}

.nav-links a,
.nav-cta {
  color: #f5f9ff;
}

.hero-cosmos {
  position: relative;
  padding: 4.5rem 0 2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(106, 227, 255, 0.24);
  background: rgba(106, 227, 255, 0.08);
  color: var(--portfolio-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-heading,
.section-head h2,
.contact-finale h2 {
  font-family: "Syne", sans-serif;
  letter-spacing: -0.04em;
}

.hero-heading {
  margin: 1.3rem 0 1rem;
  max-width: 9.5ch;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.96;
}

.hero-spotlight {
  display: inline-block;
  min-width: 5.2ch;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(106, 227, 255, 0.35);
}

#heroTypeText {
  display: inline-block;
  transition: transform 240ms ease, opacity 240ms ease, filter 240ms ease;
}

#heroTypeText.is-switching {
  opacity: 0.15;
  transform: translateY(14px) scale(0.96);
  filter: blur(4px);
}

.hero-summary,
.lead-copy,
.experience-copy,
.achievement-card p,
.project-card p,
.contact-finale p {
  color: var(--portfolio-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-meta-grid,
.about-grid,
.achievement-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.hero-meta-card,
.glass-panel,
.project-card,
.achievement-card,
.experience-card,
.contact-finale {
  border: 1px solid var(--portfolio-border);
  background: linear-gradient(180deg, rgba(17, 30, 49, 0.84), rgba(10, 18, 32, 0.84));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero-meta-card,
.project-card,
.achievement-card {
  padding: 1.25rem;
  border-radius: 1.4rem;
}

.meta-label,
.achievement-title,
.project-tag,
.experience-period,
.experience-location,
.experience-company {
  color: var(--portfolio-accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stage {
  perspective: 1400px;
}

.orbital-shell {
  position: relative;
  min-height: 38rem;
  border-radius: 2rem;
  border: 1px solid var(--portfolio-border);
  background:
    radial-gradient(circle at center, rgba(106, 227, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(15, 28, 46, 0.9), rgba(7, 14, 25, 0.98));
  overflow: hidden;
  transform-style: preserve-3d;
}

.orbital-shell::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.orbit {
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
}

.orbit-lg {
  width: 28rem;
  height: 28rem;
  animation: spin 20s linear infinite;
}

.orbit-md {
  width: 20rem;
  height: 20rem;
  animation: spinReverse 16s linear infinite;
}

.orbit-sm {
  width: 12rem;
  height: 12rem;
  animation: spin 12s linear infinite;
}

.floating-panel {
  position: absolute;
  width: min(18rem, calc(100% - 2rem));
  padding: 1.25rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 25, 42, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transform:
    translate3d(var(--float-x, 0), var(--float-y, 0), 0)
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
  transition: transform 180ms ease;
}

.floating-panel-main {
  top: 10%;
  left: 6%;
}

.floating-panel-side {
  top: 24%;
  right: 5%;
}

.floating-panel-bottom {
  bottom: 9%;
  left: 14%;
}

.panel-tag {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(106, 227, 255, 0.1);
  color: var(--portfolio-accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.center-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #b2f2ff, #6ae3ff 42%, #495bff 100%);
  box-shadow: 0 0 40px rgba(106, 227, 255, 0.28);
  color: #07111f;
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1.1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--portfolio-border);
  background: rgba(255, 255, 255, 0.04);
}

.hero-strip span,
.skill-pill {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f8ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.portfolio-section {
  position: relative;
  padding: 2rem 0 1rem;
}

.section-head {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

.about-grid {
  grid-template-columns: 1.25fr 0.75fr;
}

.glass-panel {
  padding: 1.6rem;
  border-radius: 1.6rem;
}

.stat-stack {
  display: grid;
  gap: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-row span {
  color: var(--portfolio-muted);
}

.experience-timeline,
.project-grid,
.achievement-grid {
  display: grid;
  gap: 1.25rem;
}

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

.experience-card {
  position: relative;
  padding: 1.6rem;
  border-radius: 1.8rem;
  transform:
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.timeline-rail {
  width: 4rem;
  height: 4px;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--portfolio-accent), var(--portfolio-warm));
}

.experience-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.experience-card h3,
.project-card h3 {
  margin: 1rem 0 0.45rem;
  font-family: "Syne", sans-serif;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  min-height: 18rem;
  border-radius: 1.6rem;
  transform:
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-line {
  width: 100%;
  height: 1px;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, rgba(106, 227, 255, 0.7), transparent);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.achievement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-card {
  border-radius: 1.6rem;
}

.achievement-card strong {
  display: block;
  margin: 0.9rem 0 0.6rem;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #ffffff;
}

.contact-finale {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 2rem;
  transform:
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
  transition: transform 180ms ease;
}

.contact-copy {
  max-width: 46rem;
}

.tilt-card:hover,
.project-card:hover,
.experience-card:hover {
  border-color: rgba(106, 227, 255, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.reveal-card {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.magnetic-btn {
  will-change: transform;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@media (max-width: 1199.98px) {
  .hero-layout,
  .about-grid,
  .project-grid,
  .achievement-grid,
  .experience-timeline,
  .contact-finale {
    grid-template-columns: 1fr;
  }

  .contact-finale {
    display: grid;
  }
}

@media (max-width: 991.98px) {
  .nav-panel {
    border-radius: 1.5rem;
    padding: 1rem;
    flex-direction: column;
  }

  .hero-cosmos {
    padding-top: 2rem;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
  }

  .orbital-shell {
    min-height: 32rem;
  }

  .floating-panel-main {
    top: 8%;
  }

  .floating-panel-side {
    right: 4%;
  }
}

@media (max-width: 767.98px) {
  .nav-links {
    gap: 0.8rem;
  }

  .hero-heading {
    font-size: 2.9rem;
  }

  .portfolio-section {
    padding-top: 1.25rem;
  }

  .floating-panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin: 1rem;
  }

  .orbital-shell {
    display: grid;
    align-content: start;
    padding-top: 5.5rem;
    min-height: auto;
  }

  .center-core {
    top: 5.6rem;
    width: 5.2rem;
    height: 5.2rem;
  }

  .orbit-lg,
  .orbit-md,
  .orbit-sm {
    display: none;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .nav-cta {
    width: 100%;
  }
}

.landing-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #0d6efd, #20c997, #7c3aed);
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.4);
}

.landing-nav-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.landing-top-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.landing-top-nav.scrolled {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.landing-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.landing-nav-link {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: #35518b;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.landing-nav-link:hover {
  color: var(--brand-primary);
  background: rgba(13, 110, 253, 0.08);
  transform: translateY(-1px);
}

.landing-orb-three {
  width: 16rem;
  height: 16rem;
  right: 16%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 72%);
}

.hero-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.hero-signal-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #35518b;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.hero-signal-row strong {
  color: var(--brand-primary);
}

.text-shimmer {
  background: linear-gradient(120deg, #0b1220 0%, #0d6efd 42%, #20c997 72%, #0b1220 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer-slide 8s linear infinite;
}

.tilt-hover {
  transform-style: preserve-3d;
  will-change: transform;
}

.iam-access-card,
.iam-editor-card,
.students-analytics-card {
  overflow: hidden;
}

.iam-search-shell {
  position: relative;
  width: min(320px, 100%);
}

.iam-search-shell i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #64748b;
}

.iam-search-shell input {
  min-height: 48px;
  padding-left: 2.75rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.iam-row-active {
  background: rgba(13, 110, 253, 0.04);
}

.iam-inline-controls {
  min-width: 180px;
}

.iam-access-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.iam-access-badge.super-admin {
  background: rgba(239, 68, 68, 0.12);
  color: #b42318;
}

.iam-access-badge.domain-admin {
  background: rgba(13, 110, 253, 0.12);
  color: #0d58ca;
}

.iam-editor-status {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  font-size: 0.92rem;
}

.iam-editor-status.ready {
  background: rgba(16, 185, 129, 0.1);
  color: #0f766e;
}

.iam-editor-status.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.iam-editor-sticky {
  position: sticky;
  top: 1.5rem;
}

.students-chart-shell {
  position: relative;
  min-height: 320px;
}

.students-chart-shell-compact {
  min-height: 260px;
}

.students-highlight-pill {
  display: grid;
  gap: 0.15rem;
  min-width: 210px;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(32, 201, 151, 0.12));
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.students-highlight-pill strong {
  font-size: 1.08rem;
}

.students-highlight-pill span:last-child {
  color: #64748b;
  font-size: 0.9rem;
}

.students-insight-list {
  display: grid;
  gap: 0.85rem;
}

.students-insight-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.students-insight-row span {
  color: #64748b;
}

.students-insight-row strong {
  color: #0f172a;
}

@keyframes text-shimmer-slide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@media (max-width: 991.98px) {
  .landing-nav-shell {
    justify-content: center;
  }

  .landing-nav-links {
    width: 100%;
    order: 3;
  }

  .iam-editor-sticky {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .hero-signal-row {
    flex-direction: column;
  }

  .hero-signal-row span,
  .landing-nav-link {
    width: 100%;
    justify-content: center;
  }

  .students-highlight-pill,
  .iam-search-shell {
    width: 100%;
  }

  .students-chart-shell {
    min-height: 260px;
  }
}

/* ===== UI refinement overrides ===== */
.sidebar-link {
  min-height: 3.25rem;
}

.sidebar-link i {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-logout-btn {
  min-height: 3.25rem;
  border-radius: 18px;
}

.app-shell.sidebar-collapsed .sidebar-link {
  width: 3.25rem;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  margin-inline: auto;
  justify-content: center;
  border-radius: 18px;
}

.app-shell.sidebar-collapsed .sidebar-link i {
  width: auto;
  font-size: 1.1rem;
}

.app-shell.sidebar-collapsed .user-chip {
  width: 100%;
  min-height: 5.25rem;
  border-radius: 20px;
  padding: 0.75rem 0;
}

.app-shell.sidebar-collapsed #logoutBtn {
  width: 3.25rem !important;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  border-radius: 18px;
  margin-inline: auto;
}

.app-shell.sidebar-collapsed .sidebar-head {
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-toggle-btn {
  margin-inline: auto;
}

.app-shell.sidebar-collapsed .sidebar-footer {
  justify-items: center;
}

.app-shell.sidebar-collapsed .sidebar-section {
  display: grid;
  justify-items: center;
}

.app-shell.sidebar-collapsed .nav.flex-column {
  width: 100%;
  justify-items: center;
}

.module-accordion-card {
  border-radius: 16px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.96);
}

.module-accordion-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.module-accordion-body {
  padding: 0 1.25rem 1.25rem;
}

.course-module-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-module-status {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.course-module-status.is-progress,
.course-module-status.is-ready {
  background: rgba(13, 110, 253, 0.1);
  color: var(--brand-primary);
}

.course-module-status.is-complete {
  background: rgba(32, 201, 151, 0.12);
  color: #0f766e;
}

.course-module-summary-card {
  margin-top: 1rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #fff;
}

.course-module-progress {
  margin-top: 1rem;
}

.course-module-progress-caption {
  margin-bottom: 0.55rem;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.course-module-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.course-module-primary-btn {
  min-width: 13.5rem;
}

.lesson-stack {
  gap: 1rem;
}

.lesson-item {
  border-radius: 12px;
  box-shadow: none;
}

.lesson-item.active {
  border-color: rgba(13, 110, 253, 0.22);
  box-shadow: none;
}

.lesson-row {
  padding: 1rem 1rem 0.95rem;
}

.lesson-content {
  background: #fff;
}

.lesson-content-inner {
  padding: 0 1rem 1rem;
}

.course-prose-block {
  display: grid;
  gap: 0.95rem;
  color: #334155;
  line-height: 1.78;
  font-size: 1rem;
}

.course-prose-block p {
  margin: 0;
}

.course-prose-plain {
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
}

.lesson-rich-card,
.lesson-task-card {
  border-radius: 12px;
  box-shadow: none;
}

.course-resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.course-resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.course-resource-card .fw-semibold,
.course-resource-card .small {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.course-resource-card-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.course-resource-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-primary);
  flex-shrink: 0;
}

.course-resource-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: #35518b;
  font-size: 0.74rem;
  font-weight: 700;
}

.course-empty-copy {
  color: #64748b;
  font-size: 0.92rem;
}

.builder-module-list-shell .list-group {
  gap: 0.75rem;
}

.builder-module-item {
  border: 1px solid rgba(16, 24, 40, 0.08) !important;
  border-left: 4px solid transparent !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 1rem !important;
}

.builder-module-item.active,
.builder-module-item:hover {
  border-left-color: var(--brand-primary) !important;
  background: rgba(13, 110, 253, 0.06) !important;
  color: inherit !important;
}

.builder-section-card,
.builder-preview-card,
.builder-row-card {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #fff;
}

.builder-row-card + .builder-row-card {
  margin-top: 0.85rem;
}

.builder-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  transition: background 160ms ease, color 160ms ease;
}

.builder-icon-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.builder-preview-shell {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.builder-preview-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-primary);
  flex-shrink: 0;
}

.builder-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.builder-preview-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: #35518b;
  font-size: 0.74rem;
  font-weight: 700;
}

.builder-add-btn {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .course-resource-grid {
    grid-template-columns: 1fr;
  }

  .course-module-primary-btn {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: minmax(84px, 96px) minmax(0, 1fr);
  }

  .app-main {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .app-sidebar,
  .app-shell.sidebar-collapsed .app-sidebar {
    width: 100%;
    padding: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-shell.sidebar-collapsed .sidebar-brand-label,
  .app-shell.sidebar-collapsed .sidebar-section-label,
  .app-shell.sidebar-collapsed .sidebar-link-label,
  .app-shell.sidebar-collapsed .user-chip-copy,
  .app-shell.sidebar-collapsed .sidebar-logout-label {
    opacity: 1;
    transform: none;
    width: auto;
    overflow: visible;
    pointer-events: auto;
  }

  .app-shell.sidebar-collapsed .sidebar-link,
  .app-shell.sidebar-collapsed .sidebar-brand,
  .app-shell.sidebar-collapsed .user-chip,
  .app-shell.sidebar-collapsed #logoutBtn {
    width: 100% !important;
    min-width: 0;
    justify-content: flex-start;
    border-radius: 18px;
    padding-inline: 1rem;
  }

  .app-shell.sidebar-collapsed .sidebar-head,
  .app-shell.sidebar-collapsed .sidebar-section,
  .app-shell.sidebar-collapsed .sidebar-footer {
    justify-items: stretch;
    justify-content: space-between;
  }
}

.course-overview-shell {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.course-redesign-shell {
  display: grid;
  gap: 1.5rem;
}

.course-summary-strip {
  display: grid;
  grid-template-columns: minmax(320px, 1.6fr) repeat(3, minmax(180px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.course-overview-aside {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.course-overview-card {
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #fff;
}

.course-overview-card-wide {
  min-height: 100%;
}

.course-summary-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #fff;
}

.course-summary-card.is-domain {
  background: linear-gradient(135deg, #102342 0%, #2563eb 100%);
  color: #fff;
}

.course-summary-card.is-domain .course-overview-kicker,
.course-summary-card.is-domain p {
  color: rgba(255, 255, 255, 0.76);
}

.course-summary-card.is-domain h3 {
  margin: 0.55rem 0 0.5rem;
  font-size: 2.35rem;
}

.course-summary-card.is-action {
  display: grid;
  align-content: start;
}

.course-overview-kicker,
.course-side-kicker,
.course-focus-breadcrumb {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.course-overview-card h3 {
  margin: 0.65rem 0 0.5rem;
  font-size: clamp(1.8rem, 2.3vw, 2.35rem);
}

.course-overview-card p,
.course-overview-next,
.course-overview-progress-copy,
.course-overview-progress-label {
  color: #64748b;
}

.course-overview-progress {
  margin-top: 1.1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #f8fbff 100%);
  min-width: 0;
  overflow: hidden;
}

.course-overview-progress-copy {
  margin-top: 0.75rem;
  font-size: 0.98rem;
  min-width: 0;
  word-break: break-word;
}

.course-overview-progress .course-focus-status {
  width: 100%;
}

.course-overview-stat {
  margin: 0.65rem 0 0.35rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f172a;
}

.course-overview-stat.compact {
  font-size: 2rem;
}

.course-overview-cta {
  padding-block: 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.course-focus-shell {
  display: grid;
  gap: 1.4rem;
}

.course-focus-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.course-focus-title {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 2.9vw, 3rem);
  line-height: 1.08;
}

.course-focus-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-weight: 700;
  white-space: normal;
  max-width: 100%;
  text-align: center;
}

.course-focus-status.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #0f9f6e;
}

.course-focus-status.ready {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.course-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 280px;
  gap: 1.5rem;
  align-items: start;
}

.course-focus-main,
.course-focus-side {
  min-width: 0;
}

.course-module-tabs,
.course-stepper-shell {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.course-module-tab,
.course-stepper-item {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
}

.course-module-tab {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.course-module-tab:hover,
.course-module-tab.active {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}

.course-module-tab-index {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}

.course-module-tab-copy {
  display: grid;
  gap: 0.25rem;
}

.course-module-tab-copy strong {
  font-size: 0.98rem;
}

.course-module-tab-copy small {
  color: #64748b;
}

.course-stepper-shell {
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0 0.1rem;
  flex-wrap: nowrap;
}

.course-stepper-item {
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.course-stepper-dot {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
  z-index: 1;
}

.course-stepper-item.active .course-stepper-dot {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.course-stepper-item.completed .course-stepper-dot {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.course-content-canvas {
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.course-content-canvas::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 24px 0 0 24px;
  background: var(--course-accent, #2563eb);
}

.course-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.course-content-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fef2d9;
  color: #b66900;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.course-content-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.course-content-head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.35rem;
}

.course-content-head h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.12;
}

.course-content-head p {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.7;
}

.course-content-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 1.25rem;
}

.course-content-body {
  display: grid;
  gap: 1rem;
}

.course-content-body .lesson-rich-stack,
.course-content-body .mb-3 {
  margin-bottom: 0 !important;
}

.course-content-body .lesson-rich-card,
.course-content-body .lesson-task-card {
  border: 0;
  padding: 0;
  background: transparent;
}

.course-content-body .stat-kicker {
  margin-bottom: 0.65rem;
}

.course-content-body .course-prose-block {
  line-height: 1.85;
  font-size: 1.02rem;
  max-width: 100%;
}

.course-content-body .course-prose-plain {
  display: block;
  white-space: normal;
}

.course-content-body .course-prose-block,
.course-content-body .course-prose-block p,
.course-content-body .course-prose-block li,
.course-content-body .course-prose-block h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.course-content-body .course-prose-block p,
.course-content-body .course-prose-block ul,
.course-content-body .course-prose-block h4 {
  max-width: 100%;
}

.course-content-body .course-prose-block ul {
  padding-left: 1.35rem;
}

.course-prose-line {
  white-space: pre-wrap;
  margin-bottom: 0.55rem;
}

.course-prose-spacer {
  height: 0.75rem;
}

.course-prose-line a,
.course-linked-action a,
.course-sidebar-item-copy a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  word-break: break-word;
}

.builder-content-textarea,
.assignment-instructions {
  white-space: pre-wrap;
  line-height: 1.65;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.course-linked-action {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #f8fbff;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.course-linked-action-title {
  font-weight: 700;
}

.course-linked-action-copy {
  margin-top: 0.3rem;
  color: #64748b;
}

.course-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.course-progress-inline {
  flex: 1 1 260px;
}

.course-progress-inline-label {
  margin-bottom: 0.55rem;
  color: #475569;
  font-size: 0.96rem;
  font-weight: 600;
}

.course-progress-bar.thin {
  height: 6px;
}

.course-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.course-overview-status {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
}

.student-query-stack {
  display: grid;
  gap: 1rem;
}

.student-query-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.student-query-thread {
  display: grid;
  gap: 0.85rem;
}

.student-query-bubble {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.student-query-bubble.student {
  background: #f8fbff;
}

.student-query-bubble.admin {
  background: #f4fbf7;
  border-color: rgba(34, 197, 94, 0.16);
}

.course-lesson-complete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.course-lesson-complete-btn span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.course-lesson-complete-btn:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.04);
}

.course-lesson-complete-btn.is-complete {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  cursor: default;
}

.course-side-card {
  padding: 1.35rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
}

.course-side-card + .course-side-card {
  margin-top: 1rem;
}

.course-sidebar-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.15rem;
}

.course-sidebar-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.course-sidebar-item:last-child {
  border-bottom: 0;
}

.course-sidebar-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.course-sidebar-item-title {
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.course-sidebar-item-copy a,
.course-sidebar-item-copy span {
  display: inline-block;
  margin-top: 0.3rem;
  color: #94a3b8;
  font-size: 0.92rem;
}

/* Final collapsed sidebar cleanup */
.app-sidebar {
  overflow-x: hidden;
}

.app-shell.sidebar-collapsed .sidebar-head {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.app-shell.sidebar-collapsed .sidebar-brand {
  width: 56px;
  min-width: 56px;
  height: 56px;
  padding: 0;
  justify-content: center;
  overflow: hidden;
}

.app-shell.sidebar-collapsed .sidebar-section {
  display: grid;
  justify-items: center;
}

.app-shell.sidebar-collapsed .nav.flex-column {
  width: 100%;
  display: flex;
  align-items: center;
}

.app-shell.sidebar-collapsed .sidebar-link,
.app-shell.sidebar-collapsed #logoutBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-footer {
  align-items: center;
  justify-items: center;
}

.app-shell.sidebar-collapsed .user-chip {
  width: 100%;
  max-width: 68px;
  min-height: 68px;
  padding: 0.65rem 0;
  justify-content: center;
  overflow: hidden;
}

.app-shell.sidebar-collapsed .user-chip-avatar {
  margin-inline: auto;
}

.course-sidebar-empty,
.course-focus-empty p {
  color: #64748b;
}

.course-focus-empty {
  padding: 3rem;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 24px;
  background: #fff;
}

@media (max-width: 1200px) {
  .course-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .course-overview-shell {
    grid-template-columns: 1fr;
  }

  .course-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-overview-aside {
    position: static;
  }

  .course-module-tab {
    min-width: 210px;
  }
}

@media (max-width: 768px) {
  .course-summary-strip {
    grid-template-columns: 1fr;
  }

  .course-focus-header {
    flex-direction: column;
    align-items: stretch;
  }

  .course-focus-title {
    font-size: 1.8rem;
  }

  .course-content-canvas,
  .course-side-card,
  .course-overview-card {
    padding: 1.2rem;
    border-radius: 20px;
  }

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

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

  .course-content-icon {
    width: 3rem;
    height: 3rem;
  }

  .course-action-buttons {
    width: 100%;
  }

  .course-lesson-complete-btn,
  .course-module-primary-btn {
    width: 100%;
  }

  .course-stepper-item {
    min-width: 150px;
  }
}

.loading-state .loading-emoji,
.global-loading-card .loading-emoji {
  display: none !important;
}

.global-loading-card {
  padding-top: 1.35rem;
}

.live-quiz-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.live-quiz-action-btn {
  width: 100%;
  min-width: 0;
  min-height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.live-quiz-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.live-quiz-action-btn:disabled,
.live-quiz-action-btn.is-busy {
  opacity: 0.82;
  cursor: wait;
}

.app-shell.sidebar-collapsed .app-sidebar {
  width: 92px !important;
  padding: 1rem 0.75rem !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
}

.app-shell.sidebar-collapsed .app-sidebar::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.app-shell.sidebar-collapsed .sidebar-head {
  display: grid !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 0.85rem !important;
  width: 100% !important;
  margin-bottom: 0.35rem !important;
}

.app-shell.sidebar-collapsed .sidebar-brand {
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  margin-inline: auto !important;
}

.app-shell.sidebar-collapsed .sidebar-toggle-btn {
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  margin: 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 20px !important;
}

.app-shell.sidebar-collapsed .sidebar-section,
.app-shell.sidebar-collapsed .sidebar-footer {
  display: grid !important;
  justify-items: center !important;
  align-items: center !important;
  width: 100% !important;
}

.app-shell.sidebar-collapsed .nav.flex-column {
  display: grid !important;
  width: 100% !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 0.9rem !important;
}

.app-shell.sidebar-collapsed .sidebar-link,
.app-shell.sidebar-collapsed #logoutBtn {
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  margin-inline: auto !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 18px !important;
}

.app-shell.sidebar-collapsed .sidebar-link i,
.app-shell.sidebar-collapsed #logoutBtn i {
  width: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 1.1rem !important;
}

.app-shell.sidebar-collapsed .user-chip {
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  margin-inline: auto !important;
}

.app-shell.sidebar-collapsed .sidebar-brand-label,
.app-shell.sidebar-collapsed .sidebar-section-label,
.app-shell.sidebar-collapsed .sidebar-link-label,
.app-shell.sidebar-collapsed .sidebar-logout-label,
.app-shell.sidebar-collapsed .user-chip-copy {
  display: none !important;
}

.app-shell.sidebar-collapsed .user-chip-avatar {
  width: 42px !important;
  height: 42px !important;
  margin: 0 auto !important;
}

@media (max-width: 768px) {
  .live-quiz-actions {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed .app-sidebar {
    width: 100% !important;
    padding: 1rem !important;
  }

  .app-shell.sidebar-collapsed .sidebar-link,
  .app-shell.sidebar-collapsed .sidebar-brand,
  .app-shell.sidebar-collapsed .user-chip,
  .app-shell.sidebar-collapsed #logoutBtn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    padding-inline: 1rem !important;
  }
}
