.word-study{max-width:1000px;margin:auto;padding:24px 32px 0;color:#3e3540}
.ws-button{font:inherit;cursor:pointer;border:0;background:transparent;color:inherit;padding:10px 14px;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;transition:background .15s}
.ws-button:focus-visible{outline:3px solid #edb0ca;outline-offset:3px}
.ws-button:disabled{opacity:.4;cursor:default;box-shadow:none}
.ws-button svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ws-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.ws-head>span{margin-left:auto;color:#a28c9a;font:12px Arial,sans-serif}
.ws-exit{font-size:28px;color:#a0939c;width:40px;height:40px;padding:0}
.ws-course{display:flex;flex-direction:column;gap:2px}
.ws-course small{font:11px Arial,sans-serif;color:#a58c9c;letter-spacing:.5px}
.ws-course strong{font-size:15px;font-weight:600}
.ws-words{display:flex;gap:8px;overflow:auto;padding:2px 2px 14px;scrollbar-width:none;border-bottom:1px solid #f0e5eb;scroll-margin-top:10px}
.ws-words::-webkit-scrollbar{display:none}
.ws-words .ws-button{flex-shrink:0;padding:8px 16px;border:1px solid #ede2e9;font:14px/1.5 Arial,sans-serif;color:#8b7e88;white-space:nowrap;position:relative}
.ws-words .is-current{background:#f0a8b0;color:white;border-color:#f0a8b0;box-shadow:0 3px 0 #c45180}
.ws-words .is-done:not(.is-current){background:#f8edf3;color:#b45b84}
.ws-words .is-done::after{content:'✓';font-size:10px;margin-left:5px}
.ws-page{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:54px;padding:18px 8px 35px;align-items:start}
.ws-main{min-width:0}
.ws-hero{text-align:center;padding:12px 0 17px}
.ws-caption{color:#b799aa;font-size:11px;margin:0 0 14px}
.ws-hero h1{font:700 56px/1.2 Arial,sans-serif;letter-spacing:-1.5px;margin:0;overflow-wrap:anywhere}
.ws-ipa{font:18px/1.7 Arial,sans-serif;color:#937486;margin:8px 0}
.ws-meaning{font-size:17px;line-height:1.7;margin:6px 0 21px}
.ws-sound-row{display:flex;gap:12px;align-items:center;justify-content:center}
.ws-listen{color:#be477e;background:#fff0f7;padding:11px 21px;font-size:14px}
.ws-slow{font-size:12px;color:#9b758a;border:1px solid #ecdde6;padding:8px 13px;border-radius:50px}
.ws-star{font-size:25px;color:#c395a8;padding:8px 9px}
.ws-chunks{display:flex;gap:10px;align-items:stretch;justify-content:center;flex-wrap:wrap;margin:30px 0 13px}
.ws-chunks .ws-button{min-width:57px;padding:12px 9px;background:#fcf5f9;border:1px solid #efdeE7;display:flex;flex-direction:column;gap:5px}
.ws-chunks b{font:600 24px/1.2 Arial,sans-serif;letter-spacing:.3px}
.ws-chunks small{font:12px/1.4 Arial,sans-serif;color:#a17b90}
.ws-chunks .is-silent{background:#f7f6f7;color:#aaa1a8;border-color:#eee9ed}
.ws-chunks .is-playing{background:#f0a8b0;color:white;border-color:#d15287;box-shadow:0 3px 0 #c04a7d}
.ws-chunks .is-playing small{color:white}
.ws-phonics-tools{display:flex;gap:19px;align-items:center;justify-content:center;flex-wrap:wrap}
.ws-phonics-tools .ws-button{color:#b65583;font-size:13px;padding:7px 0}
.ws-phonics-tools>span{color:#a28c9a;font-size:12px}
.ws-phonics-tools b{font:14px Arial,sans-serif;color:#756471;margin-left:6px}
.ws-status{font-size:11px;line-height:1.6;color:#aa919f;min-height:18px;margin:12px 0 0}
.ws-section-label{display:flex;justify-content:space-between;align-items:center;gap:12px}
.word-study h2{font-size:15px;line-height:1.7;margin:0;font-weight:600}
.ws-section-label>span{font-size:11px;color:#af8a9e}
.ws-record-block{border-top:1px solid #eee4eb;padding:23px 0 20px}
.ws-record-controls{display:flex;align-items:center;gap:18px;margin:19px 0 8px}
.ws-record{width:58px;height:58px;flex-shrink:0;color:white;background:#f0a8b0;border-radius:50%;box-shadow:0 4px 0 #c74d81;padding:0}
.ws-record svg{height:26px;width:26px}
.ws-record-controls>p{font-size:12px;color:#987c8d;line-height:1.8;margin:0}
.ws-record.is-recording{background:#cc426e;animation:pulse 1s infinite}
.ws-assessment{color:#ad98a4;font-size:11px;line-height:1.8;margin:18px 0 0}
.ws-record-player{display:block;max-width:100%;height:40px;margin:15px 0 3px}
.ws-text{color:#ae6588;font-size:12px;padding:8px 0}
.ws-example,.ws-usage,.ws-notes{border-top:1px solid #eee4eb;padding:23px 0 20px}
.ws-small-sound{color:#c15a89;padding:2px 5px}
.ws-small-sound svg{width:21px;height:21px}
.ws-example>p[lang=en]{font:500 21px/1.6 Arial,sans-serif;color:#51404e;margin:16px 0 9px}
.ws-example-cn{font-size:13px;color:#a18b98;margin:0;line-height:1.8}
.ws-inline-tools{display:flex;gap:24px;margin-top:11px}
.ws-usage>p{font-size:14px;line-height:1.8;margin:13px 0}
.ws-usage .ws-note{font-size:12px;color:#9e8796;line-height:1.9}
.ws-notes textarea{resize:vertical;width:100%;border:1px solid #eaddE5;background:#fffdfE;border-radius:12px;padding:14px;min-height:96px;font-family:inherit;font-size:13px;line-height:1.8;margin-top:15px;color:#6d5866}
.ws-notes textarea::placeholder{color:#bba5b2}
.ws-practice{position:sticky;top:30px;background:#fcf7fa;border-radius:20px;padding:26px 22px;text-align:center;margin-top:20px;border:1px solid #f4e8ef}
.ws-practice-art{display:flex;flex-direction:column;align-items:center;gap:13px;margin:5px 0 28px;color:#d397b1}
.ws-practice-art svg{width:50px;height:50px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ws-practice-art span{font:12px Arial,sans-serif;letter-spacing:.3px}
.ws-practice>p{font-size:12px;line-height:1.8;color:#aa8b9d;margin:9px 0 22px}
.ws-primary{background:#f0a8b0;box-shadow:0 4px 0 #c85183;color:white;font-size:14px;font-weight:600;border-radius:12px;padding:11px 24px}
.ws-primary:active{transform:translateY(2px);box-shadow:0 2px 0 #c85183}
.ws-practice>.ws-primary{width:100%;margin-bottom:13px}
.ws-footer{position:sticky;bottom:0;background:#fff;z-index:3;display:flex;align-items:center;gap:15px;border-top:1px solid #eee4eb;padding:18px 0 calc(18px + env(safe-area-inset-bottom))}
.ws-footer>span{font:14px Arial,sans-serif;color:#b198a7;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-footer>.ws-primary{margin-left:auto;min-width:145px}
.ws-arrow{border:1px solid #e9dce5;color:#b98ba3;font:28px/1 Arial,sans-serif;width:40px;height:40px;padding:0}
.ws-dialog{padding:25px 30px 35px;width:min(520px,95vw);max-width:95vw;border:1px solid #f0e2ea;border-radius:21px;color:#53404e;background:white;max-height:94dvh;overflow:auto;box-shadow:0 20px 80px #5d26402b}
.ws-dialog::backdrop{background:#39233065;backdrop-filter:blur(4px)}
.ws-drill-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 28px;color:#ae8d9f;font-size:12px}
.ws-drill-content h2{font-size:23px;line-height:1.6;margin:0 0 28px}
.ws-drill-word{font:600 36px Arial,sans-serif;text-align:center;margin:38px 0;color:#614557}
.ws-options{display:flex;flex-direction:column;gap:12px;margin:28px 0}
.ws-options .ws-button{justify-content:flex-start;text-align:left;border:1px solid #ecdeE6;background:#fff;padding:17px;font-size:15px}
.ws-options .is-selected{border-color:#f0a8b0;background:#fff0f7;color:#b13f72;box-shadow:0 0 0 1px #f0a8b0}
.ws-answer{font:22px Arial,sans-serif;border:0;border-bottom:2px solid #e0cbd7;padding:14px 3px;color:#5e4153;width:100%;margin:25px 0;background:white;border-radius:0}
.ws-answer::placeholder{font-size:16px;color:#c2adb9}
.ws-drill-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:38px 0 4px}
.ws-drill-audio{display:flex;flex-direction:column;background:#fff0f7;color:#c34e81;font-size:12px;margin:30px auto 12px;border-radius:18px;width:95px;height:95px}
.ws-drill-audio svg{width:36px;height:36px}
.ws-memory{background:#fff8fc;border:1px solid #eddee7;border-radius:16px;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0;gap:12px}
.ws-memory b{font:600 36px Arial,sans-serif}.ws-memory span,.ws-recall-meaning{font-size:16px;color:#a1778e}
.ws-drill-hint{background:#faf3f7;padding:15px;border-radius:12px;color:#956f85;font-size:13px;line-height:1.8;margin:15px 0}
.ws-drill-hint b{font:22px Arial,sans-serif}
.ws-result{border-radius:14px;padding:19px 20px;background:#fff4f6;color:#a65b79;margin:24px 0 0;line-height:1.8}
.ws-result.is-correct{background:#edf7f1;color:#54866a}
.ws-result h3{font-size:16px;margin:0 0 12px}.ws-result p{font-size:13px;margin:8px 0;overflow-wrap:anywhere}
.ws-result .ws-primary{display:flex;width:100%;margin-top:14px}.ws-result .ws-text{font-size:12px}
.ws-explain-note{font-size:15px;line-height:2;margin:25px 0;color:#9b778c}.ws-explain-example{font:22px/1.7 Arial,sans-serif;margin:30px 0 12px}
@media(max-width:760px){
 .word-study{max-width:520px;padding:17px 23px 0}.ws-head{margin-bottom:15px;gap:10px}.ws-exit{width:29px;height:34px;font-size:27px}.ws-course strong{font-size:14px}.ws-words{gap:7px;padding-bottom:13px}.ws-words .ws-button{padding:7px 14px;font-size:13px}
 .ws-page{grid-template-columns:1fr;gap:8px;padding:12px 0 25px}.ws-hero{padding:11px 0 20px}.ws-hero h1{font-size:49px}.ws-caption{font-size:10px;margin-bottom:12px}.ws-ipa{font-size:16px;margin:7px 0}.ws-meaning{font-size:16px;margin:5px 0 18px}.ws-sound-row{gap:10px}.ws-listen{padding:10px 17px;font-size:13px}.ws-chunks{gap:9px;margin-top:26px}.ws-chunks .ws-button{min-width:55px;padding:11px 8px}.ws-chunks b{font-size:25px}.ws-phonics-tools{gap:17px}.ws-phonics-tools .ws-button{font-size:12px}.ws-status{font-size:10px;margin-top:9px}.word-study h2{font-size:14px}
 .ws-record-block,.ws-example,.ws-usage,.ws-notes{padding:19px 0 17px}.ws-record-controls{gap:16px;margin-top:15px}.ws-record{width:53px;height:53px}.ws-assessment{font-size:10px;margin-top:14px}.ws-example>p[lang=en]{font-size:20px;line-height:1.6}.ws-example-cn{font-size:12px}.ws-usage>p{font-size:13px}.ws-notes textarea{margin-top:12px}
 .ws-practice{position:static;margin-top:0;padding:23px 21px}.ws-practice-art{display:none}.ws-practice>p{margin:8px 0 18px}.ws-practice>.ws-primary{margin-bottom:7px}.ws-footer{padding-top:13px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}.ws-footer>.ws-primary{min-width:145px;padding:11px 18px;font-size:13px}.ws-footer>span{font-size:12px}.ws-arrow{width:34px;height:36px;font-size:25px}
 .ws-dialog{margin:0;padding:20px 23px 35px;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}.ws-dialog::backdrop{background:white;backdrop-filter:none}.ws-drill-head{margin-bottom:34px}.ws-drill-content h2{font-size:23px}.ws-drill-bottom{position:sticky;bottom:0;background:white;padding:18px 0}.ws-drill-word{margin:42px 0}.ws-result{padding:18px}.ws-result .ws-primary{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.word-study *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* The study page stays behind these word-specific panels. */
.ws-accent{display:inline-block;font-size:9px;color:#aa8b9b;margin:-4px 0 5px;padding:3px 7px;border-radius:7px;background:#faf3f7}
.ws-hero-mic{width:38px;height:38px;padding:8px;background:#fff0f7;border-radius:50%;color:#c35083}.ws-hero-mic svg{width:20px;height:20px}
.ws-sound-row{gap:8px}.ws-sound-row .ws-star{width:32px;padding:6px}.ws-hero h1.has-active-sound span{opacity:.3}.ws-hero h1.has-active-sound span.is-playing{opacity:1;color:#d74c8c}
.ws-example-image{margin:0 0 19px;background:#fffafc;border:1px solid #f2e4ec;border-radius:15px;overflow:hidden;position:relative}.ws-example-image img{display:block;width:100%;height:185px;object-fit:contain;background:#fff}.ws-example-image figcaption{font-size:9px;color:#a58b99;padding:7px 10px;background:#fcf6fa;text-align:right}
.ws-collocations,.ws-related,.ws-mnemonic{padding:22px 0;border-top:1px solid #eee4eb}.ws-phrase{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f3eaf0}.ws-phrase:last-child{border:0}.ws-phrase>div{flex:1;min-width:0}.ws-phrase b{display:block;font:17px/1.5 Arial,sans-serif;font-weight:500}.ws-phrase small{display:block;font-size:11px;line-height:1.7;color:#a08394;margin-top:4px}.ws-phrase .ws-star{font-size:23px;padding:5px}
.ws-video-card{display:flex;gap:17px;align-items:center;width:100%;justify-content:flex-start;border:1px solid #efdee8;padding:12px;margin-top:15px;text-align:left}.ws-video-card img{height:76px;width:62px;object-fit:contain;background:#fff8fc;border-radius:8px}.ws-video-card span{font-size:14px;line-height:1.8}.ws-video-card small{color:#b07695;font-size:11px}
.ws-mnemonic p,#ws-note-preview{font-size:13px;line-height:1.9;color:#997d8e;margin:13px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.ws-dialog.ws-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(540px,100vw);max-width:100vw;height:auto;max-height:83dvh;border-radius:24px 24px 0 0;border:1px solid #eddce5;padding:21px 27px calc(25px + env(safe-area-inset-bottom));overflow:auto;box-shadow:0 -20px 80px #56263e29}.ws-dialog.ws-sheet::backdrop{background:#3d25375c;backdrop-filter:blur(2px)}.ws-sheet .ws-drill-head{margin-bottom:17px}.ws-sheet>h2{font:600 27px/1.5 Arial,sans-serif;margin:0 0 15px;overflow-wrap:anywhere}.ws-sheet .ws-record-block{border:0;padding:14px 0 0}.ws-sheet .ws-record-controls{flex-direction:column;text-align:center;gap:21px;margin:25px 0 15px}.ws-sheet .ws-record{width:68px;height:68px}.ws-sheet .ws-section-label{display:none}.ws-sheet-listen{display:flex;gap:24px;justify-content:center}.ws-sheet textarea{display:block;width:100%;min-height:180px;padding:14px;border:1px solid #e8d5df;border-radius:13px;background:#fffafd;font-size:15px;line-height:1.9;color:#6f5465;resize:vertical}.ws-note-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:23px}.ws-note-actions .ws-primary{min-width:145px}
.ws-consent{width:min(400px,90vw);padding:24px;border:0;border-radius:20px;color:#7c5e6f}.ws-consent h2{font-size:21px;margin-bottom:17px}.ws-consent p{font-size:13px;line-height:1.8}.ws-consent .ws-primary{display:block;width:100%;margin:22px 0 8px}.ws-consent::backdrop{background:#3b263b65}
@media(max-width:760px){.ws-sound-row{gap:5px}.ws-listen{font-size:12px;padding:9px 12px}.ws-slow{font-size:11px;padding:7px 10px}.ws-sound-row .ws-star{font-size:22px;width:27px;padding:3px}.ws-chunks{margin-top:20px}.ws-example-image img{height:165px}.ws-phrase b{font-size:16px}.ws-phrase{gap:9px}.ws-dialog.ws-sheet{padding-left:23px;padding-right:23px}.ws-dialog.ws-sheet .ws-record-player{height:45px}.ws-note-actions{position:sticky;bottom:0;background:white;padding-bottom:5px}}
.ws-ai{width:min(680px,96vw);max-height:92dvh;padding:22px;border-radius:24px}.ws-ai-notice{font-size:12px;color:#978791;margin:10px 0}.ws-ai-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ws-ai-chips button{padding:12px;border:1px solid #eedee7;border-radius:13px;background:#fff8fb;color:#81566a;text-align:left;font-size:13px}.ws-ai-messages,#ws-ai-messages{min-height:140px;max-height:48dvh;overflow:auto;padding:12px 0}.ws-chat-user,.ws-chat-assistant{padding:14px 16px;border-radius:17px;margin:10px 0;max-width:94%;font-size:14px}.ws-chat-user{margin-left:auto;background:#fbe8f1}.ws-chat-assistant{background:#f7f5f7}.ws-chat-user small,.ws-chat-assistant small{font-size:11px;color:#9a8290}.ws-chat-user p,.ws-chat-assistant p{white-space:pre-wrap;color:#4d3f4b;line-height:1.8;margin:5px 0 0}#ws-ai-form textarea{width:100%;resize:vertical;min-height:70px;border:1px solid #dfd0d9;border-radius:12px;padding:12px;font:inherit}#ws-ai-form>div{display:flex;justify-content:space-between;gap:10px}.speech-feedback{background:#fcf8fb;border:1px solid #ebdde6;border-radius:16px;padding:15px;margin:14px 0;text-align:left}.speech-feedback h3{font-size:17px}.speech-feedback p{font-size:13px;margin:7px 0;line-height:1.7}.recognized-tokens{display:flex;gap:5px;flex-wrap:wrap}.recognized-tokens span{padding:4px 7px;border-radius:7px}.token-match{background:#e4f3e9;color:#346846}.token-substitution,.token-extra{background:#fce3e8;color:#994d62}.token-omission{border:1px dashed #c0a7b3;color:#8a7782}.speech-feedback details{margin-top:12px;font-size:13px}.speech-next{color:#a65e80}@media(max-width:700px){.ws-ai{width:100%;height:92dvh;max-height:92dvh;margin:auto 0 0;border-radius:24px 24px 0 0}.ws-ai-chips{gap:6px}.ws-ai-chips button{font-size:12px;padding:10px}#ws-ai-messages{max-height:40dvh}.ws-ai::backdrop{background:#38263866}}
.speech-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:14px 0}.speech-metrics>div{padding:9px 5px;background:white;border-radius:10px;text-align:center}.speech-metrics small{display:block;font-size:10px;color:#aa8e9f}.speech-metrics b{display:block;font-size:17px;color:#78596c;margin-top:7px}
