:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #18212f;
  --muted: #677489;
  --line: #dce3ec;
  --panel: #ffffff;
  --primary: #1463ff;
  --accent: #12a179;
  --danger: #a84a36;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(20, 99, 255, 0.14), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(18, 161, 121, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 58%);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  color: #10233f;
}

.topbar nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

main {
  width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 160px);
}

.home-hero {
  position: relative;
  width: min(1120px, 100%);
  min-height: min(78vh, 690px);
  margin: 24px auto 0;
  padding: clamp(28px, 3.5vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(20, 99, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 241, 255, 0.72)),
    repeating-linear-gradient(90deg, rgba(20, 99, 255, 0.05) 0 1px, transparent 1px 52px);
  box-shadow: 0 24px 70px rgba(24, 33, 47, 0.08);
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: end;
  column-gap: clamp(44px, 7vw, 110px);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(20, 99, 255, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: 4%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 99, 255, 0.18), transparent 62%);
  pointer-events: none;
}

.hero-copy,
.home-entry {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: end;
  padding-bottom: clamp(210px, 18vh, 250px);
}

.home-entry {
  align-self: end;
  padding-bottom: clamp(155px, 13vh, 200px);
}

.hero h1,
.section-head h1,
.panel h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}

.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.tech-title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  color: #0f2442;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 10px 28px rgba(20, 99, 255, 0.14);
}

.tech-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.2) 38%, rgba(54, 211, 255, 0.92) 50%, rgba(255, 255, 255, 0.2) 62%, transparent 100%);
  transform: translateX(-120%);
  animation: titleScan 3.2s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes titleScan {
  0% {
    transform: translateX(-120%);
  }
  46%,
  100% {
    transform: translateX(120%);
  }
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-chips span {
  border: 1px solid rgba(20, 99, 255, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #275078;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.entrances {
  display: grid;
  gap: 16px;
}

.grouped-entrances {
  gap: 22px;
}

.entrance,
.entrance-group,
.panel,
.course,
.user-row,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(24, 33, 47, 0.06);
}

.entrance {
  display: flex;
  justify-content: space-between;
  padding: 28px;
}

.entrance strong {
  font-size: 22px;
}

.entrance span {
  color: var(--muted);
}

.entrance.user {
  border-left: 5px solid var(--primary);
}

.entrance.register {
  border-left: 5px solid #ee7b22;
}

.entrance.admin {
  border-left: 5px solid var(--accent);
}

.entrance.super {
  border-left: 5px solid #7161ef;
}

.entrance-group {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.home-entry {
  max-width: 440px;
  justify-self: end;
}

.home-entry .entrance-group {
  padding: 34px;
  background: rgba(255, 255, 255, 0.9);
}

.entrance-group strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.entrance-group span {
  color: var(--muted);
  line-height: 1.5;
}

.user-group {
  border-left: 5px solid var(--primary);
}

.admin-group {
  border-left: 5px solid var(--accent);
}

.entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.entry-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 800;
}

.entry-action:hover,
.entry-action:focus {
  border-color: var(--primary);
  outline: none;
}

.entry-action.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.entry-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.panel {
  padding: 32px;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.narrow {
  max-width: 430px;
  margin: 48px auto;
}

.stack {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(20, 99, 255, 0.16);
  outline-offset: 1px;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font-size: 16px;
}

input[type="file"] {
  padding: 10px 12px;
}

.upload-course-form.is-uploading > label,
.upload-course-form.is-uploading > .inline-check {
  opacity: .48;
  pointer-events: none;
}

.upload-submit-button {
  position: relative;
}

.upload-submit-button .button-loading,
.upload-course-form.is-uploading .upload-submit-button .button-label {
  display: none;
}

.upload-course-form.is-uploading .upload-submit-button .button-loading {
  display: inline;
}

.upload-course-form.is-uploading .upload-submit-button {
  cursor: wait;
  opacity: .82;
}

.upload-busy {
  display: none;
  gap: 8px;
  justify-items: center;
  padding: 18px;
  border: 1px solid rgba(20, 99, 255, .16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255, 255, 255, .94));
  color: #2d4261;
  text-align: center;
  box-shadow: 0 16px 34px rgba(38, 89, 169, .1);
}

.upload-course-form.is-uploading .upload-busy {
  display: grid;
}

.upload-busy strong {
  color: var(--ink);
}

.upload-busy small {
  color: var(--muted);
  line-height: 1.5;
}

.upload-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(20, 99, 255, .16);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: uploadSpinner 820ms linear infinite;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.button-link.light {
  flex: 0 0 auto;
  background: white;
  color: var(--ink);
}

.button-link.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--primary);
}

button:disabled {
  background: #c6cfdb;
  cursor: not-allowed;
}

.hint,
.flash {
  color: var(--muted);
}

.flash {
  width: min(1120px, 90vw);
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid #f0cf8a;
  border-radius: 6px;
  background: #fff7e5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.compact {
  margin: 26px 0 18px;
}

.metric {
  min-width: 140px;
  padding: 18px;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 34px;
}

