:root {
  color-scheme: dark;
  --bg: #030610;
  --bg-soft: #071022;
  --ink: #f8fbff;
  --muted: #bfc6de;
  --quiet: #8d96b7;
  --line: rgba(169, 182, 255, 0.34);
  --line-strong: rgba(184, 196, 255, 0.62);
  --blue: #2f73ff;
  --blue-deep: #1349d9;
  --purple: #8153ee;
  --purple-deep: #5527c8;
  --gold: #ffd27a;
  --pink: #fb8fd6;
  --teal: #6ff2e4;
  --green: #8ee67e;
  --panel: rgba(8, 15, 36, 0.72);
  --panel-strong: rgba(13, 20, 48, 0.86);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --tilt-x: 0;
  --tilt-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 51% 21%, rgba(114, 106, 255, 0.28), transparent 25rem),
    radial-gradient(circle at 78% 41%, rgba(255, 147, 102, 0.12), transparent 18rem),
    radial-gradient(circle at 16% 70%, rgba(41, 126, 255, 0.15), transparent 20rem),
    linear-gradient(180deg, #02040d 0%, #050816 52%, #030611 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(173, 191, 255, 0.7) 0 1px, transparent 1.5px);
  background-position: 0 0, 54px 42px;
  background-size: 118px 118px, 172px 172px;
  opacity: 0.27;
}

body::after {
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.92), transparent 33%, rgba(5, 8, 18, 0.7) 100%),
    radial-gradient(circle at 48% 48%, transparent 0 20rem, rgba(3, 6, 16, 0.62) 52rem);
}

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

svg {
  display: block;
}

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

