@charset "UTF-8";

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
  background: linear-gradient(135deg, #e3e7ff 0%, #f3f5ff 40%, #fdfbff 100%);
  color: #1f2343;
  min-height: 100vh;
}

body.mobile-sidenav-open {
  overflow: hidden;
}

.page-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
   overflow-x: visible;;
}

.sidenav {
  background: #070a1f;
  color: #ffffff;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidenav h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidenav p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.mobile-sidenav-toggle,
.mobile-sidenav-backdrop {
  display: none;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-menu li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.nav-link {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-menu li span {
  opacity: 0.65;
}

.sidenav-support-link {
  display: grid;
  gap: 0.18rem;
  margin-top: auto;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sidenav-support-link:hover,
.sidenav-support-link:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(34, 197, 94, 0.28);
  outline: none;
}

.sidenav-support-link span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.sidenav-support-link strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

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

.secondary-btn {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(109, 99, 255, 0.12);
  color: #1f2343;
  border: 1px solid rgba(109, 99, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(109, 99, 255, 0.22);
}

.secondary-btn.small {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-report-modal.hidden {
  display: none;
}

.admin-report-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.admin-report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 38, 0.56);
  backdrop-filter: blur(6px);
}

.admin-report-modal-card {
  position: relative;
  width: min(1380px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  margin: 1rem auto;
  background: #ffffff;
  border-radius: 1.4rem;
  box-shadow: 0 30px 70px rgba(15, 20, 53, 0.28);
  display: flex;
  flex-direction: column;
}

.admin-report-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid #e8ebf5;
}

.admin-report-modal-head h3 {
  margin: 0.2rem 0 0.35rem;
}

.admin-report-timeline {
  padding: 1rem 1.4rem 1.4rem;
  overflow: auto;
  display: grid;
  gap: 0.85rem;
}

.admin-report-timeline.hidden,
.admin-report-frame.hidden {
  display: none;
}

.admin-report-frame {
  width: 100%;
  min-height: min(78vh, 980px);
  border: 0;
  background: #f6f8ff;
}

.admin-report-event {
  border: 1px solid #e5e8f2;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, #ffffff, #f9faff);
}

.admin-report-event-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.admin-report-event-head strong {
  color: #1f2343;
}

.admin-report-event-meta {
  color: #8b92b1;
  font-size: 0.83rem;
}

.admin-report-event-summary {
  margin: 0;
  color: #40476d;
}

.admin-report-event-details {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-report-event-media {
  display: block;
  width: min(100%, 320px);
  margin-top: 0.8rem;
  border: 1px solid #e5e8f2;
  border-radius: 0.9rem;
  background: #f6f8ff;
  overflow: hidden;
}

.report-action-group {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.report-action-btn {
  min-width: 132px;
  justify-content: center;
  text-align: center;
}

.admin-report-event-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eef1ff;
  color: #4c5489;
  font-size: 0.78rem;
  font-weight: 600;
}

.main-panel {
  padding: 2rem;
  min-width: 0;
  overflow-x: visible;
  overflow-y: auto;
  height: 100vh;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  min-width: 0;
}

.card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(15, 20, 53, 0.2);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(109, 99, 255, 0.15);
  color: #6d63ff;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #edf2ff, #f5f7ff);
}

.login-box {
  width: min(460px, 90vw);
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.75rem;
  box-shadow: 0 20px 40px rgba(15, 20, 53, 0.2);
}

.auth-secondary-link {
  width: 100%;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login-role-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.35rem;
  border-radius: 999px;
  background: #eef1ff;
  gap: 0.35rem;
  margin: 1.2rem 0 1.4rem;
}

.login-role-btn {
  border: none;
  min-height: 44px;
  border-radius: 999px;
  background: transparent;
  color: #5d6689;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.login-role-btn.active {
  background: linear-gradient(135deg, #6d63ff, #7455ff);
  color: #fff;
  box-shadow: 0 12px 22px rgba(109, 99, 255, 0.28);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field-group label {
  font-size: 0.85rem;
  color: #8b92b1;
}

.field-group input,
.field-group select {
  border: 1px solid #e3e5ec;
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  background: #fdfdff;
}

.legal-consent-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.25rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e3e5ec;
  border-radius: 1rem;
  background: #f7f8ff;
  color: #4d5677;
  font-size: 0.86rem;
  line-height: 1.5;
}

.legal-consent-box input {
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  accent-color: #6d63ff;
}

.legal-consent-box a {
  color: #5c52e8;
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: #f3f5fb;
  color: #20243f;
}

.legal-card {
  width: min(920px, 100%);
  margin: 0 auto;
  border-radius: 1.4rem;
  background: #fff;
  padding: clamp(1.25rem, 4vw, 3rem);
  box-shadow: 0 24px 70px rgba(31, 35, 67, 0.12);
}

.legal-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  color: #151936;
}

.legal-card h2 {
  margin: 1.65rem 0 0.55rem;
  font-size: 1.08rem;
  color: #151936;
}

.legal-card p {
  color: #515a7c;
  line-height: 1.75;
}

.legal-kicker,
.legal-warning {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: #eef1ff;
}

.legal-warning {
  margin-top: 1.5rem;
  border: 1px solid #dce1ff;
  color: #343b63 !important;
}

.primary-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.95rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6d63ff, #7455ff);
  cursor: pointer;
}

.signup-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 2rem;
  padding: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}

.signup-hero {
  display: grid;
  gap: 1.75rem;
  align-content: start;
  padding: 1rem 0.5rem 1rem 0;
  min-width: 0;
}

.signup-hero-copy {
  display: grid;
  gap: 1rem;
}

.signup-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.02;
}

.signup-hero-copy p {
  margin: 0;
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #47507c;
}

.signup-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signup-proof-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(109, 99, 255, 0.18);
  color: #40476d;
  font-size: 0.9rem;
  font-weight: 600;
}

.signup-hero-mode {
  display: grid;
  gap: 1.75rem;
}

.signup-professor-mode {
  gap: 2rem;
}

.signup-professor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 440px);
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.8rem;
  background: linear-gradient(160deg, #10121e 0%, #17172c 55%, #2d1f63 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.signup-professor-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 123, 255, 0.34) 0%, rgba(151, 123, 255, 0) 72%);
  pointer-events: none;
}

.signup-professor-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.signup-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.signup-professor-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.35rem);
  line-height: 1.04;
}

.signup-professor-hero-copy p {
  margin: 0;
  max-width: 560px;
  color: rgba(242, 244, 255, 0.82);
  line-height: 1.72;
}

