:root {
  --page: #f7f7f8;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-soft: #fbfafb;
  --text: #1d1a1c;
  --muted: #777176;
  --subtle: #a19a9f;
  --line: #e7e3e5;
  --line-strong: #dcd6da;
  --pink: #f6cede;
  --pink-secondary: #e4a4bd;
  --pink-dark: #8d4964;
  --pink-soft: #f6cede;
  --pink-pale: #fff7fa;
  --shadow: 0 16px 42px rgba(32, 24, 28, 0.06);
  --shadow-small: 0 8px 24px rgba(32, 24, 28, 0.05);
  --radius: 20px;
  --radius-small: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html.motion-enabled body {
  overflow-x: hidden;
}

html.motion-enabled body:not(.motion-ready) .sidebar,
html.motion-enabled body:not(.motion-ready) .page > * {
  opacity: 0;
}

html.motion-enabled body:not(.motion-ready) .sidebar {
  transform: translate3d(-18px, 0, 0);
}

html.motion-enabled body:not(.motion-ready) .page > * {
  transform: translate3d(0, 24px, 0);
}

html.motion-enabled body.motion-ready .sidebar,
html.motion-enabled body.motion-ready .page > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: opacity, transform;
}

html.motion-enabled body.motion-ready .sidebar {
  transition:
    opacity 900ms ease,
    transform 1050ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 80ms;
}

html.motion-enabled body.motion-ready .page > * {
  transition:
    opacity 880ms ease,
    transform 1040ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.motion-enabled body.motion-ready .page > *:nth-child(1) {
  transition-delay: 180ms;
}

html.motion-enabled body.motion-ready .page > *:nth-child(2) {
  transition-delay: 300ms;
}

html.motion-enabled body.motion-ready .page > *:nth-child(3) {
  transition-delay: 410ms;
}

html.motion-enabled body.motion-ready .page > *:nth-child(n + 4) {
  transition-delay: 500ms;
}

html.motion-enabled body.motion-settled .sidebar,
html.motion-enabled body.motion-settled .page > * {
  will-change: auto;
}

html.motion-enabled body.page-leave .app-shell {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -8px, 0);
  transition:
    opacity 260ms ease,
    transform 280ms cubic-bezier(0.4, 0, 1, 1);
}

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

  html.motion-enabled body:not(.motion-ready) .sidebar,
  html.motion-enabled body:not(.motion-ready) .page > *,
  html.motion-enabled body.motion-ready .sidebar,
  html.motion-enabled body.motion-ready .page > *,
  html.motion-enabled body.page-leave .app-shell {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

button,
input {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
  fill: currentColor;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 28px;
  width: min(100%, 1680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.sidebar {
  position: sticky;
  top: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px);
  padding: 28px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 54px;
  padding: 0 12px;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 630;
  line-height: 1.1;
}

.brand-name > span {
  color: var(--pink-dark);
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 35px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  color: #625d60;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-link svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-link.active {
  color: #7e3f58;
  border-color: #f0cedb;
  background: var(--pink-soft);
}

.nav-link.active svg {
  color: var(--pink-dark);
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 3px 0 8px 22px;
  padding-left: 20px;
  border-left: 1px solid #ead9e0;
}

.nav-submenu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 33px;
  padding: 6px 8px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 450;
  line-height: 1.25;
  transition: color 160ms ease, background 160ms ease;
}

.nav-submenu a:hover,
.nav-submenu a.active {
  color: #87435e;
  background: var(--pink-pale);
}

.nav-submenu a.active::before {
  position: absolute;
  left: -21px;
  width: 2px;
  height: 17px;
  border-radius: 2px;
  background: var(--pink);
  content: "";
}

.student-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.64);
}

.student-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #7d3e57;
  border-radius: 50%;
  background: var(--pink-soft);
  font-size: 0.72rem;
  font-weight: 650;
}

.student-card div {
  min-width: 0;
}