#star-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell {
  width: min(94vw, 1420px);
  margin: 0 auto;
  padding: 20px 0 26px;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 780;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 46px;
  place-items: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(167, 190, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 18px rgba(96, 111, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.main-nav a,
.site-footer a {
  transition: color 160ms ease, text-shadow 160ms ease;
}

.main-nav a:hover,
.site-footer a:hover {
  color: white;
  text-shadow: 0 0 16px rgba(139, 166, 255, 0.85);
}

.subscription-entry,
.top-cta,
.primary-button,
.panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 14px 32px rgba(44, 92, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.subscription-entry:hover,
.top-cta:hover,
.primary-button:hover,
.panel-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 44px rgba(75, 86, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.top-cta {
  min-width: 190px;
  min-height: 46px;
  gap: 12px;
  padding: 0 18px;
  font-size: 16px;
}

.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.subscription-entry {
  min-width: 158px;
  min-height: 46px;
  gap: 9px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.spark-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.spark-icon::before,
.spark-icon::after {
  position: absolute;
  inset: 8px 0 auto;
  height: 2px;
  border-radius: 999px;
  background: #fff8cb;
  content: "";
}

.spark-icon::after {
  transform: rotate(90deg);
}

.spark-icon {
  background:
    linear-gradient(#fff8cb, #fff8cb) 50% 0 / 2px 100% no-repeat,
    linear-gradient(#fff8cb, #fff8cb) 0 50% / 100% 2px no-repeat;
  transform: rotate(25deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(620px, 1.18fr);
  align-items: center;
  gap: 24px;
  min-height: 572px;
  padding-top: 28px;
}

.hero.hero-visual-only {
  grid-template-columns: 1fr;
  min-height: auto;
  padding-top: 34px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(155, 166, 210, 0.3);
  border-radius: 8px;
  background: rgba(5, 8, 20, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.mini-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-badge:nth-child(2) svg {
  stroke: #f6ff91;
}

.mini-badge:nth-child(3) svg {
  stroke: #aab8ff;
}

h1 {
  max-width: 660px;
  margin: 0;
  font-size: 26px;
  font-weight: 860;
  line-height: 1.22;
  color: #fff;
}

h1 span {
  display: block;
  margin-bottom: 5px;
}

.gradient-line {
  color: #fff;
}

.cn-tagline {
  margin: 14px 0 12px;
  font-size: 25px;
  font-weight: 650;
}

.cn-tagline span {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 210, 122, 0.9);
}

.hero-subtitle {
  margin: 0 0 16px;
  color: #c9d2f5;
  font-size: 17px;
}

.hero-description {
  max-width: 550px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.primary-button {
  min-width: 250px;
  min-height: 64px;
  gap: 13px;
  padding: 0 22px;
  font-size: 20px;
}

.primary-button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blue {
  background: linear-gradient(180deg, #4286ff 0%, #2257e5 100%);
}

.purple {
  background: linear-gradient(180deg, #9460f0 0%, #622ad8 100%);
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 530px;
  transform: perspective(1000px) rotateX(calc(var(--tilt-y) * 0.02deg)) rotateY(calc(var(--tilt-x) * -0.02deg));
  transform-style: preserve-3d;
}

.hero-artboard {
  position: relative;
  width: min(100%, 880px);
  isolation: isolate;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.hero-composite-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.96;
  filter: drop-shadow(0 26px 58px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 28px rgba(132, 120, 255, 0.18));
}

.hero-visual-only .hero-stage {
  min-height: auto;
}

.hero-visual-only .hero-composite-image {
  width: 100%;
}

.hero-visual-only .hero-artboard {
  width: min(100%, 980px);
}

.student-showcase {
  position: relative;
  left: 50%;
  width: min(100vw - 64px, 1640px);
  margin: -6px 0 14px;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 22px 18px 18px;
  border: 1px solid rgba(153, 132, 255, 0.46);
  border-radius: 8px;
  background:
    radial-gradient(circle at 7% 12%, rgba(255, 219, 139, 0.18), transparent 16%),
    radial-gradient(circle at 86% 86%, rgba(146, 93, 255, 0.24), transparent 22%),
    linear-gradient(180deg, rgba(15, 20, 48, 0.96), rgba(6, 9, 26, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 22px 60px rgba(0, 0, 0, 0.35), 0 0 42px rgba(116, 92, 255, 0.18);
}

.student-showcase::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
  content: "";
}

.showcase-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 18px;
}

.showcase-title-group h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: white;
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1.08;
}

.showcase-title-group h2 > span {
  color: #ffe2a1;
  text-shadow: 0 0 18px rgba(255, 216, 140, 0.72);
}

.showcase-title-group small {
  color: rgba(219, 213, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.showcase-title-group p {
  margin: 10px 0 0;
  color: rgba(232, 236, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.showcase-nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(184, 174, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
  cursor: pointer;
}

.showcase-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(158, 147, 217, 0.34);
}

.showcase-dot.active {
  background: #8d79ff;
  box-shadow: 0 0 12px rgba(154, 132, 255, 0.8);
}

.showcase-all-works {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(165, 144, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.story-film-reel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 34px 30px;
  border: 1px solid rgba(137, 110, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 10, 26, 0.96), rgba(20, 18, 54, 0.76), rgba(7, 10, 26, 0.96)),
    rgba(7, 10, 26, 0.88);
  box-shadow: inset 0 0 0 1px rgba(219, 213, 255, 0.08), 0 0 30px rgba(131, 95, 255, 0.2);
}

.story-film-reel:hover .story-card-track {
  animation-play-state: paused;
}

.story-film-reel::before,
.story-film-reel::after {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgba(205, 214, 255, 0.18) 0 13px, transparent 13px 28px);
  content: "";
}

.story-film-reel::before {
  top: 9px;
}

.story-film-reel::after {
  bottom: 9px;
}

.story-card-track {
  display: grid;
  grid-template-columns: repeat(16, minmax(128px, 1fr));
  gap: 14px;
  width: max-content;
  min-width: 200%;
  animation: story-showcase-scroll 38s linear infinite;
  will-change: transform;
}

@keyframes story-showcase-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.story-card {
  min-width: 0;
  width: clamp(128px, calc((100vw - 440px) / 8), 162px);
  overflow: hidden;
  border: 1px solid rgba(187, 183, 255, 0.24);
  border-radius: 8px;
  background: rgba(11, 15, 35, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 28px rgba(0, 0, 0, 0.28);
}

.story-card img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  display: block;
}

.story-card h3 {
  margin: 10px 10px 8px;
  color: white;
  font-size: 13px;
  line-height: 1.22;
}

.story-tags {
  display: grid;
  gap: 7px;
  padding: 0 10px 12px;
}

.story-kind,
.story-style {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
}

.story-kind {
  color: #dbe6ff;
  background: rgba(86, 113, 183, 0.28);
}

.story-style {
  color: #d7c7ff;
  background: rgba(139, 95, 255, 0.22);
}

.reel-edge {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #a88cff;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.reel-edge.previous {
  left: 5px;
}

.reel-edge.next {
  right: 5px;
}

.learning-arc {
  position: absolute;
  inset: 62px 0 auto 10px;
  z-index: 2;
  height: 250px;
  filter: drop-shadow(0 0 10px rgba(255, 213, 132, 0.8)) drop-shadow(0 0 24px rgba(125, 151, 255, 0.5));
  opacity: 0.94;
}

.learning-arc svg {
  width: 100%;
  height: 100%;
}

.student-scene {
  position: absolute;
  left: -18px;
  bottom: -8px;
  z-index: 3;
  width: 510px;
  height: 510px;
}

.hero-student-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.55));
}

.student-glow {
  position: absolute;
  left: 64px;
  top: 48px;
  width: 250px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 109, 0.32), transparent 68%);
  filter: blur(6px);
}

.student-head {
  position: absolute;
  left: 150px;
  top: 102px;
  width: 72px;
  height: 82px;
  border-radius: 44% 46% 48% 42%;
  background: linear-gradient(145deg, #d7aa7f, #8e5b3e 76%);
  box-shadow: inset -15px -10px 18px rgba(37, 16, 11, 0.5), 0 0 22px rgba(255, 180, 104, 0.24);
}

.student-hair {
  position: absolute;
  left: 127px;
  top: 79px;
  width: 128px;
  height: 108px;
  border-radius: 60% 44% 54% 40%;
  background:
    radial-gradient(circle at 26% 28%, #161821 0 23px, transparent 24px),
    radial-gradient(circle at 45% 18%, #10131f 0 25px, transparent 26px),
    radial-gradient(circle at 62% 34%, #10131f 0 31px, transparent 32px),
    linear-gradient(145deg, #0b0d14, #19131a);
  box-shadow: 12px 8px 0 rgba(8, 8, 14, 0.75);
}

.student-body {
  position: absolute;
  left: 87px;
  top: 186px;
  width: 174px;
  height: 210px;
  border-radius: 46% 40% 18% 18%;
  background:
    linear-gradient(120deg, rgba(255, 196, 112, 0.16), transparent 25%),
    linear-gradient(150deg, #121828, #050711 72%);
  box-shadow: inset -24px 0 26px rgba(0, 0, 0, 0.44), 28px 20px 42px rgba(0, 0, 0, 0.44);
}

.student-body::after {
  position: absolute;
  right: -66px;
  bottom: 45px;
  width: 112px;
  height: 24px;
  border-radius: 24px;
  background: linear-gradient(90deg, #0b1020, #b07852);
  transform: rotate(15deg);
  content: "";
}

.desk {
  position: absolute;
  left: 140px;
  bottom: 10px;
  width: 285px;
  height: 92px;
  border-radius: 8px;
  background: linear-gradient(170deg, #161728 0%, #0a0b12 72%);
  transform: skewX(-18deg);
  box-shadow: 0 24px 38px rgba(0, 0, 0, 0.45);
}

.tablet {
  position: absolute;
  right: 18px;
  bottom: 97px;
  width: 142px;
  min-height: 190px;
  padding: 25px 15px 24px;
  border: 2px solid rgba(196, 204, 255, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 246, 226, 0.96), rgba(219, 225, 255, 0.9)),
    #fff;
  color: #101423;
  transform: rotate(14deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.48), 0 0 24px rgba(142, 164, 255, 0.2);
}

.tablet p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.55;
}

.tablet span {
  position: absolute;
  right: 11px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-right: 2px solid #4d6bdc;
  border-bottom: 2px solid #4d6bdc;
  transform: rotate(40deg);
}

.floating-card,
.scene-card,
.feature-card,
.workflow-panel,
.literacy-loop {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.vocab-card {
  position: absolute;
  left: 350px;
  top: 176px;
  z-index: 5;
  width: 226px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: rotate(3deg);
}

.vocab-card img {
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 0 18px rgba(153, 128, 255, 0.46)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
}

.card-kicker {
  color: #d6ddff;
  font-size: 12px;
}

.vocab-card h3 {
  margin: 16px 0 2px;
  font-size: 19px;
}

.phonetic,
.word-type,
.vocab-card p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.42;
}

.word-type {
  color: #c0c8e6;
}

.tiny-lighthouse {
  position: absolute;
  right: 14px;
  top: 52px;
  width: 38px;
  height: 68px;
  border-radius: 20px 20px 4px 4px;
  background:
    radial-gradient(circle at 50% 12%, #ffe6a2 0 5px, rgba(255, 207, 104, 0.4) 6px, transparent 15px),
    linear-gradient(90deg, transparent 0 15px, #d5d9f0 16px 22px, transparent 23px),
    linear-gradient(180deg, transparent 0 24px, #355284 25px 100%);
}

.tiny-lighthouse span {
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0;
  height: 15px;
  border-radius: 50% 50% 0 0;
  background: #17284e;
}

.scene-stack {
  position: absolute;
  right: -2px;
  top: 42px;
  z-index: 4;
  width: 448px;
}

.scene-stack img {
  width: 100%;
  filter: drop-shadow(0 0 24px rgba(169, 133, 255, 0.36)) drop-shadow(0 24px 54px rgba(0, 0, 0, 0.56));
}

.scene-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(17, 18, 47, 0.78);
}

.scene-card.movie {
  height: 170px;
  transform: rotate(4deg);
}

.scene-card.book {
  height: 164px;
  margin-top: 14px;
  transform: rotate(6deg) translateX(-31px);
}

.scene-card.avatar {
  width: 348px;
  height: 158px;
  margin-top: 15px;
  transform: rotate(5deg) translateX(-78px);
}

.scene-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 17px;
}

.step-number {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(191, 196, 255, 0.8);
  border-radius: 50%;
  background: rgba(83, 65, 211, 0.6);
  font-size: 13px;
}

.play-dot {
  position: absolute;
  right: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.play-dot::before {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
  margin-left: 2px;
  content: "";
}

.scene-art,
.avatar-preview {
  position: absolute;
  inset: 45px 14px 12px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 56% 27%, #ffd28b 0 22px, rgba(255, 147, 91, 0.55) 23px 54px, transparent 55px),
    linear-gradient(180deg, #53355f 0%, #1b244c 45%, #071023 100%);
}

.sun {
  position: absolute;
  right: 91px;
  top: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe5ad, #d76d5b 70%, transparent 72%);
}

.hill {
  position: absolute;
  bottom: -16px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #324675, #121b35);
}

.hill.one {
  left: -25px;
  width: 230px;
  height: 92px;
}

.hill.two {
  right: -18px;
  width: 260px;
  height: 116px;
  background: linear-gradient(180deg, #52658b, #19233b);
}

.hero-girl {
  position: absolute;
  left: 110px;
  bottom: 18px;
  width: 26px;
  height: 58px;
  border-radius: 16px 16px 4px 4px;
  background:
    radial-gradient(circle at 50% 10%, #f0bd8a 0 8px, transparent 9px),
    linear-gradient(180deg, transparent 0 18px, #10214b 19px 100%);
}

.shadow-form {
  position: absolute;
  right: 28px;
  top: 2px;
  width: 128px;
  height: 92px;
  border-radius: 55% 45% 46% 50%;
  border-top: 10px solid rgba(5, 6, 13, 0.86);
  border-right: 16px solid rgba(5, 6, 13, 0.86);
  transform: rotate(-16deg);
}

.shadow-form::before,
.shadow-form::after {
  position: absolute;
  background: rgba(5, 6, 13, 0.86);
  content: "";
}

.shadow-form::before {
  right: -27px;
  top: -10px;
  width: 44px;
  height: 30px;
  clip-path: polygon(0 45%, 100% 0, 70% 100%);
}

.shadow-form::after {
  right: 6px;
  bottom: -14px;
  width: 54px;
  height: 38px;
  clip-path: polygon(0 0, 100% 55%, 0 100%);
}

.open-book {
  position: absolute;
  inset: 47px 22px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transform: perspective(420px) rotateX(6deg);
}

.book-page {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(87, 56, 37, 0.45);
  background: #ead8bc;
  box-shadow: inset 12px 0 20px rgba(98, 56, 28, 0.16);
}

.book-page:first-child {
  border-radius: 8px 0 0 8px;
}

.book-page:last-child {
  border-radius: 0 8px 8px 0;
}

.text-page p {
  margin: 18px 16px;
  color: #392718;
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.55;
}

.image-page {
  background:
    radial-gradient(circle at 65% 24%, #ffe4a2 0 16px, rgba(255, 178, 88, 0.5) 17px 42px, transparent 43px),
    linear-gradient(180deg, #776aa5, #d9b98c 54%, #445b74);
}

.page-tower {
  position: absolute;
  right: 42px;
  bottom: 6px;
  width: 26px;
  height: 76px;
  background: linear-gradient(90deg, #5c4b48, #f4d6a1 42%, #4a4252);
  clip-path: polygon(34% 0, 66% 0, 82% 100%, 18% 100%);
}

.page-light {
  position: absolute;
  right: 16px;
  top: 24px;
  width: 94px;
  height: 28px;
  background: linear-gradient(90deg, rgba(255, 231, 156, 0.84), transparent);
  transform: rotate(-14deg);
  filter: blur(2px);
}

.avatar-preview {
  inset: 48px 13px 12px;
  background:
    radial-gradient(circle at 52% 28%, rgba(255, 219, 151, 0.9), transparent 17%),
    linear-gradient(180deg, #4c486d 0%, #182348 45%, #071020 100%);
}

.avatar-face {
  position: absolute;
  left: 128px;
  top: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f1b987;
}

.avatar-hair {
  position: absolute;
  left: 116px;
  top: 4px;
  width: 82px;
  height: 70px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 40%, transparent 0 29px, #21162a 30px);
}

.avatar-hair::before,
.avatar-hair::after {
  position: absolute;
  top: 35px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15152b;
  content: "";
}

.avatar-hair::before {
  left: 30px;
}

.avatar-hair::after {
  right: 30px;
}

.avatar-cloak {
  position: absolute;
  left: 105px;
  bottom: -18px;
  width: 104px;
  height: 82px;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, #283a77, #101d48);
}

.mini-landscape {
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, #111a31);
}

.companion {
  position: absolute;
  right: -28px;
  bottom: 3px;
  z-index: 5;
  width: 218px;
  height: 218px;
  filter: drop-shadow(0 0 24px rgba(255, 203, 115, 0.35)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.46));
}

.companion img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.companion-head {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 118px;
  height: 106px;
  border-radius: 54% 46% 45% 55%;
  background:
    radial-gradient(circle at 58% 46%, #6aa9ff 0 10px, #10172b 11px 19px, transparent 20px),
    linear-gradient(135deg, #3e3168, #11162f 54%, #040610);
  border: 2px solid rgba(255, 206, 127, 0.62);
}

.companion-head::before,
.companion-head::after {
  position: absolute;
  width: 44px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffc96d, #2c2552 55%, #0b0d18);
  content: "";
}

.companion-head::before {
  left: -26px;
  top: 22px;
  transform: rotate(-24deg);
}

.companion-head::after {
  right: -18px;
  top: 15px;
  transform: rotate(26deg);
}

.companion-wing {
  position: absolute;
  left: 8px;
  top: 14px;
  width: 76px;
  height: 86px;
  border-radius: 80% 8px 80% 20px;
  background: linear-gradient(145deg, #ffd078, #3b2a72 48%, #070914);
  border: 1px solid rgba(255, 219, 146, 0.66);
  transform: rotate(-16deg);
}

.speech-bubble {
  position: absolute;
  right: 138px;
  bottom: 69px;
  z-index: 4;
  width: 174px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid rgba(199, 211, 255, 0.62);
  border-radius: 8px;
  background: rgba(10, 16, 36, 0.86);
  color: white;
  font-size: 16px;
  line-height: 1.35;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.speech-bubble::after {
  position: absolute;
  right: -17px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(199, 211, 255, 0.62);
  border-right: 1px solid rgba(199, 211, 255, 0.62);
  background: rgba(10, 16, 36, 0.86);
  transform: rotate(45deg);
  content: "";
}

.literacy-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 56px;
  margin: 4px 0 14px;
  padding: 10px 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
}

.literacy-loop strong:nth-of-type(2) {
  color: #b9a5ff;
}

.literacy-loop strong:nth-of-type(3) {
  color: #ffc6a5;
}

.literacy-loop strong:nth-of-type(4) {
  color: #f69bff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}

.feature-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  min-height: 118px;
  padding: 16px;
}

.feature-card h2,
.workflow-panel h2 {
  margin: 0;
  font-size: 17px;
}

.feature-card p,
.workflow-panel p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.38;
}

.feature-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.book-icon {
  border: 2px solid rgba(163, 181, 255, 0.75);
  background: linear-gradient(145deg, rgba(58, 97, 205, 0.45), rgba(14, 24, 52, 0.78));
  clip-path: polygon(50% 0, 92% 18%, 86% 82%, 50% 100%, 14% 82%, 8% 18%);
}

.book-icon::before,
.book-icon::after {
  position: absolute;
  top: 20px;
  width: 22px;
  height: 30px;
  border: 3px solid #d7e4ff;
  border-top: 0;
  content: "";
}

.book-icon::before {
  left: 13px;
  border-right: 1px solid #d7e4ff;
}

.book-icon::after {
  right: 13px;
  border-left: 1px solid #d7e4ff;
}

.upload-icon {
  border: 2px solid rgba(168, 184, 255, 0.78);
  border-radius: 34px;
  background:
    linear-gradient(#92b5ff, #92b5ff) 50% 31px / 8px 31px no-repeat,
    linear-gradient(135deg, transparent 0 41%, #92b5ff 42% 58%, transparent 59%) 50% 26px / 36px 36px no-repeat;
}

.upload-icon::before {
  position: absolute;
  left: -12px;
  top: 28px;
  width: 92px;
  height: 42px;
  border: 4px solid #9fb3ff;
  border-top: 0;
  border-radius: 0 0 36px 36px;
  content: "";
}

.homework-icon {
  border: 2px solid rgba(181, 195, 255, 0.72);
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(162, 151, 205, 0.78) 73%) 100% 0 / 22px 22px no-repeat,
    linear-gradient(180deg, #fff3dc, #d9c8a9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 18px rgba(137, 159, 255, 0.25);
}

.homework-icon::before {
  position: absolute;
  inset: 20px 15px 14px 18px;
  background:
    radial-gradient(circle, #7ee07a 0 4px, transparent 5px) 0 2px / 100% 16px,
    linear-gradient(#8f877d, #8f877d) 18px 4px / 32px 3px no-repeat,
    linear-gradient(#b1a69a, #b1a69a) 18px 20px / 37px 3px no-repeat,
    linear-gradient(#b1a69a, #b1a69a) 18px 36px / 28px 3px no-repeat;
  content: "";
}

.homework-icon::after {
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-left: 1px solid rgba(117, 104, 92, 0.38);
  border-bottom: 1px solid rgba(117, 104, 92, 0.38);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0 50%, rgba(171, 156, 135, 0.72) 51%);
  content: "";
}

.movie-icon {
  border: 2px solid rgba(168, 184, 255, 0.78);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0 25px, transparent 26px),
    linear-gradient(90deg, rgba(143, 112, 255, 0.92) 0 11px, transparent 12px 58px, rgba(143, 112, 255, 0.92) 59px),
    linear-gradient(145deg, rgba(49, 86, 205, 0.5), rgba(14, 18, 45, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 18px rgba(124, 108, 255, 0.28);
}

.movie-icon::before {
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(3, 6, 16, 0.4);
  content: "";
}

.movie-icon::after {
  position: absolute;
  left: 31px;
  top: 25px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  content: "";
}

.tutor-icon {
  border: 2px solid rgba(199, 177, 255, 0.76);
  background:
    radial-gradient(circle at 55% 42%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 34% 35%, rgba(255, 210, 122, 0.9) 0 4px, transparent 5px),
    linear-gradient(145deg, rgba(128, 83, 238, 0.58), rgba(7, 11, 31, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 20px rgba(155, 121, 255, 0.3);
}

.tutor-icon::before {
  position: absolute;
  left: 13px;
  top: 17px;
  width: 42px;
  height: 30px;
  border: 3px solid #d8cdff;
  border-radius: 8px 8px 8px 2px;
  content: "";
}

.tutor-icon::after {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(#fff0b8, #fff0b8) 50% 0 / 2px 100% no-repeat,
    linear-gradient(#fff0b8, #fff0b8) 0 50% / 100% 2px no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 223, 143, 0.88));
  transform: rotate(25deg);
  content: "";
}

.tutor-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(199, 177, 255, 0.76);
  background: linear-gradient(145deg, rgba(128, 83, 238, 0.42), rgba(7, 11, 31, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(155, 121, 255, 0.3);
}

.tutor-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 218, 142, 0.42));
}

.privacy-protection-icon {
  border: 2px solid rgba(160, 190, 255, 0.78);
  background:
    linear-gradient(#86a7ff, #86a7ff) 50% 42px / 34px 4px no-repeat,
    linear-gradient(#86a7ff, #86a7ff) 50% 48px / 44px 4px no-repeat,
    linear-gradient(145deg, rgba(55, 95, 204, 0.46), rgba(9, 18, 47, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px rgba(109, 141, 255, 0.25);
}

.privacy-protection-icon::before {
  position: absolute;
  left: 9px;
  top: 10px;
  width: 40px;
  height: 28px;
  border: 2px solid rgba(214, 225, 255, 0.82);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(31, 51, 106, 0.92), rgba(9, 13, 34, 0.96));
  content: "";
}

.privacy-protection-icon::after {
  position: absolute;
  left: 19px;
  top: 16px;
  width: 20px;
  height: 25px;
  border: 2px solid rgba(255, 232, 166, 0.88);
  border-radius: 10px 10px 7px 7px;
  background:
    radial-gradient(circle at 50% 55%, #10172f 0 3px, transparent 4px),
    linear-gradient(180deg, #ffe6a1, #b7802a);
  box-shadow: 0 0 12px rgba(255, 221, 146, 0.5);
  clip-path: polygon(50% 0, 90% 16%, 82% 82%, 50% 100%, 18% 82%, 10% 16%);
  content: "";
}

.lock-icon {
  background:
    linear-gradient(180deg, #9eb7ff, #5f7cf4 64%, #3246ad);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 0 18px rgba(95, 124, 244, 0.38);
  transform: scale(0.72);
}

.lock-icon::before {
  position: absolute;
  left: 14px;
  top: -34px;
  width: 42px;
  height: 44px;
  border: 7px solid #9fb3ff;
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  content: "";
}

.lock-icon::after {
  position: absolute;
  left: 31px;
  top: 24px;
  width: 9px;
  height: 20px;
  border-radius: 999px;
  background: #101939;
  content: "";
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.96fr 1fr;
  gap: 20px;
}

.workflow-panel {
  min-height: 316px;
  padding: 24px 26px 16px;
  overflow: hidden;
}

.read-panel {
  background:
    radial-gradient(circle at 78% 26%, rgba(66, 134, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(8, 16, 39, 0.76);
}

.write-panel {
  background:
    radial-gradient(circle at 30% 14%, rgba(142, 74, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 86% 80%, rgba(255, 163, 100, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(11, 12, 37, 0.76);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.panel-heading h2 {
  font-size: 27px;
}

.panel-heading p {
  font-size: 14px;
}

.panel-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  background: #fff;
}

.panel-icon.read {
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(4, 8, 20, 0.38) 47% 53%, transparent 54%),
    linear-gradient(90deg, #dbe6ff 0 46%, #ffffff 47% 100%);
  clip-path: polygon(7% 12%, 45% 4%, 50% 14%, 55% 4%, 93% 12%, 93% 88%, 55% 80%, 50% 90%, 45% 80%, 7% 88%);
}

.panel-icon.write {
  width: 58px;
  height: 58px;
  background:
    linear-gradient(135deg, transparent 0 62%, #8751f1 63%) 0 0 / 100% 100%,
    linear-gradient(135deg, #f4f0ff 0 18%, #8f6df4 19% 33%, #ffffff 34% 58%, transparent 59%);
  clip-path: polygon(65% 0, 100% 35%, 35% 100%, 4% 100%, 0 65%);
}

.flow-steps {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 28px minmax(90px, 1fr) 28px minmax(90px, 1fr) 28px minmax(120px, 1.35fr);
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
}

.read-panel .flow-steps {
  grid-template-columns: minmax(70px, 0.86fr) 20px minmax(78px, 0.95fr) 20px minmax(70px, 0.84fr) 20px minmax(86px, 1fr) 20px minmax(108px, 1.18fr);
  gap: 6px;
}

.write-panel .flow-steps {
  grid-template-columns: minmax(70px, 0.86fr) 20px minmax(78px, 0.95fr) 20px minmax(70px, 0.84fr) 20px minmax(86px, 1fr) 20px minmax(108px, 1.18fr);
  gap: 6px;
}

.flow-item {
  min-width: 0;
  text-align: center;
}

.flow-item span {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 13px;
  white-space: nowrap;
}

.read-panel .flow-item > span {
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.write-panel .flow-item > span {
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.flow-arrow {
  color: #9c83ff;
  font-size: 36px;
  text-align: center;
}

.read-panel .flow-arrow {
  font-size: 28px;
}

.write-panel .flow-arrow {
  font-size: 28px;
}

.flow-visual {
  position: relative;
  width: 100%;
  max-width: 106px;
  height: 106px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(181, 192, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.read-panel .flow-visual {
  max-width: 92px;
  height: 92px;
}

.write-panel .flow-visual {
  max-width: 92px;
  height: 92px;
}

.flow-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vocabulary-image img,
.storybook-image img,
.illustrated-book-image img {
  object-fit: cover;
}

.vocabulary-image img {
  padding: 3px;
  object-fit: contain;
  background: #040817;
}

.movie-image img,
.real-person-image img {
  object-fit: cover;
}

.paper {
  background: linear-gradient(180deg, #eee4d2, #c7b59a);
}

.paper::before {
  position: absolute;
  inset: 22px 20px;
  background:
    linear-gradient(#8a8176, #8a8176) 0 0 / 52px 3px no-repeat,
    linear-gradient(#b5aaa0, #b5aaa0) 0 20px / 60px 3px no-repeat,
    linear-gradient(#b5aaa0, #b5aaa0) 0 40px / 46px 3px no-repeat;
  content: "";
}

.paper::after {
  position: absolute;
  right: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #fff 0 50%, #a99b8a 51%);
  content: "";
}

.vocabulary-image,
.storybook-image,
.illustrated-book-image,
.movie-image,
.real-person-image {
  background:
    radial-gradient(circle at 68% 22%, #ffd88d 0 16px, rgba(255, 152, 94, 0.45) 17px 38px, transparent 39px),
    linear-gradient(180deg, #51466f, #22345f 48%, #15233d 100%);
}

.vocabulary-image::before {
  position: absolute;
  right: 34px;
  bottom: 8px;
  width: 18px;
  height: 64px;
  background: linear-gradient(90deg, #393144, #f5d5a2 50%, #2b2f4c);
  clip-path: polygon(35% 0, 65% 0, 86% 100%, 14% 100%);
  content: "";
}

.vocabulary-image::before,
.movie-image::before,
.movie-image::after,
.real-person-image::after {
  content: none;
}

.quiz {
  padding: 18px;
}

.quiz::before {
  position: absolute;
  inset: 20px 18px;
  background:
    radial-gradient(circle, #7fe170 0 6px, transparent 7px) 0 0 / 100% 24px,
    linear-gradient(#8792b5, #8792b5) 24px 5px / 48px 4px no-repeat,
    linear-gradient(#8792b5, #8792b5) 24px 29px / 55px 4px no-repeat,
    linear-gradient(#8792b5, #8792b5) 24px 53px / 36px 4px no-repeat;
  content: "";
}

.ccss-skill-card {
  padding: 3px;
  border-color: rgba(255, 214, 126, 0.58);
  background: #06091a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 24px rgba(255, 204, 96, 0.24);
}

.ccss-skill-card img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.storybook-image,
.illustrated-book-image {
  max-width: 142px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 46%, rgba(0, 0, 0, 0.18) 48%, transparent 50%),
    radial-gradient(circle at 72% 28%, #ffe0a1 0 16px, transparent 18px),
    linear-gradient(135deg, #d9c69d, #465c84 60%, #202946);
}

.prompt-list::before {
  position: absolute;
  inset: 18px;
  background:
    radial-gradient(circle, transparent 0 4px, #a98fff 5px 7px, transparent 8px) 0 2px / 100% 22px,
    linear-gradient(#a98fff, #a98fff) 25px 7px / 55px 4px no-repeat,
    linear-gradient(#a98fff, #a98fff) 25px 29px / 64px 4px no-repeat,
    linear-gradient(#a98fff, #a98fff) 25px 51px / 45px 4px no-repeat;
  content: "";
}

.movie-image {
  border: 9px solid rgba(21, 26, 44, 0.88);
}

.movie-image::before {
  position: absolute;
  inset: 23px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.28);
  content: "";
}

.movie-image::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  transform: translate(-35%, -50%);
  content: "";
}

.real-person-image {
  background:
    radial-gradient(circle at 50% 38%, #f5bd8d 0 28px, transparent 29px),
    radial-gradient(circle at 50% 33%, #281c24 0 38px, transparent 39px),
    linear-gradient(180deg, #75654a, #091125);
}

.real-person-image::after {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -18px;
  height: 60px;
  border-radius: 50% 50% 0 0;
  background: #cfd9ff;
  content: "";
}

.publish-share-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 44px auto;
  align-items: end;
  gap: 5px 6px;
  padding: 9px 7px 8px;
  border-color: rgba(227, 178, 255, 0.42);
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 220, 150, 0.3) 0 16px, transparent 34px),
    radial-gradient(circle at 76% 25%, rgba(143, 118, 255, 0.34) 0 18px, transparent 36px),
    linear-gradient(135deg, rgba(76, 41, 140, 0.82), rgba(17, 22, 58, 0.96) 62%, rgba(7, 9, 26, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 24px rgba(184, 119, 255, 0.22);
}

.publish-share-card::before {
  position: absolute;
  inset: 8px;
  background:
    radial-gradient(circle at 18% 18%, #fff0b8 0 2px, transparent 3px),
    radial-gradient(circle at 84% 16%, #dccfff 0 2px, transparent 3px),
    radial-gradient(circle at 76% 78%, #ffd98a 0 1px, transparent 3px);
  opacity: 0.9;
  content: "";
}

.publish-book-icon,
.publish-play-icon,
.publish-book,
.publish-video {
  position: relative;
  z-index: 1;
}

.publish-book-icon {
  width: 32px;
  height: 30px;
  justify-self: center;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, rgba(93, 64, 25, 0.2), transparent 45%, rgba(93, 64, 25, 0.28) 50%, transparent 56%),
    linear-gradient(135deg, #fff2c7, #d6b878);
  box-shadow: 0 0 13px rgba(255, 216, 140, 0.5);
}

.publish-book-icon::before {
  position: absolute;
  left: -5px;
  top: 3px;
  width: 18px;
  height: 25px;
  border-radius: 6px 2px 2px 6px;
  background: linear-gradient(135deg, #fff8df, #c9aa6c);
  content: "";
}

.publish-play-icon {
  width: 34px;
  height: 34px;
  justify-self: center;
  border: 2px solid rgba(226, 214, 255, 0.78);
  border-radius: 50%;
  background: rgba(15, 16, 38, 0.42);
  box-shadow: 0 0 13px rgba(159, 132, 255, 0.55);
}

.publish-play-icon::before {
  position: absolute;
  left: 13px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  content: "";
}

.publish-book,
.publish-video {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.94);
  font-size: 8px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.panel-button {
  width: min(100%, 300px);
  min-height: 54px;
  gap: 22px;
  margin: 0 auto;
  font-size: 21px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 28px 4px 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

.visual-read-page {
  width: min(94vw, 1440px);
}

.main-nav .nav-active {
  color: #fff;
  text-shadow: 0 0 18px rgba(104, 138, 255, 0.9);
}

.main-nav .nav-active::after {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 0 16px rgba(87, 118, 255, 0.84);
  content: "";
}

.read-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 220px;
  align-items: center;
  gap: 28px;
  padding: 36px 0 22px;
  overflow: hidden;
}

.read-hero::before {
  position: absolute;
  inset: -30px 0 0 auto;
  width: 52%;
  background:
    radial-gradient(circle at 64% 50%, rgba(125, 105, 255, 0.26), transparent 16rem),
    radial-gradient(circle at 77% 34%, rgba(255, 195, 116, 0.14), transparent 10rem);
  pointer-events: none;
  content: "";
}

.read-hero-copy {
  position: relative;
  z-index: 1;
}

.read-eyebrow {
  width: 54px;
  height: 42px;
  margin-bottom: 12px;
  border: 1px solid rgba(184, 196, 255, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(4, 8, 20, 0.38) 47% 53%, transparent 54%),
    linear-gradient(90deg, #dbe6ff 0 46%, #ffffff 47% 100%);
  box-shadow: 0 0 18px rgba(121, 146, 255, 0.34);
  clip-path: polygon(7% 12%, 45% 4%, 50% 14%, 55% 4%, 93% 12%, 93% 88%, 55% 80%, 50% 90%, 45% 80%, 7% 88%);
}

.read-hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 5vw, 58px);
  letter-spacing: 0;
}

.read-hero p {
  max-width: 880px;
  margin: 12px 0 0;
  color: rgba(231, 236, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.read-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.read-badges span,
.read-badges a,
.source-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(143, 160, 214, 0.28);
  border-radius: 8px;
  color: rgba(232, 237, 255, 0.84);
  background: rgba(6, 12, 30, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.read-badges span:last-child,
.source-pill {
  color: #bdc9ff;
  border-color: rgba(117, 142, 255, 0.36);
  background: rgba(31, 42, 83, 0.52);
}

.grade-selector {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) 1fr;
  gap: 18px;
  max-width: 900px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(145, 160, 220, 0.24);
  border-radius: 8px;
  background: rgba(6, 13, 31, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.grade-selector-copy span {
  display: block;
  color: #b7c5ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.grade-selector-copy strong {
  display: block;
  margin-top: 6px;
  color: white;
  font-size: 18px;
}

.grade-selector-copy p {
  margin: 6px 0 0;
  color: rgba(225, 231, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.grade-chip-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  gap: 8px;
  align-content: center;
}

.grade-chip {
  min-height: 38px;
  border: 1px solid rgba(158, 174, 232, 0.24);
  border-radius: 8px;
  color: rgba(239, 243, 255, 0.82);
  background: rgba(22, 31, 68, 0.68);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.grade-chip.active,
.grade-chip:hover {
  border-color: rgba(132, 165, 255, 0.82);
  color: white;
  background: linear-gradient(135deg, rgba(43, 111, 255, 0.92), rgba(135, 66, 230, 0.88));
  box-shadow: 0 0 18px rgba(96, 125, 255, 0.34);
}

.ccss-skill-board {
  margin: 14px 0 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(65, 105, 255, 0.22), transparent 18rem),
    rgba(7, 15, 36, 0.76);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-board-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.skill-board-heading span {
  color: #b9c6ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-board-heading h2 {
  margin: 0;
  color: white;
  font-size: 24px;
}

.skill-board-heading p {
  max-width: 840px;
  margin: 0;
  color: rgba(227, 233, 255, 0.7);
  line-height: 1.5;
}

.skill-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ccss-flip-card {
  min-height: 178px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
  font: inherit;
  text-align: left;
}

.skill-card-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 178px;
  transform-style: preserve-3d;
  transition: transform 420ms ease;
}

.ccss-flip-card:hover .skill-card-inner,
.ccss-flip-card:focus-visible .skill-card-inner {
  transform: rotateY(180deg);
}

.skill-card-front,
.skill-card-back {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  min-height: 178px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(155, 171, 232, 0.26);
  border-radius: 8px;
  backface-visibility: hidden;
}

.skill-card-front {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 214, 128, 0.2), transparent 5rem),
    linear-gradient(145deg, rgba(22, 43, 100, 0.94), rgba(18, 22, 57, 0.9));
}

.skill-card-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 12% 10%, rgba(143, 103, 255, 0.22), transparent 5rem),
    linear-gradient(145deg, rgba(20, 25, 61, 0.98), rgba(9, 14, 34, 0.96));
}

.skill-card-front small,
.skill-card-back small {
  color: #c6d0ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.skill-card-front strong {
  color: white;
  font-size: 18px;
  line-height: 1.16;
}

.skill-card-front em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffe3a2;
  background: rgba(255, 196, 86, 0.14);
  font-style: normal;
  font-weight: 900;
}

.skill-card-back strong {
  color: white;
  font-size: 15px;
}

.skill-card-back span {
  color: rgba(236, 241, 255, 0.82);
  font-size: 13px;
  line-height: 1.38;
}

.skill-card-back small {
  color: #ffd892;
  line-height: 1.35;
  text-transform: none;
}

.story-library-panel {
  margin: 16px 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 162, 224, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 7% 8%, rgba(255, 209, 118, 0.16), transparent 15rem),
    radial-gradient(circle at 92% 0%, rgba(123, 91, 255, 0.22), transparent 17rem),
    rgba(7, 14, 34, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.story-library-heading {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}

.story-library-heading span {
  display: block;
  color: #ffd995;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-library-heading h2 {
  margin: 4px 0 0;
  color: white;
  font-size: 24px;
}

.story-library-intro {
  margin: 0;
  color: rgba(229, 235, 255, 0.76);
  line-height: 1.5;
}

.story-library-toggle {
  min-width: 176px;
  padding: 12px 16px;
  border: 1px solid rgba(154, 173, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(46, 107, 255, 0.88), rgba(129, 70, 235, 0.88));
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(64, 99, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.story-library-toggle:hover,
.story-library-toggle:focus-visible {
  border-color: rgba(255, 218, 146, 0.75);
  box-shadow: 0 0 26px rgba(132, 106, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.story-library-summary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(154, 173, 255, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(84, 126, 255, 0.24), transparent 13rem),
    rgba(13, 23, 55, 0.76);
}

.story-library-summary span {
  color: #aebcff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-library-summary strong {
  color: white;
  font-size: 18px;
}

.story-library-summary small {
  color: rgba(235, 239, 255, 0.74);
  line-height: 1.45;
}

.story-library-body {
  margin-top: 16px;
}

.story-library-body[hidden] {
  display: none;
}

.story-library-panel.is-open {
  border-color: rgba(151, 132, 255, 0.58);
  box-shadow: 0 0 34px rgba(113, 93, 255, 0.18), var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.story-pack-grid {
  display: grid;
  gap: 14px;
}

.story-pack-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(151, 166, 224, 0.24);
  border-radius: 8px;
  background: rgba(8, 15, 36, 0.58);
}

.story-pack-group-heading {
  display: grid;
  gap: 4px;
}

.story-pack-group-heading h3 {
  margin: 0;
  color: #ffe0a4;
  font-size: 18px;
}

.story-pack-group-heading p {
  margin: 0;
  color: rgba(232, 237, 255, 0.66);
  font-size: 12px;
  line-height: 1.42;
}

.story-pack-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.story-pack-card {
  display: grid;
  gap: 8px;
  min-height: 286px;
  padding: 12px;
  border: 1px solid rgba(151, 166, 224, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(26, 36, 78, 0.82), rgba(9, 15, 36, 0.92));
  color: white;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.story-pack-card:hover,
.story-pack-card:focus-visible {
  border-color: rgba(171, 137, 255, 0.72);
  box-shadow: 0 0 24px rgba(119, 94, 255, 0.28);
  transform: translateY(-2px);
}

.story-pack-card.active {
  border-color: rgba(100, 142, 255, 0.9);
  background:
    radial-gradient(circle at 18% 10%, rgba(93, 139, 255, 0.32), transparent 8rem),
    linear-gradient(180deg, rgba(35, 58, 121, 0.92), rgba(11, 18, 45, 0.94));
  box-shadow: 0 0 26px rgba(79, 126, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.story-pack-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(176, 190, 241, 0.3);
  border-radius: 6px;
}

.story-pack-meta {
  color: #b9c8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-pack-card strong {
  color: white;
  font-size: 17px;
  line-height: 1.18;
}

.story-pack-card em {
  color: #ffd996;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.story-pack-preview {
  margin: 0;
  color: rgba(232, 237, 255, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.story-pack-quiz-list {
  align-self: end;
  color: #c8b8ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.read-hero-art {
  position: relative;
  z-index: 1;
  min-height: 210px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.read-hero-art img {
  position: absolute;
  right: 0;
  bottom: -14px;
  width: 250px;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.48));
  opacity: 0.92;
}

.read-orbit {
  position: absolute;
  right: 92px;
  top: 8px;
  width: 210px;
  height: 130px;
  border-top: 2px solid rgba(138, 164, 255, 0.3);
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(110, 135, 255, 0.48));
  transform: rotate(20deg);
}

.read-lens {
  position: absolute;
  right: 118px;
  top: 88px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 226, 151, 0.76);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 157, 255, 0.36), rgba(8, 12, 31, 0.2) 68%);
  box-shadow: 0 0 28px rgba(255, 213, 132, 0.5);
}

.read-progress {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 30px minmax(170px, 1fr) 30px minmax(170px, 1fr) 30px minmax(170px, 1fr) 30px minmax(170px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
}

.read-step {
  display: grid;
  grid-template-columns: 44px 38px 1fr;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(136, 154, 214, 0.24);
  border-radius: 8px;
  background: rgba(12, 20, 45, 0.58);
  color: rgba(233, 237, 255, 0.62);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.read-step.active {
  border-color: rgba(113, 145, 255, 0.86);
  background:
    radial-gradient(circle at 34% 44%, rgba(100, 135, 255, 0.48), transparent 58%),
    linear-gradient(135deg, rgba(38, 89, 244, 0.86), rgba(54, 31, 130, 0.62));
  box-shadow: 0 0 24px rgba(66, 108, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
}

.read-step:hover,
.read-step:focus-visible {
  border-color: rgba(148, 169, 255, 0.72);
  box-shadow: 0 0 20px rgba(91, 118, 255, 0.25);
  outline: 0;
}

.read-step strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(222, 229, 255, 0.4);
  border-radius: 50%;
  color: white;
  font-size: 18px;
}

.read-step .step-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.2;
}

.read-step small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.book-step {
  width: 34px;
  height: 28px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(4, 8, 20, 0.35) 47% 53%, transparent 54%),
    linear-gradient(90deg, #dbe6ff 0 46%, #ffffff 47% 100%);
  clip-path: polygon(7% 12%, 45% 4%, 50% 14%, 55% 4%, 93% 12%, 93% 88%, 55% 80%, 50% 90%, 45% 80%, 7% 88%);
}

.lock-dot {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(220, 226, 255, 0.42);
  border-radius: 50%;
}

.lock-dot::before {
  width: 12px;
  height: 11px;
  border-radius: 2px;
  background: rgba(218, 226, 255, 0.72);
  box-shadow: 0 -7px 0 -3px rgba(218, 226, 255, 0.72);
  content: "";
}

.step-connector {
  color: rgba(159, 137, 255, 0.74);
  font-size: 34px;
  text-align: center;
}

.unlock-note {
  margin: 8px 0 8px;
  color: rgba(220, 226, 255, 0.58);
  text-align: center;
  font-size: 14px;
}

.reading-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(420px, 0.96fr);
  gap: 16px;
  margin-top: 8px;
}

.story-reading-card,
.vocabulary-panel,
.locked-next-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%),
    rgba(7, 15, 36, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.story-reading-card {
  position: relative;
  min-height: 456px;
  padding: 22px 28px 20px;
  overflow: hidden;
}

.section-title-row h2,
.quick-check-card h3,
.locked-heading h2 {
  margin: 0;
  color: white;
  font-size: 19px;
}

.section-title-row h2 span,
.quick-check-card h3 span,
.locked-heading h2 span {
  margin-left: 8px;
  color: rgba(230, 235, 255, 0.7);
  font-size: 16px;
}

.story-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.story-title-row h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: white;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
}

.story-body {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}

.story-body p {
  margin: 0 0 5px;
}

.story-body mark {
  padding: 1px 7px 3px;
  border-radius: 4px;
  color: #fff6da;
  background: linear-gradient(180deg, rgba(159, 109, 35, 0.95), rgba(117, 76, 28, 0.88));
  box-shadow: 0 0 10px rgba(255, 183, 87, 0.22);
}

.inline-word {
  display: inline;
  padding: 1px 7px 3px;
  border: 0;
  border-radius: 4px;
  color: #fff6da;
  background: linear-gradient(180deg, rgba(159, 109, 35, 0.95), rgba(117, 76, 28, 0.88));
  box-shadow: 0 0 10px rgba(255, 183, 87, 0.22);
  cursor: pointer;
  font: inherit;
}

.inline-word:hover,
.inline-word.selected,
.inline-word:focus-visible {
  color: white;
  outline: 1px solid rgba(255, 226, 158, 0.78);
  box-shadow: 0 0 18px rgba(255, 191, 94, 0.38);
}

.word-popover {
  position: absolute;
  right: 26px;
  top: 178px;
  display: grid;
  gap: 4px;
  width: 178px;
  padding: 12px;
  border: 1px solid rgba(142, 158, 210, 0.25);
  border-radius: 8px;
  background: rgba(14, 20, 47, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.word-popover button {
  min-height: 31px;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.read-audio-bar {
  display: grid;
  grid-template-columns: 142px 82px 96px 1fr 44px;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(139, 154, 207, 0.16);
  border-radius: 8px;
  background: rgba(4, 10, 27, 0.42);
  color: rgba(238, 242, 255, 0.86);
}

.read-audio-bar button,
.read-audio-bar span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 171, 232, 0.18);
  border-radius: 8px;
  color: white;
  background: rgba(33, 44, 88, 0.54);
}

.read-audio-bar button.is-reading {
  border-color: rgba(255, 211, 121, 0.66);
  color: #061022;
  background: linear-gradient(135deg, #ffe19b, #ffb95c);
  box-shadow: 0 0 22px rgba(255, 204, 108, 0.26);
}

.audio-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(107, 123, 182, 0.26);
}

.audio-track span {
  display: block;
  width: 42%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: linear-gradient(90deg, var(--blue), #d7dfff);
}

.reading-recording-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(139, 154, 207, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(139, 105, 255, 0.14), transparent 13rem),
    rgba(4, 10, 27, 0.46);
}

.recording-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.recording-header small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.recording-header h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 18px;
}

.recording-header span {
  max-width: 220px;
  color: rgba(229, 235, 255, 0.7);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.recording-control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.recording-control-grid button {
  min-height: 38px;
  border: 1px solid rgba(151, 176, 255, 0.26);
  border-radius: 8px;
  color: #fff;
  background: rgba(30, 53, 112, 0.82);
  font-weight: 850;
  cursor: pointer;
}

.recording-control-grid button:first-child {
  background: linear-gradient(135deg, rgba(47, 115, 255, 0.95), rgba(129, 83, 238, 0.92));
}

.recording-control-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.recording-playback {
  width: 100%;
}

.recording-feedback-card,
.recording-history-card {
  padding: 11px 12px;
  border: 1px solid rgba(171, 189, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 18, 44, 0.48);
}

.recording-feedback-card strong,
.recording-history h4,
.recording-history-card strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.recording-feedback-card p,
.recording-history-card p {
  margin: 0;
  color: rgba(229, 235, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.recording-history-list {
  display: grid;
  gap: 8px;
}

.recording-history-card audio {
  width: 100%;
  margin-top: 8px;
}

.reading-recording-panel.is-recording {
  border-color: rgba(255, 211, 121, 0.54);
  box-shadow: 0 0 28px rgba(255, 204, 108, 0.14);
}

.vocabulary-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.vocab-check-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.visual-read-page .vocab-card,
.quick-check-card {
  position: static;
  width: auto;
  min-height: 0;
  inset: auto;
  border: 1px solid rgba(142, 158, 210, 0.22);
  border-radius: 8px;
  background: rgba(9, 17, 42, 0.72);
  padding: 18px;
  box-shadow: none;
}

.visual-vocab-image-card {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(196, 202, 246, 0.28);
  border-radius: 8px;
  background: rgba(7, 12, 30, 0.72);
  cursor: pointer;
  box-shadow: 0 0 22px rgba(132, 89, 255, 0.22);
}

.visual-vocab-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.vocab-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.vocab-card-actions span {
  color: white;
  font-size: 17px;
  font-weight: 900;
}

.vocab-card-actions .gold-action {
  width: auto;
  min-width: 154px;
  margin: 0;
}

.quick-check-visual {
  position: relative;
  height: 178px;
  margin-top: 14px;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(196, 202, 246, 0.32);
  border-radius: 8px;
  background: rgba(10, 16, 39, 0.68);
  cursor: pointer;
  text-align: left;
}

.quick-check-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-check-visual span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(207, 196, 255, 0.5);
  border-radius: 999px;
  color: white;
  background: rgba(8, 12, 29, 0.72);
  box-shadow: 0 0 18px rgba(143, 108, 255, 0.32);
  font-weight: 800;
}

.gold-action {
  display: flex;
  min-height: 38px;
  width: 220px;
  margin: 14px 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #30240d;
  background: linear-gradient(180deg, #ffe59f, #f0af4f);
  box-shadow: 0 8px 22px rgba(236, 169, 73, 0.28);
  font-weight: 800;
}

.quick-check-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.quick-check-row p {
  margin: 0 0 9px;
  color: rgba(237, 241, 255, 0.88);
}

.quick-check-row input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(151, 166, 225, 0.28);
  border-radius: 8px;
  color: white;
  background: rgba(23, 31, 68, 0.66);
  padding: 0 16px;
  font: inherit;
}

.quick-check-row button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(197, 205, 255, 0.34);
  border-radius: 50%;
  color: white;
  background: rgba(61, 79, 151, 0.44);
}

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

.locked-next-panel {
  position: relative;
  margin-top: 16px;
  padding: 18px 22px 18px;
  overflow: hidden;
}

.locked-next-panel::after {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background:
    linear-gradient(90deg, rgba(7, 15, 36, 0), rgba(7, 15, 36, 0.38) 25%, rgba(7, 15, 36, 0.86)),
    url("assets/movie-scene.png") center / cover no-repeat;
  opacity: 0.62;
  content: "";
}

.locked-heading {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.locked-heading p {
  margin: 7px 0 0;
  color: rgba(229, 234, 255, 0.7);
}

.locked-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 12px 64px;
}

.locked-card-grid article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(151, 166, 225, 0.22);
  border-radius: 8px;
  background: rgba(14, 22, 50, 0.74);
  color: rgba(255, 255, 255, 0.58);
}

.locked-card-grid .interactive-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(151, 166, 225, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(14, 22, 50, 0.74);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.locked-card-grid .interactive-card:hover,
.locked-card-grid .interactive-card:focus-visible {
  border-color: rgba(160, 138, 255, 0.72);
  background: rgba(31, 36, 86, 0.78);
  box-shadow: 0 0 24px rgba(120, 90, 255, 0.25);
  outline: 0;
}

.locked-card-grid h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.locked-card-grid p {
  margin: 10px 0 12px;
  font-size: 13px;
  line-height: 1.45;
}

.locked-card-grid span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 6px;
  color: #bcecc4;
  background: rgba(78, 170, 112, 0.28);
  font-size: 11px;
  font-weight: 800;
}

.locked-card-grid article:nth-child(2) span {
  color: #d4bdff;
  background: rgba(128, 84, 238, 0.26);
}

.locked-card-grid article:nth-child(3) span {
  color: #aad5ff;
  background: rgba(69, 137, 226, 0.26);
}

.locked-card-grid article:nth-child(4) span {
  color: #ffd88d;
  background: rgba(218, 153, 56, 0.24);
}

.locked-card-grid .interactive-card:nth-child(2) span {
  color: #d4bdff;
  background: rgba(128, 84, 238, 0.26);
}

.locked-card-grid .interactive-card:nth-child(3) span {
  color: #aad5ff;
  background: rgba(69, 137, 226, 0.26);
}

.locked-card-grid .interactive-card:nth-child(4) span {
  color: #ffd88d;
  background: rgba(218, 153, 56, 0.24);
}

.imitation-flow-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.76fr) minmax(220px, 0.88fr) minmax(280px, 1.15fr) minmax(300px, 1.16fr);
  gap: 14px;
  margin: 18px 0 12px 64px;
}

.imitation-stage-card {
  min-height: 168px;
  padding: 16px;
  border: 1px solid rgba(151, 176, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 34, 76, 0.78), rgba(8, 15, 38, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.imitation-stage-card small {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.imitation-stage-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
}

.imitation-stage-card p,
.imitation-stage-card blockquote,
.imitation-stage-card label span {
  margin: 0;
  color: rgba(229, 235, 255, 0.74);
  line-height: 1.5;
}

.imitation-stage-card blockquote {
  padding: 12px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: rgba(255, 215, 128, 0.1);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.imitation-card {
  display: grid;
  gap: 9px;
}

.imitation-card label {
  display: grid;
  gap: 6px;
}

.imitation-card textarea {
  width: 100%;
  min-height: 82px;
  border: 1px solid rgba(151, 166, 225, 0.28);
  border-radius: 8px;
  color: white;
  background: rgba(5, 12, 31, 0.62);
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}

.fill-pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.fill-pattern-grid input {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(155, 176, 240, 0.28);
  border-radius: 8px;
  color: white;
  background: rgba(4, 10, 27, 0.5);
  font: inherit;
  outline: 0;
}

.word-choice-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.word-choice-bank span {
  align-self: center;
  color: #ffd995;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.word-choice-bank button {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(174, 151, 255, 0.36);
  border-radius: 999px;
  color: #efe8ff;
  background: rgba(91, 68, 165, 0.35);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.voice-imitation-panel {
  display: grid;
  grid-template-columns: minmax(120px, 0.46fr) 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(113, 151, 255, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(80, 132, 255, 0.2), transparent 7rem),
    rgba(5, 12, 30, 0.5);
}

.hold-speak-button {
  min-height: 44px;
  border: 1px solid rgba(255, 216, 145, 0.45);
  border-radius: 999px;
  color: #1b1430;
  background: linear-gradient(135deg, #ffe2a1, #f2aef8);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 203, 124, 0.22);
}

.voice-imitation-panel span {
  color: rgba(232, 238, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.voice-imitation-panel.is-listening .hold-speak-button {
  color: white;
  background: linear-gradient(135deg, #79b8ff, #8f5cff);
}

.transcript-review-card {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(151, 176, 255, 0.24);
  border-radius: 8px;
  background: rgba(4, 10, 27, 0.5);
}

.transcript-review-card p {
  color: #fff;
  font-weight: 800;
}

.transcript-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.transcript-action-row button {
  min-height: 34px;
  border: 1px solid rgba(151, 176, 255, 0.3);
  border-radius: 8px;
  color: white;
  background: rgba(30, 53, 112, 0.74);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.imitation-action-row,
.imitation-output-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.imitation-action-row button,
.imitation-output-options button {
  min-height: 38px;
  border: 1px solid rgba(151, 176, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  background: rgba(30, 53, 112, 0.82);
  font-weight: 850;
  cursor: pointer;
}

.imitation-output-options button:first-child {
  background: linear-gradient(135deg, rgba(47, 115, 255, 0.95), rgba(129, 83, 238, 0.92));
}

.imitation-output-options button:last-child {
  background: linear-gradient(135deg, rgba(117, 77, 210, 0.92), rgba(229, 116, 213, 0.74));
}

.make-video-button[disabled] {
  cursor: not-allowed;
  opacity: 0.46;
  filter: grayscale(0.35);
}

.make-video-button.is-ready {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 18px rgba(228, 126, 255, 0.32);
}

.tutor-checklist {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(142, 230, 126, 0.22);
  border-radius: 8px;
  background: rgba(21, 55, 48, 0.32);
}

.tutor-checklist strong {
  color: #fff;
  font-size: 13px;
}

.tutor-checklist ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tutor-checklist li {
  padding: 6px 8px;
  border: 1px solid rgba(151, 176, 255, 0.2);
  border-radius: 999px;
  color: rgba(226, 233, 255, 0.7);
  background: rgba(8, 15, 36, 0.45);
  font-size: 11px;
  font-weight: 850;
}

.tutor-checklist li::before {
  content: "○ ";
}

.tutor-checklist li.is-ready {
  border-color: rgba(142, 230, 126, 0.46);
  color: #dfffd9;
  background: rgba(72, 160, 91, 0.2);
}

.tutor-checklist li.is-ready::before {
  content: "✓ ";
}

.imitation-feedback {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(142, 230, 126, 0.26);
  border-radius: 8px;
  background: rgba(52, 112, 70, 0.14);
}

.imitation-preview-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(171, 189, 255, 0.26);
  border-radius: 8px;
  background: rgba(4, 10, 27, 0.48);
}

.imitation-preview-card img {
  width: 96px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.imitation-preview-card strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.imitation-preview-card p {
  font-size: 12px;
}

.visual-drafts-shelf {
  position: relative;
  z-index: 1;
  margin: 14px 0 12px 64px;
  padding: 14px;
  border: 1px solid rgba(151, 176, 255, 0.26);
  border-radius: 8px;
  background: rgba(4, 10, 27, 0.42);
}

.visual-drafts-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.56fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.visual-drafts-heading small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-drafts-heading h3 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 18px;
}

.visual-drafts-heading p,
.visual-drafts-empty {
  margin: 0;
  color: rgba(229, 235, 255, 0.68);
  line-height: 1.5;
}

.visual-drafts-list {
  display: grid;
  gap: 10px;
}

.visual-draft-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 164px;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(171, 189, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 34, 76, 0.72), rgba(8, 15, 38, 0.82));
}

.visual-draft-card img {
  width: 112px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
}

.visual-draft-card h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 15px;
}

.visual-draft-card p {
  margin: 0;
  color: rgba(229, 235, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.visual-draft-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.visual-draft-evidence span {
  padding: 4px 7px;
  border: 1px solid rgba(151, 176, 255, 0.22);
  border-radius: 999px;
  color: rgba(238, 242, 255, 0.82);
  background: rgba(42, 62, 128, 0.36);
  font-size: 11px;
}

.draft-action-row {
  display: grid;
  gap: 7px;
  align-content: center;
}

.draft-action-row button {
  min-height: 32px;
  border: 1px solid rgba(151, 176, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(30, 53, 112, 0.82);
  font-weight: 850;
  cursor: pointer;
}

.draft-action-row button:first-child {
  background: linear-gradient(135deg, rgba(47, 115, 255, 0.95), rgba(129, 83, 238, 0.92));
}

.draft-action-row button:last-child {
  color: rgba(255, 220, 225, 0.92);
  background: rgba(74, 26, 48, 0.56);
}

.visual-drafts-empty {
  padding: 10px;
  border: 1px dashed rgba(151, 176, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 18, 44, 0.34);
}

.visual-drafts-shelf.has-drafts .visual-drafts-empty {
  display: none;
}

.story-style-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(221, 228, 255, 0.6);
  font-size: 13px;
}

.teacher-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 22px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 20%, rgba(103, 93, 255, 0.18), transparent 18rem),
    rgba(7, 15, 36, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.upload-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(152, 174, 255, 0.28);
  border-radius: 999px;
  color: #bdc9ff;
  background: rgba(35, 45, 90, 0.42);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.teacher-upload-panel h2 {
  margin: 0;
  color: white;
  font-size: 24px;
}

.teacher-upload-panel p {
  margin: 10px 0 0;
  color: rgba(225, 231, 255, 0.72);
  line-height: 1.55;
}

.teacher-upload-form {
  display: grid;
  gap: 12px;
}

.teacher-upload-form label {
  display: grid;
  gap: 7px;
  color: rgba(239, 243, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.teacher-upload-form input,
.teacher-upload-form textarea {
  width: 100%;
  border: 1px solid rgba(151, 166, 225, 0.28);
  border-radius: 8px;
  color: white;
  background: rgba(16, 24, 56, 0.78);
  padding: 12px 14px;
  font: inherit;
}

.teacher-upload-form textarea {
  resize: vertical;
}

.teacher-upload-form button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(80, 92, 236, 0.3);
}

.ccss-upload-builder {
  grid-template-columns: 1fr 0.72fr;
  align-items: start;
}

.ccss-upload-builder .upload-passage-field,
.ccss-upload-builder .upload-action-row,
.ccss-upload-builder .ccss-match-output {
  grid-column: 1 / -1;
}

.upload-grade-select select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(151, 166, 225, 0.28);
  border-radius: 8px;
  color: white;
  background: rgba(16, 24, 56, 0.78);
  padding: 0 12px;
  font: inherit;
}

.upload-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ccss-match-output {
  padding: 14px;
  border: 1px solid rgba(151, 176, 255, 0.26);
  border-radius: 8px;
  background: rgba(5, 12, 31, 0.56);
}

.ccss-match-output h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}

.matched-skill-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(157, 181, 255, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(35, 61, 128, 0.62), rgba(8, 17, 43, 0.72));
}

.matched-skill-card + .matched-skill-card {
  margin-top: 8px;
}

.matched-skill-card strong {
  color: white;
  font-size: 14px;
}

.matched-skill-card p,
.matched-skill-card small {
  margin: 0;
  color: rgba(226, 234, 255, 0.72);
  line-height: 1.45;
}

.matched-skill-card small {
  color: var(--gold);
  font-weight: 850;
}

.lobster-tutor-bubble {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 10;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(182, 153, 255, 0.82);
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 45% 20%, rgba(255, 255, 255, 0.16), rgba(38, 20, 104, 0.76));
  box-shadow: 0 0 32px rgba(136, 95, 255, 0.48);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
}

.lobster-tutor-bubble img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.lobster-tutor-bubble span {
  margin-top: -7px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.read-modal[hidden],
.toast-message[hidden] {
  display: none;
}

.read-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.read-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 19, 0.72);
  backdrop-filter: blur(10px);
}

.read-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  padding: 28px;
  border: 1px solid rgba(170, 151, 255, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(88, 112, 255, 0.28), transparent 15rem),
    rgba(9, 15, 38, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 36px rgba(115, 88, 255, 0.28);
}

.read-modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 221, 255, 0.22);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-chip {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(181, 196, 255, 0.28);
  border-radius: 999px;
  color: #cfd8ff;
  background: rgba(63, 75, 143, 0.3);
  font-size: 12px;
  font-weight: 900;
}

.read-modal-card h2 {
  margin: 16px 0 8px;
  color: white;
  font-size: 26px;
}

.read-modal-card p {
  margin: 0;
  color: rgba(231, 236, 255, 0.78);
  line-height: 1.6;
}

.toast-message {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 40;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(173, 190, 255, 0.34);
  border-radius: 8px;
  color: white;
  background: rgba(13, 20, 48, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  font-weight: 800;
}

.read-page-footer {
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 24px 0 0;
  color: rgba(230, 235, 255, 0.72);
  font-size: 15px;
}

.visual-write-page {
  width: min(96vw, 1760px);
  padding-bottom: 34px;
}

.write-header-actions {
  gap: 12px;
}

.write-grade-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(177, 190, 255, 0.34);
  border-radius: 8px;
  background: rgba(4, 9, 24, 0.72);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.write-grade-select span {
  font-size: 13px;
  color: rgba(238, 242, 255, 0.8);
  white-space: nowrap;
}

.write-grade-select select {
  min-width: 132px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
}

.teacher-only,
[data-mode-scope="teacher"] {
  display: none !important;
}

body[data-identity-mode="teacher"] .teacher-only,
body[data-identity-mode="teacher"] [data-mode-scope="teacher"] {
  display: inline-flex !important;
}

body[data-identity-mode="teacher"] .teacher-only.dashboard-card,
body[data-identity-mode="teacher"] [data-mode-scope="teacher"].dashboard-card {
  display: block !important;
}

body[data-identity-mode="teacher"] .student-only {
  display: none !important;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(174, 190, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.mode-toggle {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: rgba(237, 242, 255, 0.72);
  background: rgba(214, 222, 255, 0.12);
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.mode-toggle.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(47, 115, 255, 0.96), rgba(129, 83, 238, 0.95));
  box-shadow: 0 0 20px rgba(83, 140, 255, 0.45);
}

.teacher-upload-shortcut {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(147, 184, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(30, 91, 220, 0.95), rgba(65, 116, 255, 0.86));
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(42, 89, 218, 0.22);
}

.user-avatar-menu {
  position: relative;
}

.user-avatar-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(187, 203, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.user-avatar-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: none;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(166, 184, 255, 0.38);
  border-radius: 8px;
  background: rgba(8, 15, 36, 0.96);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.48);
}

.user-avatar-menu.is-open .user-menu-popover,
.user-avatar-menu:focus-within .user-menu-popover {
  display: grid;
  gap: 6px;
}

.user-menu-popover a,
.user-menu-popover button {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.user-menu-popover a:hover,
.user-menu-popover button:hover,
.teacher-menu-entry {
  border-color: rgba(117, 168, 255, 0.42);
  background: rgba(50, 96, 213, 0.38);
}

.write-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(380px, 660px);
  align-items: center;
  min-height: 150px;
  margin-top: 14px;
  padding: 18px 8px 18px 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(117, 151, 255, 0.2);
}

.write-hero::before {
  position: absolute;
  inset: -140px 120px -40px auto;
  width: 620px;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 54% 45%, rgba(75, 154, 255, 0.3), transparent 9rem),
    conic-gradient(from 30deg, transparent, rgba(138, 113, 255, 0.34), transparent, rgba(255, 199, 104, 0.22), transparent);
  filter: blur(1px);
  opacity: 0.75;
  transform: rotate(-8deg);
}

.write-hero-copy {
  position: relative;
  z-index: 1;
}

.write-eyebrow {
  width: 52px;
  height: 38px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 218, 133, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.8) 46% 54%, transparent 55%),
    linear-gradient(135deg, rgba(37, 78, 168, 0.85), rgba(77, 55, 145, 0.9));
  box-shadow: 0 0 22px rgba(104, 133, 255, 0.38);
}

.write-hero h1 {
  margin: 0;
  font-size: clamp(32px, 3vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.write-hero p {
  max-width: 760px;
  margin: 12px 0 16px;
  color: rgba(235, 239, 255, 0.82);
  font-size: 17px;
}

.write-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.write-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(139, 167, 255, 0.32);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(6, 14, 34, 0.76);
  font-weight: 750;
}

.write-hero-art {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 620px);
  height: 190px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 86%, transparent 100%);
}

.write-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.write-magic-swirl {
  position: absolute;
  right: 20%;
  top: 40%;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(156, 191, 255, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 16px rgba(87, 145, 255, 0.05),
    0 0 42px rgba(108, 152, 255, 0.42),
    inset 0 0 34px rgba(255, 224, 155, 0.18);
}

.write-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(480px, 1.45fr) minmax(330px, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.free-create-studio {
  grid-template-columns: minmax(520px, 1.12fr) minmax(420px, 0.88fr);
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(154, 176, 255, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(70, 121, 255, 0.22), transparent 20rem),
    radial-gradient(circle at 92% 6%, rgba(142, 82, 255, 0.16), transparent 18rem),
    rgba(5, 10, 24, 0.42);
  box-shadow: var(--shadow);
}

.studio-window {
  position: relative;
  overflow: hidden;
}

.studio-window::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at 18% 0%, rgba(118, 156, 255, 0.14), transparent 14rem);
  pointer-events: none;
  content: "";
}

.studio-window > * {
  position: relative;
  z-index: 1;
}

.writing-window {
  background:
    linear-gradient(180deg, rgba(15, 36, 82, 0.9), rgba(5, 12, 31, 0.88)),
    rgba(5, 10, 24, 0.74);
}

.visual-output-window {
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 215, 126, 0.16), transparent 14rem),
    linear-gradient(180deg, rgba(34, 24, 76, 0.9), rgba(5, 11, 29, 0.88)),
    rgba(5, 10, 24, 0.74);
}

.free-create-header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 8px;
}

.free-create-header span {
  color: #ffd991;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.free-create-header h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 28px;
}

.free-create-header p {
  margin: 4px 0 0;
  color: rgba(231, 237, 255, 0.72);
}

.open-claw-inline {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 214, 126, 0.48);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(41, 105, 255, 0.92), rgba(133, 72, 232, 0.9));
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(80, 88, 221, 0.24);
}

.free-create-studio > .write-skills-panel {
  display: none;
}

.free-create-studio > .writing-window {
  grid-column: 1 / -1;
  order: 1;
}

.free-create-studio > .visual-output-window {
  order: 2;
}

.writing-window .visual-output-window {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(300px, 1fr);
  gap: 12px;
  min-height: auto;
  margin: 14px 0 12px;
  padding: 14px;
}

.writing-window .visual-output-window .write-panel-title,
.writing-window .visual-output-window .output-primary-actions {
  grid-column: 1;
}

.writing-window .visual-output-window .art-style-grid {
  grid-column: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.writing-window .visual-output-window .illustration-preview {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.writing-window .visual-output-window .movie-preview,
.writing-window .visual-output-window .media-strip {
  grid-column: 2;
}

.output-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.output-primary-actions button {
  display: grid;
  min-height: 104px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(168, 191, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 223, 142, 0.18), transparent 7rem),
    linear-gradient(180deg, rgba(68, 91, 186, 0.92), rgba(22, 35, 91, 0.9));
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(35, 59, 151, 0.22);
}

.output-primary-actions button:hover,
.output-primary-actions button:focus-visible {
  border-color: rgba(255, 219, 137, 0.78);
  filter: brightness(1.08);
}

.output-primary-actions strong,
.output-primary-actions small {
  text-align: center;
  line-height: 1.2;
}

.output-primary-actions small {
  color: rgba(232, 238, 255, 0.74);
}

.media-output-panel .write-action-toolbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.ccss-diagnostic-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 210, 121, 0.14), transparent 16rem),
    linear-gradient(180deg, rgba(15, 29, 64, 0.86), rgba(5, 11, 29, 0.86));
  box-shadow: var(--shadow);
}

.diagnostic-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(151, 176, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 17, 43, 0.62);
}

.diagnostic-summary strong {
  color: #fff;
}

.diagnostic-summary p {
  margin: 0;
  color: rgba(232, 238, 255, 0.72);
}

.ccss-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ccss-diagnostic-card {
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 12px;
  border: 1px solid rgba(151, 176, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 20, 49, 0.74);
}

.ccss-diagnostic-card span {
  color: rgba(238, 243, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.ccss-diagnostic-card strong {
  color: #fff;
  font-size: 17px;
}

.ccss-diagnostic-card p {
  margin: 0;
  color: rgba(228, 235, 255, 0.68);
  font-size: 12px;
  line-height: 1.38;
}

.ccss-diagnostic-card.strong {
  border-color: rgba(114, 223, 143, 0.45);
  background: linear-gradient(180deg, rgba(32, 89, 60, 0.58), rgba(9, 20, 37, 0.82));
}

.ccss-diagnostic-card.needs-work {
  border-color: rgba(255, 215, 126, 0.42);
  background: linear-gradient(180deg, rgba(106, 78, 29, 0.54), rgba(9, 20, 37, 0.82));
}

.ccss-diagnostic-card.missing {
  border-color: rgba(255, 126, 154, 0.42);
  background: linear-gradient(180deg, rgba(93, 38, 60, 0.54), rgba(9, 20, 37, 0.82));
}

.open-claw-feedback {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.open-claw-feedback > div {
  padding: 12px;
  border: 1px solid rgba(151, 176, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 17, 43, 0.62);
}

.open-claw-feedback span {
  color: #ffd991;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.open-claw-feedback p {
  margin: 6px 0 0;
  color: rgba(238, 243, 255, 0.78);
  line-height: 1.45;
}

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

.feedback-actions button {
  min-width: 148px;
  border: 1px solid rgba(151, 176, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  background: rgba(32, 64, 145, 0.82);
  cursor: pointer;
  font-weight: 850;
}

.api-contract-card {
  padding: 14px;
  border: 1px dashed rgba(151, 176, 255, 0.34);
  border-radius: 8px;
  background: rgba(5, 12, 31, 0.52);
}

.api-contract-card strong {
  color: #fff;
}

.api-contract-card p {
  color: rgba(225, 233, 255, 0.72);
  line-height: 1.5;
}

.api-contract-card code {
  display: block;
  overflow-wrap: anywhere;
  color: #bcd0ff;
}

.write-skills-panel,
.story-draft-panel,
.art-direction-panel,
.video-editor-panel,
.write-progress-panel {
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 29, 64, 0.84), rgba(5, 11, 29, 0.84)),
    rgba(5, 10, 24, 0.7);
  box-shadow: var(--shadow);
}

.write-skills-panel,
.story-draft-panel,
.art-direction-panel {
  min-height: 640px;
  padding: 14px;
}

.write-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.write-panel-title span {
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.write-panel-title strong,
.write-panel-title small {
  color: rgba(219, 228, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.write-panel-title i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

.write-skill-list {
  display: grid;
  gap: 9px;
}

.write-skill-card {
  display: grid;
  grid-template-columns: 36px 1fr 22px;
  align-items: start;
  gap: 10px;
  width: 100%;
  min-height: 108px;
  padding: 11px 12px;
  border: 1px solid rgba(147, 166, 235, 0.28);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(32, 55, 116, 0.82), rgba(8, 17, 43, 0.76));
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.write-skill-card:hover,
.write-skill-card:focus-visible,
.write-skill-card.active {
  transform: translateY(-1px);
  border-color: rgba(160, 133, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(71, 136, 255, 0.16), 0 14px 34px rgba(37, 83, 196, 0.18);
}

.skill-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b6dff, #4d83ff);
  font-weight: 900;
}

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

.skill-copy strong {
  font-size: 15px;
}

.skill-copy em {
  color: rgba(218, 190, 255, 0.86);
  font-style: normal;
  font-weight: 700;
}

.skill-copy small,
.skill-copy span,
.skill-copy b,
.standards-footnote {
  color: rgba(222, 229, 255, 0.74);
  font-size: 11px;
  line-height: 1.3;
}

.skill-copy b {
  color: rgba(187, 221, 255, 0.94);
  font-weight: 760;
}

.skill-check {
  color: rgba(207, 232, 255, 0.9);
}

.standards-footnote {
  margin: 12px 0 0;
}

.draft-editor-shell {
  position: relative;
  display: block;
}

.draft-editor-shell textarea {
  display: block;
  width: 100%;
  min-height: 468px;
  padding: 18px;
  border: 1px solid rgba(133, 156, 221, 0.28);
  border-radius: 8px;
  outline: none;
  color: rgba(250, 252, 255, 0.93);
  background: rgba(2, 8, 24, 0.58);
  font: 16px/1.68 Georgia, "Times New Roman", serif;
  resize: vertical;
}

.draft-editor-shell textarea:focus {
  border-color: rgba(119, 166, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(67, 124, 255, 0.18);
}

.draft-count {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(235, 240, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.draft-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.draft-tools button,
.video-edit-controls button {
  min-height: 38px;
  border: 1px solid rgba(145, 170, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 28, 60, 0.82);
  font-weight: 800;
  cursor: pointer;
}

.draft-tools button.is-active {
  border-color: rgba(255, 217, 145, 0.7);
  background: linear-gradient(135deg, rgba(42, 99, 235, 0.9), rgba(126, 65, 221, 0.86));
  box-shadow: 0 0 0 2px rgba(87, 145, 255, 0.18);
}

.input-status-panel {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(145, 170, 255, 0.24);
  border-radius: 8px;
  color: rgba(229, 236, 255, 0.78);
  background: rgba(7, 15, 38, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.input-status-panel audio {
  width: 100%;
  max-height: 42px;
}

.ivy-report-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 217, 145, 0.12), transparent 15rem),
    linear-gradient(180deg, rgba(14, 29, 66, 0.86), rgba(5, 11, 29, 0.86));
}

.ivy-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 12px;
}

.ivy-prompt-box,
.ivy-avatar-selector {
  display: grid;
  gap: 6px;
  color: rgba(231, 237, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.ivy-prompt-box textarea,
.ivy-avatar-selector select {
  border: 1px solid rgba(145, 170, 255, 0.28);
  border-radius: 8px;
  outline: none;
  color: #fff;
  background: rgba(4, 11, 31, 0.72);
  font: inherit;
}

.ivy-prompt-box textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.ivy-avatar-selector select {
  min-height: 42px;
  padding: 0 12px;
}

.ivy-report-controls {
  display: grid;
  align-content: start;
  gap: 10px;
}

.ivy-report-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ivy-report-actions button {
  min-height: 40px;
  border: 1px solid rgba(154, 176, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(44, 104, 244, 0.86), rgba(132, 67, 231, 0.86));
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

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

.ivy-report-output article,
.ivy-video-script {
  padding: 12px;
  border: 1px solid rgba(145, 170, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 15, 38, 0.58);
}

.ivy-report-output strong,
.ivy-video-script strong {
  color: #ffd991;
}

.ivy-report-output p,
.ivy-video-script p {
  margin: 6px 0 0;
  color: rgba(226, 234, 255, 0.74);
  line-height: 1.45;
}

.ivy-video-script {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 10px;
}

.ivy-video-script pre {
  margin: 0;
  color: rgba(250, 252, 255, 0.86);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.write-action-toolbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(126, 154, 238, 0.25);
  border-radius: 8px;
  background: rgba(7, 14, 36, 0.62);
}

.write-action-toolbar button {
  display: grid;
  min-height: 116px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(158, 178, 255, 0.26);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, rgba(37, 60, 123, 0.78), rgba(12, 21, 52, 0.86));
  cursor: pointer;
}

.write-action-toolbar button:hover,
.draft-tools button:hover,
.video-edit-controls button:hover {
  border-color: rgba(255, 209, 118, 0.64);
  filter: brightness(1.06);
}

.action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(93, 137, 255, 0.24);
}

.action-icon::before {
  font-size: 24px;
}

.image-action::before { content: "▧"; }
.movie-action::before { content: "▣"; }
.group-action::before { content: "◇"; color: var(--teal); }
.palette-action::before { content: "●"; color: var(--gold); }
.save-action::before { content: "▤"; }
.poster-action::before { content: "★"; color: var(--gold); }
.clear-action::before { content: "⌫"; }

.write-action-toolbar strong,
.write-action-toolbar small {
  text-align: center;
  line-height: 1.2;
}

.write-action-toolbar small {
  color: rgba(222, 229, 255, 0.7);
}

.art-style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.art-style-card {
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(158, 178, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 16, 40, 0.76);
  cursor: pointer;
}

.art-style-card.active {
  border-color: rgba(71, 191, 255, 0.9);
  background: linear-gradient(180deg, rgba(49, 105, 216, 0.86), rgba(18, 39, 91, 0.88));
  box-shadow: 0 0 0 2px rgba(66, 191, 255, 0.18);
}

.art-style-card img {
  width: 100%;
  aspect-ratio: 1.2;
  border-radius: 6px;
  object-fit: cover;
}

.art-style-card span,
.art-style-card small {
  display: block;
  margin-top: 5px;
  text-align: center;
  line-height: 1.15;
}

.art-style-card small {
  color: rgba(229, 235, 255, 0.76);
  font-size: 10px;
}

.section-mini-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
  color: #fff;
  font-weight: 850;
}

.section-mini-title span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #759cff, #6f57e8);
}

.illustration-preview button,
.movie-preview button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(173, 190, 255, 0.38);
  border-radius: 8px;
  color: #fff;
  background: rgba(4, 9, 23, 0.8);
  cursor: pointer;
}

.illustration-preview img,
.movie-preview img {
  width: 100%;
  aspect-ratio: 16 / 7.7;
  object-fit: cover;
}

.illustration-preview span,
.movie-preview small {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(2, 8, 18, 0.72);
  font-size: 12px;
}

.image-generation-status {
  margin: 10px 0 0;
  color: rgba(226, 235, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.generated-image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.generated-image-actions button,
.generated-image-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(154, 176, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(44, 104, 244, 0.8), rgba(132, 67, 231, 0.82));
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.generated-image-actions button:disabled,
.generated-image-actions a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

.generated-image-actions a[aria-disabled="true"] {
  pointer-events: none;
}

.play-badge,
.video-play-indicator {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 13, 31, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.play-badge {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.media-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.media-thumbs button {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background: rgba(8, 16, 40, 0.72);
  cursor: pointer;
}

.media-thumbs img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.group-writing-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0, rgba(111, 242, 228, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(13, 23, 56, 0.86), rgba(5, 10, 28, 0.86));
  box-shadow: var(--shadow);
}

.group-writing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.group-writing-grid article {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(152, 177, 255, 0.26);
  border-radius: 8px;
  background: rgba(8, 16, 40, 0.68);
}

.group-writing-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 15px;
}

.group-writing-grid p {
  margin: 0;
  color: rgba(226, 234, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.video-editor-panel {
  margin-top: 14px;
  padding: 16px;
}

.video-editor-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(300px, 0.7fr) minmax(520px, 1.4fr);
  gap: 14px;
  align-items: stretch;
}

.video-preview-screen {
  position: relative;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(166, 184, 255, 0.38);
  border-radius: 8px;
  background: #071022;
  cursor: pointer;
}

.video-preview-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview-screen small {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(3, 8, 20, 0.76);
  font-weight: 800;
}

.video-play-indicator {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.video-edit-controls {
  display: grid;
  gap: 10px;
}

.video-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(147, 166, 235, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 22px),
    rgba(3, 8, 20, 0.54);
}

.timeline-clip {
  position: relative;
  min-height: 136px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 16, 40, 0.72);
  cursor: pointer;
}

.timeline-clip.active {
  border-color: rgba(255, 211, 121, 0.88);
  box-shadow: 0 0 0 2px rgba(255, 211, 121, 0.12);
}

.timeline-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-clip span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(3, 8, 20, 0.76);
  font-size: 12px;
  font-weight: 850;
}

.timeline-audio {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 28px;
}

.timeline-audio span {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 225, 139, 0.7), rgba(64, 144, 255, 0.64));
}

.write-progress-panel {
  display: grid;
  grid-template-columns: 220px 1fr auto auto;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 18px;
}

.write-progress-panel div:first-child {
  display: grid;
  gap: 4px;
}

.write-progress-panel span {
  color: rgba(235, 240, 255, 0.78);
}

.write-progress-panel strong {
  font-size: 28px;
}

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

.write-progress-track span {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.write-progress-panel p {
  margin: 0;
  color: var(--gold);
  font-size: 20px;
  font-weight: 850;
}

.write-progress-panel small {
  color: rgba(226, 233, 255, 0.72);
}

.write-lobster-tutor {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  padding: 8px;
  border: 2px solid rgba(255, 211, 121, 0.72);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 50% 35%, rgba(48, 119, 255, 0.9), rgba(24, 31, 85, 0.94));
  box-shadow: 0 0 32px rgba(93, 143, 255, 0.42);
  cursor: pointer;
}

.write-lobster-tutor img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.write-lobster-tutor span {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.write-modal[hidden],
.write-toast[hidden] {
  display: none;
}

.write-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.write-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 12, 0.72);
  backdrop-filter: blur(10px);
}

.write-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  margin: 18vh auto 0;
  padding: 26px;
  border: 1px solid rgba(179, 194, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 18, 43, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54);
}

.write-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.write-modal-card > span {
  color: var(--gold);
  font-weight: 850;
}

.write-modal-card h2 {
  margin: 10px 0 8px;
}

.write-modal-card p {
  margin: 0;
  color: rgba(235, 240, 255, 0.78);
  line-height: 1.6;
}

.teacher-prompt-modal .write-modal-card {
  width: min(660px, calc(100vw - 32px));
}

.teacher-prompt-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.teacher-prompt-options button {
  min-height: 48px;
  border: 1px solid rgba(151, 176, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 34, 78, 0.82);
  font-weight: 850;
  cursor: pointer;
}

.teacher-prompt-options button:hover {
  border-color: rgba(255, 211, 121, 0.68);
  filter: brightness(1.08);
}

.write-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 70;
  transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(173, 190, 255, 0.38);
  border-radius: 8px;
  color: #fff;
  background: rgba(13, 20, 48, 0.95);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  font-weight: 850;
}

.teacher-dashboard-page {
  width: min(96vw, 1560px);
  padding-bottom: 34px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 211, 121, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(16, 28, 65, 0.86), rgba(5, 11, 28, 0.88));
  box-shadow: var(--shadow);
}

.dashboard-hero span {
  color: var(--gold);
  font-weight: 900;
}

.dashboard-hero h1 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(232, 238, 255, 0.76);
  line-height: 1.6;
}

.dashboard-hero-card {
  padding: 18px;
  border: 1px solid rgba(148, 174, 255, 0.34);
  border-radius: 8px;
  background: rgba(6, 14, 36, 0.72);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.dashboard-card,
.dashboard-export-panel {
  padding: 18px;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 25, 60, 0.86), rgba(5, 11, 28, 0.86));
  box-shadow: var(--shadow);
}

.dashboard-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-weight: 900;
}

.dashboard-card h2,
.dashboard-export-panel h2 {
  margin: 0 0 8px;
}

.dashboard-card p,
.dashboard-export-panel p {
  margin: 0 0 14px;
  color: rgba(226, 234, 255, 0.74);
  line-height: 1.55;
}

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

.dashboard-actions button,
.dashboard-export-panel button {
  min-height: 40px;
  border: 1px solid rgba(151, 176, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 40, 96, 0.82);
  font-weight: 850;
  cursor: pointer;
}

.dashboard-meter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-meter strong {
  font-size: 54px;
  color: var(--gold);
}

.dashboard-meter small {
  color: rgba(226, 234, 255, 0.72);
}

.dashboard-skill-bars {
  display: grid;
  gap: 8px;
}

.dashboard-skill-bars i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-skill-bars i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--gold));
  content: "";
}

.dashboard-mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dashboard-mini-gallery img {
  width: 100%;
  aspect-ratio: 1.15;
  border-radius: 8px;
  object-fit: cover;
}

.teacher-workflow-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.teacher-workflow-panel article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(154, 176, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 25, 60, 0.76), rgba(5, 11, 28, 0.8));
  box-shadow: var(--shadow);
}

.teacher-workflow-panel span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-weight: 900;
}

.teacher-workflow-panel strong {
  color: #fff;
}

.teacher-workflow-panel p {
  margin: 0;
  color: rgba(226, 234, 255, 0.72);
  line-height: 1.45;
}

.dashboard-export-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .read-hero,
  .reading-workspace,
  .story-library-heading,
  .grade-selector,
  .teacher-upload-panel {
    grid-template-columns: 1fr;
  }

  .read-hero-art {
    display: none;
  }

  .read-progress {
    grid-template-columns: 1fr;
  }

  .step-connector {
    display: none;
  }

  .locked-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  .imitation-flow-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  .story-pack-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-drafts-shelf {
    margin-left: 0;
  }

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

@media (max-width: 700px) {
  .read-badges,
  .read-page-footer {
    flex-direction: column;
    align-items: stretch;
  }

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

  .story-title-row,
  .vocab-content,
  .vocab-check-grid,
  .quick-check-row {
    grid-template-columns: 1fr;
  }

  .story-title-row {
    display: grid;
  }

  .word-popover {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .read-audio-bar,
  .recording-control-grid,
  .locked-card-grid,
  .imitation-flow-panel,
  .story-pack-group-grid,
  .skill-card-grid {
    grid-template-columns: 1fr;
  }

  .recording-header {
    display: grid;
  }

  .recording-header span {
    max-width: none;
    text-align: left;
  }

  .imitation-action-row,
  .imitation-output-options,
  .fill-pattern-grid,
  .voice-imitation-panel,
  .transcript-action-row,
  .tutor-checklist ul,
  .imitation-preview-card {
    grid-template-columns: 1fr;
  }

  .visual-drafts-heading,
  .visual-draft-card {
    grid-template-columns: 1fr;
  }

  .visual-draft-card img {
    width: 100%;
    height: 140px;
  }
}

.footer-shield {
  position: relative;
  width: 28px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  clip-path: polygon(50% 0, 92% 18%, 82% 82%, 50% 100%, 18% 82%, 8% 18%);
}

.footer-shield::before {
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  clip-path: inherit;
  content: "";
}

@media (max-width: 1260px) {
  .write-hero,
  .write-workspace,
  .video-editor-layout,
  .write-progress-panel,
  .dashboard-hero,
  .dashboard-export-panel {
    grid-template-columns: 1fr;
  }

  .write-hero-art {
    justify-self: stretch;
  }

  .write-skills-panel,
  .story-draft-panel,
  .art-direction-panel {
    min-height: auto;
  }

  .write-action-toolbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .group-writing-grid,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    gap: 22px;
  }

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

  .hero-copy {
    max-width: 820px;
  }

  .hero-stage {
    min-height: 480px;
  }

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

  .student-scene {
    left: 6%;
  }

  .scene-stack {
    right: 5%;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p {
    white-space: normal;
  }

  .showcase-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .showcase-controls {
    flex-wrap: wrap;
  }

  .story-film-reel {
    overflow-x: auto;
  }

  .story-card-track {
    width: max-content;
    grid-template-columns: repeat(16, minmax(150px, 170px));
  }
}

@media (max-width: 900px) {
  .write-action-toolbar,
  .art-style-grid,
  .media-thumbs,
  .video-timeline,
  .group-writing-grid,
  .free-create-studio,
  .ccss-diagnostic-grid,
  .open-claw-feedback,
  .teacher-workflow-panel,
  .dashboard-grid,
  .teacher-prompt-options {
    grid-template-columns: 1fr 1fr;
  }

  .draft-tools {
    grid-template-columns: 1fr;
  }

  .writing-window .visual-output-window {
    grid-template-columns: 1fr;
  }

  .writing-window .visual-output-window .write-panel-title,
  .writing-window .visual-output-window .output-primary-actions,
  .writing-window .visual-output-window .art-style-grid,
  .writing-window .visual-output-window .illustration-preview,
  .writing-window .visual-output-window .movie-preview,
  .writing-window .visual-output-window .media-strip {
    grid-column: 1;
    grid-row: auto;
  }

  .page-shell {
    width: min(92vw, 760px);
  }

  h1 {
    font-size: 25px;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-composite-image {
    width: min(100%, 760px);
  }

  .student-scene {
    left: 0;
    top: 0;
    transform: scale(0.86);
    transform-origin: top left;
  }

  .vocab-card {
    left: auto;
    right: 10px;
    top: 248px;
  }

  .scene-stack {
    left: 0;
    right: auto;
    top: 395px;
    width: min(100%, 430px);
  }

  .scene-card.movie,
  .scene-card.book,
  .scene-card.avatar {
    width: 100%;
    transform: none;
  }

  .companion {
    right: -16px;
    bottom: 4px;
    transform: scale(0.78);
  }

  .speech-bubble {
    right: 110px;
    bottom: 45px;
  }

  .literacy-loop {
    flex-wrap: wrap;
    font-size: 18px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .read-panel .flow-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .write-panel .flow-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    font-size: 26px;
  }

  .read-panel .flow-arrow {
    font-size: 26px;
  }

  .write-panel .flow-arrow {
    font-size: 26px;
  }

  .read-panel .flow-visual {
    max-width: 106px;
    height: 106px;
  }

  .write-panel .flow-visual {
    max-width: 106px;
    height: 106px;
  }

  .flow-item span {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .write-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-switch {
    justify-content: center;
  }

  .user-avatar-menu {
    align-self: center;
  }

  .write-grade-select,
  .write-grade-select select,
  .write-action-toolbar,
  .art-style-grid,
  .media-thumbs,
  .video-timeline {
    width: 100%;
  }

  .write-action-toolbar,
  .art-style-grid,
  .media-thumbs,
  .video-timeline,
  .group-writing-grid,
  .free-create-studio,
  .ccss-diagnostic-grid,
  .open-claw-feedback,
  .teacher-workflow-panel,
  .dashboard-grid,
  .teacher-prompt-options {
    grid-template-columns: 1fr;
  }

  .free-create-header {
    display: grid;
  }

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

  .write-hero-art {
    height: 150px;
  }

  .page-shell {
    width: min(90vw, 440px);
    padding-top: 14px;
  }

  .site-header {
    gap: 14px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 48px;
    height: 38px;
  }

  .top-cta {
    min-width: 150px;
    min-height: 42px;
    font-size: 14px;
  }

  .student-showcase {
    left: auto;
    width: 100%;
    transform: none;
    padding: 18px 12px 14px;
  }

  .showcase-title-group h2 {
    flex-wrap: wrap;
  }

  .showcase-controls {
    gap: 8px;
  }

  .showcase-all-works {
    width: 100%;
    justify-content: center;
  }

  .story-film-reel {
    padding: 32px 26px;
  }

  .story-card-track {
    grid-template-columns: repeat(16, minmax(136px, 148px));
  }

  .main-nav {
    gap: 18px;
    font-size: 14px;
  }

  .badge-row {
    gap: 10px;
  }

  .mini-badge {
    padding: 0 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 22px;
  }

  .cn-tagline {
    font-size: 20px;
  }

  .hero-actions,
  .primary-button {
    width: 100%;
  }

  .primary-button {
    min-width: 0;
  }

  .hero-stage {
    min-height: auto;
    margin-top: 14px;
  }

  .hero-composite-image {
    width: 100%;
  }

  .student-scene {
    transform: scale(0.72);
  }

  .vocab-card {
    top: 212px;
    width: 158px;
  }

  .scene-stack {
    top: 372px;
  }

  .feature-card {
    grid-template-columns: 72px 1fr;
    padding: 18px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .panel-heading h2 {
    font-size: 22px;
  }

  .workflow-panel {
    padding: 20px 16px;
  }
}

.group-write-page {
  max-width: 1480px;
}

.teacher-login-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 28px 0 16px;
  padding: 16px 18px;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0, rgba(111, 242, 228, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(15, 29, 64, 0.86), rgba(5, 11, 29, 0.86));
  box-shadow: var(--shadow);
}

.teacher-login-bar h1,
.teacher-login-bar h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0;
}

.teacher-login-bar p,
.teacher-login-notes {
  margin: 0;
  color: rgba(226, 234, 255, 0.74);
  line-height: 1.45;
}

.login-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.login-btn-group button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.btn-google {
  background: linear-gradient(135deg, #4285f4, #6f57e8);
}

.btn-wechat {
  background: linear-gradient(135deg, #07c160, #18a88f);
}

.teacher-login-notes {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.teacher-login-notes span {
  padding: 5px 8px;
  border: 1px solid rgba(154, 176, 255, 0.22);
  border-radius: 999px;
  background: rgba(4, 11, 31, 0.54);
}

.login-status {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid rgba(116, 227, 145, 0.38);
  border-radius: 8px;
  color: rgba(238, 246, 255, 0.9);
  background: rgba(16, 58, 48, 0.52);
}

.login-status strong {
  color: #fff;
}

.login-status button {
  margin-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: #fff;
  background: rgba(8, 16, 40, 0.72);
  cursor: pointer;
}

.wx-login-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.54);
}

.wx-login-modal[hidden] {
  display: none;
}

.wx-modal-content {
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(154, 176, 255, 0.4);
  border-radius: 8px;
  color: rgba(234, 241, 255, 0.86);
  background:
    radial-gradient(circle at 50% 0, rgba(7, 193, 96, 0.16), transparent 15rem),
    linear-gradient(180deg, rgba(16, 28, 66, 0.96), rgba(5, 10, 28, 0.96));
  box-shadow: var(--shadow);
}

.wx-modal-content h3 {
  margin: 6px 0 12px;
  color: #fff;
}

.close-modal {
  float: right;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.wx-qr-container {
  display: grid;
  min-height: 260px;
  place-items: center;
  margin: 16px 0;
  border: 1px dashed rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background: rgba(4, 11, 31, 0.58);
}

.wx-demo-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px;
  text-align: center;
}

.wx-demo-card button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #07c160, #18a88f);
  font-weight: 850;
  cursor: pointer;
}

.demo-tip,
.tip {
  margin: 8px 0 0;
  color: rgba(226, 234, 255, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.group-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  margin: 34px 0 18px;
}

.group-hero > div,
.group-hero-card,
.group-project-panel,
.group-chat-panel,
.chapter-board,
.chapter-editor-panel,
.group-assembly-panel {
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 0, rgba(117, 156, 255, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(15, 29, 64, 0.84), rgba(5, 11, 29, 0.84));
  box-shadow: var(--shadow);
}

.group-hero > div,
.group-hero-card {
  padding: 22px;
}

.group-hero span,
.group-hero-card strong {
  color: #ffd991;
  font-weight: 900;
}

.group-hero h1 {
  margin: 10px 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 62px);
  letter-spacing: 0;
}

.group-hero p,
.group-hero-card p {
  margin: 0;
  color: rgba(232, 238, 255, 0.78);
  line-height: 1.58;
}

.group-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.45fr);
  gap: 14px;
  margin-bottom: 14px;
}

.group-project-panel,
.group-chat-panel,
.chapter-board,
.chapter-editor-panel,
.group-assembly-panel {
  padding: 16px;
}

.group-project-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.group-project-form label,
.group-editor-text {
  display: grid;
  gap: 6px;
  color: rgba(231, 237, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.group-project-form input,
.group-project-form select,
.group-chat-composer input,
.group-editor-text textarea {
  min-height: 42px;
  border: 1px solid rgba(145, 170, 255, 0.28);
  border-radius: 8px;
  outline: none;
  color: #fff;
  background: rgba(4, 11, 31, 0.72);
  font: inherit;
}

.group-project-form input,
.group-project-form select,
.group-chat-composer input {
  padding: 0 12px;
}

.group-role-toggle {
  align-content: end;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.group-role-toggle input {
  width: 18px;
  height: 18px;
}

.group-project-actions,
.group-book-actions,
.group-editor-actions,
.chapter-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.group-project-actions button,
.group-book-actions button,
.group-editor-actions button,
.chapter-card-actions button,
.group-chat-composer button,
.group-style-grid button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(154, 176, 255, 0.38);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(44, 104, 244, 0.82), rgba(132, 67, 231, 0.82));
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.group-editor-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.group-chat-log {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(145, 170, 255, 0.22);
  border-radius: 8px;
  background: rgba(4, 10, 28, 0.62);
}

.group-chat-log p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: rgba(230, 237, 255, 0.78);
  font-size: 13px;
}

.group-chat-log strong {
  color: #fff;
}

.group-chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.chapter-board,
.chapter-editor-panel,
.group-assembly-panel {
  margin-top: 14px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.chapter-empty-state {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed rgba(154, 176, 255, 0.32);
  border-radius: 8px;
  color: rgba(230, 237, 255, 0.76);
  background: rgba(4, 10, 28, 0.58);
}

.chapter-empty-state strong {
  color: #fff;
}

.chapter-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 360px;
  padding: 10px;
  border: 1px solid rgba(154, 176, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 13, 36, 0.76);
}

.chapter-card.finished {
  border-color: rgba(116, 227, 145, 0.46);
}

.chapter-card.writing {
  border-color: rgba(255, 217, 145, 0.46);
}

.chapter-card img {
  width: 100%;
  aspect-ratio: 1.28;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(4, 10, 28, 0.8);
}

.chapter-card h3 {
  margin: 6px 0;
  color: #fff;
  font-size: 18px;
}

.chapter-card p {
  margin: 0;
  color: rgba(228, 235, 255, 0.72);
  font-size: 13px;
  line-height: 1.42;
}

.chapter-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0b1330;
  background: #ffd991;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chapter-writer {
  color: #ffe6a7 !important;
  font-weight: 850;
}

.chapter-card-actions {
  align-self: end;
}

.chapter-card-actions button {
  flex: 1 1 100%;
  font-size: 12px;
}

.group-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
  gap: 14px;
}

.group-editor-text textarea {
  min-height: 440px;
  padding: 16px;
  resize: vertical;
  font: 16px/1.62 Georgia, "Times New Roman", serif;
}

.group-editor-text textarea[readonly] {
  opacity: 0.7;
}

.group-editor-art {
  display: grid;
  align-content: start;
  gap: 12px;
}

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

.group-style-grid button {
  background: rgba(13, 27, 65, 0.82);
}

.group-style-grid button.active {
  border-color: rgba(71, 191, 255, 0.9);
  background: linear-gradient(180deg, rgba(49, 105, 216, 0.86), rgba(18, 39, 91, 0.88));
}

.group-chapter-preview,
.group-book-output figure {
  margin: 0;
}

.group-chapter-preview img,
.group-book-output img {
  width: 100%;
  border: 1px solid rgba(154, 176, 255, 0.34);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(4, 10, 28, 0.82);
}

.group-chapter-preview img {
  aspect-ratio: 16 / 10;
}

.group-book-output img {
  aspect-ratio: 3 / 4;
}

.group-chapter-preview figcaption,
.group-book-output figcaption,
.group-signature-lock {
  color: rgba(226, 234, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.group-signature-lock strong {
  color: #ffd991;
}

.group-assembly-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
  gap: 14px;
}

.full-book-preview {
  min-height: 420px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid rgba(145, 170, 255, 0.26);
  border-radius: 8px;
  color: rgba(251, 253, 255, 0.9);
  background: rgba(3, 9, 26, 0.68);
  font: 15px/1.6 Georgia, "Times New Roman", serif;
  white-space: pre-wrap;
}

.group-book-output {
  display: grid;
  gap: 12px;
  align-content: start;
}

.group-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: 360px;
  padding: 12px 16px;
  border: 1px solid rgba(154, 176, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 16, 40, 0.94);
  box-shadow: var(--shadow);
}

@media (max-width: 1180px) {
  .group-hero,
  .group-setup-grid,
  .group-editor-layout,
  .group-assembly-layout {
    grid-template-columns: 1fr;
  }

  .group-project-form,
  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .group-project-form,
  .chapter-grid,
  .group-style-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