.signup-professor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signup-inline-cta {
  width: auto;
  min-width: 188px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.signup-inline-cta-alt {
  width: auto;
  min-width: 188px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.signup-inline-cta-alt:hover {
  background: rgba(255, 255, 255, 0.14);
}

.signup-professor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.signup-stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-stat-card strong {
  color: #fff;
  font-size: 0.94rem;
}

.signup-stat-card span {
  color: rgba(242, 244, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.signup-professor-hero-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.signup-dashboard-frame {
  width: 100%;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.signup-dashboard-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.signup-feature-story,
.signup-video-section,
.signup-testimonials {
  display: grid;
  gap: 1rem;
}

.signup-builder-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.signup-builder-showcase-copy,
.signup-builder-mockup,
.signup-gallery-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 232, 247, 0.95);
  box-shadow: 0 24px 44px rgba(15, 20, 53, 0.12);
}

.signup-builder-showcase-copy {
  border-radius: 1.35rem;
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.signup-eyebrow-light {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(109, 99, 255, 0.12);
  color: #6d63ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-builder-showcase-copy h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #141938;
}

.signup-builder-showcase-copy p {
  margin: 0;
  color: #556084;
  line-height: 1.7;
}

.signup-builder-benefits {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.7rem;
  color: #556084;
}

.signup-builder-mockup {
  border-radius: 1.35rem;
  padding: 1rem;
}

.signup-builder-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #ffffff, #f5f7ff);
  border: 1px solid #e3e8fa;
}

.signup-builder-title-group {
  display: grid;
  gap: 0.25rem;
}

.signup-builder-title-group strong {
  font-size: 1.55rem;
  color: #141938;
}

.signup-builder-title-group small {
  color: #677399;
  line-height: 1.55;
}

.signup-builder-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(109, 99, 255, 0.12);
  color: #6d63ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signup-builder-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.signup-builder-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 99, 255, 0.24);
  color: #263054;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.signup-builder-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.signup-builder-sidebar {
  border-radius: 1.2rem;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #f7f8ff);
  border: 1px solid #e3e8fa;
  display: grid;
  gap: 0.9rem;
}

.signup-builder-sidebar-tabs,
.signup-builder-sidebar-grid {
  display: grid;
  gap: 0.6rem;
}

.signup-builder-sidebar-tabs {
  grid-template-columns: repeat(2, 1fr);
}

.signup-builder-sidebar-grid {
  grid-template-columns: repeat(2, 1fr);
}

.signup-builder-sidebar-tabs span,
.signup-builder-sidebar-grid span {
  min-height: 42px;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dfe4f6;
  color: #3a4677;
  font-size: 0.92rem;
  font-weight: 700;
}

.signup-builder-sidebar-tabs span.active {
  background: linear-gradient(135deg, #4953a6, #3a4aa3);
  color: #fff;
}

.signup-builder-sidebar-card {
  border-radius: 1rem;
  padding: 0.95rem;
  background: #fff;
  border: 1px solid #dfe4f6;
  display: grid;
  gap: 0.7rem;
}

.signup-builder-sidebar-card strong {
  color: #141938;
}

.signup-builder-field {
  min-height: 42px;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #f8f9ff, #edf1ff);
  border: 1px solid #dfe4f6;
}

.signup-builder-field-tall {
  min-height: 96px;
}

.signup-builder-stage-shell {
  display: grid;
  gap: 1rem;
}

.signup-builder-toolbar {
  min-height: 78px;
  border-radius: 1.2rem;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #f7f8ff);
  border: 1px solid #e3e8fa;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.signup-builder-toolbar span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef1ff, #e4e8ff);
  border: 1px solid rgba(109, 99, 255, 0.22);
}

.signup-builder-stage {
  position: relative;
  min-height: 520px;
  border-radius: 1.3rem;
  padding: 1.6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f5ff, #edf2ff);
  border: 1px solid rgba(109, 99, 255, 0.18);
}

.signup-builder-stage-copy {
  max-width: 530px;
}

.signup-builder-stage-copy small,
.signup-builder-score span,
.signup-builder-detector label {
  display: block;
  font-weight: 700;
}

.signup-builder-stage-copy small {
  color: #635fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.signup-builder-stage-copy h4 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.04;
  color: #202648;
}

.signup-builder-stage-copy p {
  margin: 0;
  color: #566389;
  font-size: 1.05rem;
  line-height: 1.65;
}

.signup-builder-score {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 180px;
  border-radius: 1.05rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.signup-builder-score span {
  color: #635fff;
  text-transform: uppercase;
}

.signup-builder-score strong {
  display: block;
  margin-top: 0.4rem;
  color: #202648;
  font-size: 2rem;
}

.signup-builder-detector {
  position: absolute;
  width: 170px;
  height: 138px;
  border-radius: 1.15rem;
  background:
    repeating-linear-gradient(135deg, rgba(106, 102, 255, 0.12) 0, rgba(106, 102, 255, 0.12) 10px, rgba(106, 102, 255, 0.04) 10px, rgba(106, 102, 255, 0.04) 20px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 245, 255, 0.98));
  border: 2px dashed rgba(106, 102, 255, 0.55);
}

.signup-builder-detector::after {
  content: "Detector";
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #595eff;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signup-builder-detector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 211, 112, 0.22) 0 15px, transparent 16px),
    radial-gradient(circle at center, #ffcf61 0 12px, #ffb100 13px 20px, transparent 21px),
    radial-gradient(circle at center, transparent 0 22px, rgba(255, 177, 0, 0.88) 22px 28px, transparent 29px);
}

.signup-builder-detector label {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: #202648;
  font-size: 0.92rem;
  text-align: center;
}

.signup-builder-detector.is-success {
  background:
    repeating-linear-gradient(135deg, rgba(26, 179, 98, 0.18) 0, rgba(26, 179, 98, 0.18) 10px, rgba(26, 179, 98, 0.07) 10px, rgba(26, 179, 98, 0.07) 20px),
    linear-gradient(180deg, rgba(43, 197, 112, 0.92), rgba(37, 177, 99, 0.96));
}

.signup-builder-detector.is-success::after,
.signup-builder-detector.is-success label {
  color: #ecfff2;
}

.detector-one {
  left: 190px;
  top: 265px;
}

.detector-two {
  left: 440px;
  top: 165px;
}

.detector-three {
  left: 690px;
  top: 265px;
}

.detector-four {
  right: 90px;
  bottom: 34px;
}

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

.signup-feature-grid-rich {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-feature-card,
.signup-testimonial-card,
.signup-student-panel,
.signup-form-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(228, 232, 247, 0.95);
  box-shadow: 0 24px 44px rgba(15, 20, 53, 0.12);
}

.signup-feature-card {
  border-radius: 1.2rem;
  padding: 1.2rem;
}

.signup-feature-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f2343;
}

.signup-feature-card h2,
.signup-section-heading h2,
.signup-form-card h2 {
  margin: 0;
  font-size: 1.08rem;
}

.signup-feature-card p,
.signup-testimonial-card p,
.signup-form-card p,
.signup-benefit-list li {
  color: #556084;
  line-height: 1.65;
}

.signup-feature-card-large {
  grid-column: span 2;
}

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

.signup-gallery-card {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
}

.signup-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.signup-gallery-image-tight {
  object-position: center;
}

.signup-gallery-card figcaption {
  padding: 0.95rem 1rem 1.05rem;
  color: #556084;
  line-height: 1.6;
}

.signup-feature-card-media {
  min-height: 220px;
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.signup-feature-card-media-dark {
  padding: 1rem;
  background: linear-gradient(145deg, #15192f, #2d1f63);
}

.signup-mini-window {
  display: flex;
  gap: 0.35rem;
}

.signup-mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
}

.signup-mini-stage {
  margin-top: 1rem;
  height: calc(100% - 1rem);
  min-height: 160px;
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 0.8rem;
  position: relative;
}

.signup-mini-stage-panel {
  border-radius: 1rem;
}

.signup-mini-stage-panel-purple {
  background: linear-gradient(135deg, #7c4dff, #c278ff);
}

.signup-mini-stage-panel-light {
  background: linear-gradient(135deg, #f7f8ff, #dde3ff);
}

.signup-mini-stage-chip {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 14, 26, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.signup-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(109, 99, 255, 0.16), rgba(116, 85, 255, 0.26));
  color: #6d63ff;
  font-weight: 800;
  font-size: 0.9rem;
}

.signup-section-heading {
  display: grid;
  gap: 0.3rem;
}

.signup-section-heading span {
  color: #6d63ff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signup-testimonials {
  display: grid;
  gap: 1rem;
}

.signup-testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.signup-video-placeholder {
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(160deg, #0d101e, #1e2240 65%, #5d2bff 100%);
  box-shadow: 0 28px 60px rgba(15, 20, 53, 0.18);
}

.signup-video-player-ui {
  padding: 1rem;
}

.signup-video-topbar,
.signup-video-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.signup-video-topbar {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
}

.signup-video-topbar small,
.signup-video-meta small {
  color: rgba(255, 255, 255, 0.62);
}

.signup-video-canvas {
  aspect-ratio: 16 / 9;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(170, 138, 255, 0.35), rgba(170, 138, 255, 0) 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.signup-video-element {
  display: block;
  width: 100%;
  object-fit: cover;
}

.signup-video-element::-webkit-media-controls-panel {
  background: rgba(14, 16, 29, 0.92);
}

.signup-video-play {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  backdrop-filter: blur(8px);
}

.signup-video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-36%, -50%);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
}

.signup-video-controls {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.signup-video-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.signup-video-progress span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f6bff, #bb7dff);
}

.signup-testimonial-card {
  border-radius: 1.2rem;
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.signup-testimonial-card p {
  margin: 0;
}

.signup-testimonial-card strong {
  color: #1f2343;
}

.signup-testimonial-card span {
  color: #7d86a8;
  font-size: 0.9rem;
}

.signup-student-panel {
  border-radius: 1.3rem;
  padding: 1.35rem;
}

.signup-benefit-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.signup-form-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.signup-form-card {
  width: 100%;
  max-width: 420px;
  border-radius: 1.5rem;
  padding: 2rem;
  position: sticky;
  top: 2rem;
}

.signup-role-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.35rem;
  border-radius: 999px;
  background: #eef1ff;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
}

.signup-role-btn {
  border: none;
  min-height: 44px;
  border-radius: 999px;
  background: transparent;
  color: #5d6689;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.signup-role-btn.active {
  background: linear-gradient(135deg, #6d63ff, #7455ff);
  color: #fff;
  box-shadow: 0 12px 22px rgba(109, 99, 255, 0.28);
}

.signup-inline-note {
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: #f6f7ff;
  color: #556084;
  line-height: 1.6;
}

.signup-inline-note-highlight {
  background: linear-gradient(145deg, rgba(109, 99, 255, 0.12), rgba(116, 85, 255, 0.06));
  border: 1px solid rgba(109, 99, 255, 0.18);
}

@media (max-width: 1280px) {
  .signup-page {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 1.5rem;
  }

  .signup-professor-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  }

  .signup-testimonial-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup-builder-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .signup-builder-stage {
    min-height: 470px;
  }

  .detector-one {
    left: 120px;
  }

  .detector-two {
    left: 350px;
  }

  .detector-three {
    left: 560px;
  }
}

@media (max-width: 1080px) {
  .signup-page {
    grid-template-columns: 1fr;
    max-width: 920px;
  }

  .signup-form-card {
    position: static;
    max-width: none;
  }

  .signup-professor-hero,
  .signup-builder-showcase,
  .signup-feature-grid-rich {
    grid-template-columns: 1fr;
  }

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

  .signup-testimonial-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup-image-gallery,
  .signup-builder-workspace {
    grid-template-columns: 1fr;
  }

  .signup-builder-stage {
    min-height: 600px;
  }

  .signup-builder-sidebar {
    order: 2;
  }

  .signup-feature-card-large {
    grid-column: auto;
  }

  .signup-form-shell {
    order: -1;
  }

  .signup-hero {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .signup-page {
    padding: 1rem;
    gap: 1.25rem;
  }

  .signup-feature-grid {
    grid-template-columns: 1fr;
  }

  .signup-form-card {
    padding: 1.4rem;
  }

  .signup-hero-copy h1 {
    font-size: 2rem;
  }

  .signup-professor-hero {
    padding: 1.1rem;
  }

  .signup-professor-hero-copy h2 {
    font-size: 1.9rem;
  }

  .signup-professor-stats,
  .signup-testimonial-list,
  .signup-image-gallery {
    grid-template-columns: 1fr;
  }

  .signup-professor-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .signup-inline-cta,
  .signup-inline-cta-alt {
    width: 100%;
    min-width: 0;
  }

  .signup-feature-card-large {
    grid-column: auto;
  }

  .signup-builder-topbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .signup-builder-title-group strong {
    font-size: 1.18rem;
  }

  .signup-builder-stage {
    min-height: 760px;
    padding: 1.1rem;
  }

  .signup-builder-score {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .signup-builder-stage-copy {
    max-width: none;
  }

  .signup-builder-stage-copy h4 {
    font-size: 1.7rem;
  }

  .signup-builder-detector {
    position: relative;
    width: 100%;
    max-width: 220px;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin-top: 2.8rem;
  }

  .signup-builder-detector label {
    top: -30px;
  }

  .detector-one,
  .detector-two,
  .detector-three,
  .detector-four {
    margin-left: auto;
    margin-right: auto;
  }

  .signup-video-play {
    width: 72px;
    height: 72px;
  }
}

.course-list-panel {
  margin-top: 2rem;
}

.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  min-width: 0;
}

.course-grid.is-scrollable {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.45rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.course-grid.is-scrollable .course-card {
  flex: 0 0 min(320px, calc(100vw - 5rem));
}

#courseGrid.is-scrollable .course-card {
  flex-basis: calc((100% - 2.5rem) / 3);
}

.course-card {
  background: #ffffff;
  border-radius: 1.35rem;
  padding: 1.5rem;
  border: 1px solid #e5e8f2;
  box-shadow: 0 20px 35px rgba(15, 20, 53, 0.1);
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  min-width: 0;
  height: 100%;
}

.course-card-top {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
}

.course-card-headline {
  display: grid;
  gap: 0.35rem;
}

.course-cover-preview-card {
  aspect-ratio: 16 / 9;
  min-height: 80px;
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(109, 99, 255, 0.16);
  background:
    linear-gradient(155deg, rgba(16, 20, 52, 0.18), rgba(16, 20, 52, 0.02)),
    linear-gradient(135deg, #eef1ff, #dfe6ff);
  background-size: cover;
  background-position: center;
}

.course-cover-preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 38, 0.06), rgba(12, 16, 38, 0.72));
}

.course-cover-preview-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
  color: #fff;
}

.course-cover-preview-copy small {
  color: rgba(255, 255, 255, 0.84);
}

.admin-course-cover-preview {
  min-height: 92px;
  max-width: 300px;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
}

.admin-course-cover-preview .course-cover-preview-copy {
  gap: 0.15rem;
}

.compact-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.course-card.clickable-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 45px rgba(15, 20, 53, 0.18);
}

.course-module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  min-width: 0;
}

.course-module-cover-strip {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  min-width: 0;
  scrollbar-width: thin;
}

.course-module-cover {
  flex: 0 0 152px;
  border: none;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  cursor: pointer;
  text-align: left;
}

.course-module-cover.locked {
  opacity: 0.54;
}

.course-module-cover-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: linear-gradient(145deg, #edf1ff, #dbe3ff);
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 24px rgba(15, 20, 53, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-module-cover-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(109, 99, 255, 0.18);
}

.course-module-cover.active .course-module-cover-art {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(109, 99, 255, 0.2);
}

.course-module-cover-fallback {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #36406f;
  font-size: 1rem;
  font-weight: 800;
}

.course-module-cover-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #20284a;
  font-size: 0.8rem;
  line-height: 1.35;
}

.course-module-list.is-scrollable {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.course-module-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(109, 99, 255, 0.12);
  color: #3f3f6b;
  border: 1px solid rgba(109, 99, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  min-width: 110px;
  text-align: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.course-module-pill:hover,
.course-module-pill:focus-visible {
  background: rgba(109, 99, 255, 0.18);
  transform: translateY(-1px);
}

.course-module-pill:focus-visible {
  outline: 2px solid rgba(109, 99, 255, 0.4);
  outline-offset: 3px;
}

.course-module-pill.locked {
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.35);
  color: #8a5a11;
}

.course-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
}

.course-hero-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(109, 99, 255, 0.08), rgba(109, 99, 255, 0.02));
  border: 1px solid rgba(109, 99, 255, 0.12);
  min-width: 0;
}

