:root {
  --ink: #202024;
  --muted: #5c5c66;
  --paper: #f7f7f8;
  --surface: #ffffff;
  --accent: #4216e8;
  --accent-2: #13b8c5;
  --accent-3: #ffb536;
  --shadow: 0 22px 55px rgba(36, 31, 75, 0.16);
  --radius: 8px;
  --heading-font: Georgia, "Times New Roman", serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-weight: 800;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--paper);
}

body[data-font-theme="modern"] {
  --heading-font: Avenir Next, Avenir, Montserrat, ui-sans-serif, system-ui, sans-serif;
  --body-font: Avenir Next, Avenir, ui-sans-serif, system-ui, sans-serif;
  --heading-weight: 900;
}

body[data-font-theme="jakarta"] {
  --heading-font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --body-font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --heading-weight: 900;
}

body[data-font-theme="friendly"] {
  --heading-font: Trebuchet MS, Verdana, ui-sans-serif, system-ui, sans-serif;
  --body-font: Verdana, Geneva, ui-sans-serif, system-ui, sans-serif;
  --heading-weight: 800;
}

body[data-font-theme="academic"] {
  --heading-font: Palatino, Palatino Linotype, Book Antiqua, Georgia, serif;
  --body-font: Optima, Candara, Calibri, Arial, sans-serif;
  --heading-weight: 700;
}

body[data-font-theme="humanist"] {
  --heading-font: Gill Sans, Gill Sans MT, Trebuchet MS, ui-sans-serif, system-ui, sans-serif;
  --body-font: Gill Sans, Gill Sans MT, Calibri, ui-sans-serif, system-ui, sans-serif;
  --heading-weight: 800;
}

body[data-font-theme="classic"] {
  --heading-font: Baskerville, Baskerville Old Face, Garamond, Georgia, serif;
  --body-font: Charter, Georgia, Cambria, serif;
  --heading-weight: 700;
}

body[data-font-theme="rounded"] {
  --heading-font: Arial Rounded MT Bold, Trebuchet MS, Verdana, ui-sans-serif, system-ui, sans-serif;
  --body-font: Trebuchet MS, Verdana, ui-sans-serif, system-ui, sans-serif;
  --heading-weight: 800;
}

body[data-font-theme="technical"] {
  --heading-font: Helvetica Neue, Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --body-font: Menlo, Monaco, Consolas, Liberation Mono, monospace;
  --heading-weight: 900;
}

body[data-font-theme="newspaper"] {
  --heading-font: Didot, Bodoni 72, Georgia, serif;
  --body-font: Georgia, Times New Roman, serif;
  --heading-weight: 800;
}

