:root {
  color-scheme: dark;
  --ink: #f9f3e7;
  --muted: #c9beb4;
  --deep: #121016;
  --panel: rgba(18, 16, 22, 0.78);
  --panel-solid: #19151b;
  --line: rgba(255, 255, 255, 0.18);
  --gold: #f1c76b;
  --red: #cc4d4d;
  --teal: #58d7c6;
  --violet: #8b74ff;
  --hot-pink: #ff3df2;
  --sky: #00bbff;
  --lime: #9cff2e;
  --orange: #ff9f1c;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.44);
}

/* Xianglu: short mouth-side strokes only; no lighting, ripple, or image filter. */
.speaker-voice-meter { display: none; }
.stage[data-course="xianglug4"] .scene-art,
.stage[data-course="xianglug4"].is-speaking[data-emotion] .scene-art,
.stage[data-course="xianglug4"].has-intro .scene-art {
  filter: none !important;
  animation: none !important;
  transition: none !important;
}
.stage[data-course="xianglug4"] .role-light,
.stage[data-course="xianglug4"] .scene-shade {
  display: none !important;
}
.stage[data-course="xianglug4"] .talk-effect {
  display: block;
  z-index: 0;
  transition: none;
}
.stage[data-course="xianglug4"].has-intro .talk-effect { display: none; }
.stage[data-course="xianglug4"] .talk-effect span {
  left: var(--talk-x);
  top: calc(var(--talk-y) + var(--cue-dy, 0px));
  width: 20px;
  height: 4px;
  border: 0;
  border-radius: 3px;
  background: #ffd16b;
  outline: 1px solid #674323;
  box-shadow: none;
  filter: none;
  opacity: 1;
  transform-origin: left center;
  transform: rotate(var(--cue-angle, 0deg));
  animation: none;
}
.stage[data-course="xianglug4"] .talk-effect span:nth-child(1) { --cue-dy: -10px; --cue-angle: -25deg; }
.stage[data-course="xianglug4"] .talk-effect span:nth-child(2) { width: 26px; }
.stage[data-course="xianglug4"] .talk-effect span:nth-child(3) { --cue-dy: 10px; --cue-angle: 25deg; }
.stage[data-course="xianglug4"].is-speaking .talk-effect span {
  animation: xiangluMouthStrokes 620ms ease-in-out infinite alternate;
}
.stage[data-course="xianglug4"] .talk-effect span:nth-child(2) { animation-delay: -200ms; }
.stage[data-course="xianglug4"] .talk-effect span:nth-child(3) { animation-delay: -400ms; }
@keyframes xiangluMouthStrokes {
  from { transform: translateX(0) rotate(var(--cue-angle, 0deg)) scaleX(0.75); }
  to { transform: translateX(2px) rotate(var(--cue-angle, 0deg)) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stage[data-course="xianglug4"].is-speaking .talk-effect span { animation: none; }
}
.stage[data-course="xianglug4"] #speakerName { display: inline-block; }
.stage[data-course="xianglug4"] #speakerName[hidden] { display: none; }
.stage[data-course="xianglug4"] .speaker-voice-meter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 30px;
  height: 24px;
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0;
}
.stage[data-course="xianglug4"].is-speaking:not(.has-intro) .speaker-voice-meter { opacity: 1; }
.stage[data-course="xianglug4"] .speaker-voice-meter i {
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: var(--teal);
  transform: scaleY(0.35);
}
.stage[data-course="xianglug4"].is-speaking .speaker-voice-meter i {
  animation: xiangluVoiceBar 720ms ease-in-out infinite alternate;
}
.stage[data-course="xianglug4"] .speaker-voice-meter i:nth-child(2) { animation-delay: -180ms; }
.stage[data-course="xianglug4"] .speaker-voice-meter i:nth-child(3) { animation-delay: -420ms; }
.stage[data-course="xianglug4"] .speaker-voice-meter i:nth-child(4) { animation-delay: -300ms; }
@keyframes xiangluVoiceBar {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stage[data-course="xianglug4"].is-speaking .speaker-voice-meter i {
    animation: none;
    transform: scaleY(0.7);
  }
}

/* Reviewed comic seasons: outline rings only, no lighting or image animation. */
.stage.is-clean-scene-preview .role-light,
.stage.is-clean-scene-preview .scene-shade {
  display: none !important;
}
.stage.is-clean-scene-preview:not(.has-intro) .scene-art {
  filter: none !important;
  animation: none !important;
  transition: none !important;
}
.stage.is-clean-scene-preview .talk-effect span {
  left: var(--talk-x, 50%) !important;
  top: var(--talk-y, 36%) !important;
  width: 64px !important;
  height: 64px !important;
  border: 2.5px solid rgba(105, 240, 219, 1) !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  animation: previewTalkRing 1.5s ease-out infinite !important;
}
.stage.is-clean-scene-preview .talk-effect {
  z-index: 0;
}
@keyframes previewTalkRing {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.65); }
  75% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}
.stage.is-clean-scene-preview .talk-effect span:nth-child(2) {
  animation-delay: 0.55s !important;
}
.stage.is-clean-scene-preview .talk-effect span:nth-child(3) {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-clean-scene-preview .talk-effect span {
    animation: none !important;
    opacity: 0.3;
    transform: translate(-50%, -50%);
  }
  .stage.is-clean-scene-preview .talk-effect span:nth-child(2) { display: none !important; }
}

/* School dialogue cues must not brighten or flash the underlying artwork. */
.stage[data-course="school"]:not(.has-intro) .scene-art {
  filter: none !important;
  animation: none !important;
}

.stage[data-course="school"] .role-light {
  opacity: 0 !important;
}

.stage[data-course="school"] .talk-effect span {
  width: clamp(32px, var(--talk-size, 42px), 56px);
  height: clamp(32px, var(--talk-size, 42px), 56px);
  border: 1px solid rgba(88, 215, 198, 0.55);
  background: transparent;
  box-shadow: none;
  animation: schoolTalkRing 1.5s ease-out infinite;
}

.stage[data-course="school"] .talk-effect span:nth-child(2) {
  animation-delay: 0.55s;
}

.stage[data-course="school"] .talk-effect span:nth-child(3) {
  display: none;
}

@keyframes schoolTalkRing {
  from { opacity: 0.45; transform: translate(-50%, -50%) scale(0.65); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-course="school"] .talk-effect span {
    animation: none;
    opacity: 0.3;
    transform: translate(-50%, -50%);
  }
  .stage[data-course="school"] .talk-effect span:nth-child(2) { display: none; }
}

/* Keep the supplied Lili comic artwork bright and color-accurate. */
.stage[data-course="lililvyou"] .scene-art,
.stage[data-course="lililvyou"].is-speaking .scene-art,
.stage[data-course="lililvyou"].is-speaking[data-emotion] .scene-art {
  filter: none !important;
  animation: none !important;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.34),
    0 0 0 999px rgba(4, 3, 6, 0.08) !important;
}

.stage[data-course="lililvyou"].has-intro .scene-art {
  filter: blur(2px) brightness(0.86) !important;
}

.stage[data-course="lililvyou"] .scene-shade {
  background: transparent !important;
}

.stage[data-course="lililvyou"] .role-light {
  opacity: 0 !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
  background: #0e0c10;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

[hidden] {
  display: none !important;
}

.product-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: clamp(252px, 14.5vw, 282px) minmax(0, 1fr);
  color: #152033;
  background:
    linear-gradient(135deg, rgba(255, 236, 188, 0.5), transparent 34%),
    linear-gradient(45deg, rgba(88, 215, 198, 0.22), transparent 42%),
    #f4f7fb;
}

.product-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100svh;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid rgba(42, 63, 90, 0.1);
  box-shadow: 12px 0 40px rgba(67, 91, 122, 0.08);
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 8px;
  color: #121827;
  background: transparent;
  border-radius: 14px;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: 25px;
  font-weight: 900;
  text-align: left;
}

.product-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #111827;
  background: linear-gradient(135deg, #ffe587, #5de0d0);
  border: 2px solid #ffffff;
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(36, 188, 173, 0.24);
  font-size: 18px;
}

.product-nav {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.nav-group-label {
  margin: 10px 8px 0;
  color: #92a0b3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.product-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #526173;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
}

.product-nav-item svg,
.back-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-nav-item:hover,
.product-nav-item.is-active {
  color: #111827;
  background: #e8f2ff;
  border-color: rgba(56, 112, 255, 0.22);
  box-shadow: 0 10px 24px rgba(54, 108, 233, 0.12);
}

.sidebar-card {
  margin-top: 28px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 225, 141, 0.42), rgba(255, 255, 255, 0.9)),
    #fff;
  border: 1px solid rgba(241, 199, 107, 0.36);
  border-radius: 16px;
}

.sidebar-card span,
.product-kicker,
.course-card-body span,
.unlock-note {
  color: #6d7a90;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 26px;
}

.sidebar-card p {
  margin-top: 8px;
  color: #607086;
  font-size: 13px;
  line-height: 1.55;
}

.product-main {
  min-width: 0;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px clamp(16px, 2vw, 26px) 40px;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 17px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.1);
}

body[data-screen="video"] .product-main {
  width: min(100%, 1120px);
  padding-top: 8px;
}

body[data-screen="video"] .product-top {
  display: none;
}

body[data-screen="video"] .video-lesson-head {
  align-items: center;
  margin: 0 auto 8px;
  padding: 10px 12px;
  width: min(100%, 1080px);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(87, 109, 140, 0.09);
}

body[data-screen="video"] .video-lesson-head .product-kicker {
  margin: 0;
  font-size: 12px;
}

body[data-screen="video"] .video-lesson-head h2 {
  margin-top: 2px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.1;
}

body[data-screen="video"] .video-lesson-actions .ghost-action,
body[data-screen="video"] .video-lesson-actions .solid-action {
  min-height: 38px;
  padding: 0 14px;
}

body[data-screen="video"] .video-lesson-page {
  gap: 8px;
}

.product-top h1,
.home-hero h2,
.section-head h2,
.course-detail-copy h2,
.placeholder-panel h2 {
  margin: 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  overflow: visible;
  text-shadow: none;
  text-overflow: clip;
  white-space: normal;
  -webkit-text-stroke: 0;
}

.product-top h1 {
  margin-top: 4px;
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.18;
}

.product-actions,
.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-feedback-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-feedback-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.solid-action,
.ghost-action,
.text-action,
.category-chip,
.back-link {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-weight: 850;
}

.solid-action {
  color: #06120f;
  background: linear-gradient(180deg, #76eee2, #48d6c7);
  border: 1px solid rgba(43, 183, 169, 0.44);
  box-shadow: 0 14px 28px rgba(42, 199, 183, 0.22);
}

.ghost-action,
.text-action,
.category-chip,
.back-link {
  color: #243149;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
}

.ghost-action.is-favorite {
  color: #241400;
  background: linear-gradient(180deg, #ffe58e, #ffd165);
  border-color: rgba(223, 162, 39, 0.42);
  box-shadow: 0 12px 24px rgba(223, 162, 39, 0.18);
}

.text-action {
  color: #1e67e8;
  box-shadow: none;
}

.back-link {
  margin-bottom: 14px;
}

.solid-action:hover,
.ghost-action:hover,
.text-action:hover,
.category-chip:hover,
.back-link:hover {
  transform: translateY(-1px);
}

.product-view {
  display: none;
}

.product-view.is-active {
  display: block;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.66fr);
  gap: 16px;
  align-items: stretch;
}

.home-hero-copy,
.hero-preview,
.market-panel,
.course-detail,
.episode-panel,
.placeholder-panel,
.stat-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.1);
}

.home-hero-copy {
  padding: clamp(22px, 2.5vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 230, 121, 0.36), rgba(255, 255, 255, 0.64) 48%),
    linear-gradient(45deg, rgba(255, 79, 216, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.9);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #111827;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.home-hero h2 {
  max-width: 580px;
  margin-top: 16px;
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1.1;
}

.home-hero p {
  max-width: 560px;
  margin-top: 14px;
  color: #526173;
  font-size: 15px;
  line-height: 1.68;
}

.hero-actions {
  margin-top: 20px;
}

.hero-preview {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #10131b;
}

.hero-preview img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-line {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(10, 11, 16, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(14px);
}

.hero-line span {
  color: #58d7c6;
  font-size: 13px;
  font-weight: 900;
}

.hero-line strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.hero-line p {
  margin-top: 8px;
  color: #fff2c9;
  font-size: 15px;
  line-height: 1.35;
}

.home-conversion-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 48%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.32), transparent 56%),
    #ffffff;
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.1);
}

.home-conversion-strip span,
.home-conversion-strip strong {
  display: block;
}

.home-conversion-strip span {
  color: #087a71;
  font-size: 12px;
  font-weight: 950;
}

.home-conversion-strip strong {
  margin-top: 4px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.home-conversion-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  padding: 15px;
  overflow: hidden;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: #111827;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1;
}

.stat-card p {
  margin-top: 10px;
  color: #728197;
  font-size: 13px;
}

.referral-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.26), transparent 48%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.5), rgba(255, 255, 255, 0.86)),
    #ffffff;
  border: 1px solid rgba(88, 215, 198, 0.32);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(87, 109, 140, 0.12);
}

.referral-banner[hidden] {
  display: none;
}

.referral-banner span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #06120f;
  background: #58d7c6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.referral-banner strong,
.referral-banner p {
  display: block;
}

.referral-banner strong {
  margin-top: 8px;
  color: #111827;
  font-size: 20px;
}

.referral-banner p {
  margin-top: 6px;
  color: #536176;
  font-size: 14px;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 11px;
}

.section-head h2 {
  margin-top: 5px;
  font-size: clamp(20px, 1.8vw, 26px);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.category-chip.is-active {
  color: #06120f;
  background: #ffe27a;
  border-color: rgba(241, 199, 107, 0.5);
}

.tool-entry-chip {
  color: #052f2b;
  background: linear-gradient(135deg, #5eead4, #ffe27a);
  border-color: rgba(20, 184, 166, 0.34);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.16);
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr repeat(2, minmax(230px, 0.78fr));
  gap: 14px;
}

.course-grid-compact {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.course-card {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(45, 133, 118, 0.42);
  box-shadow: 0 22px 52px rgba(67, 100, 133, 0.17);
  outline: none;
}

.course-card.is-favorite::after {
  content: "已收藏";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #191000;
  background: linear-gradient(180deg, #ffe78f, #ffd36b);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(96, 65, 10, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.course-card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  background: #10131b;
}

.course-card video {
  width: 100%;
  height: 152px;
  object-fit: cover;
  background: #10131b;
  display: block;
}

.video-course-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  width: 100%;
  height: 152px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 72% 22%, rgba(90, 215, 199, 0.44), transparent 28%),
    linear-gradient(135deg, #1b2440 0%, #10131b 52%, #251539 100%);
}

.video-course-placeholder span {
  justify-self: center;
  padding: 4px 10px;
  color: #08100f;
  background: #58d7c6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.video-course-placeholder strong {
  font-size: 22px;
  font-weight: 950;
}

.course-card.is-featured img {
  height: 198px;
}

.course-card.is-featured video {
  height: 198px;
}

.course-card.is-featured .video-course-placeholder {
  height: 198px;
}

.course-card.is-coming-soon {
  cursor: default;
}

.course-card.is-coming-soon:hover,
.course-card.is-coming-soon:focus-visible {
  transform: none;
}

.course-card-body {
  padding: 16px;
}

.course-card-body h3 {
  margin: 7px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.course-card-body p {
  margin-top: 9px;
  min-height: 66px;
  color: #59687c;
  font-size: 14px;
  line-height: 1.6;
}

.course-empty {
  margin-top: 14px;
  padding: 24px;
  color: #243149;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.24), rgba(88, 215, 198, 0.18)),
    rgba(255, 255, 255, 0.88);
  border: 1px dashed rgba(42, 63, 90, 0.18);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(87, 109, 140, 0.08);
}

.course-empty strong {
  display: block;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: 21px;
  font-weight: 900;
}

.course-empty p {
  max-width: 520px;
  margin: 8px auto 0;
  color: #607086;
  font-size: 14px;
  line-height: 1.7;
}

.video-catalog-page {
  display: grid;
  gap: 16px;
}

.video-catalog-head {
  align-items: center;
  padding: clamp(18px, 2vw, 24px);
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), rgba(255, 226, 122, 0.18)),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(87, 109, 140, 0.1);
}

.video-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.video-course-card.is-featured {
  grid-column: span 2;
}

.video-course-card.is-featured img,
.video-course-card.is-featured video,
.video-course-card.is-featured .video-course-placeholder {
  height: 220px;
}

.video-tool-card .video-course-placeholder {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 226, 122, 0.5), transparent 30%),
    linear-gradient(135deg, #063833 0%, #0c5b53 54%, #1f3b62 100%);
}

.video-lesson-page {
  display: grid;
  gap: 14px;
}

.video-lesson-head {
  margin-bottom: 0;
}

.video-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.local-video-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: center;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(18px, 2.2vw, 26px);
  background:
    radial-gradient(circle at 7% 14%, rgba(88, 215, 198, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 226, 122, 0.18), rgba(255, 255, 255, 0.9) 44%, rgba(221, 252, 247, 0.92));
  border: 1px solid rgba(88, 215, 198, 0.34);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(87, 109, 140, 0.13);
}

.local-video-tool-copy {
  display: grid;
  gap: 8px;
}

.local-video-tool-copy h3 {
  margin: 0;
  color: #0f172a;
  font-family: "Microsoft YaHei", "YouYuan", sans-serif;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 950;
  line-height: 1.18;
}

.local-video-tool-copy p {
  max-width: 620px;
  margin: 0;
  color: #526179;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.local-video-limit-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  color: #14312b;
  background: linear-gradient(135deg, rgba(255, 226, 122, 0.86), rgba(88, 215, 198, 0.72));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.4;
}

.local-video-upload-grid {
  display: grid;
  gap: 10px;
}

.local-video-file {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #111827;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(42, 63, 90, 0.22);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.local-video-file span {
  color: #152033;
  font-size: 13px;
  font-weight: 950;
}

.local-video-file input {
  width: 100%;
  color: #526179;
  font-size: 13px;
  font-weight: 800;
}

.local-video-file input::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 0 16px;
  color: #071310;
  background: #58d7c6;
  border: 0;
  border-radius: 999px;
  font-weight: 950;
  cursor: pointer;
}

.local-video-action-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.local-video-action-row small {
  color: #526179;
  font-size: 12px;
  font-weight: 900;
}

.local-video-ai-button {
  flex: 0 1 auto;
  min-height: 40px;
  padding: 0 18px;
  color: #071310;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(88, 215, 198, 0.24);
  font-weight: 950;
  cursor: pointer;
}

.local-video-download-button {
  flex: 0 1 auto;
  min-height: 40px;
  padding: 0 18px;
  color: #152033;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(42, 63, 90, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(87, 109, 140, 0.11);
  font-weight: 950;
  cursor: pointer;
}

.local-video-download-button:disabled {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  cursor: not-allowed;
}

.local-video-ai-button:disabled {
  color: #8290a4;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
  cursor: not-allowed;
}

.local-video-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  color: #607086;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.local-video-status.is-ok {
  color: #006f61;
  background: rgba(88, 215, 198, 0.22);
  border-color: rgba(88, 215, 198, 0.42);
}

.local-video-status.is-error {
  color: #9a3412;
  background: rgba(255, 226, 122, 0.22);
  border-color: rgba(251, 146, 60, 0.34);
}

.video-lesson-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.video-stage-card,
.video-drill-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.video-stage-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 226, 122, 0.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(88, 215, 198, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(8, 12, 22, 0.46)),
    rgba(14, 18, 28, 0.62);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 54px rgba(5, 9, 16, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  background-clip: padding-box;
  backdrop-filter: blur(18px) saturate(1.15);
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 6;
  max-height: min(34vh, 330px);
  overflow: hidden;
  background: #05070d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070d;
  display: block;
}

body[data-screen="video"] .video-frame {
  max-height: min(32vh, 300px);
}

.video-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 10px;
  color: #10131b;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 226, 122, 0.32), transparent 30%),
    rgba(3, 5, 10, 0.34);
  border: 0;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.video-start-overlay[hidden] {
  display: none;
}

.video-start-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  color: #121019;
  background: linear-gradient(180deg, #fff1a8, #58d7c6);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 0 8px rgba(88, 215, 198, 0.12);
  font-family: "Microsoft YaHei", "YouYuan", sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 950;
}

.video-start-overlay small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.58);
}

.video-frame-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.video-frame-label span,
.video-frame-label strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #06120f;
  background: rgba(88, 215, 198, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.video-frame-label [hidden] {
  display: none;
}

.video-frame-label strong {
  color: #221400;
  background: rgba(255, 226, 122, 0.94);
}

.video-subtitle-mask {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 2.5%;
  z-index: 2;
  height: 15%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 50%, rgba(88, 215, 198, 0.22), transparent 35%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.58), rgba(4, 7, 14, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(7px);
}

.video-subtitle-mask[hidden] {
  display: none;
}

.video-hover-controls {
  position: absolute;
  left: 50%;
  bottom: 54px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: none;
}

.video-frame:has(:focus-visible) .video-hover-controls,
.video-hover-controls.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (pointer: fine) {
  .video-frame:hover .video-hover-controls { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
}
.video-start-overlay small:empty { display: none; }

.video-hover-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  color: #ffffff;
  background: rgba(12, 25, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.video-hover-button:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 215, 198, 0.64);
  background: #20483f;
}

.video-hover-button:focus-visible { outline: 2px solid #ffe27a; outline-offset: 3px; }

.video-hover-button.primary {
  color: #06120f;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border-color: rgba(255, 255, 255, 0.5);
}

.video-hover-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-hover-button.primary .icon-play path {
  fill: currentColor;
  stroke: none;
}

.video-toggle-icon.icon-pause {
  display: none;
}

.video-hover-button.is-playing .icon-play {
  display: none;
}

.video-hover-button.is-playing .icon-pause {
  display: block;
}

.video-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 980px);
  min-height: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.video-progress-row input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  accent-color: #58d7c6;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.video-progress-row input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background:
    linear-gradient(90deg, #58d7c6 var(--video-progress, 0%), rgba(255, 255, 255, 0.16) var(--video-progress, 0%));
  border-radius: 999px;
}

.video-progress-row input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6px;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  -webkit-appearance: none;
}

.video-progress-row input[type="range"]::-moz-range-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.video-progress-row input[type="range"]::-moz-range-progress {
  height: 8px;
  background: #58d7c6;
  border-radius: 999px;
}

.video-progress-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.video-under-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 980px);
}

.video-under-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.video-under-button:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 215, 198, 0.58);
  background: rgba(88, 215, 198, 0.16);
}

.video-under-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-under-button.primary {
  color: #06120f;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 26px rgba(88, 215, 198, 0.25);
}

.video-under-button.is-active:not(.primary) {
  color: #08140f;
  background: rgba(255, 226, 122, 0.92);
  border-color: rgba(255, 255, 255, 0.48);
}

.video-preview-subtitle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: min(100%, 980px);
  height: 78px;
  padding: 10px 20px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(5, 8, 15, 0.68)),
    rgba(5, 8, 15, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: "Microsoft YaHei", "YouYuan", sans-serif;
  text-align: center;
  backdrop-filter: blur(14px);
}

.video-preview-subtitle.is-empty {
  color: transparent;
}

.video-preview-subtitle[hidden] {
  display: none;
}

.video-subtitle-en {
  color: #fff2ad;
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 760;
  line-height: 1.35;
}

.video-subtitle-cn {
  color: #f9fffe;
  font-size: clamp(15px, 1.55vw, 21px);
  font-weight: 900;
  line-height: 1.42;
}

.video-subtitle-placeholder {
  min-height: 48px;
}

#videoLessonNote {
  width: min(100%, 1040px);
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.video-drill-card {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 390px;
  padding: clamp(20px, 2.5vw, 34px);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 226, 122, 0.2), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(88, 215, 198, 0.18), transparent 34%),
    #11131c;
}

.video-drill-card.is-previewing {
  min-height: 230px;
  align-content: center;
}

.video-drill-card.is-previewing .video-answer-box,
.video-drill-card.is-previewing .video-hint-panel,
.video-drill-card.is-previewing .video-control-dock {
  display: none;
}

.video-drill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-drill-top span,
.video-drill-top strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.video-drill-top span {
  color: #06120f;
  background: #58d7c6;
}

.video-drill-top strong {
  color: #281900;
  background: #ffe27a;
}