.course-hero-cover {
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: linear-gradient(145deg, #e7ebff, #d7e0ff);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334073;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(15, 20, 53, 0.12);
  width: 100%;
}

.course-hero-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.course-hero-copy strong,
.course-card-headline strong {
  line-height: 1.3;
  word-break: break-word;
}

.course-hero-copy span {
  color: #5f678a;
  font-size: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-btn {
  width: 100%;
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  margin-top: auto;
}

.course-store-grid {
  align-items: stretch;
}

.store-course-card {
  justify-content: space-between;
}

.store-course-cover {
  min-height: 150px;
}

.store-course-description {
  color: #5f678a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.store-course-status {
  margin: 0;
  font-size: 0.78rem;
  color: #8b92b1;
}

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

.admin-course-store-badge,
.admin-course-request-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  border: 1px solid rgba(109, 99, 255, 0.12);
  background: rgba(109, 99, 255, 0.08);
  color: #5e54db;
}

.admin-course-store-badge.is-visible {
  background: rgba(66, 184, 131, 0.12);
  border-color: rgba(66, 184, 131, 0.24);
  color: #237454;
}

.admin-course-request-badge {
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.28);
  color: #935d03;
}

.admin-course-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
}

.admin-course-scroll {
  display: flex;
  gap: 1rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0.15rem 0.85rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.admin-course-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 calc((100% - 3rem) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.admin-course-card {
  position: relative;
  border: 1px solid #e5e8f2;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  box-shadow: 0 18px 34px rgba(15, 20, 53, 0.09);
  padding: 1rem;
}

.admin-course-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  min-width: 0;
  align-items: start;
}

.admin-course-thumb {
  aspect-ratio: 16 / 9;
  min-height: 150px;
}

.admin-course-copy {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.admin-course-copy > strong,
.admin-course-copy p,
.admin-course-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.access-request-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.85rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0.15rem 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 99, 255, 0.55) rgba(226, 231, 245, 0.9);
  -webkit-overflow-scrolling: touch;
}

