:root {
  color-scheme: light;
  --canvas: #f2f5f2;
  --paper: #fff;
  --ink: #172f2a;
  --muted: #586d65;
  --soft: #e7ede7;
  --line: #dce5dd;
  --green: #185c47;
  --forest: #124c3c;
  --mint: #dcefdc;
  --sand: #f5ecd8;
  --warm: #a56518;
  --round: 17px;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c58226;
  outline-offset: 3px;
}
button:disabled:focus {
  outline: 0;
}
button:not(:disabled),
a {
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button:not(:disabled):active,
.btn:active {
  transform: translateY(1px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
}
p {
  line-height: 1.65;
}
button .icon,
a .icon {
  flex: none;
}
.icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbol-bank {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  overflow: hidden;
  border: 0;
}
[hidden] {
  display: none !important;
}
.mobile-only {
  display: none !important;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar-inner,
.workspace {
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: clamp(20px, 3.4vw, 56px);
}
.bar-inner {
  min-height: 77px;
  display: flex;
  align-items: center;
  gap: 21px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  white-space: nowrap;
}
.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-content: center;
  background: #19523e;
  color: #d9edbb;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffffff27;
}
.brand-mark .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}
.brand-sub {
  font-size: 0.91rem;
  color: #68766d;
  letter-spacing: 0.09em;
  border-left: 1px solid var(--line);
  padding-left: 21px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.tool,
.btn,
.text-btn,
.icon-btn,
.stage-step,
.prompt-chip,
.listen-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}
.tool {
  font-size: 0.875rem;
  color: #3f5148;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 37px;
  padding: 7px 13px;
  background: #fff;
}
.tool:hover,
.btn.secondary:hover,
.icon-btn:hover,
.listen-file:hover {
  background: #eff5ef;
  border-color: #c3d3c8;
}
.tool .icon {
  width: 17px;
  height: 17px;
}
.fullscreen-tool {
  background: #f5f7f3;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(294px, 25.2vw, 376px);
  gap: clamp(18px, 1.8vw, 30px);
  padding-block: 26px 32px;
  align-items: start;
}
.lesson-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--round);
  box-shadow: 0 2px 6px #1c453105;
}
.flow {
  padding: 17px 22px 16px;
}
.flow-heading,
.panel-head,
.actions-row,
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flow-heading h2,
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: 0.025em;
}
.flow-heading h2 .icon,
.section-title .icon {
  color: var(--green);
  width: 18px;
  height: 18px;
}
.flow-heading > span {
  color: var(--muted);
  font-size: 0.81rem;
}
.flow-heading > span b {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.steps {
  display: flex;
  align-items: center;
  margin-top: 13px;
  gap: 0;
}
.stage-step {
  font-size: 0.92rem;
  white-space: nowrap;
  gap: 7px;
  border-radius: 8px;
  padding: 7px 9px;
  background: transparent;
  border: 1px solid transparent;
  color: #4e6257;
  line-height: 1.3;
  flex: 0 1 auto;
}
.stage-step:not(:disabled):hover {
  background: #edf4ec;
}
.quiz-entry {
  color: var(--green);
}
.quiz-entry span:last-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stage-step:disabled {
  color: #68786e;
  cursor: default;
}
.stage-step.current {
  background: #e7f2e5;
  color: #215e42;
  border-color: #d4e6d0;
}
.circle-num {
  display: grid;
  place-content: center;
  font-family: Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 0.76rem;
  color: #5d6e63;
  background: #edf1ec;
  border: 1px solid #e0e6df;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.current .circle-num {
  color: #f7fff1;
  background: var(--green);
  border-color: var(--green);
}
.done .circle-num {
  background: #e1efdb;
  color: var(--green);
  border-color: #d4e8ce;
}
.step-line {
  height: 1px;
  background: #dbe4da;
  flex: 1;
  min-width: 5px;
  margin: 0 3px;
}
#stage {
  outline: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.hero {
  overflow: hidden;
  border-radius: var(--round);
  background: #143f36;
  color: white;
  box-shadow: 0 3px 10px #19342513;
}
.hero-picture {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(285px, 22vw, 348px);
  padding: clamp(24px, 2.65vw, 44px);
  background-image:
    linear-gradient(90deg, #052c279e 0%, #062b233b 42%, transparent 65%),
    url('/static/media/river-guide.webp');
  background-size: cover;
  background-position: center 52%;
}
.hero-copy {
  max-width: 58%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  color: #e6f1da;
  border: 1px solid #d2e2c74a;
  border-radius: 30px;
  padding: 4px 11px;
  background: #0b3d33a6;
  font-weight: 500;
}
.hero-tag .icon {
  width: 15px;
  height: 15px;
}
.hero h1 {
  font-size: clamp(2.45rem, 3.65vw, 3.65rem);
  letter-spacing: 0.015em;
  line-height: 1.17;
  margin: 15px 0 12px;
  font-weight: 800;
  color: #fffbeb;
  text-shadow: 0 2px 16px #052b2b55;
}
.hero h1 em {
  color: #ffe1a2;
  font-style: normal;
}
.hero-copy p {
  font-size: clamp(0.94rem, 1.15vw, 1.08rem);
  line-height: 1.72;
  color: #f1f0dc;
  letter-spacing: 0.025em;
}
.soundbar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px clamp(17px, 2.1vw, 34px);
  min-height: 64px;
  background: #123e33;
  color: #e4f0db;
}
.audio-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #f4f6e8;
  font-weight: 650;
  font-size: 0.94rem;
  padding: 0;
}
.play-disc {
  width: 32px;
  height: 32px;
  background: #d8e8ab;
  color: #194735;
  display: grid;
  place-content: center;
  border-radius: 50%;
}
.play-disc .icon {
  width: 17px;
  height: 17px;
}
.audio-button:hover .play-disc {
  background: #eef6c7;
}
.wave-seek {
  position: relative;
  flex: 1;
  min-width: 35px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  border-radius: 4px;
}
.wave-seek i {
  height: var(--h);
  flex: 1;
  min-width: 1px;
  border-radius: 4px;
  background: #6d998162;
  pointer-events: none;
}
.wave-seek i.filled {
  background: #cfdda3;
}
.wave-seek input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.wave-seek:focus-within {
  outline: 2px solid #e4eac7;
  outline-offset: 2px;
}
.timer,
.numeric {
  font-family: Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}