.video-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  color: #06120f;
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(88, 215, 198, 0.18);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.video-mode-toggle.is-read {
  background: linear-gradient(135deg, #ff7bc8, #ffe27a);
}

.video-line-copy {
  text-align: center;
}

.video-line-copy p {
  margin: 0 auto;
  max-width: 760px;
  color: #ffffff;
  font-family: "Microsoft YaHei", "YouYuan", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.24;
}

.video-line-copy small {
  display: block;
  min-height: 22px;
  margin-top: 12px;
  color: #9deee5;
  font-size: 13px;
  font-weight: 800;
}

.video-answer-box {
  position: relative;
  z-index: 1;
  min-height: 96px;
  padding: 10px;
  background: transparent;
}

.video-answer-box .word-line {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 14px 10px;
  max-width: 100%;
}

.video-read-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 126px;
  padding: 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 226, 122, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(88, 215, 198, 0.16), rgba(255, 123, 200, 0.1)),
    rgba(4, 6, 11, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
}

.video-read-panel[hidden] {
  display: none;
}

.video-read-mic {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  color: #07120f;
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 10px rgba(88, 215, 198, 0.12), 0 20px 38px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.video-read-mic.is-recording {
  color: #1a0611;
  background: linear-gradient(135deg, #ff7bc8, #ffe27a);
  box-shadow: 0 0 0 12px rgba(255, 123, 200, 0.16), 0 20px 42px rgba(255, 123, 200, 0.26);
}

.video-read-mic:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.video-read-mic.is-recording:disabled {
  opacity: 1;
}

.video-read-mic svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-read-mic span {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(88, 215, 198, 0.58);
  border-radius: inherit;
  animation: readPulse 1.6s ease-out infinite;
}

.video-read-mic span:nth-of-type(2) {
  animation-delay: 0.45s;
}

.video-read-panel strong {
  display: block;
  color: #fff8cb;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.3;
}

.video-read-panel p {
  max-width: 560px;
  margin-top: 8px;
  color: #cbe8e5;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.video-read-score {
  width: min(100%, 560px);
  margin-top: 12px;
  padding: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 226, 122, 0.28), transparent 30%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.video-read-score[hidden] {
  display: none;
}

.video-read-score.is-good {
  border-color: rgba(88, 215, 198, 0.48);
  box-shadow: 0 18px 42px rgba(88, 215, 198, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.video-read-score.is-try {
  border-color: rgba(255, 226, 122, 0.44);
}

.video-read-score-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
}

.video-read-score-head strong {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #07120f;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
}

.video-read-score-head span {
  color: #fff8cb;
  font-size: 20px;
  font-weight: 950;
}

.video-read-score-head small {
  color: #d9f5f1;
  font-size: 13px;
  font-weight: 800;
}

.video-read-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.video-read-score-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  color: #cbe8e5;
  background: rgba(3, 5, 10, 0.3);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
}

.video-read-score-grid b {
  color: #58d7c6;
  font-size: 18px;
}

@keyframes readPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.78);
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

.video-hint-panel .hint-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.video-hint-panel .hint-heading button { width:36px; height:36px; border:1px solid #506166; border-radius:50%; background:transparent; color:#eefafa; font-size:22px; cursor:pointer; }
.video-hint-panel .hint-audio-tools { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.video-hint-panel .hint-audio-tools button { padding:8px 14px; border:1px solid #47766e; border-radius:18px; background:#163d3b; color:#c3fff2; font-size:14px; cursor:pointer; }
.video-hint-panel .hint-chunks { display:flex; flex-wrap:wrap; gap:8px; }
.video-hint-panel .hint-chunks button { padding:10px 14px; border:1px solid #354c51; border-radius:10px; background:#17252b; color:#f5fafb; text-align:left; cursor:pointer; }
.video-hint-panel .hint-chunks b { display:block; font-size:18px; line-height:1.4; }
.video-hint-panel .hint-chunks small { display:block; margin-top:5px; color:#b6d6d2; font-size:14px; }
.video-hint-panel .hint-caption { color:#aabdbf; font-size:12px; }
.video-hint-panel details { margin-top:12px; border-top:1px solid #35464c; padding-top:12px; }
.video-hint-panel summary { cursor:pointer; color:#d2fff4; font-size:14px; }
.video-hint-panel details p { white-space:pre-line; }
.video-hint-panel .hint-transcript { padding:10px 12px; border-left:3px solid #f0cd76; background:#ffffff08; overflow-wrap:anywhere; }
.video-hint-panel .hint-audio-status:empty { display:none; }
.video-hint-panel button:disabled { opacity:.5; cursor:default; }
.video-hint-panel button:focus-visible, .video-hint-panel summary:focus-visible { outline:2px solid #75e8d6; outline-offset:3px; }
.video-hint-panel {
  position: relative;
  z-index: 1;
  padding: 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), transparent 48%),
    rgba(4, 6, 11, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.video-hint-panel span {
  color: #58d7c6;
  font-size: 12px;
  font-weight: 950;
}

.video-hint-panel strong {
  display: block;
  margin-top: 8px;
  color: #fff8cb;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.3;
}

.video-hint-panel p {
  margin-top: 8px;
  color: #d9e5f2;
  font-size: 14px;
  line-height: 1.65;
}

.video-success-layer {
  position: absolute;
  inset: 0;
}

.video-control-dock {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 10px;
  padding: 10px;
  background: rgba(2, 3, 8, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.video-focus-line {
  margin: 0;
  color: #9deee5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.course-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.course-meta strong,
.detail-tags span {
  padding: 6px 10px;
  color: #243149;
  background: #eef5ff;
  border-radius: 999px;
  font-size: 12px;
}

.course-progress {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.course-progress div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6d7a90;
  font-size: 13px;
  font-weight: 800;
}

.course-progress strong {
  color: #16a394;
}

.course-progress i {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #e8eef7;
  border-radius: 999px;
}

.course-progress i::before {
  content: "";
  display: block;
  width: var(--course-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #58d7c6, #ffe27a, #ff7bc8);
  border-radius: inherit;
  transition: width 260ms ease;
}

.market-panel,
.episode-panel,
.placeholder-panel {
  padding: 18px;
}

.market-panel .section-head,
.episode-panel .section-head {
  margin-top: 0;
}

.course-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.course-detail-cover {
  overflow: hidden;
  min-height: 250px;
  border-radius: 16px;
  background: #10131b;
}

.course-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.course-detail-copy {
  align-self: center;
}

.course-detail-copy h2 {
  margin-top: 14px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
}

.course-detail-copy p {
  max-width: 660px;
  margin-top: 14px;
  color: #526173;
  font-size: 16px;
  line-height: 1.68;
}

.locked-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(255, 61, 242, 0.18), transparent 42%),
    linear-gradient(45deg, rgba(88, 215, 198, 0.2), transparent 50%),
    #151925;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(16, 24, 39, 0.18);
}

.locked-teaser .product-kicker {
  color: #ffe27a;
}

.locked-teaser h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 900;
}

.locked-teaser p {
  max-width: 760px;
  margin-top: 10px;
  color: #e6edf7;
  font-size: 15px;
  line-height: 1.68;
}

.teaser-preview {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-top: 14px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #58d7c6;
  border-radius: 14px;
}

.teaser-preview strong {
  color: #fff4c9;
  font-size: 18px;
}

.teaser-preview span {
  color: #cbd6e6;
  font-size: 13px;
}

.teaser-value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.teaser-value-grid span {
  padding: 7px 10px;
  color: #0b151b;
  background: #58d7c6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.teaser-actions {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.teaser-offer-card {
  padding: 14px;
  color: #fff7e4;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}

.teaser-offer-card span {
  display: inline-flex;
  padding: 4px 8px;
  color: #111827;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.teaser-offer-card strong {
  display: block;
  margin-top: 9px;
  color: #ffffff;
  font-size: 17px;
}

.teaser-offer-card p {
  margin-top: 6px;
  color: #cbd6e6;
  font-size: 12px;
  line-height: 1.55;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.episode-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 13px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 16px;
  text-align: left;
}

.episode-copy { min-width: 0; }
.episode-item.has-textbook-reference h3 { white-space: normal; line-height: 1.4; }
.episode-textbook-location, .episode-textbook-section { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.episode-textbook-location { color: #1e6c63; font-weight: 700; margin-top: 5px; }
.episode-textbook-location.is-planned { color: #65738a; font-weight: 500; }
.episode-textbook-section { color: #526375; margin-top: 2px; }
.textbook-guide { margin: 10px 0 14px; padding: 10px 14px; background: #eff8f6; border: 1px solid #d7e9e5; border-radius: 12px; color: #46645e; font-size: 12px; line-height: 1.6; }
.textbook-guide[hidden], .practice-textbook-reference[hidden] { display: none; }
.textbook-guide p { margin: 0; }
.textbook-guide summary { cursor: pointer; color: #166f63; font-weight: 700; margin-top: 4px; }
.textbook-guide summary:focus-visible { outline: 2px solid #168573; outline-offset: 3px; border-radius: 3px; }
.textbook-guide-row { padding: 10px 0; border-bottom: 1px solid #d7e9e5; overflow-wrap: anywhere; }
.textbook-guide-row strong { display: block; color: #274a43; margin-bottom: 4px; }
.textbook-guide-row small { display: block; color: #60736e; font-size: 12px; margin-top: 4px; }
.textbook-guide details > p { margin-top: 10px; }
.practice-textbook-reference { margin: 5px 0 0; color: #c4d9d2; font-size: 11px; font-weight: 500; line-height: 1.45; }
.stage.is-light-mode .practice-textbook-reference { color: #37675c; }

.episode-item.is-open {
  background:
    linear-gradient(90deg, rgba(88, 215, 198, 0.18), rgba(255, 255, 255, 0.96)),
    #f7faff;
  border-color: rgba(88, 215, 198, 0.34);
}

.episode-item.is-locked {
  background:
    linear-gradient(90deg, rgba(255, 226, 122, 0.16), rgba(255, 255, 255, 0.96)),
    #fffaf0;
  border-color: rgba(241, 199, 107, 0.34);
}

.episode-item.is-unlocked {
  background:
    linear-gradient(90deg, rgba(88, 215, 198, 0.2), rgba(255, 226, 122, 0.16), rgba(255, 255, 255, 0.96)),
    #f4fffb;
  border-color: rgba(88, 215, 198, 0.42);
}

.episode-item.is-unlocked .episode-index {
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
}

.episode-item.is-planned {
  color: #728197;
  background: #f7f8fb;
}

.episode-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(87, 109, 140, 0.12);
}

.episode-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #06120f;
  background: #ffe27a;
  border-radius: 14px;
  font-weight: 900;
}

.episode-item h3 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.episode-item p {
  margin-top: 4px;
  color: #728197;
  font-size: 12px;
}

.episode-lock {
  color: #9aa6b8;
  font-size: 13px;
  font-weight: 800;
}

.episode-item.is-open .episode-lock {
  color: #16a394;
}

.episode-item.is-locked .episode-lock {
  color: #d07a00;
}

.episode-item.is-unlocked .episode-lock {
  color: #16a394;
}

.placeholder-panel {
  max-width: 680px;
  margin: 80px auto 0;
  text-align: center;
}

.placeholder-panel h2 {
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 46px);
}

.placeholder-panel p {
  margin: 12px auto 22px;
  color: #59687c;
  font-size: 16px;
  line-height: 1.75;
}

.legal-page {
  display: grid;
  gap: 18px;
}

.legal-hero,
.legal-document,
.legal-tabs {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.1);
}

.legal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(255, 226, 122, 0.22), transparent 46%),
    #ffffff;
}

.legal-hero h2 {
  max-width: 860px;
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 950;
  line-height: 1.12;
}

.legal-hero p {
  max-width: 920px;
  margin-top: 12px;
  color: #536072;
  font-size: 15px;
  line-height: 1.75;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-tabs {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.legal-tab {
  min-height: 44px;
  padding: 0 14px;
  color: #526173;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.legal-tab:hover,
.legal-tab.is-active {
  color: #06120f;
  background: linear-gradient(135deg, #ffe27a, #58d7c6);
  border-color: rgba(88, 215, 198, 0.36);
}

.legal-document {
  padding: 26px;
}

.legal-document h2 {
  margin: 10px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
}

.legal-body {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.legal-block {
  padding: 18px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.legal-block strong {
  display: block;
  color: #111827;
  font-size: 17px;
}

.legal-block p,
.legal-block li {
  color: #59687c;
  font-size: 14px;
  line-height: 1.75;
}

.legal-block p {
  margin-top: 8px;
}

.legal-block ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.my-dashboard {
  display: grid;
  gap: 18px;
}

.profile-card,
.learning-panel,
.member-panel,
.today-plan-panel,
.review-panel,
.study-calendar-panel,
.product-modal {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.profile-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #111827;
  background:
    linear-gradient(135deg, #ffe27a, #58d7c6 56%, #ff88d7);
  border: 4px solid #fff;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(88, 215, 198, 0.28);
  font-size: 28px;
  font-weight: 900;
}

.profile-card h2,
.learning-panel h2,
.member-panel h2,
.product-modal h2 {
  margin: 5px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-card h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.profile-card p,
.member-panel p,
.product-modal p {
  margin-top: 8px;
  color: #59687c;
  font-size: 15px;
  line-height: 1.7;
}

.my-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.learning-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.7fr);
  gap: 16px;
}

.my-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.learning-panel,
.member-panel,
.today-plan-panel,
.review-panel,
.study-calendar-panel {
  padding: 20px;
}

.learning-panel .section-head,
.today-plan-panel .section-head,
.review-panel .section-head,
.study-calendar-panel .section-head {
  margin-top: 0;
}

.calendar-month {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #06120f;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-summary div {
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.14), rgba(255, 255, 255, 0.95)),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.calendar-summary span,
.calendar-summary strong {
  display: block;
}

.calendar-summary span {
  color: #66758a;
  font-size: 12px;
  font-weight: 900;
}

.calendar-summary strong {
  margin-top: 7px;
  color: #111827;
  font-size: 23px;
  line-height: 1;
}

.study-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday,
.calendar-empty-day,
.calendar-day {
  min-height: 54px;
  border-radius: 16px;
}

.calendar-weekday {
  display: grid;
  place-items: center;
  min-height: 30px;
  color: #8a97aa;
  font-size: 12px;
  font-weight: 950;
}

.calendar-day {
  display: grid;
  gap: 4px;
  place-items: center;
  color: #728197;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
}

.calendar-day strong,
.calendar-day span {
  display: block;
}

.calendar-day strong {
  color: #34445c;
  font-size: 16px;
}

.calendar-day span {
  min-height: 14px;
  color: #8a97aa;
  font-size: 11px;
  font-weight: 850;
}

.calendar-day.is-studied {
  color: #06120f;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.24), rgba(255, 226, 122, 0.32)),
    #ffffff;
  border-color: rgba(88, 215, 198, 0.36);
  box-shadow: 0 10px 24px rgba(88, 215, 198, 0.14);
}

.calendar-day.is-studied span {
  color: #16a394;
}

.calendar-day.is-today {
  border-color: rgba(255, 159, 28, 0.5);
  outline: 2px solid rgba(255, 226, 122, 0.34);
}

.continue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), rgba(255, 255, 255, 0.94)),
    #f7faff;
  border: 1px solid rgba(88, 215, 198, 0.24);
  border-radius: 18px;
}

.continue-card h3 {
  margin: 6px 0 0;
  color: #111827;
  font-size: 20px;
}

.continue-card p {
  margin-top: 6px;
  color: #5f6f84;
  font-size: 14px;
  line-height: 1.55;
}

.task-list,
.review-list {
  display: grid;
  gap: 10px;
}

.task-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.task-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-item strong {
  color: #111827;
  font-size: 15px;
}

.task-item span {
  color: #607086;
  font-size: 13px;
  font-weight: 850;
}

.task-item i {
  display: block;
  overflow: hidden;
  height: 8px;
  background: #e8eef7;
  border-radius: 999px;
}

.task-item i::before {
  content: "";
  display: block;
  width: var(--task-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #58d7c6, #ffe27a);
  border-radius: inherit;
}

.task-item.is-gold i::before {
  background: linear-gradient(90deg, #ffe27a, #ff9f1c);
}

.task-item.is-pink i::before {
  background: linear-gradient(90deg, #ff88d7, #8b74ff);
}

.review-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
  text-align: left;
}

.review-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(87, 109, 140, 0.12);
}

.review-row > span:first-child {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: #111827;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.review-row strong,
.review-row em {
  display: block;
}

.review-row strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.review-row em {
  margin-top: 4px;
  color: #6d7a90;
  font-size: 13px;
  font-style: normal;
}

.review-empty {
  padding: 16px;
  color: #66758a;
  background: #f7faff;
  border: 1px dashed rgba(42, 63, 90, 0.18);
  border-radius: 16px;
  font-size: 14px;
}

.my-course-list {
  display: grid;
  gap: 12px;
}

.my-course-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
  text-align: left;
}

.my-course-row.is-favorite {
  background:
    linear-gradient(90deg, rgba(255, 226, 122, 0.22), rgba(255, 255, 255, 0.94)),
    #fffaf0;
  border-color: rgba(241, 199, 107, 0.34);
}

.my-course-row img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: #10131b;
}

.my-course-row h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
}

.my-course-row p {
  margin-top: 6px;
  color: #6d7a90;
  font-size: 13px;
}

.review-dashboard {
  display: grid;
  gap: 18px;
}

.review-hero,
.review-score-card,
.review-bank-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.32fr);
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 40%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.38), transparent 62%),
    rgba(255, 255, 255, 0.92);
}

.review-hero h2 {
  max-width: 760px;
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 1.08;
}

.review-hero p {
  max-width: 720px;
  margin-top: 12px;
  color: #526173;
  font-size: 16px;
  line-height: 1.75;
}

.review-score-card {
  display: grid;
  align-content: center;
  min-height: 170px;
  padding: 18px;
  color: #fff7e4;
  background:
    linear-gradient(145deg, rgba(88, 215, 198, 0.2), transparent 46%),
    #151925;
}

.review-score-card span {
  color: #8ee8dd;
  font-size: 13px;
  font-weight: 900;
}

.review-score-card strong {
  margin-top: 10px;
  color: #ffe27a;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
}

.review-score-card p {
  color: #d8e1ee;
  font-size: 14px;
}

.review-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.review-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-bank-card {
  padding: 20px;
}

.review-bank-card .section-head {
  margin-top: 0;
}

.review-bank-card h2 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.review-bank-list {
  display: grid;
  gap: 10px;
}

.review-deck-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
  text-align: left;
}

.review-deck-row:hover,
.word-review-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(87, 109, 140, 0.12);
}

.review-deck-row > span:first-child {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: #06120f;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.review-deck-row strong,
.review-deck-row em,
.review-deck-row i {
  display: block;
}

.review-deck-row strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.review-deck-row em {
  margin-top: 5px;
  color: #5f6e82;
  font-size: 14px;
  font-style: normal;
}

.review-deck-row i {
  margin-top: 9px;
  color: #16a394;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.55;
}

.word-review-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.word-review-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 13px;
  color: #243149;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.14), transparent 58%),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
  text-align: left;
}

.word-review-card span {
  width: fit-content;
  padding: 4px 8px;
  color: #06120f;
  background: #58d7c6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.word-review-card strong {
  color: #111827;
  font-size: 20px;
  line-height: 1.1;
}

.word-review-card em {
  color: #66758a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.word-review-card.word-verb span,
.word-review-card.word-predicate span {
  background: #00f0a8;
}

.word-review-card.word-subject span,
.word-review-card.word-name span {
  background: #31d7ff;
}

.word-review-card.word-drama span {
  background: #ff88d7;
}

.word-review-card.word-time span {
  background: #ffe27a;
}

.member-panel {
  position: sticky;
  top: 22px;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.35), rgba(255, 255, 255, 0.85) 48%),
    rgba(255, 255, 255, 0.92);
}

.member-panel h2 {
  margin-top: 16px;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.12;
}

.member-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.member-benefits span {
  padding: 7px 10px;
  color: #111827;
  background: rgba(88, 215, 198, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.membership-page {
  display: grid;
  gap: 16px;
}

.membership-hero,
.membership-plan-card,
.membership-benefit-grid article,
.membership-rule-panel,
.membership-rule-grid article,
.membership-partner-panel,
.partner-rule-list article,
.membership-score-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.membership-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 38%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.4), transparent 60%),
    rgba(255, 255, 255, 0.92);
}

.membership-hero h2 {
  max-width: 720px;
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 900;
  line-height: 1.08;
}

.membership-hero p {
  max-width: 680px;
  margin-top: 12px;
  color: #536176;
  font-size: 16px;
  line-height: 1.75;
}

.membership-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.membership-score-card {
  display: grid;
  align-content: center;
  min-height: 170px;
  padding: 18px;
  background:
    linear-gradient(160deg, #151925, #222b3b);
  color: #fff7e4;
}

.membership-score-card span {
  color: #8ee8dd;
  font-size: 13px;
  font-weight: 900;
}

.membership-score-card strong {
  margin-top: 10px;
  color: #ffe27a;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1;
}

.membership-score-card p {
  color: #d8e1ee;
}

.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.membership-plan-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 18px;
  color: #172133;
  text-align: left;
}

.membership-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(87, 109, 140, 0.16);
}

.membership-plan-card.is-recommended {
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.32), transparent 44%),
    #151925;
  border-color: rgba(88, 215, 198, 0.36);
}

.membership-plan-card span,
.membership-plan-card em {
  width: fit-content;
  padding: 6px 10px;
  background: rgba(88, 215, 198, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.membership-plan-card.is-recommended span,
.membership-plan-card.is-recommended em {
  color: #111827;
  background: #ffe27a;
}

.membership-plan-card strong {
  font-size: clamp(31px, 3.4vw, 42px);
  line-height: 1;
}

.membership-plan-card p {
  color: #66758a;
  font-size: 15px;
  line-height: 1.65;
}

.membership-plan-card.is-recommended p {
  color: #d8e1ee;
}

.membership-card-list {
  display: grid;
  gap: 7px;
}

.membership-card-list b {
  position: relative;
  display: block;
  padding-left: 18px;
  color: #324052;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.membership-card-list b::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: #58d7c6;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(88, 215, 198, 0.15);
}

.membership-plan-card.is-recommended .membership-card-list b {
  color: #fff7dc;
}

.membership-plan-card.is-recommended .membership-card-list b::before {
  background: #ffe27a;
  box-shadow: 0 0 0 4px rgba(255, 226, 122, 0.18);
}

.membership-rule-panel,
.membership-partner-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.membership-rule-panel {
  background:
    linear-gradient(135deg, rgba(67, 107, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.9);
}

.membership-rule-panel .section-head {
  margin: 0;
}

.membership-rule-panel h2,
.membership-partner-panel h2 {
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.12;
}

.membership-rule-grid,
.partner-rule-list {
  display: grid;
  gap: 12px;
}

.membership-rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.membership-rule-grid article,
.partner-rule-list article {
  padding: 16px;
}

.membership-rule-grid article span,
.partner-rule-list article span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #0d786f;
  background: rgba(88, 215, 198, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.membership-rule-grid article strong,
.partner-rule-list article strong {
  display: block;
  margin-top: 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.2;
}

.membership-rule-grid article p,
.partner-rule-list article p,
.membership-partner-panel > div > p {
  margin-top: 9px;
  color: #66758a;
  font-size: 14px;
  line-height: 1.7;
}

.membership-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.membership-benefit-grid article {
  padding: 18px;
}

.membership-benefit-grid strong {
  color: #111827;
  font-size: 18px;
}

.membership-benefit-grid p {
  margin-top: 8px;
  color: #66758a;
  font-size: 14px;
  line-height: 1.7;
}

.membership-partner-panel {
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.34), transparent 44%),
    linear-gradient(160deg, rgba(88, 215, 198, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.92);
}

.partner-rule-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-rule-list article:nth-child(2) span,
.partner-rule-list article:nth-child(3) span {
  color: #975a00;
  background: rgba(255, 226, 122, 0.36);
}

.partner-rule-list article strong {
  font-size: clamp(20px, 2.2vw, 30px);
}

.partner-dashboard {
  display: grid;
  gap: 18px;
}

.partner-hero,
.partner-panel,
.partner-materials,
.invite-card,
.partner-stat-card,
.script-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.11);
}

.partner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), transparent 38%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.34), transparent 60%),
    rgba(255, 255, 255, 0.9);
}

.partner-hero h2,
.partner-panel h2,
.partner-materials h2 {
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 3.8vw, 56px);
  font-weight: 900;
  line-height: 1.06;
}

.partner-hero p {
  max-width: 760px;
  margin-top: 14px;
  color: #526173;
  font-size: 16px;
  line-height: 1.75;
}

.invite-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 61, 242, 0.12), transparent 45%),
    #111827;
  color: #fff;
}

.invite-card span {
  color: #cbd6e6;
  font-size: 13px;
  font-weight: 900;
}

.invite-card strong {
  color: #ffe27a;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.invite-card p {
  margin: 0;
  color: #8ee8dd;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.partner-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.partner-stat-card {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.9);
}

.partner-stat-card.is-money {
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.34), transparent 58%),
    rgba(255, 255, 255, 0.9);
}