.access-request-list::-webkit-scrollbar {
  height: 10px;
}

.access-request-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 231, 245, 0.9);
}

.access-request-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(109, 99, 255, 0.58);
}

.access-request-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  flex: 0 0 420px;
  width: 420px;
  min-width: 420px;
  max-width: calc(100vw - 3rem);
  padding: 1rem;
  border-radius: 1rem;
  background: #f9faff;
  border: 1px solid #eceef7;
  scroll-snap-align: start;
}

.access-request-main {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  align-items: start;
}

.access-request-cover {
  min-height: 96px;
  max-height: 120px;
  overflow: hidden;
}

.access-request-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.access-request-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.access-request-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  min-width: 0;
}

.access-request-list > p {
  flex: 1 0 100%;
}

.admin-subpanel {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #eceef7;
  display: grid;
  gap: 0.85rem;
}

.admin-subpanel h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-course-enrollment-panel {
  margin-bottom: 0.35rem;
}

.admin-course-list-panel {
  overflow: hidden;
}

.admin-course-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.admin-course-list-title {
  margin: 0;
  font-size: 1rem;
}

.admin-course-list-head small {
  color: #8b92b1;
  font-size: 0.82rem;
}

.admin-course-scroll > p {
  flex: 1 0 100%;
}

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

.admin-inline-form input,
.admin-inline-form select {
  flex: 1 1 220px;
  border: 1px solid #e3e5ec;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-size: 0.96rem;
  background: #fdfdff;
}

.compact-list {
  gap: 0.65rem;
}

.admin-course-cover-menu {
  position: static;
  width: 100%;
  margin-top: 0.35rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e5e8f2;
  box-shadow: 0 16px 28px rgba(15, 20, 53, 0.12);
  display: grid;
  gap: 0.85rem;
}

.admin-course-cover-menu[hidden] {
  display: none;
}

.admin-course-cover-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-course-cover-menu-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spacious-preview {
  min-height: 140px;
  max-width: none;
}

.status-pill-approved,
.status-pill-pending,
.status-pill-rejected {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-pill-pending {
  background: rgba(255, 184, 77, 0.16);
  color: #925903;
}

.status-pill-approved {
  background: rgba(66, 184, 131, 0.16);
  color: #237454;
}

.status-pill-rejected {
  background: rgba(255, 107, 107, 0.14);
  color: #c03b3b;
}

.icon-only-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-only-btn svg {
  width: 18px;
  height: 18px;
}

.badge-pill {
  background: rgba(110, 99, 255, 0.1);
  color: #6d63ff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.dashboard-hero h1 {
  margin: 0;
}

.module-preview {
  margin: 2rem 0 1rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(15, 20, 53, 0.15);
}

.module-preview h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.module-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.module-card {
  background: #fdfdff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #e5e8f2;
  box-shadow: 0 10px 20px rgba(15, 20, 53, 0.08);
}

.module-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.module-slider {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.module-slide {
  display: none;
}

.module-slide.active {
  display: block;
}

.module-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.module-slide-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(109, 99, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}

.indicator-dot.active {
  background: #6d63ff;
}

.module-slider.hidden {
  display: none;
}

.module-restricted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 20, 53, 0.15);
  text-align: center;
}

.module-shell {
  padding: 3rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.module-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 20, 53, 0.15);
}

.module-header-actions {
  display: flex;
  gap: 0.75rem;
}

.module-section {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(15, 20, 53, 0.08);
}

.section-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-header p {
  margin: 0.25rem 0 1rem;
  color: #8b92b1;
}

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

.timeline-item {
  border-left: 4px solid #6d63ff;
  padding-left: 1rem;
}

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

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-selection-panel {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.35rem;
  box-shadow: 0 25px 40px rgba(13, 13, 49, 0.1);
  border: 1px solid rgba(109, 99, 255, 0.2);
}

.module-selection-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.module-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.module-selection-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-start;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 99, 255, 0.3);
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}
.module-selection-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2343;
}
.module-selection-item small {
  display: block;
  font-size: 0.72rem;
  color: #7a7f9a;
  letter-spacing: 0.04em;
}

.module-selection-item.active {
  background: rgba(109, 99, 255, 0.1);
  border-color: #6d63ff;
}

.module-selection-item.locked {
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.35);
}

.module-selection-item.locked strong {
  color: #7a5311;
}

.floating-button-completed {
  box-shadow: 0 0 0 3px rgba(39, 211, 236, 0.28);
  filter: saturate(1.05);
}

.section-spotlight {
  animation: sectionSpotlight 1.8s ease;
}

@keyframes sectionSpotlight {
  0% {
    box-shadow: 0 0 0 0 rgba(109, 99, 255, 0.2);
  }
  35% {
    box-shadow: 0 0 0 8px rgba(109, 99, 255, 0.14);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(109, 99, 255, 0);
  }
}

