:root{font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#233d34;background:#f6f7f3;font-synthesis:none;--forest: #1d5140;--line: #dce3da;--muted: #67766d;--bg: #f6f7f3;--panel: #fff;--ink: #24392e;--green: #265841;color-scheme:light}*{box-sizing:border-box}body{min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed}input,textarea,select{max-width:100%}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #81a966;outline-offset:3px}button{touch-action:manipulation}a{color:inherit}svg{flex-shrink:0}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:#fcfdfb;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 16px 0;z-index:20}.brand{display:flex;align-items:center;gap:11px;margin:0 8px 30px;text-decoration:none}.brand img{border-radius:10px}.brand strong,.brand em{display:block}.brand strong{line-height:1.2;font-size:22px;color:#143e30;letter-spacing:.04em}.brand strong small{font-size:15px;letter-spacing:-.02em;font-weight:650}.brand em{font-style:normal;font-size:11px;color:#697b6d;letter-spacing:.17em;margin-top:4px}.sidebar nav{overflow-y:auto}.nav-group{margin-bottom:28px}.nav-group p{font-size:12px;color:#78857b;font-weight:600;margin:0 12px 10px;letter-spacing:.08em}.nav-group button,.side-debug,.student-btn,.top-actions button,.mob-menu{border:0;background:none;display:flex;align-items:center}.nav-group button{width:100%;gap:13px;text-align:left;height:42px;border-radius:8px;padding:0 13px;color:#4b5a50;font-size:14px;margin:3px 0}.nav-group button:hover,.side-debug:hover,.student-btn:hover{background:#f1f4ec}.nav-group button.selected{background:#e7efe2;color:#245440;font-weight:650}.nav-group button.selected i{background:#618753;border-radius:50%;width:6px;height:6px;margin-left:auto}.side-bottom{margin-top:auto;padding-top:15px}.side-debug{font-size:12px;gap:9px;width:100%;border-radius:6px;padding:10px;color:#526957}.switch{display:inline-flex;align-items:center;width:26px;height:15px;background:#d4dcd2;border-radius:14px;margin-left:auto;padding:2px}.switch i{border-radius:50%;background:#fff;width:11px;height:11px;box-shadow:0 1px 2px #0002}.switch.on{background:#457959;justify-content:flex-end}.student-btn{gap:10px;text-align:left;border-top:1px solid var(--line);width:100%;margin-top:12px;padding:16px 6px}.student-btn>span:nth-child(2){flex:1;min-width:0}.student-btn strong,.student-btn small{display:block;overflow:hidden;text-overflow:ellipsis}.student-btn strong{font-size:14px}.student-btn small{font-size:11px;color:var(--muted);margin-top:3px}.avatar{width:35px;height:35px;border-radius:50%;background:#e5ecdf;color:#4d714d;display:grid;place-items:center}.app-body{margin-left:220px;min-height:100vh}.top-bar{height:64px;display:flex;gap:12px;align-items:center;justify-content:space-between;background:#ffffffcf;border-bottom:1px solid var(--line);padding:0 clamp(22px,3vw,54px)}.crumb,.top-actions,.top-actions button{display:flex;align-items:center}.crumb{gap:10px;font-size:13px}.crumb span{color:#79857c}.crumb strong{font-weight:550}.top-actions{gap:15px}.top-actions button{gap:7px;padding:8px 12px;border-radius:7px;font-size:13px}.top-actions .ask-trigger{background:#ebf1e6;border:1px solid #d8e2d2;color:#335639}.top-actions button:hover{background:#e3ecdb}.main-content{padding:clamp(22px,2.5vw,38px) clamp(20px,3vw,54px) 48px;max-width:1720px;margin:auto;outline:none;min-width:0}.mob-menu,.nav-backdrop{display:none}.skip{position:fixed;left:10px;top:-100px;background:#fff;padding:10px;z-index:100}.skip:focus{top:10px}.view-loading,.shell-error{padding:32px;background:#fff;border:1px solid var(--line);border-radius:14px}.shell-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);background:#244e40;color:#fff;display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:10px;z-index:1000;box-shadow:0 4px 30px #132b2533;max-width:90vw;font-size:14px}.workspace-title,.section-cap,.task-row,.chapter-row,.map-footer,.photo-entry,.date-stamp,.hero-tag,.hero-cta,.stat-icon,.chapter-tile,.text-action{display:flex;align-items:center}.workspace-title{justify-content:space-between;margin:0 0 24px;gap:12px}.workspace-title h1{font-family:PingFang SC,Inter,system-ui,sans-serif;font-size:clamp(29px,2.4vw,40px);margin:0;font-weight:690;letter-spacing:-.04em;color:#18382d;line-height:1.4}.workspace-title p{color:#6a786d;font-size:14px;margin:6px 0 0;line-height:1.5}.date-stamp{font-size:13px;gap:8px;color:#66766a;white-space:nowrap}.dashboard-top,.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.76fr) minmax(260px,1fr);gap:19px}.dash-card{border:1px solid #dce2d9;border-radius:15px;background:#fff;min-width:0}.study-hero{border-radius:15px;min-height:257px;padding:27px 30px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;position:relative;isolation:isolate;overflow:hidden;color:#fff;background:#123b2c url(/fern.webp) center center/cover no-repeat}.study-hero:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:linear-gradient(95deg,#0b3029e0 0%,#13392dc0 35%,#19392335 69%,transparent)}.hero-tag{padding:4px 9px;border-radius:5px;color:#e2f4c3;font-size:11px;font-weight:550;letter-spacing:.08em;border:1px solid #cce5a552;background:#253f28aa;gap:6px}.hero-tag span{width:5px;height:5px;border-radius:50%;background:#c7ec8f}.hero-course{margin:16px 0 17px}.hero-chap,.chapter-meta>span{font-family:IBM Plex Mono,SFMono-Regular,Consolas,monospace;font-size:11px;letter-spacing:.14em;font-weight:600}.hero-chap{color:#cae2ab}.hero-course h2{margin:4px 0 6px;font:600 clamp(26px,2.2vw,36px) / 1.33 "Songti SC","Noto Serif CJK SC",serif;letter-spacing:.015em}.hero-course p{font-size:13px;line-height:1.7;color:#e1e8da;margin:0;max-width:90%}.hero-cta{gap:8px;border:0;background:#d4ed9f;color:#193c2c;border-radius:7px;font-size:14px;padding:10px 14px;font-weight:650}.hero-cta:hover{background:#e3f6ba}.hero-cta svg:last-child{margin-left:8px}.tasks{padding:20px 22px 14px}.section-cap{justify-content:space-between;gap:10px}.section-cap h2{display:flex;align-items:center;gap:9px;font-size:18px;letter-spacing:-.035em;font-weight:650;color:#223d32;margin:0}.section-cap h2 svg{color:#617861;width:19px;height:19px;stroke-width:1.7}.section-cap>small{font-size:12px;color:#738174}.task-track{height:4px;background:#edf1e8;border-radius:9px;margin:15px 0 5px;overflow:hidden}.task-track i{display:block;height:100%;background:#83ab6b}.task-row{gap:12px;width:100%;height:57px;text-align:left;background:none;border:0;border-bottom:1px solid #eef1eb;padding:0}.task-row:last-child{border:0}.task-row>span:nth-child(2){flex:1}.task-row strong,.task-row small{display:block}.task-row strong{font-size:14px;font-weight:550}.task-row small{font-size:12px;margin-top:3px;color:#768176}.task-row>svg,.chapter-row>svg{color:#71806f}.task-icon{border:1px solid #e4e9df;background:#f5f7f1;width:33px;height:33px;border-radius:9px;display:grid;place-items:center;color:#59745a}.task-icon.finished{background:#dfedd0}.dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.dash-stats button{border-radius:12px;border:1px solid var(--line);background:#fff;padding:17px 19px;display:flex;gap:13px;align-items:center;text-align:left}.dash-stats button:hover,.chapter-row:hover,.photo-entry:hover,.task-row:hover{background:#f7faf3}.stat-icon{justify-content:center;width:43px;height:43px;border-radius:12px}.mint{background:#e6f0df;color:#4e744c}.sand{background:#f4ead7;color:#8b6e36}.lavender{background:#eae7f3;color:#71628d}.teal{background:#e2eeeb;color:#41736a}.stat-body>span{font-size:12px;color:#6e796f}.stat-body b{display:block;font-family:Inter,system-ui,sans-serif;font-size:25px;color:#243e32;line-height:1.3;font-weight:630}.stat-body small{font-size:12px;font-weight:450;margin-left:5px;color:#708071}.dashboard-bottom{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.chapters,.graph-card{padding:20px 22px 12px}.chapter-row{gap:15px;width:100%;background:none;border:0;border-bottom:1px solid #e8ede4;text-align:left;padding:15px 0}.chapter-tile{width:60px;height:66px;justify-content:center;border-radius:8px;position:relative;overflow:hidden}.chapter-tile:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(135deg,transparent 0 7px,#ffffff1c 7px 8px)}.tile-0{background:#d4e4c2;color:#507444}.tile-1{background:#e9dfcc;color:#8c7456}.chapter-meta{flex:1;min-width:0}.chapter-meta>span{font-size:10px;letter-spacing:.12em;color:#77856d}.chapter-meta strong{display:block;font-size:16px;margin:3px 0 6px;font-weight:610}.chapter-meta small{font-size:12px;color:#778474}.chapter-meta i{display:inline-block;margin:0 7px;background:#a6afa0;width:3px;height:3px;border-radius:50%;vertical-align:middle}.photo-entry{gap:9px;width:100%;background:#f5f7ef;border:0;border-radius:7px;padding:11px;margin:12px 0 2px;color:#4d6549;font-size:12px}.photo-entry b{font-weight:580}.photo-entry span{margin-left:auto;color:#6b796e}.text-action{gap:3px;border:0;background:none;font-size:12px;color:#526f54;padding:5px 0}.mini-map{height:190px;border:1px solid #e1e8dd;border-radius:9px;background-color:#f5f8f0;background-image:radial-gradient(#ced8c6 .8px,transparent .8px);background-size:12px 12px;position:relative;margin:18px 0 0;overflow:hidden}.mini-links{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:#8fac8e;stroke-width:1.1;stroke-dasharray:4 3}.map-pin{position:absolute;transform:translate(-50%,-50%);border:0;background:none;width:30%;height:30px;padding:0;display:grid;place-items:center;overflow:visible}.pin-symbol{width:18px;height:18px;background:#dfe8d9;border:1px solid #829c79;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 5px #cddfc345}.pin-symbol i{width:6px;height:6px;background:#668760;border-radius:50%}.map-pin.focus .pin-symbol{width:33px;height:33px;color:#ecf2d8;background:#416d4e;border-color:#416d4e;box-shadow:0 0 0 5px #bbd3b67d}.pin-label{position:absolute;top:100%;background:#f5f8eff0;border-radius:3px;line-height:1.2;font-size:11px;max-width:100%;padding:2px 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-pin.weak i{background:#be6e60}.map-pin.mid i{background:#c8a331}.map-pin.strong i{background:#3c8961}.map-footer{font-size:12px;color:#71806d;gap:7px;margin-top:12px}.dot-key{width:7px;height:7px;border-radius:50%;background:#92ac83}@media(min-width:1600px){.study-hero{min-height:310px;padding:30px 36px}.task-row{height:70px}.mini-map{height:220px}}@media(max-width:1150px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.app-body{margin-left:190px}.main-content{padding-left:22px;padding-right:22px}.dashboard-top{grid-template-columns:minmax(0,1.6fr) minmax(225px,1fr)}.dash-stats button{gap:9px;padding:13px}.stat-icon{width:36px;height:36px}.chapter-tile{width:49px;height:58px}.chapters,.graph-card,.tasks{padding-left:16px;padding-right:16px}.hero-course h2{font-size:26px}.study-hero{padding:23px}.dashboard-bottom,.dashboard-top{gap:14px}}@media(max-width:900px){.sidebar{transform:translate(-101%);transition:transform .2s;width:220px;z-index:60}.sidebar.open{transform:none}.app-body{margin-left:0}.mob-menu{display:flex;padding:5px}.nav-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;border:0;background:#16231a55;z-index:59}.crumb{margin-right:auto}.top-bar{height:54px;padding:0 17px}.workspace-title{margin-bottom:18px}.main-content{padding:22px 18px 40px}}@media(max-width:650px){.main-content{padding:18px 14px 32px}.top-actions{gap:4px}.top-actions button{font-size:12px;padding:7px}.crumb{font-size:12px;gap:4px}.top-bar{padding:0 10px;gap:7px}.workspace-title{align-items:flex-start}.workspace-title h1{font-size:28px}.workspace-title p{font-size:13px}.date-stamp{display:none}.dashboard-top,.dashboard-bottom{grid-template-columns:1fr}.study-hero{min-height:222px}.hero-course p{max-width:83%}.dash-stats{grid-template-columns:1fr 1fr;gap:9px;margin:13px 0}.dash-stats button{padding:12px 15px}.tasks{padding:15px 16px 8px}.task-row{height:49px}.chapter-tile{width:54px;height:58px}.section-cap h2{font-size:17px}.home .mini-map{height:179px}.task-track{margin:10px 0 2px}.shell-toast{width:max-content;bottom:15px}.student-btn{padding-bottom:max(16px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}@media print{.sidebar,.top-bar,.skip,.shell-toast,.nav-backdrop{display:none!important}.app-body{margin:0}.main-content{padding:0}}