body[data-font-theme="minimal"] {
  --heading-font: Helvetica Neue, Arial, ui-sans-serif, system-ui, sans-serif;
  --body-font: Helvetica Neue, Arial, ui-sans-serif, system-ui, sans-serif;
  --heading-weight: 800;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.course-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 24px;
  left: 50%;
  display: flex;
  width: min(720px, calc(100vw - 40px));
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.topbar[hidden] {
  display: none;
}

.preference-panel {
  position: fixed;
  z-index: 25;
  top: 22px;
  right: 22px;
  display: grid;
  justify-items: end;
}

.preference-panel[hidden] {
  display: none;
}

.preference-toggle {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #e8e5f1;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(36, 31, 75, 0.12);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: translate 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.preference-toggle > span[aria-hidden="true"] {
  display: block;
  transform: translateY(-1px);
}

.preference-toggle:hover,
.preference-panel.is-open .preference-toggle {
  translate: 0 -1px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(36, 31, 75, 0.16);
}

.preference-controls {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: min(320px, calc(100vw - 44px));
  padding: 10px;
  border: 1px solid #e8e5f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(36, 31, 75, 0.12);
  backdrop-filter: blur(12px);
}

.preference-controls[hidden] {
  display: none;
}

.preference-control {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.preference-control span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.preference-control select {
  min-height: 36px;
  border: 1px solid #ddd9ed;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.progress-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.progress-track {
  position: relative;
  height: 42px;
  overflow: visible;
  border-radius: 999px;
  background: #e8e5f1;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111 0%, var(--accent) 100%);
  transition: width 240ms ease;
}

.progress-label {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  display: grid;
  min-width: 58px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #111;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(36, 31, 75, 0.18);
  transform: translateY(-50%);
}

.progress-marker {
  position: absolute;
  top: 50%;
  left: var(--progress-position, 0%);
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(66, 22, 232, 0.22);
  transform: translate(-50%, -50%);
  transition: left 240ms ease;
}

.progress-marker.is-hot-streak {
  background: linear-gradient(135deg, #ff5a22 0%, #ffb536 54%, var(--accent) 100%);
  box-shadow:
    0 0 0 5px rgba(255, 181, 54, 0.2),
    0 0 24px rgba(255, 91, 34, 0.42),
    0 12px 24px rgba(66, 22, 232, 0.24);
}

.progress-marker.is-hot-streak::before,
.progress-marker.is-hot-streak::after {
  position: absolute;
  right: 24px;
  z-index: -1;
  display: block;
  border-radius: 999px;
  content: "";
  transform-origin: right center;
}

.progress-marker.is-hot-streak::before {
  width: 28px;
  height: 14px;
  background: linear-gradient(90deg, rgba(255, 91, 34, 0), rgba(255, 91, 34, 0.92));
  filter: blur(1px);
  animation: flame-flicker 520ms ease-in-out infinite alternate;
}

.progress-marker.is-hot-streak::after {
  width: 18px;
  height: 8px;
  background: linear-gradient(90deg, rgba(255, 213, 94, 0), rgba(255, 239, 156, 0.95));
  animation: flame-flicker 420ms ease-in-out 90ms infinite alternate;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 100vh;
  overflow-y: auto;
  padding: 120px 96px 118px;
  align-items: start;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(22px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

h1,
h2 {
  margin: 0;
  font-family: var(--heading-font);
  color: var(--accent);
  font-weight: var(--heading-weight);
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: 6.8rem;
}

h2 {
  font-size: 4.4rem;
}

h3 {
  margin: 10px 0 28px;
  font-size: 3rem;
  line-height: 1.05;
}

p {
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.42;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-layout {
  display: grid;
  width: min(1380px, 100%);
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.screen.is-active h1,
.screen.is-active h2,
.screen.is-active h3,
.screen.is-active .eyebrow,
.screen.is-active p,
.screen.is-active li,
.screen.is-active article,
.screen.is-active .primary-action,
.screen.is-active .secondary-action,
.screen.is-active .ghost-action,
.screen.is-active .flip-card,
.screen.is-active .type-card,
.screen.is-active .choice-stack > *,
.screen.is-active .check-stack > *,
.screen.is-active .drag-bank,
.screen.is-active .drop-zone,
.screen.is-active textarea,
.screen.is-active .scenario-tabs,
.screen.is-active .outcome-list,
.screen.is-active .compact-list {
  animation: fade-rise 520ms ease both;
}

.screen.is-active h1,
.screen.is-active h2,
.screen.is-active .eyebrow {
  animation-delay: 40ms;
}

.screen.is-active h3,
.screen.is-active p,
.screen.is-active article:nth-of-type(1),
.screen.is-active .flip-card,
.screen.is-active .type-card:nth-child(1),
.screen.is-active .scenario-tabs,
.screen.is-active .choice-stack > *:nth-child(1),
.screen.is-active .check-stack > *:nth-child(1),
.screen.is-active .drag-bank {
  animation-delay: 120ms;
}

.screen.is-active article:nth-of-type(2),
.screen.is-active li:nth-child(1),
.screen.is-active .type-card:nth-child(2),
.screen.is-active .primary-action,
.screen.is-active .secondary-action,
.screen.is-active .ghost-action:nth-child(1),
.screen.is-active .choice-stack > *:nth-child(2),
.screen.is-active .check-stack > *:nth-child(2),
.screen.is-active .drop-zone:nth-child(1),
.screen.is-active .outcome-list,
.screen.is-active .compact-list {
  animation-delay: 220ms;
}

.screen.is-active article:nth-of-type(3),
.screen.is-active li:nth-child(2),
.screen.is-active .ghost-action:nth-child(2),
.screen.is-active .choice-stack > *:nth-child(3),
.screen.is-active .check-stack > *:nth-child(3),
.screen.is-active .drop-zone:nth-child(2),
.screen.is-active textarea {
  animation-delay: 320ms;
}

.screen.is-active li:nth-child(3),
.screen.is-active .ghost-action:nth-child(3),
.screen.is-active .check-stack > *:nth-child(4) {
  animation-delay: 420ms;
}

.screen.is-active li:nth-child(4) {
  animation-delay: 520ms;
}

.screen.is-active li:nth-child(5) {
  animation-delay: 620ms;
}

.screen.is-active li:nth-child(6) {
  animation-delay: 720ms;
}

.screen.is-active li:nth-child(7) {
  animation-delay: 820ms;
}

.subtitle {
  width: fit-content;
  max-width: 980px;
  padding: 22px 30px;
  background: var(--surface);
  font-size: 1.9rem;
}

.course-subtitle {
  max-width: 860px;
  color: var(--accent);
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 1.14;
}

.intro-copy {
  max-width: 760px;
}

.course-time {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e7e2f7;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(36, 31, 75, 0.08);
}

.course-time span {
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  min-width: 220px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: translate 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-action,
.secondary-action {
  animation: cta-float 3.8s ease-in-out infinite;
}

.primary-action {
  box-shadow: 0 12px 28px rgba(66, 22, 232, 0.14);
}

.primary-action[data-check-sort],
.primary-action[data-check-multi],
.primary-action[data-check-word] {
  min-width: 260px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, #18a66e, #4216e8);
  box-shadow:
    0 0 0 5px rgba(22, 134, 90, 0.12),
    0 20px 42px rgba(22, 134, 90, 0.22),
    0 18px 36px rgba(66, 22, 232, 0.18);
}

.primary-action[data-check-sort]::before,
.primary-action[data-check-multi]::before,
.primary-action[data-check-word]::before {
  content: "✓";
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #0f7f5c;
  background: #fff;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1;
}

.primary-action:hover,
.secondary-action:hover {
  box-shadow: 0 18px 34px rgba(66, 22, 232, 0.24);
  translate: 0 -4px;
}

.primary-action[data-check-sort]:hover,
.primary-action[data-check-multi]:hover,
.primary-action[data-check-word]:hover {
  box-shadow:
    0 0 0 6px rgba(22, 134, 90, 0.16),
    0 24px 48px rgba(22, 134, 90, 0.28),
    0 20px 40px rgba(66, 22, 232, 0.2);
}

.primary-action:disabled,
.secondary-action:disabled,
.ghost-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  animation: none;
  box-shadow: none;
  translate: 0 0;
  transform: none;
}

.primary-action:disabled {
  background: #9f8be8;
}

.primary-action:disabled:hover,
.secondary-action:disabled:hover,
.ghost-action:disabled:hover {
  box-shadow: none;
  translate: 0 0;
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.ghost-action:focus-visible {
  outline: 3px solid rgba(66, 22, 232, 0.3);
  outline-offset: 4px;
}

.ghost-action {
  border: 2px solid #ddd9ed;
  color: var(--ink);
  background: #fff;
}

.ghost-action:hover {
  border-color: rgba(66, 22, 232, 0.35);
  box-shadow: 0 12px 24px rgba(36, 31, 75, 0.12);
  translate: 0 -2px;
}

.screen.is-active .primary-action,
.screen.is-active .secondary-action {
  animation:
    fade-rise 520ms ease 220ms both,
    cta-float 3.8s ease-in-out 820ms infinite;
}

.screen.is-active .ghost-action {
  animation:
    fade-rise 520ms ease 220ms both,
    cta-soft-glow 4.6s ease-in-out 900ms infinite;
}

.hero-visual {
  min-height: 380px;
  display: grid;
  place-items: center;
}

.device-art {
  position: relative;
  width: min(360px, 70vw);
  aspect-ratio: 1.1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 80%, #ff4f8b 0 24%, #ffb536 25% 54%, transparent 55%);
  animation: float-device 4.8s ease-in-out infinite;
  filter: drop-shadow(0 24px 18px rgba(36, 31, 75, 0.12));
}

.device-screen {
  position: absolute;
  top: 18%;
  left: 22%;
  width: 68%;
  height: 48%;
  padding: 22px;
  border: 14px solid #d8dadc;
  border-radius: 16px;
  background: #173e44;
  box-shadow: 16px 18px 0 rgba(0, 0, 0, 0.14);
  transform: rotate(28deg) skew(-8deg);
}

.device-screen span {
  display: block;
  height: 18px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: var(--accent-2);
}

.device-screen span:nth-child(2) {
  width: 64%;
  background: #ff5d65;
}

.device-screen span:nth-child(3) {
  width: 78%;
  background: var(--accent-3);
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-3);
}

.spark-one {
  top: 18%;
  right: 2%;
}

.spark-two {
  bottom: 35%;
  left: 6%;
  background: var(--accent-2);
}

.spark-three {
  top: 28%;
  left: 12%;
  background: #fff;
}

@keyframes float-device {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-18px) rotate(1.5deg);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-float {
  0%,
  100% {
    translate: 0 0;
    box-shadow: 0 12px 28px rgba(66, 22, 232, 0.14);
  }

  50% {
    translate: 0 -5px;
    box-shadow: 0 18px 34px rgba(66, 22, 232, 0.22);
  }
}

@keyframes cta-soft-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(36, 31, 75, 0);
  }

  50% {
    box-shadow: 0 10px 22px rgba(36, 31, 75, 0.12);
  }
}

@keyframes feedback-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes current-card-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(66, 22, 232, 0.08),
      0 20px 46px rgba(66, 22, 232, 0.18);
  }

  50% {
    box-shadow:
      0 0 0 7px rgba(66, 22, 232, 0.13),
      0 26px 56px rgba(66, 22, 232, 0.24);
  }
}

@keyframes current-dot-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(31, 180, 112, 0.34),
      0 7px 14px rgba(31, 180, 112, 0.2);
    transform: scale(1);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(31, 180, 112, 0),
      0 9px 18px rgba(31, 180, 112, 0.26);
    transform: scale(1.08);
  }
}

@keyframes flame-flicker {
  from {
    opacity: 0.72;
    transform: translateX(0) scaleX(0.86);
  }

  to {
    opacity: 1;
    transform: translateX(-3px) scaleX(1.08);
  }
}

@keyframes badge-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes badge-ring {
  0% {
    opacity: 0.72;
    transform: scale(0.78);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes check-draw {
  0% {
    opacity: 0;
    transform: rotate(-12deg) scale(0.35);
  }

  58% {
    opacity: 1;
    transform: rotate(4deg) scale(1.18);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes stroke-draw {
  from {
    opacity: 0;
    stroke-dashoffset: 120;
  }

  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes module-medal-glow {
  0%,
  100% {
    box-shadow: 0 24px 50px rgba(15, 127, 92, 0.28);
  }

  50% {
    box-shadow:
      0 24px 50px rgba(15, 127, 92, 0.28),
      0 0 0 12px rgba(22, 134, 90, 0.1);
  }
}

@keyframes word-generate {
  from {
    opacity: 0;
    filter: blur(4px);
    text-shadow: 0 0 0 rgba(66, 22, 232, 0);
    transform: translateY(12px) scale(0.9);
  }

  58% {
    opacity: 1;
    filter: blur(0);
    text-shadow: 0 0 18px rgba(66, 22, 232, 0.22);
    transform: translateY(-2px) scale(1.06);
  }

  to {
    opacity: 1;
    filter: blur(0);
    text-shadow: 0 0 0 rgba(66, 22, 232, 0);
    transform: translateY(0) scale(1);
  }
}

@keyframes dots-pulse {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 1;
  }
}

@keyframes confetti-drift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(10deg);
  }
}

@keyframes unlock-shackle {
  0% {
    transform: translateX(4px) rotate(0deg);
  }

  55%,
  100% {
    transform: translateX(0) rotate(-28deg);
  }
}

@keyframes unlock-icon-pop {
  0% {
    transform: scale(0.88);
  }

  65% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

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

  .primary-action,
  .secondary-action,
  .screen.is-active .primary-action,
  .screen.is-active .secondary-action,
  .screen.is-active .ghost-action {
    animation: none;
  }

  .screen.is-active h1,
  .screen.is-active h2,
  .screen.is-active h3,
  .screen.is-active .eyebrow,
  .screen.is-active p,
  .screen.is-active li,
  .screen.is-active article,
  .screen.is-active .primary-action,
  .screen.is-active .secondary-action,
  .screen.is-active .ghost-action,
  .screen.is-active .flip-card,
  .screen.is-active .type-card,
  .screen.is-active .choice-stack > *,
  .screen.is-active .check-stack > *,
  .screen.is-active .drag-bank,
  .screen.is-active .drop-zone,
  .screen.is-active .generated-line span,
  .screen.is-active textarea,
  .screen.is-active .scenario-tabs,
  .screen.is-active .outcome-list,
  .screen.is-active .compact-list {
    animation: none;
  }

  .path-step.is-current {
    animation: none;
  }

  .current-dot {
    animation: none;
  }

  .celebration-badge,
  .celebration-badge::before,
  .confetti,
  .unlock-icon,
  .lock-shackle,
  .progress-marker.is-hot-streak::before,
  .progress-marker.is-hot-streak::after {
    animation: none;
  }
}

.focused-panel,
.text-screen,
.outcomes-layout,
.module-select,
.placeholder-screen {
  width: min(1160px, 100%);
  text-align: center;
}

.focused-panel,
.text-screen,
.placeholder-screen {
  align-self: center;
}

.context-screen {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  justify-items: center;
  gap: 22px;
  align-self: center;
  padding: 42px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.context-screen h2 {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 3.6rem;
  line-height: 0.95;
}

.context-screen > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 750;
}

.context-choice-grid {
  display: grid;
  width: min(780px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.context-choice-grid[hidden] {
  display: none;
}

.context-choice-grid button {
  position: relative;
  display: grid;
  min-height: 128px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(66, 22, 232, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(36, 31, 75, 0.08);
  text-align: left;
  cursor: pointer;
  transition: translate 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.context-choice-grid button:hover,
.context-choice-grid button.is-selected {
  translate: 0 -2px;
  border-color: rgba(66, 22, 232, 0.36);
  background: #f8f5ff;
  box-shadow: 0 18px 34px rgba(66, 22, 232, 0.14);
}

.context-choice-grid button.is-selected::after {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #16865a;
  box-shadow: 0 10px 22px rgba(22, 134, 90, 0.2);
  content: "✓";
  font-weight: 950;
}

.context-choice-grid span {
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 950;
}

.context-choice-grid small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.context-status {
  min-height: 1.4em;
  color: #087250 !important;
}

.lesson-complete {
  position: relative;
  display: grid;
  width: min(900px, 100%);
  align-self: center;
  justify-items: center;
  gap: 20px;
  overflow: hidden;
  padding: 54px 48px;
  border: 2px solid rgba(66, 22, 232, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 181, 54, 0.22), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(34, 200, 120, 0.16), transparent 24%),
    linear-gradient(180deg, #fff, #f2edff);
  box-shadow: 0 26px 70px rgba(66, 22, 232, 0.18);
  text-align: center;
}

.lesson-complete h2 {
  margin: 0;
  color: var(--accent);
  font-size: 4.4rem;
}

.lesson-complete p {
  max-width: 760px;
  font-size: 1.35rem;
}

.skills-recap {
  display: grid;
  width: min(760px, 100%);
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid rgba(22, 134, 90, 0.2);
  border-radius: 22px;
  background: rgba(235, 255, 247, 0.86);
  box-shadow: 0 18px 44px rgba(36, 31, 75, 0.08);
  text-align: left;
}

.skills-recap h3 {
  margin: 0;
  color: #0d7555;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.skills-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.28;
}

.skills-list li::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #16865a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  content: "✓";
}

.module-skills-recap {
  background: rgba(255, 255, 255, 0.78);
}

.module-complete {
  position: relative;
  display: grid;
  width: min(1040px, 100%);
  align-self: center;
  justify-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 34px 56px 36px;
  border: 2px solid rgba(66, 22, 232, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 181, 54, 0.22), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(21, 184, 197, 0.2), transparent 24%),
    radial-gradient(circle at 48% 6%, rgba(66, 22, 232, 0.14), transparent 24%),
    linear-gradient(180deg, #fff, #f5f1ff 72%, #eef8ff);
  box-shadow: 0 34px 90px rgba(66, 22, 232, 0.18);
  text-align: center;
}

.module-complete::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 24px;
  content: "";
  pointer-events: none;
}

.module-complete h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.module-complete-intro {
  width: min(780px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.45;
}

.module-medal {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, #18a66e, #0f7f5c);
  box-shadow: 0 24px 50px rgba(15, 127, 92, 0.28);
  animation: badge-pop 520ms ease both, module-medal-glow 2.8s ease-in-out 700ms infinite;
}

.module-medal svg {
  width: 68px;
  height: 68px;
}

.module-medal circle,
.module-medal path {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen.is-active .module-medal path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: stroke-draw 780ms cubic-bezier(0.2, 0.9, 0.2, 1) 220ms both;
}

.module-learned-list {
  display: grid;
  width: min(760px, 100%);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.module-learned-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border: 1px solid rgba(66, 22, 232, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  box-shadow: 0 16px 36px rgba(36, 31, 75, 0.08);
}

.module-learned-list li:not(:has(svg))::before {
  content: "";
  width: 14px;
  height: 14px;
  justify-self: center;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(66, 22, 232, 0.09);
}

.module-learned-list svg {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 14px;
  background: #eef8ff;
  color: var(--accent);
}

.module-learned-list path,
.module-learned-list circle,
.module-learned-list rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-takeaway {
  display: grid;
  width: min(760px, 100%);
  gap: 8px;
  padding: 16px 24px;
  border: 1px solid rgba(22, 134, 90, 0.22);
  border-radius: 22px;
  background: #ebfff7;
  color: #0f6547;
  box-shadow: 0 18px 40px rgba(22, 134, 90, 0.12);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
  width: min(760px, 100%);
}

.process-steps span {
  position: relative;
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px solid rgba(66, 22, 232, 0.16);
  border-radius: 18px;
  background: #fff;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(36, 31, 75, 0.08);
}

.process-steps span:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -14px;
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 900;
}

.reflection-panel {
  display: grid;
  width: min(1080px, 100%);
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.reflection-panel h2 {
  font-size: 3.65rem;
}

.reflection-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(760px, 100%);
}

.reflection-prompts article {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(66, 22, 232, 0.16);
  border-radius: 22px;
  background: #fff;
  text-align: left;
  box-shadow: 0 18px 42px rgba(36, 31, 75, 0.08);
}

.reflection-prompts span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.reflection-prompts h3,
.reflection-prompts p {
  margin: 0;
}

.module-takeaway p,
.module-takeaway strong {
  margin: 0;
}

.module-takeaway p {
  font-size: 1.18rem;
}

.module-takeaway strong {
  color: #0b5b3e;
  font-size: 1.35rem;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.module-burst {
  position: absolute;
  display: block;
  width: 16px;
  height: 42px;
  border-radius: 999px;
  opacity: 0.85;
  animation: confetti-drift 3.2s ease-in-out infinite;
}

.module-burst.burst-one {
  top: 58px;
  left: 14%;
  background: #f4b63f;
  rotate: -18deg;
}

.module-burst.burst-two {
  top: 82px;
  right: 16%;
  background: #13b8c5;
  animation-delay: 360ms;
}

.module-burst.burst-three {
  right: 9%;
  bottom: 88px;
  background: #cc4763;
  animation-delay: 760ms;
}

.better-question {
  position: relative;
  display: grid;
  width: min(840px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 6px;
}

.better-question::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(66, 22, 232, 0.24);
  content: "→";
  font-size: 1.45rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.question-card,
.key-takeaway {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 188px;
  align-content: center;
  justify-items: center;
  padding: 28px 24px;
  border: 1px solid rgba(66, 22, 232, 0.16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(36, 31, 75, 0.08);
}

.avoid-question {
  border-color: rgba(204, 71, 99, 0.22);
  background: linear-gradient(180deg, #fff, #fff3f5);
}

.verify-question {
  border-color: rgba(22, 134, 90, 0.22);
  background: linear-gradient(180deg, #fff, #ebfff7);
  box-shadow: 0 18px 42px rgba(22, 134, 90, 0.14);
}

.question-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #cc4763;
  box-shadow: none;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.verify-question .question-icon {
  background: #16865a;
}

.better-question span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.better-question .question-icon {
  color: #fff;
}

.question-card strong,
.key-takeaway {
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1.25;
}

.verify-question strong {
  color: #0f6547;
}

.try-layout {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.external-practice {
  width: min(1040px, 100%);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
}

.embedded-practice {
  width: min(1040px, 100%);
  grid-template-columns: minmax(280px, 0.75fr) minmax(380px, 1fr);
}

.ai-chat-window,
.practice-steps,
.field-activity-card,
.tool-launcher-card {
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(36, 31, 75, 0.1);
}

.field-activity-card,
.tool-launcher-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  text-align: left;
}

.field-activity-card {
  background:
    radial-gradient(circle at 12% 14%, rgba(19, 184, 197, 0.13), transparent 28%),
    #fff;
}

.activity-kicker {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f6547;
  background: #ebfff7;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-activity-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.85rem;
  line-height: 1.08;
}

.field-activity-card .practice-steps {
  width: 100%;
  border: 0;
  padding: 0 0 0 28px;
  background: transparent;
  box-shadow: none;
}

.inline-reflection {
  display: none;
  gap: 14px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(66, 22, 232, 0.12);
}

.inline-reflection h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.25rem;
  line-height: 1.15;
}

.inline-reflection ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inline-reflection li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(73, 49, 237, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.inline-reflection li span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  grid-row: span 2;
}

.inline-reflection li strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.1;
}

.inline-reflection li small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.workout-reflection {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(860px, 100%);
  margin-top: 2px;
  padding: 18px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(19, 184, 197, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(235, 255, 247, 0.96), rgba(248, 246, 255, 0.96));
  box-shadow: 0 20px 52px rgba(36, 31, 75, 0.12);
  text-align: left;
  scroll-margin-bottom: 132px;
}

.workout-reflection ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workout-compare-screen {
  width: min(1040px, 100%);
  padding-bottom: 104px;
}

.workout-compare-screen h2 {
  font-size: 3rem;
}

.workout-response-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.workout-response-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(36, 31, 75, 0.1);
  text-align: left;
}

.workout-response-card.is-improved {
  border-color: rgba(19, 184, 197, 0.32);
  background:
    radial-gradient(circle at 88% 8%, rgba(19, 184, 197, 0.12), transparent 30%),
    #fff;
}

.response-label {
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f6547;
  background: #ebfff7;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workout-response-card blockquote {
  margin: 0;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.22;
}

.workout-response-card .chat-message {
  max-width: none;
}

.workout-reflection-screen {
  display: grid;
  width: 100%;
  margin-top: 0;
  animation: none;
}

.tool-launcher-card {
  background:
    radial-gradient(circle at 88% 10%, rgba(66, 22, 232, 0.13), transparent 30%),
    linear-gradient(180deg, #fff, #f7f4ff);
}

.launcher-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.tool-buttons {
  display: grid;
  gap: 12px;
}

.tool-buttons .primary-action,
.tool-buttons .secondary-action,
.sample-prompt-box .ghost-action {
  width: 100%;
  min-width: 0;
  text-decoration: none;
}

.external-tool-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.sample-prompt-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(66, 22, 232, 0.13);
  border-radius: 18px;
  background: #fff;
}

.sample-prompt-box span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-prompt-box p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.sample-prompt-box .ghost-action {
  min-height: 44px;
  font-size: 0.95rem;
}

.sample-prompt-box .ghost-action.is-copied {
  border-color: rgba(22, 134, 90, 0.3);
  color: #0b6b4a;
  background: #ebfff7;
  box-shadow: 0 12px 24px rgba(22, 134, 90, 0.14);
}

.copy-status {
  min-height: 1.2em;
  margin: -2px 0 0;
  color: #0b6b4a;
  font-size: 0.9rem;
  font-weight: 850;
}

.return-checklist {
  display: grid;
  width: min(1040px, 100%);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 16%, rgba(34, 200, 120, 0.1), transparent 26%),
    #fff;
  box-shadow: 0 18px 44px rgba(36, 31, 75, 0.09);
  text-align: left;
}

.return-checklist-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
}

.return-checklist-header .eyebrow,
.return-checklist-header h3 {
  margin: 0;
}

.return-checklist-header h3 {
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.2rem;
  line-height: 1.2;
}

.return-checklist-screen {
  width: min(1080px, 100%);
  gap: 26px;
  padding: 46px;
  text-align: center;
}

.return-checklist-screen .return-checklist-header {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.return-checklist-screen .return-checklist-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: 3.65rem;
  line-height: 0.98;
}

.return-checklist-screen .return-checklist-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.compact-notice-grid .notice-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: start;
  column-gap: 12px;
  row-gap: 6px;
  min-height: 0;
  padding: 16px 18px;
}

.compact-notice-grid .notice-card span {
  grid-column: 1;
  grid-row: 1;
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.compact-notice-grid .notice-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.1rem;
}

.compact-notice-grid .notice-card p {
  grid-column: 1 / -1;
  font-size: 0.94rem;
}

.prompt-parts-list {
  width: min(560px, 100%);
  margin: 20px auto 0;
}

.prompt-breakdown-list {
  width: min(660px, 100%);
  margin: 18px auto 0;
}

.prompt-breakdown-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px 14px 62px;
  border: 1px solid rgba(66, 22, 232, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(36, 31, 75, 0.08);
  font-size: 1.2rem;
}

.prompt-piece {
  color: var(--accent);
  font-weight: 900;
}

.prompt-role {
  color: var(--ink);
  font-weight: 800;
}

.prompt-template {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 18px;
  color: var(--ink);
  background: #f8f6ff;
  font-weight: 850;
  line-height: 1.35;
}

.prompt-builder-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 18px;
  background: #f8f6ff;
}

.prompt-builder-card label {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.prompt-builder-card span {
  color: rgba(31, 44, 64, 0.62);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-builder-card label::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  width: 36px;
  height: 100%;
  max-height: 48px;
  place-items: center;
  border-left: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 0 10px 10px 0;
  color: #fff;
  background: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  pointer-events: none;
  transform: translateY(-50%);
}

.prompt-builder-card select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 8px 44px 8px 12px;
  border: 1px solid rgba(66, 22, 232, 0.22);
  border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(180deg, #fff, #f8f6ff);
  font: inherit;
  font-weight: 900;
  appearance: none;
  box-shadow: 0 8px 18px rgba(66, 22, 232, 0.08);
  cursor: pointer;
}

.prompt-builder-card select:focus {
  outline: 3px solid rgba(66, 22, 232, 0.2);
  outline-offset: 2px;
}

.revision-hint {
  margin: 0;
  color: rgba(31, 44, 64, 0.72);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.ai-chat-window {
  display: grid;
  gap: 12px;
  padding: 18px;
  text-align: left;
}

.interactive-chat {
  grid-template-rows: auto minmax(230px, 1fr) auto auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.chat-message {
  max-width: 88%;
  padding: 13px 15px;
  border-radius: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  max-height: 340px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(66, 22, 232, 0.12);
  border-radius: 22px;
  background: #f8f6ff;
}

.user-message {
  justify-self: end;
  color: #fff;
  background: var(--accent);
  border-bottom-right-radius: 6px;
}

.ai-bubble {
  justify-self: start;
  color: var(--ink);
  background: #f4efff;
  border-bottom-left-radius: 6px;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chat-composer input {
  min-height: 54px;
  border: 1px solid rgba(66, 22, 232, 0.2);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
}

.chat-composer input:focus {
  outline: 3px solid rgba(66, 22, 232, 0.18);
  border-color: rgba(66, 22, 232, 0.48);
}

.prompt-text-composer {
  grid-template-columns: 1fr;
}

.chat-composer textarea {
  min-height: 132px;
  resize: vertical;
  border: 1px solid rgba(66, 22, 232, 0.2);
  border-radius: 22px;
  padding: 16px 18px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
}

.chat-composer textarea:focus {
  outline: 3px solid rgba(66, 22, 232, 0.18);
  border-color: rgba(66, 22, 232, 0.48);
}

.chat-composer .primary-action {
  min-width: 96px;
  min-height: 54px;
  font-size: 1rem;
}

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

.chat-actions .ghost-action {
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.practice-steps {
  counter-reset: practice-step;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 24px 26px;
  color: var(--ink);
  text-align: left;
}

.practice-steps li {
  counter-increment: practice-step;
  position: relative;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
  border-radius: 14px;
  padding: 8px 10px 8px 42px;
  font-weight: 800;
  line-height: 1.35;
}

.practice-steps li::before {
  content: counter(practice-step);
  position: absolute;
  top: 8px;
  left: 10px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(66, 22, 232, 0.12);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.practice-steps li[data-practice-stage="repeat"],
.practice-steps li[data-practice-stage="compare"] {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}

#screen-l3-try-yourself.has-first-response .practice-steps li[data-practice-stage="repeat"],
#screen-l3-try-yourself.has-compared .practice-steps li[data-practice-stage="compare"],
#screen-m2-l1-try.has-first-response .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l1-try.has-compared .practice-steps li[data-practice-stage="compare"],
#screen-m2-l2-try-workout.has-first-response .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l2-try-workout.has-compared .practice-steps li[data-practice-stage="compare"],
#screen-m2-l2-create-prompt.has-first-response .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l2-create-prompt.has-compared .practice-steps li[data-practice-stage="compare"] {
  display: list-item;
  opacity: 1;
  transform: translateY(0);
}

#screen-l3-try-yourself.has-first-response .practice-steps li[data-practice-stage="start"],
#screen-l3-try-yourself.has-compared .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l1-try.has-first-response .practice-steps li[data-practice-stage="start"],
#screen-m2-l1-try.has-compared .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l2-try-workout.has-first-response .practice-steps li[data-practice-stage="start"],
#screen-m2-l2-try-workout.has-compared .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l2-create-prompt.has-first-response .practice-steps li[data-practice-stage="start"],
#screen-m2-l2-create-prompt.has-compared .practice-steps li[data-practice-stage="repeat"] {
  color: #607187;
}

#screen-l3-try-yourself.has-first-response .practice-steps li[data-practice-stage="repeat"],
#screen-l3-try-yourself.has-compared .practice-steps li[data-practice-stage="compare"],
#screen-m2-l1-try.has-first-response .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l1-try.has-compared .practice-steps li[data-practice-stage="compare"],
#screen-m2-l2-try-workout.has-first-response .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l2-try-workout.has-compared .practice-steps li[data-practice-stage="compare"],
#screen-m2-l2-create-prompt.has-first-response .practice-steps li[data-practice-stage="repeat"],
#screen-m2-l2-create-prompt.has-compared .practice-steps li[data-practice-stage="compare"] {
  color: var(--ink);
}

.practice-steps li.is-complete {
  background: rgba(22, 134, 90, 0.1);
  color: #16865a !important;
}

.practice-steps li.is-complete::before {
  content: "✓";
  background: #16865a;
  color: #fff;
}

.practice-steps li.is-current {
  background: rgba(73, 49, 237, 0.1);
  box-shadow: inset 0 0 0 2px rgba(73, 49, 237, 0.22);
  color: var(--ink) !important;
  transform: translateX(3px);
}

.practice-requirement {
  margin: 1rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: rgba(66, 22, 232, 0.07);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.practice-requirement strong {
  color: var(--ink);
}

.practice-steps li.is-current::before {
  background: var(--accent);
  color: #fff;
}

.prompt-starter-panel {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(190, 176, 255, 0.45);
}

.prompt-starter-panel .eyebrow {
  margin-bottom: 0.2rem;
  text-align: left;
}

.prompt-starter-cue {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.prompt-starter-list {
  display: grid;
  gap: 0.55rem;
}

.prompt-starter-list[hidden] {
  display: none;
}

.prompt-starter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(190, 176, 255, 0.9);
  border-radius: 8px;
  background: rgba(246, 242, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.prompt-starter-action {
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: rgba(66, 22, 232, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.prompt-starter:hover,
.prompt-starter:focus-visible {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}

.prompt-pair-starter {
  align-items: flex-start;
}

.prompt-pair-copy {
  display: grid;
  gap: 0.35rem;
}

.prompt-pair-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.prompt-pair-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.22;
}

.selected-prompt-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(22, 134, 90, 0.24);
  border-radius: 12px;
  background: #ebfff7;
  color: var(--ink);
}

.selected-prompt-panel[hidden] {
  display: none;
}

.selected-prompt-panel .eyebrow {
  margin: 0;
  color: #0f6547;
}

.selected-prompt-panel p:last-child {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.3;
}

.notice-prompts {
  display: grid;
  width: min(760px, 100%);
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(36, 31, 75, 0.08);
  text-align: left;
}

.notice-prompts .eyebrow {
  margin: 0;
}

.notice-prompts ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.notice-prompts li {
  color: var(--ink);
  font-weight: 850;
}

.notice-screen {
  display: grid;
  width: min(1040px, 100%);
  justify-items: center;
  gap: 22px;
  padding: 48px 54px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 181, 54, 0.16), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(19, 184, 197, 0.14), transparent 30%),
    #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.notice-screen h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
}

.notice-intro {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.45;
}

.notice-card-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.notice-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(66, 22, 232, 0.15);
  border-radius: 24px;
  background: #f8f6ff;
  box-shadow: 0 16px 36px rgba(36, 31, 75, 0.08);
  text-align: left;
}

.notice-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(66, 22, 232, 0.2);
}

.notice-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.4rem;
  line-height: 1.1;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
}

.key-idea-panel {
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 200, 120, 0.14), transparent 28%),
    #fff;
}

.key-takeaway {
  width: min(720px, 100%);
  border-color: rgba(22, 134, 90, 0.2);
  color: #0b6b4a;
  background: #ebfff7;
  font-weight: 900;
}

.insight-list {
  display: grid;
  width: min(760px, 100%);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-list li {
  position: relative;
  padding: 16px 20px 16px 54px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  text-align: left;
  box-shadow: 0 14px 32px rgba(36, 31, 75, 0.08);
}

.insight-list li::before {
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  content: "!";
  font-size: 0.9rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.celebration-badge {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #16865a;
  box-shadow: 0 18px 34px rgba(22, 134, 90, 0.24);
  font-size: 2.4rem;
  font-weight: 900;
  animation: badge-pop 440ms ease both;
}

.celebration-badge::before {
  position: absolute;
  inset: -10px;
  border: 3px solid rgba(22, 134, 90, 0.28);
  border-radius: inherit;
  content: "";
  animation: badge-ring 900ms ease-out 160ms both;
}

.screen.is-active .celebration-badge {
  animation: badge-pop 440ms ease both;
}

.screen.is-active .celebration-badge::before {
  animation: badge-ring 900ms ease-out 160ms both;
}

.screen.is-active .celebration-badge {
  color: transparent;
}

.screen.is-active .celebration-badge::after {
  content: "✓";
  position: absolute;
  color: #fff;
  animation: check-draw 620ms cubic-bezier(0.2, 0.9, 0.2, 1) 180ms both;
}

.unlock-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #126d4a;
  background: transparent;
  font-size: 1rem;
  font-weight: 900;
}

.unlock-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #16865a;
  background: #ecfff7;
  animation: unlock-icon-pop 620ms ease 180ms both;
}

.unlock-icon svg {
  width: 25px;
  height: 25px;
}

.unlock-icon path,
.unlock-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lock-shackle {
  transform-box: fill-box;
  transform-origin: 15% 85%;
  animation: unlock-shackle 900ms ease 260ms both;
}

.confetti {
  position: absolute;
  display: block;
  width: 14px;
  height: 32px;
  border-radius: 999px;
  opacity: 0.9;
  animation: confetti-drift 2.8s ease-in-out infinite;
}

.confetti.c1 {
  top: 42px;
  left: 14%;
  background: #f4b63f;
  transform: rotate(-18deg);
}

.confetti.c2 {
  top: 78px;
  right: 17%;
  background: #13b8c5;
  animation-delay: 420ms;
}

.confetti.c3 {
  right: 8%;
  bottom: 84px;
  background: #cc4763;
  animation-delay: 760ms;
}

.focused-panel {
  display: grid;
  justify-items: center;
  gap: 34px;
  padding: 52px;
  background: var(--surface);
}

.phone-icon {
  width: 140px;
  height: 78px;
  border: 10px solid #454545;
  border-radius: 18px;
  background: linear-gradient(135deg, #d5f1d7, #71d4ec);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.35);
}

.text-screen {
  display: grid;
  gap: 34px;
}

.lead,
.takeaway {
  font-weight: 800;
}

.takeaway {
  max-width: 850px;
  justify-self: center;
  color: #55555f;
}

.outcomes-layout {
  display: grid;
  justify-items: center;
  gap: 30px;
}

.outcome-list {
  display: grid;
  width: min(900px, 100%);
  gap: 22px;
  margin: 18px 0 0;
  padding: 42px 62px;
  list-style: none;
  text-align: left;
  background: var(--surface);
}

.outcome-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  position: relative;
  min-height: 32px;
  font-size: 1.65rem;
}

.outcome-icon {
  width: 44px;
  height: 44px;
  padding: 7px;
  overflow: visible;
  border-radius: 8px;
  color: var(--accent);
  background: #fff;
  box-shadow: 0 7px 18px rgba(66, 22, 232, 0.1);
}

.outcome-icon path,
.outcome-icon rect,
.outcome-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outcome-list li:nth-child(1) .outcome-icon {
  color: #4216e8;
}

.outcome-list li:nth-child(2) .outcome-icon {
  color: #137d8a;
}

.outcome-list li:nth-child(3) .outcome-icon {
  color: #6c4cf6;
}

.outcome-list li:nth-child(4) .outcome-icon {
  color: #d08416;
}

.outcome-list li:nth-child(5) .outcome-icon {
  color: #cc4763;
}

.outcome-list li:nth-child(6) .outcome-icon {
  color: #16865a;
}

.outcome-list li:nth-child(7) .outcome-icon {
  color: #244f9e;
}

.module-select {
  display: grid;
  gap: 24px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 18px;
}

.module-card {
  position: relative;
  display: grid;
  min-height: 340px;
  padding: 32px 40px;
  align-content: start;
  justify-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.module-card.is-complete {
  border: 1px solid rgba(22, 134, 90, 0.24);
  background:
    radial-gradient(circle at 86% 12%, rgba(22, 134, 90, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff, #f3fff9);
}

.module-status-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(22, 134, 90, 0.22);
  border-radius: 999px;
  color: #087250;
  background: #eafff5;
  box-shadow: 0 12px 24px rgba(22, 134, 90, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.module-status-badge[hidden] {
  display: none;
}

.module-status-badge svg {
  width: 18px;
  height: 18px;
}

.module-status-badge path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(36, 31, 75, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.module-card:hover .module-icon {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 0 24px 48px rgba(36, 31, 75, 0.18);
}

.module-icon svg {
  width: 52px;
  height: 52px;
}

.module-icon path,
.module-icon rect,
.module-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-icon-foundations {
  color: #4216e8;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    linear-gradient(145deg, #eff7ff, #dcecff);
}

.module-icon-using {
  color: #078f84;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    linear-gradient(145deg, #edfff8, #dff4ff);
}

.module-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(66, 22, 232, 0.14);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(36, 31, 75, 0.08);
}

.module-map-badge .module-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 14px;
  box-shadow: none;
}

.module-map-badge .module-icon svg {
  width: 30px;
  height: 30px;
}

.module-map-badge .eyebrow {
  margin: 0;
}

.module-number {
  font-size: 1.7rem;
  font-weight: 900;
}

.module-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -10px 0 20px;
  padding: 8px 12px;
  border: 1px solid #e7e2f7;
  border-radius: 999px;
  color: var(--muted);
  background: #f8f6ff;
  font-size: 0.98rem;
  font-weight: 800;
}

.module-time span {
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

.module-card ul {
  width: 100%;
  margin: 0 0 34px;
  padding-left: 32px;
  text-align: left;
}

.module-card li {
  margin: 9px 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-card .secondary-action {
  align-self: end;
  margin-top: auto;
}

.module-note {
  color: #3f3f46;
  font-size: 1.25rem;
  font-style: italic;
}

.placeholder-screen {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.module-hero,
.lesson-map,
.lesson-title,
.lesson-card,
.flip-screen,
.definition-panel,
.quiz-panel,
.branch-panel,
.branch-result,
.types-screen,
.try-screen,
.workout-compare-screen,
.scenario-screen,
.reflection-screen,
.sort-screen {
  display: grid;
  width: min(1080px, 100%);
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.module-hero,
.lesson-title,
.branch-result,
.placeholder-screen {
  align-self: center;
}

.module-hero p,
.lesson-title p,
.definition-panel p,
.branch-result p,
.reflection-screen p {
  max-width: 820px;
}

.retry-action {
  margin-top: 10px;
}

.lesson-map h2,
.lesson-title h2,
.flip-screen h2,
.definition-panel h2,
.quiz-panel h2,
.branch-panel h2,
.types-screen h2,
.try-screen h2,
.scenario-screen h2,
.reflection-screen h2,
.sort-screen h2 {
  font-size: 3.65rem;
}

.lesson-card h2 {
  font-family: var(--body-font);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.2;
}

.path-steps {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 8px 0 14px;
}

.path-steps::before {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 52px;
  height: 4px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--accent) 0 22%, #d8d2ea 22% 100%);
}

.path-step {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 285px;
  align-content: start;
  gap: 14px;
  padding: 30px 24px;
  border: 1px solid #e7e2f7;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 38px rgba(36, 31, 75, 0.1);
}

.path-step > .lesson-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.path-step.is-locked > .lesson-number {
  color: #6e6b78;
  background: #ded8ee;
}

.path-step h3 {
  margin: 0;
  font-size: 1.55rem;
}

.path-step p {
  color: var(--muted);
  font-size: 1rem;
}

.path-step.is-current {
  border-color: rgba(66, 22, 232, 0.45);
  background: #f4f0ff;
  box-shadow:
    0 0 0 4px rgba(66, 22, 232, 0.08),
    0 20px 46px rgba(66, 22, 232, 0.18);
  animation: current-card-glow 3.2s ease-in-out infinite;
}

.path-step.is-complete {
  border-color: rgba(22, 134, 90, 0.22);
  background: #f7fffb;
  box-shadow:
    0 0 0 3px rgba(22, 134, 90, 0.08),
    0 18px 42px rgba(22, 134, 90, 0.14);
}

.path-step.is-complete > .lesson-number {
  background: #16865a;
}

.current-dot {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: #22c878;
  box-shadow:
    0 0 0 0 rgba(31, 180, 112, 0.34),
    0 7px 14px rgba(31, 180, 112, 0.2);
  animation: current-dot-pulse 1.7s ease-in-out infinite;
}

.path-step.is-locked {
  color: #6e6b78;
  background: #fbfbfd;
}

.path-step.is-locked h3,
.path-step.is-locked p {
  color: #6e6b78;
}

.path-status {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0;
  border-radius: 50%;
}

.path-status.unlocked {
  color: #16865a;
  background: #ecfff7;
}

.path-status.locked {
  color: #6e6b78;
  background: #f0edf8;
}

.path-status.complete {
  right: 12px;
  left: auto;
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(22, 134, 90, 0.22);
  border-radius: 999px;
  color: #087250;
  background: #eafff5;
  box-shadow: 0 8px 18px rgba(22, 134, 90, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.path-status svg {
  width: 18px;
  height: 18px;
}

.path-status.complete span {
  color: #22c878;
  font-size: 1rem;
  line-height: 0.5;
}

.path-status path,
.path-status rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-note {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.path-action {
  min-width: 180px;
  min-height: 48px;
  align-self: end;
  margin-top: auto;
  font-size: 1rem;
}

.path-step.is-locked .path-action {
  display: none;
}

body[data-path-style="quest"] .lesson-map {
  width: min(1000px, 100%);
}

body[data-path-style="quest"] .path-steps {
  width: min(820px, 100%);
  min-height: 520px;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 10px;
}

body[data-path-style="quest"] .path-steps::before {
  left: 50%;
  right: auto;
  top: 74px;
  width: 6px;
  height: 350px;
  background: linear-gradient(180deg, var(--accent) 0 30%, #d8d2ea 30% 100%);
  transform: translateX(-50%);
}

body[data-path-style="quest"] .path-step {
  width: min(360px, 46%);
  min-height: 160px;
  padding: 22px;
  border-width: 2px;
  border-radius: 22px;
}

body[data-path-style="quest"] .path-step:nth-child(1) {
  justify-self: start;
}

body[data-path-style="quest"] .path-step:nth-child(2) {
  justify-self: end;
  margin-top: -22px;
}

body[data-path-style="quest"] .path-step:nth-child(3) {
  justify-self: start;
  margin-top: -22px;
}

body[data-path-style="quest"] .path-step > .lesson-number {
  position: absolute;
  top: 22px;
  width: 58px;
  height: 58px;
  border: 6px solid #fff;
  box-shadow: 0 10px 24px rgba(36, 31, 75, 0.18);
}

body[data-path-style="quest"] .path-step:nth-child(odd) > .lesson-number {
  right: -95px;
}

body[data-path-style="quest"] .path-step:nth-child(even) > .lesson-number {
  left: -95px;
}

body[data-path-style="quest"] .path-status {
  top: 16px;
  right: 16px;
}

body[data-path-style="quest"] .path-action {
  min-width: 160px;
}

body[data-path-style="levels"] .path-steps {
  gap: 18px;
  align-items: stretch;
}

body[data-path-style="levels"] .path-steps::before {
  display: none;
}

body[data-path-style="levels"] .path-step {
  min-height: 315px;
  overflow: hidden;
  border: 2px solid #dfd8f4;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 242, 255, 0.92)),
    repeating-linear-gradient(135deg, rgba(66, 22, 232, 0.06) 0 10px, transparent 10px 22px);
}

body[data-path-style="levels"] .path-step::before {
  display: grid;
  width: calc(100% + 48px);
  min-height: 46px;
  margin: -30px -24px 8px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  content: "LEVEL " attr(data-level);
  font-size: 0.82rem;
  font-weight: 900;
}

body[data-path-style="levels"] .path-step:nth-child(1)::before {
  content: "LEVEL 1";
}

body[data-path-style="levels"] .path-step:nth-child(2)::before {
  content: "LEVEL 2";
  background: #a8a2c0;
}

body[data-path-style="levels"] .path-step:nth-child(3)::before {
  content: "LEVEL 3";
  background: #a8a2c0;
}

body[data-path-style="levels"] .path-step > .lesson-number {
  width: 62px;
  height: 62px;
  border: 5px solid #fff;
  box-shadow: 0 12px 26px rgba(36, 31, 75, 0.16);
}

body[data-path-style="levels"] .path-status {
  top: 58px;
  right: 16px;
  width: 38px;
  height: 38px;
}

body[data-path-style="quest-cards"] .path-steps {
  gap: 28px;
  align-items: stretch;
}

body[data-path-style="quest-cards"] .path-steps::before {
  left: 13%;
  right: 13%;
  top: 76px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 12px, transparent 12px 24px),
    linear-gradient(90deg, var(--accent) 0 24%, #cfc8ea 24% 100%);
  box-shadow: 0 10px 24px rgba(66, 22, 232, 0.14);
}

body[data-path-style="quest-cards"] .path-step {
  min-height: 330px;
  overflow: hidden;
  border: 2px solid #ded8f3;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 181, 54, 0.2), transparent 24%),
    linear-gradient(180deg, #fff, #f6f2ff);
}

body[data-path-style="quest-cards"] .path-step.is-current::after {
  display: none;
}

body[data-path-style="quest-cards"] .path-step.is-locked::after {
  display: none;
}

body[data-path-style="quest-cards"] .path-step > .lesson-number {
  width: 64px;
  height: 64px;
  border: 6px solid #fff;
  box-shadow: 0 12px 28px rgba(36, 31, 75, 0.18);
}

body[data-path-style="quest-cards"] .path-step h3 {
  margin-top: 4px;
}

body[data-path-style="quest-cards"] .path-step.is-current {
  border-color: rgba(66, 22, 232, 0.56);
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 181, 54, 0.28), transparent 26%),
    linear-gradient(180deg, #fff, #efeaff);
  transform: translateY(-8px);
}

body[data-path-style="quest-cards"] .path-step.is-locked {
  opacity: 0.72;
}

body[data-path-style="quest-cards"] .path-status {
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
}

body[data-path-style="quest"] .path-status.complete,
body[data-path-style="levels"] .path-status.complete,
body[data-path-style="quest-cards"] .path-status.complete {
  right: 12px;
  left: auto;
  width: auto;
  height: auto;
}

body[data-path-style="quest-cards"] .path-action {
  min-height: 52px;
  border: 3px solid #fff;
}

.book-mark {
  position: relative;
  display: block;
  width: 98px;
  height: 72px;
  margin-top: 8px;
  perspective: 400px;
}

.book-mark::before,
.book-mark::after {
  position: absolute;
  content: "";
}

.book-mark span {
  position: absolute;
  width: 46px;
  height: 62px;
  border: 2px solid #e0b55e;
  border-radius: 6px 2px 2px 6px;
  background: #fff4cc;
  box-shadow: 0 10px 24px rgba(36, 31, 75, 0.1);
}

.book-mark span:first-child {
  left: 10px;
  transform: rotateY(-24deg) rotate(-6deg);
}

.book-mark span:last-child {
  right: 10px;
  transform: rotateY(24deg) rotate(6deg);
}

body[data-lesson-icon="network"] .book-mark,
body[data-lesson-icon="chat"] .book-mark,
body[data-lesson-icon="notes"] .book-mark,
body[data-lesson-icon="pencil"] .book-mark,
body[data-lesson-icon="stack"] .book-mark {
  width: 82px;
  height: 82px;
  margin-top: 4px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 34%, #13b8c5 0 5px, transparent 6px),
    radial-gradient(circle at 68% 28%, #f04f83 0 5px, transparent 6px),
    radial-gradient(circle at 50% 72%, #f4b63f 0 5px, transparent 6px),
    linear-gradient(135deg, #4216e8, #13b8c5);
  box-shadow: 0 18px 34px rgba(36, 31, 75, 0.16);
}

body[data-lesson-icon="network"] .book-mark span,
body[data-lesson-icon="chat"] .book-mark span,
body[data-lesson-icon="notes"] .book-mark span,
body[data-lesson-icon="pencil"] .book-mark span,
body[data-lesson-icon="stack"] .book-mark span {
  display: none;
}

body[data-lesson-icon="network"] .book-mark::before {
  inset: 18px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
}

body[data-lesson-icon="network"] .book-mark::after {
  left: 26px;
  top: 27px;
  width: 31px;
  height: 30px;
  border-top: 3px solid rgba(255, 255, 255, 0.88);
  border-right: 3px solid rgba(255, 255, 255, 0.88);
  transform: rotate(32deg);
}

body[data-lesson-icon="chat"] .book-mark {
  background:
    radial-gradient(circle at 72% 24%, rgba(244, 182, 63, 0.95) 0 6px, transparent 7px),
    linear-gradient(135deg, #f04f83, #4216e8);
}

body[data-lesson-icon="chat"] .book-mark::before {
  left: 17px;
  top: 19px;
  width: 48px;
  height: 35px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
}

body[data-lesson-icon="chat"] .book-mark::after {
  left: 25px;
  top: 48px;
  width: 15px;
  height: 15px;
  border-left: 3px solid rgba(255, 255, 255, 0.9);
  border-bottom: 3px solid rgba(255, 255, 255, 0.9);
  transform: rotate(-28deg);
}

body[data-lesson-icon="notes"] .book-mark {
  background:
    linear-gradient(90deg, rgba(19, 184, 197, 0.86) 0 10px, transparent 10px),
    repeating-linear-gradient(180deg, transparent 0 12px, rgba(66, 22, 232, 0.18) 12px 14px),
    linear-gradient(135deg, #fff9df, #dff8ff);
}

body[data-lesson-icon="notes"] .book-mark::before {
  left: 24px;
  top: 20px;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #4216e8;
  box-shadow:
    0 13px 0 rgba(66, 22, 232, 0.72),
    0 26px 0 rgba(66, 22, 232, 0.52);
}

body[data-lesson-icon="notes"] .book-mark::after {
  left: 16px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f04f83;
  box-shadow:
    0 17px 0 #f4b63f,
    0 34px 0 #13b8c5;
}

body[data-lesson-icon="pencil"] .book-mark {
  background: linear-gradient(135deg, #fff6d8, #f5edff);
}

body[data-lesson-icon="pencil"] .book-mark::before {
  left: 20px;
  top: 15px;
  width: 17px;
  height: 54px;
  border-radius: 10px 10px 4px 4px;
  background:
    linear-gradient(180deg, #f8d37d 0 10px, #4216e8 10px 44px, #26344e 44px 100%);
  box-shadow: 18px 9px 0 -3px rgba(19, 184, 197, 0.78);
  transform: rotate(42deg);
}

body[data-lesson-icon="pencil"] .book-mark::after {
  left: 21px;
  top: 56px;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(38, 52, 78, 0.18);
  transform: rotate(-10deg);
}

body[data-lesson-icon="stack"] .book-mark {
  background: linear-gradient(135deg, #e8fff8, #efeaff);
}

body[data-lesson-icon="stack"] .book-mark::before,
body[data-lesson-icon="stack"] .book-mark::after {
  left: 18px;
  width: 47px;
  height: 12px;
  border: 2px solid rgba(66, 22, 232, 0.78);
  border-radius: 5px;
  background: #fff;
  box-shadow:
    0 15px 0 -2px #fff,
    0 15px 0 0 rgba(66, 22, 232, 0.78),
    0 30px 0 -2px #fff,
    0 30px 0 0 rgba(66, 22, 232, 0.78);
}

body[data-lesson-icon="stack"] .book-mark::before {
  top: 18px;
}

body[data-lesson-icon="stack"] .book-mark::after {
  top: 21px;
  left: 13px;
  width: 13px;
  height: 44px;
  border-color: rgba(19, 184, 197, 0.88);
  background: #dff8ff;
  box-shadow: none;
}

.lesson-card,
.definition-panel,
.quiz-panel,
.branch-panel,
.branch-result,
.scenario-detail,
.reflection-screen,
.sort-screen {
  padding: 42px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.compact-list {
  display: grid;
  gap: 16px;
  width: min(680px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.compact-list li {
  position: relative;
  padding-left: 52px;
  font-size: 1.75rem;
  font-weight: 700;
}

.compact-list li::before {
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  content: "";
  color: #fff;
  background: var(--accent);
  font-size: 1.12rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(66, 22, 232, 0.16);
}

.compact-list li[data-icon="bulb"]::before {
  content: "💡";
  background: #f4b63f;
}

.compact-list li[data-icon="ai"]::before {
  content: "AI";
  background: #4216e8;
  font-size: 0.78rem;
  font-weight: 900;
}

.compact-list li[data-icon="key"]::before {
  content: "🔑";
  background: #13b8c5;
}

.compact-list li[data-icon="target"]::before {
  content: "◎";
  background: #4216e8;
}

.compact-list li[data-icon="compass"]::before {
  content: "◉";
  background: #cc4763;
}

.compact-list li[data-icon="spark"]::before {
  content: "✦";
  background: #f4b63f;
}

.compact-list li[data-icon="steps"]::before {
  content: "1";
  background: #16865a;
}

.compact-list li[data-icon="book"]::before {
  content: "▤";
  background: #4216e8;
}

.compact-list li[data-icon="leaf"]::before {
  content: "◒";
  background: #16865a;
}

.compact-list li[data-icon="format"]::before {
  content: "≡";
  background: #13b8c5;
}

.compact-list li[data-icon="question"]::before {
  content: "?";
  background: #f04f83;
}

.compact-list li[data-icon="shield"]::before {
  content: "✓";
  background: #16865a;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 0;
}

.icon-list li::before {
  display: none;
}

.icon-list .mini-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  margin: 0;
  border-radius: 14px;
}

.icon-list .mini-icon svg {
  width: 30px;
  height: 30px;
}

.flip-card,
.type-card {
  position: relative;
  display: grid;
  width: min(620px, 100%);
  min-height: 240px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
}

.flip-card:hover .flip-front,
.flip-card:focus-visible .flip-front,
.type-card:hover .flip-front,
.type-card:focus-visible .flip-front {
  box-shadow: 0 24px 48px rgba(66, 22, 232, 0.24);
}

.flip-front,
.flip-back {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  min-height: inherit;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 40px;
  border-radius: var(--radius);
  backface-visibility: hidden;
  box-shadow: var(--shadow);
  transition: transform 260ms ease;
}

.flip-front {
  background: var(--accent);
}

.flip-back {
  background: #cc4763;
  transform: rotateY(180deg);
}

.flip-card.is-flipped .flip-front,
.type-card.is-flipped .flip-front {
  transform: rotateY(180deg);
}

.flip-card.is-flipped .flip-back,
.type-card.is-flipped .flip-back {
  transform: rotateY(360deg);
}

.flip-card span {
  font-size: 1.8rem;
  line-height: 1.35;
}

.flip-card .flip-hint,
.type-card .flip-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--accent);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(36, 31, 75, 0.14);
}

.choice-stack,
.check-stack {
  display: grid;
  width: min(820px, 100%);
  gap: 14px;
}

.choice-stack button,
.check-stack label {
  border: 1px solid #e1ddec;
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 1.1rem;
  text-align: left;
}

.choice-stack button,
.check-stack label {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, translate 160ms ease;
}

.choice-stack button:hover,
.check-stack label:hover {
  border-color: rgba(66, 22, 232, 0.28);
  box-shadow: 0 12px 24px rgba(36, 31, 75, 0.08);
  translate: 0 -1px;
}

.choice-stack button.is-correct {
  border-color: #16865a;
  background: #ecfff7;
}

.choice-stack button.is-incorrect {
  border-color: #cc4763;
  background: #fff1f4;
}

.quiz-helper {
  width: min(760px, 100%);
  margin: -8px auto 24px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
  text-align: center;
}

.revision-choice-stack button {
  display: grid;
  gap: 6px;
}

.choice-label {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choice-text {
  color: var(--ink);
  font-weight: 750;
}

.adapt-option-list {
  display: grid;
  width: min(880px, 100%);
  gap: 14px;
}

.adapt-option-card {
  overflow: hidden;
  border: 1px solid #e1ddec;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 40px rgba(47, 35, 110, 0.08);
}

.adapt-option-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: #fff;
  padding: 18px 20px;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.adapt-option-toggle:hover,
.adapt-option-toggle.is-open {
  background: #f2f7ff;
}

.adapt-option-cue {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf7f3;
  color: #087263;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.adapt-option-response {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.adapt-option-response[hidden] {
  display: none;
}

.adapt-option-response .message-block {
  margin: 0;
}

#screen-m2-l2-adapt .adapt-option-response .ai-message,
#screen-m2-l2-adapt .adapt-task-card .ai-message {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: center;
  padding: 22px;
  border: 2px solid rgba(240, 79, 131, 0.28);
  border-radius: 24px;
  background: rgba(240, 79, 131, 0.08);
  box-shadow: none;
}

#screen-m2-l2-adapt .ai-message .type-icon {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #f04f83;
  box-shadow: none;
  grid-row: span 2;
}

#screen-m2-l2-adapt .ai-message .type-icon svg {
  width: 36px;
  height: 36px;
}

#screen-m2-l2-adapt .ai-message .eyebrow {
  align-self: end;
  margin: 0;
  color: rgba(32, 32, 36, 0.72);
  font-size: 1rem;
  letter-spacing: 0;
}

#screen-m2-l2-adapt .adapt-option-response .ai-message p:not(.eyebrow),
#screen-m2-l2-adapt .adapt-task-card .ai-message p:not(.eyebrow),
#screen-m2-l2-adapt .adapt-option-response .ai-message ul {
  grid-column: 1 / -1;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.35;
}

#screen-m2-l2-adapt .adapt-option-response .ai-message ul {
  padding-left: 1.25rem;
}

.adapt-option-response .message-block p:last-child,
.adapt-option-response .message-block blockquote,
.adapt-option-response .message-block ul {
  margin: 0;
}

.adapt-option-response blockquote {
  color: var(--accent);
  font-weight: 850;
}

.adapt-option-response ul {
  padding-left: 1.2rem;
  color: var(--ink);
}

.drag-chip.is-correct,
.check-stack label.is-correct {
  border-color: #16865a;
  background: #ecfff7;
}

.drag-chip.is-incorrect,
.check-stack label.is-incorrect {
  border-color: #cc4763;
  background: #fff1f4;
}

.drag-instructions {
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
}

.drag-sort {
  display: grid;
  width: min(940px, 100%);
  gap: 22px;
}

.drag-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  min-height: 74px;
  padding: 16px;
  border: 1px dashed #cfc7e9;
  border-radius: var(--radius);
  background: #faf9ff;
}

.drag-chip {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #ded8ee;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 850;
  cursor: grab;
  box-shadow: 0 8px 18px rgba(36, 31, 75, 0.08);
}

.drag-chip:active {
  cursor: grabbing;
}

.drag-chip.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 22, 232, 0.12);
}

.drag-chip.is-dragging {
  opacity: 0.55;
}

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

.drop-zone {
  display: grid;
  min-height: 210px;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 2px dashed #d8d2ea;
  border-radius: var(--radius);
  background: #fff;
}

.drop-zone.is-over,
.drop-zone:focus-within {
  border-color: var(--accent);
  background: #f6f2ff;
}

.drop-zone.is-correct {
  border-color: #16865a;
  background: #ecfff7;
}

.drop-zone.is-incorrect {
  border-color: #cc4763;
  background: #fff1f4;
}

.drop-zone h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--accent);
  font-size: 1.4rem;
}

.drop-zone .type-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(36, 31, 75, 0.12);
}

.drop-zone .generative-icon {
  background: #f04f83;
}

.drop-zone .type-icon svg {
  width: 24px;
  height: 24px;
}

.drop-zone p {
  color: var(--muted);
  font-size: 0.95rem;
}

.drop-zone .drag-chip {
  justify-self: start;
  border-radius: 8px;
  cursor: grab;
}

.feedback {
  display: none;
  width: min(760px, 100%);
  min-height: 72px;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  text-align: left;
  box-shadow: 0 14px 34px rgba(36, 31, 75, 0.1);
}

.feedback.is-visible {
  display: flex;
  animation: feedback-pop 260ms ease both;
}

.feedback.is-correct {
  border: 1px solid rgba(22, 134, 90, 0.35);
  background: #ecfff7;
}

.feedback.is-incorrect {
  border: 1px solid rgba(204, 71, 99, 0.32);
  background: #fff1f4;
}

.feedback-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #16865a;
  font-weight: 900;
}

.feedback.is-incorrect .feedback-icon {
  background: #cc4763;
}

.feedback-copy {
  display: grid;
  gap: 4px;
}

.feedback-copy strong {
  font-size: 1.1rem;
}

.feedback-copy span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.example-grid,
.type-card-grid {
  display: grid;
  width: min(900px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.prompt-card,
.step-grid article {
  padding: 28px;
  border: 1px solid #e1ddec;
  border-radius: var(--radius);
  background: #faf9ff;
  box-shadow: 0 16px 34px rgba(36, 31, 75, 0.08);
}

.prompt-card {
  width: min(720px, 100%);
}

.prompt-card-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  margin-bottom: 8px;
}

.prompt-card-label .type-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #f04f83;
  box-shadow: 0 10px 20px rgba(240, 79, 131, 0.18);
}

.prompt-card-label .type-icon svg {
  width: 24px;
  height: 24px;
}

.prompt-card-label .eyebrow {
  margin: 0;
}

blockquote {
  margin: 10px 0 16px;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
}

.step-example {
  display: grid;
  width: min(980px, 100%);
  justify-items: center;
  gap: 28px;
}

.step-example h2 {
  color: var(--accent);
  font-size: 4rem;
  line-height: 0.95;
}

.step-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.step-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
}

.conversation-card {
  gap: 18px;
}

.message-block {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  text-align: left;
}

.prompt-message {
  border: 1px solid rgba(66, 22, 232, 0.18);
  background: #fff;
}

.ai-message {
  border: 1px solid rgba(240, 79, 131, 0.22);
  background: rgba(240, 79, 131, 0.08);
}

#screen-m2-l3-example .ai-message,
#screen-m2-l3-compare .ai-message,
#screen-m2-l3-missing .ai-message,
#screen-m2-l3-check .ai-message {
  padding: 22px;
  border: 2px solid rgba(240, 79, 131, 0.28);
  border-radius: 24px;
  background: rgba(240, 79, 131, 0.08);
}

#screen-m2-l3-example .ai-message .type-icon,
#screen-m2-l3-compare .ai-message .type-icon,
#screen-m2-l3-missing .ai-message .type-icon,
#screen-m2-l3-check .ai-message .type-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 14px;
  background: #f04f83;
  color: #fff;
}

.message-block .prompt-card-label {
  justify-self: start;
  margin-bottom: 0;
}

.message-block blockquote {
  margin: 0;
}

.message-block p:not(.eyebrow) {
  margin: 0;
  font-size: 1.12rem;
}

.step-grid h3 {
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.8rem;
}

.prediction-line {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  gap: 0.35em;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--accent);
  background: #f3f0fb;
  font-weight: 900;
}

.generated-line span {
  opacity: 0;
}

.screen.is-active .generated-line span {
  animation: word-generate 620ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: calc(900ms + (360ms * var(--word-index)));
}

.screen.is-active .generated-line .typing-dots {
  animation:
    word-generate 620ms cubic-bezier(0.2, 0.9, 0.2, 1) both calc(900ms + (360ms * var(--word-index))),
    dots-pulse 850ms ease-in-out 3500ms infinite;
}

.word-screen {
  gap: 18px;
}

.activity-instruction {
  max-width: 640px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: #f8f5ff;
  font-size: 0.98rem;
  font-weight: 800;
}

.word-build {
  display: grid;
  width: min(760px, 100%);
  gap: 18px;
  justify-items: center;
}

.sentence-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 900;
}

.word-blank,
.word-bank button {
  min-height: 46px;
  border: 1px solid #ded8ee;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(36, 31, 75, 0.08);
}

.word-blank {
  min-width: 136px;
  padding: 8px 18px;
  color: var(--accent);
  background: #f8f5ff;
}

.word-blank.is-filled {
  border-color: rgba(66, 22, 232, 0.38);
  background: #f1ecff;
}

.word-blank.is-over {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(66, 22, 232, 0.12);
}

.word-blank.is-filled::after {
  margin-left: 8px;
  color: var(--muted);
  content: "×";
  font-weight: 900;
}

.word-blank.is-correct {
  border-color: #16865a;
  background: #ecfff7;
}

.word-blank.is-incorrect {
  border-color: #cc4763;
  background: #fff1f4;
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.word-bank button {
  min-width: 130px;
  padding: 10px 18px;
  cursor: grab;
}

.word-bank button:active {
  cursor: grabbing;
}

.word-bank button.is-dragging {
  opacity: 0.55;
}

.word-bank button.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 22, 232, 0.12);
}

.word-bank button:disabled {
  cursor: default;
  opacity: 0.38;
  box-shadow: none;
}

.example-grid article {
  padding: 28px;
  border: 1px solid #e1ddec;
  border-radius: var(--radius);
  background: #faf9ff;
}

.example-grid h3 {
  margin: 10px 0;
  font-size: 1.5rem;
}

.example-grid p {
  font-size: 1.05rem;
}

.mini-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto;
  border-radius: 16px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(36, 31, 75, 0.14);
}

.mini-icon svg {
  width: 36px;
  height: 36px;
}

.mini-icon rect,
.mini-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon path[d*="21 19"] {
  fill: currentColor;
}

.netflix-icon {
  background: #e50914;
}

.chatgpt-icon {
  background: #12a889;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.type-card {
  width: 100%;
}

.type-card .flip-front,
.type-card .flip-back {
  min-height: 260px;
  color: #fff;
}

.type-card.generative .flip-front {
  background: #f04f83;
}

.type-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 2rem;
}