.quiz-question {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #1f2343;
}

.quiz-options label {
  cursor: pointer;
}

.section-note {
  margin-top: 1rem;
  background: #f8f9ff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #eceef7;
}

.progress-marker.completed {
  opacity: 0.6;
}
.list-panel {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #f9faff;
  border: 1px solid #eceef7;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e6e8f4;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6d63ff;
}

.notification-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.notification-panel .notification {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #eff1fb;
}

.interactive-shell {
  margin-top: 1.5rem;
}

.interactive-viewer {
  margin-top: 1.5rem;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.stage-header h2 {
  margin: 0 0 0.2rem;
}

.stage-header .muted {
  margin: 0;
}

.stage-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.stage-viewer {
  min-height: 360px;
  border-radius: 1.25rem;
  border: 1px dashed rgba(109, 99, 255, 0.35);
  background: linear-gradient(160deg, rgba(109, 99, 255, 0.07), rgba(252, 252, 255, 0.9));
  position: relative;
  overflow: hidden;
}

.stage-viewer .canvas-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: rgba(15, 20, 53, 0.6);
  text-align: center;
}

.module-selection {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.module-selection .module-selection-btn {
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(109, 99, 255, 0.25);
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 20, 53, 0.08);
  cursor: pointer;
  font-size: 0.85rem;
  transition: border 0.2s ease, transform 0.2s ease;
}

.module-selection .module-selection-btn.active {
  border-color: #6d63ff;
  transform: translateY(-1px);
  background: rgba(109, 99, 255, 0.07);
}

.module-selection-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #eceef7;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 30px rgba(15, 20, 53, 0.08);
}

.module-selection-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.module-selection-actions .module-selection-btn {
  width: 100%;
}

.interactive-area {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #eceef7;
  min-height: 180px;
  box-shadow: inset 0 0 0 1px rgba(13, 16, 52, 0.05);
}

.admin-panel {
  display: grid;
  gap: 1.25rem;
}

.admin-panel .panel {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(15, 20, 53, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-assistant-panel {
  --assistant-ink: #17203a;
  --assistant-accent: #126b5c;
  --assistant-accent-soft: #e4f5ef;
  overflow: hidden;
  border: 1px solid rgba(18, 107, 92, 0.15);
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 187, 72, 0.18), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f6fbf8 100%) !important;
}

.admin-assistant-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 1.5rem;
  align-items: start;
}

.admin-assistant-head h2 {
  margin: 0.45rem 0 0.4rem;
  color: var(--assistant-ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.admin-assistant-head p {
  max-width: 760px;
  margin: 0;
  color: #66708b;
  line-height: 1.55;
}

.admin-assistant-security {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(18, 107, 92, 0.18);
  border-radius: 1rem;
  color: var(--assistant-accent);
  background: rgba(255, 255, 255, 0.78);
}

.admin-assistant-security span {
  color: #67718a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-assistant-suggestions {
  display: flex;
  gap: 0.65rem;
  margin: 1.2rem 0 0.9rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-assistant-suggestions button {
  flex: 0 0 auto;
  border: 1px solid #dce7e2;
  border-radius: 999px;
  padding: 0.62rem 0.85rem;
  color: #36584f;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.admin-assistant-suggestions button:hover {
  border-color: var(--assistant-accent);
  background: var(--assistant-accent-soft);
}

.admin-assistant-conversation {
  min-height: 330px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #e2ebe7;
  border-radius: 1.15rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(18, 107, 92, 0.045) 31px 32px);
}

.admin-assistant-message {
  display: flex;
  gap: 0.75rem;
  width: min(88%, 780px);
  margin-bottom: 0.85rem;
}

.admin-assistant-message.user {
  margin-left: auto;
  justify-content: flex-end;
}

.admin-assistant-message > div {
  min-width: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid #e0e8e4;
  border-radius: 0.35rem 1rem 1rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 58, 0.06);
}

.admin-assistant-message.user > div {
  border-color: #1c7566;
  border-radius: 1rem 0.35rem 1rem 1rem;
  color: #fff;
  background: var(--assistant-accent);
}

.admin-assistant-message strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.admin-assistant-message p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-assistant-avatar {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--assistant-accent);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(18, 107, 92, 0.2);
}

.admin-assistant-proposal {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid #efc86e;
  border-radius: 1rem;
  background: #fffaf0;
}

.admin-assistant-proposal.hidden {
  display: none;
}

.admin-assistant-proposal-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.admin-assistant-proposal-head h3 {
  margin: 0;
  color: #5b4519;
}

.admin-assistant-action-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0;
}

.admin-assistant-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  background: #fff;
}

.admin-assistant-action-index {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #9a6b0b;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-assistant-action.dangerous {
  border: 1px solid #f0b7b7;
  background: #fff7f7;
}

.admin-assistant-action.dangerous .admin-assistant-action-index {
  background: #c63b3b;
}

.admin-assistant-action p {
  margin: 0.2rem 0 0;
  color: #706342;
  font-size: 0.88rem;
}

.admin-assistant-proposal-actions,
.admin-assistant-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.admin-assistant-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  resize: vertical;
}

.admin-assistant-form .primary-btn {
  width: auto;
  min-width: 112px;
}

.admin-assistant-footer {
  justify-content: space-between;
  margin-top: 0.65rem;
  color: #7b8499;
  font-size: 0.8rem;
}

.admin-assistant-footer .chat-link-btn {
  flex: 0 0 auto;
}

.admin-chat-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  min-height: 620px;
}

.admin-chat-sidebar,
.admin-chat-panel {
  border: 1px solid #e8ebf5;
  border-radius: 1.1rem;
  background: #fbfcff;
}

.admin-chat-sidebar {
  padding: 0.8rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  overflow: auto;
}

.admin-chat-course-item {
  width: 100%;
  border: 1px solid #e5e8f2;
  background: #fff;
  border-radius: 1rem;
  padding: 0.85rem 0.9rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
}

.admin-chat-course-item.active {
  border-color: #6d63ff;
  box-shadow: 0 0 0 3px rgba(109, 99, 255, 0.12);
}

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

.admin-chat-course-item p,
.admin-chat-course-item small {
  margin: 0;
}

.unread-badge {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-chat-panel-head {
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid #e8ebf5;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eff1fb;
}

.table td strong {
  display: block;
  font-size: 0.95rem;
}

#adminReportsSection .progress-table {
  table-layout: fixed;
}

#adminReportsSection .progress-table th,
#adminReportsSection .progress-table td {
  vertical-align: top;
  padding: 0.75rem 0.55rem;
}

#adminReportsSection .progress-table th:nth-child(1),
#adminReportsSection .progress-table td:nth-child(1) {
  width: 16%;
}

#adminReportsSection .progress-table th:nth-child(2),
#adminReportsSection .progress-table td:nth-child(2) {
  width: 14%;
}

#adminReportsSection .progress-table th:nth-child(3),
#adminReportsSection .progress-table td:nth-child(3) {
  width: 14%;
}

#adminReportsSection .progress-table th:nth-child(4),
#adminReportsSection .progress-table td:nth-child(4) {
  width: 22%;
}

#adminReportsSection .progress-table th:nth-child(5),
#adminReportsSection .progress-table td:nth-child(5) {
  width: 14%;
}

#adminReportsSection .progress-table th:nth-child(6),
#adminReportsSection .progress-table td:nth-child(6) {
  width: 20%;
}

#adminReportsSection .report-action-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

#adminReportsSection .report-action-btn {
  width: 100%;
  min-width: 0;
}