.partner-stat-card.is-time {
  background:
    linear-gradient(135deg, rgba(255, 136, 215, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.9);
}

.partner-stat-card span {
  color: #6d7a90;
  font-size: 13px;
  font-weight: 900;
}

.partner-stat-card strong {
  display: block;
  margin-top: 12px;
  color: #111827;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}

.partner-stat-card p {
  margin-top: 10px;
  color: #728197;
  font-size: 13px;
}

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.58fr);
  gap: 18px;
  align-items: start;
}

.partner-panel,
.partner-materials {
  padding: 22px;
}

.partner-panel .section-head,
.partner-materials .section-head {
  margin-top: 0;
}

.partner-panel h2,
.partner-materials h2 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.partner-table {
  display: grid;
  gap: 8px;
}

.partner-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: #526173;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
  font-size: 14px;
}

.partner-row.is-head {
  min-height: 36px;
  color: #8a97aa;
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.partner-row strong {
  color: #16a394;
}

.withdraw-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.24), transparent 44%),
    linear-gradient(45deg, rgba(255, 226, 122, 0.28), transparent 62%),
    #151925;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(16, 24, 39, 0.15);
}

.withdraw-card span {
  color: #8ee8dd;
  font-size: 12px;
  font-weight: 950;
}

.withdraw-card strong {
  color: #ffe27a;
  font-size: 42px;
  line-height: 1;
}

.withdraw-card p {
  margin: 0;
  color: #d8e1ee;
  font-size: 13px;
  line-height: 1.55;
}

.withdraw-card .solid-action {
  width: fit-content;
}

.withdraw-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.withdraw-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
}

.withdraw-list span {
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
}

.withdraw-list strong {
  color: #16a394;
}

.rule-list {
  display: grid;
  gap: 10px;
}

.rule-list div {
  padding: 14px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.rule-list strong {
  color: #111827;
  font-size: 15px;
}

.rule-list p {
  margin-top: 6px;
  color: #59687c;
  font-size: 13px;
  line-height: 1.65;
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.script-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.script-card span {
  color: #16a394;
  font-size: 13px;
  font-weight: 900;
}

.script-card p {
  color: #526173;
  font-size: 14px;
  line-height: 1.75;
}

.product-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 30;
  min-width: 220px;
  padding: 12px 16px;
  color: #06120f;
  background: linear-gradient(180deg, #fff3b0, #58d7c6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(16, 24, 39, 0.22);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
  animation: toastIn 1600ms ease both;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-hero,
.admin-quick-card,
.admin-stat-card,
.admin-tabs,
.admin-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(87, 109, 140, 0.1);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.34fr);
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.92);
}

.admin-hero h2 {
  max-width: 900px;
  margin: 12px 0 0;
  color: #111827;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 900;
  line-height: 1.08;
}

.admin-hero p,
.admin-quick-card p {
  margin-top: 12px;
  color: #526173;
  font-size: 15px;
  line-height: 1.7;
}

.admin-quick-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.32), transparent 58%),
    #ffffff;
}

.admin-quick-card span,
.admin-stat-card span {
  color: #6d7a90;
  font-size: 13px;
  font-weight: 900;
}

.admin-quick-card strong {
  color: #111827;
  font-size: 64px;
  line-height: 0.95;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-card {
  padding: 18px;
}

.admin-stat-card strong {
  display: block;
  margin-top: 11px;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.admin-stat-card p {
  margin-top: 9px;
  color: #728197;
  font-size: 13px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.admin-tab {
  min-height: 40px;
  padding: 0 15px;
  color: #526173;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
}

.admin-tab:hover,
.admin-tab.is-active {
  color: #06120f;
  background: #ffe27a;
  border-color: rgba(241, 199, 107, 0.45);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr);
  gap: 18px;
}

.admin-card {
  padding: 20px;
}

.admin-card .section-head {
  margin-top: 0;
}

.admin-card h2 {
  font-size: clamp(22px, 2.3vw, 32px);
}

.admin-task-list,
.pipeline-list {
  display: grid;
  gap: 10px;
}

.admin-task-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
}

.admin-task-list strong {
  color: #111827;
  font-size: 15px;
}

.admin-task-list span {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #16a394;
  background: rgba(88, 215, 198, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.pipeline-list span {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 14px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
  font-weight: 850;
}

.pipeline-list span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--p, 0%);
  height: 5px;
  background: linear-gradient(90deg, #58d7c6, #ffe27a);
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-empty-state {
  border: 1px dashed rgba(83, 224, 205, 0.36);
  border-radius: 18px;
  padding: 24px;
  color: #536072;
  background: linear-gradient(135deg, rgba(83, 224, 205, 0.09), rgba(255, 210, 106, 0.1));
  font-weight: 800;
  line-height: 1.7;
}

.admin-user-summary,
.admin-order-summary,
.admin-partner-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-user-summary div,
.admin-order-summary div,
.admin-partner-summary div {
  padding: 14px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.admin-user-summary span,
.admin-order-summary span,
.admin-partner-summary span {
  color: #66758a;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-summary strong,
.admin-order-summary strong,
.admin-partner-summary strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.admin-user-summary p,
.admin-order-summary p,
.admin-partner-summary p {
  margin-top: 8px;
  color: #8a97aa;
  font-size: 12px;
}

.admin-user-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 14px;
  align-items: start;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.85fr 0.95fr 88px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  color: #526173;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 14px;
  font-size: 14px;
}

.admin-row.is-selected {
  background:
    linear-gradient(90deg, rgba(88, 215, 198, 0.18), rgba(255, 255, 255, 0.95)),
    #f7faff;
  border-color: rgba(88, 215, 198, 0.32);
}

.admin-row.is-head {
  min-height: 36px;
  color: #8a97aa;
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.admin-row strong {
  color: #111827;
}

.admin-row button {
  min-height: 34px;
  color: #243149;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions button {
  min-width: 48px;
}

.admin-withdraw-table {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(42, 63, 90, 0.18);
}

.admin-feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px;
  background: rgba(247, 250, 255, 0.86);
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.feedback-filter-group,
.feedback-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-filter {
  min-height: 34px;
  padding: 0 13px;
  color: #526173;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.feedback-filter:hover,
.feedback-filter.is-active {
  color: #06120f;
  background: linear-gradient(180deg, #ffe58e, #ffd165);
  border-color: rgba(223, 162, 39, 0.38);
  box-shadow: 0 10px 22px rgba(223, 162, 39, 0.14);
}

.feedback-admin-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  color: #243149;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 52%),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 18px;
}

.feedback-admin-item.is-resolved {
  opacity: 0.72;
}

.feedback-admin-head,
.feedback-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feedback-admin-head span,
.feedback-admin-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.feedback-admin-head span {
  color: #06120f;
  background: #58d7c6;
}

.feedback-admin-head strong {
  color: #422b00;
  background: #ffe27a;
}

.feedback-admin-item.is-resolved .feedback-admin-head strong {
  color: #526173;
  background: #edf2f8;
}

.feedback-admin-item p {
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.65;
}

.feedback-admin-meta {
  display: grid;
  gap: 6px;
  color: #66758a;
  font-size: 12px;
  line-height: 1.55;
}

.feedback-admin-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.feedback-admin-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: #243149;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.invite-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.invite-admin-list {
  display: grid;
  gap: 12px;
}

.invite-admin-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 44%),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.invite-admin-head,
.invite-admin-meta,
.invite-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invite-admin-head strong {
  color: #111827;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.invite-admin-head span {
  padding: 6px 10px;
  color: #06120f;
  background: #ffe27a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.invite-admin-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
}

.invite-admin-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: #243149;
  background: #ffffff;
  border: 1px solid rgba(40, 58, 86, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.invite-create-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.admin-soft-note {
  color: #66758a;
  font-size: 13px;
  line-height: 1.7;
}

.admin-user-detail {
  position: sticky;
  top: 18px;
  padding: 18px;
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 45%),
    #151925;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(16, 24, 39, 0.16);
}

.admin-user-detail h3 {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 26px;
}

.admin-user-detail p {
  margin-top: 8px;
  color: #d8e1ee;
  font-size: 13px;
  line-height: 1.65;
}

.admin-user-progress {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.admin-user-progress i {
  display: block;
  overflow: hidden;
  height: 9px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.admin-user-progress i::before {
  content: "";
  display: block;
  width: var(--admin-user-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #58d7c6, #ffe27a);
  border-radius: inherit;
}

.admin-user-progress span {
  color: #8ee8dd;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.admin-user-detail-grid div {
  padding: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.admin-user-detail-grid strong,
.admin-user-detail-grid span {
  display: block;
}

.admin-user-detail-grid strong {
  color: #fff4c9;
  font-size: 18px;
}

.admin-user-detail-grid span {
  margin-top: 4px;
  color: #aebed1;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-detail em {
  display: block;
  margin-top: 14px;
  color: #ffe27a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.admin-user-actions button,
.admin-user-actions span {
  min-height: 34px;
  padding: 0 12px;
  color: #fff8d8;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-actions button:hover {
  color: #06120f;
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
  border-color: rgba(255, 226, 122, 0.4);
}

.admin-user-actions span {
  display: inline-flex;
  align-items: center;
  color: #c7d5e6;
}

.data-model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.44fr);
  gap: 18px;
  align-items: start;
}

.data-flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.data-flow-list div {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.16), rgba(255, 226, 122, 0.16)),
    #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 16px;
}

.data-flow-list strong,
.data-flow-list span {
  display: block;
}

.data-flow-list strong {
  color: #111827;
  font-size: 15px;
}

.data-flow-list span {
  margin-top: 7px;
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.schema-card {
  padding: 16px;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.schema-card span {
  color: #16a394;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.schema-card h3 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 19px;
}

.schema-card p {
  margin-top: 8px;
  color: #5d6b80;
  font-size: 13px;
  line-height: 1.65;
}

.field-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.field-pills i {
  padding: 5px 8px;
  color: #34445c;
  background: #ffffff;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.data-snapshot-card {
  position: sticky;
  top: 18px;
}

.data-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.data-snapshot-card pre {
  overflow: auto;
  max-height: 520px;
  margin: 0;
  padding: 16px;
  color: #d8fff8;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.1), transparent 42%),
    #111827;
  border: 1px solid rgba(88, 215, 198, 0.2);
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.script-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.script-editor-card {
  display: grid;
  gap: 16px;
}

.script-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.script-status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #6b7280;
  background: #f4f7fb;
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.script-status-pill.is-draft {
  color: #9b6515;
  background: rgba(255, 226, 122, 0.2);
  border-color: rgba(236, 188, 50, 0.36);
}

.script-status-pill.is-published {
  color: #087a71;
  background: rgba(88, 215, 198, 0.18);
  border-color: rgba(88, 215, 198, 0.46);
}

.script-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.input-shell select,
.input-shell textarea {
  width: 100%;
  padding: 12px 14px;
  color: #111827;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.12);
  border-radius: 14px;
  outline: none;
}

.input-shell select {
  min-height: 48px;
}

.input-shell textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.input-shell select:focus,
.input-shell textarea:focus {
  border-color: rgba(88, 215, 198, 0.8);
  box-shadow: 0 0 0 4px rgba(88, 215, 198, 0.14);
}

.script-import-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.2), transparent 48%),
    rgba(247, 250, 255, 0.88);
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 18px;
}

.script-import-head,
.script-import-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.script-import-head strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.script-import-panel textarea {
  width: 100%;
  min-height: 150px;
  padding: 13px 14px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 63, 90, 0.12);
  border-radius: 16px;
  outline: none;
  resize: vertical;
  line-height: 1.65;
}

.script-import-panel textarea:focus {
  border-color: rgba(88, 215, 198, 0.8);
  box-shadow: 0 0 0 4px rgba(88, 215, 198, 0.14);
}

.script-import-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

#scriptImportStatus {
  margin: 0;
  color: #66758a;
  font-size: 13px;
  line-height: 1.65;
}

#scriptImportStatus[data-status="ok"] {
  color: #087a71;
  font-weight: 850;
}

#scriptImportStatus[data-status="error"] {
  color: #d92d4b;
  font-weight: 850;
}

.script-preview-card {
  position: sticky;
  top: 22px;
  padding: 20px;
  color: #fff7e4;
  background:
    linear-gradient(135deg, rgba(255, 61, 242, 0.18), transparent 42%),
    linear-gradient(45deg, rgba(88, 215, 198, 0.2), transparent 50%),
    #151925;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(16, 24, 39, 0.18);
}

.script-preview-card h2 {
  margin: 16px 0 0;
  color: #ffffff;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei", sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.1;
}

.script-preview-card p {
  margin-top: 12px;
  color: #e6edf7;
  font-size: 15px;
  line-height: 1.75;
}

.script-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.script-quality-grid div {
  min-height: 72px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.script-quality-grid strong,
.script-quality-grid span {
  display: block;
}

.script-quality-grid strong {
  color: #fff8cb;
  font-size: 20px;
}

.script-quality-grid span {
  margin-top: 4px;
  color: #9deee5;
  font-size: 12px;
  font-weight: 850;
}

.script-audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.script-audit-toolbar button {
  flex: 1 1 130px;
}

.script-audit-report {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.script-audit-empty {
  padding: 14px;
  color: #d8e1ee;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.65;
}

.script-audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.2), transparent 52%),
    rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.script-audit-head span,
.script-audit-head strong,
.script-audit-head p {
  display: block;
}

.script-audit-head span {
  color: #9deee5;
  font-size: 12px;
  font-weight: 900;
}

.script-audit-head strong {
  margin-top: 2px;
  color: #fff8cb;
  font-size: 34px;
  line-height: 1;
}

.script-audit-head p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-align: right;
}

.script-audit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.script-audit-metrics div {
  min-height: 58px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.script-audit-metrics strong,
.script-audit-metrics span {
  display: block;
}

.script-audit-metrics strong {
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
}

.script-audit-metrics span {
  margin-top: 6px;
  color: #9deee5;
  font-size: 11px;
  font-weight: 900;
}

.script-audit-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.script-audit-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
}

.script-audit-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 7px;
  color: #06120f;
  background: #d7fff6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.script-audit-item p {
  margin: 0;
  color: #e6edf7;
  font-size: 12px;
  line-height: 1.58;
}

.script-audit-item.is-error span {
  color: #ffffff;
  background: #f04461;
}

.script-audit-item.is-warn span {
  color: #422b00;
  background: #ffe27a;
}

.script-audit-item.is-info span {
  color: #10213b;
  background: #bfe0ff;
}

.script-audit-item.is-ok span {
  color: #06120f;
  background: #58d7c6;
}

.script-checklist {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.script-checklist div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
}

.script-checklist strong {
  color: #fff4c9;
  font-size: 13px;
}

.script-checklist span {
  color: #8ee8dd;
  font-size: 12px;
  font-weight: 850;
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.96);
  }
  12%,
  82% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.98);
  }
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 16, 28, 0.5);
  backdrop-filter: blur(12px);
}

.product-modal {
  position: relative;
  width: min(560px, 100%);
  padding: 26px;
  color: #152033;
  animation: modalEnter 180ms ease-out both;
}

.register-modal-card {
  width: min(520px, 100%);
  max-height: min(720px, calc(100svh - 32px));
  padding: 22px;
  overflow-y: auto;
}

.register-modal-card .hero-pill {
  padding: 7px 12px;
  font-size: 12px;
}

.register-modal-card .auth-method-row {
  margin-top: 12px;
}

.register-modal-card .auth-choice {
  min-height: 38px;
}

.register-modal-card .register-fields {
  gap: 9px;
  margin-top: 14px;
}

.register-modal-card .input-shell {
  gap: 6px;
}

.register-modal-card .input-shell input {
  min-height: 44px;
}

.pay-modal {
  width: min(760px, 100%);
}

.feedback-modal {
  width: min(660px, 100%);
}

.product-modal h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #59687c;
  background: #f2f5fa;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.auth-fields {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.auth-method-row,
.auth-gender-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 5px;
  background: rgba(21, 32, 51, 0.06);
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 18px;
}

.auth-gender-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.auth-choice {
  min-height: 42px;
  padding: 0 12px;
  color: #526173;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  font-weight: 900;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.auth-choice:hover {
  color: #142033;
  transform: translateY(-1px);
}

.auth-choice.is-active {
  color: #111827;
  background: linear-gradient(135deg, #ffe57d, #58d7c6);
  box-shadow: 0 10px 24px rgba(88, 215, 198, 0.22);
}

.feedback-fields {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-status {
  margin-top: 14px;
  padding: 11px 12px;
  color: #087a71;
  background: rgba(88, 215, 198, 0.14);
  border: 1px solid rgba(88, 215, 198, 0.28);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
}

.feedback-context-card {
  margin-top: 14px;
  padding: 13px 14px;
  color: #0b6f67;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), rgba(255, 226, 122, 0.24)),
    #f7fffb;
  border: 1px solid rgba(88, 215, 198, 0.28);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.65;
}

.input-shell {
  display: grid;
  gap: 8px;
}

.input-shell span {
  color: #526173;
  font-size: 13px;
  font-weight: 850;
}

.compact-auth-modal {
  width: min(440px, 100%);
  max-height: calc(100svh - 32px);
  padding: 24px;
  overflow-y: auto;
}

.compact-auth-modal .auth-fields {
  gap: 12px;
  margin-top: 16px;
}

.compact-auth-modal .input-shell input {
  min-height: 44px;
}

.auth-help-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.auth-text-button {
  padding: 6px 0 6px 12px;
  color: #087a71;
  background: transparent;
  font-size: 13px;
}

.auth-text-button:hover {
  text-decoration: underline;
}

.auth-text-button:focus-visible {
  outline: 2px solid #087a71;
  outline-offset: 3px;
}

.compact-auth-modal .auth-actions {
  margin-top: 12px;
}

.auth-actions .solid-action {
  width: 100%;
}

.auth-inline-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f1;
  color: #a22b32;
  font-size: 13px;
  line-height: 1.5;
}

.auth-inline-message.is-success {
  background: #edfbf7;
  color: #087a71;
}

.account-details {
  margin: 24px 0 0;
}

.account-details > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(42, 63, 90, 0.09);
}

.account-details dt {
  flex-shrink: 0;
  color: #607086;
  font-size: 14px;
}

.account-details dd {
  margin: 0;
  color: #152033;
  overflow-wrap: anywhere;
  text-align: right;
  font-weight: 600;
}

.account-footer {
  margin-top: 24px;
}

.account-footer .account-logout {
  width: 100%;
  color: #a22b32;
  background: #fff6f6;
  border-color: #eed7d7;
}

.input-shell > label {
  color: #526173;
  font-size: 13px;
  font-weight: 850;
}

.input-shell .field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #526173;
}

.input-shell .field-label-row label {
  color: inherit;
  font-size: 13px;
  font-weight: 850;
}

.register-inline-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -2px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.register-inline-message.is-error {
  color: #a22b32;
  background: #fff1f1;
  border-color: #f1b7bb;
}

.register-inline-message.is-success {
  color: #087a71;
  background: #edfbf7;
  border-color: rgba(49, 174, 154, 0.3);
}

.register-inline-message button {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.inline-refresh {
  min-height: 28px;
  padding: 0 10px;
  color: #087a71;
  background: rgba(88, 215, 198, 0.16);
  border: 1px solid rgba(88, 215, 198, 0.32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.inline-refresh:hover {
  background: rgba(88, 215, 198, 0.26);
}

.input-shell input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #111827;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.12);
  border-radius: 14px;
  outline: none;
}

.input-shell select,
.input-shell textarea {
  width: 100%;
  padding: 13px 14px;
  color: #111827;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.12);
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.input-shell select {
  min-height: 48px;
}

.input-shell textarea {
  resize: vertical;
  line-height: 1.65;
}

.input-shell input:focus,
.input-shell select:focus,
.input-shell textarea:focus {
  border-color: rgba(88, 215, 198, 0.8);
  box-shadow: 0 0 0 4px rgba(88, 215, 198, 0.14);
}

.input-shell input.is-invalid {
  border-color: #dc6870;
  box-shadow: 0 0 0 3px rgba(220, 104, 112, 0.12);
}

.code-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.code-input-row .ghost-action {
  min-width: 112px;
}

.register-password-grid,
.register-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.register-modal-card .auth-gender-row {
  gap: 4px;
  min-height: 44px;
  padding: 3px;
}

.register-password-input-row {
  position: relative;
  min-width: 0;
}

.register-password-input-row input {
  padding-right: 44px;
}

.register-password-input-row input::placeholder {
  font-size: 13px;
}

.register-password-input-row input::-ms-reveal,
.register-password-input-row input::-ms-clear {
  display: none;
}

.register-password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  transform: translateY(-50%);
  color: #607086;
  background: transparent;
  border-radius: 12px;
}

.register-password-toggle:hover,
.register-password-toggle[aria-pressed="true"] {
  color: #087a71;
  background: rgba(88, 215, 198, 0.12);
}

.register-password-toggle:focus-visible {
  outline: 2px solid #087a71;
  outline-offset: -3px;
}

.register-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.register-password-toggle[aria-pressed="true"] .password-eye-slash {
  display: none;
}

.register-modal-card .auth-gender-row .auth-choice {
  min-height: 36px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 12px;
}

.register-invite-area {
  display: grid;
  gap: 8px;
}

.register-invite-toggle {
  justify-self: start;
  min-height: 28px;
  padding: 0 3px;
  color: #607086;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.register-invite-toggle:hover {
  color: #087a71;
}

.modal-actions.register-actions {
  align-items: center;
  margin-top: 14px;
}

.register-actions .solid-action {
  flex: 1 1 220px;
}

.register-actions .ghost-action {
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
}

@media (max-width: 520px) {
  .register-password-grid,
  .register-profile-grid {
    grid-template-columns: 1fr;
  }

  .register-modal-card {
    max-height: calc(100svh - 20px);
  }
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.price-card {
  display: grid;
  gap: 8px;
  min-height: 178px;
  padding: 18px;
  color: #243149;
  background: #f7faff;
  border: 1px solid rgba(42, 63, 90, 0.1);
  border-radius: 18px;
  text-align: left;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(87, 109, 140, 0.14);
}

.price-card.is-highlighted {
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.28), rgba(255, 226, 122, 0.42)),
    #fff;
  border-color: rgba(88, 215, 198, 0.44);
  box-shadow: 0 16px 34px rgba(88, 215, 198, 0.18);
}

.price-card.is-owned,
.price-card:disabled {
  cursor: default;
  color: #617089;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.18), rgba(255, 255, 255, 0.94)),
    #f5fbfa;
  border-color: rgba(88, 215, 198, 0.34);
  box-shadow: none;
}

.price-card.is-owned:hover,
.price-card:disabled:hover {
  transform: none;
  box-shadow: none;
}

.price-card span {
  color: #526173;
  font-size: 13px;
  font-weight: 900;
}

.price-card strong {
  color: #111827;
  font-size: 34px;
  line-height: 1;
}

.price-card.is-owned strong,
.price-card:disabled strong {
  color: #16a394;
}

.price-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.payment-live-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(88, 215, 198, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(88, 215, 198, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 226, 122, 0.22), rgba(247, 250, 255, 0.96));
  box-shadow: 0 20px 44px rgba(31, 41, 55, 0.12);
}

.payment-live-panel[hidden] {
  display: none;
}

.payment-qr-frame {
  width: 150px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(42, 63, 90, 0.1), 0 14px 30px rgba(42, 63, 90, 0.13);
}

.payment-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.payment-live-copy {
  display: grid;
  gap: 8px;
}

.payment-live-copy span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #073b35;
  background: #58d7c6;
  font-size: 12px;
  font-weight: 900;
}