.metric span {
  color: var(--muted);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.learn-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.course-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.course-sidebar h2,
.course-category h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.course-sidebar a {
  min-height: 42px;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 700;
}

.course-sidebar a:hover,
.course-sidebar a:focus,
.course-sidebar a.active {
  background: #eaf1ff;
  color: var(--primary);
  outline: none;
}

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

.course-carousel {
  position: relative;
  height: 310px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  color: white;
  opacity: 0;
  animation: carouselFade 12s infinite;
}

.carousel-slide:nth-child(2) {
  animation-delay: 4s;
}

.carousel-slide:nth-child(3) {
  animation-delay: 8s;
}

.carousel-slide h1 {
  max-width: 620px;
  margin: 16px 0 10px;
  font-size: 36px;
  line-height: 1.16;
}

.carousel-slide p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.carousel-slide button {
  flex: 0 0 auto;
  background: white;
  color: var(--ink);
}

@keyframes carouselFade {
  0%,
  8% {
    opacity: 0;
  }
  14%,
  38% {
    opacity: 1;
  }
  44%,
  100% {
    opacity: 0;
  }
}

.course-category {
  scroll-margin-top: 90px;
  margin-top: 28px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.video-card {
  min-width: 0;
}

.video-card.locked {
  opacity: 0.72;
}

.video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #1f2937;
  box-shadow: 0 12px 24px rgba(24, 33, 47, 0.12);
}

.video-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 32px
    );
}

.video-preview video,
.video-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview img {
  display: block;
}

.watch-progress-badge,
.player-progress-label {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(8, 18, 36, .78);
  color: white;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}

.play-mark::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 17px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 17px solid var(--ink);
}

.duration {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.58);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.preview-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.76));
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.video-meta {
  padding: 12px 2px 0;
}

.video-meta p {
  min-height: 48px;
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.video-meta button {
  width: 100%;
}

.locked-course-button {
  background: #c6cfdb;
}

.video-meta .button-link {
  width: 100%;
  margin-top: 8px;
}

.course-player-page {
  display: grid;
  gap: 22px;
}

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

.lesson-navigation .button-link {
  margin: 0;
}

.lesson-navigation .disabled {
  cursor: default;
  opacity: .45;
}

.back-link {
  width: fit-content;
  color: var(--primary);
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 18px 40px rgba(24, 33, 47, 0.14);
}

.player-progress-label {
  bottom: 54px;
  pointer-events: none;
}

.lesson-video,
.empty-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.lesson-video {
  background: #111827;
}

.empty-player {
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.lesson-info {
  max-width: 760px;
}

.lesson-info h1 {
  margin: 16px 0 10px;
  font-size: 34px;
}

.lesson-info p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.lesson-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}

.lesson-actions {
  margin-top: 22px;
}

.document-page {
  display: grid;
  gap: 20px;
}

.document-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.document-head h1 {
  margin: 0;
  font-size: 34px;
}

.document-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
  line-height: 1.8;
}

.document-preview p {
  margin: 0 0 16px;
}

.support-dialog {
  width: min(420px, 90vw);
  border: 0;
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(24, 33, 47, 0.22);
}

.support-dialog::backdrop {
  background: rgba(24, 33, 47, 0.35);
}

.support-dialog h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.support-dialog p {
  color: var(--muted);
  line-height: 1.7;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  border-radius: 50%;
  padding: 0;
  background: #eef2f7;
  color: var(--ink);
}