#adminReportsSection .module-performance-toggle {
  width: 100%;
  min-width: 0;
  padding-inline: 0.55rem;
}

#adminReportsSection .module-performance-toggle-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle-pill {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .page-shell {
    grid-template-columns: 1fr;
  }
  .mobile-sidenav-toggle {
    display: inline-flex;
    position: fixed;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 60;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(10, 16, 41, 0.92);
    color: #fff;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 16px 32px rgba(7, 10, 31, 0.28);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }
  .mobile-sidenav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(6, 10, 26, 0.5);
    backdrop-filter: blur(4px);
  }
  .mobile-sidenav-backdrop.is-visible {
    display: block;
  }
  .sidenav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(320px, calc(100vw - 2.5rem));
    max-width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 4.4rem 1rem 1rem;
    background:
      radial-gradient(circle at top left, rgba(109, 99, 255, 0.22), transparent 42%),
      linear-gradient(135deg, #0a1029 0%, #121938 55%, #18224b 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(7, 10, 31, 0.28);
    backdrop-filter: blur(14px);
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }
  .sidenav.is-open {
    transform: translateX(0);
  }
  .sidenav h1 {
    font-size: 1.15rem;
    letter-spacing: 0.03em;
  }
  .sidenav p {
    max-width: 42rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.74);
  }
  .nav-menu li {
    flex: 0 0 auto;
  }
  .nav-link {
    width: 100%;
    min-width: 0;
    padding: 0.72rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
  }
  .nav-link.active {
    background: linear-gradient(135deg, rgba(119, 102, 255, 0.95), rgba(76, 66, 201, 0.95));
    color: #fff;
    box-shadow:
      0 10px 24px rgba(92, 81, 255, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .nav-link.active span {
    opacity: 1;
  }
  .nav-menu li span {
    opacity: 0.82;
  }
  .course-hero-preview {
    grid-template-columns: 1fr;
  }
  .course-hero-cover {
    width: 100%;
  }
  .course-module-cover {
    flex-basis: 128px;
  }
  .course-module-cover-art {
    width: 100%;
  }
  .admin-course-item,
  .admin-chat-layout,
  .access-request-card,
  .access-request-main,
  .admin-course-content,
  .list-item {
    grid-template-columns: 1fr;
  }
  .admin-course-actions,
  .access-request-actions {
    justify-content: flex-start;
  }
  .admin-course-scroll {
    scroll-snap-type: x mandatory;
  }
  .access-request-list {
    scroll-snap-type: x mandatory;
  }
  .admin-course-item {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
  .access-request-card {
    flex: 0 0 min(86vw, 390px);
    width: min(86vw, 390px);
    min-width: min(86vw, 390px);
  }
  .admin-course-actions .secondary-btn {
    flex: 1 1 140px;
  }
  .access-request-actions {
    min-width: 0;
  }
  .admin-inline-form {
    flex-direction: column;
    align-items: stretch;
  }
  .course-grid.is-scrollable .course-card {
    flex-basis: min(280px, calc(100vw - 4rem));
  }
  #courseGrid.is-scrollable .course-card {
    flex-basis: min(280px, calc(100vw - 4rem));
  }
}

@media (max-width: 768px) {
  .sidenav {
    width: min(300px, calc(100vw - 2rem));
    padding: 4.15rem 0.85rem 0.85rem;
    border-top-right-radius: 1.1rem;
    border-bottom-right-radius: 1.1rem;
  }

  .sidenav h1 {
    font-size: 1.05rem;
  }

  .sidenav p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .nav-link {
    width: 100%;
    min-width: 0;
    padding: 0.68rem 0.92rem;
    font-size: 0.84rem;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .nav-link span {
    white-space: normal;
    line-height: 1.25;
  }

  .main-panel {
    padding: 4.5rem 1rem 1rem;
    height: auto;
    min-height: 100vh;
  }

  .admin-course-scroll {
    gap: 0.85rem;
    padding-bottom: 0.7rem;
  }

  .admin-course-item {
    flex-basis: min(100%, 360px);
  }

  .admin-course-card {
    padding: 0.85rem;
  }

  .admin-course-list-head {
    display: grid;
    gap: 0.25rem;
  }

  .panel[data-section="adminSettingsSection"] {
    min-width: 0;
    overflow: hidden;
  }

  .panel[data-section="adminSettingsSection"] h2,
  .panel[data-section="adminSettingsSection"] h3,
  .panel[data-section="adminSettingsSection"] p,
  .panel[data-section="adminSettingsSection"] small,
  .panel[data-section="adminSettingsSection"] label {
    overflow-wrap: anywhere;
  }

  .panel[data-section="adminSettingsSection"] form,
  .panel[data-section="adminSettingsSection"] .field-group,
  .panel[data-section="adminSettingsSection"] .form-actions,
  .panel[data-section="adminSettingsSection"] .list-panel {
    min-width: 0;
  }

  .panel[data-section="adminSettingsSection"] input,
  .panel[data-section="adminSettingsSection"] select,
  .panel[data-section="adminSettingsSection"] textarea,
  .panel[data-section="adminSettingsSection"] button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .panel[data-section="adminSettingsSection"] .form-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem !important;
  }

  .panel[data-section="adminSettingsSection"] .field-group[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem !important;
  }

  .panel[data-section="adminSettingsSection"] .field-group[style*="display:flex"] > div {
    min-width: 0;
    padding-top: 0 !important;
  }

  .panel[data-section="adminSettingsSection"] .field-group[style*="display:flex"] > div label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .dashboard-hero,
  .stage-header {
    flex-direction: column;
    align-items: stretch;
  }

  .stage-header {
    gap: 0.5rem;
    margin-bottom: 0.45rem;
  }

  .stage-header > div:first-child {
    display: none;
  }

  .course-list-panel {
    margin-top: 1.25rem;
  }

  .course-grid,
  .course-grid.is-scrollable {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .course-grid.is-scrollable .course-card,
  #courseGrid.is-scrollable .course-card {
    flex: 1 1 auto;
    flex-basis: auto;
  }

  .course-card {
    min-width: 0;
    padding: 1.1rem;
  }

  .course-card-meta {
    align-items: flex-start;
  }

  .course-module-cover-strip {
    gap: 0.65rem;
    padding-bottom: 0.1rem;
  }

  .course-module-cover {
    flex-basis: 124px;
  }

  .module-selection-panel {
    padding: 1rem;
    margin-top: 1rem;
  }

  .module-selection-list {
    flex-direction: column;
  }

  .module-selection-item {
    width: 100%;
    border-radius: 1rem;
    justify-content: space-between;
  }

  .stage-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .stage-nav > .secondary-btn.small,
  .stage-nav > .chat-btn,
  .stage-nav > .viewer-pen-tool-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-inline: 0.65rem;
  }

  .stage-nav > .viewer-pen-controls {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    border-radius: 1rem;
    padding: 0.65rem 0.75rem;
  }

  .stage-nav > .viewer-pen-controls label {
    flex: 1 1 120px;
    justify-content: center;
  }
}

/*# sourceMappingURL=style.css.map */

/* ── Chat Modal ───────────────────────────────────────────── */
.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}

.chat-modal.hidden {
  display: none;
}

.chat-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 38, 0.45);
  backdrop-filter: blur(4px);
  pointer-events: all;
  cursor: pointer;
}

.chat-modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 2rem));
  height: min(620px, calc(100vh - 3rem));
  background: #ffffff;
  border-radius: 1.4rem;
  box-shadow: 0 30px 70px rgba(15, 20, 53, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: all;
  animation: chatSlideIn 0.25s ease;
}

