:root {
  --ink: #182033;
  --muted: #657083;
  --paper: #fffdf8;
  --bg: #f5f7fb;
  --line: #dfe5ef;
  --pink: #c02683;
  --pink-soft: #fde5f0;
  --yellow: #f7c600;
  --yellow-soft: #fff4c7;
  --teal: #009d9a;
  --teal-soft: #dff8f4;
  --blue: #1d7fc2;
  --blue-soft: #e1f0fb;
  --red: #ed3d5d;
  --red-soft: #ffe5eb;
  --green: #169b62;
  --green-soft: #dcf7e8;
  --shadow: 0 16px 36px rgba(25, 37, 62, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(253, 229, 240, 0.72), transparent 330px),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -24px 0 24px;
  padding: 14px 0;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 229, 239, 0.72);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: white;
  border-radius: 8px;
  font-weight: 950;
}

.site-logo {
  width: 72px;
  max-width: 18vw;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nav a:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(25, 37, 62, 0.10);
}

.nav a.active {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}

.button.primary {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}

.button.yellow {
  background: var(--yellow);
  border-color: #dcae00;
}

.button.teal {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.button.blue {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.button.red {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.button.helper {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 16px;
  background: #f8fafc;
  border-color: #d7e0ec;
  color: #4c5b70;
  font-size: 14px;
  font-weight: 750;
  box-shadow: none;
}

.button.helper:hover {
  background: #eef4fb;
  border-color: #c8d5e5;
  box-shadow: none;
}

.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-panel,
.card,
.section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(192, 38, 131, 0.18), transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(247, 198, 0, 0.30), transparent 25%),
    radial-gradient(circle at 78% 78%, rgba(0, 157, 154, 0.18), transparent 28%);
  pointer-events: none;
}

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

.unit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 2px solid currentColor;
  border-radius: 8px;
  color: var(--pink);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.42rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 650;
}

.section {
  padding: 26px;
  margin: 22px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.icon-badge {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 950;
  color: #553f00;
  flex: 0 0 auto;
}

.icon-badge.pink {
  background: var(--pink);
  color: white;
}

.icon-badge.teal {
  background: var(--teal);
  color: white;
}

.icon-badge.blue {
  background: var(--blue);
  color: white;
}

.icon-badge.red {
  background: var(--red);
  color: white;
}

.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 0.78rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.card.soft-pink {
  background: var(--pink-soft);
  border-color: #f7bfd7;
}

.card.soft-yellow {
  background: var(--yellow-soft);
  border-color: #f5d861;
}

.card.soft-teal {
  background: var(--teal-soft);
  border-color: #8ee5df;
}

.card.soft-blue {
  background: var(--blue-soft);
  border-color: #a8d8f4;
}

.card.soft-red {
  background: var(--red-soft);
  border-color: #ffc2cd;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card video,
.media-card audio {
  width: 100%;
}

.media-card video {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111827;
}

.video-app-note {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  border: 2px dashed rgba(70, 48, 124, 0.25);
  border-radius: 8px;
  background: rgba(241, 231, 255, 0.72);
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  text-align: center;
}

.media-card .video-app-note {
  min-height: 260px;
  border-width: 0 0 2px;
  border-radius: 0;
}

.audio-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

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

.textbook-heading {
  font-size: clamp(2.4rem, 5vw, 5rem);
  color: var(--blue);
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 5px 0 rgba(247, 198, 0, 0.65);
}

.article {
  background: var(--paper);
  border: 1px solid #eadfcc;
  border-left: 10px solid var(--yellow);
  border-radius: 8px;
  padding: 26px 30px;
  font-size: 22px;
  line-height: 1.7;
}

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

.reading-focus-card {
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: white;
  background:
    linear-gradient(180deg, rgba(12, 35, 54, 0.12), rgba(12, 35, 54, 0.74)),
    linear-gradient(135deg, #7ac7d7 0%, #e9f6fb 36%, #81b86e 37%, #2c7847 100%);
}

.reading-focus-card::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 13%;
  width: 48%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-7deg);
}

.reading-focus-card > * {
  position: relative;
  z-index: 1;
}

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

.skim-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.question-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #115179;
  font-size: 0.85rem;
  font-weight: 900;
}

.student-hint {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--yellow-soft);
  border: 1px solid #f2d45a;
  color: #624700;
}

.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.post-reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.reading-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.map-step,
.phrase-card,
.skill-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.map-step strong {
  display: block;
  color: var(--blue);
  margin-bottom: 4px;
}

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

.phrase-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.phrase-card span:first-child {
  font-weight: 850;
  color: var(--ink);
}

.phrase-card span:last-child {
  color: var(--muted);
}

.sentence-frames {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sentence-frames span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #115179;
  font-weight: 800;
}

.intensive-module {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 14px;
  min-height: 720px;
}

.intensive-reader,
.intensive-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.intensive-reader {
  height: clamp(720px, 82vh, 840px);
  overflow-y: auto;
  padding: 24px 28px;
  border-left: 10px solid var(--yellow);
  font-size: 22px;
  line-height: 1.68;
}

.intensive-reader p {
  margin: 0 0 16px;
}

.intensive-panel {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  height: clamp(720px, 82vh, 840px);
  overflow: hidden;
  padding: 16px;
  background: white;
}

.study-tabs {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 8px;
  margin-bottom: 0;
}

