:root {
  color-scheme: light;
  --paper: #fbfaf5;
  --ink: #25232a;
  --muted: #5c5764;
  --line: #e5e0d7;
  --violet: #e6dfff;
  --green: #dbe8cb;
  --white: #fffefa;
  font: 16px/1.55 "Instrument Sans", "Segoe UI", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 760px; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 730; text-decoration: none; color: inherit; }
.mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; background: var(--violet); border: 1px solid var(--ink); border-radius: 10px; font-family: Georgia, serif; font-weight: bold; }
button, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 9px; font-weight: 650; line-height: 1.3; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #7955ce; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .45; }
.language { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; }
.language button { background: transparent; color: var(--muted); padding: 6px 11px; font-size: 13px; }
.language button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px #25232a18; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; min-height: 294px; margin: 30px 0 35px; background: #f4ecd7; border: 1px solid #e8dfcb; border-radius: 22px; overflow: hidden; }
.hero-copy { padding: 35px 0 35px 42px; position: relative; z-index: 1; }
.category { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .07em; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Instrument Serif", Georgia, "Songti SC", "SimSun", serif; letter-spacing: -.035em; font-weight: 600; }
h1 { max-width: 760px; margin-bottom: 12px; font-size: clamp(42px, 5vw, 69px); line-height: 1.04; }
:lang(zh) h1 { font-size: clamp(38px, 4.6vw, 62px); }
.intro { color: var(--muted); max-width: 47ch; margin-bottom: 19px; }
.primary { background: var(--ink); color: white; padding: 11px 16px; }
.primary:hover:not(:disabled) { background: #443553; }
.quiet { background: var(--white); color: var(--ink); padding: 10px 13px; border: 1px solid var(--line); }
.quiet:hover:not(:disabled), .quiet[aria-pressed="true"] { background: var(--violet); border-color: #cdc0ef; }
.hero-visual { display: grid; place-items: center; }
.sound-disc { display: flex; justify-content: center; align-items: center; gap: 8px; width: 208px; height: 208px; border-radius: 50%; background: var(--violet); border: 1px solid var(--ink); box-shadow: 10px 12px 0 #25232a; transform: rotate(-12deg); }
.sound-disc i { width: 8px; height: 23px; border-radius: 12px; background: var(--ink); }
.sound-disc i:nth-child(2n) { height: 48px; }
.sound-disc i:nth-child(3n) { height: 69px; }
.sound-disc i:nth-child(4) { height: 95px; }
.lesson-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 15px; }
h2 { font-size: 36px; line-height: 1.12; margin-bottom: 0; }
h3 { font-size: 18px; margin-bottom: 12px; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 13px; }
.stages button { text-align: left; }
.stages button[aria-current="step"] { background: var(--violet); border-color: #b9a8e3; }
.workspace { display: grid; grid-template-columns: 1fr minmax(320px, .9fr); gap: 14px; align-items: start; }
.card, .review-list { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 19px; }
.review-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 13px; }
.review-list p { margin: 0; }
.screen { aspect-ratio: 16/9; background: #2b2535; position: relative; overflow: hidden; border-radius: 11px; }
video, .cover { position: absolute; width: 100%; height: 100%; inset: 0; }
video { object-fit: contain; }
.cover { background: #ece6fc; display: grid; place-content: center; justify-items: center; color: #483862; font-weight: 650; }
.cover-icon { font-size: 78px; line-height: .9; font-family: Georgia, serif; }
.caption { position: absolute; bottom: 8px; left: 8px; right: 8px; border-radius: 5px; text-align: center; background: #15111de6; color: white; padding: 5px 7px; }
.media-controls, .practice-foot, .practice-top, .media-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.media-controls { margin-top: 12px; flex-wrap: wrap; justify-content: start; }
.media-foot { margin-top: 8px; min-height: 20px; font-size: 12px; color: var(--muted); }
.practice-top h3 { margin: 0; }
.step-count { background: var(--green); padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.instructions { color: var(--muted); font-size: 14px; margin: 9px 0 15px; min-height: 42px; }
.practice-foot { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; }
textarea { width: 100%; resize: vertical; background: #fdfcf9; color: inherit; padding: 12px; min-height: 108px; border-radius: 9px; border: 1px solid #bcb5c3; }
.answer { padding: 12px; border-radius: 9px; background: #f4f0fa; overflow-wrap: anywhere; }
.answer p { margin-bottom: 8px; }
.answer p:last-child { margin-bottom: 0; }
.answer-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px !important; }
.wrong { background: #f7d6cc; text-decoration: line-through; }
.missed { background: #ffe7af; text-decoration: underline; }
.details { margin: 11px 0; }
.details summary { cursor: pointer; font-weight: 650; }
.gloss { font-size: 14px; margin: 6px 0; }
.record-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.record-status { font-size: 13px; color: var(--muted); margin-top: 8px; }
.storage-status { color: var(--muted); font-size: 13px; margin: 13px 0 24px; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-block: 16px; color: var(--muted); font-size: 13px; }
.footer a { color: inherit; }
