/* The learning sheet shares the garden palette; no external fonts or pictures. */
.word-learning-active .garden-topbar, .word-learning-active #monkey-dictionary { display: none; }
.word-learning-active .wl-shell { margin-top: 28px; }
.mode-card.learning-entry { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; background: #e8f1e1; border-color: #c8dabe !important; padding: 22px 26px; }
.wl-entry-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 62px; height: 66px; background: #fffefa; color: #32755d; border-radius: 15px 15px 20px 5px; font-family: Georgia, serif; font-size: 30px; font-weight: 700; }
.wl-entry-copy { flex: 1; min-width: 0; }
.learning-entry .wl-entry-copy h3 { font-size: 21px; margin: 0 0 4px; }
.learning-entry .wl-entry-copy p { color: #3f624e; font-size: 14px; }
.wl-entry-copy small { display: block; margin-top: 4px; color: #63765e; font-size: 12px; }
.wl-entry-action { flex-shrink: 0; padding: 10px 18px; background: #32755d; color: white; border-radius: 10px; font-size: 14px; font-weight: 600; }
.group-controls .group-btn.group-learn { background: #32755d; color: white; }
.wl-shell { width: 100%; max-width: 1120px; margin: 0 auto 20px; }
.wl-setup { display: flex; flex-direction: column; height: calc(100vh - 112px); min-height: 680px; }
.wl-setup > :not(.wl-word-picker) { flex-shrink: 0; }
.wl-setup .wl-header { margin-bottom: 8px; }
.wl-shell *, .learning-entry * { box-sizing: border-box; }
.wl-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.wl-header h2 { font-size: 28px; color: #2d513e; line-height: 1.4; margin: 0; }
.wl-header p { color: #667168; font-size: 14px; margin: 3px 0 0; word-break: break-word; }
.wl-shell .btn { cursor: pointer; font: inherit; font-size: 15px; min-height: 46px; }
.wl-shell .wl-quiet { color: #42654e; background: #fffefa; border: 1px solid #ccd8c5; }
.wl-shell button:focus, .wl-shell input:focus { outline: 3px solid #d39840; outline-offset: 3px; }
.wl-warning { padding: 12px 16px; margin: 0 0 18px; background: #fff0d9; color: #805416; border: 1px solid #e1c78f; border-radius: 10px; font-size: 14px; }
.wl-shell [hidden] { display: none !important; }
.wl-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 20px 0 24px; }
.wl-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: #788373; font-size: 14px; border-bottom: 3px solid #e1e7d9; }
.wl-steps li > span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border: 1px solid #d3ddcb; border-radius: 50%; font-size: 12px; }
.wl-steps li.is-current { color: #2f6d4e; font-weight: 700; border-color: #32755d; }
.wl-steps li.is-current > span { color: white; background: #32755d; border-color: #32755d; }
.wl-steps li.is-done { color: #56774d; border-color: #a5c18e; }
.wl-setup-steps { margin: 0 0 16px; }
.wl-picker-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wl-picker-heading h3 { font-size: 19px; color: #34543f; margin: 0; }
.wl-picker-heading > strong { color: #32755d; font-size: 14px; }
.wl-learning-overview { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.wl-learning-overview > p { font-size: 14px; color: #58744b; margin: 0; }
.wl-status-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.wl-status-filters .btn, .wl-records-retry { min-height: 40px; padding: 7px 12px; font-size: 13px; border: 1px solid #d5dfce; background: #fffefa; color: #63765b; }
.wl-status-filters .btn[aria-pressed="true"] { color: #285b43; background: #e5efdc; border-color: #9db38e; font-weight: 600; }
.wl-status-filters .btn:disabled { opacity: .5; cursor: default; }
.wl-hidden-selection { font-size: 12px; color: #805c28; margin: 0 0 8px; }
.wl-followups { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.wl-followups > span { font-size: 12px; color: #657b5b; margin-right: auto; }
.wl-followups .btn { min-height: 42px; font-size: 13px; padding: 7px 12px; }
.wl-followups .btn:disabled { opacity: .5; cursor: default; }
.wl-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; align-items: center; }
.wl-tools .btn { font-size: 13px; padding: 7px 13px; min-height: 42px; color: #42654e; background: #fffefa; border: 1px solid #d8e1d0; }
.wl-tools .wl-range.is-selected { color: white; background: #32755d; border-color: #32755d; }
.wl-tools .btn:disabled { opacity: .45; cursor: default; }
.wl-random-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.wl-random-picker label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #536a50; }
.wl-random-picker input { width: 58px; min-height: 42px; padding: 7px; font: inherit; text-align: center; border: 1px solid #b6cba4; border-radius: 8px; background: #fffefa; color: #34553d; }
.wl-random-picker .wl-random-priority { min-height: 42px; font-size: 12px; }
.wl-random-priority input[type="checkbox"] { margin: 0; }
.wl-random-picker input[aria-invalid="true"] { border-color: #b76a4b; }
.wl-random-message { margin: 0 0 8px; color: #42654e; font-size: 13px; }
.wl-random-message.is-error, .wl-reward-note.is-error { color: #a14f32; }
.wl-random-message.is-error { padding: 10px 12px; background: #fff0d9; border: 1px solid #e1c78f; border-radius: 9px; }
.wl-reward-note { margin: 8px 0 12px; color: #536b47; font-size: 13px; line-height: 1.8; overflow-wrap: break-word; }
.wl-reward-note .btn { margin: 6px; font-size: 13px; min-height: 42px; }
.wl-shuffle { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-left: auto; color: #63755d; min-height: 44px; cursor: pointer; }
.wl-word-picker { display: grid; flex: 1 1 360px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; min-height: 260px; overflow-y: scroll; background: #fffefa; border: 1px solid #dce5d5; border-radius: 14px; padding: 6px 16px; }
.wl-word-picker::-webkit-scrollbar { width: 18px; }
.wl-word-picker::-webkit-scrollbar-track { background: #edf1e5; border-radius: 12px; }
.wl-word-picker::-webkit-scrollbar-thumb { min-height: 60px; background: #819677; border: 4px solid #edf1e5; border-radius: 12px; }
.wl-word-picker::-webkit-scrollbar-thumb:hover { background: #57744f; }
.wl-word-picker:focus { outline: 3px solid #d39840; outline-offset: 3px; }
.wl-pick-word { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 78px; padding: 12px; border-bottom: 1px solid #ecede4; cursor: pointer; }
.wl-shell input[type="checkbox"] { width: 19px; height: 19px; flex-shrink: 0; accent-color: #32755d; }
.wl-word-copy { min-width: 0; flex: 1; }
.wl-pick-word.is-passed { background: #eff5e9; }
.wl-word-status { flex: none; padding: 3px 8px; font-size: 12px; line-height: 1.6; border: 1px solid #dde2d5; border-radius: 7px; color: #79816f; background: #f6f7f1; white-space: nowrap; }
.is-passed > .wl-word-status { background: #deecd2; color: #3d6c41; border-color: #c2d7b2; }
.wl-filter-empty { grid-column: 1 / -1; margin: 0; padding: 35px 15px; text-align: center; color: #748269; font-size: 14px; }
.wl-pick-word strong { display: block; color: #36523d; font-size: 19px; line-height: 1.45; font-weight: 600; overflow-wrap: break-word; }
.wl-pick-word small { display: block; color: #727b6b; font-size: 13px; margin-top: 2px; overflow-wrap: break-word; }
.wl-note { margin: 14px 0; color: #737f6c; font-size: 13px; line-height: 1.8; }
.wl-setup .wl-note { margin: 10px 0; }
.wl-setup-actions { margin-top: 2px; }
.wl-start-row, .wl-restart-note { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid #d4e1ca; border-radius: 12px; background: #eaf1e2; }
.wl-session-copy { min-width: 0; }
.wl-session-copy strong { color: #345d3c; font-size: 17px; }
.wl-session-copy p { margin: 3px 0 0; font-size: 13px; color: #5b7257; }
.wl-action-buttons { display: flex; flex-shrink: 0; gap: 10px; flex-wrap: wrap; }
.wl-action-buttons .btn { min-width: 140px; }
.wl-restart-note { background: #fff0d9; border-color: #e1c78f; }
.wl-progress { display: flex; gap: 0; padding: 0 0 16px; }
.wl-progress > div { flex: 1; display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.wl-progress strong { color: #386848; font-size: 30px; line-height: 1.3; font-weight: 700; }
.wl-progress small { font-size: 17px; color: #89927e; font-weight: 400; }
.wl-progress span { font-size: 12px; color: #738069; }
.wl-progress-track { height: 7px; overflow: hidden; background: #e1e8d8; border-radius: 8px; }
.wl-progress-track > span { display: block; height: 100%; background: #729d63; border-radius: 8px; }
.wl-study-sheet { padding: 20px 32px 25px; background: #fffefa; border: 1px solid #dce5d4; border-radius: 20px; box-shadow: 0 8px 28px rgba(49, 82, 48, .04); }
.wl-sheet-label { display: flex; justify-content: space-between; gap: 12px; color: #74856a; font-size: 12px; padding-bottom: 15px; border-bottom: 1px solid #e9eddf; }
.wl-sheet-label > span:first-child { color: #567647; }
.wl-question-body { padding: 27px 0 18px; text-align: center; }
.wl-instruction { color: #7d8675; font-size: 14px; margin: 0 0 20px; }
.wl-english { font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: 1.3; color: #2d5038; margin: 16px 0 15px; font-weight: 600; overflow-wrap: break-word; word-break: break-word; }
.wl-meaning { color: #536a50; font-size: 21px; line-height: 1.6; margin: 12px 0 22px; overflow-wrap: break-word; }
.wl-question-cn { font-size: 28px; color: #37533d; margin-top: 14px; }
.wl-shell .wl-listen { background: #eef4e6; color: #42704b; border: 1px solid #d8e5cb; min-height: 44px; padding: 8px 15px; font-size: 14px; margin: 0 5px 5px; }
.wl-copy-form { max-width: 760px; margin: 24px auto 0; padding-top: 19px; border-top: 1px dashed #dbe5d1; text-align: left; }
.wl-copy-form > label { display: block; color: #63765b; font-size: 14px; margin-bottom: 10px; }
.wl-copy-controls { display: flex; align-items: stretch; gap: 10px; }
.wl-shell input#wl-copy-input { flex: 1; min-width: 0; width: 100%; min-height: 48px; padding: 10px 14px; color: #34553d; font: 22px "Segoe UI", sans-serif; background: #fafcf5; border: 2px solid #b6cba4; border-radius: 10px; }
.wl-copy-controls > .btn { flex-shrink: 0; padding: 10px 16px; }
.wl-shell input#wl-copy-input[aria-invalid="true"] { border-color: #bd9562; }
.wl-shell input#wl-copy-input:disabled { opacity: 1; color: #34553d; -webkit-text-fill-color: #34553d; }
.wl-copy-success { margin: 2px 0; color: #47753e; font-size: 15px; text-align: center; }
.wl-copy-reference { display: none; color: #34553d; font-size: 21px; font-weight: 600; margin: 0 0 9px; overflow-wrap: break-word; }
.wl-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px auto 0; }
.wl-answer { display: flex; gap: 12px; align-items: center; min-height: 67px; padding: 15px 18px; border: 2px solid #e2e8da; border-radius: 12px; background: #fffefa; color: #40563e; cursor: pointer; font: inherit; text-align: left; font-size: 17px; line-height: 1.5; min-width: 0; }
.wl-answer > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.wl-answer:hover:not(:disabled) { background: #f0f5e9; border-color: #95b786; }
.wl-option-letter { display: flex; justify-content: center; align-items: center; flex-shrink: 0; width: 28px; height: 28px; background: #eff3e9; border-radius: 7px; font-size: 12px; color: #7c8c72; }
.wl-answer.is-correct { border-color: #6d9d64; background: #eaf3e2; color: #315d35; }
.wl-answer.is-wrong { border-color: #c88271; background: #fbede7; color: #9a4b3c; }
.wl-answer:disabled { cursor: default; opacity: 1; }
.wl-feedback { padding: 15px 18px; border-radius: 12px; text-align: left; background: #edf4e5; color: #3c653d; margin-top: 2px; }
.wl-feedback.is-wrong { background: #fff0dc; color: #865c26; }
.wl-feedback strong { font-size: 16px; }
.wl-feedback p { margin: 5px 0 9px; font-size: 14px; overflow-wrap: break-word; }
.wl-feedback .btn { padding: 5px 12px; min-height: 42px; font-size: 13px; }
.wl-next-row { border-top: 1px solid #e9eddf; padding-top: 19px; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: center; text-align: center; }
.wl-next-row .btn { min-width: 200px; }
.wl-next-row > span { color: #8a927e; font-size: 13px; padding: 11px 0; }
.wl-save-status { font-size: 12px; text-align: center; color: #7a8870; margin-top: 15px; }
.wl-input-message { min-height: 0; color: #a65b3e; font-size: 14px; text-align: center; }
.wl-spelling { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin: 24px auto 25px; max-width: 100%; }
.wl-letter { display: flex; justify-content: center; align-items: center; width: 29px; min-height: 49px; font-size: 30px; font-family: Georgia, serif; color: #365a3e; }
.wl-letter.wl-space { width: 12px; }
.wl-shell input.wl-letter-input { width: 40px; height: 49px; padding: 3px; border: 2px solid #a8c294; border-radius: 8px; background: #f5f8ec; font: 28px Georgia, serif; text-align: center; color: #365a3e; }
.wl-letter-input:disabled { opacity: 1; -webkit-text-fill-color: #365a3e; }
.wl-complete { padding: 35px 30px; text-align: center; margin-top: 24px; }
.wl-complete-mark { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: 0 auto 20px; font-size: 35px; color: #4f7d42; background: #e6f0dd; border-radius: 50%; }
.wl-complete h3 { color: #345b3e; font-size: 26px; margin: 15px 0; }
.wl-complete p { color: #6e7b65; font-size: 14px; margin: 7px 0; }
.wl-complete-words { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 25px 0; }
.wl-complete-words span { padding: 6px 13px; background: #f0f5e8; color: #4f7046; border-radius: 8px; font-size: 16px; overflow-wrap: break-word; max-width: 100%; }
.wl-complete-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 25px 0; }
@media screen and (max-width: 1000px) {
    .wl-progress > div { flex-direction: column; gap: 2px; }
    .wl-study-sheet { padding-left: 23px; padding-right: 23px; }
}
@media screen and (max-width: 600px), screen and (max-height: 620px) {
    .wl-copy-reference { display: block; }
}
@media screen and (max-width: 600px) {
    .word-learning-active .wl-shell { margin-top: 16px; }
    .mode-card.learning-entry { padding: 18px; gap: 13px; flex-wrap: wrap; }
    .wl-entry-mark { width: 46px; height: 52px; font-size: 25px; }
    .learning-entry .wl-entry-copy h3 { font-size: 19px; }
    .learning-entry .wl-entry-copy p { font-size: 12px; }
    .wl-entry-action { margin-left: 59px; font-size: 13px; }
    .wl-header { margin: 8px 0 20px; }
    .wl-header h2 { font-size: 24px; }
    .wl-header .btn { padding: 8px 12px; font-size: 13px; }
    .wl-setup { height: auto; min-height: 0; }
    .wl-steps { gap: 7px; margin: 15px 0 19px; }
    .wl-steps li { font-size: 12px; flex-direction: column; align-items: flex-start; gap: 7px; }
    .wl-steps li > span { width: 24px; height: 24px; }
    .wl-picker-heading h3 { font-size: 18px; }
    .wl-shuffle { margin-left: 0; }
    .wl-word-picker { flex: none; grid-template-columns: 1fr; padding: 0 8px; height: 420px; height: 55vh; min-height: 300px; max-height: 560px; }
    .wl-pick-word { min-height: 76px; }
    .wl-start-row, .wl-restart-note { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
    .wl-action-buttons { flex-direction: column; }
    .wl-progress strong { font-size: 27px; }
    .wl-progress span { font-size: 11px; }
    .wl-study-sheet { padding: 15px 16px 20px; border-radius: 15px; }
    .wl-question-body { padding-top: 20px; }
    .wl-instruction { font-size: 13px; margin-bottom: 15px; }
    .wl-english { font-size: 43px; margin: 12px 0 15px; }
    .wl-meaning { font-size: 20px; }
    .wl-question-cn { font-size: 23px; }
    .wl-copy-controls { flex-direction: column; gap: 9px; }
    .wl-copy-form > label { font-size: 13px; }
    .wl-answers { grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
    .wl-answer { min-height: 55px; font-size: 16px; padding: 11px 12px; }
    .wl-next-row .btn { width: 100%; min-width: 0; }
    .wl-feedback { padding: 13px; }
    .wl-feedback strong { font-size: 14px; }
    .wl-letter { width: 23px; font-size: 25px; }
    .wl-shell input.wl-letter-input { width: 34px; font-size: 25px; }
    .wl-complete h3 { font-size: 23px; }
}

/* Voice practice is the second step; local playback stays available after a pass. */
.wl-speech { text-align: left; margin: 24px 0 6px; padding: 18px; border: 1px solid #c8dace; border-radius: 14px; background: #f4f8f1; }
.wl-speech-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #244d3b; }
.wl-speech-heading span { font-size: 12px; border: 1px solid #c8dace; border-radius: 20px; padding: 2px 9px; }
.wl-speech p { font-size: 15px; line-height: 1.65; margin: 8px 0 12px; }
.wl-speech small { display: block; font-size: 12px; color: #657565; line-height: 1.7; }
.wl-speech .wl-record { background: #285c46; color: white; min-height: 44px; max-width: 100%; white-space: normal; }
.wl-speech .wl-record:disabled { opacity: .65; cursor: default; }
.wl-speech .is-recording { color: #a14432; }
.wl-speech .is-correct { color: #21623e; font-weight: bold; }
.wl-speech-result { overflow-wrap: break-word; }

/* Local recording checks: meter and playback use this page's audio only. */
.wl-mic-label { display: block; font-size: 13px; color: #50634f; margin: 13px 0 10px; }
.wl-mic-select { display: block; width: 100%; max-width: 420px; min-height: 42px; border: 1px solid #c7d8bd; border-radius: 8px; padding: 7px 10px; margin-top: 6px; font: inherit; font-size: 14px; color: #294c40; background: #fffef9; }
.wl-volume { display: flex; align-items: center; margin: 12px 0; color: #62745d; font-size: 12px; }
.wl-volume-track { position: relative; flex: 1; max-width: 220px; min-width: 35px; height: 8px; margin: 0 10px; border-radius: 8px; background: #dce7d5; overflow: hidden; }
.wl-volume-track span { display: block; height: 100%; width: 0; border-radius: 8px; background: #49865a; transition: width .12s; }
.wl-speech .wl-volume-note { min-width: 48px; font-size: 11px; }
.wl-recording-preview { margin: 15px 0; padding: 12px; border: 1px solid #d5dfcb; border-radius: 9px; background: #fffef9; }
.wl-recording-preview label { display: block; font-size: 13px; color: #4e684c; }
.wl-recording-preview audio { display: block; width: 100%; max-width: 420px; height: 40px; margin: 9px 0; }
.wl-speech-result { white-space: pre-line; }
.wl-voice-pending { margin: 18px 0; padding: 14px; border: 1px solid #e1c78f; border-radius: 10px; background: #fff4e2; color: #805416; }
.wl-voice-pending p { overflow-wrap: break-word; }
@media(prefers-reduced-motion:reduce){.wl-volume-track span{transition:none}}