.student-card strong,
.student-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-card strong {
  font-size: 0.8rem;
  font-weight: 560;
}

.student-card small {
  color: var(--muted);
  font-size: 0.7rem;
}

.student-card > svg {
  width: 15px;
  height: 15px;
  color: var(--subtle);
}

.page {
  min-width: 0;
  padding: 8px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  margin-bottom: 24px;
}

.page-heading h1 {
  font-size: 2rem;
  font-weight: 610;
  line-height: 1.15;
}

.page-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 310px;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-small);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
  border-color: #dfa5bb;
  box-shadow: 0 0 0 4px rgba(214, 131, 164, 0.1);
}

.search-field svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--pink-dark);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.88rem;
}

.search-field input::placeholder {
  color: #9b9498;
}

.icon-button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-small);
}

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

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--pink-dark);
}

.surface {
  border: 1px solid rgba(224, 218, 222, 0.86);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.course-spotlight {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  min-height: 342px;
  overflow: hidden;
}

.spotlight-media {
  position: relative;
  min-height: 342px;
  overflow: hidden;
  background: #f3e7eb;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media-label {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 11px;
  color: #6f3850;
  border: 1px solid rgba(232, 193, 208, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 550;
  backdrop-filter: blur(12px);
}

.spotlight-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 30px 34px;
}

.soft-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: #91506a;
  font-size: 0.77rem;
  font-weight: 520;
}

.soft-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px var(--pink-soft);
}

.spotlight-content h2,
.overview-content h2 {
  max-width: 670px;
  margin-top: 11px;
  font-size: 2.35rem;
  font-weight: 610;
  line-height: 1.08;
}

.course-description,
.overview-content > p {
  max-width: 660px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 16px;
  color: #625c60;
  font-size: 0.8rem;
}

.course-facts span {
  display: flex;
  align-items: center;
}

.course-facts span + span::before {
  width: 4px;
  height: 4px;
  margin: 0 10px;
  border-radius: 50%;
  background: #d4cdd1;
  content: "";
}

.spotlight-progress {
  max-width: 580px;
  margin-top: 20px;
}

.spotlight-progress > div:first-child,
.overview-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.spotlight-progress strong,
.overview-progress strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.progress-track,
.compact-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9ec;
}

.progress-track i,
.compact-progress i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--pink-secondary);
  transform-origin: left center;
  transition: width 500ms ease;
}