.timer {
  font-size: 0.8rem;
  white-space: nowrap;
  color: #d6e5d6;
}
.sound-only {
  color: #d7e7d7;
  display: grid;
  place-content: center;
  padding: 4px;
}
.goals {
  padding: 20px 23px 23px;
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.goal {
  display: flex;
  gap: 11px;
  align-items: center;
  padding-right: 8px;
}
.goal + .goal {
  border-left: 1px solid var(--line);
  padding-left: clamp(8px, 1.45vw, 24px);
}
.goal-icon,
.lesson-symbol {
  display: grid;
  place-content: center;
  flex: none;
  width: 41px;
  height: 41px;
  border-radius: 12px;
}
.sage {
  background: #e6f0df;
  color: #437347;
}
.honey {
  background: #faf0d9;
  color: #986e2e;
}
.clay {
  background: #f8e8de;
  color: #a4623f;
}
.goal-icon .icon {
  width: 22px;
  height: 22px;
}
.goal h3 {
  font-size: 0.96rem;
  margin: 0 0 4px;
}
.goal p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.lesson-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-meta {
  font-size: 0.83rem;
  color: var(--muted);
  margin-left: auto;
}
.nav-meta .icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}
.btn {
  min-height: 42px;
  border: 1px solid transparent;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 0.92rem;
}
.btn.primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 2px 3px #193e2712;
}
.btn.primary:not(:disabled):hover,
.send:hover {
  background: #216047;
}
.btn.primary:disabled {
  background: #587863;
  color: #fff;
  opacity: 0.8;
}
.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: #40584a;
}
.btn.secondary:disabled {
  color: #8c9a8e;
  background: #f5f7f3;
  border-color: #e1e7df;
}
.btn.danger {
  background: #9b4a37;
  color: #fff;
}
.btn.small {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 0.83rem;
}
.text-btn {
  padding: 4px 0;
  color: var(--green);
  font-size: 0.88rem;
}
.text-btn:hover {
  text-decoration: underline;
}
.icon-btn {
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
}
.chat-panel {
  height: clamp(580px, calc(100dvh - 130px), 820px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: sticky;
  top: 19px;
}
.chat-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: none;
  padding: 19px 20px 17px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #f3f8ef, #ffffff 86%);
}
.avatar {
  object-fit: cover;
  border-radius: 50%;
}
.avatar.big {
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #dadecd;
}
.chat-heading h2 {
  font-size: 1.09rem;
  letter-spacing: 0.035em;
}
.chat-heading p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 3px;
}
.ready {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  padding: 3px 8px;
  color: #477257;
  background: #edf5e9;
  font-size: 0.76rem;
  white-space: nowrap;
}
.ready i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #528752;
}
.conversation {
  flex: 1;
  min-height: 114px;
  overflow: auto;
  padding: 17px 18px 10px;
  scrollbar-width: thin;
  scrollbar-color: #ccd9cd transparent;
}
.chat-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #76857a;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin: 1px 0 19px;
}
.chat-date:before,
.chat-date:after {
  content: '';
  height: 1px;
  width: 26px;
  background: var(--line);
}
.message {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.speaker-name {
  font-size: 0.76rem;
  color: #64776a;
}
.bubble {
  background: #f0f5ee;
  padding: 11px 14px;
  border: 1px solid #e1e9de;
  border-radius: 3px 13px 13px 13px;
  line-height: 1.72;
  font-size: 0.94rem;
  color: #314b3b;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.user-message {
  align-items: flex-end;
}
.user-message .bubble {
  background: #225d48;
  color: white;
  border-color: #225d48;
  border-radius: 13px 3px 13px 13px;
}
.message-note {
  font-size: 0.75rem;
  color: var(--muted);
}
.suggestions {
  padding: 8px 18px 14px;
  flex: none;
}
.suggestions h3 {
  font-size: 0.82rem;
  color: #687a6b;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 550;
  margin-bottom: 8px;
}
.suggestions h3 .icon {
  width: 16px;
  height: 16px;
  color: #697e5c;
}
#suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.prompt-chip {
  justify-content: flex-start;
  text-align: left;
  font-size: 0.82rem;
  color: #405f49;
  gap: 6px;
  border: 1px solid #dae5d8;
  background: #fbfcf9;
  border-radius: 8px;
  padding: 6px 9px;
  font-weight: 500;
  line-height: 1.35;
}
.prompt-chip:hover {
  background: #eaf3e7;
  border-color: #c0d6bf;
}
.prompt-chip .icon {
  width: 14px;
  height: 14px;
  color: #80947d;
}
.composer {
  flex: none;
  padding: 13px 16px 11px;
  border-top: 1px solid #e7ece5;
}
.input-wrap {
  position: relative;
  border: 1px solid #cfdbcf;
  border-radius: 11px;
  background: #fcfdfa;
  display: flex;
  align-items: flex-end;
  padding: 9px;
  gap: 5px;
}
.input-wrap:focus-within {
  border-color: #6b957b;
  box-shadow: 0 0 0 2px #ddeadc;
}
.input-wrap textarea {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  resize: none;
  outline: none;
  box-shadow: none;
  font-size: 0.91rem;
  line-height: 1.4;
  padding: 3px 1px 0;
  min-width: 0;
}
.input-wrap textarea:focus-visible {
  outline: none;
}
.input-wrap textarea::placeholder {
  color: #829084;
}
.send {
  background: var(--green);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-content: center;
  flex: none;
}
.send:disabled {
  background: #8fa697;
}
.send .icon {
  width: 17px;
  height: 17px;
}
.key-hint {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #76847a;
  text-align: center;
  margin-top: 8px;
}
.key-hint span {
  margin: 0 3px;
}
.content-panel {
  padding: clamp(20px, 2.25vw, 34px);
}
.module-heading {
  margin-bottom: 23px;
}
.module-heading h1,
.solo-title {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 760;
  letter-spacing: 0.025em;
}
.module-heading p,
.subtext {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.94rem;
}
.overline {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.warm-card {
  overflow: hidden;
}
.warm-stage {
  padding: clamp(24px, 3.2vw, 50px);
  background: radial-gradient(ellipse at 90% 5%, #41664d 0%, transparent 51%), #16463a;
  color: #f6f4e1;
}
.warm-stage .hero-tag {
  background: #244f40;
}
.warm-stage h1 {
  display: flex;
  gap: clamp(4px, 0.7vw, 10px);
  font-size: clamp(1.45rem, 5.2vw, 3.2rem);
  margin: 18px 0 7px;
}
.warm-word {
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.warm-word.on {
  color: #ffe1a2;
  border-color: currentColor;
}
.warm-stage p {
  color: #d6e3cd;
}
.beat-dots {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 27px);
  margin: 25px 0 2px;
}
.beat-dot {
  display: grid;
  place-content: center;
  width: clamp(48px, 6vw, 79px);
  height: clamp(48px, 6vw, 79px);
  border-radius: 50%;
  transition:
    transform 0.12s,
    background 0.12s;
  background: #315e49;
  color: #d9e7ca;
  border: 1.5px solid #668165;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 740;
}
.beat-dot.on {
  transform: scale(1.1);
  background: #f4d38a;
  color: #264b35;
  border-color: #f8db9d;
}
.teacher-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
}
.teacher-line strong {
  display: block;
  margin-bottom: 4px;
}
.teacher-line p {
  color: var(--muted);
  font-size: 0.93rem;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.clip-card {
  padding: 0;
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  background: #fcfdf9;
  border-radius: 12px;
  overflow: hidden;
}
.clip-card:hover {
  border-color: #95b49a;
  box-shadow: 0 3px 9px #19472716;
}
.clip-cover {
  display: block;
  aspect-ratio: 2.7;
  position: relative;
  isolation: isolate;
  background-color: #d8e4d4;
  overflow: hidden;
}
.clip-cover:before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  background-image: url('/static/media/lesson-covers.webp');
  background-size: 200% 200%;
  background-position: var(--pos);
  z-index: -1;
}
.clip-play,
.clip-duration {
  position: absolute;
  bottom: 8px;
  color: white;
  background: #183d31d9;
  border-radius: 20px;
}
.clip-play {
  left: 9px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
}
.clip-play .icon {
  width: 16px;
  height: 16px;
}
.clip-duration {
  right: 9px;
  font-size: 0.75rem;
  padding: 3px 8px;
  font-family: Inter, system-ui, sans-serif;
}
.clip-copy {
  display: block;
  padding: 12px 14px;
}
.clip-copy strong {
  font-size: 1.02rem;
}
.clip-copy small {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}
.action-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.quiz-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.listen-box,
.record-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.listen-box > summary,
.record-box > summary {
  padding: 13px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f9f4;
  font-weight: 650;
  list-style: none;
}
.listen-box summary::-webkit-details-marker,
.record-box summary::-webkit-details-marker {
  display: none;
}
.listen-box summary .icon:last-child,
.record-box summary .icon:last-child {
  margin-left: auto;
}
.listen-box[open] summary .icon:last-child,
.record-box[open] summary .icon:last-child {
  transform: rotate(180deg);
}
.listen-content {
  padding: 14px;
}
.listen-content > p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 11px;
}
.listen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.listen-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  background: #fcfdf9;
  min-width: 0;
}
.listen-item h3 {
  font-size: 0.95rem;
}
.listen-item audio,
.listen-item video {
  width: 100%;
  display: block;
  margin: 8px 0;
  max-height: 230px;
}
.listen-item audio {
  height: 39px;
}
.listen-meta {
  font-size: 0.77rem;
  color: var(--muted);
}
.listen-file {
  color: var(--green);
  font-size: 0.8rem;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  background: #fff;
}
.listen-file:focus-within {
  outline: 2px solid #c58226;
}
.listen-file .icon {
  width: 15px;
  height: 15px;
}
.q-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
}
.q-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 13px;
}
.q-number {
  font-family: Inter, system-ui, sans-serif;
  color: var(--green);
  font-size: 1.04rem;
  font-weight: 720;
}
.q-title h2 {
  font-size: 1.04rem;
  line-height: 1.65;
}
.choices {
  display: grid;
  gap: 7px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid #dae3d9;
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.55;
  background: white;
  font-size: 0.94rem;
}
.choice:not(:disabled):hover,
.choice.selected {
  border-color: #709b79;
  background: #f1f7ee;
}
.letter {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 6px;
  background: #edf1eb;
  color: #526256;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 620;
  font-size: 0.82rem;
}
.choice.correct {
  background: #e9f4e6;
  border-color: #94b795;
}
.choice.correct .letter,
.choice.selected .letter {
  background: var(--green);
  color: white;
}
.choice.wrong {
  background: #fcf0e9;
  border-color: #d5a390;
}
.choice.wrong .letter {
  background: #a85a43;
  color: white;
}
.choice:disabled {
  cursor: default;
}
.choice > .icon {
  margin-left: auto;
  color: var(--green);
}
.choice.wrong > .icon {
  color: #a85a43;
}
.q-submit {
  margin-top: 11px;
}
.q-result {
  padding: 11px 13px;
  border-radius: 8px;
  background: #eff6eb;
  margin-top: 11px;
}
.q-result.wrong {
  background: #faf1e9;
}
.q-result strong {
  font-size: 0.9rem;
}
.q-result p,
.quiz-notice {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 3px;
}
.quiz-notice {
  color: #944d30;
}
.loading {
  padding: 15px 0;
  color: var(--muted);
}
.scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.scene {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf7;
}
.scene:hover,
.scene.chosen {
  background: #eff6e9;
  border-color: #83aa80;
}
.scene .lesson-symbol {
  width: 45px;
  height: 45px;
}
.scene .lesson-symbol .icon {
  width: 25px;
  height: 25px;
}
.scene strong,
.scene small {
  display: block;
}
.scene small {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 4px;
}
.scene > .icon {
  margin-left: auto;
}
.lyric-box {
  margin-top: 17px;
  padding: 19px;
  border: 1px solid #d4e3cf;
  border-radius: 12px;
  background: #f5f8ee;
}
.lyric-box h2 {
  font-size: 1.14rem;
}
.lyric-box > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 5px 0 12px;
}
.lyric-table {
  width: 100%;
  border-collapse: collapse;
}
.lyric-table th,
.lyric-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #dde7d7;
}
.lyric-table th {
  font-size: 0.81rem;
  color: var(--muted);
  font-weight: 600;
}
.lyric-table tr:last-child td {
  border: 0;
}
.finish {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 12px;
  background: #eaf4e5;
  padding: 17px;
}
.finish h2 {
  font-size: 1.12rem;
}
.finish p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 3px;
}
body.solo .workspace {
  display: block;
  max-width: 1050px;
}
body.solo .chat-panel,
body.solo .flow,
body.solo .lesson-nav,
body.solo #chat-jump {
  display: none !important;
}
.solo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.stat-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.metric {
  background: #f0f6ed;
  padding: 15px 18px;
  border: 1px solid #dfe9da;
  border-radius: 11px;
}
.metric small {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
}
.metric strong {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--green);
  margin-top: 3px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.stat-card h2 {
  font-size: 1rem;
  line-height: 1.55;
}
.stat-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 13px;
}
.stat-row {
  display: grid;
  grid-template-columns: 20px 1fr 49px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
}
.stat-row span:last-child {
  text-align: right;
}
.stat-track {
  height: 10px;
  background: #edf1eb;
  border-radius: 8px;
  overflow: hidden;
}
.stat-track i {
  display: block;
  height: 100%;
  background: #b2beb0;
  border-radius: 8px;
}
.stat-row.correct .stat-track i {
  background: #54855a;
}
.record-box {
  margin-top: 16px;
}
.table-wrap {
  overflow-x: auto;
}
.record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.record-table td,
.record-table th {
  padding: 9px 13px;
  text-align: left;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.record-table th {
  background: #fcfdfa;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.stat-bottom {
  margin-top: 17px;
}
.stat-bottom small {
  font-size: 0.82rem;
  color: var(--muted);
}
dialog {
  padding: 0;
  border: 1px solid #cdd9cd;
  border-radius: 17px;
  width: min(850px, calc(100vw - 30px));
  max-height: 90dvh;
  overflow: auto;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 90px #0c282b40;
}
dialog::backdrop {
  background: #09241fd6;
}
#dialog-content {
  padding: 20px;
}
.dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dialog-head h2 {
  font-size: 1.32rem;
}
.dialog-head .icon-btn {
  margin-left: auto;
}
dialog video {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #173e35;
  max-height: 59dvh;
}
.dialog-note {
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 12px;
}
.dialog-small {
  width: min(430px, calc(100vw - 30px));
}
.dialog-small .action-tools {
  justify-content: flex-end;
  margin-top: 18px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  background: #173b30;
  color: #fff;
  border-radius: 10px;
  padding: 10px 17px;
  box-shadow: 0 3px 15px #0002;
  max-width: 90vw;
  text-align: center;
  font-size: 0.88rem;
}
.error {
  color: #92513c;
}
@media (min-width: 1600px) {
  .hero-picture {
    min-height: 365px;
  }
  .flow {
    padding-block: 21px;
  }
  .chat-panel {
    height: clamp(650px, calc(100dvh - 135px), 850px);
  }
}
@media (max-width: 1160px) {
  .bar-inner,
  .workspace {
    padding-inline: 22px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 287px;
    gap: 16px;
  }
  .flow {
    padding: 15px;
  }
  .stage-step {
    padding: 6px 5px;
    gap: 4px;
    font-size: 0.83rem;
  }
  .step-line {
    margin: 0 1px;
  }
  .goal {
    align-items: flex-start;
    gap: 7px;
  }
  .goal-icon {
    width: 31px;
    height: 34px;
    border-radius: 8px;
  }
  .goal-icon .icon {
    width: 19px;
    height: 19px;
  }
  .goals {
    padding: 18px;
  }
  .goal + .goal {
    padding-left: 10px;
  }
  .chat-heading {
    padding: 16px;
  }
  .hero-copy {
    max-width: 60%;
  }
  .suggestions {
    padding-inline: 14px;
  }
  .teacher-line {
    padding: 15px 17px;
  }
  .soundbar {
    gap: 11px;
  }
  .clip-cover {
    aspect-ratio: 2.3;
  }
}
@media (max-width: 920px) and (min-width: 801px) {
  .bar-inner,
  .workspace {
    padding-inline: 15px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 258px;
    gap: 12px;
  }
  .stage-step {
    flex-direction: column;
  }
  .goal-grid {
    gap: 6px;
  }
  .goal-icon {
    display: none;
  }
  .hero-picture {
    min-height: 270px;
  }
  .nav-meta {
    font-size: 0.75rem;
  }
  .lesson-nav .btn {
    padding-inline: 12px;
  }
  .scene {
    padding: 10px;
    gap: 7px;
  }
  .chat-heading {
    gap: 8px;
  }
  .chat-heading .big {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 800px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
    padding-top: 18px;
    gap: 20px;
  }
  .bar-inner {
    min-height: 65px;
  }
  .chat-panel {
    position: static;
    height: 555px;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .hero-picture {
    min-height: clamp(250px, 38vw, 315px);
  }
  .hero h1 {
    font-size: clamp(2.3rem, 6vw, 3.2rem);
  }
  .chat-heading {
    padding: 16px 20px;
  }
  .goal {
    align-items: center;
  }
  .goals {
    padding: 20px;
  }
  .stage-step {
    padding: 7px 8px;
    font-size: 0.9rem;
  }
  .chat-panel .conversation {
    min-height: 165px;
  }
  .suggestions,
  .composer {
    padding-inline: 18px;
  }
  .lesson-nav {
    flex-wrap: wrap;
  }
  .clip-cover {
    aspect-ratio: 2.5;
  }
}
@media (max-width: 580px) {
  .bar-inner,
  .workspace {
    padding-inline: 13px;
  }
  .bar-inner {
    gap: 9px;
    min-height: 61px;
  }
  .brand {
    font-size: 1.23rem;
    gap: 7px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }
  .brand-mark .icon {
    width: 22px;
    height: 22px;
  }
  .brand-sub {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  .tool {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 6px;
  }
  .tool span {
    display: none;
  }
  .workspace {
    padding-block: 12px 23px;
    gap: 15px;
  }
  .flow {
    padding: 13px 10px 10px;
  }
  .flow-heading {
    padding-inline: 3px;
  }
  .flow-heading h2 {
    font-size: 0.94rem;
  }
  .steps {
    margin-top: 9px;
  }
  .stage-step {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 5px 1px;
    font-size: 0.73rem;
  }
  .circle-num {
    width: 21px;
    height: 21px;
    font-size: 0.7rem;
  }
  .step-line {
    min-width: 3px;
    flex: 0.14;
  }
  .lesson-column,
  #stage {
    gap: 12px;
  }
  .hero-picture {
    background-position: 68% center;
    min-height: 250px;
    padding: 20px 17px;
    background-image:
      linear-gradient(90deg, #092e29da, #0a302a95 39%, #12332b09 72%),
      url('/static/media/river-guide.webp');
  }
  .hero-copy {
    max-width: 64%;
  }
  .hero-tag {
    font-size: 0.74rem;
    padding: 3px 8px;
    gap: 4px;
  }
  .hero h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.75rem);
    line-height: 1.2;
    margin: 13px 0 10px;
  }
  .hero-copy p {
    font-size: 0.84rem;
    max-width: 190px;
  }
  .soundbar {
    padding: 10px 12px;
    min-height: 51px;
    gap: 8px;
  }
  .audio-button {
    font-size: 0.83rem;
    gap: 5px;
  }
  .play-disc {
    width: 27px;
    height: 27px;
  }
  .timer {
    font-size: 0.73rem;
  }
  .sound-only .icon {
    width: 17px;
    height: 17px;
  }
  .wave-seek {
    gap: 2px;
  }
  .goals {
    padding: 15px;
  }
  .goal-grid {
    margin-top: 12px;
    gap: 8px;
  }
  .goal {
    display: block;
    padding-right: 0;
  }
  .goal + .goal {
    padding-left: 9px;
  }
  .goal-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }
  .goal-icon .icon {
    width: 16px;
    height: 16px;
  }
  .goal h3 {
    font-size: 0.86rem;
  }
  .goal p {
    font-size: 0.76rem;
  }
  .nav-meta {
    order: 3;
    width: 100%;
    text-align: right;
    font-size: 0.75rem;
  }
  .lesson-nav {
    gap: 6px;
  }
  .lesson-nav .primary {
    margin-left: auto;
  }
  .btn {
    min-height: 38px;
    font-size: 0.85rem;
    padding: 7px 12px;
  }
  .content-panel {
    padding: 16px;
  }
  .module-heading {
    margin-bottom: 15px;
  }
  .module-heading h1,
  .solo-title {
    font-size: 1.55rem;
  }
  .module-heading p,
  .subtext {
    font-size: 0.86rem;
  }
  .lesson-grid,
  .scenes {
    gap: 8px;
  }
  .clip-copy {
    padding: 9px;
  }
  .clip-copy strong {
    font-size: 0.93rem;
  }
  .clip-copy small {
    font-size: 0.77rem;
  }
  .clip-cover {
    aspect-ratio: 1.85;
  }
  .warm-stage {
    padding: 22px;
  }
  .teacher-line .goal-icon {
    margin: 0;
  }
  .q-card {
    padding: 13px;
  }
  .choice {
    padding: 7px 8px;
    font-size: 0.88rem;
  }
  .q-title {
    gap: 6px;
  }
  .q-title h2 {
    font-size: 0.96rem;
  }
  .listen-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .scene {
    padding: 11px 8px;
    gap: 6px;
  }
  .scene .lesson-symbol {
    width: 30px;
    height: 32px;
    border-radius: 8px;
  }
  .scene .lesson-symbol .icon {
    width: 20px;
    height: 20px;
  }
  .scene strong {
    font-size: 0.9rem;
  }
  .scene small {
    font-size: 0.75rem;
  }
  .lyric-box {
    padding: 13px;
  }
  .stat-nums {
    gap: 6px;
    margin: 13px 0;
  }
  .metric {
    padding: 10px 7px;
  }
  .metric strong {
    font-size: 1.5rem;
  }
  .metric small {
    font-size: 0.75rem;
  }
  .stat-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #dialog-content {
    padding: 13px;
  }
  .dialog-note {
    font-size: 0.85rem;
  }
  .dialog-head h2 {
    font-size: 1.1rem;
  }
}
@media (min-width: 801px) and (max-height: 800px) {
  .workspace {
    padding-top: 18px;
  }
  .lesson-column,
  #stage {
    gap: 14px;
  }
  .flow {
    padding-block: 13px;
  }
  .steps {
    margin-top: 9px;
  }
  .hero-picture {
    min-height: clamp(238px, 37dvh, 280px);
    padding-block: 20px;
  }
  .goals {
    padding-block: 15px;
  }
  .goal-grid {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