.post-study-tabs {
  position: sticky;
  top: 82px;
  z-index: 12;
  margin: 14px 0 0;
  padding: 10px;
  border: 1px solid rgba(223, 229, 239, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(25, 37, 62, 0.08);
}

.study-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #d7e0ec;
  border-radius: 18px;
  background: #f8fafc;
  color: #4c5b70;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.study-tab:hover,
.study-tab.active {
  background: #ecf9f6;
  border-color: #8cdad2;
  color: #075f5a;
}

.intensive-output {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  scrollbar-gutter: stable;
}

.intensive-output.is-empty {
  display: grid;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.analysis-card {
  display: grid;
  gap: 10px;
}

.analysis-card h3 {
  color: var(--blue);
  font-size: 1.32rem;
  line-height: 1.18;
}

.analysis-card .quoted-text {
  padding: 12px;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--yellow-soft);
  font-weight: 850;
}

.analysis-label {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: #115179;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.compact-list li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.map-grid {
  display: grid;
  gap: 8px;
}

.map-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.map-row strong {
  color: var(--pink);
}

.thinking-prompts {
  display: grid;
  gap: 12px;
}

.thinking-prompts .prompt {
  padding: 12px;
  border: 1px solid #b8ddf4;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #115179;
  font-weight: 850;
}

.para-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-right: 10px;
  padding: 3px 9px;
  border-radius: 14px;
  background: #eef4fb;
  color: #4c5b70;
  font-size: 0.72em;
  font-weight: 900;
  font-style: normal;
  vertical-align: 0.08em;
}

.info-card {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.logic-type-pair {
  display: grid;
  gap: 6px;
}

.logic-type-pair span {
  color: #243047;
  font-weight: 850;
}

.usage-reveal {
  display: grid;
  gap: 8px;
}

.usage-toggle {
  justify-self: start;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d7e0ec;
  border-radius: 17px;
  background: #f8fafc;
  color: #4c5b70;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.usage-toggle:hover {
  background: #eef4fb;
}

.usage-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 12px;
  border: 0 solid #f2d45a;
  border-radius: 8px;
  background: var(--yellow-soft);
  transition: max-height 0.36s ease, opacity 0.28s ease, padding 0.28s ease, border-width 0.28s ease;
}

.usage-detail.open {
  max-height: 420px;
  opacity: 1;
  padding: 10px 12px;
  border-width: 1px;
}

.classroom-extra {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed #c8d5e5;
  border-radius: 8px;
  background: white;
}

.classroom-extra label {
  color: #4c5b70;
  font-size: 0.86rem;
  font-weight: 900;
}

.classroom-extra textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  background: #fbfcfe;
}

.deep-question-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.deep-question-card strong {
  color: var(--pink);
}

.deep-question-card p {
  margin: 0;
  font-weight: 850;
}

.intensive-highlight {
  border-radius: 6px;
  padding: 0 2px;
  border-bottom: 1px dotted rgba(101, 112, 131, 0.24);
  background: transparent;
  cursor: default;
  pointer-events: none;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.intensive-module[data-highlight-mode="logic"] .hl-logic {
  background: rgba(253, 224, 71, 0.16);
  border-bottom: 2px solid rgba(202, 138, 4, 0.36);
  cursor: pointer;
  pointer-events: auto;
}

.intensive-module[data-highlight-mode="logic"] .intensive-highlight:not(.hl-logic) {
  border-bottom-color: transparent;
}

.intensive-module[data-highlight-mode="vocab"] .hl-vocab {
  background: rgba(153, 246, 228, 0.18);
  border-bottom: 2px solid rgba(20, 184, 166, 0.34);
  cursor: pointer;
  pointer-events: auto;
}

.intensive-module[data-highlight-mode="vocab"] .intensive-highlight:not(.hl-vocab) {
  border-bottom-color: transparent;
}

.intensive-module[data-highlight-mode="grammar"] .hl-grammar {
  background: rgba(245, 208, 254, 0.22);
  border-bottom: 2px solid rgba(192, 132, 252, 0.38);
  cursor: pointer;
  pointer-events: auto;
}

.intensive-module[data-highlight-mode="grammar"] .intensive-highlight:not(.hl-grammar) {
  border-bottom-color: transparent;
}

.intensive-highlight.active {
  color: #111827;
  box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.34);
}

.intensive-module[data-highlight-mode="logic"] .hl-logic.active {
  background: rgba(253, 224, 71, 0.32);
  border-bottom-color: rgba(202, 138, 4, 0.72);
}

.intensive-module[data-highlight-mode="vocab"] .hl-vocab.active {
  background: rgba(153, 246, 228, 0.34);
  border-bottom-color: rgba(20, 184, 166, 0.70);
}

.intensive-module[data-highlight-mode="grammar"] .hl-grammar.active {
  background: rgba(245, 208, 254, 0.42);
  border-bottom-color: rgba(192, 132, 252, 0.72);
}

.article p {
  margin: 0 0 16px;
}

.intro-para {
  padding-bottom: 14px;
  border-bottom: 4px solid #dce900;
  color: #12364f;
  font-weight: 850;
  font-style: italic;
}

.evidence {
  border-radius: 6px;
  transition: background 0.25s, box-shadow 0.25s;
}