.progress-track.large {
  height: 8px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 21px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 560;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button.primary {
  color: #291f23;
  background: var(--pink-secondary);
  box-shadow: 0 9px 20px rgba(141, 73, 100, 0.14);
}

.button.primary:hover {
  background: #d998b1;
  box-shadow: 0 12px 24px rgba(141, 73, 100, 0.2);
}

.button.secondary {
  color: #704052;
  border-color: #ebcbd7;
  background: #ffffff;
}

.button.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.dashboard-main-column,
.dashboard-side-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.section-card,
.progress-card,
.resources-card,
.side-progress-card,
.validation-card {
  padding: 24px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2,
.progress-card h2,
.resources-card h2,
.side-progress-card h2,
.validation-card h2,
.program-heading h2 {
  font-size: 1.28rem;
  font-weight: 570;
  line-height: 1.25;
}

.section-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.section-heading > a {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 520;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.module-item:hover {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-small);
}

.module-item.current {
  border-color: #e8bdcd;
  background: var(--pink-pale);
}

.module-number {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #756d71;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  font-size: 0.73rem;
  font-weight: 570;
}

.current .module-number,
.program-module.current .module-number {
  color: #803f58;
  border-color: #e5b4c6;
  background: var(--pink-soft);
}

.complete .module-number,
.program-module.complete .module-number {
  color: var(--pink-dark);
  border-color: #eccbd7;
}

.module-copy {
  min-width: 0;
}

.module-copy strong,
.module-copy small {
  display: block;
}

.module-copy strong {
  overflow: hidden;
  font-size: 0.91rem;
  font-weight: 540;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: end;
  padding: 6px 9px;
  color: #80797d;
  border-radius: 999px;
  background: #f2f0f1;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 520;
  white-space: nowrap;
}

.status svg {
  width: 13px;
  height: 13px;
}

.complete-status {
  color: #6e4052;
  background: var(--pink-soft);
}

.current-status {
  color: #7e3d56;
  background: #f5dce6;
}

.empty-search {
  padding: 24px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.resume-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
}

.resume-media {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: #e9e6e8;
}

.resume-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(45, 38, 42, 0.82);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.play-button svg {
  width: 17px;
  height: 17px;
  margin-left: 2px;
}

.resume-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 23px 26px;
}

.section-kicker {
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 540;
}

.resume-content h2 {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 570;
}

.resume-content p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.resume-content .compact-progress {
  max-width: 380px;
  margin-top: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  margin-top: 13px;
  color: var(--pink-dark);
  font-size: 0.8rem;
  font-weight: 550;
}

.text-link svg {
  width: 15px;
  height: 15px;
}

.progress-card-title,
.side-progress-value {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 15px;
}

.progress-card-title strong,
.side-progress-value strong {
  color: var(--pink-dark);
  font-size: 1.72rem;
  font-weight: 580;
  line-height: 1;
}

.progress-card > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.next-goal {
  margin-top: 20px;
  padding: 15px;
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  background: var(--pink-pale);
}

.next-goal span,
.next-goal strong,
.next-goal small {
  display: block;
}

.next-goal span {
  color: var(--muted);
  font-size: 0.7rem;
}

.next-goal strong {
  margin-top: 3px;
  font-size: 0.86rem;
  font-weight: 560;
}

.next-goal small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.certificate-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.certificate-note > svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--pink-dark);
}

.certificate-note strong,
.certificate-note span {
  display: block;
}

.certificate-note strong {
  font-size: 0.8rem;
  font-weight: 560;
}

.certificate-note span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.resource-list {
  display: flex;
  flex-direction: column;
}

.resource-list button {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 9px 0;
  text-align: left;
  background: transparent;
}

.resource-list button + button {
  border-top: 1px solid var(--line);
}

.file-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #8b4a63;
  border-radius: 11px;
  background: var(--pink-soft);
  font-size: 0.58rem;
  font-weight: 650;
}

.resource-list button > span:nth-child(2) {
  min-width: 0;
}

.resource-list strong,
.resource-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-list strong {
  font-size: 0.78rem;
  font-weight: 540;
}

.resource-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.resource-list button > svg {
  width: 15px;
  height: 15px;
  color: var(--subtle);
}

/* Formation */
.formation-overview {
  display: grid;
  grid-template-columns: minmax(390px, 0.84fr) minmax(0, 1.16fr);
  min-height: 320px;
  overflow: hidden;
}

.overview-media {
  min-height: 320px;
  overflow: hidden;
  background: #f1e7eb;
}

.overview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
}

.overview-content h2 {
  font-size: 2.05rem;
}

.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.overview-meta span {
  padding: 7px 10px;
  color: #6c6468;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 0.72rem;
}

.overview-meta strong {
  color: var(--text);
  font-weight: 590;
}

.overview-progress {
  max-width: 590px;
  margin-top: 18px;
}

.overview-content > .button {
  align-self: flex-start;
  margin-top: 19px;
}

.formation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 22px;
  margin-top: 28px;
}

.program-column {
  min-width: 0;
}

.program-heading {
  align-items: end;
  margin-bottom: 16px;
  padding: 0 2px;
}

.program-heading > span {
  color: var(--muted);
  font-size: 0.76rem;
}

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

.program-module {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-small);
}

.program-module.current {
  border-color: #e5b6c8;
}

.program-module summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
  transition: background 160ms ease;
}