.type-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: 0 0 54px;
  border: 2px solid rgba(255, 255, 255, 0.46);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(36, 31, 75, 0.16);
}

.type-icon svg {
  width: 34px;
  height: 34px;
}

.type-icon path,
.type-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.generative-icon path:last-child {
  fill: currentColor;
}

.type-card small {
  font-size: 1rem;
  opacity: 0.82;
}

.type-card .flip-hint {
  opacity: 1;
}

.type-card .flip-back {
  font-size: 1.2rem;
  line-height: 1.45;
}

.l3-situation-panel .conversation-card,
.comparison-card {
  width: min(820px, 100%);
}

.l3-conversation {
  padding: 24px;
  border: 1px solid #e1ddec;
  border-radius: var(--radius);
  background: #faf9ff;
  box-shadow: 0 16px 34px rgba(36, 31, 75, 0.08);
}

.l3-types > p {
  color: var(--muted);
  font-weight: 800;
}

.l3-wrong-card .flip-front,
.l3-wrong-card .flip-back {
  min-height: 300px;
}

.hallucination-card .flip-front,
.hallucination-card .flip-back {
  background: #4216e8;
}

.bias-card .flip-front,
.bias-card .flip-back {
  background: #f04f83;
}

.warning-icon,
.bias-icon {
  color: #fff;
}