.evidence.focus {
  background: #fff08d;
  color: #854d0e;
  font-weight: 850;
  padding: 0 4px;
  border-bottom: 2px dashed #ca8a04;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.36);
  }
  50% {
    box-shadow: 0 0 12px 5px rgba(253, 224, 71, 0.82);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

.question-card {
  border: 1px solid var(--line);
  border-left: 8px solid var(--yellow);
  border-radius: 8px;
  background: white;
  padding: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.question-card:hover {
  transform: translateX(4px);
  border-color: #8ee5df;
  background: #fcfffe;
}

.question-card.active-card {
  border-left-color: var(--teal);
  border-color: #8ee5df;
  background: var(--teal-soft);
  box-shadow: 0 14px 30px rgba(0, 157, 154, 0.16);
}

.question-card.correct {
  border-left-color: var(--green);
}

.question-card.wrong {
  border-left-color: var(--red);
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease;
}

.option:hover {
  background: #f2f6fb;
}

.option .letter {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 950;
}

.option.good {
  border-color: #64cf97;
  background: var(--green-soft);
  animation: pop 0.28s ease-out;
}

.option.bad {
  border-color: #ff9daf;
  background: var(--red-soft);
  animation: shake 0.32s ease-in-out;
}

.answer-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 0 solid var(--line);
  transition: max-height 0.42s ease, opacity 0.35s ease, margin-top 0.35s ease, padding 0.35s ease, border-width 0.35s ease;
}

.answer-panel.open {
  max-height: 680px;
  opacity: 1;
  margin-top: 14px;
  padding: 14px;
  border-width: 1px;
  animation: rise 0.28s ease-out both;
}

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

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.chalk {
  background: #183246;
  color: #eaf6ff;
  border-radius: 8px;
  padding: 22px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.speech {
  position: relative;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.speech.student {
  background: var(--yellow-soft);
  border-color: #f1d250;
}

.speech.aron {
  background: var(--blue-soft);
  border-color: #a8d8f4;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease;
}

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

.chip.for {
  background: var(--teal-soft);
  border-color: #76ddd6;
}

.chip.since {
  background: var(--pink-soft);
  border-color: #f5a9ca;
}

.chip.revealed::after {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 950;
  color: var(--muted);
}

.chip.revealed {
  animation: pop 0.24s ease-out;
  border-width: 2px;
}

.chip.for.revealed::after {
  content: "for";
}

.chip.since.revealed::after {
  content: "since";
}

.grammar-lesson {
  display: grid;
  gap: 18px;
}

.grammar-video-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  gap: 18px;
  align-items: center;
}

.grammar-video-row video {
  width: 100%;
  max-height: 360px;
  border-radius: 8px;
  background: #111827;
}

.grammar-board {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(2, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.board-main,
.rule-tile,
.lesson-card,
.exercise-card,
.duration-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.board-main {
  background: var(--teal-soft);
  border-color: #90ddd7;
}

.board-main h3 {
  margin-top: 10px;
  color: #075f5a;
  font-size: 2rem;
}

.formula {
  margin: 14px 0 0;
  font-size: 1.55rem;
  font-weight: 950;
}

.grammar-next {
  margin-top: 16px;
}

.rule-tile {
  display: grid;
  gap: 8px;
  background: #fbfcfe;
  align-content: start;
  min-height: 245px;
}

.rule-tile strong {
  color: var(--pink);
  font-size: 2rem;
}

.rule-tile p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 850;
}

.rule-phrases {
  display: grid;
  gap: 8px;
}

.rule-tile span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 850;
}

.reveal-board .reveal-part {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.reveal-board[data-step="1"] .for-title,
.reveal-board[data-step="2"] .for-title,
.reveal-board[data-step="2"] .for-meaning,
.reveal-board[data-step="3"] .for-title,
.reveal-board[data-step="3"] .for-meaning,
.reveal-board[data-step="3"] .for-phrases,
.reveal-board[data-step="4"] .for-title,
.reveal-board[data-step="4"] .for-meaning,
.reveal-board[data-step="4"] .for-phrases,
.reveal-board[data-step="4"] .since-title,
.reveal-board[data-step="5"] .for-title,
.reveal-board[data-step="5"] .for-meaning,
.reveal-board[data-step="5"] .for-phrases,
.reveal-board[data-step="5"] .since-title,
.reveal-board[data-step="5"] .since-meaning,
.reveal-board[data-step="6"] .for-title,
.reveal-board[data-step="6"] .for-meaning,
.reveal-board[data-step="6"] .for-phrases,
.reveal-board[data-step="6"] .since-title,
.reveal-board[data-step="6"] .since-meaning,
.reveal-board[data-step="6"] .since-phrases {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: rise 0.28s ease-out both;
}

.reveal-board[data-step="0"] .rule-tile {
  background: #fbfcfe;
  border-style: dashed;
}

.reveal-board[data-step="1"] .for-tile,
.reveal-board[data-step="2"] .for-tile,
.reveal-board[data-step="3"] .for-tile,
.reveal-board[data-step="4"] .for-tile,
.reveal-board[data-step="5"] .for-tile,
.reveal-board[data-step="6"] .for-tile {
  background: var(--yellow-soft);
  border-color: #f1d250;
}

.reveal-board[data-step="4"] .since-tile,
.reveal-board[data-step="5"] .since-tile,
.reveal-board[data-step="6"] .since-tile {
  background: var(--teal-soft);
  border-color: #90ddd7;
}

.lesson-card h3,
.exercise-card h3 {
  margin-top: 6px;
  color: var(--blue);
}

.reading-example-list,
.step-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.reading-example,
.step-line {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.reading-example p,
.step-line p,
.sentence-large {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.58;
}

.timeline-card {
  background: #fffdf8;
}

.timeline {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

.timeline-point {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #115179;
  font-weight: 900;
}

.timeline-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.timeline-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: var(--yellow);
}

.timeline-line span {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 16px;
  background: white;
  border: 1px solid #f2d45a;
  color: #624700;
  font-weight: 900;
}

.timeline-sentences {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.timeline-sentences p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 820;
}

.input-label {
  display: block;
  margin: 12px 0 6px;
  color: #4c5b70;
  font-weight: 950;
}

.duration-note {
  display: grid;
  gap: 14px;
  background: var(--yellow-soft);
  border-color: #f1d250;
}

.duration-note > div:first-child strong {
  font-size: 1.35rem;
}

.duration-note > div:first-child p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.verb-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.verb-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid #e1c75a;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.verb-card:hover {
  transform: translateY(-1px);
  border-color: #c9a900;
  box-shadow: 0 10px 22px rgba(25, 37, 62, 0.10);
}

.verb-card strong {
  color: #7a5a00;
  font-size: 1.25rem;
  line-height: 1.55;
}

.verb-state {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff6c9;
  color: #684c00;
  font-weight: 900;
}

.verb-why,
.verb-example {
  display: none;
  grid-column: 1 / -1;
  line-height: 1.55;
}

.verb-why {
  color: #4c5b70;
}

.verb-example {
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2a3d;
  font-weight: 760;
}

.verb-card[data-step="1"] .verb-why,
.verb-card[data-step="2"] .verb-why,
.verb-card[data-step="2"] .verb-example {
  display: block;
  animation: rise 0.24s ease-out both;
}

.big-timeline {
  grid-template-columns: minmax(150px, auto) minmax(280px, 1fr) minmax(100px, auto);
  margin: 24px 0 16px;
}

.big-timeline .timeline-point {
  padding: 13px 18px;
  font-size: 1.18rem;
}

.big-timeline .timeline-line {
  min-height: 70px;
}

.big-timeline .timeline-line::before {
  height: 6px;
}

.big-timeline .timeline-line span {
  padding: 9px 16px;
  font-size: 1.12rem;
}

.timeline-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 16px;
}

.timeline-labels div {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #f2d45a;
  background: white;
  line-height: 1.55;
}

.grammar-lesson .exercise-card {
  display: grid;
  gap: 14px;
}

.grammar-lesson .exercise-card > p {
  margin: 0;
}

.grammar-lesson .sentence-large {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.68;
}

.exercise-card.soft-yellow {
  background: var(--yellow-soft);
}

.exercise-card.soft-teal {
  background: var(--teal-soft);
}

.sort-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sort-workspace {
  display: grid;
  gap: 16px;
}

.sort-bank,
.sort-drop-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-bank {
  min-height: 72px;
  padding: 14px;
  border: 1px dashed #dfb900;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

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

.sort-box {
  min-height: 180px;
  padding: 16px;
  border: 2px solid #e5edf5;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sort-box:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 22px rgba(25, 37, 62, 0.10);
}

.sort-box strong {
  display: block;
  color: var(--pink);
  font-size: 1.8rem;
  line-height: 1;
}

.sort-box > span {
  display: block;
  margin: 6px 0 14px;
  color: #4c5b70;
  font-weight: 850;
}

.sort-token {
  background: white;
  min-height: 42px;
  font-size: 1rem;
}

.sort-token.selected {
  border-width: 2px;
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(44, 139, 194, 0.16);
}

.sort-token.correct {
  border-color: #13a67a;
  background: #dff8ee;
  color: #0f6d53;
}

.sort-token.wrong {
  border-color: #f06a83;
  background: var(--red-soft);
  color: #a32242;
}

.reveal-blank {
  vertical-align: -0.12em;
}

.blank {
  display: inline-flex;
  min-width: 92px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-bottom: 3px solid currentColor;
  color: var(--pink);
  font-weight: 950;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.blank:not(.show) {
  color: transparent;
  border-bottom-color: var(--pink);
}

.blank:hover {
  background: var(--pink-soft);
}

.blank.show {
  animation: pop 0.24s ease-out;
  background: rgba(253, 229, 240, 0.58);
}

.big-blank {
  min-width: 150px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom-width: 4px;
  border-radius: 8px 8px 2px 2px;
  background: rgba(255, 255, 255, 0.72);
}

.big-blank:not(.show) {
  box-shadow: inset 0 -10px 0 rgba(253, 229, 240, 0.72);
}

.writing-task {
  display: grid;
  gap: 16px;
}

.writing-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.writing-item p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.5;
}

.writing-item label {
  color: #4c5b70;
  font-weight: 950;
}

.writing-item .small-input {
  min-height: 74px;
  background: white;
}

.writing-item .answer-panel {
  font-size: 1.15rem;
  font-weight: 850;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vocabulary-intro {
  margin-bottom: 18px;
}

.vocabulary-audio {
  margin-bottom: 18px;
}

.vocab-match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.58fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.vocab-image-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.vocab-image-card img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 8px;
}

.subject-answer-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  box-shadow: var(--shadow);
}

.subject-answer-panel h3 {
  margin: 0 0 12px;
  color: var(--pink);
}

.subject-answer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.subject-reveal-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.subject-reveal-card:hover {
  transform: translateY(-1px);
  border-color: #f5a9ca;
  box-shadow: 0 8px 18px rgba(25, 37, 62, 0.10);
}

.subject-reveal-card[data-step="1"],
.subject-reveal-card[data-step="2"] {
  background: var(--pink-soft);
  border-color: #f5a9ca;
}

.subject-reveal-card .subject-letter {
  grid-row: 1 / span 2;
}

.subject-english,
.subject-chinese {
  display: none;
  font-weight: 950;
  line-height: 1.25;
}

.subject-english {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.subject-chinese {
  color: #7a1747;
}

.subject-reveal-card[data-step="1"] .subject-english,
.subject-reveal-card[data-step="2"] .subject-english,
.subject-reveal-card[data-step="2"] .subject-chinese {
  display: block;
  animation: rise 0.22s ease-out both;
}

.interactive-subjects {
  margin-bottom: 18px;
}

.subject-tile {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.subject-tile:hover {
  transform: translateY(-2px);
  border-color: #f5a9ca;
}

.subject-tile.open {
  background: var(--pink-soft);
  border-color: #f5a9ca;
  box-shadow: 0 10px 22px rgba(192, 38, 131, 0.10);
}

.subject-tile::before {
  content: attr(data-icon);
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 3.4rem;
  opacity: 0.18;
}

.interactive-subjects .subject-tile::before {
  display: none;
}

.subject-letter {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: white;
  border-radius: 8px;
  font-weight: 950;
  font-size: 1.35rem;
}

.subject-guess {
  margin-top: 18px;
  color: #6b7280;
  font-weight: 850;
}

.subject-tile.open .subject-guess {
  display: none;
}

.subject-answer {
  display: none;
  font-weight: 950;
  font-size: 1.28rem;
}

.subject-tile.open .subject-answer {
  display: block;
  animation: rise 0.26s ease-out both;
}

.subject-support,
.speaking-builder {
  margin-top: 18px;
}

.subject-support {
  background: var(--teal-soft);
}

.subject-support h3 {
  margin-top: 0;
  color: #075f5a;
}

.subject-support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.support-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #8fded8;
  border-radius: 8px;
  background: white;
}

.support-card strong {
  color: var(--pink);
  font-size: 1.12rem;
}

.support-card p {
  margin: 0;
  line-height: 1.55;
}

.support-card span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #075f5a;
  font-weight: 850;
}

.speaking-question h4 {
  margin: 0;
  color: var(--blue);
  font-size: 1.22rem;
}

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reason-chips span {
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid #f3dc76;
  font-size: 0.96rem;
  font-weight: 820;
}

.speaking-builder {
  display: grid;
  gap: 16px;
}

.speaking-question {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.think-box {
  padding: 12px;
  border-radius: 8px;
  background: var(--yellow-soft);
  border: 1px solid #f1d250;
}

.think-box strong {
  color: #765500;
}

.think-box p,
.speaking-question .answer-panel p {
  margin: 6px 0 0;
}

.speaking-question .small-input {
  min-height: 80px;
  background: white;
}

.speaking-question .answer-panel {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 820;
}

.next-page-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.task-instruction {
  font-size: 1.18rem;
  font-weight: 850;
}

.listening-match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.listening-image-card,
.listening-answer-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.listening-image-card img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 8px;
}

.summer-list {
  columns: 2;
  margin: 14px 0 0;
  padding-left: 24px;
  font-weight: 820;
  line-height: 1.55;
}

.listening-answer-panel {
  background: #fbfcfe;
}

.listening-answer-panel h3 {
  margin: 0 0 12px;
  color: var(--blue);
}

.listening-answer-grid {
  display: grid;
  gap: 10px;
}

.listening-reveal-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.listening-reveal-card:hover {
  transform: translateY(-1px);
  border-color: #a8d8f4;
  box-shadow: 0 8px 18px rgba(25, 37, 62, 0.10);
}

.listening-reveal-card[data-step="1"],
.listening-reveal-card[data-step="2"] {
  background: var(--blue-soft);
  border-color: #a8d8f4;
}

.listening-reveal-card .subject-letter {
  grid-row: 1 / span 2;
  background: var(--blue);
}

.card-english,
.card-chinese {
  display: none;
  font-weight: 950;
  line-height: 1.32;
}

.card-english {
  font-size: 1.08rem;
}

.card-chinese {
  color: #115179;
}

.listening-reveal-card[data-step="1"] .card-english,
.listening-reveal-card[data-step="2"] .card-english,
.listening-reveal-card[data-step="2"] .card-chinese {
  display: block;
  animation: rise 0.22s ease-out both;
}

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.choice-chips button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.choice-chips button.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.listening-question-card,
.tf-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.listening-question-card h4,
.tf-card p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.55;
}

.tf-card {
  background: white;
}

.tf-card p {
  font-size: 1.38rem;
  font-weight: 850;
}

.answer-label {
  margin: 0;
  color: #4c5b70;
  font-weight: 900;
}

.tf-list {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.listening-page .answer-panel.answer-reveal.open {
  background: #eaf5fb;
  border-color: #a8d8f4;
  color: #173c56;
  font-size: 1.18rem;
  line-height: 1.6;
  font-weight: 880;
}

.listening-page .answer-panel.model-answer.open {
  background: #f3f0e8;
  border-color: #d7cdb8;
  color: #3f3a32;
  font-size: 1.12rem;
  line-height: 1.65;
  font-weight: 850;
}

.panel-label {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #4c5b70;
  font-size: 0.86rem;
  font-weight: 950;
}

.tf-answer.open {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
  background: #eff7f1;
  border-color: #b7d8c3;
}

.tf-mark {
  grid-row: 1 / span 2;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #d7eadf;
  color: #24543c;
  font-size: 1.65rem;
  font-weight: 950;
}

.tf-answer p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 850;
}

.correct-idea {
  grid-column: 2;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7d6;
  border: 1px solid #ead680;
  color: #684c00;
  font-size: 1.08rem;
  font-weight: 900;
}

.tf-card .answer-panel span:not(.tf-mark) {
  color: #4c5b70;
  font-weight: 850;
}

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

.transcript-box {
  display: none;
  max-height: 70vh;
  overflow: auto;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  font-size: 1.25rem;
  line-height: 1.72;
}

.transcript-box.open {
  display: block;
  animation: rise 0.26s ease-out both;
}

.transcript-box p {
  margin: 0 0 14px;
}

.transcript-chunk {
  display: inline;
  padding: 1px 4px;
  border-radius: 6px;
  background: rgba(253, 224, 71, 0.28);
  border-bottom: 2px solid rgba(202, 138, 4, 0.44);
  cursor: pointer;
}

.chunk-meaning {
  display: none;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: white;
  color: #765500;
  font-size: 0.92rem;
  font-weight: 900;
}

.transcript-chunk.open .chunk-meaning {
  display: inline-flex;
}

.idea-builder {
  display: grid;
  gap: 16px;
}

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

.idea-grid > div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.idea-grid strong {
  color: var(--blue);
}

.idea-grid span,
.idea-grid button {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.idea-grid button.selected {
  background: var(--blue-soft);
  border-color: #a8d8f4;
  color: #115179;
}

.speaking-flow {
  display: grid;
  gap: 16px;
}

.flow-step,
.challenge-step {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.flow-step h4,
.challenge-step p {
  margin: 0;
}

.step-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #115179;
  font-weight: 950;
  font-size: 0.9rem;
}

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

.situation-buttons button,
.category-row button {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.situation-buttons button.selected,
.category-row button.selected {
  background: var(--teal-soft);
  border-color: #8ee5df;
  color: #075f5a;
}

.sentence-frame {
  display: none;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #d7cdb8;
  background: #f7f3eb;
  color: #3f3a32;
  font-size: 1.35rem;
  font-weight: 950;
}

.sentence-frame.active {
  display: block;
  animation: rise 0.24s ease-out both;
}

.reference-step {
  background: #f7f3eb;
  border-color: #d7cdb8;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.challenge-lines {
  display: grid;
  gap: 10px;
}

.challenge-lines label,
.phrase-task-card label {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  color: #4c5b70;
  font-size: 1.2rem;
  font-weight: 950;
}

.challenge-lines .small-input,
.phrase-task-card .small-input {
  min-height: 54px;
}

.phrase-bank-section {
  background: #fbfcfe;
  border-radius: 8px;
  padding: 24px;
}

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

.phrase-bank-card,
.phrase-speaking-box,
.phrase-task-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.phrase-bank-card h3,
.phrase-speaking-box h3,
.phrase-task-card h3 {
  margin-top: 0;
  color: var(--teal);
}

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

.phrase-list p,
.phrase-frame-grid p,
.example-lines p {
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  line-height: 1.48;
}

.phrase-list strong,
.phrase-frame-grid strong {
  display: block;
  color: #075f5a;
}

.phrase-list span,
.phrase-frame-grid span {
  display: block;
  margin-top: 3px;
  font-weight: 850;
}

.phrase-speaking-box,
.phrase-task-card {
  margin-top: 16px;
}

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

.example-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.phrase-task-card {
  display: grid;
  gap: 10px;
}

.functions-page .answer-panel.answer-reveal.open,
.functions-page .answer-panel.model-answer.open,
.functions-page .answer-panel.random-practice-result.open {
  background: #f3f0e8;
  border-color: #d7cdb8;
  color: #3f3a32;
  font-size: 1.1rem;
  line-height: 1.62;
  font-weight: 850;
}

.culture-card {
  display: grid;
  gap: 14px;
  background: var(--teal-soft);
}

.culture-card p {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.62;
  font-weight: 820;
}

.culture-highlight {
  display: inline;
  padding: 3px 7px;
  border-radius: 8px;
  background: #fff4c9;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.function-type-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.function-type-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.function-type-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.function-type-card p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 850;
}

.function-type-card.ap,
.permission-bank-card.ap,
.label-key span.ap {
  background: #edf7fd;
  border-color: #a8d8f4;
}

.function-type-card.gp,
.permission-bank-card.gp,
.label-key span.gp {
  background: #eef8f1;
  border-color: #b7d8c3;
}

.function-type-card.rp,
.permission-bank-card.rp,
.label-key span.rp {
  background: #fff0f2;
  border-color: #ffc2cd;
}

.permission-bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.permission-bank-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  box-shadow: var(--shadow);
}

.permission-bank-card h3 {
  margin: 0;
  color: var(--ink);
}

.permission-bank-card p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
  font-weight: 850;
  line-height: 1.45;
}

.mini-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 950;
}