.payment-live-copy strong {
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.payment-live-copy p {
  margin: 0;
  color: #526173;
  font-size: 14px;
}

.payment-live-copy code {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 10px;
  color: #2b3547;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

@media (max-width: 640px) {
  .payment-live-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-live-copy {
    justify-items: center;
  }

  .intro-panel {
    top: calc(var(--scene-top) + 14px);
    width: calc(100vw - 28px);
    min-width: 0;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 16px;
  }

  .intro-copy strong {
    font-size: 18px;
  }

  .intro-copy p {
    font-size: 13px;
    line-height: 1.65;
  }

  .intro-actions {
    position: absolute;
    right: 12px;
    top: 12px;
  }
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-shell {
  min-height: 100svh;
  background: #0e0c10;
}

.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  --scene-top: 8px;
  --scene-width: clamp(600px, 34vw, 680px);
  --scene-height: clamp(337px, 19.125vw, 383px);
  --scene-gap: 4px;
  --story-strip-height: 108px;
  --dialogue-gap: 6px;
  --dialogue-width: clamp(600px, 44vw, 800px);
  --dialogue-top: calc(
    var(--scene-top) + var(--scene-height) + var(--scene-gap) + var(--story-strip-height) + var(--dialogue-gap)
  );
  min-height: max(100svh, calc(var(--dialogue-top) + 340px));
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

.stage.has-intro {
  overflow: hidden;
}

.stage.has-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 13;
  background:
    linear-gradient(180deg, rgba(5, 3, 9, 0.34), rgba(5, 3, 9, 0.64)),
    radial-gradient(circle at 50% 20%, rgba(88, 215, 198, 0.18), transparent 46%);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.stage.has-intro .scene-art {
  filter: blur(3px) brightness(0.58) saturate(0.88);
}

.scene-art,
.scene-shade,
.role-light,
.talk-effect,
.success-layer {
  position: absolute;
  inset: 0;
}

.scene-art {
  inset: auto;
  top: var(--scene-top);
  left: 50%;
  z-index: -4;
  width: var(--scene-width);
  height: var(--scene-height);
  --shot-scale: 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow:
    0 32px 95px rgba(0, 0, 0, 0.62),
    0 0 0 999px rgba(4, 3, 6, 0.22);
  filter: saturate(1.04) contrast(1.04);
  transform: translateX(-50%) scale(var(--shot-scale));
  opacity: 1;
  transition:
    object-position 620ms ease,
    transform 620ms ease,
    filter 620ms ease,
    opacity 180ms ease;
  transform-origin: center top;
}

.scene-art.is-changing {
  opacity: 0.55;
}

.intro-panel {
  position: absolute;
  top: calc(var(--scene-top) + 32px);
  left: 50%;
  z-index: 16;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  width: min(820px, calc(100vw - 440px));
  min-width: 520px;
  padding: 22px 20px 22px 24px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 226, 122, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(16, 13, 24, 0.92), rgba(22, 18, 31, 0.82) 52%, rgba(9, 25, 29, 0.8));
  border: 1px solid rgba(255, 226, 122, 0.26);
  border-radius: 26px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.58),
    0 0 56px rgba(88, 215, 198, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.intro-panel[hidden] {
  display: none;
}

.intro-panel.is-playing {
  animation: introPulse 1800ms ease-in-out infinite;
}

.intro-copy {
  display: grid;
  gap: 12px;
}

.intro-copy strong {
  color: #fff4bd;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 0 22px rgba(255, 226, 122, 0.18);
}

.intro-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.intro-actions {
  display: flex;
  gap: 10px;
}

.intro-control {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.intro-control:hover {
  transform: translateY(-1px);
  color: #10100d;
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
  box-shadow: 0 16px 34px rgba(88, 215, 198, 0.3);
}

.intro-control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-muted-mark {
  opacity: 0;
}

.intro-mute.is-muted {
  color: #17110a;
  background: #ffe27a;
}

.intro-mute.is-muted .intro-wave {
  opacity: 0;
}

.intro-mute.is-muted .intro-muted-mark {
  opacity: 1;
}

@keyframes introPulse {
  0%,
  100% {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 36px rgba(88, 215, 198, 0.14);
  }
  50% {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 58px rgba(88, 215, 198, 0.28);
  }
}

@media (max-width: 640px) {
  .intro-panel {
    top: calc(var(--scene-top) + 10px);
    width: calc(100vw - 28px);
    min-width: 0;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 14px;
  }

  .intro-copy strong {
    font-size: 18px;
  }

  .intro-copy p {
    padding-right: 78px;
    font-size: 13px;
    line-height: 1.65;
  }

  .intro-actions {
    position: absolute;
    right: 12px;
    top: 12px;
  }

  .intro-control {
    width: 38px;
    height: 38px;
  }
}

.stage[data-shot="wide"] .scene-art {
  object-position: center;
  --shot-scale: 1;
}

.stage[data-shot="wide"] {
  --talk-scale: 1;
}

.stage[data-shot="left"] .scene-art {
  object-position: 34% center;
  --shot-scale: 1.05;
}

.stage[data-shot="left"] {
  --talk-scale: 1.05;
}

.stage[data-shot="right"] .scene-art {
  object-position: 68% center;
  --shot-scale: 1.06;
}

.stage[data-shot="right"] {
  --talk-scale: 1.06;
}

.stage[data-shot="object"] .scene-art {
  object-position: center;
  --shot-scale: 1.04;
}

.stage[data-shot="object"] {
  --talk-scale: 1.04;
}

.stage.is-speaking .scene-art {
  filter: saturate(1.12) contrast(1.08) brightness(1.05);
}

.scene-shade {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(8, 7, 10, 0.62), rgba(8, 7, 10, 0.08) 28%, rgba(8, 7, 10, 0.72) 100%),
    radial-gradient(circle at 50% 62%, rgba(241, 199, 107, 0.08), transparent 34%);
}

.stage[data-emotion="cold"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(4, 10, 18, 0.68), rgba(4, 10, 18, 0.18) 38%, rgba(4, 10, 18, 0.74)),
    radial-gradient(circle at 75% 34%, rgba(88, 215, 198, 0.22), transparent 28%);
}

.stage[data-emotion="hurt"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(18, 8, 13, 0.6), rgba(18, 8, 13, 0.12) 34%, rgba(18, 8, 13, 0.75)),
    radial-gradient(circle at 31% 44%, rgba(255, 61, 242, 0.2), transparent 26%);
}

.stage[data-emotion="anger"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(22, 3, 5, 0.62), rgba(22, 3, 5, 0.12) 34%, rgba(22, 3, 5, 0.78)),
    radial-gradient(circle at 34% 44%, rgba(255, 77, 109, 0.28), transparent 30%);
}

.stage[data-emotion="suspicion"] .scene-shade,
.stage[data-emotion="shock"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(8, 7, 10, 0.68), rgba(12, 5, 8, 0.12) 34%, rgba(8, 7, 10, 0.78)),
    radial-gradient(circle at 58% 42%, rgba(255, 159, 28, 0.23), transparent 26%);
}

.stage[data-emotion="resolve"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(8, 7, 10, 0.58), rgba(8, 7, 10, 0.1) 34%, rgba(8, 7, 10, 0.72)),
    radial-gradient(circle at 32% 44%, rgba(156, 255, 46, 0.17), transparent 28%);
}

.stage[data-emotion="reveal"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(16, 10, 3, 0.55), rgba(16, 10, 3, 0.08) 34%, rgba(16, 10, 3, 0.72)),
    radial-gradient(circle at 68% 35%, rgba(241, 199, 107, 0.34), transparent 30%);
}

.stage.is-speaking[data-emotion="anger"] .scene-art {
  animation: angerShake 420ms ease-in-out infinite alternate;
}

.stage.is-speaking[data-emotion="hurt"] .scene-art,
.stage.is-speaking[data-emotion="cold"] .scene-art,
.stage.is-speaking[data-emotion="resolve"] .scene-art {
  animation: emotionBreath 1400ms ease-in-out infinite alternate;
}

.stage.is-speaking[data-emotion="shock"] .scene-art,
.stage.is-speaking[data-emotion="reveal"] .scene-art {
  animation: revealFlash 1200ms ease-in-out infinite alternate;
}

@keyframes emotionBreath {
  from {
    filter: saturate(1.1) contrast(1.06) brightness(1.01);
  }
  to {
    filter: saturate(1.2) contrast(1.1) brightness(1.1);
  }
}

@keyframes angerShake {
  from {
    transform: translate(calc(-50% - 3px), 1px) scale(var(--shot-scale));
    filter: saturate(1.22) contrast(1.16) brightness(1.05);
  }
  to {
    transform: translate(calc(-50% + 3px), -1px) scale(var(--shot-scale));
    filter: saturate(1.32) contrast(1.2) brightness(1.08);
  }
}

@keyframes revealFlash {
  from {
    filter: saturate(1.12) contrast(1.08) brightness(1.04);
    box-shadow:
      0 32px 95px rgba(0, 0, 0, 0.62),
      0 0 0 999px rgba(4, 3, 6, 0.22);
  }
  to {
    filter: saturate(1.28) contrast(1.14) brightness(1.18);
    box-shadow:
      0 32px 95px rgba(0, 0, 0, 0.58),
      0 0 38px rgba(241, 199, 107, 0.5),
      0 0 0 999px rgba(4, 3, 6, 0.18);
  }
}

.role-light {
  z-index: -2;
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.role-left {
  background: radial-gradient(circle at 22% 54%, rgba(241, 199, 107, 0.32), transparent 28%);
}

.role-right {
  background: radial-gradient(circle at 76% 42%, rgba(88, 215, 198, 0.26), transparent 28%);
}

.stage[data-speaker="ella"] .role-left,
.stage[data-speaker="ceo"] .role-right,
.stage[data-speaker="officer"] .role-right {
  opacity: 1;
}

.talk-effect {
  inset: auto;
  top: var(--scene-top);
  left: 50%;
  z-index: -1;
  width: var(--scene-width);
  height: var(--scene-height);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) scale(var(--talk-scale, 1));
  transform-origin: center top;
  transition: opacity 180ms ease;
}

.talk-effect span {
  position: absolute;
  left: var(--talk-x, 50%);
  top: var(--talk-y, 30%);
  width: var(--talk-size, 50px);
  height: var(--talk-size, 50px);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  animation: talkPulse 1.25s ease-out infinite;
}

.talk-effect span:nth-child(2) {
  animation-delay: 0.22s;
}

.talk-effect span:nth-child(3) {
  animation-delay: 0.44s;
}

.talk-left span {
  border-color: rgba(255, 61, 242, 0.82);
  box-shadow: 0 0 28px rgba(255, 61, 242, 0.36);
}

.talk-right span {
  border-color: rgba(88, 215, 198, 0.86);
  box-shadow: 0 0 30px rgba(88, 215, 198, 0.38);
}

.stage[data-speaker="ella"] {
  --talk-x: 40%;
  --talk-y: 39%;
}

.stage[data-speaker="ella"][data-shot="left"] {
  --talk-x: 53%;
  --talk-y: 42%;
}

.stage[data-speaker="ella"][data-shot="wide"] {
  --talk-x: 36%;
  --talk-y: 39%;
}

.stage[data-speaker="ella"][data-shot="object"] {
  --talk-x: 46%;
  --talk-y: 38%;
}

.stage[data-speaker="ceo"] {
  --talk-x: 66%;
  --talk-y: 31%;
}

.stage[data-speaker="ceo"][data-shot="right"] {
  --talk-x: 58%;
  --talk-y: 32%;
}

.stage[data-speaker="ceo"][data-shot="wide"] {
  --talk-x: 66%;
  --talk-y: 31%;
}

.stage.is-speaking[data-speaker="ella"] .talk-left,
.stage.is-speaking[data-speaker="ceo"] .talk-right,
.stage.is-speaking[data-speaker="officer"] .talk-right {
  opacity: 1;
}

.stage.is-speaking:not([data-speaker="ella"]) .talk-right {
  opacity: 1;
}

.stage[data-cue-mode="ambient"] .talk-effect span {
  border-color: rgba(255, 218, 112, 0.72);
  box-shadow: 0 0 46px rgba(255, 218, 112, 0.22);
  animation-duration: 1.65s;
}

@keyframes talkPulse {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.28);
  }
  70% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }
}

.topbar,
.side-panel,
.story-beat,
.dialogue-panel,
.lesson-panel {
  position: relative;
  z-index: 1;
}

.top-hint-panel {
  position: fixed;
  z-index: 5;
  top: 14px;
  left: 50%;
  width: min(720px, calc(100vw - 28px));
  max-height: min(44svh, 360px);
  overflow: auto;
  transform: translateX(-50%);
  padding: 18px 20px;
  background: rgba(22, 27, 34, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
  text-align: left;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 260px) repeat(5, 44px);
  align-items: center;
  gap: 14px;
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 10px 12px;
  width: fit-content;
  max-width: 100%;
  background: rgba(15, 13, 18, 0.56);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    filter 360ms ease;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  position: relative;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(88, 215, 198, 0.2) 0 42%, rgba(241, 199, 107, 0.18) 42%);
  box-shadow: 0 0 18px rgba(241, 199, 107, 0.18);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px 4px auto;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 10px);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 5px;
  height: 8px;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--teal);
}

.eyebrow,
.panel-label,
.answer-heading span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  overflow: hidden;
  color: #fff7dc;
  font-family: "YouYuan", "幼圆", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(241, 199, 107, 0.2),
    0 2px 18px rgba(0, 0, 0, 0.62);
  white-space: nowrap;
  -webkit-text-stroke: 0.25px currentColor;
}

.brand-block h1 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "SimHei", "PingFang SC", sans-serif;
  font-weight: 950;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
  -webkit-text-stroke: 0;
}