.type-card .flip-back p {
  max-width: 360px;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.l3-wrong-card .flip-back p {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 750;
}

.comparison-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e1ddec;
  border-radius: var(--radius);
  background: #faf9ff;
  box-shadow: 0 16px 34px rgba(36, 31, 75, 0.08);
  text-align: left;
}

.comparison-card blockquote {
  margin: 0;
  font-size: 1.35rem;
}

.comparison-card .prompt-message blockquote {
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.25;
}

.comparison-card .message-block {
  box-shadow: none;
}

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

.response-pair p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}

.type-definition {
  max-width: 360px;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.3;
}

.type-example-list {
  display: grid;
  width: min(340px, 100%);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.type-example-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.type-example-list li span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 10px;
  color: #cc4763;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.scenario-tab-cue {
  margin: -6px 0 2px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.scenario-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 130px;
  min-height: 48px;
  border: 1px solid #e1ddec;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.scenario-tabs button::after {
  content: "\203A";
  font-size: 1.3em;
  line-height: 1;
  transition: transform 160ms ease;
}

.scenario-tabs button:hover,
.scenario-tabs button:focus-visible {
  border-color: var(--accent);
  background: #f5f2ff;
  box-shadow: 0 8px 18px rgba(72, 35, 238, 0.12);
  transform: translateY(-1px);
}