.mini-label.ap {
  background: #dceffc;
  color: #245b7a;
}

.mini-label.gp {
  background: #dff3e4;
  color: #24543c;
}

.mini-label.rp {
  background: #ffe2e8;
  color: #7a2e38;
}

.permission-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.permission-summary p {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: white;
  font-weight: 900;
}

.dialogue-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.dialogue-set,
.function-lab,
.role-builder,
.random-card,
.model-dialogues {
  display: grid;
  gap: 12px;
}

.dialogue-set {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.dialogue-set h4 {
  margin: 0;
  color: var(--red);
}

.order-line {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-size: 1.12rem;
  font-weight: 850;
}

.order-blank,
.function-blank {
  min-width: 44px;
  min-height: 42px;
  border: 2px solid #e2d6c4;
  border-radius: 8px;
  background: #fbf7ef;
  color: transparent;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.order-blank.show,
.function-blank.show {
  color: #7a2e38;
  background: var(--red-soft);
  border-color: #ffc2cd;
  animation: pop 0.22s ease-out;
}

.order-blank.filled {
  color: #3f3a32;
  background: #fbf7ef;
}

.order-blank.correct {
  color: #24543c;
  background: #eef8f1;
  border-color: #9bd8b1;
}

.order-blank.wrong {
  color: #7a4a00;
  background: #fff1d6;
  border-color: #e6a94a;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.label-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.label-key span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-weight: 850;
}

.sticky-legend {
  position: sticky;
  top: 74px;
  z-index: 5;
  padding: 8px;
  border: 1px solid rgba(215, 224, 236, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.08);
}

.function-row {
  display: grid;
  grid-template-columns: 44px 1fr 64px minmax(180px, 0.7fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.function-row p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 850;
}

.function-blank.ap {
  background: #edf7fd;
  border-color: #a8d8f4;
  color: #245b7a;
}

.function-blank.gp {
  background: var(--green-soft);
  border-color: #9bd8b1;
  color: #24543c;
}

.function-blank.rp {
  background: var(--red-soft);
  border-color: #ffc2cd;
  color: #7a2e38;
}

.function-note {
  color: #4c5b70;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 820;
}

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

.role-situation-grid button {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.role-situation-grid button.selected {
  background: #edf7fd;
  border-color: #a8d8f4;
  color: #245b7a;
}

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

.request-grid > div,
.reply-grid > div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.request-grid strong,
.reply-grid strong {
  color: var(--red);
}

.request-grid p,
.reply-grid span,
.dialogue-frame p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 840;
}

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

.dialogue-frame {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.dialogue-frame.compact {
  margin-top: 12px;
}

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

.dialogue-writing label {
  display: grid;
  gap: 6px;
  color: #4c5b70;
  font-size: 1.1rem;
  font-weight: 950;
}

.random-role-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.role-play-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.role-left-panel,
.role-dialogue-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.role-left-panel {
  max-height: 660px;
  overflow: auto;
}

.role-dialogue-panel {
  position: sticky;
  top: 92px;
}

.selected-situation-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: #edf7fd;
  border: 1px solid #a8d8f4;
}

.selected-situation-card span,
.role-support-box h4,
.reply-options-compact h4,
.role-dialogue-panel h4 {
  margin: 0;
  color: #4c5b70;
  font-size: 1rem;
  font-weight: 950;
}

.selected-situation-card strong {
  color: var(--blue);
  font-size: 1.55rem;
  line-height: 1.18;
}

.role-support-box,
.reply-options-compact > div {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.compact-phrase-list {
  display: grid;
  gap: 7px;
}

.compact-phrase-list p,
.request-choice,
.reply-options-compact p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 850;
}

.request-choice {
  width: 100%;
  border: 1px solid #a8d8f4;
  background: #edf7fd;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.request-choice:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(47, 138, 196, 0.12);
}

.reply-options-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-dialogue-panel label {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  color: #4c5b70;
  font-size: 1.05rem;
  font-weight: 950;
}

.role-line-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1.03rem;
  font-weight: 760;
}

.role-line-input:focus {
  outline: 3px solid rgba(47, 138, 196, 0.16);
  border-color: #a8d8f4;
}

.random-output {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 950;
}

.homework-note {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #fff4dc;
  border: 1px solid #f1d250;
}

.homework-note p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 820;
  line-height: 1.34;
}

.example-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.example-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.try-first-box {
  display: grid;
  gap: 7px;
  color: #4c5b70;
  font-size: 1.02rem;
  font-weight: 950;
}

.try-first-box .small-input {
  min-height: 62px;
  background: #fffdf7;
}

.model-dialogues .answer-panel .panel-label {
  margin-top: 14px;
}

.model-dialogues .answer-panel .panel-label:first-child {
  margin-top: 0;
}

.function-line {
  display: grid;
  grid-template-columns: 54px 1fr 72px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.function-line:last-child {
  border-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf2f7;
  font-weight: 950;
  font-size: 0.84rem;
}

.tag.ap {
  background: var(--yellow-soft);
  color: #6c5100;
}

.tag.gp {
  background: var(--green-soft);
  color: #0f6a42;
}

.tag.rp {
  background: var(--red-soft);
  color: #b71936;
}

.hidden-answer {
  display: none;
}

.hidden-answer.open {
  display: inline-flex;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  min-height: 210px;
  display: flex;
  align-items: end;
  padding: 14px;
  border-radius: 8px;
  color: white;
  font-weight: 950;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #276a8f, #9cd7e9);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.52));
}

.photo-card span {
  position: relative;
  z-index: 1;
}

.photo-card.lab {
  background: linear-gradient(135deg, #2b6a57, #b8e487);
}

.photo-card.lunch {
  background: linear-gradient(135deg, #b8532d, #ffd173);
}

.photo-card.sport {
  background: linear-gradient(135deg, #185aa0, #a7e05e);
}

.number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  background: var(--pink);
  color: white;
  border-radius: 8px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.check-item input {
  width: 24px;
  height: 24px;
}

.page-g-topbar {
  justify-content: flex-start;
}

.page-g-logo {
  order: -1;
  width: 94px;
  max-width: 22vw;
}

.page-g .answer-panel.open {
  background: #f3f0e8;
  border-color: #d7cdb8;
  color: #3f3a32;
  font-size: 1.08rem;
  line-height: 1.58;
  font-weight: 850;
}

.page-g .answer-panel.written-answer-blue.open {
  background: #edf7fd;
  border-color: #a8d8f4;
  color: var(--blue);
}

.page-g .answer-panel.choice-answer-map.open {
  background: #eef8f1;
  border-color: #9bd8b1;
  color: #145f3f;
}

.yet-question-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: white;
  border: 2px solid #8ee5df;
  box-shadow: 0 10px 22px rgba(0, 157, 154, 0.10);
}

.yet-question-card h3 {
  color: var(--teal);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.todo-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  color: #4c5b70;
  font-weight: 850;
}

.photo-placeholder {
  min-height: 220px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(225, 240, 251, 0.9), rgba(255, 244, 199, 0.82));
  border-style: dashed;
}

.photo-placeholder h3 {
  color: #4c5b70;
}

.page-g-question-grid {
  margin-top: 16px;
}

.page-g-photo-card {
  padding: 0;
  overflow: hidden;
}

.page-g-photo-card img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f8fafc;
}

.page-g-photo-questions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.page-g-audio {
  margin-bottom: 16px;
}

.page-g-article h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
}

.page-g-article p {
  margin: 0 0 18px;
}

.page-g-article p:last-child {
  margin-bottom: 0;
}

.para-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 1rem;
  font-weight: 950;
  vertical-align: 3px;
}