.progress-block {
  padding: 10px 12px;
  background: rgba(15, 13, 18, 0.58);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.progress-block span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  transition: width 260ms ease;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: rgba(15, 13, 18, 0.64);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.icon-button span {
  font-size: 22px;
  line-height: 1;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.is-active {
  color: var(--teal);
  border-color: rgba(88, 215, 198, 0.44);
  background: rgba(88, 215, 198, 0.12);
}

.theme-toggle-button .theme-icon-moon {
  display: none;
}

.theme-toggle-button.is-active .theme-icon-sun {
  display: none;
}

.theme-toggle-button.is-active .theme-icon-moon {
  display: block;
}

.side-panel {
  align-self: start;
  width: min(390px, 38vw);
  display: grid;
  gap: 12px;
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    filter 360ms ease;
}

.stage.is-immersive .brand-block,
.stage.is-immersive .side-panel {
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
  transform: translateX(-24px) scale(0.98);
}

.mode-panel,
.speed-panel,
.sound-panel,
.plot-panel,
.story-beat,
.dialogue-panel,
.lesson-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.mode-panel,
.speed-panel,
.sound-panel,
.plot-panel,
.story-beat {
  padding: 14px;
}

.speed-row,
.sound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.speed-row strong,
.sound-row strong {
  color: var(--teal);
  font-size: 16px;
  font-weight: 900;
}

.volume-control {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.volume-control span {
  color: rgba(255, 248, 232, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.volume-control input {
  width: 100%;
  height: 6px;
  accent-color: var(--teal);
  cursor: pointer;
}

.speed-segmented {
  grid-template-columns: repeat(3, 1fr);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.07);
}

.segment {
  min-height: 40px;
  color: #e7ddd3;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.segment:hover {
  color: #fff8e8;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
}

.segment:active {
  transform: translateY(1px);
}

.segment.is-active {
  color: #171217;
  background:
    linear-gradient(180deg, #ffe18d, var(--gold));
  border-color: rgba(255, 244, 192, 0.7);
  font-weight: 800;
  box-shadow:
    0 10px 22px rgba(241, 199, 107, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.story-beat p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.plot-panel,
.plot-panel strong,
.plot-panel p,
.story-strip,
.story-strip p {
  font-family: "YouYuan", "幼圆", "Microsoft YaHei UI Light", "Microsoft YaHei Light", "Microsoft YaHei", "微软雅黑", sans-serif !important;
  font-weight: 300 !important;
}

.plot-panel {
  background:
    linear-gradient(180deg, rgba(88, 215, 198, 0.08), rgba(18, 16, 22, 0.82) 38%),
    var(--panel);
}

.plot-panel strong {
  display: block;
  margin-top: 8px;
  color: #fff8e8;
  font-size: 17px;
  font-weight: 400 !important;
  line-height: 1.35;
}

.plot-panel p {
  margin-top: 0;
  color: #eadfd4;
  font-size: 15px;
  font-weight: 300 !important;
  line-height: 1.8;
  text-indent: 2em;
}

.story-strip {
  position: absolute;
  top: calc(var(--scene-top) + var(--scene-height) + var(--scene-gap));
  left: 50%;
  justify-self: center;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: var(--scene-width);
  min-height: var(--story-strip-height);
  margin-top: 0;
  padding: 14px 20px;
  border-radius: 12px;
  overflow: hidden;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(241, 199, 107, 0.12), rgba(18, 16, 22, 0.86) 28%),
    var(--panel);
}

.story-strip .panel-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.story-strip p {
  margin: 0;
  color: #fff8e8;
  font-size: clamp(15px, 0.95vw, 17px);
  font-weight: 300 !important;
  line-height: 1.45;
}

.plot-panel *,
.story-strip * {
  font-family: "YouYuan", "幼圆", "Microsoft YaHei UI Light", "Microsoft YaHei Light", "Microsoft YaHei", "微软雅黑", sans-serif !important;
  font-weight: 300 !important;
}

.dialogue-panel {
  position: absolute;
  top: var(--dialogue-top);
  left: 50%;
  justify-self: center;
  width: min(var(--dialogue-width), calc(100vw - 36px));
  padding: 10px 16px 12px;
  text-align: center;
  transform: translateX(-50%);
}

.lesson-panel {
  position: absolute;
  top: calc(var(--dialogue-top) + 8px);
  right: 18px;
  width: clamp(270px, 18vw, 350px);
  max-height: calc(100svh - var(--dialogue-top) - 28px);
  overflow: auto;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(241, 199, 107, 0.08), rgba(18, 16, 22, 0.88) 34%),
    rgba(18, 16, 22, 0.84);
  animation: lessonEnter 420ms ease-out both;
}

.lesson-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lesson-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-close-button {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

.lesson-close-button:hover,
.lesson-close-button:focus-visible {
  color: #171217;
  background: var(--gold);
  border-color: var(--gold);
  outline: none;
}

.lesson-close-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.lesson-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.lesson-head strong {
  flex: 0 0 auto;
  padding: 4px 9px;
  color: #171217;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.lesson-en {
  color: #fff9e8;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}

.lesson-cn {
  margin-top: 7px;
  color: #d9cec5;
  font-size: 13px;
  line-height: 1.5;
}

.lesson-notes {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.lesson-note {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.lesson-note span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.lesson-note p {
  color: #efe4d8;
  font-size: 13px;
  line-height: 1.55;
}

@keyframes lessonEnter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.speaker-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.practice-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.practice-mode-toggle {
  min-height: 34px;
  padding-inline: 13px;
  white-space: nowrap;
}

.practice-read-panel {
  min-height: 118px;
  margin-top: 14px;
  padding: 15px 18px;
  text-align: left;
}

.practice-read-panel > div {
  min-width: 0;
  flex: 1 1 auto;
}

.practice-read-panel .video-read-mic {
  width: 70px;
  height: 70px;
}

.practice-read-panel .video-read-mic svg {
  width: 30px;
  height: 30px;
}

.speaker-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #171217;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.stage[data-speaker="ceo"] .speaker-tag {
  background: var(--gold);
}

.lesson-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(6, 7, 10, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease,
    opacity 160ms ease;
}

.lesson-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lesson-toggle:disabled {
  opacity: 0.38;
}

.lesson-toggle:not(:disabled):hover,
.lesson-toggle.is-active {
  color: #071411;
  background:
    linear-gradient(180deg, #75f0df, var(--teal));
  border-color: rgba(137, 255, 236, 0.72);
  box-shadow:
    0 10px 28px rgba(88, 215, 198, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.lesson-toggle:not(:disabled):active {
  transform: translateY(1px);
}

h2 {
  margin-top: 6px;
  color: #fff9ee;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
}

.answer-reveal {
  margin: 12px auto 0;
  max-width: 760px;
  padding: 14px;
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  text-align: left;
}

.answer-reveal.is-subtitle {
  max-width: 820px;
  margin-top: 22px;
  border-left-color: var(--gold);
  background: rgba(0, 0, 0, 0.44);
  box-shadow: inset 0 0 0 1px rgba(241, 199, 107, 0.1);
}

.answer-reveal.is-subtitle .english-line {
  color: #fff8d8;
}

.english-line {
  color: #fff;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 800;
  line-height: 1.35;
}

.chinese-line,
.focus-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.focus-line {
  color: #f8df9f;
}

.answer-box {
  display: grid;
  margin-top: 16px;
}

.word-blanks {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 14px 10px;
  max-width: 100%;
}

.word-slot {
  --slot-color: #fff;
  --slot-glow: rgba(255, 255, 255, 0.24);
  display: block;
  align-items: end;
  width: var(--slot-width);
  min-width: 2.3ch;
  max-width: 15ch;
  font-size: clamp(26px, 2.6vw, 36px);
}

.word-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 2px 7px;
  color: var(--slot-color);
  background: transparent;
  border: 0;
  border-bottom: 4px solid rgba(255, 255, 255, 0.28);
  outline: none;
  border-radius: 0;
  caret-color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: inherit;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 16px var(--slot-glow), 0 3px 12px rgba(0, 0, 0, 0.6);
}

.word-input::-webkit-search-cancel-button,
.word-input::-webkit-search-decoration {
  appearance: none;
  display: none;
}

.word-input:focus {
  border-bottom-color: var(--slot-color);
  box-shadow: 0 10px 26px -18px var(--slot-glow);
}

.word-slot.is-mismatch {
  position: relative;
  padding: 4px 5px;
  margin: -4px -5px;
  background: rgba(255, 92, 92, 0.16);
  outline: 2px solid rgba(255, 116, 116, 0.72);
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(255, 77, 109, 0.24);
  animation: mismatchLocate 520ms ease-out both;
}

.word-slot.is-mismatch::after {
  content: attr(data-error-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  z-index: 2;
  padding: 3px 7px;
  color: #2a090d;
  background: #ff9a9a;
  border-radius: 999px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
}

.word-slot.is-mismatch .word-input {
  border-bottom-color: #ff7474;
}

.video-answer-box .word-slot.is-mismatch {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 226, 122, 0.26), transparent 58%),
    rgba(255, 77, 109, 0.22);
  outline-color: rgba(255, 74, 128, 0.9);
  box-shadow: 0 0 32px rgba(255, 77, 109, 0.34), 0 0 18px rgba(255, 226, 122, 0.18);
}

.video-answer-box .word-slot.is-mismatch::after {
  display: none;
}

@keyframes mismatchLocate {
  from {
    opacity: 0.55;
    transform: translateY(4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.practice-cn {
  margin: 20px auto 0;
  max-width: 860px;
  color: #fff;
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.word-subject {
  --slot-color: #ff4fd8;
  --slot-glow: rgba(255, 79, 216, 0.4);
  --slot-bg: rgba(255, 79, 216, 0.16);
}

.word-predicate {
  --slot-color: #27e6a3;
  --slot-glow: rgba(39, 230, 163, 0.42);
  --slot-bg: rgba(39, 230, 163, 0.15);
}

.word-name {
  --slot-color: #b985ff;
  --slot-glow: rgba(185, 133, 255, 0.42);
  --slot-bg: rgba(185, 133, 255, 0.16);
}

.word-verb {
  --slot-color: var(--teal);
  --slot-glow: rgba(88, 215, 198, 0.38);
  --slot-bg: rgba(88, 215, 198, 0.16);
}

.word-drama {
  --slot-color: var(--orange);
  --slot-glow: rgba(255, 159, 28, 0.4);
  --slot-bg: rgba(255, 159, 28, 0.16);
}

.word-time {
  --slot-color: var(--lime);
  --slot-glow: rgba(156, 255, 46, 0.34);
  --slot-bg: rgba(156, 255, 46, 0.15);
}

.word-small {
  --slot-color: var(--sky);
  --slot-glow: rgba(0, 187, 255, 0.34);
  --slot-bg: rgba(0, 187, 255, 0.14);
}

.word-plain {
  --slot-color: #ffe66d;
  --slot-glow: rgba(255, 230, 109, 0.34);
  --slot-bg: rgba(255, 230, 109, 0.14);
}

.control-dock {
  display: inline-grid;
  grid-template-columns: repeat(6, 44px);
  gap: 10px;
  margin-top: 18px;
  padding: 12px 18px;
  background: rgba(8, 9, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}

.dock-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.dock-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-button:hover,
.dock-button.is-active,
.icon-button:hover {
  color: var(--teal);
  background: rgba(88, 215, 198, 0.12);
  border-color: rgba(88, 215, 198, 0.44);
}

.dock-button.is-primary,
.video-control-dock .dock-button.primary {
  color: #05211e;
  background: linear-gradient(135deg, #7ff5df, #ffd86a);
  border-color: rgba(255, 242, 171, 0.72);
  box-shadow: 0 12px 30px rgba(85, 222, 206, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.dock-button.is-primary:hover,
.video-control-dock .dock-button.primary:hover {
  color: #031816;
  background: linear-gradient(135deg, #a9fff0, #ffe797);
  border-color: rgba(255, 247, 203, 0.95);
  transform: translateY(-1px);
}

.test-skip-button {
  color: #1f1300;
  background: linear-gradient(135deg, #ffe27a, #ffb84d);
  border-color: rgba(255, 226, 122, 0.65);
  font-size: 16px;
  font-weight: 900;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.test-skip-button:hover {
  color: #1f1300;
  background: linear-gradient(135deg, #fff1a6, #ffd166);
  border-color: rgba(255, 241, 166, 0.9);
}

.feedback {
  min-height: 24px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.feedback.is-good {
  color: var(--teal);
}

.feedback.is-warn {
  color: #ffd07e;
}

.feedback.is-bad {
  color: #ff9a9a;
}

.episode-report {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 45% 24%, rgba(88, 215, 198, 0.18), transparent 34%),
    radial-gradient(circle at 58% 72%, rgba(255, 210, 96, 0.16), transparent 32%),
    rgba(4, 3, 8, 0.64);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.episode-report[hidden] {
  display: none;
}

.episode-celebration-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.episode-firework {
  position: absolute;
  left: var(--burst-x);
  top: var(--burst-y);
  width: 6px;
  height: 6px;
  animation: episodeFireworkCore 1350ms ease-out var(--burst-delay) both;
}

.episode-firework i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 15px;
  background: var(--victory-color);
  border-radius: 999px;
  box-shadow: 0 0 13px var(--victory-color);
  transform-origin: 50% 100%;
  animation: episodeFireworkRay 1350ms cubic-bezier(0.16, 0.78, 0.28, 1) var(--burst-delay) both;
}

.episode-confetti {
  position: absolute;
  left: var(--confetti-x);
  top: -24px;
  width: 9px;
  height: 17px;
  background: var(--victory-color);
  border-radius: 2px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--victory-color) 68%, transparent);
  animation: episodeConfettiFall var(--confetti-duration) cubic-bezier(0.15, 0.7, 0.38, 1) var(--confetti-delay) both;
}

@keyframes episodeFireworkCore {
  0%, 10% {
    opacity: 0;
    transform: scale(0.2);
  }
  18% {
    opacity: 1;
    transform: scale(1.4);
    box-shadow: 0 0 26px 10px rgba(255, 238, 157, 0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 238, 157, 0);
  }
}

@keyframes episodeFireworkRay {
  0%, 10% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--ray-angle)) translateY(0) scaleY(0.3);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--ray-angle)) translateY(var(--ray-distance)) scaleY(0.72);
  }
}

@keyframes episodeConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), 108vh, 0) rotate(var(--confetti-spin));
  }
}

.episode-report-card {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100vw - 32px));
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.12), transparent 28%),
    linear-gradient(315deg, rgba(255, 216, 111, 0.18), transparent 34%),
    rgba(17, 13, 22, 0.94);
  border: 1px solid rgba(255, 226, 122, 0.24);
  border-radius: 30px;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.58),
    0 0 70px rgba(88, 215, 198, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: episodeReportIn 260ms ease-out both;
}

.episode-report-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.episode-report-close:hover {
  color: #10100d;
  background: linear-gradient(135deg, #58d7c6, #ffe27a);
  transform: translateY(-1px);
}

.episode-report-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.episode-report-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  color: #111009;
  background: linear-gradient(135deg, #ffe27a, #68f2df);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(88, 215, 198, 0.22);
}

.episode-report-card h2 {
  margin: 18px 54px 8px 0;
  color: #fff;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.episode-report-card > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.episode-report-ending {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 15px 17px;
  background: rgba(88, 215, 198, 0.1);
  border: 1px solid rgba(88, 215, 198, 0.26);
  border-radius: 18px;
}

.episode-report-ending[hidden] {
  display: none;
}

.episode-report-ending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.episode-report-ending-head span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.episode-report-ending-head button {
  min-height: 32px;
  padding: 0 12px;
  color: #071411;
  background: var(--teal);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.episode-report-ending p {
  color: #fff9e8;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
}

.episode-report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.episode-report-stat {
  min-height: 104px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.episode-report-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.episode-report-stat strong {
  display: block;
  margin-top: 8px;
  color: #58d7c6;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 950;
}

.episode-report-stat:first-child strong {
  font-size: 23px;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.episode-report-stat small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.35;
}

.episode-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.episode-report-actions .solid-action,
.episode-report-actions .ghost-action {
  min-height: 48px;
  border-radius: 999px;
}

.episode-report-actions .solid-action {
  flex: 1 1 190px;
}

.episode-report-actions .ghost-action {
  flex: 1 1 150px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.episode-report-actions .ghost-action:hover {
  color: #10100d;
  background: rgba(255, 226, 122, 0.9);
}

@keyframes episodeReportIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .episode-report {
    align-items: end;
    padding: 14px;
  }

  .episode-report-card {
    width: 100%;
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .episode-report-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .episode-report-card h2 {
    margin-right: 48px;
    font-size: 28px;
  }

  .episode-report-card > p {
    font-size: 14px;
  }

  .episode-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .episode-report-stat {
    min-height: 92px;
    padding: 14px;
    border-radius: 18px;
  }

  .episode-report-stat strong {
    font-size: 26px;
  }

  .episode-report-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.hint-en {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.35;
}

.hint-topline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hint-topline #blankHint {
  flex: 0 0 auto;
  margin-left: auto;
  color: #071411;
  background: var(--teal);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.hint-close-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.hint-close-button:hover {
  transform: translateY(-1px);
  color: #09120f;
  background: var(--teal);
  border-color: rgba(88, 215, 198, 0.7);
}

.hint-close-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hint-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hint-word {
  --slot-color: #fff;
  --slot-bg: rgba(255, 255, 255, 0.08);
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 90px;
  padding: 9px 12px 12px;
  background:
    linear-gradient(180deg, var(--slot-bg), rgba(255, 255, 255, 0.045)),
    rgba(10, 11, 16, 0.58);
  border: 1px solid color-mix(in srgb, var(--slot-color) 62%, rgba(255, 255, 255, 0.12));
  border-bottom: 4px solid var(--slot-color);
  border-radius: 13px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 22px -12px var(--slot-color);
}

.hint-word.word-subject {
  --slot-color: #ff4fd8;
  --slot-glow: rgba(255, 79, 216, 0.46);
  --slot-bg: rgba(255, 79, 216, 0.2);
}

.hint-word.word-predicate {
  --slot-color: #27e6a3;
  --slot-glow: rgba(39, 230, 163, 0.48);
  --slot-bg: rgba(39, 230, 163, 0.2);
}

.hint-word.word-name {
  --slot-color: #b985ff;
  --slot-glow: rgba(185, 133, 255, 0.48);
  --slot-bg: rgba(185, 133, 255, 0.2);
}

.hint-word.word-verb {
  --slot-color: #58d7c6;
  --slot-glow: rgba(88, 215, 198, 0.5);
  --slot-bg: rgba(88, 215, 198, 0.2);
}

.hint-word.word-drama {
  --slot-color: #ff9f1c;
  --slot-glow: rgba(255, 159, 28, 0.5);
  --slot-bg: rgba(255, 159, 28, 0.2);
}

.hint-word.word-time {
  --slot-color: #9cff2e;
  --slot-glow: rgba(156, 255, 46, 0.44);
  --slot-bg: rgba(156, 255, 46, 0.18);
}

.hint-word.word-small {
  --slot-color: #00bbff;
  --slot-glow: rgba(0, 187, 255, 0.46);
  --slot-bg: rgba(0, 187, 255, 0.18);
}

.hint-word.word-plain {
  --slot-color: #ffe66d;
  --slot-glow: rgba(255, 230, 109, 0.42);
  --slot-bg: rgba(255, 230, 109, 0.18);
}

.hint-word::before {
  content: "名词";
  justify-self: start;
  padding: 3px 8px;
  color: #080b0e;
  background: var(--slot-color);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.hint-word.word-subject::before {
  content: "主语";
}

.hint-word.word-predicate::before {
  content: "谓语";
}

.hint-word.word-verb::before {
  content: "动词";
}

.hint-word.word-drama::before {
  content: "关键词";
}

.hint-word.word-time::before {
  content: "场景词";
}

.hint-word.word-small::before {
  content: "小词";
}

.hint-word.word-plain::before {
  content: "名词";
}

.hint-word strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 18px var(--slot-glow),
    0 2px 10px rgba(0, 0, 0, 0.44);
}

.hint-gloss {
  color: color-mix(in srgb, var(--slot-color) 88%, white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hint-cn,
.hint-focus {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hint-focus {
  color: #f8df9f;
}

.success-layer {
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 10px;
  height: 22px;
  background: var(--spark-color, var(--gold));
  opacity: 0;
  border-radius: 2px;
  box-shadow: 0 0 18px var(--spark-color, var(--gold));
  transform: translate(-50%, 0) rotate(var(--spin, 0deg));
  animation: spark 1080ms ease-out forwards;
}

@keyframes spark {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) rotate(var(--spin, 0deg)) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), var(--dy)) rotate(calc(var(--spin) + 210deg)) scale(1);
  }
}

.dialogue-panel.pulse {
  animation: panelPulse 760ms ease-out;
}

@keyframes panelPulse {
  0% {
    box-shadow:
      var(--shadow),
      0 0 0 0 rgba(88, 215, 198, 0.68),
      0 0 0 0 rgba(241, 199, 107, 0.46);
  }
  36% {
    box-shadow:
      var(--shadow),
      0 0 0 12px rgba(88, 215, 198, 0.24),
      0 0 48px rgba(241, 199, 107, 0.3);
  }
  100% {
    box-shadow:
      var(--shadow),
      0 0 0 34px rgba(88, 215, 198, 0),
      0 0 72px rgba(241, 199, 107, 0);
  }
}

.answer-box.shake .word-input {
  animation: shake 260ms ease;
  border-bottom-color: #ff4d6d;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.stage.is-light-mode {
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(36, 84, 94, 0.18);
  --ink: #172033;
  --muted: #607089;
  --shadow: 0 18px 48px rgba(31, 54, 78, 0.14);
  color: #172033;
  background:
    radial-gradient(circle at 74% 14%, rgba(88, 215, 198, 0.2), transparent 34%),
    radial-gradient(circle at 8% 42%, rgba(255, 226, 122, 0.24), transparent 36%),
    linear-gradient(135deg, #f8fbff 0%, #fffdf6 47%, #eafffa 100%);
}

.stage.is-light-mode.has-intro::before {
  background:
    linear-gradient(180deg, rgba(247, 252, 255, 0.42), rgba(235, 255, 250, 0.62)),
    radial-gradient(circle at 50% 20%, rgba(88, 215, 198, 0.16), transparent 46%);
}

.stage.is-light-mode .scene-art,
.stage.is-light-mode.is-speaking .scene-art,
.stage.is-light-mode.is-speaking[data-emotion] .scene-art {
  filter: saturate(1.1) contrast(1.02) brightness(1.06);
  box-shadow:
    0 24px 68px rgba(30, 55, 84, 0.2),
    0 0 0 999px rgba(250, 254, 255, 0.68);
}

.stage.is-light-mode.has-intro .scene-art {
  filter: blur(2px) brightness(0.9) saturate(1.02);
}

.stage.is-light-mode .scene-shade,
.stage.is-light-mode[data-emotion="cold"] .scene-shade,
.stage.is-light-mode[data-emotion="hurt"] .scene-shade,
.stage.is-light-mode[data-emotion="anger"] .scene-shade,
.stage.is-light-mode[data-emotion="suspicion"] .scene-shade,
.stage.is-light-mode[data-emotion="shock"] .scene-shade,
.stage.is-light-mode[data-emotion="resolve"] .scene-shade,
.stage.is-light-mode[data-emotion="reveal"] .scene-shade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 72% 32%, rgba(88, 215, 198, 0.15), transparent 30%),
    radial-gradient(circle at 18% 58%, rgba(255, 226, 122, 0.18), transparent 36%);
}

.stage.is-light-mode .brand-block,
.stage.is-light-mode .progress-block,
.stage.is-light-mode .icon-button,
.stage.is-light-mode .mode-panel,
.stage.is-light-mode .speed-panel,
.stage.is-light-mode .sound-panel,
.stage.is-light-mode .plot-panel,
.stage.is-light-mode .story-beat,
.stage.is-light-mode .story-strip,
.stage.is-light-mode .dialogue-panel,
.stage.is-light-mode .lesson-panel {
  color: #172033;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 255, 253, 0.78)),
    rgba(255, 255, 255, 0.8);
  border-color: rgba(36, 84, 94, 0.18);
  box-shadow: 0 18px 46px rgba(31, 54, 78, 0.14);
}

.stage.is-light-mode .top-hint-panel {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(88, 215, 198, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(17, 25, 38, 0.96), rgba(8, 14, 24, 0.94));
  border-color: rgba(88, 215, 198, 0.22);
  box-shadow:
    0 24px 70px rgba(30, 55, 84, 0.26),
    0 0 0 999px rgba(248, 253, 255, 0.38);
}

.stage.is-light-mode .brand-block h1,
.stage.is-light-mode h2,
.stage.is-light-mode .speaker-name,
.stage.is-light-mode .practice-cn,
.stage.is-light-mode .story-strip p,
.stage.is-light-mode .plot-panel strong,
.stage.is-light-mode .plot-panel p,
.stage.is-light-mode .english-line {
  color: #121a2a;
  text-shadow: none;
}

.stage.is-light-mode .eyebrow,
.stage.is-light-mode .panel-label,
.stage.is-light-mode .chinese-line,
.stage.is-light-mode .hint-cn {
  color: #607089;
}

.stage.is-light-mode .progress-block span,
.stage.is-light-mode .icon-button,
.stage.is-light-mode .volume-control span {
  color: #253348;
}

.stage.is-light-mode .progress-track,
.stage.is-light-mode .segmented {
  background: rgba(19, 32, 48, 0.06);
  border-color: rgba(36, 84, 94, 0.12);
}

.stage.is-light-mode .segment {
  color: #4d5b6f;
  background: rgba(255, 255, 255, 0.62);
}

.stage.is-light-mode .segment:hover {
  color: #172033;
  background: rgba(255, 255, 255, 0.94);
}

.stage.is-light-mode .segment.is-active {
  color: #171217;
  background:
    linear-gradient(180deg, #ffe889, #f1c76b);
  border-color: rgba(189, 134, 20, 0.36);
  box-shadow:
    0 10px 22px rgba(217, 158, 37, 0.2),
    0 0 0 2px rgba(88, 215, 198, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.stage.is-light-mode .story-strip {
  background:
    linear-gradient(90deg, rgba(255, 226, 122, 0.34), rgba(255, 255, 255, 0.92) 30%),
    rgba(255, 255, 255, 0.86);
}

.stage.is-light-mode .answer-reveal {
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(36, 84, 94, 0.08);
}

.stage.is-light-mode .answer-reveal.is-subtitle {
  background: rgba(255, 250, 232, 0.72);
}

.stage.is-light-mode .word-blanks {
  width: fit-content;
  max-width: min(860px, 100%);
  margin-inline: auto;
  padding: 16px 18px 14px;
  background:
    radial-gradient(circle at 18% 22%, rgba(88, 215, 198, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(17, 25, 38, 0.92), rgba(12, 20, 31, 0.86));
  border: 1px solid rgba(88, 215, 198, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(30, 55, 84, 0.16);
}

.stage.is-light-mode .word-time {
  --slot-color: #b5ff58;
  --slot-glow: rgba(181, 255, 88, 0.58);
}

.stage.is-light-mode .word-plain {
  --slot-color: #ffe16a;
  --slot-glow: rgba(255, 225, 106, 0.6);
}

.stage.is-light-mode .word-input {
  text-shadow: 0 0 14px var(--slot-glow), 0 3px 10px rgba(0, 0, 0, 0.46);
  caret-color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.36);
}

.stage.is-light-mode .hint-word {
  background:
    linear-gradient(180deg, var(--slot-bg), rgba(255, 255, 255, 0.04)),
    rgba(9, 13, 21, 0.78);
  border-color: color-mix(in srgb, var(--slot-color) 64%, rgba(255, 255, 255, 0.1));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 0 24px -13px var(--slot-color);
}

.stage.is-light-mode .hint-en {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.stage.is-light-mode .hint-word strong {
  color: #ffffff;
  text-shadow: 0 0 16px var(--slot-glow), 0 2px 8px rgba(0, 0, 0, 0.46);
}

.stage.is-light-mode .hint-gloss {
  color: rgba(255, 255, 255, 0.86);
}

.stage.is-light-mode .top-hint-panel .panel-label,
.stage.is-light-mode .top-hint-panel .hint-cn {
  color: rgba(255, 255, 255, 0.82);
}

.stage.is-light-mode .hint-focus {
  color: #ffe084;
}

.stage.is-light-mode .hint-close-button {
  color: #253348;
  background: rgba(19, 32, 48, 0.06);
  border-color: rgba(36, 84, 94, 0.16);
}

.stage.is-light-mode .top-hint-panel .hint-close-button {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.stage.is-light-mode .episode-report-card {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(88, 215, 198, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(255, 216, 111, 0.2), transparent 34%),
    rgba(17, 13, 22, 0.96);
  border-color: rgba(255, 226, 122, 0.34);
}

.stage.is-light-mode .episode-report-card h2 {
  color: #fff8d8;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.54);
}

.stage.is-light-mode .episode-report-card > p {
  color: rgba(255, 255, 255, 0.84);
}

.stage.is-light-mode .episode-report-stat {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
}

.stage.is-light-mode .episode-report-stat span,
.stage.is-light-mode .episode-report-stat small {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
  .product-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .product-sidebar {
    padding: 14px 10px;
  }

  .product-brand {
    justify-content: center;
  }

  .product-brand span:last-child,
  .product-nav-item {
    font-size: 0;
  }

  .product-nav-item {
    justify-content: center;
    padding: 0;
  }

  .product-nav-item svg {
    width: 23px;
    height: 23px;
  }

  .sidebar-card {
    display: none;
  }

  .home-hero,
  .course-detail,
  .locked-teaser,
  .membership-hero,
  .review-hero {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .course-grid-compact,
  .video-course-grid,
  .episode-list,
  .membership-plan-grid,
  .review-stat-grid,
  .word-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-content-grid,
  .learning-center-grid,
  .review-center-grid {
    grid-template-columns: 1fr;
  }

  .partner-hero,
  .partner-grid,
  .admin-hero,
  .admin-grid,
  .admin-user-layout,
  .data-model-layout,
  .legal-layout,
  .video-lesson-shell,
  .invite-admin-layout,
  .script-studio {
    grid-template-columns: 1fr;
  }

  .my-stat-grid,
  .calendar-summary,
  .partner-stat-grid,
  .admin-stat-grid,
  .admin-user-summary,
  .admin-order-summary,
  .admin-partner-summary,
  .data-flow-list,
  .pricing-grid,
  .membership-benefit-grid,
  .membership-rule-grid,
  .partner-rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .script-grid {
    grid-template-columns: 1fr;
  }

  .member-panel {
    position: static;
  }

  .script-preview-card {
    position: static;
  }

  .invite-create-card {
    position: static;
  }

  .data-snapshot-card {
    position: static;
  }

  .legal-tabs {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-shell {
    display: block;
  }

  .product-sidebar {
    position: static;
    min-height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
  }

  .product-brand {
    justify-content: start;
    width: auto;
  }

  .product-brand span:last-child {
    display: none;
  }

  .product-nav {
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  .product-main {
    padding: 14px 12px 36px;
  }

  .product-top,
  .section-head,
  .legal-hero,
  .referral-banner,
  .home-conversion-strip,
  .script-import-head,
  .video-drill-top,
  .video-lesson-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-conversion-actions,
  .home-conversion-actions button,
  .script-import-actions button {
    width: 100%;
  }

  .legal-tabs {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }

  .legal-tab {
    flex: 0 0 auto;
    min-width: 108px;
    text-align: center;
  }

  .legal-document {
    padding: 20px;
  }

  .product-top h1 {
    font-size: 26px;
  }

  .home-hero h2 {
    font-size: 38px;
  }

  .stats-grid,
  .my-stat-grid,
  .learning-center-grid,
  .partner-stat-grid,
  .admin-stat-grid,
  .admin-user-summary,
  .admin-order-summary,
  .admin-partner-summary,
  .data-summary,
  .data-flow-list,
  .schema-grid,
  .course-grid,
  .course-grid-compact,
  .video-course-grid,
  .episode-list,
  .review-stat-grid,
  .review-center-grid,
  .word-review-grid,
  .pricing-grid,
  .membership-plan-grid,
  .membership-benefit-grid,
  .membership-rule-grid,
  .partner-rule-list {
    grid-template-columns: 1fr;
  }

  .video-course-card.is-featured {
    grid-column: auto;
  }

  .partner-row,
  .admin-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px;
  }

  .feedback-admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-export-actions .ghost-action {
    flex: 1 1 150px;
  }

  .partner-row.is-head,
  .admin-row.is-head {
    display: none;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .admin-tab {
    flex: 0 0 auto;
  }

  .admin-user-detail {
    position: static;
  }

  .script-editor-grid {
    grid-template-columns: 1fr;
  }

  .local-video-tool {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .local-video-ai-button,
  .local-video-download-button {
    width: 100%;
  }

  .local-video-limit-note {
    width: 100%;
  }

  .video-stage-card {
    padding: 12px;
  }

  .video-frame {
    width: 100%;
  }

  .video-hover-controls {
    bottom: 40px;
    width: max-content;
    border-radius: 0;
  }

  .video-hover-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px;
  }

  .video-progress-row {
    width: 100%;
    gap: 8px;
  }

  .video-subtitle-mask {
    left: 5%;
    right: 5%;
    bottom: 3.5%;
    height: 17%;
  }

  .video-under-button {
    flex: 1 1 150px;
    min-height: 42px;
  }

  .video-preview-subtitle {
    width: 100%;
    height: 82px;
    padding: 9px 12px;
    border-radius: 18px;
  }

  .video-subtitle-en {
    font-size: 13px;
  }

  .video-subtitle-cn {
    font-size: 15px;
  }

  .video-drill-card {
    min-height: auto;
    padding: 20px 14px;
    border-radius: 20px;
  }

  .video-line-copy p {
    font-size: clamp(26px, 8vw, 36px);
  }

  .video-control-dock {
    grid-template-columns: repeat(3, 48px);
  }

  .script-audit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .script-audit-item {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .my-course-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .review-deck-row {
    grid-template-columns: 1fr;
  }

  .continue-card {
    grid-template-columns: 1fr;
  }

  .code-input-row {
    grid-template-columns: 1fr;
  }

  .my-course-row .episode-lock {
    grid-column: 1 / -1;
  }

  .study-calendar {
    gap: 5px;
  }

  .calendar-weekday,
  .calendar-empty-day,
  .calendar-day {
    min-height: 42px;
    border-radius: 12px;
  }

  .calendar-day strong {
    font-size: 14px;
  }

  .calendar-day span {
    font-size: 10px;
  }

  .product-modal {
    padding: 20px;
  }

  .hero-preview,
  .hero-preview img {
    min-height: 300px;
  }

  .course-detail {
    padding: 14px;
  }

  .locked-teaser {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .teaser-actions {
    min-width: 0;
  }

  .course-detail-cover,
  .course-detail-cover img {
    min-height: 260px;
  }

  .stage {
    min-height: max(100svh, calc(var(--dialogue-top) + 760px));
    --scene-top: 132px;
    --scene-width: calc(100vw - 20px);
    --scene-height: min(42svh, 420px);
    --story-strip-height: 118px;
    padding: 10px;
    gap: 10px;
  }

  .scene-art {
    left: 50%;
    width: var(--scene-width);
    height: var(--scene-height);
    top: var(--scene-top);
    object-position: 52% center;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) repeat(5, 44px);
  }

  .progress-block {
    grid-column: 1 / -1;
    order: 3;
  }

  .side-panel {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .story-strip {
    position: absolute;
    top: calc(var(--scene-top) + var(--scene-height) + var(--scene-gap));
    left: 50%;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: 0;
    padding: 12px;
    transform: translateX(-50%);
  }

  .dialogue-panel {
    position: absolute;
    top: var(--dialogue-top);
    left: 50%;
    width: 100%;
    padding: 14px;
    transform: translateX(-50%);
  }

  .lesson-panel {
    top: calc(var(--dialogue-top) + 440px);
    left: 50%;
    right: auto;
    width: 100%;
    max-height: none;
    transform: translateX(-50%);
  }

  .lesson-panel:not([hidden]) {
    animation: mobileLessonEnter 360ms ease-out both;
  }

  .practice-cn {
    margin-top: 26px;
  }

  .control-dock {
    grid-template-columns: repeat(6, 42px);
    gap: 8px;
    margin-top: 34px;
    padding: 10px 12px;
  }

  .word-input {
    font-size: inherit;
  }

  .brand-block {
    width: 100%;
  }

  h1 {
    font-size: 18px;
  }
}

@keyframes mobileLessonEnter {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 430px) {
  .answer-box {
    padding: 12px;
  }

  .word-blanks {
    gap: 14px 8px;
  }

  .word-slot {
    width: var(--slot-width);
    max-width: 12ch;
    font-size: clamp(24px, 8vw, 34px);
  }

  .word-input {
    height: 48px;
  }

  .control-dock {
    grid-template-columns: repeat(5, 38px);
    gap: 7px;
    padding: 9px;
  }

  .dock-button {
    width: 38px;
    height: 38px;
  }

  .dock-button svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 760px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .product-sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px 10px 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
  }

  .product-brand {
    justify-content: start;
    min-height: 44px;
    padding: 5px 4px;
    font-size: 22px;
  }

  .product-brand span:last-child {
    display: inline;
    font-size: 20px;
  }

  .product-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-group-label {
    display: none;
  }

  .product-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(68px, 1fr);
    grid-template-columns: none;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-nav::-webkit-scrollbar {
    display: none;
  }

  .product-nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 6px 7px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .product-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .product-main {
    width: 100%;
    padding: 12px 10px calc(34px + env(safe-area-inset-bottom));
  }

  .product-top {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 13px;
    border-radius: 18px;
  }

  .product-top h1 {
    font-size: 24px;
  }

  .product-actions,
  .hero-actions,
  .detail-actions,
  .membership-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .solid-action,
  .ghost-action,
  .text-action,
  .back-link,
  .category-chip {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .home-hero {
    gap: 12px;
  }

  .home-hero-copy {
    padding: 20px 18px;
  }

  .home-hero h2 {
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.12;
  }

  .home-hero p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .hero-preview,
  .hero-preview img {
    min-height: 230px;
  }

  .hero-line {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .hero-line strong {
    font-size: 18px;
  }

  .hero-line p {
    font-size: 13px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    padding: 13px;
    border-radius: 18px;
  }

  .stat-card strong {
    font-size: 25px;
  }

  .section-head {
    gap: 8px;
    margin: 18px 0 10px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .category-strip {
    flex-wrap: nowrap;
    margin: 0 -10px 14px;
    overflow-x: auto;
    padding: 0 10px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    flex: 0 0 auto;
  }

  .course-grid,
  .course-grid-compact,
  .video-course-grid {
    gap: 12px;
  }

  .course-card img,
  .course-card video,
  .course-card .video-course-placeholder {
    height: 164px;
  }

  .course-card.is-featured img,
  .course-card.is-featured video,
  .course-card.is-featured .video-course-placeholder {
    height: 188px;
  }

  .course-card-body {
    padding: 14px;
  }

  .course-card-body p {
    min-height: 0;
  }

  .course-detail {
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .course-detail-cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .course-detail-cover img {
    height: 100%;
    min-height: 0;
  }

  .course-detail-copy h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .course-detail-copy p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .detail-tags span {
    padding: 6px 9px;
    font-size: 12px;
  }

  .market-panel,
  .episode-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .episode-list {
    gap: 9px;
  }

  .episode-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 70px;
    padding: 11px;
    border-radius: 15px;
  }

  .episode-index {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .episode-item h3 {
    font-size: 15px;
    line-height: 1.28;
    white-space: normal;
  }

  .episode-item p {
    line-height: 1.35;
  }

  .locked-teaser {
    margin-top: 12px;
    border-radius: 18px;
  }

  .teaser-actions,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-layer {
    place-items: end center;
    padding: 10px;
  }

  .product-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    overflow: auto;
    padding: 18px;
    border-radius: 22px;
  }

  .product-modal h2 {
    margin-top: 12px;
    font-size: clamp(25px, 7vw, 32px);
  }

  .pricing-grid {
    gap: 10px;
  }

  .price-card {
    min-height: auto;
    padding: 15px;
    border-radius: 16px;
  }

  .price-card strong {
    font-size: 30px;
  }

  .stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100svh;
    padding: 10px 10px calc(18px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    --scene-width: 100%;
    --scene-height: auto;
    --story-strip-height: auto;
  }

  .topbar {
    order: 1;
    grid-template-columns: minmax(0, 1fr) repeat(5, 40px);
    gap: 8px;
  }

  .brand-block {
    width: 100%;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  h1 {
    font-size: 18px;
  }

  .progress-block {
    grid-column: 1 / -1;
    order: 3;
    padding: 9px 10px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .side-panel {
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .plot-panel {
    display: none;
  }

  .mode-panel,
  .speed-panel,
  .sound-panel {
    padding: 8px;
    border-radius: 14px;
  }

  .panel-label {
    font-size: 11px;
  }

  .speed-row strong,
  .sound-row strong {
    font-size: 13px;
  }

  .volume-control {
    gap: 6px;
    margin-top: 7px;
  }

  .volume-control span {
    font-size: 11px;
  }

  .segmented {
    gap: 4px;
    margin-top: 6px;
    padding: 4px;
    border-radius: 14px;
  }

  .segment {
    min-height: 32px;
    border-radius: 10px;
    font-size: 12px;
  }

  .scene-art {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    order: 3;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.54);
    transform: none;
  }

  .stage[data-shot="wide"] .scene-art,
  .stage[data-shot="left"] .scene-art,
  .stage[data-shot="right"] .scene-art,
  .stage[data-shot="object"] .scene-art {
    transform: none;
  }

  .talk-effect {
    display: none;
  }

  .story-strip {
    position: relative;
    top: auto;
    left: auto;
    order: 4;
    width: 100%;
    min-height: auto;
    max-height: 128px;
    overflow: auto;
    padding: 10px 12px;
    border-radius: 14px;
    transform: none;
  }

  .story-strip p {
    font-size: 14.5px;
    line-height: 1.45;
  }

  .dialogue-panel {
    position: relative;
    top: auto;
    left: auto;
    order: 5;
    width: 100%;
    padding: 14px 12px 12px;
    border-radius: 18px;
    transform: none;
  }

  .lesson-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    order: 6;
    width: 100%;
    max-height: none;
    padding: 14px;
    border-radius: 16px;
    transform: none;
  }

  .lesson-panel:not([hidden]) {
    animation: none;
  }

  .speaker-row {
    align-items: center;
  }

  .practice-head-actions {
    gap: 6px;
  }

  .practice-mode-toggle {
    min-height: 31px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .practice-read-panel {
    flex-direction: column;
    gap: 13px;
    min-height: 0;
    padding: 16px 12px;
    text-align: center;
  }

  .practice-read-panel .video-read-score-grid {
    grid-template-columns: 1fr;
  }

  .speaker-tag {
    min-height: 23px;
    font-size: 12px;
  }

  h2 {
    font-size: clamp(23px, 7vw, 29px);
  }

  .practice-cn {
    margin-top: 14px;
    font-size: clamp(24px, 7.4vw, 31px);
    line-height: 1.22;
  }

  .answer-reveal {
    margin-top: 12px;
    padding: 12px;
  }

  .english-line {
    font-size: clamp(18px, 5.5vw, 22px);
  }

  .answer-box {
    margin-top: 14px;
    padding: 4px 0;
  }

  .word-blanks {
    gap: 13px 8px;
  }

  .word-slot {
    max-width: 13ch;
    font-size: clamp(25px, 7vw, 32px);
  }

  .word-input {
    height: 44px;
    border-bottom-width: 3px;
  }

  .control-dock {
    width: min(100%, 310px);
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    gap: 8px;
    margin-top: 24px;
    padding: 10px;
    border-radius: 18px;
  }

  .dock-button {
    width: 100%;
    height: 42px;
    border-radius: 13px;
  }

  .feedback {
    min-height: 20px;
    font-size: 13px;
  }

  .top-hint-panel {
    top: 8px;
    width: calc(100vw - 16px);
    max-height: 58svh;
    padding: 14px;
    border-radius: 16px;
  }

  .hint-en {
    font-size: clamp(20px, 6vw, 25px);
  }

  .hint-tokens {
    gap: 8px;
  }

  .hint-word {
    min-width: calc(50% - 4px);
    padding: 8px 10px 10px;
  }

  .hint-word strong {
    font-size: 18px;
  }

  .hint-gloss {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .product-brand span:last-child {
    font-size: 19px;
  }

  .product-nav {
    grid-auto-columns: minmax(62px, 1fr);
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-card strong {
    font-size: 23px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) repeat(5, 38px);
    gap: 7px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .control-dock {
    grid-template-columns: repeat(5, minmax(38px, 1fr));
  }
}

@media (max-width: 760px) {
  .product-shell {
    display: block;
    min-height: 100svh;
  }

  .product-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    padding: 9px 10px 8px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(53, 77, 112, 0.08);
    box-shadow: 0 14px 34px rgba(68, 86, 121, 0.1);
    backdrop-filter: blur(18px);
  }

  .product-brand {
    justify-content: start;
    min-height: 38px;
    width: 100%;
    padding: 2px 0;
  }

  .product-brand span:last-child {
    display: inline;
    font-size: 19px;
  }

  .product-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .product-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(66px, 1fr);
    grid-template-columns: none;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-nav::-webkit-scrollbar {
    display: none;
  }

  .product-nav-item {
    min-height: 52px;
    padding: 6px 7px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .product-main {
    padding: 10px 10px calc(30px + env(safe-area-inset-bottom));
  }

  .product-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .product-top h1 {
    font-size: clamp(23px, 6.8vw, 30px);
    line-height: 1.16;
  }

  .product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .product-actions .solid-action {
    grid-column: 1 / -1;
  }

  .hero-actions,
  .detail-actions,
  .membership-hero-actions,
  .teaser-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .solid-action,
  .ghost-action,
  .text-action,
  .back-link,
  .category-chip {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .home-hero-copy,
  .course-detail,
  .market-panel,
  .episode-panel,
  .locked-teaser,
  .membership-hero,
  .membership-plan-card,
  .membership-benefit-grid article,
  .membership-rule-panel,
  .membership-rule-grid article,
  .membership-partner-panel,
  .partner-rule-list article,
  .membership-score-card {
    border-radius: 20px;
  }

  .course-card img {
    height: 150px;
  }

  .course-card.is-featured img {
    height: 170px;
  }

  .course-card-body {
    gap: 10px;
    padding: 14px;
  }

  .episode-item {
    min-height: 72px;
    padding: 12px;
    border-radius: 17px;
  }

  .episode-index {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .membership-hero {
    gap: 14px;
    padding: 16px;
  }

  .membership-hero h2 {
    font-size: clamp(26px, 7.4vw, 34px);
    line-height: 1.12;
  }

  .membership-hero p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .membership-score-card {
    min-height: 128px;
    padding: 16px;
  }

  .membership-plan-card {
    min-height: auto;
    padding: 16px;
  }

  .membership-plan-card strong {
    font-size: clamp(30px, 8vw, 38px);
  }

  .membership-card-list {
    gap: 6px;
  }

  .membership-card-list b {
    font-size: 13px;
  }

  .membership-rule-panel,
  .membership-partner-panel {
    gap: 13px;
    padding: 16px;
  }

  .membership-rule-grid,
  .partner-rule-list {
    gap: 10px;
  }

  .membership-rule-grid article,
  .partner-rule-list article {
    padding: 14px;
  }

  .membership-rule-grid article strong,
  .partner-rule-list article strong {
    font-size: 18px;
  }

  .membership-benefit-grid article {
    padding: 15px;
  }

  .modal-layer {
    place-items: end center;
    padding: 8px;
  }

  .product-modal {
    width: 100%;
    max-height: calc(100svh - 16px);
    overflow: auto;
    padding: 18px;
    border-radius: 22px;
  }

  .stage {
    gap: 8px;
    padding: 8px 10px calc(16px + env(safe-area-inset-bottom));
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) repeat(5, 42px);
    gap: 6px;
    align-items: stretch;
  }

  .brand-block {
    min-height: 42px;
    padding: 7px 8px;
    border-radius: 16px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .topbar h1 {
    font-size: clamp(16px, 4.8vw, 18px);
  }

  .topbar .eyebrow {
    font-size: 10px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .progress-block {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .side-panel {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sound-panel {
    grid-column: 1 / -1;
  }

  .mode-panel,
  .speed-panel,
  .sound-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .segmented {
    border-radius: 18px;
  }

  .segment {
    min-height: 38px;
    border-radius: 14px;
    font-size: 13px;
  }

  .scene-art {
    border-radius: 16px;
  }

  .story-strip {
    margin-top: -3px;
    max-height: 126px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .story-strip p {
    font-size: 15px;
    line-height: 1.55;
  }

  .dialogue-panel {
    padding: 16px 12px 14px;
    border-radius: 22px;
  }

  .speaker-tag {
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
  }

  h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .practice-cn {
    margin-top: 16px;
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.22;
  }

  .answer-box {
    margin-top: 14px;
    padding: 4px 0;
  }

  .word-blanks {
    justify-content: center;
    gap: 14px 10px;
  }

  .word-slot {
    width: min(max(var(--slot-width), 4ch), 46vw);
    min-width: min(32vw, 4.4ch);
    max-width: 46vw;
    font-size: clamp(23px, 7.3vw, 31px);
  }

  .word-input {
    height: 50px;
    padding-bottom: 8px;
    border-bottom-width: 3px;
  }

  .control-dock {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 3;
    width: min(100%, 340px);
    grid-template-columns: repeat(5, minmax(46px, 1fr));
    gap: 8px;
    margin-top: 20px;
    padding: 10px;
    border-radius: 20px;
  }

  .dock-button {
    width: 100%;
    height: 46px;
    border-radius: 15px;
  }

  .feedback {
    min-height: 20px;
    font-size: 13px;
  }

  .top-hint-panel {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100vw - 14px);
    max-height: 72svh;
    padding: 14px 12px 16px;
    border-radius: 20px;
  }

  .hint-topline {
    position: sticky;
    top: -14px;
    z-index: 1;
    margin: -2px 0 10px;
    padding: 2px 0 10px;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(22, 27, 34, 0.86) 72%, transparent);
    backdrop-filter: blur(8px);
  }

  .hint-close-button {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .hint-en {
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.16;
  }

  .hint-tokens {
    gap: 8px;
  }

  .hint-word {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
    padding: 9px 10px 10px;
    border-radius: 14px;
  }

  .hint-word strong {
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.12;
  }

  .hint-gloss,
  .hint-cn,
  .hint-focus {
    font-size: 14px;
    line-height: 1.55;
  }

  .intro-panel {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    width: calc(100vw - 18px);
    min-width: 0;
    max-height: calc(100svh - 20px);
    overflow: auto;
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
  }

  .intro-copy p {
    padding-right: 88px;
    font-size: 14.5px;
    line-height: 1.75;
  }

  .intro-actions {
    position: absolute;
    right: 14px;
    top: 14px;
  }

  .intro-control {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 430px) {
  .product-sidebar {
    padding: 8px;
  }

  .product-brand span:last-child {
    font-size: 18px;
  }

  .product-nav {
    grid-auto-columns: minmax(60px, 1fr);
  }

  .product-nav-item {
    min-height: 50px;
    font-size: 11px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) repeat(5, 39px);
    gap: 5px;
  }

  .icon-button {
    width: 39px;
    height: 39px;
  }

  .brand-block {
    padding: 7px;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .topbar h1 {
    font-size: 16px;
  }

  .control-dock {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .dock-button {
    height: 44px;
  }

  .word-slot {
    width: min(max(var(--slot-width), 4ch), 48vw);
    max-width: 48vw;
    font-size: clamp(23px, 7.6vw, 30px);
  }

  .story-strip {
    max-height: 116px;
  }

  .practice-cn {
    font-size: clamp(23px, 7.5vw, 29px);
  }
}

/* Partner offer and verified account dashboard. */
.partner-offer {
  display: grid;
  gap: 24px;
}

.partner-offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 36px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(42, 63, 90, 0.09);
  border-radius: 26px;
  background: linear-gradient(120deg, #fffdf2 0%, #f6fffd 58%, #dbf7ee 100%);
  box-shadow: 0 18px 46px rgba(87, 109, 140, 0.08);
}

.partner-offer-copy h2 {
  margin: 20px 0 18px;
  color: #182c37;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.partner-offer-copy > p {
  max-width: 540px;
  margin: 0;
  color: #526173;
  font-size: 15px;
  line-height: 1.9;
}

.partner-offer-tag {
  display: block;
  margin-top: 22px;
  color: #52756f;
  font-size: 12px;
  line-height: 1.8;
}

.partner-offer-price {
  padding: 26px 22px;
  border: 1px solid rgba(41, 140, 121, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.partner-offer-price > span {
  color: #426e63;
  font-size: 14px;
  font-weight: 800;
}

.partner-offer-price .partner-offer-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 18px 0 4px;
  color: #173e34;
}

.partner-offer-amount strong {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.partner-offer-amount span {
  font-size: 16px;
}

.partner-offer-price > p:not(.partner-offer-amount) {
  margin: 12px 0 22px;
  color: #6c7a79;
  font-size: 13px;
}

.partner-offer-price button {
  width: 100%;
}

.partner-offer-price button:disabled {
  color: #55716a;
  background: #e2ece8;
  border-color: #d5e3dd;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.partner-offer-price small {
  display: block;
  margin-top: 12px;
  color: #7b8985;
  font-size: 11px;
  line-height: 1.7;
}

.partner-offer-benefits .section-head {
  margin-top: 8px;
}

.partner-offer-benefits h2 {
  margin: 8px 0 0;
  color: #182c37;
  font-size: clamp(22px, 2vw, 28px);
}

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

.partner-offer-benefit-grid article {
  padding: 22px;
  border: 1px solid rgba(42, 63, 90, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.partner-benefit-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #218275;
  background: #e2f6ee;
  font-size: 13px;
  font-weight: 900;
}

.partner-offer-benefit-grid article:nth-child(even) .partner-benefit-number {
  color: #8b7028;
  background: #fff2c5;
}

.partner-offer-benefit-grid h3 {
  margin: 16px 0 9px;
  color: #263e47;
  font-size: 16px;
  line-height: 1.5;
}

.partner-offer-benefit-grid p {
  margin: 0;
  color: #6d7b88;
  font-size: 13px;
  line-height: 1.85;
}

.partner-offer-notice {
  margin: 0;
  padding: 16px 20px;
  border: 1px solid #e3e9e9;
  border-radius: 14px;
  color: #6b7d83;
  background: #f6f9f9;
  font-size: 12px;
  line-height: 1.85;
}

.partner-access-status {
  margin: 0 0 16px;
  padding: 13px 17px;
  border: 1px solid #f0dfb5;
  border-radius: 14px;
  color: #78602a;
  background: #fff9eb;
  font-size: 14px;
  line-height: 1.7;
}

.partner-dashboard > .partner-access-status,
.partner-offer > .partner-access-status {
  margin: 0;
}

#partnerDashboard .partner-hero h2 {
  font-family: inherit;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.4;
}

#partnerDashboard .partner-stat-card strong {
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#partnerDashboard .invite-card strong {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#partnerDashboard .invite-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.partner-customer-panel {
  min-width: 0;
}

.partner-customer-panel .partner-table {
  overflow-x: auto;
}

.partner-customer-panel .partner-row {
  min-width: 540px;
  grid-template-columns: minmax(140px, 1.2fr) minmax(80px, 0.6fr) minmax(100px, 0.8fr) minmax(120px, 1fr);
}

.partner-customer-panel .partner-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.partner-empty-state {
  margin: 0;
  padding: 30px 16px;
  color: #7b8996;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .partner-offer-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .partner-offer-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .partner-offer-price {
    width: 100%;
    max-width: 380px;
    justify-self: center;
  }

  .partner-offer-benefit-grid article {
    padding: 18px;
  }

  #partnerDashboard .partner-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  #partnerDashboard .partner-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .partner-offer-hero {
    padding: 22px 18px;
  }

  .partner-offer-copy h2 {
    font-size: 27px;
  }

  .partner-offer-benefit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .partner-offer-benefit-grid article {
    padding: 20px;
  }

  .partner-offer-notice {
    padding: 14px 16px;
  }

  #partnerDashboard .partner-stat-card {
    padding: 16px;
  }
}

/* Sida partner programme: story-led recruitment, separate working dashboard. */
.product-brand .sida-brand-image { display: block; width: 100%; max-width: 218px; height: auto; object-fit: contain; border-radius: 9px; }
.product-brand:has(.sida-brand-image) { padding: 0; width: 100%; max-width: 218px; background: #fff; border-radius: 9px; }
.product-sidebar [data-route="legal"] { display: none !important; }
.product-sidebar [data-route="review"] { display: none !important; }
#viewPartner, #viewPromotion { min-width: 0; }
.sida-partner-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  overflow: hidden;
  background: #142f38;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 20px 42px #153a4214;
}
.sida-partner-hero .hero-pill { color: #173a3b; background: #ffe477; font-size: 14px; }
.sida-partner-hero .partner-offer-copy h2 {
  color: #fff;
  font-family: inherit;
  font-size: clamp(32px, 3.7vw, 58px);
  font-weight: 900;
  line-height: 1.22;
  margin: 24px 0 20px;
  letter-spacing: -.035em;
}
.sida-partner-hero .partner-offer-copy > p { color: #d0e2e5; font-size: 16px; line-height: 1.9; }
.sida-partner-highlights { display: flex; flex-wrap: wrap; gap: 16px 26px; margin: 26px 0; }
.sida-partner-highlights > span { display: grid; gap: 5px; color: #c9dcdf; font-size: 14px; }
.sida-partner-highlights strong { color: #7be9d7; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; }
.sida-partner-hero .solid-action { color: #102f32; background: #70e5d1; border-color: #70e5d1; box-shadow: none; }
.sida-partner-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 16px 0; }
.sida-partner-stories figure { min-width: 0; margin: 0; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 16px 24px #0003; }
.sida-partner-stories figure:first-child { transform: translateY(25px) rotate(-4deg); }
.sida-partner-stories figure:nth-child(2) { transform: translateY(-18px); }
.sida-partner-stories figure:last-child { transform: translateY(28px) rotate(4deg); }
.sida-partner-stories img { display: block; width: 100%; height: clamp(155px, 19vw, 270px); object-fit: cover; object-position: center; filter: none; }
.sida-partner-stories figcaption { padding: 12px 9px; color: #223743; font-size: 13px; font-weight: 750; line-height: 1.6; }
.sida-partner-stories figcaption span { display: block; color: #397568; font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.sida-partner-plan { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; align-items: center; padding: 36px; background: #fff; border: 1px solid #dce9e6; border-radius: 24px; }
.sida-partner-plan h2, .sida-partner-rights h2, .sida-share-routes h2, .sida-partner-steps h2, .sida-partner-faq h2 { color: #173b42; font-family: inherit; font-weight: 850; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.45; margin: 10px 0 18px; }
.sida-partner-plan > div > p { color: #536a74; font-size: 16px; line-height: 1.9; max-width: 670px; }
.sida-partner-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; gap: 12px 18px; padding: 0; margin: 24px 0 0; }
.sida-partner-checks li { color: #244b49; font-size: 14px; font-weight: 700; line-height: 1.6; }
.sida-partner-checks li::before { content: "✓"; margin-right: 8px; color: #128575; }
.sida-partner-plan .partner-offer-price { width: 100%; padding: 28px 22px; background: #eefcf7; border-color: #b9e7d8; border-radius: 20px; }
.sida-partner-plan .partner-offer-price strong { font-size: 78px; }
.sida-partner-plan .partner-offer-price > p:not(.partner-offer-amount) { color: #24584e; font-size: 16px; font-weight: 700; }
.sida-partner-plan .partner-offer-price small { font-size: 13px; color: #516b66; }
#viewPartner .section-head { margin: 12px 0 18px; }
.sida-rights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sida-rights-grid article { min-width: 0; padding: 28px; border-radius: 22px; border: 1px solid #c3e7df; background: #e8f9f2; }
.sida-rights-grid article.is-creator { border-color: #f1dba8; background: #fff7de; }
.sida-rights-tag { display: inline-flex; padding: 6px 12px; color: #1c6758; background: #ffffffb8; border-radius: 8px; font-size: 14px; font-weight: 800; }
.is-creator .sida-rights-tag { color: #856015; }
.sida-rights-grid h3 { margin: 20px 0 12px; color: #1b403d; font-size: 25px; line-height: 1.5; }
.sida-rights-grid p { margin: 0; color: #405e62; font-size: 16px; line-height: 1.9; }
.sida-rights-grid strong { display: block; margin-top: 20px; color: #46665e; font-size: 14px; line-height: 1.7; }
#viewPartner .partner-offer-benefit-grid article { padding: 24px; border-color: #dce7e7; }
#viewPartner .partner-offer-benefit-grid p { color: #526b76; font-size: 15px; }
#viewPartner .partner-offer-benefit-grid h3 { font-size: 18px; }
.sida-share-routes { background: #eff5f7; border-radius: 24px; padding: 32px; }
.sida-share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sida-share-grid article { border-top: 2px solid #8fc7c0; padding-top: 22px; }
.sida-share-grid article > span { font-size: 14px; color: #367568; font-weight: 750; }
.sida-share-grid h3 { font-size: 20px; color: #224550; margin: 13px 0; }
.sida-share-grid p { margin: 0; color: #546e79; font-size: 16px; line-height: 1.9; }
.sida-partner-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.sida-partner-steps li { display: flex; align-items: flex-start; gap: 15px; padding: 24px; border: 1px solid #dce8e5; border-radius: 20px; background: #fff; }
.sida-partner-steps li > span { flex: 0 0 35px; height: 35px; display: grid; place-items: center; background: #d9f7ee; color: #225b50; border-radius: 50%; font-weight: 850; }
.sida-partner-steps h3 { margin: 3px 0 10px; font-size: 17px; line-height: 1.6; }
.sida-partner-steps p { margin: 0; color: #5b737e; font-size: 15px; line-height: 1.9; }
.sida-partner-faq details { border: 1px solid #dde7e8; border-radius: 14px; background: #fff; margin-bottom: 10px; padding: 18px 24px; }
.sida-partner-faq summary { cursor: pointer; color: #234450; font-weight: 750; font-size: 16px; line-height: 1.7; }
.sida-partner-faq details p { color: #5a727c; margin: 15px 0 0; font-size: 15px; line-height: 1.9; }
#viewPartner .partner-offer-notice { font-size: 14px; }
#viewPromotion .partner-dashboard { display: grid; gap: 22px; }
#viewPromotion [hidden] { display: none !important; }
#viewPromotion .partner-hero { margin: 0; border: 1px solid #c8e7df; border-radius: 24px; background: #e7f9f1; box-shadow: none; }
#viewPromotion .partner-hero h2 { color: #203d48; font-size: clamp(28px, 3vw, 38px); }
#viewPromotion .partner-hero p { font-size: 15px; line-height: 1.8; }
#viewPromotion .invite-card { background: #fff; border: 1px solid #c6e9dc; box-shadow: none; }
#viewPromotion #partnerCode { color: #146457; letter-spacing: .08em; }
#viewPromotion #partnerLink { overflow-wrap: anywhere; font-size: 14px; }
.promotion-preview-notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid #efdca7; background: #fff8e5; border-radius: 18px; }
.promotion-preview-notice strong { color: #7d5d1d; font-size: 16px; }
.promotion-preview-notice p { margin: 8px 0 0; color: #806b44; font-size: 14px; line-height: 1.8; }
.promotion-preview-notice button { flex-shrink: 0; }
.promotion-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px; background: #e8eff1; border-radius: 14px; }
.promotion-tabs button { flex: 1 0 auto; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #56707c; font-size: 14px; font-weight: 750; cursor: pointer; }
.promotion-tabs button[aria-selected="true"] { color: #125b51; background: #fff; border-color: #c7ded8; box-shadow: 0 2px 5px #224b4310; }
#viewPromotion [data-promotion-panel] { min-width: 0; }
#viewPromotion .partner-stat-grid { margin: 0 0 24px; gap: 16px; }
#viewPromotion .partner-stat-card { background: #fff; border: 1px solid #e0e9e9; box-shadow: none; }
#viewPromotion .partner-stat-card > span { color: #56727c; font-size: 14px; }
#viewPromotion .partner-stat-card p { color: #70838b; font-size: 13px; line-height: 1.7; }
#viewPromotion .partner-panel { margin: 0; padding: 28px; border: 1px solid #dfe9e9; background: #fff; border-radius: 22px; }
.promotion-data-note { color: #73838c; font-size: 13px; }
.promotion-unavailable-panel h2 { margin: 14px 0; font-size: clamp(23px, 2.5vw, 30px); color: #23414c; }
.promotion-unavailable-panel > p { color: #5c737e; font-size: 16px; line-height: 1.9; max-width: 780px; }
.promotion-unavailable-panel .solid-action:disabled { color: #59736e; background: #e2eeea; border-color: #d6e5df; box-shadow: none; cursor: not-allowed; }
.promotion-pending-metrics { display: flex; flex-wrap: wrap; gap: 50px; margin: 28px 0; }
.promotion-pending-metrics > div { display: grid; gap: 10px; }
.promotion-pending-metrics span { color: #657c85; font-size: 14px; }
.promotion-pending-metrics strong { color: #405e68; font-size: 32px; }
#viewPromotion .script-grid { gap: 18px; }
#viewPromotion .script-card { min-width: 0; border: 1px solid #dce8e5; background: #fff; box-shadow: none; }
#viewPromotion .script-card p { font-size: 15px; line-height: 1.85; color: #526d78; }
.admin-user-actions .is-danger, .admin-user-action.is-danger, .admin-user-ban, .admin-user-status.is-banned { color: #b42638; border-color: #f0c1c8; background: #fff3f5; }
.admin-user-ban:disabled { opacity: .5; cursor: not-allowed; }
#viewAdmin .is-banned { color: #b42638; }
#viewMembership .sida-membership { display: grid; gap: 34px; min-width: 0; }
.sida-membership-heading { text-align: center; padding: 16px 16px 20px; }
.sida-membership-heading h2 { margin: 22px 0 16px; font-size: clamp(28px, 3.5vw, 44px); font-family: inherit; font-weight: 900; line-height: 1.4; color: #16444b; }
.sida-membership-heading > p { max-width: 650px; margin: auto; color: #5c7480; font-size: 16px; line-height: 1.9; }
.sida-membership-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 22px; }
.sida-member-card { position: relative; min-width: 0; padding: 30px 25px; border: 1px solid #dae6e7; border-radius: 24px; background: #fff; display: flex; flex-direction: column; }
.sida-member-card.is-member { border: 2px solid #079f91; box-shadow: 0 12px 30px #10675b14; padding: 29px 24px; }
.sida-member-card.is-partner { background: #163b43; color: #fff; border-color: #163b43; }
.sida-plan-eyebrow { color: #478078; font-weight: 700; font-size: 14px; }
.is-partner .sida-plan-eyebrow { color: #7cebd7; }
.sida-plan-recommend { position: absolute; top: -14px; right: 20px; color: #fff; background: #098f80; border-radius: 7px; padding: 6px 12px; font-size: 13px; font-weight: 800; }
.sida-member-card h3 { margin: 15px 0 9px; font-size: 28px; color: inherit; line-height: 1.4; }
.sida-plan-intro { margin: 0; color: #647b85; font-size: 16px; line-height: 1.8; min-height: 58px; }
.is-partner .sida-plan-intro { color: #c0d7dc; }
.sida-membership-periods { display: flex; gap: 5px; padding: 5px; border-radius: 12px; background: #eaf4f1; margin: 15px 0 0; }
.sida-membership-periods button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: #4d736e; cursor: pointer; font-size: 14px; font-weight: 750; }
.sida-membership-periods button[aria-pressed="true"] { background: #fff; color: #076b5f; box-shadow: 0 2px 5px #1d554415; }
.sida-member-card:not(.is-member) .sida-plan-price { margin-top: 65px; }
.sida-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin: 18px 0 0; color: #153f46; }
.sida-plan-price > span { font-size: 22px; font-weight: 850; }
.sida-plan-price > strong { font-size: clamp(43px, 4.7vw, 62px); font-weight: 900; line-height: 1.15; letter-spacing: -.04em; }
.sida-plan-price > small { color: #648087; font-size: 14px; white-space: nowrap; }
.is-partner .sida-plan-price { color: #ffe28a; }
.is-partner .sida-plan-price > small { color: #bbd8d8; }
.sida-plan-value { margin: 16px 0 23px; min-height: 46px; color: #4f746c; font-size: 14px; line-height: 1.75; }
.is-partner .sida-plan-value { color: #c7dede; }
.sida-member-card > button { min-height: 48px; width: 100%; font-size: 16px; }
.sida-member-card.is-member > button { background: #069e8e; border-color: #069e8e; color: #fff; box-shadow: none; }
.sida-member-card.is-partner > button { background: #ffdd79; border-color: #ffdd79; color: #244441; }
.sida-plan-features { display: grid; gap: 16px; list-style: none; margin: 27px 0 18px; padding: 25px 0 0; border-top: 1px solid #e2eceb; }
.sida-plan-features li { position: relative; padding-left: 23px; color: #3c5f68; font-size: 16px; line-height: 1.65; }
.sida-plan-features li::before { position: absolute; left: 0; content: "✓"; color: #0c967d; font-weight: 900; }
.sida-plan-features .is-muted { color: #83949d; }
.sida-plan-features .is-muted::before { content: "—"; color: #99a8ac; }
.is-partner .sida-plan-features { border-color: #ffffff26; }
.is-partner .sida-plan-features li { color: #e2eeee; }
.is-partner .sida-plan-features li::before { color: #79e5cf; }
.sida-plan-features .is-important { color: #ffe092; font-weight: 800; }
.sida-plan-features .is-important::before { content: "!"; color: #ffe092; }
.sida-plan-fineprint { margin: auto 0 0; padding-top: 8px; color: #6b828b; font-size: 13px; line-height: 1.8; }
.is-partner .sida-plan-fineprint { color: #a8c6cd; }
.sida-membership-thanks { text-align: center; color: #56746d; margin: 0; font-size: 15px; line-height: 1.8; }
.sida-membership-comparison { min-width: 0; background: #fff; border: 1px solid #dce8e7; border-radius: 24px; padding: 30px; }
.sida-membership-comparison h2, .sida-membership-promises h2 { color: #21464c; font-size: 27px; font-family: inherit; font-weight: 850; }
.sida-comparison-scroll { width: 100%; overflow-x: auto; }
.sida-comparison-scroll table { border-collapse: collapse; min-width: 740px; width: 100%; text-align: left; table-layout: fixed; }
.sida-comparison-scroll th, .sida-comparison-scroll td { padding: 20px 16px; border-bottom: 1px solid #e6edef; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.sida-comparison-scroll thead th { color: #215c58; background: #edf8f4; font-size: 16px; }
.sida-comparison-scroll tbody th { color: #34525f; font-weight: 700; }
.sida-comparison-scroll td { color: #647b84; }
.sida-comparison-scroll td.is-important { color: #896119; font-weight: 750; background: #fffaf0; }
.sida-comparison-scroll tr:last-child > * { border-bottom: 0; }
.sida-membership-note { color: #73828c; font-size: 13px; line-height: 1.8; margin: 20px 0 0; }
.sida-single-episode { padding: 26px 30px; border-radius: 20px; background: #fff6da; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.sida-single-episode h3 { margin: 0 0 9px; color: #675525; font-size: 20px; }
.sida-single-episode p { color: #807451; font-size: 16px; line-height: 1.8; margin: 0; }
.sida-single-episode > button { flex-shrink: 0; }
.sida-membership-promises > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sida-membership-promises article { border-top: 1px solid #cddfdf; padding-top: 22px; }
.sida-membership-promises article > span { color: #168174; font-weight: 850; font-size: 16px; }
.sida-membership-promises h3 { color: #284954; font-size: 19px; margin: 14px 0; }
.sida-membership-promises p { color: #667c85; font-size: 16px; line-height: 1.9; }
.sida-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; border: 0; }
.product-site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 4px 8px; margin-top: 30px; border-top: 1px solid #dce7e8; color: #6b808b; font-size: 14px; line-height: 1.8; }
.product-site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.product-site-footer a { color: #3e6868; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.product-site-footer a:hover { text-decoration: underline; }
.sida-membership-periods button:focus-visible, .sida-comparison-scroll:focus-visible, .product-site-footer a:focus-visible { outline: 3px solid #118575; outline-offset: 3px; }
#payModal.is-focused-membership .pricing-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
  .sida-membership-cards { gap: 14px; }
  .sida-member-card { padding: 26px 19px; }
  .sida-member-card.is-member { padding: 25px 18px; }
}
@media (max-width: 950px) {
  .sida-membership-cards, .sida-membership-promises > div { grid-template-columns: minmax(0, 1fr); }
  .sida-member-card { padding: 28px; }
  .sida-member-card.is-member { padding: 27px; }
  .sida-member-card:not(.is-member) .sida-plan-price { margin-top: 24px; }
  .sida-plan-intro, .sida-plan-value { min-height: 0; }
  .sida-membership-periods { max-width: 350px; }
  .sida-membership-cards { gap: 28px; }
  .sida-single-episode { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .product-site-footer { flex-direction: column; text-align: center; gap: 10px; }
  .product-site-footer nav { justify-content: center; gap: 8px 18px; }
  .sida-membership-comparison { padding: 22px 16px; }
  .sida-membership-heading { padding: 8px 0; }
  .sida-membership-heading h2 { font-size: 28px; }
  .sida-member-card, .sida-single-episode { padding: 24px; }
  .sida-member-card.is-member { padding: 23px; }
}
#partnerTrendChart { overflow-x: auto; }
#partnerTrendChart .partner-row { min-width: 420px; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; }
.promotion-tabs button:focus-visible, .sida-partner-faq summary:focus-visible { outline: 3px solid #138c7a; outline-offset: 3px; }
@media (max-width: 1150px) {
  .sida-partner-hero { grid-template-columns: minmax(0, 1fr); }
  .sida-partner-stories { max-width: 620px; width: 100%; justify-self: center; padding: 24px 14px; }
  .sida-partner-stories img { height: 230px; }
  .sida-partner-steps ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .sida-partner-plan, .sida-rights-grid, .sida-share-grid { grid-template-columns: minmax(0, 1fr); }
  .sida-partner-plan, .sida-share-routes { padding: 24px; }
  .sida-partner-plan .partner-offer-price { max-width: none; }
  .promotion-preview-notice { align-items: stretch; flex-direction: column; }
  .promotion-tabs button { padding: 10px 14px; }
}
@media (max-width: 480px) {
  .sida-partner-hero { padding: 24px 18px; border-radius: 20px; }
  .sida-partner-stories { gap: 6px; padding: 18px 7px; }
  .sida-partner-stories img { height: 160px; }
  .sida-partner-stories figcaption { font-size: 12px; padding: 10px 7px; }
  .sida-partner-stories figcaption span { font-size: 12px; }
  .sida-partner-checks { grid-template-columns: minmax(0, 1fr); }
  .sida-rights-grid article, .sida-partner-faq details, #viewPromotion .partner-panel { padding: 21px; }
  #viewPromotion .partner-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .sida-partner-highlights { gap: 22px; }
}

/* One learning direction and one format; textbook options stay contextual. */
.course-filters {
  padding: 12px 16px;
  border: 1px solid rgba(21, 97, 90, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}
.course-filter-row { display: flex; align-items: baseline; gap: 18px; padding: 8px 0; }
.course-filter-row + .course-filter-row { border-top: 1px solid rgba(21, 97, 90, 0.09); }
.course-filter-label { flex: 0 0 auto; color: #5a6878; font-size: 0.875rem; font-weight: 700; }
.course-filter-options { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.course-filter-options .category-chip { padding: 9px 14px; font-size: 0.875rem; min-height: 40px; white-space: normal; }
.course-filter-options .category-chip.is-active { background: #d2f6ed; color: #074d42; border-color: #6dcaba; box-shadow: inset 0 0 0 1px #6dcaba; }
.course-filter-options .category-chip:focus-visible,
.course-textbook-filters select:focus-visible { outline: 3px solid #168573; outline-offset: 3px; }
.course-textbook-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; padding: 16px 0 4px; border-top: 1px dashed #bedbd5; }
.course-textbook-filters label { display: grid; gap: 7px; flex: 1 1 130px; font-size: 0.875rem; color: #475b6c; }
.course-textbook-filters select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; font: inherit; color: #18392f; background: #fff; border: 1px solid #b8cec8; border-radius: 9px; }
.course-textbook-filters select:disabled { color: #697b7a; background: #f0f4f3; cursor: not-allowed; }
.course-textbook-filters p { flex-basis: 100%; margin: 0; color: #637471; font-size: 0.875rem; line-height: 1.6; }
.course-results-bar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; min-height: 48px; padding: 8px 2px; color: #596b77; font-size: 0.875rem; }
.course-results-bar .text-action { font-size: 0.875rem; min-height: 32px; }
[data-course-market] .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-course-card { display: flex; flex-direction: column; min-width: 0; }
.market-course-card .course-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; min-width: 0; padding: 18px; }
.market-course-card .market-course-type { color: #187365; font-size: 0.8125rem; line-height: 1.6; }
.market-course-card .course-card-body h3 { margin: 0; line-height: 1.45; font-family: "Microsoft YaHei", sans-serif; }
.market-course-card .course-card-body p { margin: 0; min-height: 0; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-learning-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.course-learning-meta strong { padding: 4px 8px; background: #fff2c5; color: #705418; border-radius: 6px; font-size: 0.8125rem; }
.course-learning-meta span { color: #5a6878; font-size: 0.8125rem; line-height: 1.6; }
.course-book-meta { color: #596b77; font-size: 0.875rem; }
.market-course-card .course-meta { margin: 0; }
.market-course-card .course-card-body > .solid-action { margin-top: auto; width: 100%; }
@media (max-width: 1100px) {
  [data-course-market] .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .course-filters { padding: 8px 12px; }
  .course-filter-row { flex-direction: column; gap: 8px; align-items: stretch; padding: 12px 0; }
  .course-filter-options { gap: 6px; }
  .course-filter-options .category-chip { padding: 8px 11px; }
  [data-course-market] .course-grid { grid-template-columns: minmax(0, 1fr); }
}
/* User-adjustable course-market density. Does not affect homepage or lesson catalog. */
body[data-screen="courses"][data-market-density="5"] .product-main { width: min(100%, 1400px); }
body[data-screen="courses"][data-market-density="6"] .product-main { width: min(100%, 1600px); }
#viewCourses .course-grid { grid-template-columns: repeat(var(--market-columns, 3), minmax(0, 1fr)); gap: 14px; }
#viewCourses .section-head { flex-wrap: wrap; }
#viewCourses .course-filter-row--format { align-items: center; flex-wrap: wrap; }
.market-size-control { display: flex; align-items: center; flex: 0 0 205px; gap: 8px; margin-left: auto; font-size: 12px; line-height: 1.4; color: #758b83; white-space: nowrap; }
.market-size-control button { padding: 5px 3px; min-height: 32px; color: #577269; background: transparent; border: 0; font: inherit; cursor: pointer; }
.market-size-control button:hover { color: #007f73; text-decoration: underline; }
.market-size-control input { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; width: 120px; height: 32px; margin: 0; cursor: pointer; background: transparent; touch-action: pan-y; }
.market-size-control input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, #25b4a4 var(--market-size-progress,0%), #dce8e4 var(--market-size-progress,0%)); }
.market-size-control input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #159e90; border: 2px solid white; box-shadow: 0 1px 4px #225f4333; }
.market-size-control input::-moz-range-track { height: 4px; border-radius: 4px; background: #dce8e4; }
.market-size-control input::-moz-range-progress { height: 4px; border-radius: 4px; background: #25b4a4; }
.market-size-control input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #159e90; border: 2px solid white; }
.market-size-control :focus-visible { outline: 2px solid #138b7b; outline-offset: 3px; border-radius: 5px; }
#viewCourses .market-course-card { border-radius: 16px; }
#viewCourses .market-course-card > img, #viewCourses .market-course-card > video { display: block; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
#viewCourses .market-course-card .course-card-body { padding: 14px; gap: 8px; }
#viewCourses .market-course-card .course-card-body h3 { font-size: 17px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#viewCourses .market-course-card .course-card-body p { font-size: 14px; }
#viewCourses .market-course-card .course-meta { flex-wrap: wrap; gap: 5px 8px; }
#viewCourses .market-course-card .solid-action { min-height: 40px; padding: 9px 10px; }
#viewCourses [data-market-columns="5"] .course-card-body, #viewCourses [data-market-columns="6"] .course-card-body { padding: 12px; }
#viewCourses [data-market-columns="5"] .course-card-body > p, #viewCourses [data-market-columns="6"] .course-card-body > p,
#viewCourses [data-market-columns="5"] .course-learning-meta > span, #viewCourses [data-market-columns="6"] .course-learning-meta > span { display: none; }
#viewCourses [data-market-columns="5"] .course-card-body h3, #viewCourses [data-market-columns="6"] .course-card-body h3 { font-size: 16px; }
@media (max-width: 1100px) { #viewCourses .course-grid { grid-template-columns: repeat(var(--market-columns, 3), minmax(0, 1fr)); } }
@media (max-width: 760px) { .market-size-control { display: none; } #viewCourses .course-grid { grid-template-columns: repeat(var(--market-columns, 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { #viewCourses .course-grid { grid-template-columns: minmax(0, 1fr); } #viewCourses .course-filter-row--format { align-items: stretch; } }
/* Course-directory dialog shares the learning site's teal/yellow visual language. */
.managed-directory .managed-directory-heading h2 {
  color: #143c43;
  font-weight: 800;
  text-shadow: none;
}
.managed-directory{width:min(820px,calc(100vw - 2rem));max-height:88dvh;overflow:auto;border:1px solid #d9e6e7;border-radius:22px;padding:1.8rem;color:#143c43;background:#fff;font-size:16px}.managed-directory::backdrop{background:#17353f88}.managed-directory-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.managed-directory h2{font-size:1.5rem;line-height:1.4;margin:0 0 1rem}.managed-directory h3{margin:1.6rem 0 .8rem;font-size:1.1rem}.managed-directory p{line-height:1.7;white-space:pre-line}.managed-directory button{font:inherit;cursor:pointer}.managed-directory-heading button{border:0;border-radius:50%;padding:.2rem .7rem;font-size:1.6rem;color:#526b73;background:#f0f5f5}.managed-directory-access{background:#e9f7f2;border-left:4px solid #00a497;padding:.8rem 1rem;border-radius:8px;font-size:.9rem}.managed-lesson-row{width:100%;display:flex;justify-content:space-between;gap:1rem;align-items:center;text-align:left;padding:1rem;margin:.6rem 0;border:1px solid #dbe6e8;border-radius:12px;background:#fff;color:#173b43}.managed-lesson-row:hover{border-color:#00a497;background:#f4fffb}.managed-lesson-row small{display:block;font-size:.875rem;color:#6c8087;margin-top:.5rem}.managed-lesson-row strong{font-size:.875rem;color:#008c7c;white-space:nowrap}.managed-directory :focus-visible{outline:3px solid #ffca50;outline-offset:3px}@media(max-width:550px){.managed-directory{padding:1rem}.managed-lesson-row{align-items:flex-start;flex-direction:column}}
/* Course directory: compact textbook index, scoped away from learning screens. */
.managed-directory{width:min(1180px,calc(100vw - 2rem));max-width:none;max-height:94dvh;padding:24px;background:#f3f9fa;box-sizing:border-box;overscroll-behavior:contain}
.managed-directory-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.managed-directory-topbar button{border:1px solid #d6e4e6;background:#fff;color:#234951;border-radius:24px;padding:9px 16px;min-height:44px}
.managed-directory-hero{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:26px;background:white;padding:20px;border:1px solid #dfebed;border-radius:18px}
.managed-directory-cover{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px;align-self:start}
.managed-directory-heading{display:block;min-width:0}
.managed-directory .managed-directory-heading h2{font-size:clamp(24px,2.4vw,32px);margin:12px 0;overflow-wrap:anywhere}
.managed-directory-badge{display:inline-block;padding:6px 12px;border-radius:8px;background:#ffe483;font-size:14px;font-weight:700;color:#254349}
.managed-directory-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:#3c6169}
.managed-directory-meta span{background:#edf6f7;padding:5px 9px;border-radius:6px}
.managed-directory-description{margin:14px 0;color:#43636b}
.managed-directory-description summary{cursor:pointer;font-size:14px;padding:6px 0}
.managed-directory-description p{font-size:16px;margin:8px 0}
.managed-directory-heading .managed-directory-start{font-size:16px;font-weight:700;background:#39d6c7;color:#103c42;border:1px solid #2abaaa;border-radius:12px;padding:11px 18px;min-height:44px}
.managed-directory-access{margin:14px 0;color:#31555c}
.managed-directory-catalog{background:#fff;border:1px solid #dce9eb;padding:20px;border-radius:18px}
.managed-directory-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.managed-directory-toolbar>div>span{font-size:14px;color:#53717a}
.managed-directory-toolbar h3{margin:4px 0 0;font-size:22px}
.managed-directory-toolbar label{font-size:14px;color:#40616b;display:flex;align-items:center;gap:8px;min-width:0}
.managed-directory-toolbar select{font:inherit;max-width:250px;min-height:44px;border:1px solid #c7dcdf;border-radius:8px;padding:8px;color:#244e57;background:#f7fbfc}
.managed-lesson-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.managed-directory .managed-lesson-row{margin:0;min-height:120px;padding:14px;align-items:flex-start;justify-content:flex-start;flex-direction:row;gap:12px;background:#f5fbfc;border-color:#cce6e8;border-radius:12px}
.managed-directory .managed-lesson-row:hover{background:#e5f8f4;border-color:#0da594}
.managed-lesson-number{display:grid;place-items:center;flex:0 0 38px;height:40px;background:#ffdf70;border-radius:9px;color:#23454d;font-weight:800}
.managed-lesson-copy{min-width:0}
.managed-lesson-copy b{display:block;font-size:16px;line-height:1.5;overflow-wrap:anywhere;margin:4px 0}
.managed-directory .managed-lesson-row small{margin:0;color:#516d77;font-size:14px}
.managed-directory .managed-lesson-row strong{display:block;margin-top:8px;color:#007a6b}
.managed-directory-pages{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:20px;font-size:14px}
.managed-directory-pages[hidden]{display:none}
.managed-directory-pages button{background:white;border:1px solid #c6dbdf;border-radius:8px;padding:10px 14px;color:#234951;min-height:44px}
.managed-directory-pages button:disabled{opacity:.45;cursor:default}
@media(max-width:960px){.managed-lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.managed-directory-hero{gap:18px;grid-template-columns:minmax(180px,.7fr) minmax(0,1fr)}}
@media(max-width:620px){.managed-directory{width:calc(100vw - 16px);padding:12px;max-height:96dvh;border-radius:16px}.managed-directory-hero{grid-template-columns:1fr;padding:14px}.managed-directory-cover{aspect-ratio:16/8;max-height:200px}.managed-directory-catalog{padding:14px}.managed-lesson-grid{grid-template-columns:1fr}.managed-directory-toolbar{align-items:flex-start;flex-direction:column}.managed-directory-toolbar label{width:100%}.managed-directory-toolbar select{min-width:0;flex:1;max-width:100%}.managed-directory-pages{gap:8px;flex-wrap:wrap}.managed-directory .managed-lesson-row{min-height:105px}}
.managed-directory.managed-purchase{width:min(480px,calc(100vw - 24px));padding:30px;background:radial-gradient(ellipse at 100% 0%,#33534b66,transparent 60%),linear-gradient(145deg,#182c30,#101b20);border:1px solid #c6aa7066;border-radius:24px;box-shadow:0 30px 100px #04141680,inset 0 1px 0 #f5dfb52b;color:#f5eee1}
.managed-purchase::backdrop{background:#07191fcc;backdrop-filter:blur(6px)}
.managed-purchase-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.managed-purchase-brand{display:block;padding-top:10px;font-size:14px;letter-spacing:.06em;color:#e2cca3}
.managed-directory.managed-purchase h2{font-size:26px;font-weight:800;line-height:1.35;color:#143d46;text-shadow:none;margin:8px 0 0}
.managed-purchase .managed-purchase-close{width:40px;height:40px;flex:0 0 40px;border:1px solid #cbd9d03d;background:#ffffff08;border-radius:50%;color:#dce6e2;font-size:24px;line-height:1;cursor:pointer}
.managed-purchase-product{padding:22px;background:linear-gradient(125deg,#ffffff09,#d3b8800b);border:1px solid #c5ae7d4a;border-radius:16px;box-shadow:inset 0 1px 0 #ffffff08}
.managed-purchase-type{display:inline-block;padding:5px 11px;border:1px solid #dbc28d66;border-radius:6px;color:#eddbb7;background:#d0ad6014;font-size:14px;font-weight:700;letter-spacing:.06em}
.managed-directory.managed-purchase h3{font-size:21px;font-weight:750;line-height:1.5;color:#fff5e3;text-shadow:none;margin:16px 0 0;overflow-wrap:anywhere}
.managed-purchase p.managed-purchase-lesson{margin:9px 0;color:#e0e9e5;font-size:16px}
.managed-purchase p.managed-purchase-scope{margin:16px 0 0;padding-top:14px;border-top:1px solid #ffffff19;font-size:14px;line-height:1.7;color:#bac9c7}
.managed-purchase-total{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:24px 0 18px}
.managed-purchase-total>span{font-size:16px;color:#cbd7d1}
.managed-purchase-total>div{display:flex;align-items:baseline;gap:6px;color:#f4dba6}
.managed-purchase-total strong{font-size:40px;font-weight:800;line-height:1.2;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.managed-purchase-currency{font-size:22px;font-weight:700}
.managed-purchase-method{display:flex;justify-content:space-between;padding:16px 0 20px;border-top:1px solid #e6eeee20;font-size:14px;color:#b9cac6}
.managed-purchase-method b{color:#8cdec0}
.managed-purchase .managed-purchase-confirm{display:block;width:100%;min-height:58px;padding:16px 18px;border:1px solid #f8e4b5;border-radius:13px;background:linear-gradient(110deg,#d6b576 0%,#f6e3b7 48%,#dfbf80 100%);color:#292519;font-size:17px;font-weight:800;box-shadow:0 8px 24px #d7b46c24,inset 0 1px 0 #fff7df;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.managed-purchase .managed-purchase-confirm:hover:not(:disabled){background:linear-gradient(110deg,#e5c68c,#ffedc6,#edcf96);box-shadow:0 10px 28px #d7b46c38,inset 0 1px 0 #fff7df;transform:translateY(-1px)}
.managed-purchase .managed-purchase-confirm:active:not(:disabled){transform:translateY(1px)}
.managed-purchase button:focus-visible{outline:3px solid #f4dba6;outline-offset:4px}
.managed-purchase .managed-purchase-confirm:disabled{opacity:.65;cursor:wait;box-shadow:none}
.managed-purchase-code{text-align:center;padding:16px;margin-top:8px;background:#f5fafa;border:1px solid #dcebea;border-radius:14px;font-size:14px;color:#345c60}
.managed-purchase-code img{display:block;width:220px;max-width:100%;height:auto;margin:12px auto 0;border:8px solid #fff;border-radius:8px;box-sizing:border-box}
.managed-purchase [hidden]{display:none!important}
.managed-purchase p.managed-purchase-message{margin:12px 0 0;font-size:14px;line-height:1.6;color:#d5e4df;overflow-wrap:anywhere}
.managed-purchase-message:empty{display:none}
.course-redeem { margin-top:16px; border-top:1px solid #ffffff25; padding-top:14px; color:#e3d09f; }
.course-redeem summary { cursor:pointer; font-size:14px; }
.course-redeem form { display:grid; gap:10px; margin-top:12px; }
.course-redeem input { display:block; width:100%; box-sizing:border-box; margin-top:6px; padding:12px; border-radius:10px; border:1px solid #829991; background:#fff; color:#143d46; font-size:16px; }
.course-redeem button { padding:12px; border-radius:10px; border:1px solid #e8ca89; background:#e8ca89; color:#302819; cursor:pointer; }
.course-redeem p { font-size:14px; line-height:1.6; }
.course-redeem.is-redeemed input:disabled { background:#d4d9d8; color:#596461; border-color:#a5afac; opacity:1; -webkit-text-fill-color:#596461; cursor:default; }
.managed-purchase[data-payment-state="error"] .managed-purchase-message{padding:10px 12px;border:1px solid #f0c4c4;background:#fff3f3;color:#ac3333;border-radius:9px}
.managed-purchase p.managed-purchase-footnote{text-align:center;margin:18px 0 0;font-size:14px;color:#b5c5c1}
@media(prefers-reduced-motion:reduce){.managed-purchase .managed-purchase-confirm{transition:none;transform:none!important}}
@media(max-width:480px){.managed-directory.managed-purchase{padding:22px 18px;border-radius:20px}.managed-purchase-total strong{font-size:36px}.managed-purchase-header{margin-bottom:18px}}
/* Answer text has no grammatical or decorative colour coding. */
.word-slot.word-neutral{--slot-color:#f5f7fa;--slot-glow:transparent;--slot-bg:transparent}
.word-slot.word-neutral .word-input,.stage.is-light-mode .word-slot.word-neutral .word-input{color:#f5f7fa;caret-color:#fff;text-shadow:0 2px 5px #0008;box-shadow:none}
.word-slot.word-neutral .word-input:focus{border-bottom-color:#f5f7fa}
.word-slot.word-neutral.is-mismatch .word-input{border-bottom-color:#ff7474}
.video-answer-box .word-slot.is-mismatch{background:rgba(255,92,92,.16);outline-color:#ff7474;box-shadow:none}
.hint-word.hint-neutral,.stage.is-light-mode .hint-word.hint-neutral{--slot-color:#f5f7fa;--slot-bg:transparent;--slot-glow:transparent;background:#18232de6;border:1px solid #657480;box-shadow:none;color:#f5f7fa}
.hint-word.hint-neutral::before{display:none}
.sentence-structure{display:flex;flex-wrap:wrap;gap:10px;width:100%;margin-top:14px;text-shadow:none;text-align:left}
.sentence-part{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:8px;background:#18232d;color:#f5f7fa;border-bottom:3px solid currentColor}
.sentence-part strong{font-size:18px!important;color:inherit!important;line-height:1.5}
.sentence-part small{font-size:14px;color:inherit;line-height:1.5}
.sentence-part-subject{color:#9bcaff}.sentence-part-predicate{color:#ffc18a}.sentence-part-complement{color:#d5baff}
.managed-directory-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:16px}
.managed-directory-heading .managed-directory-redeem{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;padding:11px 16px;border:1px solid #dcc38b;border-radius:12px;background:#fff8e9;color:#705322;font-family:inherit;font-size:16px;font-weight:700;line-height:normal;white-space:nowrap;cursor:pointer;box-shadow:0 2px 5px #71531d08;transition:background .15s,border-color .15s}
.managed-directory-heading .managed-directory-redeem svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.managed-directory-heading .managed-directory-redeem:hover{background:#fff0ca;border-color:#bf9a4b}
.managed-directory-heading .managed-directory-redeem:focus-visible{outline:3px solid #168d80;outline-offset:3px}
.managed-directory-heading .managed-directory-redeem:active{background:#f7e7be}
.video-control-dock .video-skip-button{width:auto;min-width:60px;padding:0 12px;font-size:14px;color:#e2e7ed}
.video-control-dock .video-skip-button[hidden]{display:none}
#videoFocusLine>.ghost-action{margin:12px;color:#153e46;background:#a2ebe0}
/* Video lesson completion: replace the exercise surface with a concise report. */
.video-drill-card.is-complete { position: relative; min-height: 0; overflow: hidden; }
.video-drill-card.is-complete > :not(.video-completion-card) { display: none !important; }
.video-completion-card { position: relative; padding: 28px 16px; text-align: center; color: #f6ffff; }
.video-completion-emblem { display: grid; place-items: center; margin: 0 auto 14px; width: 68px; height: 68px; border-radius: 50%; background: #ffe477; color: #153f45; font-size: 40px; box-shadow: 0 0 36px #ffe47730; }
.video-completion-kicker { display: block; color: #77e0d1; font-size: 14px; font-weight: 700; }
.video-completion-card h2 { margin: 12px 0; color: #fff; font-size: clamp(24px, 3vw, 36px); line-height: 1.4; }
.video-completion-card p { color: #d4e4e8; font-size: 16px; line-height: 1.7; }
.video-completion-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 660px; margin: 28px auto 18px; }
.video-completion-stats > div { padding: 20px 8px; background: #ffffff0b; border: 1px solid #ffffff24; border-radius: 16px; }
.video-completion-stats span { display: block; color: #c1d5dc; font-size: 14px; margin-bottom: 10px; }
.video-completion-stats strong { color: #ffe477; font-size: clamp(18px, 2.5vw, 28px); }
.video-completion-stats small { font-size: 14px; }
.video-completion-card .video-completion-note { font-size: 14px; color: #b8cdd3; max-width: 650px; margin: 0 auto 24px; }
.video-completion-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 520px; margin: 0 auto; }

/* In sentence practice, playback is controlled by the practice controls, not the preview toolbar. */
body[data-screen="video"].video-practicing .video-hover-controls,
body[data-screen="video"].video-practicing .video-start-overlay { display: none !important; }
.video-drill-card.is-speaking:not(.is-complete) > .video-line-copy,
.video-drill-card.is-speaking:not(.is-complete) > .video-focus-line { display: none; }
.video-drill-card.is-speaking .video-read-panel { flex-direction: column; gap: 14px; padding: 18px; min-height: 0; background: #ffffff05; }
.video-read-result { width: 100%; min-width: 0; text-align: center; }
.video-read-result #videoReadStatus { margin: 0 auto; font-size: 16px; line-height: 1.5; color: #f1f8f6; }
.video-read-result .video-read-score { box-sizing: border-box; margin: 12px auto 0; text-align: left; }
.video-read-result .video-read-score-head strong { width: 48px; height: 48px; font-size: 24px; }
.video-read-result .video-read-score-head span { font-size: 18px; }
.video-read-result .video-read-score-head small { font-size: 13px; font-weight: 400; }
.video-drill-card.is-speaking .video-read-mic { width: 64px; height: 64px; box-shadow: 0 0 0 5px #58d7c619; }
.video-drill-card.is-speaking .video-read-mic:not(.is-recording) span { display: none; }
.video-drill-card.is-speaking .video-read-mic span { inset: -5px; }
.video-drill-card.is-speaking .video-control-dock [data-video-next] { display: none; }
@media (max-width: 760px) {
  body[data-screen="video"].video-practicing .product-sidebar,
  body[data-screen="video"].video-practicing .product-top,
  body[data-screen="video"].video-practicing .product-site-footer { display: none !important; }
  body[data-screen="video"].video-practicing .product-shell { display: block; }
  body[data-screen="video"].video-practicing .product-main { padding: env(safe-area-inset-top, 0px) 6px max(12px, env(safe-area-inset-bottom, 0px)); }
  body[data-screen="video"].video-practicing .video-lesson-page { gap: 6px; }
  body[data-screen="video"].video-practicing .video-lesson-head { margin: 0; padding: 4px 0; min-height: 0; background: transparent; border: 0; box-shadow: none; }
  body[data-screen="video"].video-practicing .video-lesson-head > div:first-child { display: none; }
  body[data-screen="video"].video-practicing .video-lesson-actions { width: 100%; display: flex; justify-content: space-between; gap: 12px; }
  body[data-screen="video"].video-practicing .video-lesson-actions button { min-height: 40px; padding: 6px 12px; font-size: 14px; width: auto; }
  body[data-screen="video"].video-practicing .video-stage-card { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 8; padding: 6px; gap: 4px; border-radius: 14px; backdrop-filter: none; background: #18252d; }
  body[data-screen="video"].video-practicing .video-frame { aspect-ratio: 16/9; max-height: 26dvh; border-radius: 10px; }
  body[data-screen="video"].video-practicing .video-progress-row { gap: 6px; min-height: 20px; }
  body[data-screen="video"].video-practicing .video-preview-subtitle { height: auto; min-height: 0; padding: 6px 8px; border-radius: 8px; }
  body[data-screen="video"].video-practicing .video-preview-subtitle.is-empty { display: none; }
  body[data-screen="video"].video-practicing .video-under-controls { gap: 6px; flex-wrap: wrap; }
  body[data-screen="video"].video-practicing .video-under-button { min-height: 32px; padding: 5px 8px; font-size: 13px; }
  body[data-screen="video"].video-practicing .video-drill-card { padding: 12px 10px; gap: 10px; border-radius: 14px; min-height: 0; }
  body[data-screen="video"] .video-drill-top { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; }
  body[data-screen="video"] .video-drill-top span,
  body[data-screen="video"] .video-drill-top strong,
  body[data-screen="video"] .video-mode-toggle { padding: 0 8px; min-height: 32px; font-size: 13px; white-space: nowrap; }
  body[data-screen="video"] .video-drill-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body[data-screen="video"] .video-drill-top strong,
  body[data-screen="video"] .video-mode-toggle { flex: 0 0 auto; }
  body[data-screen="video"] .video-drill-card.is-speaking .video-read-panel { padding: 12px 8px; gap: 12px; border-radius: 12px; }
  body[data-screen="video"] .video-drill-card.is-speaking .video-read-mic { width: 54px; height: 54px; }
  body[data-screen="video"] .video-read-mic svg { width: 26px; height: 26px; }
  body[data-screen="video"] .video-read-result .video-read-score { padding: 10px; margin-top: 10px; border-radius: 12px; }
  body[data-screen="video"] .video-read-score-grid { gap: 6px; margin-top: 8px; }
  body[data-screen="video"] .video-read-score-grid span { padding: 4px 6px; gap: 4px; font-size: 13px; }
  body[data-screen="video"] .video-read-score-grid b { font-size: 16px; }
  body[data-screen="video"] .video-control-dock { display: flex; justify-content: center; gap: 10px; width: max-content; max-width: 100%; margin: 0 auto; padding: 5px; }
  body[data-screen="video"] .video-control-dock .dock-button { width: 40px; height: 40px; min-height: 40px; }
  body[data-screen="video"] .video-control-dock .video-skip-button { width: auto; }
  body[data-screen="video"].video-practicing .video-answer-box { min-height: 68px; }
  body[data-screen="video"].video-practicing .video-line-copy p { font-size: 22px; }
}
.video-completion-actions button { min-height: 46px; padding: 12px 20px; border: 1px solid #ffffff45; border-radius: 24px; background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.video-completion-actions .completion-primary { background: #55d8c6; border-color: #55d8c6; color: #103c42; font-weight: 700; }
.video-completion-actions button:focus-visible { outline: 3px solid #ffe477; outline-offset: 4px; }
/* Compact sentence workspace: preserve video dimensions and readable controls. */
body[data-screen="video"].video-practicing .video-stage-card { gap: 6px; }
body[data-screen="video"].video-practicing .video-preview-subtitle {
  height: auto; min-height: 40px; padding: 6px 12px;
  background: #10182099; border: 0; box-shadow: none; border-radius: 16px; overflow: hidden;
}
body[data-screen="video"].video-practicing .video-under-controls { gap: 8px; flex-wrap: wrap; margin: 0; }
body[data-screen="video"].video-practicing .video-under-button {
  min-height: 36px; padding: 6px 12px; font-size: 14px;
  background: transparent; color: #f0f7f7; border: 1px solid #ffffff35; box-shadow: none;
}
body[data-screen="video"].video-practicing .video-under-button.primary { color: #b5fff0; border-color: #76d9c877; }
body[data-screen="video"].video-practicing .video-drill-card:not(.is-complete) { padding: 16px 20px; gap: 12px; }
body[data-screen="video"].video-practicing .video-drill-top { display: flex; justify-content: space-between; align-items: center; }
body[data-screen="video"].video-practicing #videoSpeaker { display: none; }
body[data-screen="video"].video-practicing .video-drill-card.is-speaking .video-read-panel {
  border: 0; background: transparent; box-shadow: none; padding: 8px 0; border-radius: 0;
}
@media (min-width: 761px) {
  body[data-screen="video"].video-practicing .video-drill-card.is-speaking .video-read-panel:not([hidden]) {
    display: flex; flex-direction: column; gap: 10px; align-items: center;
    width: min(100%, 560px); margin: 0 auto;
  }
  body[data-screen="video"].video-practicing .video-read-result { display: block; min-height: 164px; }
  body[data-screen="video"].video-practicing .video-read-mic { grid-column: 1; grid-row: 1; justify-self: center; }
  body[data-screen="video"].video-practicing #videoReadStatus { grid-column: 1; grid-row: 2; text-align: center; align-self: start; }
  body[data-screen="video"].video-practicing .video-read-result .video-read-score { margin: 10px auto 0; padding: 12px; }
}
@media (max-width: 760px) {
  body[data-screen="video"].video-practicing .video-drill-card:not(.is-complete) { padding: 10px; gap: 8px; }
  body[data-screen="video"].video-practicing .video-under-controls { display: flex; gap: 4px; }
  body[data-screen="video"].video-practicing .video-under-button { width: auto; flex: 0 1 auto; min-height: 36px; padding: 5px 7px; font-size: 13px; }
  body[data-screen="video"].video-practicing .video-drill-card.is-speaking .video-read-panel { gap: 8px; }
  body[data-screen="video"].video-practicing .video-read-result { min-height: 164px; }
}
.video-volume-tools { display: flex; align-items: center; gap: 4px; }
.video-volume-tools button { background: transparent; border: 0; color: white; cursor: pointer; min-width: 32px; min-height: 32px; font-size: 18px; }
.video-frame .video-volume-tools input[type="range"] { width: 64px; }
.video-frame .video-volume-tools input::-webkit-slider-runnable-track { background: #ffffff60; }
@media (max-width: 480px) { .video-frame .video-volume-tools input[type="range"] { width: 42px; } }
.video-frame > .video-progress-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  box-sizing: border-box; width: 100%; max-width: none; padding: 8px 12px 4px;
  background: linear-gradient(transparent, #000b); opacity: 0; pointer-events: none;
  transition: opacity .15s ease; color: #fff;
}
.video-frame:focus-within > .video-progress-row,
.video-frame:has(.video-hover-controls.is-visible) > .video-progress-row { opacity: 1; pointer-events: auto; }
@media (hover: hover) {
  .video-frame:hover > .video-progress-row { opacity: 1; pointer-events: auto; }
}
.video-frame > .video-progress-row input[type="range"] { height: 28px; }
.video-frame > .video-progress-row input::-webkit-slider-runnable-track { height: 3px; }
.video-frame > .video-progress-row input::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4.5px; border-width: 1px; }
.video-frame > .video-progress-row input::-moz-range-track,
.video-frame > .video-progress-row input::-moz-range-progress { height: 3px; }
.video-frame > .video-progress-row input::-moz-range-thumb { width: 10px; height: 10px; border-width: 1px; }
.video-completion-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.video-completion-confetti i { position: absolute; left: var(--x); top: -20px; width: 8px; height: 14px; background: var(--c); animation: video-completion-fall 2.3s var(--delay) ease-in both; }
@keyframes video-completion-fall { from { transform: translateY(-20px) rotate(0); opacity: 1; } to { transform: translateY(560px) rotate(500deg); opacity: 0; } }
@media (max-width: 520px) { .video-completion-card { padding: 18px 0; } .video-completion-stats { gap: 6px; } .video-completion-stats > div { padding: 16px 4px; } .video-completion-actions { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .video-completion-confetti { display: none; } }
.video-completion-flag { display: block; width: max-content; margin: 0 auto 16px; font-size: 56px; line-height: 1.2; transform-origin: 25% 100%; }
.video-completion-card.is-celebrating .video-completion-flag { animation: video-flag-plant 850ms cubic-bezier(.2,.8,.3,1.2) both; }
.video-completion-card .video-completion-kicker { color: #ffe477; font-size: clamp(17px, 3vw, 22px); }
.video-completion-card .video-completion-time { margin: 20px auto 28px; padding: 16px 20px; width: fit-content; max-width: 100%; border-radius: 16px; background: #ffffff0d; color: #e5f5ef; font-size: 16px; }
.video-completion-time strong { color: #7de6cd; display: inline-block; font-size: 24px; margin-left: 6px; }
.video-completion-confetti i:nth-child(3n) { border-radius: 50%; width: 9px; height: 9px; }
@keyframes video-flag-plant { 0% { opacity: 0; transform: translateY(-55px) rotate(-22deg) scale(.65); } 65% { opacity: 1; transform: translateY(5px) rotate(8deg) scale(1.05); } 100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .video-completion-card.is-celebrating .video-completion-flag { animation: none; } }