.program-module summary::-webkit-details-marker {
  display: none;
}

.program-module summary:hover {
  background: var(--surface-soft);
}

.program-module.current > summary {
  background: var(--pink-pale);
}

.chevron {
  width: 17px;
  height: 17px;
  color: var(--subtle);
  transition: transform 180ms ease;
}

.program-module[open] .chevron {
  transform: rotate(180deg);
}

.module-content,
.compact-lessons {
  border-top: 1px solid var(--line);
}

.module-content {
  padding: 18px;
}

.featured-lesson {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.featured-media {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  border-radius: 13px;
  background: #eee9eb;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-copy {
  min-width: 0;
}

.featured-copy > span {
  color: var(--pink-dark);
  font-size: 0.7rem;
  font-weight: 540;
}

.featured-copy h3 {
  margin-top: 5px;
  font-size: 1.18rem;
  font-weight: 570;
}

.featured-copy p {
  max-width: 530px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.lesson-progress-line {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  margin-top: 14px;
}

.lesson-progress-line small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.67rem;
}

.featured-copy .button {
  margin-top: 14px;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.lesson-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 9px 2px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.lesson-row + .lesson-row {
  border-top: 1px solid var(--line);
}

.lesson-row > img,
.lesson-row > span:first-child {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.lesson-row > img {
  object-fit: cover;
}

.lesson-row > span:first-child {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f3f1f2;
  font-size: 0.68rem;
  font-weight: 560;
}

.lesson-row div {
  min-width: 0;
}

.lesson-row strong,
.lesson-row small {
  display: block;
}

.lesson-row strong {
  font-size: 0.78rem;
  font-weight: 520;
}

.lesson-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.lesson-action,
.lesson-row i {
  color: var(--pink-dark);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 520;
}

.compact-lessons {
  margin: 0;
  padding: 8px 18px;
}

.compact-lessons .lesson-row {
  padding: 8px 0;
}

.compact-lessons .lesson-row.completed > span:first-child {
  color: #7c4259;
  background: var(--pink-soft);
}

.formation-side-column {
  position: sticky;
  top: 24px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.side-progress-card .section-kicker,
.validation-card .section-kicker {
  display: block;
  margin-bottom: 5px;
}

.progress-summary {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.progress-summary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.progress-summary li:last-child {
  border-bottom: 0;
}

.progress-summary strong {
  color: var(--text);
  font-weight: 550;
}

.validation-card > h2 {
  margin-bottom: 13px;
}

.validation-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.validation-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--pink-dark);
  border-radius: 11px;
  background: var(--pink-soft);
}

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

.validation-row strong,
.validation-row small {
  display: block;
}

.validation-row strong {
  font-size: 0.76rem;
  font-weight: 550;
}

.validation-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.65rem;
}

.locked-label {
  color: var(--muted);
  font-size: 0.63rem;
}

.help-note {
  padding: 5px 4px;
}

.help-note span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.help-note button {
  margin-top: 3px;
  padding: 0;
  color: var(--pink-dark);
  background: transparent;
  font-size: 0.73rem;
  font-weight: 530;
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
  }

  .sidebar {
    align-items: center;
    padding: 24px 12px 16px;
  }

  .brand {
    align-items: center;
    padding: 0;
  }

  .brand-name {
    font-size: 0;
  }

  .brand-name::before {
    color: var(--text);
    content: "AM.";
    font-size: 1.2rem;
    font-weight: 630;
  }

  .brand small,
  .nav-link span,
  .nav-submenu,
  .student-card div,
  .student-card > svg {
    display: none;
  }

  .main-nav {
    width: 100%;
  }

  .nav-link {
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  .student-card {
    display: grid;
    grid-template-columns: 38px;
    width: 58px;
    place-content: center;
    padding: 9px;
  }
}

@media (max-width: 1080px) {
  .course-spotlight,
  .formation-overview {
    grid-template-columns: minmax(330px, 0.84fr) minmax(0, 1.16fr);
  }

  .spotlight-content h2,
  .overview-content h2 {
    font-size: 1.9rem;
  }

  .dashboard-layout,
  .formation-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-side-column,
  .formation-side-column {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
    padding: 12px;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    align-items: center;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .brand {
    align-items: flex-start;
    justify-content: center;
    min-height: 44px;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .brand-name::before {
    display: none;
  }

  .brand small {
    display: block;
    font-size: 0.68rem;
  }

  .main-nav {
    display: flex;
    width: auto;
    flex-direction: row;
    gap: 5px;
    margin: 0;
  }

  .nav-group {
    display: contents;
  }

  .nav-link {
    width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }

  .student-card,
  .nav-submenu {
    display: none;
  }

  .page {
    padding: 0 0 30px;
  }

  .topbar {
    min-height: 62px;
    margin-bottom: 18px;
  }

  .page-heading h1 {
    font-size: 1.7rem;
  }

  .page-heading p {
    font-size: 0.84rem;
  }

  .search-field {
    width: 240px;
  }

  .course-spotlight,
  .formation-overview {
    grid-template-columns: 1fr;
  }

  .spotlight-media,
  .overview-media {
    min-height: 0;
    aspect-ratio: 16 / 8.6;
  }

  .spotlight-content,
  .overview-content {
    padding: 25px;
  }
}

@media (max-width: 620px) {
  .sidebar {
    margin-bottom: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .top-actions,
  .search-field {
    width: 100%;
  }

  .search-field {
    flex: 1 1 auto;
  }

  .course-spotlight,
  .formation-overview,
  .section-card,
  .resume-card,
  .progress-card,
  .resources-card,
  .side-progress-card,
  .validation-card {
    border-radius: 16px;
  }

  .spotlight-content,
  .overview-content {
    padding: 21px 18px 22px;
  }

  .spotlight-content h2,
  .overview-content h2 {
    font-size: 1.65rem;
    line-height: 1.12;
  }

  .course-description,
  .overview-content > p {
    font-size: 0.85rem;
  }

  .section-card,
  .progress-card,
  .resources-card,
  .side-progress-card,
  .validation-card {
    padding: 18px;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading p {
    max-width: 230px;
  }

  .module-item,
  .program-module summary {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .module-item .status {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: start;
  }

  .program-module summary .status {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .program-module summary .chevron {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .module-copy strong {
    white-space: normal;
  }

  .resume-card,
  .featured-lesson {
    grid-template-columns: 1fr;
  }

  .resume-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .resume-content {
    padding: 20px;
  }

  .dashboard-side-column,
  .formation-side-column {
    display: flex;
  }

  .formation-layout {
    margin-top: 22px;
  }

  .program-heading {
    align-items: flex-start;
  }

  .program-module summary {
    min-height: 76px;
    padding: 12px;
  }

  .module-content {
    padding: 12px;
  }

  .featured-lesson {
    gap: 16px;
  }

  .featured-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .lesson-row strong {
    line-height: 1.35;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding: 9px;
  }

  .sidebar {
    padding: 10px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .page-heading h1 {
    font-size: 1.52rem;
  }

  .course-facts span + span::before {
    margin: 0 7px;
  }

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

  .section-heading > a {
    display: none;
  }
}

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

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

/* Module lesson page */
.lesson-page {
  padding-top: 5px;
}

.lesson-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  margin-bottom: 20px;
}

.lesson-page-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pink-dark);
  font-size: 0.74rem;
  font-weight: 520;
}

.lesson-page-heading > a svg {
  width: 15px;
  height: 15px;
}

.lesson-page-heading h1 {
  margin-top: 7px;
  font-size: 1.8rem;
  font-weight: 610;
  line-height: 1.15;
}

.lesson-page-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.lesson-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leave-player svg {
  width: 15px;
  height: 15px;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  align-items: start;
  gap: 20px;
}

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

.video-player {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(29, 26, 28, 0.14);
  border-radius: 18px;
  background: #282326;
  box-shadow: 0 20px 50px rgba(29, 22, 26, 0.14);
}

.video-player > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 180ms ease;
}

.video-player.playing > img {
  opacity: 0.9;
}

.player-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 7px;
}

.player-badges span {
  padding: 6px 8px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(24, 21, 23, 0.72);
  font-size: 0.63rem;
  font-weight: 540;
  backdrop-filter: blur(8px);
}

.center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: #2a2024;
  border: 7px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 16px 36px rgba(29, 22, 26, 0.24);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.center-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.video-player.playing .center-play {
  opacity: 0;
  pointer-events: none;
}

.center-play svg {
  width: 24px;
  height: 24px;
}

.center-play .play-icon {
  margin-left: 3px;
}

.pause-icon {
  display: none;
}

.video-player.playing .play-icon {
  display: none;
}

.video-player.playing .pause-icon {
  display: block;
}

.player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 9px 13px;
  color: #ffffff;
  background: rgba(23, 20, 22, 0.86);
  backdrop-filter: blur(12px);
}

.player-control {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  border-radius: 9px;
  background: transparent;
}

.player-control:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player-control svg {
  width: 17px;
  height: 17px;
}

.captions-control {
  font-size: 0.68rem;
  font-weight: 650;
}

.player-time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

#videoProgress {
  min-width: 80px;
  flex: 1 1 auto;
  accent-color: var(--pink-secondary);
  cursor: pointer;
}

.lesson-detail {
  margin-top: 22px;
  padding: 0 3px;
}

.lesson-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.lesson-title-row > div {
  min-width: 0;
}

.lesson-title-row h2 {
  max-width: 720px;
  margin-top: 6px;
  font-size: 1.58rem;
  font-weight: 590;
  line-height: 1.2;
}

.lesson-title-row p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.complete-lesson-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  margin-top: 4px;
  padding: 0 13px;
  color: #6f4253;
  border: 1px solid #eac4d2;
  border-radius: 11px;
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: 530;
}

.complete-lesson-button svg {
  width: 15px;
  height: 15px;
}

.complete-lesson-button.completed {
  color: #5d3545;
  border-color: var(--pink-secondary);
  background: var(--pink);
}

.lesson-tabs {
  display: flex;
  gap: 24px;
  margin-top: 25px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.lesson-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 1px;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 500;
}

.lesson-tab.active {
  color: var(--text);
}

.lesson-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--pink-secondary);
  content: "";
}