.page-g-task-list {
  gap: 12px;
}

.page-g-read-compare {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.page-g-reading-scroll {
  position: sticky;
  top: 96px;
  height: 85vh;
  min-height: 850px;
  overflow: auto;
  padding: 22px 24px;
  border: 1px solid #eadfcc;
  border-left: 10px solid var(--yellow);
  border-radius: 8px;
  background: var(--paper);
  font-size: 22px;
  line-height: 1.7;
  box-shadow: var(--shadow);
}

.page-g-reading-scroll h3 {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 2rem;
}

.page-g-reading-scroll p {
  margin: 0 0 16px;
}

.page-g-ex2-panel {
  display: grid;
  gap: 8px;
  max-height: 85vh;
  overflow-y: auto;
  padding-right: 4px;
}

.page-g-question-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 14px;
  align-items: center;
}

.page-g-question-card h3 {
  font-size: 1.24rem;
  line-height: 1.28;
}

.page-g-ex2-panel .page-g-question-card {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 7px;
  padding: 12px;
}

.page-g-ex2-panel .small-input {
  min-height: 44px;
}

.page-g-ex2-panel .page-g-question-card h3 {
  font-size: 1.12rem;
  line-height: 1.24;
}

.page-g-ex2-panel .button.helper {
  justify-self: start;
  margin-top: 0;
}

