:root{color:#2b2d28;font-synthesis:none;--paper:#f8f7f3;--surface:#fffefa;--ink:#2b2d28;--muted:#85867b;--line:#e8e6de;--accent:#a63d32;--soft:#f1e9df;--green:#5b7764;--shadow:0 18px 70px #30291e13;background:#f8f7f3;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);min-height:44px;color:var(--ink);background:var(--surface);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:9px;padding:10px 17px;font-size:13px;font-weight:500;transition:background .16s,box-shadow .16s;display:inline-flex}button:hover{background:var(--soft)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent);text-decoration:none}input,select,textarea{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:7px;outline:none;min-width:0;min-height:44px;padding:12px}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #a63d3210}textarea{resize:vertical;width:100%;line-height:1.6}input[type=checkbox]{width:19px;height:19px;min-height:19px;accent-color:var(--accent)}h1,h2,h3,h4,p{margin-top:0}h1{letter-spacing:-1.6px;margin-bottom:16px;font-size:clamp(30px,3.5vw,45px);font-weight:550;line-height:1.15}h2{letter-spacing:-.45px;margin-bottom:18px;font-size:22px;font-weight:550}h3{font-size:17px;font-weight:550}p{line-height:1.65}small{font-size:11px;line-height:1.5}progress{accent-color:var(--accent)}.muted{color:var(--muted)}.error,.danger{color:#b44539}.error{line-height:1.6}.eyebrow{letter-spacing:1.65px;color:var(--muted);font-size:10px;font-weight:650}.red-dot{color:var(--accent)}.row{align-items:center;gap:12px;display:flex}.spread{justify-content:space-between}.grow{flex:1}.full{width:100%}.primary{background:var(--accent);border-color:var(--accent);color:#fff9ed}.primary:hover{background:#8f332b}.primary>span:last-child,.primary>svg:last-child{margin-left:14px}.text-button{background:0 0;border:0;min-height:44px;padding:6px 0}.icon-button{background:0 0;border:0;min-width:44px;padding:10px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:25px}.divider{border-top:1px solid var(--line);margin-top:15px;padding-top:15px}.hanzi{font-family:Kaiti SC,STKaiti,KaiTi,Noto Serif CJK SC,serif;font-weight:400}.pinyin{color:var(--accent);letter-spacing:.4px;font-size:14px}.tiny-tag{color:var(--green);white-space:nowrap;background:#e7eee5;border-radius:5px;padding:5px 9px;font-size:10px}.notice{background:var(--soft);border:1px solid var(--line);border-radius:8px;margin-bottom:20px;padding:14px 18px;font-size:13px;line-height:1.7}.app-shell{min-height:100vh;display:flex}.sidebar{border-right:1px solid var(--line);z-index:20;background:#f1f0e9;flex-direction:column;width:230px;padding:35px 21px 0;display:flex;position:fixed;top:0;bottom:0;left:0}.brand{color:var(--ink);align-items:center;gap:12px;margin-bottom:55px;padding-left:7px;display:flex}.brand-mark{border:1px solid var(--accent);width:42px;height:44px;color:var(--accent);border-radius:7px;flex-shrink:0;place-items:center;font-family:Kaiti SC,STKaiti,serif;font-size:32px;display:grid}.brand>span:last-child{font-family:Georgia,serif;font-size:29px;line-height:1}.brand-caption{letter-spacing:1.9px;color:var(--muted);margin-top:8px;font-family:-apple-system,sans-serif;font-size:7px;display:block}.sidebar-label{letter-spacing:1.7px;color:var(--muted);margin-bottom:13px;padding-left:16px;font-size:8px}.sidebar nav{gap:5px;display:grid}.sidebar nav button,.settings-link{color:#73766b;background:0 0;border:0;border-radius:7px;justify-content:flex-start;gap:14px;width:100%;min-height:47px;padding:13px 15px;font-size:13px}.sidebar nav .active,.settings-link.active{color:var(--accent);background:#e7e5dc}.nav-count{color:var(--accent);margin-left:auto;font-size:10px;font-weight:600}.sidebar-bottom{margin-top:auto}.sidebar-note{padding:30px 14px 35px}.sidebar-note p{color:#777b6d;margin:12px 0;font-family:Georgia,serif;font-size:19px;font-style:italic;line-height:1.6}.sidebar-note .eyebrow{font-size:8px}.ink-stroke{background:var(--accent);width:35px;height:1px;margin-top:16px;transform:rotate(-3deg)}.profile{border-top:1px solid var(--line);align-items:center;gap:9px;margin-top:17px;padding:22px 2px;display:flex}.avatar{color:#767766;background:#e4e2d7;border-radius:50%;place-items:center;width:32px;height:32px;font-size:12px;display:grid}.profile strong{font-size:11px;font-weight:500;display:block}.profile small{color:var(--muted);margin-top:5px;font-size:9px;display:block}.profile>svg{color:var(--green);margin-left:auto}.workspace{flex-direction:column;width:calc(100% - 230px);margin-left:230px;display:flex}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;min-height:73px;padding:0 45px;display:flex}.breadcrumb{color:var(--muted);align-items:center;gap:10px;font-size:11px;display:flex}.breadcrumb strong{color:var(--ink);font-weight:500}.sync-status{color:var(--green);background:0 0;border:0;min-height:36px;padding:4px 9px;font-size:10px}.sync-status.offline{color:var(--accent)}.date-top{color:var(--muted);border-left:1px solid var(--line);padding-left:20px;font-size:10px}.workspace main{flex:1;width:100%;max-width:1470px;margin:0 auto;padding:40px 45px 60px}.page-heading{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:31px;display:flex}.page-heading .eyebrow{margin-bottom:15px}.page-heading p{margin-bottom:0;font-size:12px}.page-heading>button,.page-heading>.row{flex-shrink:0;margin-bottom:4px}.today-grid{grid-template-columns:1fr 300px;gap:21px;display:grid}.hero-card{background:#eeede3;border:1px solid #e1dfd2;border-radius:12px;min-height:293px;padding:29px 32px;position:relative;overflow:hidden}.hero-card>.eyebrow{color:#81816f;font-size:9px}.hero-card h2{letter-spacing:-.8px;z-index:1;margin-top:19px;margin-bottom:13px;font-size:29px;line-height:1.23;position:relative}.hero-card>p{color:#81816f;z-index:1;max-width:255px;margin-bottom:21px;font-size:12px;position:relative}.hero-card>.primary{z-index:1;font-size:12px;position:relative}.hero-bottom{color:#8d8b7f;z-index:1;align-items:center;gap:7px;margin-top:25px;font-size:9px;display:flex;position:relative}.status-dot{background:#7e8c71;border-radius:50%;width:5px;height:5px;display:inline-block}.hero-seal{opacity:.72;background:#f7f5eb44;border:1px solid #c7c6b7;place-items:center;width:174px;height:188px;display:grid;position:absolute;top:39px;right:26px;transform:rotate(-7deg);box-shadow:7px 10px #dedccd44}.hero-seal>.hanzi{color:#777d65;font-size:139px;line-height:1;position:relative}.seal-grid{background:linear-gradient(90deg,#0000 calc(50% - .5px),#c2c0b244 50%,#0000 calc(50% + .5px)),linear-gradient(#0000 calc(50% - .5px),#c2c0b244 50%,#0000 calc(50% + .5px));position:absolute;inset:0}.daily-card{padding:24px 22px}.daily-card .eyebrow{font-size:9px}.daily-number{margin:22px 0;font-family:Georgia,serif;font-size:57px;line-height:1}.daily-number>span{color:var(--muted);margin-left:13px;font-family:-apple-system,sans-serif;font-size:11px}.daily-divider{background:var(--line);height:1px;margin:20px 0 12px}.daily-card>.row{padding:5px 0;font-size:11px}.daily-card b{font-size:12px;font-weight:500}.daily-days{justify-content:space-between;margin-top:22px;display:flex}.daily-days>div{color:var(--muted);flex-direction:column;align-items:center;gap:8px;display:flex}.daily-days>div>span{border:1px solid var(--line);border-radius:50%;justify-content:center;align-items:center;width:23px;height:23px;display:flex}.daily-days .current-day>span{border-color:var(--accent);color:var(--accent)}.day-dot{background:#cfcec2;border-radius:50%;width:4px;height:4px}.daily-days .day-done{color:var(--green);background:#e6ecdf;border-color:#e6ecdf}.daily-days small{font-size:9px}.overview-stats{border:1px solid var(--line);background:var(--surface);border-radius:10px;grid-template-columns:repeat(3,1fr);margin-top:24px;padding:24px 0;display:grid}.overview-stats>div{border-right:1px solid var(--line);justify-content:center;align-items:center;gap:18px;display:flex}.overview-stats>div:last-child{border:0}.overview-stats strong{letter-spacing:-.5px;font-size:25px;font-weight:500;line-height:1}.overview-stats p{color:var(--muted);margin:7px 0 0;font-size:10px}.stat-icon{color:#8b8c78;background:#f1f0e8;border-radius:10px;place-items:center;width:40px;height:40px;display:grid}.today-bottom{grid-template-columns:1.2fr 1fr;gap:27px;margin-top:34px;display:grid}.section-heading{justify-content:space-between;align-items:center;gap:10px;margin-top:30px;margin-bottom:16px;display:flex}.today-bottom .section-heading{margin-top:0}.section-heading h2{margin:0;font-size:18px}.section-heading .eyebrow{letter-spacing:1.1px;font-size:7px}.section-heading .text-button{min-height:20px;font-size:10px}.word-cards{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.word-card{background:var(--surface);text-align:left;border-radius:10px;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;min-width:0;min-height:155px;padding:22px 13px 13px;display:flex;position:relative}.word-card>svg{color:var(--muted);width:13px;position:absolute;top:12px;right:11px}.word-card>.hanzi{overflow-wrap:anywhere;margin-bottom:6px;font-size:35px;line-height:1.2}.word-card>.pinyin{font-size:10px}.word-card p{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:2px 0;font-size:10px;font-weight:400;line-height:1.5;display:-webkit-box;overflow:hidden}.lesson-summary{text-align:left;justify-content:flex-start;gap:14px;width:100%;padding:20px;display:flex}.lesson-summary .eyebrow{letter-spacing:1px;font-size:7px}.lesson-summary h3{margin:9px 0 5px;font-size:13px}.lesson-summary p{color:var(--muted);margin:0;font-size:9px;font-weight:400}.lesson-summary>svg{color:var(--muted);flex-shrink:0;margin-left:auto}.lesson-icon{color:#8b806a;background:#eeeae0;border-radius:5px;flex-shrink:0;place-items:center;width:43px;height:46px;display:grid}.import-link{color:#858576;text-align:left;background:0 0;border:1px dashed #d7d3c9;border-radius:10px;justify-content:flex-start;gap:14px;width:100%;margin-top:12px;padding:15px 19px;font-size:10px}.import-link small{color:var(--muted);margin-top:5px;font-size:9px;font-weight:400;display:block}.import-link>svg:last-child{margin-left:auto}.page-footer{border-top:1px solid var(--line);color:#aaa99d;justify-content:space-between;margin:0 45px;padding:20px 0;font-size:9px;display:flex}.knowledge-toolbar{gap:12px;margin-bottom:23px;display:flex}.search-box{background:var(--surface);border:1px solid var(--line);color:var(--muted);border-radius:8px;flex:1;align-items:center;padding-left:15px;display:flex}.search-box input{box-shadow:none;background:0 0;border:0;flex:1;width:100%;font-size:13px}.tabs{border-bottom:1px solid var(--line);gap:19px;margin-bottom:22px;display:flex;overflow-x:auto}.tabs button{white-space:nowrap;color:var(--muted);background:0 0;border:0;border-radius:0;gap:9px;padding:12px 0 17px;font-size:13px}.tabs button.active{border-bottom:2px solid var(--accent);color:var(--accent)}.tabs small{background:var(--soft);border-radius:4px;padding:3px 6px;font-size:9px}.record-list{border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden}.record-row{border:0;border-bottom:1px solid var(--line);text-align:left;border-radius:0;justify-content:flex-start;gap:24px;width:100%;min-height:88px;padding:18px 23px;display:flex}.record-row:last-child{border-bottom:0}.record-hanzi{overflow-wrap:anywhere;flex-shrink:0;width:110px;font-size:34px}.record-row .sentence{overflow-wrap:anywhere;width:240px;font-size:26px}.record-text{flex:1;min-width:0}.record-text p{color:var(--muted);margin:4px 0 0;font-size:12px;font-weight:400}.record-text h3{margin:0}.record-text .pinyin{font-size:12px}.record-lesson{color:var(--muted);max-width:120px;font-size:10px}.record-row>svg:last-child{color:var(--muted);flex-shrink:0}.radical-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:12px;display:grid}.radical-grid button{flex-direction:column;gap:8px;padding:16px 10px}.radical-grid .hanzi{font-size:38px}.radical-grid .used{background:#eef0e6;border-color:#c5cbbb}.radical-grid small{color:var(--muted)}.radical-grid .pinyin{font-size:11px}.lesson-grid{grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:25px;display:grid}.lesson-card{text-align:left;flex-direction:column;align-items:flex-start;gap:0;min-height:235px;padding:24px;display:flex}.lesson-card>.row{width:100%}.lesson-card .eyebrow{font-size:9px}.lesson-card h2{margin:25px 0 8px;font-size:23px}.lesson-card p{font-size:12px;font-weight:400}.lesson-card-bottom{border-top:1px solid var(--line);width:100%;color:var(--muted);align-items:center;gap:10px;margin-top:auto;padding-top:15px;font-size:11px;display:flex}.no-lesson{background:0 0;border-style:dashed}.lesson-words{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));margin-top:15px}.actions-wrap{flex-wrap:wrap;margin:20px 0}.sentence-item{text-align:left;width:100%;margin:10px 0;padding:17px;display:block}.sentence-item>.hanzi{font-size:26px}.sentence-item small{color:var(--muted);margin-top:8px;display:block}.sentence-item p{color:var(--muted);margin:9px 0 0;font-size:13px}.grammar-card{text-align:left;width:100%;margin:10px 0;font-weight:400;display:block}.grammar-card h3{margin:0 0 10px}.empty{text-align:center;max-width:600px;margin:auto;padding:70px 25px}.empty .primary{margin-top:15px}.empty p{color:var(--muted);font-size:14px}.empty-mark{color:#b2b0a0;margin-bottom:20px;font-family:Kaiti SC,serif;font-size:58px}.empty.compact{color:var(--muted);padding:35px 20px;font-size:14px}.quick-empty{color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:154px;display:flex}.quick-empty p{margin:0;font-size:12px}.quick-empty button{font-size:11px}.resume-test{width:100%;color:var(--accent);text-align:left;background:#eeeade;justify-content:flex-start;margin-top:20px;padding:17px 24px;display:flex}.resume-test small{margin-top:5px;font-weight:400;display:block}.resume-test>svg:last-child{margin-left:auto}.metrics{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:14px;margin:20px 0 30px;display:grid}.metrics>div{background:var(--surface);border:1px solid var(--line);border-radius:10px;flex-direction:column;gap:10px;padding:20px;display:flex}.metrics small{color:var(--muted);font-size:10px}.metrics b{font-size:30px;font-weight:500}.metrics .hanzi{font-size:28px}.stats-grid{grid-template-columns:1fr 1fr;gap:22px;margin-bottom:35px;display:grid}.stats-grid h2{font-size:18px}.stats-grid .divider{font-size:12px}.chart{justify-content:space-between;align-items:flex-end;gap:4px;height:190px;padding-top:15px;display:flex}.chart>div{flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:8px;height:100%;display:flex}.chart i{background:#a63d3299;border-radius:3px 3px 0 0;width:75%;max-width:25px;min-height:2px;display:block}.chart span,.chart small{color:var(--muted);font-size:9px}.weak-section{margin-bottom:15px}.weak-row{border:0;border-top:1px solid var(--line);text-align:left;border-radius:0;justify-content:flex-start;width:100%;display:flex}.weak-row>.hanzi{min-width:70px;font-size:24px}.weak-row>span:not(.hanzi){flex:1;font-size:12px}.test-history-row{text-align:left;justify-content:flex-start;gap:20px;width:100%;margin-bottom:12px;display:flex}.test-history-row>div{flex:1}.test-history-row small{color:var(--muted);margin-top:7px;display:block}.settings-panel{margin-bottom:22px}.setting-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;padding:16px 0;font-size:14px;display:flex}.setting-row:last-child{border-bottom:0}.setting-row small{color:var(--muted);margin-top:7px;font-size:11px;display:block}.setting-row input[type=number]{width:90px}.setting-row .row{max-width:55%}.setting-row input:not([type=checkbox]){max-width:250px}.settings-panel>p{font-size:13px}.settings-panel a{font-size:12px}.modal-backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:100;background:#22251f60;justify-content:center;align-items:center;padding:25px;display:flex;position:fixed;inset:0}.modal{background:var(--paper);width:540px;max-width:100%;max-height:90dvh;box-shadow:var(--shadow);border:1px solid var(--line);border-radius:15px;overflow:auto}.modal.wide{width:760px}.modal-header{background:var(--paper);border-bottom:1px solid var(--line);z-index:1;justify-content:space-between;align-items:center;padding:19px 25px;display:flex;position:sticky;top:0}.modal-header h2{margin:0;font-size:20px}.form,.detail{padding:25px}.form{flex-direction:column;gap:18px;display:flex}.field{flex-direction:column;gap:9px;font-size:12px;font-weight:500;display:flex}.form-row{grid-template-columns:1fr 1fr;gap:15px;display:grid}.form .error{margin:0;font-size:13px}.form-actions{justify-content:flex-end;gap:10px;margin-top:10px;display:flex}.file-upload{cursor:pointer;border:1px dashed #aaa798;border-radius:8px;align-items:center;gap:12px;padding:18px;font-size:13px;display:flex}.file-upload input{display:none}.check-row{cursor:pointer;align-items:center;gap:10px;font-size:13px;display:flex}.check-row input{flex-shrink:0}.check-chip{border:1px solid var(--line);cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:8px;display:flex}.chips{flex-wrap:wrap;gap:9px;margin:15px 0;display:flex}.chips .hanzi{font-size:25px}.character-chip{flex-direction:column}.character-chip .hanzi{font-size:40px}.character-chip>span:last-child{color:var(--muted);font-size:9px}.detail-hanzi{font-size:72px}.detail .pinyin{margin-top:8px}.detail h3{margin-top:25px}.note{background:var(--soft);white-space:pre-wrap;border-left:2px solid #b6ad91;border-radius:0 7px 7px 0;margin:20px 0;padding:17px 20px;font-size:13px;line-height:1.8}.character-preview{flex-wrap:wrap;justify-content:center;align-items:center;gap:25px;padding:20px 0;display:flex}.sentence-signs{flex-wrap:wrap;display:flex}.sentence-signs button{background:0 0;border:0;padding:5px}.sentence-signs .hanzi{font-size:32px}.markdown{white-space:pre-wrap;text-align:left;font-weight:400}.markdown p{margin-bottom:8px;font-size:14px}.markdown code{background:var(--soft);border-radius:3px;padding:2px 4px}.import-preview{border:1px solid var(--line);border-radius:8px;max-height:310px;padding:10px 15px;overflow:auto}.import-preview .row{gap:15px;font-size:12px}.import-preview .hanzi{flex-shrink:0;width:70px;font-size:24px}.import-preview small{flex-shrink:0;width:90px}.practice{max-width:1250px;margin:auto}.session-progress{border:0;border-radius:4px;width:100%;height:4px;margin:20px 0 35px;overflow:hidden}.question-layout{max-width:640px;margin:20px auto}.question-layout.with-writing{grid-template-columns:minmax(240px,1fr) minmax(400px,1.1fr);gap:36px;max-width:none;display:grid}.question-copy>.eyebrow{margin-bottom:22px}.question-copy h1{letter-spacing:-.8px;font-size:31px}.question-copy>.question-hanzi{margin:40px 0;font-size:90px;display:block}.question-copy>.question-sentence{margin:30px 0;font-size:34px;display:block}.question-copy>.writing-prompt{margin-top:30px;font-size:25px;line-height:1.5}.large.pinyin{font-size:21px}.character-progress{gap:10px;margin:30px 0;display:flex}.character-progress>span{border:1px solid var(--line);width:43px;height:43px;color:var(--muted);border-radius:6px;place-items:center;font-size:13px;display:grid}.character-progress .current{border-color:var(--accent);color:var(--accent);background:var(--soft)}.character-progress .complete{color:var(--green);background:#e4ebdf}.character-progress .hanzi{font-size:28px}.answer-input{gap:12px;margin:25px 0;display:flex}.answer-input input{flex:1;width:100%}.answer-choices{grid-template-columns:1fr 1fr;gap:12px;margin:30px 0;display:grid}.answer-choices button{text-align:center;min-height:70px}.revealed-answer{margin-top:25px}.revealed-answer .feedback{color:var(--green);margin-bottom:12px;font-size:12px;font-weight:600}.revealed-answer .feedback.error{color:var(--accent)}.answer-hanzi{font-size:47px}.revealed-answer .note{font-size:12px}.grade-buttons{grid-template-columns:repeat(4,1fr);gap:7px;margin:25px 0 12px;display:grid}.grade-buttons>button{flex-direction:column;gap:6px;padding:13px 5px;display:flex;position:relative}.grade-buttons strong{font-size:11px;font-weight:550}.grade-buttons small{color:var(--muted);font-size:9px}.grade-buttons .suggested{border-color:var(--green);background:#eef0e8}.grade-buttons svg{color:var(--green);position:absolute;top:3px;right:3px}.writing-grid{aspect-ratio:1;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#fffefa;border:1px solid #c9c7ba;border-radius:4px;width:100%;position:relative;overflow:hidden}.writing-grid:before,.writing-grid:after{content:"";pointer-events:none;z-index:0;position:absolute}.writing-grid:before{border-left:1px dashed #dcd8c9;height:100%;top:0;left:50%}.writing-grid:after{border-top:1px dashed #dcd8c9;width:100%;top:50%;left:0}.diagonal{pointer-events:none;background:linear-gradient(45deg,#0000 calc(50% - .5px),#e5e0d555 50%,#0000 calc(50% + .5px)),linear-gradient(-45deg,#0000 calc(50% - .5px),#e5e0d555 50%,#0000 calc(50% + .5px));position:absolute;inset:0}.writer-host{position:absolute;inset:0}.hidden-writer{visibility:hidden}.writing-surface{touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;inset:0}.writing-modes{background:#eceae1;border-radius:7px;flex-wrap:wrap;gap:3px;margin-bottom:15px;padding:4px;display:flex}.writing-modes button{white-space:nowrap;min-height:37px;color:var(--muted);background:0 0;border:0;flex:1;padding:7px 5px;font-size:10px}.writing-modes .selected{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0000000b}.writing-tools{color:var(--muted);justify-content:space-between;align-items:center;margin:7px 0;font-size:11px;display:flex}.writing-tools .row{gap:0}.writing-area>.text-button{color:var(--muted);margin:5px 0 10px;font-size:12px}.score-panel{border:1px solid var(--line);background:var(--surface);border-radius:10px;margin-top:20px;padding:18px}.score-number{color:var(--accent);font-family:Georgia,serif;font-size:48px;font-weight:400}.score-panel .row>span{font-size:12px}.score-panel small{color:var(--muted)}.criteria{margin-top:20px}.criteria>div{grid-template-columns:100px 1fr 28px;align-items:center;gap:10px;margin:9px 0;font-size:11px;display:grid}.criteria progress{width:100%;height:5px}.criteria b{font-weight:500}.score-panel p{margin:9px 0;font-size:11px}.completion{text-align:center;max-width:640px;margin:auto;padding:70px 20px}.completion>svg{color:var(--green);margin-bottom:24px}.completion h1{font-size:34px}.completion .eyebrow{margin-bottom:15px}.completion .primary{margin-top:20px}.loading{min-height:100vh;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:15px;font-size:13px;display:flex}.login-page{grid-template-columns:1fr 1fr;min-height:100vh;display:grid}.login-art{background:#eae9dc;flex-direction:column;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.login-art>.hanzi{color:#777d65;font-size:220px;line-height:1;position:relative}.login-art>p{letter-spacing:-1px;color:#626958;text-align:center;margin-top:50px;font-size:30px;line-height:1.35;position:relative}.login-art>small{color:#92927e;letter-spacing:2px;margin-top:15px;font-size:9px;position:relative}.login-grid{background:linear-gradient(90deg,#0000 calc(50% - .5px),#c2c0b244 50%,#0000 calc(50% + .5px)),linear-gradient(#0000 calc(50% - .5px),#c2c0b244 50%,#0000 calc(50% + .5px));border:1px solid #c7c6b7;width:340px;height:340px;position:absolute;top:calc(50% - 270px);transform:rotate(-6deg)}.login-form{width:100%;max-width:410px;margin:auto;padding:50px 25px}.login-form .eyebrow{margin-bottom:22px}.login-form h1{letter-spacing:-1.2px;font-size:38px;line-height:1.25}.login-form>p{margin-bottom:35px;font-size:13px}.login-form .field{margin-bottom:20px}.login-form>small{margin-top:20px;font-size:10px;display:block}@media (min-width:1450px){.hero-card>p{max-width:350px}.hero-seal{right:50px}.today-grid{grid-template-columns:1fr 340px}.word-card{padding:23px 18px}}@media (max-width:1150px){.sidebar{width:195px;padding-left:13px;padding-right:13px}.workspace{width:calc(100% - 195px);margin-left:195px}.workspace main{padding:30px 28px 45px}.topbar{padding:0 28px}.page-footer{margin:0 28px}.today-grid{grid-template-columns:1fr 255px;gap:15px}.hero-card{padding:26px}.hero-seal{opacity:.35;width:122px;height:142px;top:68px;right:14px}.hero-seal>.hanzi{font-size:110px}.today-bottom{grid-template-columns:1fr;gap:30px}.word-card{min-height:140px}.lesson-grid{grid-template-columns:repeat(2,1fr)}.question-layout.with-writing{grid-template-columns:minmax(170px,1fr) minmax(400px,1.6fr);gap:22px}.question-copy h1{font-size:25px}.writing-prompt{font-size:21px!important}.record-row{gap:15px}.record-hanzi{width:90px}.record-lesson{display:none}}@media (max-width:900px) and (min-width:701px){.sidebar{width:160px;padding-left:9px;padding-right:9px}.brand{gap:9px}.brand>span:last-child{font-size:25px}.brand-caption{font-size:6px}.sidebar-label{font-size:7px}.sidebar nav button{gap:9px;padding-left:10px;font-size:12px}.workspace{width:calc(100% - 160px);margin-left:160px}.workspace main{padding:30px 20px}.topbar{padding:0 20px}.today-grid{grid-template-columns:1fr}.daily-card{display:none}.hero-seal{opacity:.7;width:150px;height:167px;top:50px;right:35px}.question-layout.with-writing{grid-template-columns:1fr}.writing-area{max-width:520px;margin:auto}.hero-card>p{max-width:300px}.overview-stats>div{gap:9px}.stat-icon{width:29px;height:29px}.overview-stats p{font-size:9px}.page-heading{align-items:flex-start}.page-heading>button{padding:9px;font-size:11px}.stats-grid{grid-template-columns:1fr}}@media (max-width:700px){.sidebar{width:100%;height:auto;padding:0 4px calc(env(safe-area-inset-bottom) + 4px);border:0;border-top:1px solid var(--line);background:var(--surface);position:fixed;inset:auto 0 0}.brand,.sidebar-label,.sidebar-bottom{display:none}.sidebar nav{justify-content:space-around;gap:0;display:flex}.sidebar nav button{background:0 0;border-radius:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:5px;width:auto;min-height:62px;padding:11px 2px 6px;font-size:9px;display:flex}.sidebar nav button.active{background:0 0}.sidebar nav svg{width:20px;height:20px}.nav-count{display:none}.workspace{width:100%;margin-left:0;padding-bottom:75px}.topbar{min-height:61px;padding:0 20px}.breadcrumb{font-size:10px}.date-top{display:none}.sync-status{font-size:9px}.workspace main{padding:27px 19px 40px}.page-heading{flex-wrap:wrap;align-items:flex-start;gap:10px;margin-bottom:24px}.page-heading h1{letter-spacing:-1.1px;font-size:32px}.page-heading p{font-size:11px}.page-heading>.row{width:100%}.page-heading>.eyebrow{font-size:8px}.page-heading>.row button{flex:1}.desktop-break{display:none}.today-grid{grid-template-columns:1fr;gap:15px}.hero-card{min-height:280px;padding:25px}.hero-card h2{font-size:28px}.hero-card>p{max-width:220px;font-size:11px}.hero-seal{opacity:.35;width:115px;height:144px;top:67px;right:14px}.hero-seal>.hanzi{font-size:105px}.hero-bottom{font-size:8px}.daily-card{display:none}.overview-stats{margin-top:18px;padding:18px 0}.overview-stats>div{text-align:center;flex-direction:column;gap:0}.stat-icon{display:none}.overview-stats strong{font-size:26px}.overview-stats p{margin-top:8px;font-size:8px}.today-bottom{gap:25px;margin-top:27px}.word-cards{grid-template-columns:repeat(2,1fr);gap:11px}.word-card{min-height:135px;padding:18px 15px}.word-card>.hanzi{font-size:37px}.word-card>.pinyin,.word-card p{font-size:11px}.section-heading .eyebrow{display:none}.section-heading h2{font-size:18px}.page-footer{margin:0 20px;font-size:8px}.page-footer>span:last-child{display:none}.knowledge-toolbar{flex-wrap:wrap;gap:8px}.knowledge-toolbar .search-box{flex-basis:100%}.knowledge-toolbar select{flex:1;width:45%;padding:10px;font-size:11px}.tabs{gap:16px;margin-bottom:15px}.tabs button{gap:6px;font-size:11px}.tabs small{font-size:8px}.record-row{gap:12px;min-height:82px;padding:15px 12px}.record-hanzi{width:72px;font-size:30px}.record-text p,.record-text .pinyin{font-size:11px}.record-row .tiny-tag{display:none}.record-row .sentence{width:130px;font-size:23px}.radical-grid{grid-template-columns:repeat(3,1fr);gap:8px}.lesson-grid{grid-template-columns:1fr}.lesson-card{min-height:200px}.lesson-card h2{margin-top:20px}.metrics{grid-template-columns:repeat(2,1fr);gap:10px}.metrics>div{padding:16px}.metrics b{font-size:27px}.stats-grid{grid-template-columns:1fr;gap:16px}.panel{padding:19px}.stats-grid .panel{padding:20px}.modal-backdrop{align-items:center;padding:10px}.modal{border-radius:12px;max-height:94dvh}.modal-header{padding:13px 18px}.modal-header h2{font-size:18px}.form,.detail{padding:20px}.form-row{grid-template-columns:1fr}.detail-hanzi{font-size:58px}.import-preview .row{flex-wrap:wrap;gap:8px}.import-preview small{width:auto}.setting-row{align-items:flex-start;font-size:12px}.setting-row>input[type=checkbox]{margin-top:0}.setting-row small{font-size:10px}.setting-row .row{flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:60%}.setting-row .row input{width:100%}.setting-row select{max-width:52%;font-size:12px}.settings-panel h2{font-size:19px}.settings-panel .actions-wrap button{width:100%}.question-layout.with-writing{flex-direction:column;gap:22px;display:flex}.question-layout{margin-top:10px}.question-copy h1{font-size:27px}.question-copy>.eyebrow{margin-bottom:14px}.question-copy>.writing-prompt{margin-top:15px;margin-bottom:8px;font-size:23px!important}.large.pinyin{font-size:18px}.character-progress{margin:17px 0}.writing-area{width:100%;max-width:550px;margin:auto}.writing-modes button{font-size:9px}.question-copy>.question-hanzi{font-size:80px}.practice>.row .eyebrow{letter-spacing:.6px;font-size:8px}.practice>.row>.text-button{font-size:11px}.answer-input{flex-direction:column}.grade-buttons strong{font-size:11px}.grade-buttons button{min-height:60px}.with-writing .revealed-answer .note{display:none}.login-page{display:block}.login-art{min-height:190px;max-height:220px;padding:18px}.login-art>.hanzi{font-size:90px}.login-art>p{display:none}.login-grid{width:125px;height:125px;top:14px}.login-art>small{letter-spacing:1.5px;margin-top:15px;font-size:8px}.login-form{padding:35px 28px}.login-form h1{font-size:32px}.completion{padding:55px 10px}.completion h1{font-size:29px}.question-layout.with-writing .writing-area{min-width:0}.chart{gap:3px}}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--paper:#20221f;--surface:#272a25;--ink:#e6e4d9;--muted:#a2a597;--line:#3d4037;--soft:#33362d;background:var(--paper);color:var(--ink)}:root:not([data-theme=light]) .sidebar{background:#252821}:root:not([data-theme=light]) .hero-card{background:#34392e;border-color:#474d3e}:root:not([data-theme=light]) .hero-card p{color:#b4b5a3}:root:not([data-theme=light]) .sidebar nav .active{color:#e3a192;background:#383b31}:root:not([data-theme=light]) .sidebar-note p{color:#b4b5a3}:root:not([data-theme=light]) .writing-grid{background:#e6e2d6}:root:not([data-theme=light]) .tiny-tag{color:#a8c4a9;background:#344638}:root:not([data-theme=light]) .stat-icon{background:#373c30}:root:not([data-theme=light]) .writing-modes{background:#33362d}}:root[data-theme=dark]{--paper:#20221f;--surface:#272a25;--ink:#e6e4d9;--muted:#a2a597;--line:#3d4037;--soft:#33362d;background:var(--paper);color:var(--ink)}:root[data-theme=dark] .sidebar{background:#252821}:root[data-theme=dark] .hero-card{background:#34392e;border-color:#474d3e}:root[data-theme=dark] .hero-card p{color:#b4b5a3}:root[data-theme=dark] .sidebar nav .active{color:#e3a192;background:#383b31}:root[data-theme=dark] .writing-grid{background:#e6e2d6}:root[data-theme=dark] .tiny-tag{color:#a8c4a9;background:#344638}:root[data-theme=dark] .writing-modes{background:#33362d}:root[data-theme=dark] .grade-buttons .suggested{background:#36452f}:root[data-theme=dark] .stat-icon{background:#373c30}:root[data-theme=dark] .radical-grid .used{background:#343d2e}.mobile-settings{display:none}@media (max-width:700px){.mobile-settings{display:flex}}.attempt-preview{border:1px solid var(--line);width:200px;height:200px;margin:16px 0;display:block}.detail details p{font-size:12px}.detail summary{cursor:pointer;padding:8px 0;font-size:13px}.prep-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;margin-bottom:22px;display:grid}.prep-grid h3{align-items:center;gap:8px;margin:0 0 8px;font-size:15px;display:flex}.prep-paste{flex-direction:column;gap:10px;display:flex}.prep-paste textarea{resize:vertical;width:100%;font-size:20px;line-height:1.5}.prep-paste button{align-self:flex-start}.small{margin:0;font-size:12px;line-height:1.55}.warning{color:#9a6512}.prep-modes{flex-direction:column;gap:8px;display:flex}.prep-mode{border:1px solid var(--line);cursor:pointer;background:var(--surface);border-radius:9px;align-items:flex-start;gap:11px;padding:11px 13px;display:flex}.prep-mode.active{border-color:var(--accent);background:var(--soft)}.prep-mode input{accent-color:var(--accent);margin-top:3px}.prep-mode span{flex-direction:column;gap:3px;display:flex}.prep-mode b{font-size:13px}.prep-mode small{color:var(--muted);font-size:12px;line-height:1.45}.prep-toolbar{align-items:center}.prep-toolbar .check-row{white-space:nowrap}.prep-list{margin-bottom:0}.prep-row{border-bottom:1px solid var(--line);cursor:pointer;align-items:center;gap:16px;min-height:70px;padding:12px 20px;display:flex}.prep-row:last-child{border-bottom:0}.prep-row input{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}.prep-row .record-hanzi{width:auto;min-width:90px;font-size:30px}.prep-row .record-text{flex-direction:column;gap:3px;font-size:13px;display:flex}.prep-row.chosen{background:var(--soft)}.prep-empty{padding:24px}.prep-bar{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);z-index:5;border-radius:12px;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:16px;margin-top:14px;padding:12px 14px 12px 20px;font-size:13px;display:flex;position:sticky;bottom:12px}.prep-bar>span:not(.error){margin-right:auto}.prep-bar b{font-size:17px}.prep-answers{grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 10px;display:grid}.prep-answers button{min-height:54px;font-size:15px}.prep-finished .prep-hard{margin:26px 0 8px}.prep-chip{border:1px solid var(--line);background:var(--surface);border-radius:8px;align-items:baseline;gap:6px;padding:6px 11px;display:inline-flex}.prep-chip .hanzi{font-size:22px}.prep-again{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px;display:flex}@media (max-width:700px){.prep-grid{grid-template-columns:1fr}.prep-row{gap:12px;padding:11px 12px}.prep-row .record-hanzi{min-width:64px;font-size:26px}.prep-bar{padding:10px 12px;bottom:84px}.prep-bar button{white-space:nowrap;flex:1}}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .warning{color:#e0b062}}[data-theme=dark] .warning{color:#e0b062}
