:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --card: #fffdf6;
  --ink: #202d26;
  --green: #233f34;
  --sub: #5b675d;
  --edge: #d9dace;
  --pale: #e7ecdf;
  --gold: #f1cc72;
  --red: #934931;
  --serif: Spectral, Georgia, "Songti SC", SimSun, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); }
body, button, input, select { -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .49; cursor: default; }
:focus-visible { outline: 3px solid #bf741d; outline-offset: 3px; }
button, .btn { min-height: 42px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.28; text-wrap: balance; }
h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; }
h2 { font-size: clamp(20px, 2.5vw, 26px); letter-spacing: -.033em; }
h3 { font-size: 17px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 9; padding: 10px 18px; color: white; background: var(--green); }
.skip:focus { top: 8px; }
.boot { padding: 12vh 8vw; color: var(--sub); }
.wrap { width: min(1152px, calc(100% - 64px)); margin: auto; }
.top { border-bottom: 1px solid var(--edge); background: var(--card); }
.top-inner { min-height: 76px; display: flex; align-items: center; gap: 20px; }
.identity { display: inline-flex; align-items: center; gap: 10px; line-height: 1; flex-shrink: 0; }
.identity b { display: block; font-size: 23px; font-weight: 780; letter-spacing: -.03em; }
.identity small { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .07em; font-weight: 750; }
.logo { position: relative; width: 39px; height: 39px; background: var(--green); border-radius: 9px; flex-shrink: 0; }
.logo::before, .logo::after { content: ""; position: absolute; top: 10px; width: 9px; height: 18px; border: 1.7px solid #fbf3d9; }
.logo::before { left: 8px; transform: skewY(13deg); border-radius: 2px 1px 0 2px; }
.logo::after { right: 8px; transform: skewY(-13deg); border-radius: 1px 2px 2px 0; }
.nav { display: flex; gap: 3px; flex-wrap: wrap; }
.nav a { display: grid; align-content: center; min-height: 42px; padding: 8px 12px; color: var(--sub); font-weight: 650; font-size: 14px; line-height: 1.25; border-radius: 7px; }
.nav a:hover, .nav a[aria-current] { background: var(--pale); color: var(--green); }
.nav .dictation-nav { color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.nav .dictation-nav[aria-current] { background: var(--green); color: white; }
.account { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.account-actions { display: flex; gap: 6px; align-items: center; }
.voice-test-start { flex: none; white-space: nowrap; min-height: 40px; padding: 7px 12px; font-size: 14px; }
.language-picker { display: inline-flex; align-items: stretch; justify-self: start; flex: none; gap: 2px; padding: 2px; border: 1px solid #bcc7b8; border-radius: 9px; background: var(--card); }
.language-picker button { min-height: 36px; min-width: 42px; padding: 4px 9px; border: 0; border-radius: 6px; color: var(--green); background: transparent; font-size: 14px; line-height: 1.25; white-space: nowrap; }
.language-picker button[aria-pressed="true"] { color: white; background: var(--green); font-weight: 700; }
.language-picker button:hover:not([aria-pressed="true"]) { background: var(--pale); }
.account-settings-link { display: inline-flex; align-items: center; min-height: 42px; color: var(--green); white-space: nowrap; font-weight: 650; font-size: 14px; }
.account-settings-link:hover, .account-settings-link[aria-current] { text-decoration: underline; }
.account .text-btn { white-space: nowrap; }
.account-name { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #ead7b1; color: #514633; font: 700 14px var(--sans); }
.text-btn { background: transparent; border: 0; color: var(--sub); padding: 4px 6px; font-size: 14px; }
.text-btn:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link { color: #315c49; font-weight: 680; }
.page { padding: 43px 0 64px; }
.page:focus, .auth-main:focus { outline: none; }
.eyebrow { color: #536454; font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; }
.header-block .eyebrow, .auth-form .eyebrow { margin-bottom: 10px; }
.muted, .hint { color: var(--sub); }
.hint { font-size: 14px; }
.header-block p:last-child:not(.eyebrow) { margin-top: 8px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #bec4b6; background: var(--card); color: var(--ink); border-radius: 7px; font-weight: 660; line-height: 1.35; text-align: center; }
.btn:hover:not(:disabled) { background: var(--pale); border-color: #8a9c8b; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fffdf3; }
.btn.primary:hover:not(:disabled) { background: #345e4b; border-color: #345e4b; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2c3324; }
.btn.gold:hover { background: #f9d994; border-color: #f9d994; }
.btn.small { padding: 7px 12px; font-size: 14px; }
.wide { width: 100%; }
.actions, .line, .between { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.row-end { justify-content: flex-end; }
.stack { display: grid; gap: 16px; }
.section { margin-top: 30px; }
.section-head { margin-bottom: 15px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel { padding: 25px; background: var(--card); border: 1px solid var(--edge); border-radius: 13px; min-width: 0; overflow-wrap: anywhere; }
.panel > .hint:first-child + h2, .panel > .eyebrow:first-child + h2 { margin-top: 5px; }
.divider { height: 1px; background: var(--edge); margin: 19px 0; }
.chip { display: inline-flex; align-items: center; width: fit-content; color: var(--green); background: var(--pale); padding: 3px 9px; border-radius: 5px; font-size: 13px; font-weight: 660; }
.chip.warm { background: #f3e8cb; color: #665026; }
.chip.bad { background: #f4e2d9; color: var(--red); }
.notice { position: fixed; z-index: 7; bottom: 22px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); border-radius: 9px; padding: 11px 17px; background: var(--green); color: white; font-size: 14px; box-shadow: 0 5px 25px #152b251c; }
.notice:empty { display: none; }
.auth-main { min-height: calc(100vh - 77px); display: grid; align-content: center; padding: 54px 0 70px; }
.auth-spread { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); min-height: 500px; border: 1px solid #c8ccbe; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 35px #18282009; background: var(--card); }
.book-art { position: relative; isolation: isolate; color: #fbf6dd; background: #274737; padding: clamp(30px, 4.5vw, 62px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 35px; }
.book-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 25px, #f7ebc511 25px 26px), repeating-linear-gradient(90deg, transparent 0 25px, #f7ebc511 25px 26px); mask-image: linear-gradient(135deg, transparent 13%, black 97%); }
.art-title { max-width: 15ch; font: 500 clamp(38px, 5.2vw, 72px)/1.02 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
html[lang=zh-CN] .art-title { max-width: 100%; line-height: 1.17; }
.art-note { max-width: 35ch; margin-top: 15px; color: #eef2df; }
.index-art { width: min(290px, 100%); padding: 17px 20px; color: #344b39; background: #f9f5df; box-shadow: 0 8px 16px #0e1b192e; border-top: 4px solid #e5bd6c; border-radius: 9px; }
.index-art p { color: var(--sub); font-size: 13px; font-weight: 650; }
.index-art strong { display: block; font: italic 500 39px/1.2 var(--serif); margin: 4px 0 6px; }
.index-art span { display: block; }
.index-art span + span { margin-top: 4px; }
.auth-side { padding: clamp(27px, 4.25vw, 66px); display: grid; align-content: center; }
.auth-form { max-width: 370px; width: 100%; margin: auto; }
.auth-form :is(h1, h2) { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 8px; }
.auth-form .form-fields { margin-top: 25px; }
.field { display: grid; gap: 6px; min-width: 0; font-size: 15px; font-weight: 660; }
input:not([type=radio]), select { width: 100%; min-width: 0; border: 1px solid #bfc6b8; border-radius: 7px; color: var(--ink); background: #fffef9; padding: 10px 12px; min-height: 44px; font-size: 16px; }
input::placeholder { color: #737c70; opacity: 1; }
.auth-switch { width: 100%; text-align: center; margin-top: 13px; font-weight: 650; color: #375941; }
.error { color: #8c3c27; background: #f8e9df; border-radius: 6px; padding: 9px 12px; font-size: 14px; }
.home-study { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 16px; }
.study-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr)); gap: 14px; }
.study-option h2 { font-size: 20px; }
.study-option .hint { margin-top: 8px; }
.home-lesson { padding: clamp(24px, 3.5vw, 42px); border-radius: 13px; background: var(--green); color: var(--card); }
.home-lesson h1 { font-size: clamp(28px, 3.5vw, 42px); text-wrap: balance; }
.home-range { margin-top: 10px; color: #dce5d9; font: italic 22px/1.4 var(--serif); overflow-wrap: anywhere; }
.home-lesson .actions { margin-top: 24px; gap: 10px 20px; }
.home-plan { display: inline-flex; align-items: center; min-height: 42px; text-decoration: underline; text-underline-offset: 4px; }
.home-progress { display: grid; align-content: center; gap: 10px; }
.home-progress h2 { color: var(--sub); font-size: 16px; }
.home-count { font: 500 clamp(28px, 3.4vw, 40px)/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.stat { padding: 17px 20px; }
.stat strong { display: block; margin: 2px 0; font: 500 33px/1.15 var(--serif); color: var(--green); font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--edge); padding: 12px 0; }
.list-row:first-child { border-top: 0; }
.list-row:last-child { padding-bottom: 0; }
.list-row strong, .list-row small { display: block; }
.list-row small { color: var(--sub); }
.empty-copy { padding: 15px 0; color: var(--sub); }
.bar { width: 100%; height: 7px; background: #e3e7db; border-radius: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #6f8d65; }
.library-tools { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; align-items: flex-end; margin: 23px 0 17px; }
.jump { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jump input:not([type=radio]) { width: 84px; padding: 6px 10px; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.group-tile { display: block; padding: 19px 20px; transition: border-color .15s; }
a.group-tile:hover { border-color: #899e84; }
.group-tile h3 { font-size: 20px; }
.range { display: block; font: italic 19px/1.35 var(--serif); color: #475e4b; margin: 9px 0 13px; overflow-wrap: anywhere; }
.group-tile .hint { margin-top: 6px; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.study-head { margin-bottom: 22px; }
.back { display: inline-block; font-size: 14px; color: #4b6450; margin-bottom: 12px; }
.study-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, .85fr); gap: 18px; align-items: start; }
.word-card { position: relative; border-top: 5px solid #708967; }
.word-name { font: 500 clamp(41px, 5vw, 64px)/1.1 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; margin: 12px 0 15px; }
.word-def { border-top: 1px solid var(--edge); padding: 13px 0; }
.word-def h3 { font: 700 12px/1.35 var(--sans); color: var(--sub); margin-bottom: 4px; letter-spacing: .045em; }
.word-def p { overflow-wrap: anywhere; font-size: 17px; }
.word-def .en { font-family: var(--serif); font-size: 20px; line-height: 1.42; }
.recall { background: #f0f3e9; padding: 17px; border: 1px dashed #b3c1a9; border-radius: 8px; margin: 15px 0; }
.recall .btn { margin-top: 10px; }
.audio-options { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.audio-options .btn { font-size: 14px; padding: 7px 11px; }
.audio-options [aria-pressed=true], .btn.selected { border-color: #6f8d65; color: #29482f; background: #e1e9da; }
.player { border-radius: 8px; padding: 11px; background: #f0f2e8; }
.player audio { width: 100%; height: 38px; margin-top: 5px; display: block; }
.mistake-audio { display: grid; gap: 9px; }
.mistake-audio .actions { margin-top: 4px; }
.mistake-audio label { cursor: pointer; min-height: 42px; }
.mistake-audio input[type=checkbox], .audio-study-controls input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--green); }
.mistake-audio p:empty { display: none; }
.word-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; margin-top: 19px; }
.word-select { margin-top: 12px; }
.side-block + .side-block { margin-top: 14px; }
.side-block h2 { margin-bottom: 9px; font-size: 20px; }
.side-block .actions { margin-top: 12px; }
.group-page-links { justify-content: space-between; margin-top: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border-radius: 8px; border: 1px solid var(--edge); cursor: pointer; background: #fffef9; }
.pick:has(input:checked) { background: #eaf0e3; border-color: #688361; }
.pick input { margin-top: 5px; accent-color: var(--green); }
.pick small { display: block; color: var(--sub); margin-top: 2px; font-size: 13px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 720; margin-bottom: 8px; }
.field-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.focus-panel { max-width: 790px; margin: 0 auto; }
.question { font-size: clamp(26px, 4.1vw, 42px); line-height: 1.28; margin: 20px 0; overflow-wrap: anywhere; }
.question.en { font-family: var(--serif); font-weight: 500; }
.answer-option { justify-content: flex-start; font-weight: 500; padding: 13px 15px; }
.answer-option:has(input:checked) { background: #e9efdf; border-color: #63815e; }
.answer-option input { flex-shrink: 0; accent-color: var(--green); }
.result-score { font: 500 clamp(43px, 7vw, 78px)/1.05 var(--serif); color: var(--green); margin: 12px 0 4px; }
.result-entry { border-top: 1px solid var(--edge); padding: 13px 0; }
.result-entry summary { cursor: pointer; font-weight: 650; word-break: break-word; }
.result-entry .word-def:first-child { margin-top: 12px; }
.report-metrics { display: grid; grid-template-columns: 1.15fr 1fr 1fr; margin: 2px 0; padding: 18px 0; border-block: 1px solid var(--edge); gap: 18px; }
.report-metric { min-width: 0; }
.report-metric dt { color: var(--sub); font-size: 14px; font-weight: 600; }
.report-metric dd { margin: 4px 0 0; }
.report-metric dd:first-of-type { color: var(--green); font-size: clamp(21px, 3vw, 30px); line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.report-metric:first-child dd:first-of-type { font: 550 clamp(32px, 5vw, 48px)/1.05 var(--serif); }
.report-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.report-filters button[aria-pressed=true] { background: var(--green); color: white; border-color: var(--green); }
.report-entry summary { display: list-item; padding-left: 3px; }
.report-word-line { display: inline-flex; max-width: 94%; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; vertical-align: top; }
.report-word { font: 600 22px/1.35 var(--serif); overflow-wrap: anywhere; }
.report-outcome { font: 650 13px/1.5 var(--sans); color: var(--sub); }
.report-outcome.misspelled { color: var(--red); }
.report-outcome.correct { color: var(--green); }
.report-answer, .report-position { display: block; margin: 3px 0 0 15px; font-weight: 450; }
.report-answer [lang=en] { font-weight: 650; }
.report-word-details { display: grid; gap: 10px; padding: 14px 0 2px 15px; }
.report-entries:empty, .report-filters ~ p:empty, .report-filters ~ div:has(> .dictation-pager[hidden]) { display: none; }
@media (max-width: 520px) {
  .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .report-metric:first-child { grid-column: 1/-1; }
}
.mistake-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.mistake-title { font: 500 32px/1.2 var(--serif); margin: 12px 0 4px; }
.note-banner { background: #e9efdf; border: 1px solid #ccd7bf; }
.oral-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.oral-question { font: 500 clamp(30px, 4.4vw, 48px)/1.15 var(--serif); letter-spacing: -.035em; }
.oral-gloss { font: 500 22px/1.5 var(--serif); }
.oral-transcript { font: 500 23px/1.4 var(--serif); overflow-wrap: anywhere; }
.oral-letter-result, .oral-response, .prior-attempts { margin: 13px 0; }
.oral-response h3 { margin-bottom: 6px; }
.coach-panel { padding: 16px; border-radius: 9px; background: #edf1e4; margin-top: 15px; }
.tutor-reply { border-left: 3px solid #91a082; padding-left: 12px; }
.tutor-reply > * + * { margin-top: 7px; }
html[lang=en] .nav a { padding-inline: 10px; }
.recall .oral-transcript { margin: 6px 0; }
@media(max-width:640px) {
  .oral-fields { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .wrap { width: min(100% - 40px, 1152px); }
  .top-inner { gap: 12px; }
  .nav a { padding: 8px; }
  .account { gap: 5px; }
  .account-name { max-width: 7ch; }
  .library-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .study-layout { grid-template-columns: minmax(0, 1.45fr) minmax(210px, .85fr); gap: 12px; }
  .panel { padding: 18px; }
}
@media (min-width: 641px) and (max-width: 1150px) {
  .top-inner.voice-header { flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .voice-header .nav { order: 3; flex: 1 0 100%; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .top-inner { min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding-block: 9px; }
  .top-inner .account { display: contents; }
  .top-inner .identity { grid-area: 1 / 1; justify-self: start; }
  .top-inner .language-picker { grid-area: 1 / 2; justify-self: end; }
  .top-inner .voice-test-start { grid-area: 2 / 1; justify-self: start; }
  .top-inner .account-actions { grid-area: 2 / 2; justify-self: end; }
  .top-inner .nav { grid-area: 3 / 1 / auto / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; gap: 3px; }
  .top-inner.voice-header .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-inner.auth-header .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-inner .nav a { min-height: 44px; padding-inline: 4px; }
  .top-inner .text-btn { padding-inline: 2px; }
  .identity b { font-size: 21px; }
  .logo { width: 36px; height: 36px; }
  .logo::before, .logo::after { top: 9px; }
  .logo::before { left: 7px; }
  .logo::after { right: 7px; }
  .page { padding: 22px 0 44px; }
  .auth-main { min-height: auto; padding: 16px 0 32px; }
  .auth-spread { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .auth-side, .book-art { padding: 23px 20px; }
  .auth-task .book-art, .index-art { display: none; }
  .art-title { font-size: 36px; }
  .art-note { margin-top: 10px; line-height: 1.45; }
  .auth-form .form-fields { margin-top: 18px; }
  .home-study { grid-template-columns: 1fr; gap: 12px; }
  .home-lesson .actions { margin-top: 17px; }
  .home-progress { grid-template-columns: auto 1fr; align-items: baseline; }
  .home-count { text-align: right; font-size: 24px; }
  .home-progress .bar { grid-column: 1 / -1; }
  .stats { gap: 6px; }
  .stat { padding: 10px 9px; border-radius: 9px; }
  .stat .hint { font-size: 12px; }
  .stat strong { font-size: 26px; }
  .two-col, .study-layout, .field-grid, .mistake-grid { grid-template-columns: 1fr; }
  .section { margin-top: 21px; }
  .library-grid { gap: 8px; }
  .group-tile { padding: 12px; }
  .group-tile h3 { font-size: 17px; }
  .range { font-size: 16px; }
  .group-tile .hint { font-size: 12px; }
  .choice-grid { grid-template-columns: 1fr; }
}
.path-next { position: relative; overflow: hidden; padding: clamp(23px, 3.5vw, 38px); color: #faf8ed; background: var(--green); border-radius: 13px; }
.path-next .eyebrow { color: var(--gold); }
.path-next h2 { margin: 9px 0 10px; max-width: 26ch; font-size: clamp(26px, 3.3vw, 39px); text-wrap: balance; }
.path-summary { max-width: 48em; color: #e1e9db; }
.path-next .actions { margin-top: 19px; }
.plan-details > summary { cursor: pointer; font-weight: 650; }
.plan-details[open] > summary { margin-bottom: 12px; }
.plan-source { color: var(--sub); }
.plan-source .actions { margin-top: 10px; }
.path-words { display: flex; flex-wrap: wrap; gap: 5px 7px; margin-top: 8px; }
.path-word { display: inline-flex; align-items: baseline; gap: 5px; border-radius: 4px; background: #eef1e6; padding: 2px 7px; line-height: 1.4; }
.path-word b { font: 500 17px/1.4 var(--serif); overflow-wrap: anywhere; }
.path-pos { color: #50664e; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.path-next .path-word { background: #375445; color: #fffbea; }
.path-next .path-pos { color: #efd9a0; }
.path-next .path-words { margin-top: 14px; }
.path-ledger > .hint { margin-top: 6px; }
.path-ledger table, .path-progress table { border-collapse: collapse; width: 100%; margin-top: 18px; text-align: left; }
.path-ledger th, .path-ledger td, .path-progress th, .path-progress td { border-top: 1px solid var(--edge); padding: 13px 11px; }
.path-ledger thead th, .path-progress thead th { font-size: 13px; color: #505f50; background: #edf0e5; font-weight: 650; }
.path-ledger tbody th, .path-ledger td { vertical-align: top; }
.path-ledger tbody th { width: 17%; min-width: 115px; }
.path-row-reason { width: 24%; }
.path-row-action { width: 1%; white-space: nowrap; }
.path-stage-name, .path-evidence-line { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.stage-number { display: inline-grid; place-items: center; min-width: 23px; height: 23px; border: 1px solid #c0cdb7; border-radius: 50%; background: var(--pale); color: #3a523e; font-size: 12px; }
.path-row-group { font-size: 12px; margin-top: 5px; font-weight: 500; }
.path-current { display: inline-block; color: #486544; font-size: 12px; margin-top: 3px; }
.path-evidence { margin-top: 8px; font-size: 13px; }
.path-evidence summary { color: #385c45; cursor: pointer; }
.path-evidence ul { margin: 8px 0 0; padding: 0; list-style: none; }
.path-evidence li { padding: 7px 0; border-top: 1px solid var(--edge); }
.path-evidence-line small { color: var(--sub); }
.path-evidence .hint { font-size: 13px; }
.path-progress th { width: 40%; }
.path-progress td { width: 30%; }
.path-progress th[scope=row] { font-size: 15px; font-weight: 600; }
.path-score { max-width: 210px; font-variant-numeric: tabular-nums; }
.path-score .bar { height: 4px; margin-top: 5px; }
.guided-list { margin: 0; padding: 0; list-style: none; }
.guided-list a { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 9px; border-top: 1px solid var(--edge); }
.guided-list a:hover, .guided-list a[aria-current] { background: var(--pale); }
.guided-list small { color: var(--sub); margin-left: auto; flex-shrink: 0; }
.guided-reason, .guided-next + .guided-next { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--edge); }
.guided-reason h3 { font-size: 14px; margin-bottom: 4px; }
.guided-next .actions { margin-top: 10px; }
@media (max-width: 760px) {
  .path-ledger thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .path-ledger table, .path-ledger tbody, .path-ledger tr { display: block; }
  .path-ledger tr { padding: 16px 0; border-top: 1px solid var(--edge); }
  .path-ledger tr:last-child { padding-bottom: 0; }
  .path-ledger tbody th, .path-ledger td { display: block; width: auto; border: 0; padding: 0; }
  .path-ledger tbody th { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
  .path-row-reason, .path-row-action { margin-top: 8px; }
  .path-progress th, .path-progress td { padding: 10px 5px; }
  .path-progress th[scope=row] { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.dictation-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.dictation-range .field { flex: 1 1 14rem; max-width: 34rem; }
.dictation-group-picker { padding: 15px; border: 1px solid var(--edge); border-radius: 9px; gap: 10px; }
.dictation-group-picker summary { width: fit-content; cursor: pointer; color: var(--green); font-weight: 650; }
.dictation-group-picker details[open] > summary { margin-bottom: 8px; }
.dictation-group-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.dictation-group-choice { min-width: 3.3rem; padding: 5px 6px; background: var(--card); color: var(--ink); border: 1px solid var(--edge); border-radius: 6px; font-variant-numeric: tabular-nums; }
.dictation-group-choice[aria-pressed=true] { background: var(--green); border-color: var(--green); color: white; font-weight: 700; }
.dictation-group-choice[aria-pressed=true]::before { content: '✓ '; }
.dictation-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dictation-pager select { flex: 1; min-width: 8rem; }
.dictation-clue input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--green); }
.dictation-controls { display: grid; gap: 10px; }
.dictation-controls > p:empty { display: none; }
.dictation-current { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--edge); border-radius: 9px; background: var(--pale); }
.dictation-current h2 { font-size: 21px; }
.audio-study-layout { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.audio-study-fields, .audio-study-card, .audio-study-meanings { display: grid; gap: 14px; }
.audio-study-word { margin: 12px 0 0; overflow-wrap: anywhere; }
.audio-study-controls { align-items: center; }
.audio-study-controls .line { min-height: 44px; cursor: pointer; }
.audio-study-player > p:empty { display: none; }
.headset-panel { margin-bottom: 16px; }
.headset-panel p:empty { display: none; }
@media (max-width: 680px) {
  .audio-study-layout { grid-template-columns: minmax(0, 1fr); }
  .audio-study-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audio-study-fields select { min-width: 0; }
}
@media (max-width: 440px) {
  .audio-study-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .audio-study-controls .btn { min-height: 44px; padding-inline: 7px; }
  .audio-study-controls .line { grid-column: 1 / -1; }
}
.dictation-current input { width: 100%; font-size: 18px; }
.dictation-meanings { font-size: 16px; line-height: 1.45; }
.dictation-meanings p[lang="zh-CN"] { color: var(--sub); }
.dictation-numbers { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.dictation-number { position: relative; min-height: 36px; padding: 4px 8px; color: var(--green); font-weight: 650; font-variant-numeric: tabular-nums; border: 1px solid #bdc7b8; border-radius: 6px; background: var(--card); }
.dictation-number[data-answered="true"] { background: var(--pale); }
.dictation-number[data-answered="true"]::after { content: ""; position: absolute; bottom: 3px; right: 3px; width: 6px; height: 3px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.dictation-number[aria-current="step"] { border-color: var(--green); background: var(--green); color: white; }
@media (max-width: 600px) {
  .dictation-current { padding: 12px; }
  .dictation-numbers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