@keyframes chatSlideIn {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.chat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid #e8ebf5;
  flex-shrink: 0;
}

.chat-modal-header h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  color: #1f2343;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #6d63ff, #7455ff);
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: #f0f1fa;
  color: #1f2343;
  border-bottom-left-radius: 0.3rem;
}

.chat-bubble.admin-msg {
  align-self: flex-start;
  background: linear-gradient(135deg, #fff8e6, #fff3cc);
  border: 1px solid rgba(255, 184, 77, 0.35);
  color: #6b4c00;
  border-bottom-left-radius: 0.3rem;
}

.chat-bubble-meta {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 0.2rem;
  display: block;
}

.chat-bubble-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
}

.chat-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.72;
}

.chat-link-btn:hover {
  opacity: 1;
}

.chat-reply-quote,
.chat-reply-draft {
  border-radius: 0.9rem;
  border-left: 4px solid #6d63ff;
  background: rgba(109, 99, 255, 0.08);
  padding: 0.55rem 0.7rem;
}

.chat-reply-quote {
  margin-bottom: 0.45rem;
}

.chat-reply-draft {
  margin: 0.9rem 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.chat-reply-draft.hidden {
  display: none;
}

.chat-reply-quote strong,
.chat-reply-draft strong {
  display: block;
  font-size: 0.76rem;
  color: #4c42c9;
  margin-bottom: 0.15rem;
}

.chat-reply-quote p,
.chat-reply-draft p {
  margin: 0;
  color: #4f567f;
  font-size: 0.8rem;
  line-height: 1.35;
}

.chat-input-area {
  display: flex;
  gap: 0.65rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid #e8ebf5;
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  border: 1px solid #e3e5ec;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  background: #fdfdff;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-area input:focus {
  border-color: #6d63ff;
}

.chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(109, 99, 255, 0.3);
  background: rgba(109, 99, 255, 0.1);
  color: #4c42c9;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-btn:hover {
  background: rgba(109, 99, 255, 0.2);
}

.admin-chat-messages {
  min-height: 0;
}

.admin-chat-input-area {
  background: #fff;
}

.notification a {
  color: #4c42c9;
  font-weight: 700;
  text-decoration: none;
}

.notification a:hover {
  text-decoration: underline;
}

.notification-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0 0.25rem;
}

.notification-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(109, 99, 255, 0.18);
  border-radius: 999px;
  background: rgba(109, 99, 255, 0.08);
  color: #4c42c9;
  padding: 0.38rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.notification-attachment:disabled {
  cursor: wait;
  opacity: 0.65;
}

.notification-attachment-icon {
  border-radius: 999px;
  background: #ffffff;
  color: #6d63ff;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.3rem;
}

.module-performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.module-performance-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  min-width: 132px;
  white-space: nowrap;
}

.module-performance-toggle::after {
  content: "▾";
  font-size: 0.72rem;
  transition: transform 0.18s ease;
}

.module-performance-toggle.is-open::after {
  transform: rotate(180deg);
}

.module-performance-toggle-meta {
  border-radius: 999px;
  padding: 0.1rem 0.38rem;
  background: rgba(109, 99, 255, 0.12);
  color: #4c42c9;
  font-size: 0.72rem;
  font-weight: 800;
}

.module-performance-detail-row > td {
  padding-top: 0 !important;
  border-bottom-color: transparent;
}

.module-performance-detail-row[hidden] {
  display: none !important;
}

.module-performance-detail-card {
  margin: 0.25rem 0 0.95rem;
  border: 1px solid #e1e5f4;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
  padding: 1rem;
  box-shadow: 0 18px 36px rgba(31, 35, 67, 0.08);
}

.module-performance-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.module-performance-detail-head strong {
  color: #20243f;
  font-size: 0.98rem;
}

.module-performance-detail-head span {
  min-width: 0;
  color: #8b92b1;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-performance-card {
  border: 1px solid #e8ebf5;
  border-radius: 1.05rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  min-width: 0;
  padding: 0.8rem;
  box-shadow: 0 10px 24px rgba(32, 36, 70, 0.06);
  overflow: hidden;
}

.module-performance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.module-performance-head strong {
  color: #222642;
  font-size: 0.88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-performance-head span {
  flex: 0 0 auto;
  color: #4c42c9;
  font-weight: 800;
}

.mini-progress-bar {
  display: block;
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: #e8ebf5;
  overflow: hidden;
}

.mini-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d63ff, #00b8a9);
}