.lesson-tab-panel {
  padding: 20px 0 8px;
}

.lesson-tab-panel > p {
  max-width: 820px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

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

.lesson-objectives h3 {
  font-size: 0.9rem;
  font-weight: 570;
}

.lesson-objectives ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.lesson-objectives li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 70px;
  padding: 12px;
  color: #5d575b;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.73rem;
  line-height: 1.45;
}

.lesson-objectives li span {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #744255;
  border-radius: 50%;
  background: var(--pink);
  font-size: 0.62rem;
  font-weight: 600;
}

.lesson-resource-list {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.lesson-resource-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 9px 0;
  text-align: left;
  background: transparent;
}

.lesson-resource-list button + button {
  border-top: 1px solid var(--line);
}

.lesson-resource-list button > span:nth-child(2) {
  min-width: 0;
}

.lesson-resource-list strong,
.lesson-resource-list small {
  display: block;
}

.lesson-resource-list strong {
  font-size: 0.8rem;
  font-weight: 540;
}

.lesson-resource-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.lesson-resource-list button > svg {
  width: 17px;
  height: 17px;
  color: var(--pink-dark);
}

.notes-field {
  display: block;
  max-width: 760px;
}

.notes-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.notes-field textarea {
  width: 100%;
  resize: vertical;
  padding: 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.5;
}