.page-g-ex2-panel .answer-panel.open {
  margin-top: 4px;
  padding: 9px 11px;
  font-size: 1rem;
  line-height: 1.38;
}

.page-g-answer-key {
  margin-top: 12px;
}

.page-g-answer-key p {
  margin: 0 0 8px;
}

.option-list-static {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.option-list-static p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 850;
}

.choice-correct {
  background: #dcf7e8 !important;
  border: 2px solid #78cf9b;
  color: #145f3f;
}

.match-pill {
  display: inline-flex;
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #169b62;
  color: white;
  font-size: 0.9rem;
  font-weight: 950;
}

.better-at-builder {
  display: grid;
  gap: 14px;
}

.better-at-card {
  display: grid;
  gap: 12px;
}

.page-g-speaking-bank,
.page-g-speaking-write {
  display: grid;
  gap: 14px;
}

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

.better-at-categories > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.better-at-categories strong {
  color: var(--teal);
}

.better-at-categories span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 850;
}

.page-g-speaking-write label {
  display: grid;
  gap: 6px;
  color: #4c5b70;
  font-weight: 950;
}

.frame-practice-grid {
  display: grid;
  gap: 10px;
}

.frame-practice-grid label {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.frame-practice-grid span {
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 900;
}

.frame-practice-grid .small-input {
  min-height: 54px;
}

.page-g-intensive-section {
  overflow: visible;
}

.page-g-intensive-tabs {
  top: 88px;
}

.page-g-intensive {
  grid-template-columns: minmax(0, 1.62fr) minmax(340px, 1fr);
  min-height: 760px;
}

.page-g-intensive-reader,
.page-g-intensive-panel {
  height: clamp(760px, 82vh, 880px);
}

.page-g-intensive-reader h3 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 2rem;
}

