:root{color-scheme:light;font-family:DM Sans,Noto Sans SC,Segoe UI,sans-serif;color:#1f2c27;background:#f4f7f4;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #1f2c27;--muted: #718078;--jade: #398365;--jade-dark: #28694f;--jade-light: #e6f2eb;--line: #e1e9e3;--paper: #fffefa;--red: #b4524b;--blue: #547c94;--shadow: 0 24px 70px rgba(29, 55, 41, .09), 0 2px 8px rgba(29, 55, 41, .04)}*{box-sizing:border-box}html,body{min-height:100%}body{min-width:320px;min-height:100vh;min-height:100dvh;margin:0;background:linear-gradient(rgba(98,137,111,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(98,137,111,.035) 1px,transparent 1px),radial-gradient(ellipse at 50% 28%,#fbfcfa 0,#f4f7f4 58%,#eef3ef);background-size:48px 48px,48px 48px,auto}button,input,select{font:inherit}button{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid rgba(84,124,148,.55);outline-offset:3px}[hidden]{display:none!important}.appHeader{position:relative;z-index:2;display:flex;align-items:center;width:min(100% - 48px,1120px);height:76px;margin:0 auto;border-bottom:1px solid rgba(67,104,80,.1)}.brand{display:inline-flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none}.brandSeal{display:grid;width:36px;height:36px;place-items:center;border:1px solid #b8d3c1;border-radius:11px;background:var(--jade-light);color:var(--jade-dark);font-family:Noto Sans SC,sans-serif;font-size:22px;font-weight:600}.brandName{font-size:16px;font-weight:700;letter-spacing:-.025em}.appNav{display:flex;align-items:center;gap:5px;margin:0 auto;padding:4px;border:1px solid rgba(89,119,97,.12);border-radius:14px;background:#fffffca3}.navButton,.iconButton,.quietButton,.modeButton,.primaryButton,.secondaryButton{border:0;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease,transform .14s ease,box-shadow .14s ease}.navButton{min-height:36px;padding:0 16px;border-radius:10px;background:transparent;color:var(--muted);font-size:13px;font-weight:650}@media(hover:hover){.navButton:hover{color:var(--ink)}}.navButton.active{background:#fffefa;color:var(--ink);box-shadow:0 1px 4px #223c2a1a}.iconButton{display:grid;width:40px;height:40px;place-items:center;border:1px solid var(--line);border-radius:12px;background:#fffffcd1;color:#62756a;font-size:17px}@media(hover:hover){.iconButton:hover{border-color:#c7d8cc;color:var(--jade-dark)}}.voicePanel{position:absolute;z-index:5;top:66px;right:max(24px,calc((100vw - 1120px)/2));display:grid;width:min(320px,calc(100vw - 32px));gap:14px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:var(--shadow)}.voiceField{display:grid;gap:7px;color:#53635a;font-size:12px;font-weight:700}.voiceField>span{display:flex;align-items:center;justify-content:space-between}.voiceField select{width:100%;min-height:40px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}.voiceField input[type=range]{width:100%;accent-color:var(--jade)}.voiceHint{margin:-5px 0 0;color:var(--muted);font-size:11px}#appMain{display:grid;min-height:calc(100vh - 76px);place-items:start center;padding:66px 24px 80px}#cardsView,.sentencesView{width:min(100%,760px)}.sessionProgressRow{display:flex;align-items:center;gap:14px;width:min(100%,680px);margin:0 auto 18px;color:#79867e;font-size:12px;font-variant-numeric:tabular-nums}#cardCount{min-width:52px;font-weight:700}.progressTrack{position:relative;flex:1;height:5px;overflow:hidden;border-radius:99px;background:#dfe8e1}.progressTrack>span{display:block;width:0;height:100%;border-radius:inherit;background:var(--jade);transition:width .22s ease}.quietButton{padding:5px 8px;border-radius:8px;background:transparent;color:#76837b;font-size:12px;font-weight:650}@media(hover:hover){.quietButton:hover{background:#53816314;color:var(--jade-dark)}}.flashcard{position:relative;width:min(100%,680px);min-height:432px;margin:0 auto;padding:44px 54px 42px;border:1px solid rgba(205,219,207,.85);border-radius:27px;background:radial-gradient(circle at 50% 0%,rgba(231,242,233,.42),transparent 34%),var(--paper);box-shadow:var(--shadow)}.flashcard:before{position:absolute;top:22px;right:22px;width:12px;height:12px;border:1px solid #bed4c4;border-radius:3px;content:"";transform:rotate(45deg)}.cardEyebrow{margin:5px 0 25px;color:#829187;font-size:11px;font-weight:800;letter-spacing:.14em;text-align:center}.questionTarget{min-height:80px;margin:-12px auto 10px;color:#273b30;font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:64px;font-weight:600;line-height:1.15;text-align:center}.questionPrompt{max-width:550px;margin:0 auto 34px;color:var(--ink);font-size:clamp(24px,3.5vw,31px);font-weight:650;line-height:1.34;letter-spacing:-.045em;text-align:center}.answerOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.optionButton{display:flex;min-height:68px;align-items:center;justify-content:center;padding:12px 18px;border:1px solid #dfe8e0;border-bottom-width:3px;border-radius:13px;background:#fff;color:var(--ink);font-family:DM Sans,Noto Sans SC,sans-serif;font-size:18px;font-weight:650;text-align:center;cursor:pointer;transition:transform .14s ease,border-color .14s ease,background-color .14s ease}@media(hover:hover){.optionButton:hover:not(:disabled){transform:translateY(-1px);border-color:#9fc5ab;background:#f6fbf6}}.optionButton:active:not(:disabled){transform:translateY(1px);border-bottom-width:1px}.optionButton:disabled{cursor:default}.optionButton.correct{border-color:#8bc09b;background:#e9f5ec;color:#2e7450}.optionButton.wrong{border-color:#dfa8a1;background:#fcf0ee;color:#a54843}.typedAnswerForm{display:flex;gap:10px;max-width:520px;margin:0 auto}.typedAnswerForm input{min-width:0;min-height:54px;flex:1;padding:0 16px;border:1px solid #d9e4db;border-radius:12px;background:#fff;color:var(--ink);font-size:18px}.typedAnswerForm input::placeholder{color:#aab5ad}.primaryButton,.secondaryButton{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:9px;padding:0 20px;border-radius:12px;font-size:13px;font-weight:750}.primaryButton{border:1px solid var(--jade-dark);background:var(--jade);color:#fff;box-shadow:0 2px #28694f}@media(hover:hover){.primaryButton:hover:not(:disabled){background:#34785b;transform:translateY(-1px)}}.primaryButton:active{transform:translateY(1px);box-shadow:none}.secondaryButton{border:1px solid var(--line);background:#fff;color:#56675d}@media(hover:hover){.secondaryButton:hover:not(:disabled){border-color:#b9d0c0;background:#f7fbf7;color:var(--jade-dark)}}.primaryButton:disabled,.secondaryButton:disabled{opacity:.45;box-shadow:none;transform:none;cursor:default}.answerCard{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.answerResult{margin-bottom:24px;color:var(--jade);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.answerResult.wrong{color:var(--red)}.answerHanzi{color:#273b30;font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:clamp(76px,11vw,112px);font-weight:500;line-height:1.1}.answerPinyin{margin-top:13px;color:var(--blue);font-size:22px;font-weight:600;letter-spacing:.015em}.answerMeaning{max-width:520px;margin-top:10px;color:#69776e;font-size:16px;line-height:1.5}.answerActions{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin-top:34px}.pronunciationButton{min-width:188px}.pronunciationButton[aria-busy=true]{color:var(--jade-dark)}.pronunciationButton[aria-busy=true] span{animation:breathe 1.3s ease-in-out infinite}.completeCard{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:360px;text-align:center}.completeCard .cardEyebrow{margin-bottom:12px}.completeCard h1{margin:0;font-size:34px;letter-spacing:-.045em}.completeScore{margin:18px 0 24px;color:var(--jade-dark);font-size:22px;font-weight:750;font-variant-numeric:tabular-nums}.completeActions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.sentencesView .flashcard{min-height:405px}.sentenceSetup{display:flex;flex-direction:column;justify-content:center}.sentenceSetup .cardEyebrow{margin:4px 0 25px}.sentenceModeButtons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modeButton{min-height:62px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#69776e;font-size:14px;font-weight:700}.modeButton.selected{border-color:#99c1a6;background:var(--jade-light);color:var(--jade-dark)}.sentenceLevelField{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0 20px;color:#78867d;font-size:13px;font-weight:700}.sentenceLevelField select{min-width:150px;min-height:42px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}.sentenceStartButton{align-self:flex-end;min-width:132px}.sentenceProgressRow{width:100%;margin:0 auto 35px}.sentenceProgressRow>span:first-child{min-width:54px}.levelBadge{min-width:48px;color:#7a8b80;font-size:11px;font-weight:750;text-align:right}.sentencePane .questionPrompt{min-height:88px;margin-bottom:26px}.sentenceChinese{min-height:95px;margin:12px 0 0;color:#253b30;font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:clamp(27px,5vw,40px);line-height:1.55;text-align:center}.sentenceReadActions{margin-top:26px}.sentenceFeedback{margin:18px auto 0;color:var(--jade-dark);font-size:14px;font-weight:650;line-height:1.6;text-align:center}.sentenceFeedback.wrong{color:var(--red)}.sentenceHints{display:flex;justify-content:center;gap:10px;margin-top:22px}.sentenceHint{margin:12px auto 0;color:#758178;font-size:14px;text-align:center}.sentenceNextButton{display:flex;min-width:132px;margin:18px 0 0 auto}.sentenceAttribution{margin:14px auto 0;color:#87938a;font-size:10px;text-align:center}.sentenceAttribution a{color:inherit;text-decoration-color:#bcc9bf;text-underline-offset:2px}.appStatus{position:fixed;z-index:10;right:20px;bottom:20px;max-width:min(420px,calc(100vw - 40px));padding:13px 17px;border:1px solid #dce6de;border-radius:12px;background:#fffefa;box-shadow:0 10px 35px #19322321;color:#47574d;font-size:13px;line-height:1.45}.srOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@keyframes breathe{50%{opacity:.45}}@media(max-width:640px){.appHeader{width:calc(100% - 28px);height:66px}.brand{gap:8px}.brandSeal{width:32px;height:32px;border-radius:9px;font-size:20px}.brandName{font-size:14px}.appNav{gap:1px;padding:3px}.navButton{min-height:33px;padding:0 10px;font-size:11px}.iconButton{width:36px;height:36px;margin-left:8px}.voicePanel{top:59px;right:14px}#appMain{min-height:calc(100vh - 66px);padding:34px 14px 50px}.sessionProgressRow{gap:9px;margin-bottom:12px}.flashcard{min-height:400px;padding:36px 20px 26px;border-radius:22px}.flashcard:before{top:17px;right:17px}.cardEyebrow{margin-bottom:21px}.questionTarget{min-height:70px;font-size:56px}.questionPrompt{margin-bottom:28px;font-size:25px}.answerOptions{gap:9px}.optionButton{min-height:64px;padding:10px 8px;font-size:16px}.typedAnswerForm{flex-direction:column}.typedAnswerForm .primaryButton{width:100%}.answerActions{flex-direction:column;margin-top:28px}.answerActions>button{width:min(100%,260px)}.completeCard{min-height:350px}.sentenceSetup{min-height:390px}.sentencesView .flashcard{min-height:400px}.sentenceModeButtons{gap:8px}.modeButton{min-height:56px;padding:0 8px;font-size:12px}.sentenceLevelField{margin-top:21px}.sentenceLevelField select{min-width:132px}.sentenceReadActions{flex-direction:column}}@media(max-width:375px){.brandName{max-width:76px;line-height:1.1}.appNav{margin-left:auto}.navButton{padding:0 8px}.iconButton{margin-left:5px}.flashcard{padding-right:15px;padding-left:15px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.settingsPanel{position:fixed;top:72px;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 92px);gap:0;padding:0;overflow-y:auto;overscroll-behavior:contain}.settingsHeader{position:sticky;z-index:1;top:0;display:flex;align-items:center;justify-content:space-between;padding:14px 18px 12px;border-bottom:1px solid var(--line);background:var(--paper)}.settingsHeader h2{margin:0;font-size:16px;letter-spacing:-.02em}.settingsSection{display:grid;gap:14px;padding:16px 18px 18px;border-bottom:1px solid var(--line)}.settingsSection:last-child{border-bottom:0}.settingsSection h3{margin:0;color:var(--jade-dark);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.settingsField{display:grid;gap:7px;margin:0;padding:0;border:0;color:#53635a;font-size:12px;font-weight:700}.settingsField legend{margin-bottom:7px;padding:0}.segmented{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;padding:3px;border:1px solid var(--line);border-radius:11px;background:#f3f7f3}.segmented button{min-height:34px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer}.segmented button[aria-pressed=true]{background:#fff;color:var(--jade-dark);box-shadow:0 1px 4px #223c2a1f}.checkRow{display:flex;flex-wrap:wrap;gap:6px}.checkRow legend{width:100%}.checkRow label,.checkGrid label{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:12px;font-weight:650;cursor:pointer}.checkRow label:has(input:checked),.checkGrid label:has(input:checked){border-color:#9fc5ab;background:var(--jade-light);color:var(--jade-dark)}.checkGrid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.checkGrid legend{grid-column:1 / -1}.settingsPanel input[type=checkbox]{width:15px;height:15px;margin:0;accent-color:var(--jade)}.toggleRow{display:flex;align-items:center;gap:9px;color:#46564c;font-size:13px;font-weight:600;cursor:pointer}.scopeSummary{margin:0;padding:10px 12px;border-radius:10px;background:#f1f7f2;color:#43604f;font-size:12px;line-height:1.45}.scopeSummary.empty{background:#fcf0ee;color:var(--red)}.settingsActions{display:flex;flex-wrap:wrap;gap:8px}.settingsActions .primaryButton{flex:1 1 220px}.voiceField output{color:var(--jade-dark);font-variant-numeric:tabular-nums}.sessionScope{width:min(100%,680px);margin:-8px auto 14px;color:#8a978e;font-size:11px;font-weight:650;letter-spacing:.02em;text-align:center}.sessionScope:empty{display:none}.starButton{position:absolute;top:14px;left:16px;width:40px;height:40px;border:1px solid transparent;border-radius:12px;background:transparent;color:#b59a3c;font-size:22px;cursor:pointer}@media(hover:hover){.starButton:hover{border-color:var(--line);background:#fffaf0}}.toneContours{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:12px}.toneCell{display:inline-grid;justify-items:center;gap:2px;padding:4px 6px 2px;border-radius:10px;transition:background-color .12s ease,transform .12s ease}.toneCell svg{width:34px;height:20px;overflow:visible}.toneCell path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:2.6}.toneCell circle{fill:currentColor}.toneSyllable{color:var(--blue);font-size:22px;font-weight:600;letter-spacing:.015em}.toneCell.tone1{color:#c0574e}.toneCell.tone2{color:#c58a25}.toneCell.tone3{color:#3f8a5d}.toneCell.tone4{color:#3e6fa3}.toneCell.tone5{color:#8c9690}.toneCell.speaking{background:#3983651a;transform:translateY(-2px)}.karaoke .karaokeWord{border-radius:6px;cursor:pointer;transition:background-color 90ms ease,color 90ms ease}@media(hover:hover){.karaoke .karaokeWord:hover{background:#547c941a}}.karaoke .karaokeWord.spoken{color:#6f8c7c}.karaoke .karaokeWord.speaking{background:#39836529;color:var(--jade-dark)}.grammarView,.wordsView{width:min(100%,860px)}.grammarLoading{padding:60px 0;color:var(--muted);text-align:center}.grammarIntro,.wordsHeader{margin-bottom:22px;text-align:center}.grammarIntro .cardEyebrow,.wordsHeader .cardEyebrow{margin-bottom:10px}.grammarHeading{margin:0;font-size:clamp(25px,4vw,34px);letter-spacing:-.045em;line-height:1.2}.grammarLead{max-width:560px;margin:10px auto 0;color:#69776e;font-size:15px;line-height:1.55}.grammarTabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 auto 16px;padding:4px;border:1px solid rgba(89,119,97,.12);border-radius:15px;background:#fffffcb3}.grammarTab{display:grid;gap:1px;min-height:52px;place-content:center;border:0;border-radius:11px;background:transparent;color:var(--muted);cursor:pointer}.grammarTab strong{font-size:13px}.grammarTab span{font-size:11px;font-variant-numeric:tabular-nums}.grammarTab.active{background:var(--paper);color:var(--jade-dark);box-shadow:0 1px 5px #223c2a1f}.grammarList{display:grid;gap:8px;margin:0;padding:0;list-style:none}.grammarItem{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:14px 16px;border:1px solid rgba(205,219,207,.85);border-radius:15px;background:var(--paper);color:var(--ink);text-align:left;cursor:pointer;transition:transform .14s ease,border-color .14s ease}@media(hover:hover){.grammarItem:hover{transform:translateY(-1px);border-color:#9fc5ab}}.grammarNumber{color:#9aa79f;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}.grammarItemBody{display:grid;gap:3px;min-width:0}.grammarItemTitle{font-size:15px;font-weight:700;line-height:1.35}.grammarItemPattern{overflow:hidden;color:#7d8b82;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.grammarStatus{padding:5px 10px;border-radius:99px;background:#f1f5f2;color:#6e7d74;font-size:11px;font-weight:750;white-space:nowrap}.grammarStatus.done{background:var(--jade-light);color:var(--jade-dark)}.grammarEmpty{padding:28px;color:var(--muted);list-style:none;text-align:center}.inlineZh{font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-weight:600}.grammarLesson{padding:28px 40px 36px;border:1px solid rgba(205,219,207,.85);border-radius:27px;background:var(--paper);box-shadow:var(--shadow)}.lessonTop{display:flex;align-items:center;justify-content:space-between;margin:-8px -10px 14px}.lessonCount{color:#8c998f;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.lessonEyebrow{margin:0 0 8px;text-align:left}.lessonTitle{margin:0 0 16px;font-size:clamp(24px,3.6vw,32px);letter-spacing:-.04em;line-height:1.25}.grammarPattern{display:grid;gap:8px;margin-bottom:18px}.patternLine{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.patternChip{padding:6px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#4f5f56;font-size:13px;font-weight:650}.patternChip.zh{border-color:#9fc5ab;background:var(--jade-light);color:var(--jade-dark);font-family:Noto Sans SC,sans-serif;font-size:15px}.patternPlus,.patternOr{color:#a2ada6;font-size:12px;font-weight:800}.lessonSummary{margin:0 0 14px;color:var(--ink);font-size:17px;font-weight:650;line-height:1.5}.lessonBody p{margin:0 0 12px;color:#4b5a51;font-size:15px;line-height:1.7}.lessonNotes{margin:18px 0 6px;padding:14px 18px;border-left:3px solid #d7a64a;border-radius:0 12px 12px 0;background:#fffaf0}.lessonNotes h2{margin:0 0 6px;color:#9a6e1d;font-size:12px;letter-spacing:.1em;text-transform:uppercase}.lessonNotes ul{margin:0;padding-left:18px;color:#5c5640;font-size:14px;line-height:1.6}.lessonSection{margin:30px 0 14px;color:var(--jade-dark);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.exampleCard{padding:22px 22px 18px;border:1px solid #e3ebe5;border-radius:18px;background:linear-gradient(180deg,#fbfdfb,#fff);text-align:center}.exampleCount{margin-bottom:14px;color:#8c998f;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.breakdown{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:6px 4px;margin-bottom:14px}.chunk{display:inline-grid;justify-items:center;gap:4px;padding:7px 9px 6px;border:1px solid transparent;border-bottom-width:3px;border-radius:11px;background:#f5f8f6;cursor:pointer;transition:transform .1s ease,background-color .1s ease,box-shadow .1s ease}@media(hover:hover){.chunk:hover{transform:translateY(-1px)}}.chunkText{color:#253b30;font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:clamp(22px,3.6vw,30px);font-weight:500;line-height:1.2}.chunkRole{max-width:120px;color:#7d8b82;font-size:10px;font-weight:750;letter-spacing:.02em;line-height:1.2}.chunkPunct{align-self:flex-start;padding-top:8px;color:#253b30;font-size:26px}.chunk.subject{border-bottom-color:#8fb1c6}.chunk.verb{border-bottom-color:#c9a35a}.chunk.object{border-bottom-color:#b7a1cf}.chunk.time{border-bottom-color:#d39a8e}.chunk.place{border-bottom-color:#8fc0b3}.chunk.complement{border-bottom-color:#c7b37e}.chunk.modifier{border-bottom-color:#b9c79b}.chunk.other{border-bottom-color:#d4ddd6}.chunk.grammar{border-color:#8bc09b;border-bottom-color:var(--jade);background:var(--jade-light)}.chunk.grammar .chunkText{color:var(--jade-dark);font-weight:650}.chunk.grammar .chunkRole{color:var(--jade-dark)}.chunk.speaking{background:#fff6dc;box-shadow:0 0 0 2px #e7c76f inset;transform:translateY(-2px)}.examplePinyin{margin:4px 0 0;color:var(--blue);font-size:16px;font-weight:600}.exampleEnglish{margin:6px 0 0;color:#69776e;font-size:15px}.exampleControls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}.exampleNav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.exampleNav .quietButton:disabled{opacity:.35;cursor:default}.exampleDots{display:flex;gap:6px}.exampleDot{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#d3dfd6;cursor:pointer}.exampleDot.active{background:var(--jade)}.drillCard{padding:20px 22px;border:1px solid #e3ebe5;border-radius:18px;background:#fff}.drillHeader{display:flex;justify-content:space-between;color:#8c998f;font-size:11px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.drillKind{margin:14px 0 4px;color:var(--jade-dark);font-size:13px;font-weight:800}.drillPrompt{margin:8px 0 6px;color:#253b30;font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:clamp(22px,3.6vw,30px);line-height:1.5;text-align:center}.drillBlank{display:inline-block;min-width:2.2em;margin:0 4px;border-bottom:3px solid var(--jade);color:var(--jade-dark);text-align:center}.drillHint{margin:0 0 14px;color:#79867e;font-size:14px;text-align:center}.drillOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.drillOptions .optionButton{font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:20px}.drillOptions.stacked{grid-template-columns:1fr}.drillOptions .sentenceOption{justify-content:flex-start;min-height:58px;font-size:19px;text-align:left}.orderLine{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;min-height:64px;margin:6px 0 12px;padding:10px;border:2px dashed #d3e0d7;border-radius:14px;background:#fafcfa}.orderLine.correct{border-style:solid;border-color:#8bc09b;background:#eef7f0}.orderLine.wrong{border-style:solid;border-color:#dfa8a1;background:#fcf3f1}.orderPlaceholder{color:#a5b0a9;font-size:13px}.orderTray{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;min-height:52px}.orderToken{min-height:46px;padding:0 14px;border:1px solid #dfe8e0;border-bottom-width:3px;border-radius:11px;background:#fff;color:var(--ink);font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:20px;cursor:pointer}.orderToken.placed{border-color:#9fc5ab;background:var(--jade-light)}.orderToken:disabled{cursor:default}.orderActions,.drillActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:14px}.drillFeedback{margin-top:16px;padding:14px 16px;border-radius:14px;background:#eef7f0;color:#2e6a4a}.drillFeedback.wrong{background:#fcf3f1;color:#9b4741}.drillFeedback strong{font-size:14px}.drillAnswer{margin:6px 0 0;color:#253b30;font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:22px}.drillExplain{margin:10px 0 0;color:#4b5a51;font-size:14px;line-height:1.6}.drillDone{text-align:center}.drillDone .drillActions{justify-content:center}.wordsToolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.wordsSearch,.wordsSelect{min-height:46px;padding:0 14px;border:1px solid #d9e4db;border-radius:12px;background:#fff;color:var(--ink);font-size:16px}.wordsSearch{text-overflow:ellipsis}.wordsSummary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:12px 2px 8px;color:#6e7d74;font-size:12px;font-weight:650}.wordsBulk{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.wordsList{display:grid;gap:6px;margin:0;padding:0;list-style:none}.wordRow{display:grid;grid-template-columns:minmax(84px,max-content) minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:10px 12px 10px 16px;border:1px solid rgba(205,219,207,.85);border-radius:14px;background:var(--paper)}.wordRow.excluded{opacity:.55}.wordHanzi{color:#253b30;font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:26px;font-weight:500}.wordInfo{display:grid;gap:2px;min-width:0}.wordPinyin{color:var(--blue);font-size:14px;font-weight:650}.wordMeaning{overflow:hidden;color:#69776e;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.wordMeta{display:flex;gap:6px}.levelChip,.statusChip{padding:3px 8px;border-radius:99px;background:#f1f5f2;color:#6e7d74;font-size:10px;font-weight:800;white-space:nowrap}.statusChip.learning{background:#eef3f8;color:var(--blue)}.statusChip.missed{background:#fcf0ee;color:var(--red)}.statusChip.mastered{background:var(--jade-light);color:var(--jade-dark)}.wordActions{display:flex;gap:4px}.wordAction{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#5f7066;font-size:14px;cursor:pointer}@media(hover:hover){.wordAction:hover{border-color:#b9d0c0;color:var(--jade-dark)}}.wordAction.star[aria-pressed=true]{border-color:#e2c873;background:#fffaf0;color:#a8841f}.wordAction.exclude[aria-pressed=true]{border-color:#dfa8a1;color:var(--red)}.wordAction[aria-busy=true]{color:var(--jade)}.wordsMore{display:flex;margin:14px auto 0}@media(max-width:640px){.appHeader{flex-wrap:wrap;height:auto;padding:10px 0 8px}.appNav{order:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:8px 0 0}.navButton{padding:0 4px;font-size:12px}.iconButton{margin-left:auto}.voicePanel{top:10px;right:12px}.settingsPanel{width:calc(100vw - 24px);max-height:calc(100dvh - 20px);box-shadow:0 24px 80px #1d372947}#appMain{min-height:auto;padding-top:22px}.starButton{top:10px;left:10px}.toneSyllable{font-size:19px}.grammarLesson{padding:20px 16px 24px;border-radius:22px}.grammarTabs{gap:3px}.grammarTab{min-height:46px}.grammarTab strong{font-size:12px}.grammarItem{grid-template-columns:26px minmax(0,1fr);gap:10px;padding:12px}.grammarStatus{grid-column:2;justify-self:start}.exampleCard{padding:16px 10px 14px}.chunk{padding:6px 6px 5px}.exampleControls>button{flex:1 1 140px}.drillCard{padding:16px 14px}.orderToken{min-height:44px;padding:0 11px;font-size:19px}.wordsToolbar{grid-template-columns:1fr 1fr}.wordsSearch{grid-column:1 / -1}.wordRow{grid-template-columns:auto minmax(0,1fr);gap:4px 12px;padding:10px 12px}.wordMeta{grid-column:1}.wordActions{grid-column:2;justify-self:end}}@media(max-width:375px){.appNav{margin-left:0}.brandName{max-width:none}}.sentenceReadActions{flex-wrap:wrap}.sentenceReadActions>button{white-space:nowrap}.sentenceReadActions .pronunciationButton{min-width:0}.answerActions>button{white-space:nowrap}.chunkRole,.levelChip,.statusChip,.sentenceAttribution{font-size:11px}input[type=range]{min-height:32px}.drillFeedback{scroll-margin:12px}.orderTray:empty{min-height:0}.orderLine.wrong .orderToken.placed{border-color:#e6bdb7;background:#fff;color:#a54843}.drillPrompt,.drillHint,.grammarItemTitle,.grammarHeading,.lessonTitle,.sentenceChinese{text-wrap:balance}.drillAnswer,.drillOptions .sentenceOption,.grammarLead,.lessonSummary,.exampleEnglish{text-wrap:pretty}.karaoke .karaokeWord{white-space:nowrap}.chunkGroup{display:inline-flex;align-items:flex-start;gap:4px}.drillOptions:not(.stacked)>:last-child:nth-child(odd):not(:first-child){grid-column:1 / -1;justify-self:center;width:calc((100% - 10px)/2)}.exampleNav{display:grid;grid-template-columns:1fr auto 1fr}.exampleNav>:first-child{justify-self:start}.exampleNav>:last-child{justify-self:end}.exampleNav .quietButton{min-height:44px;white-space:nowrap}.exampleDots{gap:0}.exampleDot{position:relative;width:26px;height:40px;background:transparent}.exampleDot:after{position:absolute;top:calc(50% - 4.5px);left:calc(50% - 4.5px);width:9px;height:9px;border-radius:50%;background:#d3dfd6;content:""}.exampleDot.active{background:transparent}.exampleDot.active:after{background:var(--jade)}.typedAnswerForm input:disabled{opacity:1;-webkit-text-fill-color:var(--ink);background:#f5f8f6}.sentenceFeedback .feedbackLabel{display:block;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.sentenceFeedback .feedbackZh{display:block;margin-top:4px;color:var(--ink);font-family:Noto Sans SC,Microsoft YaHei,sans-serif;font-size:22px;font-weight:600;line-height:1.4;text-wrap:balance}.sentenceFeedback .feedbackPinyin{display:block;margin-top:2px;color:var(--blue);font-size:15px;font-weight:600;text-wrap:balance}.sentenceHint .hintAlt:before{content:" · "}@media(max-width:640px),(pointer:coarse),(orientation:landscape)and (max-height:500px){.brand{min-height:44px}.navButton{min-height:40px}.iconButton{width:44px;height:44px}.quietButton{min-height:40px;padding:6px 10px}.settingsHeader .quietButton{min-height:44px;padding:0 12px;color:var(--jade-dark);font-size:15px;font-weight:750}.checkRow label,.toggleRow,.segmented button{min-height:40px}.sentenceAttribution a{display:inline;padding:12px 0;white-space:nowrap}.wordsSearch::-webkit-search-cancel-button{width:40px;height:40px;margin-right:-10px;background:center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='%235f7066' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wordAction{width:40px;height:40px}}@media(max-width:640px){#appMain{grid-template-columns:minmax(0,1fr)}#skipCardButton{margin:-8px -10px -8px 0}#skipCardButton[hidden]{display:inline-block!important;visibility:hidden}.questionPrompt{word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}.typedAnswerForm input{width:100%}.answerResult{margin-bottom:10px}.answerCard .answerActions{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:8px;width:100%;margin-top:18px}.answerCard .answerActions>button{width:100%;min-width:0;white-space:normal;line-height:1.15}.answerCard .answerActions>.secondaryButton{gap:6px;padding:0 8px}.answerCard .answerActions>.primaryButton{grid-column:1 / -1;min-height:50px}.completeActions{flex-direction:column;align-items:stretch;width:min(100%,300px)}.completeActions>button{width:100%}.cardEyebrow{text-wrap:balance}.settingsHeader{padding:6px 8px 6px 18px}.checkGrid label{min-height:40px;padding:6px 10px;line-height:1.25}.voiceField select{min-height:44px;padding:0 28px 0 12px;font-size:16px;font-weight:500;text-overflow:ellipsis}.settingsActions .primaryButton,.settingsActions .secondaryButton{flex:1 1 100%}.voiceHint{color:#66756c;font-size:12px;line-height:1.45}.sentencesView .sentenceCard{min-height:0}.sentencePane .questionPrompt{min-height:0;margin-bottom:22px}.sentenceChinese{min-height:0;margin-top:4px}.sentenceReadActions{gap:8px;margin-top:18px}.sentenceReadActions>button{width:100%;min-height:44px}.sentenceHints{flex-wrap:wrap;gap:4px;margin-top:16px}.sentenceHints .quietButton{padding:6px;white-space:nowrap}.sentencesView .sentenceSetup{min-height:0;padding-top:28px;padding-bottom:22px}.sentenceSetup .cardEyebrow{margin:0 0 18px}.sentenceLevelField select{flex:1;min-width:0;font-size:16px;font-weight:500}.sentenceStartButton{align-self:stretch}.sentenceHint{text-wrap:balance}.sentenceHint .hintAlt{display:block;margin-top:2px;text-wrap:balance}.sentenceHint .hintAlt:before{content:none}.grammarLesson{padding:2px 0 8px;border:0;border-radius:0;background:transparent;box-shadow:none}.lessonTop{margin:0 0 12px -10px}.grammarItem{grid-template-columns:22px minmax(0,1fr) auto;align-items:start;gap:5px 10px;padding:12px 12px 12px 10px}.grammarNumber{grid-row:1 / span 2;line-height:20px}.grammarItemBody{display:contents}.grammarItemTitle{grid-column:2 / -1}.grammarItemPattern{display:-webkit-box;overflow:hidden;grid-column:2;align-self:center;line-height:1.4;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.grammarStatus{grid-column:3;grid-row:2;justify-self:end;align-self:center}.exampleControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.exampleControls>button{flex:none;min-width:0;gap:6px;padding:0 10px;white-space:nowrap}.exampleControls>.pronunciationButton{grid-column:1 / -1}.drillCard{padding:16px 12px}.drillFeedback{margin-top:14px;padding:12px}.drillAnswer{font-size:20px;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}.drillFeedback .examplePinyin{font-size:15px;text-wrap:balance}.drillOptions .sentenceOption,.inlineZh{word-break:keep-all;overflow-wrap:anywhere}.drillFeedback .exampleEnglish{display:none}.drillFeedback .drillActions{gap:8px}.drillFeedback .drillActions>button{flex:1 1 120px;padding:0 12px}.orderActions .quietButton{min-height:44px;padding:0 14px;font-size:13px}.drillOptions:not(.stacked){display:flex;flex-wrap:wrap;gap:8px}.drillOptions:not(.stacked) .optionButton{flex:1 1 0;min-width:max-content;min-height:60px;padding:8px;white-space:nowrap}.drillOptions:not(.stacked):has(>:nth-child(4)) .optionButton{flex-basis:calc(50% - 4px)}.wordsHeader{margin-bottom:14px}.wordsHeader .cardEyebrow{display:none}.wordsHeader .grammarLead{margin-top:6px;font-size:14px;line-height:1.45}.wordsSummary{margin:12px 0 10px;row-gap:2px}.wordsSummary .quietButton{min-height:40px;margin-left:-8px;padding:0 8px;color:var(--jade-dark);text-decoration:underline;text-decoration-color:#28694f59;text-underline-offset:3px}.wordsBulk>button{flex:1 1 calc(50% - 4px);min-width:0;padding:0 12px;line-height:1.2;text-align:center}.wordRow{grid-template-columns:minmax(80px,max-content) minmax(0,1fr) auto;gap:6px 12px;padding:10px 12px}.wordHanzi{grid-column:1;grid-row:1;text-wrap:balance}.wordInfo{grid-column:2 / -1;grid-row:1}.wordMeaning{display:-webkit-box;line-height:1.35;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.wordMeta{grid-column:1 / 3;grid-row:2;flex-wrap:wrap;align-self:center}.wordActions{grid-column:3;grid-row:2;justify-self:end}.wordAction{width:40px;height:40px}}@media(max-width:640px)and (max-height:600px){.wordsHeader .grammarLead{display:none}}@media(max-width:640px)and (max-height:700px){#appMain{padding-top:12px}.flashcard{padding-top:24px}}@media(max-width:359px){.checkGrid{grid-template-columns:1fr}.wordRow{grid-template-columns:minmax(72px,max-content) minmax(0,1fr) auto;column-gap:8px;padding:10px}.wordMeta{gap:4px}.wordMeta .levelChip,.wordMeta .statusChip{padding:3px 6px}.wordActions{gap:3px}.wordsBulk>.primaryButton{padding:0 8px}.wordsBulk>.primaryButton+.secondaryButton{flex-basis:auto}}@media(max-width:340px){.appNav{grid-template-columns:repeat(4,auto)}.answerCard .answerActions{grid-template-columns:minmax(0,1fr) 88px}.exampleControls>button{padding:0 8px;font-size:12px}}@media(orientation:landscape)and (max-height:500px){.appHeader{width:calc(100% - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right)));height:auto;min-height:60px}.brandSeal{width:30px;height:30px;font-size:18px}#appMain{min-height:0;padding:4px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left))}#skipCardButton{margin-top:-8px;margin-bottom:-8px}#skipCardButton[hidden]{display:inline-block!important;visibility:hidden}.sessionProgressRow{margin-bottom:6px}.sessionScope{display:none}.flashcard{min-height:0;padding:14px 32px}.flashcard:before{top:14px;right:14px}.starButton{top:6px;left:8px}.cardEyebrow{margin:0 0 8px}.questionTarget{min-height:0;margin:0 auto 2px;font-size:44px}.questionPrompt{margin-bottom:14px;font-size:22px}.answerOptions{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.optionButton{min-height:52px;padding:8px;font-size:16px}.answerResult{margin-bottom:4px}.answerHanzi{font-size:52px}.toneContours{margin-top:0}.answerMeaning{margin-top:4px}.answerActions{margin-top:12px}.answerCard .answerActions{display:flex;flex-direction:row}.answerCard .answerActions>button{width:auto}.typedAnswerForm{flex-direction:row}.typedAnswerForm .primaryButton{width:auto}.completeCard{min-height:0}.sentencesView .flashcard{min-height:0;padding:20px 32px 22px}.sentenceProgressRow{margin-bottom:10px}.sentencesView .sentenceProgressRow{padding-right:16px}.sentencePane .questionPrompt,.sentenceChinese{min-height:0}.settingsPanel{top:8px;max-height:calc(100dvh - 16px)}.settingsHeader{padding-top:10px;padding-bottom:8px}.grammarLesson{padding:22px 24px 28px}.grammarIntro{margin-bottom:14px}.wordsHeader{margin-bottom:12px}.wordsHeader .cardEyebrow,.wordsHeader .grammarLead{display:none}.wordsHeader .grammarHeading{font-size:24px}.wordsBulk>button{flex:1 1 auto}.wordsSummary .quietButton{color:var(--jade-dark);text-decoration:underline;text-decoration-color:#28694f59;text-underline-offset:3px}.drillFeedback .examplePinyin{text-wrap:balance}.drillFeedback .exampleEnglish{display:none}.drillOptions:not(.stacked){display:flex;flex-wrap:wrap;gap:8px}.drillOptions:not(.stacked) .optionButton{flex:1 1 0;min-width:max-content;min-height:52px;padding:8px;white-space:nowrap}}