.notes-field textarea:focus {
  border-color: var(--pink-secondary);
  box-shadow: 0 0 0 4px rgba(228, 164, 189, 0.14);
}

.save-note {
  margin-top: 10px;
}

.lesson-outline {
  position: sticky;
  top: 24px;
  overflow: hidden;
}

.outline-header {
  padding: 22px 20px 18px;
}

.outline-header h2 {
  margin-top: 7px;
  font-size: 1.3rem;
  font-weight: 590;
}

.outline-header > p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.outline-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 7px;
  color: var(--muted);
  font-size: 0.68rem;
}

.outline-progress-label strong {
  color: var(--text);
  font-weight: 590;
}

.outline-lessons {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.outline-lesson {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 78px;
  padding: 11px 20px;
  text-align: left;
  background: transparent;
  transition: background 150ms ease;
}

.outline-lesson + .outline-lesson {
  border-top: 1px solid var(--line);
}

.outline-lesson:hover {
  background: var(--surface-soft);
}

.outline-lesson.current {
  background: var(--pink-pale);
}

.outline-lesson.current::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pink-secondary);
  content: "";
}

.outline-state {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #756c71;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  font-size: 0.68rem;
  font-weight: 570;
}

.outline-state svg {
  width: 16px;
  height: 16px;
  color: var(--pink-dark);
}

