@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600&display=swap');
@media(min-width:1450px){main{padding-top:50px}.exercise-body{padding-top:32px;padding-bottom:34px}.scene{width:330px}.sentence{margin-top:28px;margin-bottom:24px}.listen-row{margin-top:29px}}
@media(max-width:1100px){.sidebar{width:220px;padding:30px 16px}.app-shell{margin-left:220px}main{padding:30px}.topbar{padding:0 30px}.brand{font-size:19px}.lesson-heading h1{font-size:24px}.lesson-heading h1 span{font-size:18px}}
:root{--ink:#293e35;--muted:#879281;--green:#326750;--line:#e4e9df;--red:#bd5947}*{box-sizing:border-box}body{margin:0;background:#fbfcf9;color:var(--ink);font:14px 'DM Sans','Noto Sans SC',sans-serif;letter-spacing:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:9px}button:focus-visible,a:focus-visible{outline:3px solid #9ac8a8;outline-offset:3px}button:disabled{cursor:default;opacity:.45}svg{width:18px;height:18px;stroke-width:1.7;flex-shrink:0}a{color:inherit;text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:254px;background:white;border-right:1px solid var(--line);padding:35px 24px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:600}.brand-mark{width:42px;height:44px;background:var(--red);color:white;display:grid;place-items:center;border-radius:7px;font-size:28px;font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:1.7px;color:#8a9888;margin-top:5px}.course-label{font-size:9px;letter-spacing:1.5px;color:#929e8c;margin:45px 10px 13px;font-weight:600}.nav-item{width:100%;border:0;background:none;justify-content:flex-start;padding:13px 12px;border-radius:6px;font-size:12px;margin-bottom:5px;white-space:nowrap}.nav-item.active{background:#eef4e9;color:var(--green);font-weight:600}.nav-dot{width:6px;height:6px;border-radius:50%;background:var(--green);margin-left:auto}.badge{font-size:10px;margin-left:auto;background:#f0f3ed;padding:2px 6px;border-radius:4px}.unit-label{margin-top:33px;display:flex;justify-content:space-between}.unit-label span{letter-spacing:0;color:var(--green)}.unit-button{border:0;background:none;width:100%;justify-content:flex-start;text-align:left;padding:12px 10px;margin:2px 0;border-radius:6px;gap:11px}.unit-button.active{background:#f7f8f3}.unit-number{width:28px;height:28px;border:1px solid #e2e8dc;border-radius:50%;display:grid;place-items:center;font-size:10px;color:#8d9885;flex-shrink:0}.unit-button.active .unit-number{background:var(--green);color:white;border-color:var(--green)}.unit-text{font-size:12px}.unit-text small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.unit-button>svg{width:14px;margin-left:auto;color:var(--green)}.sidebar-bottom{margin-top:auto;padding:24px 8px 0}.daily-label{display:flex;justify-content:space-between;font-size:10px;gap:4px}.daily-label span{display:flex;align-items:center;gap:5px}.daily-label svg{width:15px;color:var(--green)}.daily-label b{font-weight:400;color:var(--muted)}.daily-track{height:4px;background:#e9eee3;border-radius:3px;margin:12px 0 7px}.daily-track span{display:block;background:#83a875;height:100%;border-radius:3px;transition:width .3s}.sidebar-bottom>small{font-size:9px;color:#97a08e}.settings{border:0;background:none;justify-content:flex-start;font-size:11px;color:#7f8a76;padding:25px 0 0}.settings svg{width:15px}.app-shell{margin-left:254px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 48px;background:white}.breadcrumb{display:flex;align-items:center;gap:13px;color:#8d9885;font-size:12px}.breadcrumb svg{width:12px}.breadcrumb span{color:#4d5c44}.top-actions{display:flex;align-items:center;gap:22px}.level-chip{font-size:9px;letter-spacing:1px;color:#819175}.avatar{width:30px;height:30px;border-radius:50%;background:#e9eee2;display:grid;place-items:center;color:#6b8060;font-size:11px}.icon-button{width:34px;height:34px;border:0;background:transparent;border-radius:5px;color:#7f8e75}.icon-button:hover{background:#eef3e7}main{width:100%;max-width:1170px;margin:0 auto;padding:38px 60px 28px;flex:1}.lesson-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#9a7765;font-weight:600}.lesson-heading h1{font-size:27px;font-weight:500;margin:10px 0 8px}.lesson-heading p{color:var(--muted);font-size:12px;margin:0}.lesson-heading h1 span{font-size:22px;color:#a0a995;margin-left:12px;font-weight:400}.lesson-indicator{display:flex;align-items:center;gap:8px;color:#849377;font-size:11px;padding-top:26px;white-space:nowrap}.lesson-indicator svg{width:15px}.progress-strip{display:flex;gap:6px;margin:25px 0 27px}.progress-segment{height:4px;flex:1;background:#e5ebdf;border-radius:2px}.progress-segment.done{background:#61916d}.progress-segment.current{background:#a5bc9b}.exercise{border:1px solid #dfe6d7;background:white;border-radius:8px;overflow:hidden}.exercise-toolbar{height:49px;border-bottom:1px solid #edf0e7;display:flex;align-items:center;justify-content:space-between;padding:0 23px}.exercise-tag{font-size:9px;letter-spacing:1.3px;display:flex;align-items:center;gap:8px;color:#728166;font-weight:600}.exercise-tag svg{width:14px}.mode-switch{display:flex;gap:3px;background:#f4f6ef;padding:3px;border-radius:5px}.mode-switch button{background:none;border:0;border-radius:3px;font-size:10px;padding:5px 9px;color:#879478}.mode-switch button.selected{background:white;color:#3c603d;box-shadow:0 1px 3px #263c3310}.mode-switch svg{width:12px;height:12px}.exercise-body{padding:24px 30px 28px;text-align:center}.scene{width:294px;aspect-ratio:1.5;margin:0 auto;background-image:url('assets/scenes.png');background-size:200% 200%;border-radius:6px;background-color:#f0f3e5}.scene.family{background-position:0 0}.scene.cafe{background-position:100% 0}.scene.school{background-position:0 100%}.scene.park{background-position:100% 100%}.scene-caption{font-size:8px;letter-spacing:1.3px;color:#a8afa0;margin:11px 0 18px}.prompt{font-size:20px;font-weight:500;margin:0 0 8px;line-height:1.5;color:#384635}.prompt-sub{font-size:11px;color:#929b88;margin:0 0 24px}.sentence{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:start;min-height:78px;margin-bottom:18px}.word{min-width:44px}.word .hanzi{height:43px;display:flex;align-items:center;justify-content:center;font-size:27px;padding:0 6px}.word .pinyin{font-size:11px;color:#98a18b;margin-top:8px;min-height:16px}.blank{border:0;border-bottom:2px solid #a8b69c;min-width:70px;background:#f4f7ed;color:var(--green);border-radius:4px 4px 0 0}.blank.active{border-bottom-color:var(--green);background:#eaf1e2}.blank.correct{color:var(--green);border-color:#6b9770}.blank.wrong{border-color:var(--red);background:#fcf0e9;color:var(--red)}.blank.empty:after{content:'?';font-size:17px;color:#afbaa1}.word-bank{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;min-height:43px}.tile{min-width:57px;height:41px;border:1px solid #dfe6d5;border-bottom-width:3px;border-radius:5px;background:white;font-size:18px;padding:0 14px}.tile:hover:not(:disabled){background:#f3f7eb;border-color:#adbc9f}.tile.used{visibility:hidden}.listen-row{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:23px}.listen-button{background:none;border:0;color:#748669;font-size:11px;padding:6px}.listen-button svg{width:15px}.hint-divider{height:12px;width:1px;background:#e1e7d7}.exercise-bottom{border-top:1px solid #e9eee1;background:#fafbf7;padding:15px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:75px}.feedback{display:flex;align-items:center;gap:9px;font-size:11px;color:#929c86;line-height:1.5;min-width:0}.feedback svg{width:16px}.feedback.success{color:#427046}.feedback.error{color:#b85643}.feedback strong{display:block;font-weight:600}.primary{border:1px solid var(--green);background:var(--green);color:white;padding:11px 20px;border-radius:5px;font-size:12px;min-width:142px;white-space:nowrap}.primary:hover{background:#264f3d}.primary svg{width:15px}.below-exercise{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin-top:26px}.section-label{font-size:9px;letter-spacing:1.3px;color:#939e86;font-weight:500;display:flex;align-items:center;gap:7px;margin-bottom:12px}.section-label svg{width:14px}.phrase-line{display:flex;gap:13px;align-items:center;font-size:12px}.phrase-line b{font-family:'Noto Sans SC',sans-serif;font-weight:500;font-size:16px;color:#5d704e}.phrase-line span{color:#939d86;font-size:11px}.tip{font-size:11px;color:#909b82;line-height:1.7;margin:0}.tip b{color:#73845f;font-weight:500}.page-footer{display:flex;justify-content:space-between;padding:15px 48px 22px;font-size:9px;color:#9fa88f}.page-footer>span:last-child{display:flex;align-items:center;gap:9px}.page-footer svg{width:12px;height:12px}.typing-input{width:min(100%,560px);border:0;border-bottom:2px solid #a4b797;background:#f7f9f0;padding:12px;font-size:25px;text-align:center;border-radius:4px 4px 0 0;color:var(--ink);outline:none;margin:3px 0 13px}.typing-input:focus{border-color:var(--green)}.typing-pinyin{font-size:12px;color:#95a281;margin-bottom:14px}.list-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:27px}.list-heading h1{font-size:27px;font-weight:500;margin:10px 0}.list-heading p{font-size:12px;color:var(--muted)}.vocab-search{padding:10px 12px;border:1px solid var(--line);border-radius:5px;width:230px;background:white;color:var(--ink)}.vocab-table{width:100%;border-collapse:collapse;text-align:left}.vocab-table th{font-size:9px;letter-spacing:1px;color:#909d83;font-weight:500;padding:14px;border-bottom:1px solid var(--line)}.vocab-table td{padding:15px 14px;border-bottom:1px solid var(--line);font-size:12px}.vocab-table td:first-child{font-size:19px}.vocab-table td:nth-child(2){color:#879875}.empty-state{text-align:center;padding:65px 20px}.empty-state>svg{width:36px;height:36px;color:#8bad80}.empty-state h2{font-size:22px;font-weight:500}.empty-state p{color:var(--muted);line-height:1.8}.empty-state button{margin-top:15px}.review-item{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:20px 0}.review-item p{font-size:16px;margin:0 0 8px}.review-item small{color:var(--muted)}.review-item button{border:1px solid #dfe7d5;background:white;border-radius:5px;padding:9px 14px;font-size:11px}.result-art{font-size:52px;color:var(--green);background:#ecf2e4;display:grid;place-items:center;width:100px;height:100px;border-radius:50%;margin:15px auto 25px}.result-stats{display:flex;justify-content:center;gap:50px;margin:30px 0}.result-stats b{display:block;font-size:27px;font-weight:500;color:var(--green)}.result-stats span{font-size:10px;color:var(--muted)}.result-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.secondary{background:white;border:1px solid #d2ddc7;border-radius:5px;padding:11px 18px;font-size:12px}.focus-mode .sidebar,.focus-mode .topbar,.focus-mode .page-footer{display:none}.focus-mode .app-shell{margin:0}.focus-mode main{max-width:980px}.focus-exit{position:fixed;top:15px;right:18px;background:white;border:1px solid var(--line);z-index:10}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);background:#334b36;color:white;padding:12px 20px;border-radius:6px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:30;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{width:460px;max-width:calc(100% - 32px);border:1px solid var(--line);border-radius:8px;padding:28px;color:var(--ink);box-shadow:0 15px 80px #20392f24}dialog::backdrop{background:#293c3255}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.dialog-head h2{font-size:21px;font-weight:500;margin:8px 0}.preference-row{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line);font-size:12px;align-items:center}.preference-row input{accent-color:var(--green);width:17px;height:17px}.preference-row select{padding:5px;border:1px solid var(--line);border-radius:4px;color:var(--ink);background:white}.dialog-note{font-size:11px;line-height:1.7;color:var(--muted);margin:22px 0}.dialog-save{width:100%}
