:root{--green:#235b4e;--green-dark:#174237;--sage:#e6eee7;--lime:#d6e5b9;--cream:#f7f8f4;--ink:#23362f;--muted:#76827b;--line:#e3e8e2;--white:#fff;--amber:#fff3da;--orange:#a56516;--red:#ac4e43;--radius:19px;--shadow:0 8px 28px #253a2b05}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:10px;padding:10px 15px;font-weight:600;transition:background .18s,transform .18s}button:hover{filter:brightness(.97)}button:active{transform:translateY(1px)}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9cbca8;outline-offset:3px}a{color:var(--green);text-underline-offset:3px}input,select,textarea{border:1px solid #dbe2db;border-radius:10px;background:#fff;color:var(--ink);padding:10px 12px;width:100%;min-width:0}textarea{resize:vertical;min-height:85px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green);flex:none}label{display:block;font-size:13px;font-weight:600;margin:12px 0 4px}label input,label select,label textarea{display:block;margin-top:6px;font-weight:400}h1,h2,h3,h4,p{margin-top:0}h1{font-size:34px;line-height:1.4;font-weight:650;letter-spacing:-1px}h2{font-size:23px;line-height:1.45;letter-spacing:-.4px}h3{font-size:17px;line-height:1.5;margin-bottom:14px}h4{font-size:14px}.hidden{display:none!important}.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted);text-transform:uppercase}.primary{background:var(--green);color:#fff}.secondary{background:var(--sage);color:var(--green)}.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}.danger{color:var(--red);background:#f9eeec}.wide{width:100%}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:30px;background:var(--sage);color:var(--green);font-size:11px;line-height:1.4;padding:6px 10px;white-space:nowrap;font-weight:600}.pill.amber{background:var(--amber);color:var(--orange)}.pill.red{background:#faeae5;color:var(--red)}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.notice{background:var(--amber);color:#79551f;border:1px solid #ead9ae;border-radius:12px;padding:13px;font-size:12px;margin:18px 0}.error{color:var(--red);font-size:13px;margin-top:12px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:15px;font-weight:700;color:var(--green)}.brand-icon{display:grid;place-items:center;width:34px;height:38px;border-radius:9px;background:var(--green);color:#fff;font-size:29px;font-family:Georgia,serif;font-style:italic;line-height:1}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:2px;color:#8a958e}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;max-width:1440px;margin:auto;padding:30px;gap:20px}.login-story{border-radius:25px;background:#e7ede2;padding:40px 9%;position:relative;overflow:hidden}.login-story .eyebrow{margin:70px 0 20px}.login-story h1{font-size:62px;line-height:1.3;color:var(--green)}.login-story p{color:#668074;line-height:1.9}.login-story:after{content:"";position:absolute;width:330px;height:330px;border:70px solid #d1dfc2;border-radius:100%;right:-200px;top:240px;z-index:0}.target-row{display:flex;gap:40px;margin:35px 0}.target-row b{font-size:34px;color:var(--green);font-weight:500}.target-row span{display:block;font-size:10px;font-weight:400;color:#788a7d}.story-foot{font-size:11px;margin-top:40px;color:#728678}.login-form-wrap{align-self:center;width:380px;max-width:100%;margin:40px auto}.login-form-wrap h2{font-size:28px;margin:10px 0}.login-form-wrap form{margin-top:30px}.login-form-wrap button{margin-top:15px;padding:13px 18px}.login-form-wrap .primary{display:flex;justify-content:space-between}.app-shell{display:flex;min-height:100vh}.sidebar{width:238px;flex:none;border-right:1px solid var(--line);padding:31px 22px;background:#fff;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:10}.nav-label{font-size:10px;color:#a1aaa4;letter-spacing:1px;margin:44px 12px 14px}.sidebar nav{display:grid;gap:8px}.sidebar nav button{padding:12px 15px;background:transparent;color:#7b8981;text-align:left;font-size:13px}.sidebar nav button span{font-size:20px;display:inline-block;width:32px;font-weight:400;vertical-align:middle}.sidebar nav button.active{background:var(--sage);color:var(--green)}.sidebar-goal{background:var(--cream);padding:19px;border-radius:15px;margin-top:auto}.sidebar-goal .eyebrow{font-size:9px}.sidebar-goal strong{font-size:21px;font-weight:500;display:block;color:var(--green);margin:5px 0}.sidebar-goal p{font-size:11px;color:#8b978f;line-height:1.9;margin-bottom:12px}.logout{margin-top:19px}.workspace{margin-left:238px;width:calc(100% - 238px);min-width:0}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px}.topbar-sub{margin-left:16px;font-size:11px;color:#a0a9a3}.topbar-actions{display:flex;align-items:center;gap:12px}.avatar{width:31px;height:31px;display:grid;place-items:center;background:#f0ecdf;color:#9a8d69;border-radius:50%;font-size:12px}.icon-btn{background:transparent;color:var(--green);font-size:20px;padding:3px 9px}.global-notice{background:var(--amber);font-size:12px;padding:10px 42px;display:flex;gap:12px;align-items:center;justify-content:space-between}.global-notice button{padding:5px 10px;background:#fff8}.mobile-nav{display:none}main{max-width:1450px;margin:auto;padding:35px 42px 20px}.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}.hero h1{font-size:28px;margin:8px 0 7px;letter-spacing:-.5px}.hero p{color:var(--muted);font-size:12px;margin:0}.date-controls{display:flex;gap:8px;align-items:center}.date-controls input{max-width:154px;font-size:12px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:19px 22px;box-shadow:var(--shadow)}.stat-label{font-size:11px;color:#8a958e}.stat-value{font-size:28px;font-weight:550;letter-spacing:-.5px;margin:7px 0 3px;line-height:1.4}.stat-value span{font-size:12px;letter-spacing:0;font-weight:400;color:var(--muted);margin-left:5px}.stat-foot{font-size:10px;color:#9aa39d}.stat-icon{float:right;background:var(--cream);border-radius:9px;padding:2px 8px;color:#8b9f8e;font-size:19px}.content-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,1fr);gap:22px;align-items:start}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;box-shadow:var(--shadow);margin-bottom:21px}.card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.card-header h3{margin:0}.course-banner{background:linear-gradient(120deg,#e7eee7,#f1f4e8);border-radius:13px;padding:21px;margin-bottom:22px}.course-banner h2{font-size:21px;color:var(--green);margin:7px 0}.course-banner p{font-size:12px;color:#788a7e;margin:0;line-height:1.8}.mode-switch{display:flex;gap:6px;background:#f3f5f1;padding:4px;border-radius:10px;margin-bottom:23px}.mode-switch button{flex:1;background:transparent;font-size:12px;color:#8b958d;padding:8px 5px;white-space:nowrap}.mode-switch button.active{background:#fff;color:var(--green);box-shadow:0 2px 8px #27362b09}.task-list{display:grid;gap:2px;margin-bottom:20px}.task-item{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid #f0f2ee;cursor:pointer;font-weight:400;margin:0}.task-item input{margin-top:3px}.task-item strong{display:block;font-size:13px;font-weight:550}.task-item p{font-size:11px;color:#96a097;margin:4px 0 0}.task-item.done strong{color:#9aa69d;text-decoration:line-through}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid.four{grid-template-columns:repeat(4,1fr)}.form-grid label{font-size:11px}.form-grid input,.form-grid select{font-size:12px;padding:9px 10px}.savebar{display:flex;gap:12px;align-items:center;margin-top:20px}.savebar .primary{padding:12px 25px}.savebar .small{flex:1}.meter{height:7px;background:#edf0e9;border-radius:10px;overflow:hidden;margin:10px 0 4px}.meter i{display:block;height:100%;background:var(--green);border-radius:10px}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:17px 0}.week-day{text-align:center;color:#a2aba4;font-size:9px}.week-day button{display:block;width:100%;padding:9px 2px;border:1px solid transparent;color:#79877d;background:#f5f7f2;margin:7px 0;font-size:11px;border-radius:8px}.week-day.selected button{border-color:var(--green);color:var(--green);background:#e9f0e7}.week-day.complete button{background:var(--green);color:#fff}.week-day.rest button{background:#f0eede;color:#aaa078}.compact-list{list-style:none;padding:0;margin:15px 0 0}.compact-list li{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid #f0f2ec;font-size:11px}.focus-card{background:#edf0e5;border-color:#e7eddd}.focus-card h3{color:var(--green)}.focus-card p{font-size:12px;color:#7b8876;line-height:1.9}.quote{font-family:Georgia,serif;font-size:15px;color:#6c7c6c;font-style:italic;line-height:1.8;margin:0}.details{border-top:1px solid var(--line);padding:14px 0 2px}.details summary{cursor:pointer;color:var(--green);font-size:12px;font-weight:600}.details summary:focus-visible{outline:2px solid var(--green)}.details .muted{font-size:11px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.calendar-head{text-align:center;color:var(--muted);font-size:11px;padding:7px}.calendar-cell{min-height:105px;padding:12px;border:1px solid var(--line);background:#fff;color:var(--ink);text-align:left;border-radius:12px;display:flex;flex-direction:column;gap:5px}.calendar-cell b{font-size:14px}.calendar-cell small{font-size:10px;color:var(--muted);font-weight:400}.calendar-cell.completed{background:#eaf1e8;border-color:#c4d6c1}.calendar-cell.busy{background:#fbf5e8}.calendar-cell.rest{background:#f1f2ed}.calendar-cell.today{outline:2px solid #9bb898;outline-offset:1px}.calendar-cell.empty{border:0;background:transparent;cursor:default}.legend{display:flex;gap:18px;margin:17px 0 0;font-size:11px;color:var(--muted)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#bed2ba;margin-right:5px}.dot.amber{background:#ead3a3}.dot.gray{background:#cbd0c5}.score-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.score{padding:18px;border:1px solid var(--line);border-radius:13px}.score strong{display:block;font-size:25px;color:var(--green);font-weight:500;margin:4px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:10px;color:var(--muted);background:#f5f7f2;font-weight:600}.question-card{background:#edf2e9;border-radius:14px;padding:23px;margin:18px 0;min-height:180px}.question-card .english{font-family:Georgia,serif;font-size:23px;line-height:1.5;margin:16px 0 10px;color:var(--green)}.question-card .chinese{font-size:12px;color:#7c8b7d}.question-card .followup{background:#fff9;padding:13px;border-radius:10px;margin-top:15px;font-size:13px}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip-row button{background:var(--cream);color:#7e8d81;font-size:11px;padding:7px 13px}.chip-row button.active{background:var(--green);color:#fff}.record-item{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--line)}.record-item>div{flex:1;min-width:150px}.record-item audio{width:100%;height:36px;margin-top:8px}.record-dot{width:10px;height:10px;border-radius:50%;background:var(--red);display:inline-block;margin-right:7px;animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.3}}.empty-state{padding:28px 15px;text-align:center;color:var(--muted);font-size:12px}.setting-row{padding:19px 0;border-bottom:1px solid var(--line)}.setting-row p{font-size:12px;color:var(--muted);margin:5px 0 12px}#toast{position:fixed;z-index:100;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:12px;background:#203d32;color:#fff;max-width:min(90vw,600px);font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}dialog{border:1px solid var(--line);border-radius:22px;padding:28px;width:520px;max-width:92vw;box-shadow:0 20px 80px #17352a44;color:var(--ink)}dialog::backdrop{background:#193a2a55}dialog pre{max-height:330px;overflow:auto;white-space:pre-wrap;font-size:12px;background:var(--cream);padding:16px;border-radius:10px}dialog .ghost{margin-top:20px}footer{padding:16px 42px 30px;color:#a5ada6;font-size:10px}.resource-link{display:block;font-size:11px;padding:10px 0;color:#7c8f7f;text-decoration:none;border-bottom:1px solid #f0f2ee}.record-controls{display:flex;gap:8px;flex-wrap:wrap}.metric-note{font-size:11px;color:#9aa397;margin:8px 0}.backup-info{background:var(--sage);padding:15px;border-radius:12px;color:var(--green);font-size:12px;margin-bottom:15px}.form-hint{font-size:10px;color:var(--muted);font-weight:400}.page-gap{margin-top:24px}
.date-controls button{white-space:nowrap;flex-shrink:0}
@media(max-width:600px){.calendar-grid .calendar-cell small{font-size:10px;overflow-wrap:anywhere}.calendar-grid .calendar-cell{min-height:92px}}
@media(min-width:1600px){main{padding-top:45px}.card{padding:30px}}
@media(max-width:1150px){.sidebar{width:210px;padding:28px 17px}.workspace{margin-left:210px;width:calc(100% - 210px)}main{padding:28px 25px}.topbar{padding:0 25px}.content-grid{grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr)}.stat{padding:16px}.card{padding:20px}.topbar-sub{display:none}}
@media(max-width:850px){.sidebar{width:178px;padding:25px 13px}.workspace{margin-left:178px;width:calc(100% - 178px)}.brand{font-size:12px}.brand-icon{width:28px;height:33px}.content-grid{grid-template-columns:1fr}.stat-grid{gap:10px}.stat{padding:15px 12px}.stat-value{font-size:25px}.stat-icon{display:none}.score-grid{grid-template-columns:repeat(2,1fr)}.calendar-cell{min-height:90px;padding:8px}.hero{flex-wrap:wrap}.login-story h1{font-size:48px}.target-row{gap:22px}.login-layout{padding:18px}.login-form-wrap{padding:20px}.global-notice{padding:10px 25px}}
@media(max-width:600px){body{font-size:13px}.sidebar{display:none}.workspace{width:100%;margin-left:0}.topbar{height:65px;padding:0 20px}.avatar{display:none}main{padding:24px 18px 20px}.hero{margin-bottom:20px;gap:16px}.hero h1{font-size:26px}.hero p{font-size:11px}.stat-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.stat{padding:15px 17px}.stat-value{font-size:27px}.card{border-radius:16px;padding:20px;margin-bottom:17px}.course-banner{padding:18px}.content-grid{gap:0}.mode-switch button{font-size:11px}.form-grid.four{grid-template-columns:repeat(2,1fr)}.form-grid.three{grid-template-columns:repeat(2,1fr)}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#fffefb;border-top:1px solid var(--line);z-index:20;padding:8px 8px max(8px,env(safe-area-inset-bottom))}.mobile-nav button{display:flex;flex-direction:column;gap:2px;align-items:center;background:transparent;color:#a4ada5;padding:2px 10px;font-size:19px;min-width:52px}.mobile-nav button span{font-size:9px}.mobile-nav button.active{color:var(--green)}footer{padding:8px 18px 100px;font-size:9px}.global-notice{padding:10px 18px;font-size:11px}.calendar-grid{gap:5px}.calendar-cell{min-height:76px;padding:7px 4px;border-radius:8px}.calendar-cell b{font-size:12px}.calendar-cell small{font-size:8px}.calendar-cell .pill{padding:3px;font-size:8px;white-space:normal}.calendar-head{padding:3px}.score{padding:15px}.question-card{padding:20px}.question-card .english{font-size:21px}.date-controls{width:100%}.date-controls input{max-width:none;flex:1}.savebar{flex-wrap:wrap}.savebar .primary{width:100%}.login-layout{display:flex;flex-direction:column;gap:0;padding:0}.login-story{border-radius:0;padding:22px 28px 28px}.login-story .eyebrow{margin:30px 0 10px}.login-story h1{font-size:35px;line-height:1.4}.login-story h1 br{display:none}.login-story p{display:none}.target-row{margin:16px 0 0;gap:40px}.target-row b{font-size:25px}.story-foot{margin-top:18px;font-size:10px}.login-story:after{top:50px;right:-250px}.login-form-wrap{padding:28px;margin:0 auto;width:100%}.login-form-wrap h2{font-size:24px}.login-form-wrap form{margin-top:20px}#toast{bottom:95px}.score-grid{gap:9px}.small{font-size:11px}}