.scenario-tabs button:hover::after,
.scenario-tabs button:focus-visible::after {
  transform: translateX(2px);
}

.scenario-tabs button:focus-visible {
  outline: 3px solid rgba(29, 132, 255, 0.3);
  outline-offset: 3px;
}

.scenario-tabs button.is-selected {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.scenario-tabs button.is-selected::after {
  content: "\2713";
}

.scenario-detail {
  width: min(900px, 100%);
}

.scenario-type {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  width: fit-content;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(240, 79, 131, 0.24);
  border-radius: 999px;
  background: rgba(240, 79, 131, 0.1);
}

.scenario-type .type-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-width: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.scenario-type .type-icon svg {
  width: 20px;
  height: 20px;
}

.scenario-type .generative-icon {
  background: #f04f83;
}

.scenario-type:has(.predictive-icon) {
  border-color: rgba(66, 22, 232, 0.2);
  background: rgba(66, 22, 232, 0.08);
}

.scenario-type .eyebrow {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
}

.scenario-detail p {
  margin-top: 14px;
  font-size: 1.1rem;
  text-align: left;
}

.reflection-screen label {
  font-size: 1.15rem;
  font-weight: 900;
}

.reflection-screen textarea {
  width: min(760px, 100%);
  border: 1px solid #ded8ee;
  border-radius: var(--radius);
  padding: 18px;
  font: inherit;
  font-size: 1.05rem;
  resize: vertical;
}

.check-stack label {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 70px;
  font-weight: 800;
}

.check-stack input {
  display: grid;
  width: 26px;
  height: 26px;
  margin: 0;
  appearance: none;
  place-items: center;
  border: 2px solid #c9c2df;
  border-radius: 8px;
  background: #fff;
  accent-color: var(--accent);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.check-stack input::before {
  color: #fff;
  content: "✓";
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.check-stack input:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(66, 22, 232, 0.18);
}

.check-stack input:checked::before {
  opacity: 1;
  transform: scale(1);
}

.check-stack label:has(input:checked) {
  border-color: rgba(66, 22, 232, 0.42);
  background: #f5f1ff;
  box-shadow: 0 14px 28px rgba(66, 22, 232, 0.1);
}

.course-nav {
  position: fixed;
  z-index: 24;
  left: 50%;
  bottom: 22px;
  display: flex;
  width: min(430px, calc(100vw - 44px));
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid #e8e5f1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(36, 31, 75, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.course-nav[hidden] {
  display: none !important;
}

.nav-button {
  display: inline-flex;
  min-width: 132px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: translate 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-button span[aria-hidden="true"] {
  margin-top: -2px;
  font-size: 1.8rem;
  line-height: 0.7;
}

.nav-back {
  color: var(--ink);
  background: #f3f0fb;
}

.nav-next {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(66, 22, 232, 0.16);
}

.nav-button:hover {
  translate: 0 -2px;
}

.nav-next:hover {
  box-shadow: 0 16px 28px rgba(66, 22, 232, 0.24);
}

.nav-button:disabled {
  cursor: default;
  opacity: 0.36;
  translate: 0 0;
  box-shadow: none;
}

.nav-button[hidden] {
  display: none;
}

.prereq-dialog {
  width: min(680px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prereq-dialog::backdrop {
  background: rgba(16, 16, 22, 0.42);
}

.prereq-dialog form {
  display: grid;
  gap: 22px;
  padding: 34px;
}

.prereq-dialog h2 {
  font-family: var(--body-font);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.1;
}

.prereq-dialog p {
  color: var(--muted);
  font-size: 1.05rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.dialog-actions .primary-action,
.dialog-actions .ghost-action {
  min-width: 200px;
  min-height: 52px;
  font-size: 1rem;
}

@media (min-width: 921px) and (max-height: 820px) {
  #screen-cover {
    padding: 28px 72px;
    align-items: center;
  }

  #screen-cover .hero-layout {
    gap: 40px;
  }

  #screen-cover .hero-copy {
    gap: 11px;
  }

  #screen-cover h1 {
    max-width: 700px;
    font-size: 4.5rem;
  }

  #screen-cover .course-subtitle {
    font-size: 1.55rem;
  }

  #screen-cover .subtitle {
    padding: 14px 20px;
    font-size: 1.4rem;
  }

  #screen-cover .intro-copy {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  #screen-cover .hero-visual {
    min-height: 260px;
  }

  #screen-cover .device-art {
    width: 280px;
  }

  #screen-cover .primary-action {
    min-height: 50px;
  }

  #screen-modules {
    padding: 80px 72px 92px;
  }

  #screen-modules .module-select {
    gap: 9px;
  }

  #screen-modules h2 {
    font-size: 3.15rem;
  }

  #screen-modules .module-select > p:not(.module-note) {
    font-size: 1.1rem;
  }

  #screen-modules .module-grid {
    gap: 24px;
    margin-top: 2px;
  }

  #screen-modules .module-card {
    min-height: 0;
    padding: 17px 26px;
  }

  #screen-modules .module-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    border-radius: 18px;
  }

  #screen-modules .module-icon svg {
    width: 38px;
    height: 38px;
  }

  #screen-modules .module-number {
    font-size: 1.25rem;
  }

  #screen-modules .module-card h3 {
    margin: 3px 0 10px;
    font-size: 2.15rem;
  }

  #screen-modules .module-time {
    margin: 0 0 9px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  #screen-modules .module-card ul {
    margin-bottom: 10px;
    padding-left: 24px;
  }

  #screen-modules .module-card li {
    margin: 4px 0;
    font-size: 0.94rem;
  }

  #screen-modules .module-card .secondary-action {
    min-height: 46px;
  }

  #screen-modules .module-note {
    font-size: 1rem;
  }
}