.wechat-box {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.wechat-box span,
.wechat-box strong {
  display: block;
}

.wechat-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wechat-box strong {
  margin-top: 6px;
  font-size: 24px;
}

.tone-blue {
  background: linear-gradient(135deg, #0d47a1, #1e88e5 52%, #31c3ff);
}

.tone-green {
  background: linear-gradient(135deg, #00695c, #12a179 54%, #8bd450);
}

.tone-orange {
  background: linear-gradient(135deg, #8f3d00, #ee7b22 54%, #ffd166);
}

.tone-red {
  background: linear-gradient(135deg, #7f1d1d, #d14d4d 54%, #ff9f7a);
}

.tone-purple {
  background: linear-gradient(135deg, #44318d, #7161ef 54%, #5eead4);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    animation: none;
  }

  .carousel-slide:first-child {
    opacity: 1;
  }
}

.course {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 22px;
}

.course.locked {
  opacity: 0.72;
}

.course h2 {
  margin: 14px 0 10px;
  font-size: 22px;
}

.course p {
  color: var(--muted);
  line-height: 1.6;
}

.course footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f4e6df;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.badge.open {
  background: #e6f7f0;
  color: var(--accent);
}

.admin-list {
  display: grid;
  gap: 16px;
}

.super-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.settings-panel {
  margin-bottom: 34px;
}

.panel-kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.carousel-help {
  margin: -8px 0 0;
  line-height: 1.6;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title-row h2 {
  margin-bottom: 0;
}

.count-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eaf1ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.carousel-manage-list {
  display: grid;
  gap: 12px;
}

.carousel-manage-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 80px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.carousel-manage-row img {
  width: 136px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}

.carousel-manage-row strong,
.carousel-manage-row span {
  display: block;
}

.carousel-manage-row p {
  display: -webkit-box;
  margin: 6px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.carousel-manage-row span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.carousel-empty {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #c8d5e6;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.carousel-empty strong { color: var(--ink); }

.support-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 130px;
  gap: 14px;
  align-items: end;
}

.admin-account-list {
  display: grid;
  gap: 10px;
}

.course-manage-list {
  display: grid;
  gap: 12px;
}

.admin-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.course-manage-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.course-manage-row.is-dragging { opacity: .45; }
.drag-handle { padding: 8px; cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.course-manage-summary { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
.course-manage-summary img,
.course-cover-placeholder { width: 112px; height: 70px; border-radius: 6px; object-fit: cover; background: #eef3f9; }
.course-cover-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.course-manage-meta [data-course-category] { display: inline; margin: 0; color: inherit; font-size: inherit; }
.course-edit-panel { position: relative; }
.course-edit-panel summary { padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--primary); cursor: pointer; font-weight: 700; list-style: none; }
.course-edit-panel summary::-webkit-details-marker { display: none; }
.course-edit-panel[open] { grid-column: 2 / -1; }
.course-edit-panel[open] summary { width: max-content; margin-left: auto; }
.course-manage-fields { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(140px, .7fr); gap: 12px; align-items: end; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; }
.course-manage-fields label span { margin: 0 0 4px; }
.course-content-field { grid-column: 1 / -1; }
.course-delete-action { display: flex; }

.course-manage-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.course-manage-row strong,
.course-manage-row span {
  display: block;
}

.course-manage-row span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-check input {
  width: 18px;
  min-height: 18px;
}

.inline-check span {
  margin: 0;
}

.admin-account-row:last-child {
  border-bottom: 0;
}

.danger-button {
  background: var(--danger);
}

.audit-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.audit-head,
.audit-row {
  display: grid;
  grid-template-columns: 170px 130px 130px minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 14px;
  min-width: 900px;
  padding: 14px 16px;
  align-items: center;
}

.audit-head {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.audit-row {
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.audit-row:last-child {
  border-bottom: 0;
}

.empty-audit {
  padding: 18px;
}

.user-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 88px;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.user-name span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.permissions label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.permissions input {
  width: 18px;
  min-height: 18px;
}

.permissions .trial {
  color: var(--muted);
}

@media (max-width: 760px) {
  main {
    width: min(94vw, 560px);
    padding: 28px 0;
  }

  .hero,
  .learn-layout,
  .super-grid,
  .user-row,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .course-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .course-sidebar h2 {
    display: none;
  }

  .course-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .course-carousel {
    height: 360px;
  }

  .carousel-slide {
    display: grid;
    align-content: end;
    padding: 24px;
  }

  .carousel-slide h1 {
    font-size: 28px;
  }

  .hero {
    min-height: auto;
  }

  .home-hero {
    padding: 24px;
    min-height: auto;
    margin-top: 0;
    row-gap: 28px;
  }

  .home-entry {
    max-width: none;
    justify-self: stretch;
    padding-bottom: 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .tech-title {
    font-size: 36px;
  }

  .hero h1,
  .section-head h1,
  .panel h1 {
    font-size: 32px;
  }

  .entry-actions {
    grid-template-columns: 1fr;
  }

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

  .carousel-manage-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .carousel-manage-row img {
    width: 112px;
    height: 72px;
  }

  .carousel-manage-row form {
    grid-column: 1 / -1;
  }

  .carousel-manage-row form button {
    width: 100%;
  }

  .course-manage-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: start;
  }

  .course-manage-summary {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .course-manage-summary img,
  .course-cover-placeholder {
    width: 88px;
    height: 58px;
  }

  .course-edit-panel,
  .course-edit-panel[open] {
    grid-column: 2 / -1;
  }

  .course-delete-action {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }

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

  .course-content-field {
    grid-column: auto;
  }

  .user-row button {
    width: 100%;
  }
}

/* Light technology landing and authentication experience */
:root {
  --brand-blue: #1468f3;
  --brand-blue-2: #4a9af8;
  --brand-ink: #10233f;
  --brand-muted: #5d6d85;
  --brand-surface: rgba(255, 255, 255, 0.88);
  --brand-line: rgba(80, 116, 166, 0.2);
  --focus-ring: rgba(20, 104, 243, 0.24);
}

.landing-page,
.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 28%, rgba(93, 162, 255, 0.18), transparent 32%),
    radial-gradient(circle at 18% 84%, rgba(66, 132, 255, 0.18), transparent 35%),
    linear-gradient(132deg, #f9fcff 0%, #edf5ff 54%, #f7fbff 100%);
}

.landing-page .topbar,
.auth-page .topbar {
  position: relative;
  z-index: 10;
  min-height: 100px;
  border: 0;
  padding: 20px clamp(24px, 4.5vw, 72px);
  background: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.landing-page .brand { cursor: default; }

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 18px);
  grid-template-rows: repeat(2, 18px);
  width: 42px;
  height: 42px;
  transform: rotate(30deg);
}

.brand-mark i {
  border-radius: 5px;
  background: linear-gradient(135deg, #1264f2, #55b8ff);
  box-shadow: 0 6px 14px rgba(20, 104, 243, 0.2);
}

.brand-mark i:nth-child(2) { opacity: 0.58; }
.brand-mark i:nth-child(3) { grid-column: 1 / 3; width: 18px; justify-self: center; opacity: 0.82; }

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: var(--brand-ink);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 500;
}

.landing-page main,
.auth-page main {
  width: min(1480px, 92vw);
  padding: 0;
}

.landing-page .home-hero {
  width: 100%;
  min-height: calc(100vh - 150px);
  margin: 0;
  padding: clamp(36px, 5vw, 76px) clamp(20px, 2vw, 32px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: clamp(48px, 5vw, 80px);
  align-items: center;
}

.landing-page .home-hero::before {
  inset: -110px 43% -40px -10vw;
  border: 0;
  border-radius: 0 50% 50% 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.82), rgba(217, 234, 255, 0.45)),
    repeating-linear-gradient(0deg, rgba(35, 107, 234, 0.04) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(35, 107, 234, 0.04) 0 1px, transparent 1px 56px);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.75);
}

.landing-page .home-hero::after {
  width: 620px;
  height: 620px;
  right: 42%;
  top: 10%;
  background: radial-gradient(circle, rgba(90, 160, 255, 0.19), transparent 68%);
}

.landing-page .hero-copy,
.landing-page .home-entry {
  align-self: center;
  padding-bottom: 0;
}

.landing-page .hero-copy {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 70px;
}

.landing-page .eyebrow {
  letter-spacing: 0.18em;
  opacity: 0.75;
}

.landing-page .tech-title {
  font-size: clamp(42px, 4.1vw, 68px);
  line-height: 1.12;
  text-shadow: 0 12px 32px rgba(20, 104, 243, 0.12);
}

.tech-title em {
  color: var(--brand-blue);
  font-style: normal;
}

.landing-page .hero-subtitle {
  margin: 18px 0 0;
  color: var(--brand-muted);
  font-size: clamp(18px, 1.6vw, 25px);
  letter-spacing: 0.04em;
}

.landing-page .hero-chips {
  gap: 14px;
  margin-top: 34px;
}

.landing-page .hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 18px;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  color: #29435f;
  box-shadow: 0 10px 25px rgba(50, 104, 182, 0.07);
  backdrop-filter: blur(10px);
}

.landing-page .hero-chips b { color: var(--brand-blue); font-size: 20px; }

.landing-showcase {
  position: relative;
  z-index: 4;
  width: min(680px, 100%);
  aspect-ratio: 2.1 / 1;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 30px rgba(50, 104, 182, .12);
}

.landing-showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.landing-showcase-slide.is-active { opacity: 1; pointer-events: auto; }
.landing-showcase-slide img { width: 100%; height: 100%; object-fit: cover; }
.landing-showcase-slide::after { content: ""; position: absolute; inset: 36% 0 0; background: linear-gradient(transparent, rgba(8, 27, 59, .82)); }
.landing-showcase-slide div { position: absolute; z-index: 1; right: 28px; bottom: 18px; left: 28px; color: white; text-align: center; }
.landing-showcase-slide strong,
.landing-showcase-slide span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-showcase-slide strong { font-size: 16px; }
.landing-showcase-slide span { margin-top: 2px; font-size: 12px; opacity: .86; }

.landing-showcase-dots { position: absolute; z-index: 2; right: 0; bottom: 5px; left: 0; display: flex; justify-content: center; gap: 8px; }
.landing-showcase-dots span { width: 22px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.55); }
.landing-showcase-dots span.is-active { background: white; }

.tech-scene {
  position: absolute;
  left: 5%;
  bottom: -26px;
  width: min(690px, 74vw);
  height: 300px;
  perspective: 900px;
}

.platform {
  position: absolute;
  left: 12%;
  bottom: 12px;
  width: 380px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fafdff 0 24%, #8ab5ff 25% 43%, #175cef 44% 68%, #dceaff 69%);
  box-shadow: 0 24px 34px rgba(35, 92, 190, 0.25), inset 0 7px 11px white;
  transform: rotateX(60deg);
}

.platform i {
  position: absolute;
  inset: 12px 38px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(59, 128, 255, 0.18);
}

.crystal {
  position: absolute;
  z-index: 3;
  left: 31%;
  bottom: 116px;
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 18px 18px rgba(27, 103, 236, 0.3));
  transform: rotate(30deg) skew(-5deg, -5deg);
  animation: crystalFloat 4.2s ease-in-out infinite;
}

.crystal::before,
.crystal::after,
.crystal span {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 28%, 84% 82%, 40% 100%, 0 60%, 10% 18%);
}

.crystal::before { background: linear-gradient(135deg, rgba(255,255,255,.95), #58adff 48%, #075cf2); }
.crystal::after { inset: 7px; background: linear-gradient(70deg, transparent 42%, rgba(255,255,255,.8) 44% 48%, transparent 50%); }
.crystal span { inset: 18px; background: rgba(27, 103, 240, 0.45); }

.orbit {
  position: absolute;
  left: 8%;
  bottom: 88px;
  width: 430px;
  height: 110px;
  border: 2px solid rgba(66, 139, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-7deg);
  animation: orbitPulse 3.6s ease-in-out infinite;
}

.orbit-two { left: 22%; bottom: 145px; width: 490px; opacity: .52; animation-delay: -1.8s; }

.scene-cube {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(141, 205, 255, .9), #1263ef 72%);
  box-shadow: 0 15px 24px rgba(30, 103, 222, .2);
  transform: rotate(18deg) skew(-4deg);
  animation: cubeDrift 3.8s ease-in-out infinite;
}

.cube-one { left: 2%; bottom: 40px; }
.cube-two { left: 68%; bottom: 34px; width: 30px; height: 30px; animation-delay: -1.4s; }
.cube-three { left: 79%; bottom: 74px; width: 50px; height: 50px; opacity: .7; animation-delay: -2.6s; }

@keyframes crystalFloat {
  0%, 100% { transform: translateY(0) rotate(30deg) skew(-5deg, -5deg); }
  50% { transform: translateY(-18px) rotate(42deg) skew(-5deg, -5deg); }
}

@keyframes orbitPulse {
  0%, 100% { opacity: .34; transform: rotate(-7deg) scale(.96); }
  50% { opacity: .78; transform: rotate(-4deg) scale(1.04); }
}

@keyframes cubeDrift {
  0%, 100% { transform: translateY(0) rotate(18deg) skew(-4deg); }
  50% { transform: translateY(-14px) rotate(32deg) skew(-4deg); }
}

.landing-page .home-entry {
  max-width: 620px;
  width: 100%;
  animation: cardReveal 680ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cardReveal {
  from { transform: translateY(24px) scale(.98); }
  to { transform: translateY(0) scale(1); }
}

.landing-page .home-entry .entrance-group,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: clamp(32px, 3vw, 50px);
  background: var(--brand-surface);
  box-shadow: 0 28px 70px rgba(43, 92, 157, 0.13), inset 0 1px white;
  backdrop-filter: blur(22px);
}

.landing-page .home-entry .entrance-group {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 4vw, 68px);
}

.landing-page .user-group { border-left: 1px solid rgba(255, 255, 255, 0.92); }

.card-kicker {
  margin: 0 0 8px !important;
  color: var(--brand-blue) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.landing-page .entrance-group strong,
.auth-card h1 {
  color: var(--brand-ink);
  font-size: clamp(30px, 2.2vw, 40px);
}

.landing-page .entrance-group > div > span,
.auth-subtitle { display: block; margin-top: 10px; color: var(--brand-muted); }

.landing-page .entry-actions { grid-template-columns: 1fr; }

.entry-action,
.auth-register {
  border-radius: 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.entry-action.primary,
.auth-card button {
  border: 0;
  background: linear-gradient(100deg, var(--brand-blue), var(--brand-blue-2));
  box-shadow: 0 12px 24px rgba(20, 104, 243, 0.2);
}

.entry-action:hover,
.auth-register:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20, 104, 243, .12); }
.entry-action:focus-visible,
.auth-register:focus-visible,
.auth-card button:focus-visible,
.input-shell:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.entry-note {
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(227, 238, 255, 0.7);
}

.entry-note > span { color: var(--brand-blue) !important; }

.landing-footer {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  padding: 0 0 24px;
  color: var(--brand-muted);
  text-align: center;
  font-size: 13px;
}

.auth-page main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 130px);
  padding: 24px 0 70px;
}

.auth-card {
  width: min(500px, 100%);
  max-width: none;
  margin: 0;
}

.auth-card .stack { gap: 10px; }
.field-label { color: var(--brand-ink); font-size: 14px; font-weight: 700; }

.input-shell {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
}

.input-shell svg {
  width: 21px;
  height: 21px;
  margin-left: 16px;
  fill: none;
  stroke: #718096;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-shell input {
  min-height: 52px;
  border: 0;
  background: transparent;
  outline: 0;
}

.auth-card button { min-height: 52px; margin-top: 12px; font-size: 16px; }
.auth-register { display: grid; place-items: center; min-height: 52px; margin-top: 16px; border: 1px solid var(--brand-line); color: var(--brand-blue); font-weight: 800; }
.auth-note { margin: 16px 0 0; font-size: 13px; }
.auth-card .hint { margin: 14px 0 0; text-align: center; font-size: 13px; }

@media (max-width: 900px) {
  .landing-page .home-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 24px; }
  .landing-page .home-hero::before { inset: -100px -10vw 44% -10vw; border-radius: 0 0 46% 46%; }
  .landing-page .hero-copy { min-height: 570px; padding-top: 30px; }
  .landing-page .home-entry { max-width: 560px; justify-self: center; }
  .landing-page .home-entry .entrance-group { min-height: 0; }
  .tech-scene { bottom: 0; }
  .landing-footer { margin-top: 24px; }
}

@media (max-width: 560px) {
  .landing-page .topbar,
  .auth-page .topbar { min-height: 82px; padding: 16px 20px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 15px; }
  .brand-mark { transform: rotate(30deg) scale(.84); transform-origin: left center; margin-right: -4px; }
  .landing-page main,
  .auth-page main { width: min(92vw, 500px); }
  .landing-page .hero-copy { min-height: 500px; padding-top: 12px; }
  .landing-page .tech-title { width: 100%; font-size: clamp(30px, 9vw, 36px); }
  .landing-page .hero-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .landing-page .hero-chips span { min-height: 44px; padding: 8px 11px; font-size: 13px; }
  .landing-showcase { width: 100%; margin-top: 24px; }
  .tech-scene { left: -12%; bottom: 0; transform: scale(.76); transform-origin: left bottom; }
  .landing-page .home-entry .entrance-group,
  .auth-card { padding: 28px 22px; border-radius: 20px; }
  .auth-page main { min-height: calc(100vh - 90px); padding: 12px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .tech-title::after,
  .crystal,
  .orbit,
  .scene-cube,
  .landing-page .home-entry { animation: none; }
  .entry-action,
  .auth-register { transition: none; }
}

/* Compact student learning center */
.user-page {
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(222, 236, 255, 0.82), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 52%, #f9fcff 100%);
}

.user-page .topbar {
  min-height: 78px;
  padding: 0 clamp(28px, 4vw, 68px);
  border-bottom: 1px solid rgba(86, 121, 166, 0.15);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(56, 96, 150, 0.06);
}

.user-page main {
  width: min(1440px, 94vw);
  padding: 28px 0 48px;
}

.user-menu {
  align-items: center;
  gap: 10px !important;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 12px 4px 5px;
  border: 1px solid rgba(35, 102, 226, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #18304f;
  box-shadow: 0 8px 22px rgba(42, 93, 170, 0.08);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddecff, #2d78ff);
  color: white;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 1px rgba(255,255,255,.7);
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  color: #233a5a;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-link {
  appearance: none;
  font: inherit;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(35, 102, 226, 0.14);
  border-radius: 999px;
  background: #f3f7ff;
  color: #2b68d8;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.logout-link:hover,
.logout-link:focus-visible {
  background: #e9f1ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.user-page .learn-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.user-page .course-sidebar {
  top: 98px;
  gap: 0;
  overflow: hidden;
  padding: 16px;
  border-color: rgba(55, 106, 181, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 48px rgba(47, 95, 163, 0.1);
  backdrop-filter: blur(18px);
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 18px;
  border-bottom: 1px solid rgba(73, 112, 166, 0.12);
}

.sidebar-heading-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1463ff, #71a9ff);
  box-shadow: 0 10px 22px rgba(20, 99, 255, 0.25);
}

.sidebar-heading-mark::before,
.sidebar-heading-mark::after {
  content: "";
  position: absolute;
  border: 2px solid white;
  border-radius: 3px;
}

.sidebar-heading-mark::before { inset: 10px 18px 10px 9px; border-right: 0; }
.sidebar-heading-mark::after { inset: 10px 9px 10px 18px; border-left: 0; }

.sidebar-heading span:not(.sidebar-heading-mark) {
  color: #7b8ca3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.user-page .course-sidebar h2 {
  margin: 3px 0 0;
  color: #172b47;
  font-size: 18px;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  padding-top: 14px;
}

.sidebar-label {
  padding: 0 10px 4px;
  color: #8a98ab;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sidebar-label-secondary {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(73, 112, 166, 0.1);
}

.user-page .course-sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #526780;
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.user-page .course-sidebar a:hover,
.user-page .course-sidebar a:focus-visible,
.user-page .course-sidebar a.active {
  border-color: rgba(37, 99, 235, 0.1);
  background: linear-gradient(100deg, rgba(37, 99, 235, 0.13), rgba(117, 180, 255, 0.08));
  color: #1463ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
  outline: none;
  transform: translateX(3px);
}

.user-page .course-sidebar a.active::before {
  content: "";
  position: absolute;
  left: -5px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: #1463ff;
  box-shadow: 0 0 12px rgba(20, 99, 255, 0.4);
}

.user-page .course-sidebar .sidebar-home {
  color: #65778d;
}

.sidebar-summary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff5ff, #f8fbff);
  color: #718197;
  font-size: 12px;
}

.sidebar-summary strong {
  color: #1463ff;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.nav-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
  opacity: .92;
}

.nav-glyph.grid::before,
.nav-glyph.grid::after {
  content: "";
  position: absolute;
  inset: 3px auto auto 3px;
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 6px 0 currentColor, 0 6px currentColor, 6px 6px currentColor;
}

.nav-glyph.book::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 6px;
  border-left: 2px solid currentColor;
}

.nav-glyph.home {
  transform: rotate(45deg);
}

.nav-glyph.home::before {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 7px;
  height: 7px;
  background: currentColor;
}

.nav-glyph.play {
  border-radius: 50%;
}

.nav-glyph.play::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.student-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px 150px;
  align-items: center;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 30px 32px 28px 42px;
  background:
    linear-gradient(120deg, rgba(48, 112, 245, 0.92), rgba(98, 166, 255, 0.72)),
    linear-gradient(135deg, #2676ff, #93c8ff);
  box-shadow: 0 20px 52px rgba(45, 103, 188, 0.22);
  animation: studentHeroReveal 520ms ease-out both;
}

.student-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, transparent 1px 60px),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 48%, transparent 76%);
  transform: translateX(-40%);
  animation: heroLightSweep 5.6s ease-in-out infinite;
}

