@font-face{font-family:TingSans;src:local("Noto Sans");font-display:swap}
:root{font-family:TingSans,"Noto Sans",system-ui,sans-serif;color:#213648;background:#f6f9fc;font-synthesis:none;--ink:#213648;--muted:#82909c;--blue:#526dde;--border:#e9eef3;--heading:#172c40}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8da2ff;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.48}svg{width:20px;height:20px;flex:none}
.shell{min-height:100vh;display:flex}.sidebar{width:250px;background:#fff;border-right:1px solid #edf1f5;position:fixed;inset:0 auto 0 0;padding:38px 21px 24px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:11px;margin:0 0 57px 7px}.brand-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#536fe1;color:#fff;font-size:25px;font-weight:700;position:relative}.brand-mark span{position:absolute;color:#f9d87a;font-size:12px;right:-4px;top:-7px}.brand-copy{display:flex;flex-direction:column;line-height:1}.brand-copy strong{font-size:29px;letter-spacing:-1.8px;color:#20334b}.brand-copy strong span{color:#f0b258}.brand-copy small{color:#99a4ad;font-size:10px;letter-spacing:.02em;margin-top:5px}.nav-caption,.section-kicker{font-size:10px;font-weight:800;letter-spacing:.1em;color:#a6b2c0}.nav-caption{margin:0 0 16px 11px}.nav{display:grid;gap:5px}.nav a{height:46px;display:flex;gap:14px;align-items:center;color:#81909e;font-size:13px;font-weight:650;border-radius:11px;padding:0 13px;transition:background .16s,color .16s}.nav a:hover{background:#f5f7fe;color:#5369c9}.nav a.active{background:#edf1ff;color:#526cdb}.nav-icon{width:24px;text-align:center;font-size:21px;line-height:1;font-weight:400}.sidebar-note{margin-top:auto;background:#f7f9ff;border:1px solid #edf0ff;border-radius:14px;padding:15px 14px;display:flex;align-items:center;gap:12px;color:#5c73d0}.sidebar-note>span{font-size:25px;color:#f2ba68}.sidebar-note strong,.sidebar-note small,.sidebar-bottom strong,.sidebar-bottom small{display:block}.sidebar-note strong{font-size:14px}.sidebar-note small{font-size:10px;color:#9ba6b6;margin-top:4px}.sidebar-bottom{display:flex;gap:10px;align-items:center;margin:25px 0 0 3px}.avatar{width:37px;height:37px;border-radius:50%;background:#fee7d1;color:#d08454;display:grid;place-items:center;font-size:15px;font-weight:700}.sidebar-bottom strong{font-size:11px;color:#44566a}.sidebar-bottom small{font-size:9px;color:#a1acb8;margin-top:4px}
.main{margin-left:250px;width:calc(100% - 250px);min-width:0}.topbar{height:78px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f5;background:rgba(255,255,255,.58)}.topbar-title{font-size:13px;font-weight:700;color:#647387}.topbar-right{display:flex;align-items:center;gap:12px}.today-date{font-size:11px;color:#98a5b2;margin-right:11px}.provider-label{font-size:10px;color:#9aa7b5;font-weight:700}.topbar select{border:1px solid #e9eef5;border-radius:9px;padding:7px 26px 7px 9px;background:#fff;color:#687b90;font-size:11px;max-width:130px}.view{max-width:1340px;margin:auto;padding:41px 6% 80px}.hello{display:flex;align-items:center;justify-content:space-between;margin:0 0 28px}.greeting{color:#899aad!important;font-size:11px!important;font-weight:700;margin-bottom:9px!important}.greeting span{color:#e5b85c;margin-left:5px}.hello h1,.page-heading h1{font-size:29px;letter-spacing:-1.1px;line-height:1.2;color:var(--heading);margin:0 0 9px}.hello p,.page-heading p{font-size:13px;color:#94a2af;margin:0;line-height:1.6}.hello-sparkle{font-size:24px;color:#f4c779;transform:rotate(-12deg);margin-right:7px}
.hero{min-height:278px;position:relative;overflow:hidden;background:#e5eefc;border-radius:18px;display:flex;align-items:center;justify-content:space-between;padding:38px 49px}.hero-copy{position:relative;z-index:1;max-width:510px}.hero-label{display:inline-flex;align-items:center;gap:6px;border-radius:6px;background:#fff8;color:#7188ca;padding:6px 9px;font-size:9px;font-weight:800;letter-spacing:.075em}.hero-label span{color:#e7b25c}.hero h2{font-size:30px;letter-spacing:-1.1px;line-height:1.26;color:#203958;margin:17px 0 11px}.hero p{max-width:360px;line-height:1.75;font-size:12px;color:#7990a5;margin:0 0 20px}.button{border:0;border-radius:10px;display:inline-flex;gap:22px;align-items:center;justify-content:center;min-height:44px;padding:0 19px;font-size:12px;font-weight:750;transition:transform .15s,background .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{background:#526dde;color:white;box-shadow:0 5px 12px #526dde1f}.button.primary:hover:not(:disabled){background:#405bd0}.button.secondary{border:1px solid #e3e9f1;background:#fff;color:#52677c}.button svg{width:18px;height:18px}.button.full{width:100%}.hero-art{width:330px;height:230px;align-self:stretch;position:relative;flex:none;margin-top:-5px}.orbit{position:absolute;border:1px solid #fff9;border-radius:50%}.orbit-one{width:245px;height:245px;left:39px;top:-1px}.orbit-two{width:185px;height:185px;left:69px;top:29px}.art-sparkle{position:absolute;color:#f6bd66;z-index:2}.sparkle-one{font-size:29px;top:16px;right:19px}.sparkle-two{font-size:21px;bottom:24px;left:14px}.paper-friend{width:133px;height:155px;position:absolute;left:105px;top:58px;background:#ffd77b;border-radius:58px 58px 27px 27px;box-shadow:inset -10px -6px 0 #f6c96b,0 12px 25px #7193c321}.paper-friend:before,.paper-friend:after{content:"";position:absolute;width:17px;height:28px;background:#f8cd73;border-radius:12px;bottom:-5px}.paper-friend:before{left:22px;transform:rotate(19deg)}.paper-friend:after{right:22px;transform:rotate(-19deg)}.friend-eye{position:absolute;top:53px;width:7px;height:9px;background:#37485b;border-radius:50%}.friend-eye.one{left:39px}.friend-eye.two{right:39px}.friend-cheek{position:absolute;top:68px;width:13px;height:7px;border-radius:50%;background:#efa89d}.friend-cheek.left{left:23px}.friend-cheek.right{right:23px}.friend-mouth{position:absolute;top:64px;left:60px;width:14px;height:9px;border-bottom:2px solid #3e5364;border-radius:0 0 10px 10px}.friend-book{position:absolute;bottom:22px;left:38px;width:59px;height:40px;background:#fffdf4;border-radius:5px;display:grid;place-items:center;color:#7189d5;font-size:20px;transform:rotate(-5deg);box-shadow:0 3px 0 #e9e6df}.floating-word{position:absolute;z-index:2;left:8px;top:20px;background:#fff;border-radius:11px;padding:11px 15px;box-shadow:0 8px 20px #647da31a;transform:rotate(-6deg);display:flex;flex-direction:column;align-items:center}.floating-word strong{font-size:20px;color:#405a8e}.floating-word span{font-size:9px;color:#98a6b5;margin-top:2px}.floating-audio{position:absolute;z-index:2;right:0;bottom:30px;background:#fff;border-radius:10px;padding:11px 14px;color:#7589da;font-size:14px;box-shadow:0 8px 20px #647da31a;transform:rotate(5deg)}.floating-audio span{font-size:10px;color:#8d9aaa;font-weight:700;margin-left:5px}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0 47px}.metric{background:#fff;border:1px solid #edf1f5;border-radius:14px;display:flex;align-items:center;gap:14px;padding:18px 20px;min-height:82px}.metric-icon,.round-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none;font-size:20px}.metric-icon.blue,.round-icon{background:#edf1ff;color:#6e83e4}.metric-icon.peach,.round-icon.peach{background:#fff0e3;color:#eeb477}.metric-icon.lilac{background:#f2efff;color:#a18ce1}.metric-icon.mint{background:#eaf8f0;color:#5aa97c}.metric strong{display:block;color:#283e56;font-size:20px;line-height:1}.metric small{display:block;font-size:11px;color:#9aa8b5;margin-top:7px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:17px}.section-heading h2{font-size:18px;letter-spacing:-.4px;color:#273a4e;margin:7px 0 0}.text-link,.plain-link{color:#687fd7;font-size:11px;font-weight:700}.text-link span{margin-left:4px}.plain-link{border:0;background:none;padding:0}.plain-link:hover,.text-link:hover{color:#334fbf}.dashboard-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:17px}.daily-card,.next-card,.panel{background:#fff;border:1px solid #ebf0f4;border-radius:15px}.daily-card,.next-card{padding:22px}.daily-top{display:flex;justify-content:space-between;gap:14px}.daily-card h3,.next-card h3{font-size:14px;color:#2e4258;margin:12px 0 6px}.daily-card p{font-size:11px;color:#9aa7b4;line-height:1.7;max-width:180px;margin:0}.goal-ring{width:88px;height:88px;border-radius:50%;flex:none;background:conic-gradient(#7186e4 var(--progress),#eef2fb 0);padding:7px;display:grid;place-items:center}.goal-ring>div{width:100%;height:100%;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.goal-ring strong{font-size:16px}.goal-ring small{font-size:9px;color:#a8b3be;margin-top:2px}.progress-row,.new-progress{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:25px 0 9px}.progress-row strong{color:#63758b}.progress-row strong span{font-weight:400;color:#b1bdc8}.progress-track{height:6px;background:#eff2f8;border-radius:9px;overflow:hidden;flex:1}.progress-track>span{display:block;height:100%;border-radius:9px;background:#8094eb;transition:width .25s}.next-heading{display:flex;justify-content:space-between;align-items:start;gap:8px}.next-card h3{margin-top:7px}.next-count{font-size:10px;color:#8497a7;background:#f5f8fb;padding:7px 9px;border-radius:7px;white-space:nowrap}.mini-words{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:17px 0}.mini-word{text-align:center;background:#f8fafd;border:1px solid #f1f4f8;border-radius:10px;padding:12px 4px;transition:border-color .15s,background .15s,transform .15s}.mini-word:hover:not(:disabled){border-color:#9eaeed;background:#f6f8ff;transform:translateY(-1px)}.mini-word.voice-loading::after{left:calc(100% - 14px);top:14px;width:12px;height:12px}.mini-word strong,.mini-word span,.mini-word small{display:block}.mini-word strong{font-family:"Noto Sans CJK SC",sans-serif;color:#3f5d9c;font-size:21px}.mini-word span{font-size:9px;color:#7b91b2;margin-top:4px}.mini-word small{font-size:9px;color:#adb8c3;margin-top:3px}
.page-heading{margin-bottom:29px}.page-heading .section-kicker{display:block;margin-bottom:10px}.panel{padding:27px}.panel h2{font-size:18px;color:#2d4055;letter-spacing:-.35px;margin:0 0 7px}.panel p{font-size:12px;color:#97a5b3;line-height:1.7;margin:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.word-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.9fr);gap:20px;align-items:start}.word-list{margin-top:20px}.word-row{display:flex;gap:16px;align-items:center;padding:14px 2px;border-top:1px solid #f0f3f7}.word-hanzi{min-width:55px;font-family:"Noto Sans CJK SC",sans-serif;font-size:27px;color:#3e5a9d;text-align:center}.word-details{flex:1;min-width:0}.word-details strong,.word-details span{display:block}.word-details strong{font-size:12px;color:#43586a}.word-details span{font-size:11px;color:#9aa8b5;margin-top:4px}.word-status,.count-badge{font-size:10px;font-weight:700;color:#98a8b7;background:#f5f7fa;border-radius:8px;padding:7px 10px}.word-status.mastered{background:#ecf8f1;color:#69ad86}.word-status.refresh{background:#fff4e8;color:#c97b36}.lesson-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}.srs-pill{font-size:10px;font-weight:700;color:#6b80a6;background:#f4f7fc;padding:6px 10px;border-radius:7px}.lesson-subhint{font-size:12px;color:#8a9cb0;display:flex;align-items:center;gap:8px;margin:2px 0 0}.choice-hanzi{font-family:"Noto Sans CJK SC",sans-serif;font-size:20px;font-weight:700;color:#34548e}.recall-input-wrap{width:100%;max-width:380px;margin:22px 0 18px}.recall-answer-box{width:100%;background:#f8faff;border:1px solid #e7edf8;border-radius:14px;padding:22px 16px;margin-top:20px;display:flex;flex-direction:column;align-items:center}.recall-hanzi{font-size:56px;margin:0 0 6px}.recall-translation{margin-top:14px;font-size:19px}.recall-guess-note{margin:12px 0 0;font-size:11px;color:#7f90a3}.recall-guess-note.match{color:#469468;font-weight:700}.recall-rate-label{margin:20px 0 10px;font-size:12px;font-weight:700;color:#5c7086}.recall-ratings{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.rate-btn{position:relative;border:1px solid #e7edf5;border-radius:11px;background:#fff;padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:3px;transition:transform .12s,border-color .12s,background .12s}.rate-btn:hover{transform:translateY(-1px)}.rate-key{font-size:9px;font-weight:800;color:#99a8b8}.rate-btn strong{font-size:12px}.rate-btn small{font-size:10px;color:#7e90a3}.rate-again{border-color:#f3d2b3;background:#fffaf4}.rate-again strong{color:#c06f2b}.rate-hard{border-color:#e9e3f7;background:#fbfaff}.rate-hard strong{color:#7865b8}.rate-good{border-color:#d4e2fc;background:#f7faff}.rate-good strong{color:#4462c9}.rate-easy{border-color:#cdebd9;background:#f5fcf8}.rate-easy strong{color:#3c8f61}@media(max-width:560px){.recall-ratings{grid-template-columns:repeat(2,1fr)}}.audio-button{border:0;border-radius:50%;width:35px;height:35px;display:inline-grid;place-items:center;background:#edf1ff;color:#6b80dc;vertical-align:middle}.audio-button:hover{background:#e0e7ff}.audio-button svg{width:17px;height:17px}.new-words .round-icon,.sentence-panel .round-icon,.tone-practice .round-icon{margin-bottom:17px}.new-words>p{margin-bottom:20px}.new-progress{color:#a0aeb9}.new-progress strong{color:#6d80a5}.new-words form{display:grid;gap:9px;margin-top:24px}label{font-size:11px;font-weight:700;color:#718293}input,textarea,.new-words select{width:100%;border:1px solid #e9edf3;border-radius:9px;background:#fbfcfe;color:#3c5065;padding:11px 12px;font-size:12px;outline:0}input::placeholder,textarea::placeholder{color:#bdc6cf}.new-words form label:not(:first-child){margin-top:8px}.count-row{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.count-row strong{font-size:12px;color:#526dde}.new-words input[type="range"]{padding:0;border:0;background:transparent;accent-color:#526dde;cursor:pointer;height:22px}.range-scale{display:flex;justify-content:space-between;font-size:10px;color:#a0aeb9;margin-top:-4px}.new-words .button{margin-top:12px}.form-note{font-size:10px!important;color:#b0bbc5!important;margin-top:13px!important}
.lesson-wrap{max-width:600px;margin:0 auto}.lesson-progress{display:flex;align-items:center;gap:14px;margin-bottom:16px;color:#9aa8b5;font-size:10px}.lesson-progress strong{color:#697ea1;font-size:10px}.lesson-card{background:#fff;border:1px solid #edf1f5;border-radius:20px;min-height:470px;text-align:center;padding:36px 50px;display:flex;flex-direction:column;align-items:center}.lesson-tag{font-size:9px;font-weight:800;letter-spacing:.12em;color:#8798d6;background:#f0f3ff;padding:7px 10px;border-radius:7px}.lesson-prompt{font-size:13px;color:#8698a8;margin:26px 0 6px}.lesson-hanzi,.quiz-hanzi{font-family:"Noto Sans CJK SC",sans-serif;font-size:78px;color:#34548e;line-height:1.3;font-weight:700;margin:10px 0}.pronunciation,.quiz-pinyin{font-size:17px;color:#748ac4;display:flex;align-items:center;gap:10px}.lesson-translation{font-size:21px;font-weight:750;color:#354a61;margin-top:25px}.lesson-hint{font-size:11px;color:#a6b2bd;line-height:1.6;margin:20px 0}.lesson-button{margin-top:auto;min-width:200px}.under-card{text-align:center;font-size:10px;color:#b0bdc8}.quiz-german{font-size:28px;font-weight:750;color:#3a5169;margin:30px 0}.quiz-hanzi{font-size:54px;margin:5px 0}.quiz-pinyin{font-size:13px}.answers{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:25px 0 0}.answer{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #e9eef4;border-radius:10px;background:#fff;color:#50667b;min-height:52px;padding:9px 11px;font-size:12px;font-weight:700}.answer:hover{border-color:#9eaeed;background:#f7f8ff}.answer small{font-size:10px;font-weight:400;color:#a0aebe}.answer-key{background:#f4f6fa;border-radius:6px;width:25px;height:25px;display:grid;place-items:center;color:#a8b3bd;font-size:10px;flex:none}.listen-prompt{display:flex;align-items:center;flex-direction:column;gap:9px;margin:20px 0 0;font-size:10px;color:#a1afbd}.audio-large{width:65px;height:65px}.audio-large svg{width:28px;height:28px}.feedback-icon{margin-top:36px;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;font-size:32px}.feedback-icon.correct{background:#eaf8f0;color:#72ba91}.feedback-icon.incorrect{background:#fff4e8;color:#e2a86c}.feedback-title{font-size:22px;margin:24px 0 7px;color:#354a60}.feedback-copy{color:#8292a2;font-size:13px}.feedback-copy strong{color:#42609a;font-size:22px}.empty-state{text-align:center;padding:65px 20px;background:white;border:1px solid #eaf0f5;border-radius:18px}.empty-state h2{color:#30455d;font-size:21px}.empty-state p{color:#98a7b3;font-size:12px;margin-bottom:22px}.empty-face{font-size:50px;color:#6c83db;position:relative}.empty-face span{font-size:18px;color:#f2bb68}
.sentence-layout,.tone-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}.sentence-panel>p{margin-bottom:22px}.sentence-panel form{display:grid;gap:9px}.sentence-panel textarea{min-height:145px;resize:vertical}.word-chips{display:flex;flex-wrap:wrap;gap:6px}.word-chip{border:1px solid #e7edf8;border-radius:8px;background:#f8faff;color:#526db2;padding:7px 9px;font-size:12px}.word-chip small{color:#a0add0;margin-left:3px}.word-chip:hover{border-color:#a7b5ed}.sentence-actions{display:flex;gap:10px;margin-top:11px;flex-wrap:wrap}.sentence-result{min-height:340px}.sentence-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:260px;text-align:center}.sentence-placeholder>span{font-size:58px;color:#c1cdf2}.sentence-placeholder h3{font-size:14px;color:#7890a5;margin-bottom:4px}.result-hanzi{font-size:34px;color:#345692;font-weight:700;margin:29px 0 10px}.result-pinyin{color:#7c91bf;font-size:15px}.result-german{color:#50677a!important;font-size:15px!important;margin:15px 0 23px!important}.explanation{background:#f5f8ff;border-radius:11px;padding:16px}.explanation strong{font-size:11px;color:#748bd1}.explanation p{margin-top:5px;font-size:11px}
.tone-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.tone-card{background:#fff;border:1px solid #eaf0f4;border-radius:14px;padding:17px}.tone-card.selected{border-color:#9baceb;background:#fbfcff}.tone-card-top{display:flex;justify-content:space-between;align-items:center;color:#a2afbc;font-size:9px;font-weight:800;letter-spacing:.08em}.tone-card strong{display:block;font-size:30px;color:#405f9c;margin-top:10px}.tone-shape{display:block;font-size:10px;color:#9aa8b5;margin:5px 0 20px;min-height:16px}.tone-practice h2{margin-top:0}.tone-practice>p{margin-bottom:17px}.tone-quiz-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.tone-quiz-head .round-icon{margin-bottom:0}.tone-quiz-head .count-badge{margin-left:auto}.tone-stop{min-height:34px;padding:0 12px;font-size:11px;gap:6px}.tone-listen-box{background:#f7f9ff;border:1px solid #e7edf8;border-radius:14px;min-height:112px;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.tone-listen-box span{font-size:11px;color:#8798ad}.tone-summary{color:#526db2!important;font-weight:700}.tone-reveal-hanzi{font-family:"Noto Sans CJK SC",sans-serif;font-size:36px;line-height:1.2;color:#34548e}.tone-reveal-meta{font-size:12px!important;color:#687d99!important}.tone-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:17px 0 9px}.tone-option{border:1px solid #e7edf5;background:white;color:#6d80a0;border-radius:9px;padding:10px 4px;font-size:11px;font-weight:700}.tone-option:hover:not(:disabled){border-color:#9bacf0;background:#f6f8ff}.tone-option.correct{background:#eaf8f0;border-color:#9dd6b6;color:#3d875f;opacity:1}.tone-option.incorrect{background:#fff4e8;border-color:#efc294;color:#b97434;opacity:1}.tone-result-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:36px}.tone-result{min-height:20px;color:#6c83ce!important;margin:0}.tone-next{min-height:36px;padding:0 14px;font-size:11px;gap:8px}.tone-speak-section{border-top:1px solid #edf2f7;margin-top:18px;padding-top:20px}.tone-speak-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}.tone-speak-head .round-icon{margin-bottom:0;flex:none}.tone-speak-head h2{margin:0 0 4px}.tone-speak-head p{margin:0}.tone-speak-head strong{color:#34548e;font-size:15px}.tone-history{margin-top:20px}.tone-history-list{display:grid;gap:10px}.tone-history-row{display:flex;align-items:center;gap:12px;border:1px solid #edf2f7;border-radius:12px;padding:12px 14px;background:#fff}.tone-history-mark{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}.tone-history-mark.correct{background:#eaf8f0;color:#479369}.tone-history-mark.incorrect{background:#fff4e8;color:#c97b36}.tone-history-text{min-width:0;flex:1}.tone-history-text strong{display:block;font-size:18px;color:#34548e;line-height:1.2}.tone-history-text span{display:block;font-size:11px;color:#8293a6;margin-top:3px}.tone-history-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.tone-add-word{min-height:34px;padding:0 12px;font-size:11px}.tone-added-badge{font-size:11px;font-weight:700;color:#5b78b8;background:#eff3ff;border-radius:8px;padding:7px 10px;white-space:nowrap}.record-actions{display:flex;align-items:center;gap:11px}.voice-feedback{font-size:11px;line-height:1.6;color:#7d90a2;background:#f7f9fc;border-radius:9px;margin-top:18px;padding:14px}.voice-feedback-text{margin:10px 0 0;color:#556b82;font-weight:600}.pitch-chart-wrap{background:#fff;border:1px solid #e7edf5;border-radius:10px;padding:10px 10px 8px}.pitch-chart{display:block;width:100%;height:auto}.pitch-legend{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:6px;font-size:10px;color:#7f91a5}.pitch-legend span{display:inline-flex;align-items:center;gap:6px}.legend-line{width:14px;height:3px;border-radius:2px;display:inline-block}.legend-dash{width:14px;height:0;border-top:2px dashed #9fb0ea;display:inline-block}.voice-feedback audio{display:block;width:100%;height:35px;margin-top:9px}.stat-metrics{margin:0 0 20px}.chart-panel{max-width:850px}.overview-chart{max-width:none;margin-top:17px}.chart{display:flex;align-items:flex-end;justify-content:space-around;height:200px;padding:20px 10px 0}.chart-column{height:100%;width:12%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}.chart-bar{width:34px;max-width:100%;background:#91a5ed;border-radius:7px 7px 2px 2px;min-height:5px}.chart-number,.chart-column small{font-size:10px;color:#a2afbc}.toast{position:fixed;bottom:92px;right:24px;padding:13px 17px;border-radius:11px;background:#344b65;color:white;font-size:12px;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .18s,transform .18s;z-index:6;max-width:min(380px,90vw)}.toast.visible{opacity:1;transform:translateY(0)}.chat-widget{position:fixed;right:24px;bottom:24px;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:12px}.chat-fab{--fab-bg:#526dde;width:54px;height:54px;border:0;border-radius:18px;background:var(--fab-bg);color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px #3c54b438;transition:transform .16s,background .16s}.chat-fab:hover{--fab-bg:#405bd0;transform:translateY(-2px)}.chat-fab svg{width:26px;height:26px}.chat-icon-dot{fill:var(--fab-bg)}.chat-drawer{width:min(440px,calc(100vw - 32px));height:min(580px,calc(100vh - 116px));background:#fff;border:1px solid #e6ecf4;border-radius:18px;box-shadow:0 18px 42px #20344e24;display:flex;flex-direction:column;overflow:hidden}.chat-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #edf2f7;background:#fbfcff}.chat-drawer-title{display:flex;align-items:center;gap:10px}.chat-drawer-title .round-icon{width:34px;height:34px;border-radius:10px;font-size:16px}.chat-drawer-title strong,.chat-drawer-title small{display:block}.chat-drawer-title strong{font-size:13px;color:#273b52}.chat-drawer-title small{font-size:10px;color:#8e9eae;margin-top:2px}.chat-drawer-actions{display:flex;align-items:center;gap:6px}.chat-clear{min-height:30px;padding:0 10px;font-size:11px}.chat-close{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#8090a2;display:grid;place-items:center}.chat-close:hover{background:#eef2f8;color:#394e64}.chat-close svg{width:17px;height:17px}.studio-chat-log{flex:1;padding:14px;background:#f8fafd;display:flex;flex-direction:column;gap:10px;overflow-y:auto}.chat-empty{margin:auto 0;text-align:center;padding:16px 10px}.chat-empty p{color:#7d8fa1;font-size:12px;margin:0;line-height:1.6}.chat-empty-hint{margin-top:8px!important;font-size:11px!important;color:#99a7b6!important}.chat-bubble{max-width:90%;border-radius:13px;padding:10px 13px}.chat-bubble.user{align-self:flex-end;background:#eef2ff;color:#283d58}.chat-bubble.assistant{align-self:flex-start;background:#fff;border:1px solid #e7edf5;color:#2e4258}.chat-role{display:block;font-size:9px;font-weight:800;letter-spacing:.06em;color:#8796ab;margin-bottom:4px;text-transform:uppercase}.chat-bubble.user .chat-role{color:#5d74cc}.chat-text{margin:0;font-size:12px;color:inherit;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.chat-example{margin-top:9px;padding:9px 11px;border-radius:10px;background:#f5f8ff;border:1px solid #e4ecfb;display:grid;gap:2px}.chat-example-main{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-example-hanzi{font-family:"Noto Sans CJK SC",sans-serif;font-size:19px;color:#345692;line-height:1.3}.chat-example-pinyin{font-size:11px;color:#748ac4}.chat-example-german{font-size:11px;color:#51677c}.word-token{border-radius:.22em;padding:0 .08em;transition:background-color .12s,color .12s,border-color .12s;cursor:default}.word-token[data-speak]{cursor:pointer}.word-token.is-unknown{background:#fff3e4;color:#b8631f;border-bottom:1.5px dashed #e6a25c}.word-token.is-linked{background:#dbe6ff!important;color:#2c4b94!important;border-bottom-color:#526dde!important}.chat-example-legend{margin-top:6px;display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#9d6b38}.chat-unknown-dot{width:8px;height:8px;border-radius:2px;background:#fff3e4;border:1px solid #e6a25c;display:inline-block}.studio-chat-form{padding:12px;border-top:1px solid #edf2f7;background:#fff;display:flex;gap:8px;align-items:center}.studio-chat-form textarea{flex:1;height:44px;min-height:44px;max-height:110px;resize:none;padding:10px 12px;line-height:22px}.studio-chat-form .button{flex:none;height:44px;min-height:44px;padding:0 16px;gap:8px}
@media(max-width:1100px){.hero-art{width:260px;transform:scale(.9);transform-origin:center right}.dashboard-grid{grid-template-columns:1fr}.word-layout{grid-template-columns:1fr 280px}}
@media(max-width:760px){.sidebar{position:static;width:auto;padding:16px;display:block;border-right:0}.shell{display:block}.brand{margin:0 0 15px}.brand-mark{width:38px;height:38px;font-size:20px}.brand-copy strong{font-size:25px}.nav-caption,.sidebar-note,.sidebar-bottom{display:none}.nav{display:flex;overflow-x:auto;gap:4px;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;cursor:grab;user-select:none}.nav.dragging{cursor:grabbing}.nav::-webkit-scrollbar{display:none}.nav a{white-space:nowrap;height:38px;font-size:11px;padding:0 9px;gap:6px;-webkit-user-drag:none}.nav-icon{font-size:17px;width:19px}.main{margin:0;width:100%}.topbar{height:55px;padding:0 5%}.today-date{display:none}.view{padding:30px 5% 88px}.hello h1,.page-heading h1{font-size:25px}.hero{padding:28px;min-height:240px}.hero h2{font-size:25px}.hero-art{display:none}.metrics{grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:35px}.metric{padding:13px 9px;gap:8px;min-height:68px}.metric-icon{width:32px;height:32px;font-size:16px}.metric strong{font-size:16px}.metric small{font-size:9px}.word-layout,.sentence-layout,.tone-layout{grid-template-columns:1fr}.tone-cards{grid-template-columns:repeat(2,1fr)}.lesson-card{padding:30px 20px}.section-heading{gap:10px}.section-heading .text-link{white-space:nowrap}.chart{height:180px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.topbar select#voice{max-width:170px}.voice-preview{width:29px;height:29px;border:0;border-radius:9px;background:#edf1ff;color:#6b80dc;font-size:16px}.voice-preview:hover{background:#e0e7ff}
@media(max-width:760px){.topbar-right{gap:6px}.topbar select#voice{max-width:120px}.topbar select#provider{max-width:105px}}
@media(max-width:420px){.topbar-title{display:none}.topbar{justify-content:flex-end}}
.word-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:22px}.word-tools label{display:grid;gap:7px}.word-search{flex:1 1 200px;min-width:0}.word-filter{width:155px;flex:none}.word-filter select{width:100%;border:1px solid #e9edf3;border-radius:9px;background:#fbfcfe;color:#52677c;padding:11px 10px;font-size:12px}.word-empty,.word-total{font-size:11px!important;color:#a1afbd!important;margin:20px 0 0!important}.word-empty{padding:18px 0}.word-pagination{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;color:#9aa8b5;font-size:10px}.page-controls{display:flex;align-items:center;gap:5px}.page-controls label,.page-controls span{font-size:10px;color:#9aa8b5}.page-controls input{width:48px;padding:6px 4px;text-align:center;font-size:11px}.page-button{border:1px solid #e8edf4;border-radius:8px;background:white;color:#687fd7;padding:8px 9px;font-size:10px;font-weight:700;white-space:nowrap}.page-button:hover:not(:disabled){background:#f5f7ff}
@media(max-width:480px){.word-tools{flex-direction:column;align-items:stretch}.word-filter{width:100%}.word-pagination{flex-wrap:wrap}.chat-widget{right:14px;bottom:14px}.chat-drawer{width:calc(100vw - 28px);height:min(72vh,520px)}.toast{right:14px;bottom:82px}}
.word-repeat{margin-top:20px}.empty-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.voice-loading{position:relative}.voice-loading:disabled{cursor:wait;opacity:1}.voice-loading svg{visibility:hidden}.voice-preview.voice-loading{font-size:0}.voice-loading::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:voice-spin .8s linear infinite}.audio-large.voice-loading::after{width:26px;height:26px}.button.voice-loading::after{left:28px}@keyframes voice-spin{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}
.collection-row{display:flex;align-items:center;gap:18px;padding:17px 2px;border-top:1px solid #f0f3f7}.collection-text{flex:1;min-width:0}.collection-text strong{display:block;font-family:"Noto Sans CJK SC",sans-serif;font-size:22px;line-height:1.45;color:#3e5a9d;overflow-wrap:anywhere}.collection-text span{display:block;margin-top:5px;color:#8698bd;font-size:11px;overflow-wrap:anywhere}.collection-text p{margin-top:5px;color:#53687c;font-size:12px}.collection-row .audio-button{flex:none}
@media(min-width:761px){.sidebar{overflow-y:auto}}
button.sidebar-bottom{background:transparent;border:1px solid transparent;border-radius:12px;padding:8px 10px;margin:18px 0 0;text-align:left;cursor:pointer;width:100%;transition:background .16s,border-color .16s}
button.sidebar-bottom:hover{background:#f5f7fe;border-color:#e6ecfb}
.sidebar-user-meta{min-width:0}
.sidebar-user-meta strong,.sidebar-user-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.openai-wrap{position:relative}
.openai-key-btn,.user-chip{border:1px solid #e9eef5;border-radius:9px;padding:7px 10px;background:#fff;color:#687b90;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.openai-key-btn:hover,.user-chip:hover{background:#f5f7fe;color:#526cdb;border-color:#d8e1fa}
.openai-key-btn.configured{background:#eef8f2;border-color:#cbe9d7;color:#2f7d52}
.openai-popover{position:absolute;right:0;top:calc(100% + 8px);width:290px;background:#fff;border:1px solid #e7edf5;border-radius:14px;box-shadow:0 18px 40px rgba(32,51,75,.14);padding:14px;z-index:40}
.openai-popover-form{display:grid;gap:9px}
.openai-popover-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#20334b}
.openai-popover-note{font-size:10px;line-height:1.5;color:#8291a0;margin:0}
.openai-popover-form input,.openai-popover-form select,.profile-form input,.profile-form select,.auth-form input{width:100%;border:1px solid #e6ecf3;border-radius:9px;background:#fbfcfe;color:#354a60;padding:9px 10px;font-size:12px;box-sizing:border-box}
.openai-model-label,.profile-form label,.auth-form label{font-size:11px;font-weight:700;color:#647387}
.openai-popover-actions{display:flex;gap:8px;margin-top:4px}
.primary-button.compact,.ghost-button.compact{border-radius:9px;padding:7px 12px;font-size:11px;font-weight:700;cursor:pointer;border:1px solid transparent}
.primary-button.compact{background:#536fe1;color:#fff}
.ghost-button.compact{background:#f5f7fb;color:#647387;border-color:#e4e9f2}
.openai-badge{font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;background:#f3f5f9;color:#7d8c9d}
.openai-badge.active{background:#e7f7ed;color:#2b7a4f}
body.logged-out .sidebar,body.logged-out .topbar-right,body.logged-out #chat-root{display:none!important}
body.logged-out .main{margin-left:0;width:100%}
.auth-shell{min-height:calc(100vh - 180px);display:grid;place-items:center;padding:12px 0}
.auth-card{width:100%;max-width:410px;background:#fff;border:1px solid #edf1f6;border-radius:20px;padding:30px 28px;box-shadow:0 14px 36px rgba(32,51,75,.07)}
.auth-brand{display:flex;align-items:center;gap:11px;margin-bottom:20px}
.auth-brand strong{display:block;font-size:22px;color:#20334b;line-height:1}
.auth-brand span:last-child{font-size:11px;color:#95a3b3}
.auth-card h1{font-size:24px;color:#20334b;margin:0 0 6px}
.auth-subtitle{font-size:12px;color:#8392a2;margin:0 0 18px;line-height:1.5}
.auth-tabs,.new-words-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f4f7fc;padding:4px;border-radius:11px;margin-bottom:18px}
.auth-tab,.new-words-tab{border:0;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:700;background:transparent;color:#78889b;cursor:pointer}
.auth-tab.active,.new-words-tab.active{background:#fff;color:#4a63cc;box-shadow:0 2px 8px rgba(32,51,75,.06)}
.new-words-tabs{margin-top:16px;margin-bottom:0}
.pool-availability{font-size:11px;color:#62768c;background:#f7f9fd;border:1px solid #e9eef7;border-radius:9px;padding:9px 11px;margin-top:2px}
.pool-availability strong{color:#4a63cc}
.auth-form,.profile-form{display:grid;gap:10px}
.auth-submit{margin-top:6px;width:100%;justify-content:center}
.auth-security-note{margin:16px 0 0;font-size:10px;color:#93a1b0;line-height:1.5;text-align:center}
.auth-notice{background:#eef5ff;border:1px solid #d2e3ff;color:#2f55b8;border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.5;margin-bottom:14px}
.members-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.member-list{display:grid;gap:10px}
.member-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;border:1px solid #edf1f8;background:#fbfcfe;border-radius:12px;padding:12px 14px}
.member-row.pending{border-color:#f3d2b3;background:#fffaf4}
.member-info{display:grid;gap:4px;min-width:0}
.member-info span{font-size:11px;color:#7e90a3}
.member-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.member-title strong{font-size:13px;color:#2c4057}
.member-badge{font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px}
.member-badge.admin{background:#eef3ff;color:#4a63cc}
.member-badge.active{background:#ecf8f1;color:#2f7d52}
.member-badge.pending{background:#fff1df;color:#b8651b}
.member-badge.invited{background:#f3efff;color:#6f57b8}
.member-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-button.danger{color:#c04d3d;border-color:#f4d8d4}
.page-button.danger:hover:not(:disabled){background:#fff5f4}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.profile-card{display:flex;flex-direction:column;gap:14px}
.profile-card-wide{grid-column:1/-1}
.profile-meta,.usage-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f8fafe;border:1px solid #edf1f8;border-radius:12px;padding:12px 14px}
.usage-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-meta span,.usage-summary span{display:block;font-size:10px;color:#8c9aaa;margin-bottom:4px}
.profile-meta strong,.usage-summary strong{font-size:13px;color:#2c4057}
.token-usage-list{display:grid;gap:8px}
.token-usage-row{border:1px solid #edf1f8;background:#fbfcfe;border-radius:11px;padding:10px 12px;display:grid;gap:4px}
.token-usage-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.token-usage-id{display:flex;align-items:center;gap:8px;min-width:0}
.token-usage-id code{font-size:12px;font-weight:700;color:#2c4057;background:#eef3fb;padding:2px 7px;border-radius:6px}
.token-usage-head strong{font-size:12px;color:#4a63cc}
.token-usage-meta{font-size:11px;color:#7e90a3}
.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.quota-rows{display:grid;gap:12px}
.quota-item{display:grid;gap:6px}
.quota-label{display:flex;justify-content:space-between;font-size:12px;color:#5d6f83}
@media(max-width:760px){.profile-grid,.members-grid{grid-template-columns:1fr}.profile-meta,.usage-summary{grid-template-columns:1fr}.openai-popover{right:-36px;width:min(88vw,290px)}}
.recall-submit-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.recall-auto-badge{font-size:11px;font-weight:700;padding:5px 11px;border-radius:999px;margin-bottom:12px;border:1px solid transparent}
.recall-auto-badge.rate-1{background:#fff5eb;border-color:#f3d2b3;color:#c06f2b}
.recall-auto-badge.rate-2{background:#f7f4ff;border-color:#e2daf7;color:#7865b8}
.recall-auto-badge.rate-3{background:#eef3ff;border-color:#d4e2fc;color:#4462c9}
.recall-auto-badge.rate-4{background:#ecf9f1;border-color:#c6ebd4;color:#2f7d52}
.recall-guess-note.miss{color:#c06f2b;font-weight:600}
.learn-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f4f7fc;padding:4px;border-radius:11px;margin:0 auto 18px}
.learn-mode-tab{border:0;border-radius:8px;padding:9px 12px;font-size:12px;font-weight:700;background:transparent;color:#78889b;cursor:pointer}
.learn-mode-tab.active{background:#fff;color:#4a63cc;box-shadow:0 2px 8px rgba(32,51,75,.06)}
.cloze-card{min-height:430px}
.cloze-empty-face{margin:18px 0 6px}
.cloze-sentence{font-family:"Noto Sans CJK SC",sans-serif;font-size:30px;font-weight:700;line-height:1.65;color:#2f4c82;margin:16px 0 10px;word-break:break-word}
.cloze-blank{display:inline-flex;align-items:center;justify-content:center;min-width:68px;padding:0 12px;margin:0 4px;border-radius:10px;border:2px dashed #90a4e8;background:#f2f5ff;color:#5c74d6;font-size:20px;font-weight:800;letter-spacing:.08em;vertical-align:middle}
.cloze-filled{display:inline-block;padding:0 10px;margin:0 3px;border-radius:9px;font-weight:800}
.cloze-filled.is-correct{background:#eaf8f0;color:#2f7d52;border:1px solid #bfe6ce}
.cloze-filled.is-wrong{background:#fff4e8;color:#c06f2b;border:1px solid #f3d2b3}
.cloze-german{font-size:16px;font-weight:650;color:#42576e;background:#f8fafe;border:1px solid #edf1f8;border-radius:12px;padding:10px 16px;margin:6px 0 4px}
.cloze-pinyin-row{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;color:#748ac4;margin:4px 0 8px}
.cloze-word-note{font-size:12px;color:#748699;margin:12px 0 20px}
.cloze-word-note strong{color:#34548e}
.cloze-result{display:inline-flex;align-items:center;gap:8px;padding:6px 13px;border-radius:999px;font-size:12px;font-weight:700;margin:12px 0 2px}
.cloze-result.correct{background:#eaf8f0;color:#2f7d52}
.cloze-result.incorrect{background:#fff4e8;color:#c06f2b}
@media(max-width:760px){.cloze-sentence{font-size:24px}}