.mini-progress-bar.video span {
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.mini-progress-bar.slides span {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.mini-progress-bar.grade span {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.module-performance-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.55rem 0;
  color: #5f678a;
  font-size: 0.72rem;
}

.module-performance-metrics span {
  min-width: 0;
  border-radius: 0.72rem;
  background: rgba(109, 99, 255, 0.06);
  padding: 0.42rem 0.5rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.module-performance-metrics b {
  display: block;
  margin-bottom: 0.12rem;
  color: #222642;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.module-performance-bars {
  display: grid;
  gap: 0.35rem;
}

.module-performance-bars label {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  color: #8b92b1;
  font-size: 0.72rem;
  font-weight: 700;
}

.student-module-performance {
  margin-top: 0.85rem;
}

.student-module-performance .module-performance-grid {
  min-width: 0;
  max-height: 360px;
  overflow: auto;
  padding-right: 0.15rem;
  width: 100%;
}

.student-module-performance .module-performance-card {
  padding: 0.65rem;
}

.student-module-performance .module-performance-metrics {
  font-size: 0.74rem;
}

.student-module-performance.compact .module-performance-grid {
  max-height: 460px;
}

@media (max-width: 900px) {
  .module-performance-grid {
    grid-template-columns: 1fr;
  }

  .module-performance-metrics {
    grid-template-columns: 1fr;
  }
}

/* Admin layout: fluid shell, contained content and mobile-first controls. */
html,
body {
  max-width: 100%;
}

body.admin-page {
  overflow-x: hidden;
}

.admin-page .page-shell {
  overflow-x: clip;
}

.admin-page .main-panel {
  overflow-x: hidden;
}

.admin-panel,
.admin-panel > .panel,
.admin-panel form,
.admin-panel .field-group,
.admin-panel .list-panel,
.admin-panel .list-item,
.admin-panel .module-list-item,
.admin-panel .table-wrapper,
.admin-panel .form-actions {
  min-width: 0;
  max-width: 100%;
}

.admin-panel .panel {
  border: 1px solid rgba(224, 228, 244, 0.9);
  box-shadow: 0 18px 42px rgba(24, 31, 72, 0.1);
}

.admin-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-panel select,
.admin-panel textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #dde2f1;
  border-radius: 0.9rem;
  padding: 0.88rem 0.95rem;
  background: #fdfdff;
  color: #1f2343;
  font: inherit;
}

.admin-panel textarea {
  resize: vertical;
}

.admin-panel input[type="checkbox"],
.admin-panel input[type="radio"] {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

.admin-panel .toggle-inline,
.admin-panel .field-group > label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #505978;
  line-height: 1.45;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.admin-header-actions .primary-btn,
.admin-header-actions .secondary-btn {
  width: auto;
  text-align: center;
  text-decoration: none;
}

.admin-table-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-panel .table-wrapper {
  overflow-x: auto;
  border-radius: 1rem;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  body.admin-page {
    background:
      radial-gradient(circle at 100% 0%, rgba(109, 99, 255, 0.14), transparent 34rem),
      #f3f5fb;
  }

  .admin-page .mobile-sidenav-toggle {
    top: 0.7rem;
    left: 0.75rem;
    min-width: 84px;
    min-height: 42px;
    padding: 0.62rem 0.9rem;
    font-size: 0.88rem;
  }

  .admin-page .main-panel {
    width: 100%;
    max-width: 100vw;
    padding: 4.25rem 0.75rem 1rem;
  }

  .admin-page .header-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .admin-page .header-panel h2 {
    margin: 0;
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
    line-height: 1.15;
  }

  .admin-page .header-panel p {
    margin: 0.4rem 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .admin-header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .admin-header-actions .primary-btn,
  .admin-header-actions .secondary-btn {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
  }

  .admin-panel {
    gap: 0.9rem;
  }

  .admin-panel .panel {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(24, 31, 72, 0.08);
  }

  .admin-panel h2 {
    margin-top: 0;
    font-size: clamp(1.15rem, 5vw, 1.4rem);
    overflow-wrap: anywhere;
  }

  .admin-panel h3,
  .admin-panel h4,
  .admin-panel p,
  .admin-panel small,
  .admin-panel label,
  .admin-panel strong,
  .admin-panel span {
    overflow-wrap: anywhere;
  }

  .admin-panel .field-group {
    margin-bottom: 0.85rem;
  }

  .admin-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .admin-panel select,
  .admin-panel textarea {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    padding: 0.78rem 0.85rem;
    border-radius: 0.8rem;
    font-size: 16px;
  }

  .admin-panel textarea {
    min-height: 92px;
  }

  .admin-panel .form-actions,
  .admin-panel .compact-inline,
  .admin-panel .admin-inline-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.6rem !important;
  }

  .admin-panel .form-actions > *,
  .admin-panel .compact-inline > *,
  .admin-panel .admin-inline-form > *,
  #adminProfessorList .form-actions > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .admin-panel .icon-only-btn {
    width: 44px !important;
    min-width: 44px !important;
    justify-self: start;
  }

  .admin-panel .primary-btn,
  .admin-panel .secondary-btn {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-panel .list-item,
  .admin-panel .module-list-item,
  .access-request-card,
  .access-request-main {
    width: 100%;
    min-width: 0;
  }

  .access-request-card {
    flex: 0 0 min(86vw, 390px);
    width: min(86vw, 390px);
    min-width: min(86vw, 390px);
  }

  #adminProfessorList .module-list-item {
    padding: 1rem;
    border: 1px solid #e7eaf4;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8faff);
  }

  #adminProfessorList .form-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem !important;
  }

  .admin-course-scroll {
    width: 100%;
    max-width: 100%;
    overscroll-behavior-inline: contain;
  }

  .admin-course-item {
    flex: 0 0 calc(100vw - 3.5rem);
    max-width: 360px;
  }

  .admin-course-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-course-actions > * {
    width: 100%;
    min-width: 0;
  }

  .admin-course-cover-preview,
  .admin-course-thumb {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
  }

  .admin-chat-layout {
    min-height: 0;
    gap: 0.75rem;
  }

  .admin-assistant-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .admin-assistant-security {
    width: 100%;
  }

  .admin-assistant-conversation {
    min-height: 300px;
    max-height: 52vh;
    padding: 0.75rem;
  }

  .admin-assistant-message {
    width: 96%;
  }

  .admin-assistant-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-assistant-form .primary-btn,
  .admin-assistant-proposal-actions > button {
    width: 100%;
  }

  .admin-chat-sidebar {
    max-height: 240px;
  }

  .admin-chat-panel {
    min-height: 440px;
  }

  .admin-chat-panel-head {
    padding: 0.85rem;
  }

  .admin-chat-messages {
    min-height: 240px;
    max-height: 52vh;
  }

  .admin-chat-input-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.75rem;
  }

  .admin-chat-input-area input,
  .admin-chat-input-area button {
    width: 100% !important;
    min-width: 0;
  }

  .admin-table-section-head,
  .admin-course-list-head,
  .module-performance-detail-head,
  .admin-report-modal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.35rem;
  }

  .admin-responsive-table,
  .admin-responsive-table thead,
  .admin-responsive-table tbody,
  .admin-responsive-table tr,
  .admin-responsive-table td {
    display: block;
    width: 100%;
  }

  .admin-responsive-table thead {
    display: none;
  }

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

  .admin-responsive-table tbody > tr:not(.module-performance-detail-row) {
    padding: 0.85rem;
    border: 1px solid #e5e9f4;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    box-shadow: 0 8px 20px rgba(24, 31, 72, 0.06);
  }

  .admin-responsive-table td {
    display: grid !important;
    grid-template-columns: minmax(86px, 104px) minmax(0, 1fr) !important;
    align-items: start;
    gap: 0.7rem !important;
    padding: 0.55rem 0 !important;
    border-bottom: 1px solid #edf0f7;
    overflow-wrap: anywhere;
  }

  #adminReportsSection .admin-responsive-table,
  #adminReportsSection .admin-responsive-table tbody,
  #adminReportsSection .admin-responsive-table tr,
  #adminReportsSection .admin-responsive-table td {
    width: 100% !important;
    min-width: 0;
  }

  #adminReportsSection .admin-responsive-table {
    table-layout: auto;
  }

  .admin-responsive-table td:last-child {
    border-bottom: 0;
  }

  .admin-responsive-table td::before {
    content: attr(data-label) !important;
    color: #767f9f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .admin-responsive-table td:not([data-label])::before,
  .admin-responsive-table td[colspan]::before {
    content: none !important;
  }

  .admin-responsive-table td[colspan] {
    display: block !important;
    padding: 0 !important;
    border: 0;
  }

  .admin-responsive-table .table-actions,
  .admin-responsive-table .report-action-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
  }

  .admin-responsive-table .table-actions > *,
  .admin-responsive-table .report-action-group > * {
    width: 100% !important;
    min-width: 0;
  }

  .module-performance-detail-row {
    padding: 0;
    background: transparent;
  }

  .module-performance-detail-card {
    margin: 0;
    padding: 0.85rem;
    overflow: hidden;
  }

  .module-performance-detail-head span {
    white-space: normal;
  }

  #adminReportsSection .module-performance-grid {
    display: flex;
    gap: 0.7rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 0 0.55rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  #adminReportsSection .module-performance-card {
    flex: 0 0 min(280px, calc(100vw - 6rem));
    scroll-snap-align: start;
  }

  #adminReportsSection .module-performance-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-performance-toggle {
    width: 100%;
    min-width: 0;
  }

  .admin-report-modal-card {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100vh - 1rem);
    margin: 0.5rem;
    border-radius: 1rem;
  }

  .admin-report-modal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
  }

  .admin-report-modal-head > div {
    min-width: 0;
  }

  .admin-report-modal-head .badge {
    display: none;
  }

  .admin-report-modal-head h3 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
  }

  .admin-report-modal-head p:not(.badge) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
  }

  .admin-report-modal-head .secondary-btn {
    width: auto;
    min-width: 0;
    padding: 0.45rem 0.75rem;
  }

  .admin-report-timeline {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.9rem;
  }

  .admin-report-frame {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .admin-page .main-panel {
    padding-inline: 0.6rem;
  }

  .header-panel,
  .admin-panel .panel {
    padding: 0.85rem;
  }

  .admin-header-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-responsive-table td {
    grid-template-columns: minmax(74px, 90px) minmax(0, 1fr) !important;
    gap: 0.55rem !important;
  }

  .admin-course-item {
    flex-basis: calc(100vw - 2.9rem);
  }
}