.page-g-intensive-reader p {
  font-size: 22px;
  line-height: 1.7;
}

.page-g-intensive .intensive-output {
  font-size: 1.02rem;
}

.soft-yellow-card {
  background: #fff8d7;
  border-color: #efd56c;
}

.soft-teal-card {
  background: #ecfbf8;
  border-color: #9bded8;
}

.soft-pink-card {
  background: #fdf0f8;
  border-color: #e7b4d3;
}

.page-g-grammar-notice {
  display: grid;
  gap: 10px;
}

.page-g-grammar-notice div,
.page-g-grammar-example-grid div {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.page-g-grammar-notice strong,
.page-g-grammar-example-grid strong {
  color: var(--pink);
}

.page-g-grammar-notice span,
.page-g-grammar-example-grid span {
  color: #243047;
  font-weight: 850;
}

.page-g-grammar-notice em {
  color: var(--blue);
  font-style: normal;
  font-weight: 850;
}

.page-g-grammar-example-grid {
  display: grid;
  gap: 9px;
}

.page-g-title-paras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-g-title-paras div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px dashed #c8d5e5;
  border-radius: 8px;
  background: white;
  color: #4c5b70;
  font-weight: 900;
}

.page-g-title-paras span {
  color: #657083;
  font-size: 0.96rem;
  line-height: 1.42;
  font-weight: 780;
}