.outline-lesson.current .outline-state {
  color: #733b51;
  border-color: #e5afc4;
  background: var(--pink);
}

.outline-lesson > span:nth-child(2) {
  min-width: 0;
}

.outline-lesson strong,
.outline-lesson small {
  display: block;
}

.outline-lesson strong {
  font-size: 0.77rem;
  font-weight: 540;
  line-height: 1.35;
}

.outline-lesson small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
}

.now-playing {
  position: absolute;
  top: 9px;
  right: 11px;
  color: var(--pink-dark);
  font-size: 0.57rem;
  font-weight: 550;
}

.outline-footer {
  padding: 18px 20px 20px;
}

.outline-footer > span,
.outline-footer > strong {
  display: block;
}

.outline-footer > span {
  color: var(--muted);
  font-size: 0.65rem;
}

.outline-footer > strong {
  margin-top: 3px;
  font-size: 0.77rem;
  font-weight: 540;
}

.outline-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--pink-dark);
  font-size: 0.7rem;
  font-weight: 540;
}

.outline-footer a svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1040px) {
  .learning-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

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

  .lesson-outline {
    position: static;
  }

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

  .outline-lesson + .outline-lesson {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .lesson-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .lesson-top-actions {
    width: 100%;
  }

  .leave-player {
    flex: 1 1 auto;
  }

  .lesson-title-row {
    flex-direction: column;
    gap: 15px;
  }

  .lesson-title-row h2 {
    font-size: 1.38rem;
  }

  .complete-lesson-button {
    align-self: flex-start;
    margin-top: 0;
  }

  .lesson-objectives ul,
  .outline-lessons {
    grid-template-columns: 1fr;
  }

  .outline-lesson + .outline-lesson {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .lesson-page-heading h1 {
    font-size: 1.48rem;
  }

  .video-player {
    border-radius: 14px;
  }

  .center-play {
    width: 54px;
    height: 54px;
    border-width: 5px;
  }

  .player-controls {
    gap: 5px;
    min-height: 50px;
    padding: 7px 8px;
  }

  .player-control {
    width: 30px;
    height: 30px;
  }

  .captions-control,
  .settings-control,
  .total-time {
    display: none;
  }

  .player-time {
    font-size: 0.6rem;
  }

  .lesson-detail {
    margin-top: 18px;
  }

  .lesson-tabs {
    gap: 0;
    overflow-x: visible;
  }

  .lesson-tab {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 4px;
    font-size: 0.7rem;
    text-align: center;
  }
}