@media (max-width: 920px) {
  .screen {
    padding: 110px 24px 86px;
  }

  .hero-layout,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .path-steps,
  .example-grid,
  .type-card-grid,
  .drop-grid,
  .step-grid,
  .try-layout,
  .workout-response-grid,
  .workout-reflection ul,
  .better-question,
  .notice-card-grid,
  .response-pair {
    grid-template-columns: 1fr;
  }

  .path-steps::before {
    top: 38px;
    bottom: 38px;
    left: 50%;
    right: auto;
    width: 4px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--accent) 0 18%, #d8d2ea 18% 100%);
  }

  body[data-path-style="quest"] .path-steps {
    min-height: 0;
  }

  body[data-path-style="quest"] .path-step {
    width: min(420px, 100%);
    justify-self: center;
    margin-top: 0;
  }

  body[data-path-style="quest"] .path-step:nth-child(1),
  body[data-path-style="quest"] .path-step:nth-child(2),
  body[data-path-style="quest"] .path-step:nth-child(3) {
    justify-self: center;
    margin-top: 0;
  }

  body[data-path-style="quest"] .path-step:nth-child(odd) > .lesson-number,
  body[data-path-style="quest"] .path-step:nth-child(even) > .lesson-number {
    position: static;
    justify-self: center;
  }

  body[data-path-style="quest"] .path-status {
    margin-top: 0;
  }

  .lesson-map h2,
  .lesson-title h2,
  .flip-screen h2,
  .definition-panel h2,
  .quiz-panel h2,
  .branch-panel h2,
  .types-screen h2,
  .try-screen h2,
  .step-example h2,
  .scenario-screen h2,
  .reflection-screen h2,
  .sort-screen h2 {
    font-size: 3rem;
  }

  .hero-layout {
    gap: 26px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .device-art {
    width: min(260px, 72vw);
  }

  .subtitle {
    padding: 22px;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.4rem;
  }

  h3 {
    font-size: 2.45rem;
  }

  p {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 1.45rem;
  }

  .outcome-list li {
    font-size: 1.3rem;
  }

  .outcome-list {
    padding: 30px 26px;
  }

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

  .course-nav {
    width: calc(100vw - 28px);
    bottom: 12px;
    border-radius: 18px;
  }

  .nav-button {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
  }

}