.student-hero-copy,
.student-hero-art,
.hero-action {
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.student-hero h1 {
  margin: 18px 0 8px;
  color: white;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
}

.student-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hero-stats strong {
  color: white;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.student-hero-art {
  height: 190px;
}

.cap {
  position: absolute;
  left: 116px;
  top: 22px;
  width: 142px;
  height: 96px;
  border-radius: 8px 8px 40px 40px;
  background: linear-gradient(135deg, #dcebff 0%, #2475ff 56%, #0951db 100%);
  box-shadow: 0 18px 30px rgba(12, 72, 186, 0.24), inset 0 1px rgba(255,255,255,.8);
  transform: perspective(420px) rotateX(58deg) rotateZ(-12deg);
  animation: capFloat 3.8s ease-in-out infinite;
}

.cap::before {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  top: 20px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef7ff, #2b7cff 58%, #0c52d9);
  transform: rotate(45deg);
}

.cap::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 54px;
  width: 54px;
  height: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 42px 16px 0 rgba(255,255,255,.52);
}

.ring {
  position: absolute;
  left: 58px;
  bottom: 16px;
  width: 250px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  transform: rotate(-8deg);
  animation: ringPulse 3.4s ease-in-out infinite;
}

.ring-two {
  left: 86px;
  bottom: 42px;
  width: 210px;
  opacity: .65;
  animation-delay: -1.4s;
}

.spark {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(61, 129, 255, .75));
  transform: rotate(22deg);
  animation: sparkDrift 3.2s ease-in-out infinite;
}

.spark-one { left: 48px; top: 30px; }
.spark-two { right: 48px; bottom: 38px; animation-delay: -1.8s; }

.hero-action {
  justify-self: end;
  min-width: 126px;
  border-radius: 8px;
  color: #17406d !important;
  box-shadow: 0 14px 28px rgba(16, 64, 140, 0.12);
}

.learning-carousel {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 22px 56px rgba(45, 103, 188, 0.22);
}

.carousel-track {
  position: relative;
  min-height: 280px;
}

.learning-carousel .student-hero {
  position: absolute;
  inset: 0;
  min-height: 280px;
  border: 0;
  border-radius: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(20px);
  animation: none;
  transition: opacity 320ms ease, transform 320ms ease, visibility 320ms;
}

.learning-carousel .student-hero.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.learning-carousel .student-hero::before,
.learning-carousel .cap,
.learning-carousel .ring,
.learning-carousel .spark {
  animation: none;
}

.learning-carousel .student-hero::before { transform: none; }

.student-hero.hero-tone-green { background: linear-gradient(120deg, #087f68, #27b884 58%, #82d66a); }
.student-hero.hero-tone-orange { background: linear-gradient(120deg, #b54b08, #f08a22 58%, #ffc857); }
.student-hero.hero-tone-red { background: linear-gradient(120deg, #9b3037, #df5e5e 58%, #ff9c82); }
.student-hero.hero-tone-purple { background: linear-gradient(120deg, #4936a3, #755ff0 58%, #61cbd5); }

.student-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(12, 49, 116, 0.22);
}

.managed-carousel-item {
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .055)),
    linear-gradient(135deg, rgba(44, 106, 222, .42), rgba(18, 38, 78, .64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 24px 70px rgba(29, 74, 145, .26);
  backdrop-filter: blur(22px) saturate(145%);
}

.managed-carousel-item::before {
  background: none;
}

.managed-carousel-item::after {
  display: none;
}

.managed-carousel-item .student-hero-copy,
.managed-carousel-item .hero-action {
  z-index: 3;
}

.managed-carousel-item .student-hero-copy {
  align-self: end;
  max-width: min(430px, calc(100% - 170px));
  padding: 6px 0 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .46);
}

.managed-carousel-item .hero-pill {
  min-height: 20px;
  padding: 0 8px;
  background: rgba(255, 255, 255, .18);
  font-size: 11px;
}

.managed-carousel-item h1 {
  margin: 7px 0 3px;
  font-size: clamp(18px, 1.6vw, 24px);
}

.managed-carousel-item p {
  display: -webkit-box;
  max-width: 400px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 12px;
}

.managed-carousel-item .hero-stats {
  display: none;
}

.managed-carousel-item .hero-action {
  align-self: end;
  justify-self: end;
  margin-bottom: 2px;
  min-height: 38px;
  padding: 0 18px;
  font-size: 13px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.managed-carousel-item .student-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  opacity: 1;
  background:
    radial-gradient(circle at 18% 16%, rgba(105, 151, 255, .34), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(63, 218, 210, .22), transparent 34%),
    radial-gradient(circle at 52% 92%, rgba(170, 126, 255, .24), transparent 38%),
    linear-gradient(135deg, #071328, #102956 52%, #07192f);
}

.managed-carousel-item .student-hero-art::before {
  display: none;
}

.managed-carousel-item .carousel-backdrop-image,
.managed-carousel-item .carousel-main-image {
  position: absolute;
  border: 0;
  object-position: center;
}

.managed-carousel-item .carousel-backdrop-image {
  display: none;
}

.managed-carousel-item .carousel-main-image {
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: none;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
  box-shadow: none;
}

.learning-carousel .managed-carousel-item {
  min-height: clamp(360px, 32vw, 480px);
}

.carousel-caption-note {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 4;
  max-width: min(520px, calc(100% - 48px));
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.carousel-controls {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(20, 53, 103, 0.2);
  backdrop-filter: blur(12px);
}

.carousel-arrow,
.carousel-toggle,
.carousel-dot {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.carousel-arrow {
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible,
.carousel-toggle:hover,
.carousel-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: 2px solid white;
  outline-offset: -3px;
}

.carousel-toggle {
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.carousel-dots {
  display: flex;
  align-items: center;
}

.carousel-dot {
  position: relative;
  min-width: 28px;
}

.carousel-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.is-active::after {
  width: 20px;
  background: white;
}

.carousel-dot:focus-visible {
  border-radius: 999px;
  outline: 2px solid white;
  outline-offset: -3px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 18px;
}

.quick-actions a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 13px 16px;
  border: 1px solid rgba(92, 131, 186, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(47, 95, 163, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-actions a:hover,
.quick-actions a:focus-visible {
  box-shadow: 0 18px 36px rgba(47, 95, 163, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.quick-actions .nav-glyph {
  grid-row: span 2;
  justify-self: center;
  width: 28px;
  height: 28px;
  color: #2875ff;
}

.quick-actions strong {
  color: #152946;
  font-size: 15px;
}

.quick-actions small {
  color: #718197;
  font-size: 12px;
}

.user-page .section-head.compact {
  margin: 22px 0 14px;
}

.user-page .section-head h1 {
  font-size: 36px;
}

.user-page .eyebrow {
  margin-bottom: 6px;
  color: #1463ff;
  font-weight: 900;
  letter-spacing: .08em;
}

.user-page .course-category {
  margin-top: 18px;
}

.compact-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
  gap: 14px;
}

.trial-course-grid { margin-bottom: 30px; }
.trial-course-empty { grid-column: 1 / -1; margin: 0; padding: 22px; border: 1px dashed rgba(86, 121, 166, .22); border-radius: 8px; background: rgba(255, 255, 255, .58); }

.compact-course-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-width: 0;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid rgba(86, 121, 166, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(47, 95, 163, 0.08);
  animation: courseCardIn 420ms ease-out both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.compact-course-card:hover {
  box-shadow: 0 20px 42px rgba(47, 95, 163, 0.14);
  transform: translateY(-2px);
}

.compact-course-card .video-preview {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 138px;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.compact-course-card .play-mark {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.88);
}

.compact-course-card .play-mark::after {
  left: 18px;
  top: 13px;
  border-top-width: 9px;
  border-bottom-width: 9px;
  border-left-width: 13px;
}

.compact-course-card .video-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px;
}

.compact-course-card h3 {
  margin: 8px 0 5px;
  color: #14253f;
  font-size: 17px;
  line-height: 1.35;
}

.compact-course-card .video-meta p {
  min-height: 0;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #607187;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-time {
  display: inline-block;
  margin-top: 8px;
  color: #7b8aa0;
  font-size: 12px;
  font-weight: 800;
}

.course-actions {
  display: grid;
  gap: 8px;
}

.course-actions .button-link,
.course-actions button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  white-space: nowrap;
}

.course-actions .button-link.secondary {
  min-height: 34px;
}

@keyframes studentHeroReveal {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroLightSweep {
  0%, 42% { transform: translateX(-44%); }
  76%, 100% { transform: translateX(34%); }
}

@keyframes capFloat {
  0%, 100% { transform: translateY(0) perspective(420px) rotateX(58deg) rotateZ(-12deg); }
  50% { transform: translateY(-10px) perspective(420px) rotateX(58deg) rotateZ(-8deg); }
}

@keyframes ringPulse {
  0%, 100% { opacity: .42; transform: rotate(-8deg) scale(.96); }
  50% { opacity: .86; transform: rotate(-4deg) scale(1.04); }
}

@keyframes sparkDrift {
  0%, 100% { transform: translateY(0) rotate(22deg); }
  50% { transform: translateY(-9px) rotate(38deg); }
}

@keyframes courseCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uploadSpinner {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .user-page .learn-layout {
    grid-template-columns: 1fr;
  }

  .user-page .course-sidebar {
    position: static;
    display: block;
    overflow: hidden;
    padding: 10px;
  }

  .sidebar-heading,
  .sidebar-label,
  .sidebar-summary {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: thin;
  }

  .user-page .course-sidebar a {
    flex: 0 0 auto;
  }

  .user-page .course-sidebar a:hover,
  .user-page .course-sidebar a:focus-visible,
  .user-page .course-sidebar a.active {
    transform: translateY(-1px);
  }

  .user-page .course-sidebar a.active::before {
    display: none;
  }

  .learning-carousel,
  .carousel-track,
  .learning-carousel .student-hero {
    min-height: 400px;
  }

  .student-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 80px;
  }

  .student-hero-art {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    opacity: .42;
  }

  .hero-action {
    justify-self: start;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .user-page .topbar {
    gap: 12px;
    padding: 12px 16px;
  }

  .user-page .brand-copy small,
  .user-name {
    display: none;
  }

  .user-page main {
    width: min(94vw, 560px);
    padding-top: 20px;
  }

  .learning-carousel,
  .carousel-track,
  .learning-carousel .student-hero {
    min-height: clamp(320px, 86vw, 430px);
  }

  .student-hero {
    padding: 24px 24px 88px;
  }

  .student-hero h1 {
    font-size: 28px;
  }

  .student-hero p { font-size: 15px; }
  .student-hero-art { opacity: .22; }
  .managed-carousel-item::after {
    background: linear-gradient(180deg, rgba(6, 19, 45, 0) 34%, rgba(6, 19, 45, .12) 64%, rgba(6, 19, 45, .82) 100%);
  }
  .managed-carousel-item .student-hero-copy {
    max-width: 100%;
    padding-bottom: 36px;
  }
  .managed-carousel-item h1 {
    font-size: 18px;
  }
  .managed-carousel-item p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 11px;
  }
  .managed-carousel-item .hero-action {
    justify-self: start;
    min-height: 36px;
    padding: 0 14px;
    margin-bottom: 36px;
    font-size: 12px;
  }
  .managed-carousel-item .student-hero-art { width: auto; opacity: 1; }
  .managed-carousel-item .carousel-backdrop-image {
    filter: blur(18px) saturate(1.08);
    opacity: .32;
    transform: scale(1.03);
  }
  .managed-carousel-item .carousel-main-image {
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .14));
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .carousel-caption-note {
    left: 14px;
    bottom: 58px;
    max-width: calc(100% - 28px);
    font-size: 12px;
  }
  .carousel-controls { right: 12px; bottom: 12px; }

  .hero-stats {
    gap: 12px;
  }

  .compact-course-card {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .compact-course-card .video-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .course-actions .button-link,
  .course-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-hero,
  .student-hero::before,
  .cap,
  .ring,
  .spark,
  .upload-spinner,
  .compact-course-card {
    animation: none;
  }

  .landing-showcase-slide { transition: none; }

  .logout-link,
  .user-page .course-sidebar a,
  .learning-carousel .student-hero,
  .carousel-dot::after,
  .quick-actions a,
  .compact-course-card {
    transition: none;
  }
}