.page-g-title-answer-map p {
  margin: 0 0 8px;
}

.page-g-title-answer-map p:last-child {
  margin-bottom: 0;
}

.page-g-class-answer textarea {
  min-height: 112px;
}

.later-task-card {
  margin-top: 16px;
}

.train-think-intro {
  padding: 20px;
  border-radius: 8px;
  background: var(--pink-soft);
  border: 1px solid #f7bfd7;
  box-shadow: var(--shadow);
}

.train-think-intro h3 {
  color: var(--pink);
  margin-bottom: 8px;
  line-height: 1.25;
}

.train-think-intro p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 850;
}

.train-think-intro .choice-chips {
  margin-top: 12px;
}

.full-width-task {
  display: grid;
  gap: 12px;
}

.small-input {
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
}

.footer-space {
  height: 20px;
}

@media (max-width: 980px) {
  body {
    font-size: 17px;
  }

  .hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five,
  .photo-grid,
  .subject-grid,
  .vocab-match-layout,
  .subject-answer-grid,
  .subject-support-grid,
  .listening-match-layout,
  .idea-grid,
  .situation-buttons,
  .category-row,
  .phrase-bank-grid,
  .phrase-frame-grid,
  .permission-bank-grid,
  .permission-summary,
  .dialogue-order-grid,
  .role-play-compact,
  .reply-options-compact,
  .role-situation-grid,
  .request-grid,
  .reply-grid,
  .dialogue-writing,
  .grammar-video-row,
  .grammar-board,
  .timeline,
  .timeline-labels,
  .verb-card-grid,
  .sort-targets {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .article {
    padding: 20px;
  }

  .site-logo {
    width: 54px;
  }

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

  .reading-map,
  .phrase-grid,
  .intensive-module {
    grid-template-columns: 1fr;
  }

  .intensive-reader {
    height: 66vh;
    min-height: 560px;
    padding: 20px;
    font-size: 20px;
  }

  .intensive-panel {
    position: static;
    height: auto;
    overflow: visible;
  }

  .post-study-tabs {
    top: 0;
  }

  .intensive-output {
    max-height: none;
  }

  .next-page-card {
    grid-template-columns: 1fr;
  }

  .page-g-read-compare {
    grid-template-columns: 1fr;
  }

  .page-g-reading-scroll {
    position: static;
    height: 62vh;
    min-height: 520px;
    font-size: 21px;
  }

  .page-g-ex2-panel {
    max-height: none;
    overflow: visible;
  }

  .better-at-categories {
    grid-template-columns: 1fr;
  }

  .frame-practice-grid label {
    grid-template-columns: 1fr;
  }

  .page-g-question-card {
    grid-template-columns: 1fr;
  }

  .page-g-logo {
    width: 76px;
  }

  .summer-list {
    columns: 1;
  }

  .function-row {
    grid-template-columns: 44px 1fr 64px;
  }

  .function-note {
    grid-column: 2 / -1;
  }

  .role-dialogue-panel {
    position: static;
  }
}

@media print {
  .topbar,
  .button,
  .study-tab,
  video,
  audio {
    display: none !important;
  }

  body {
    background: white;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .section,
  .card,
  .hero-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .answer-panel,
  .hidden-answer,
  .subject-answer {
    display: block !important;
  }
}