@media (max-width: 620px) {
  .topbar {
    top: 16px;
    width: calc(100vw - 28px);
  }

  .progress-track {
    height: 34px;
  }

  .screen {
    overflow-y: auto;
    align-items: start;
    padding: 86px 18px 124px;
  }

  .screen * {
    max-width: 100%;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.35rem;
    overflow-wrap: anywhere;
  }

  h3,
  p,
  li,
  button,
  label {
    overflow-wrap: anywhere;
  }

  p {
    font-size: 1.06rem;
  }

  .focused-panel {
    padding: 30px 20px;
  }

  .module-card {
    min-height: 0;
    padding: 30px 24px;
  }

  .module-card h3 {
    font-size: 2rem;
  }

  .lesson-card,
  .definition-panel,
  .quiz-panel,
  .branch-panel,
  .branch-result,
  .module-complete,
  .try-screen,
  .step-grid article,
  .comparison-card,
  .l3-conversation,
  .scenario-detail,
  .reflection-screen,
  .sort-screen {
    padding: 26px 20px;
  }

  .lesson-map h2,
  .lesson-title h2,
  .flip-screen h2,
  .definition-panel h2,
  .quiz-panel h2,
  .branch-panel h2,
  .types-screen h2,
  .try-screen h2,
  .step-example h2,
  .scenario-screen h2,
  .reflection-screen h2,
  .sort-screen h2 {
    font-size: 2.25rem;
  }

  .path-step,
  body[data-path-style="quest-cards"] .path-step {
    min-height: 0;
  }

  .choice-stack button,
  .check-stack label,
  .drag-chip {
    width: 100%;
  }

  .drag-bank {
    justify-content: stretch;
  }

  .drop-zone {
    min-height: 160px;
  }

  .lesson-card h2 {
    font-size: 1.35rem;
  }

  .compact-list li {
    font-size: 1.35rem;
  }

  .flip-card span {
    font-size: 1.3rem;
  }

  .module-card li {
    letter-spacing: 0;
  }

  .preference-panel {
    top: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .preference-control {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .context-screen {
    padding: 28px 18px;
  }

  .context-screen h2 {
    font-size: 2.35rem;
  }

  .context-choice-grid {
    grid-template-columns: 1fr;
  }

  .module-complete {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .module-medal {
    width: 82px;
    height: 82px;
  }

  .module-medal svg {
    width: 68px;
    height: 68px;
  }

  .module-learned-list li {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px 14px;
    font-size: 1rem;
  }

  .module-learned-list svg {
    width: 38px;
    height: 38px;
  }

  .process-steps,
  .reflection-prompts {
    grid-template-columns: 1fr;
  }

  .process-steps span:not(:last-child)::after {
    display: none;
  }

  .reflection-panel {
    gap: 18px;
  }

  .reflection-panel h2 {
    font-size: 2.25rem;
  }

  .reflection-prompts article {
    padding: 18px;
  }

  .completion-actions {
    width: 100%;
  }

  .completion-actions .primary-action,
  .completion-actions .secondary-action {
    width: 100%;
  }

  .better-question {
    gap: 16px;
  }

  .better-question::after {
    top: calc(50% - 2px);
    rotate: 90deg;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-composer .primary-action,
  .chat-actions .ghost-action {
    width: 100%;
  }

  .practice-steps {
    padding: 20px 20px 20px 40px;
  }
}
