:root{color-scheme:light;--ink:#213d35;--green:#286c54;--muted:#6c7c72;--line:#dce3d7;--paper:#fffef9;--bg:#f3f4ec;font-family:'Avenir Next','PingFang SC',sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button,.button{min-height:44px;border:1px solid var(--line);background:var(--paper);padding:10px 16px;border-radius:12px;cursor:pointer;font-weight:600}button:hover,.button:hover{border-color:var(--green);background:#eef4eb}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #d99d43;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#1c5340}.danger{color:#a14432}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:var(--paper)}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);font-size:23px;font-weight:800}.brand:first-letter{background:var(--green)}.brand span{font-size:18px}.local{color:var(--muted);font-size:13px}.shell{max-width:1400px;margin:auto;display:grid;grid-template-columns:235px 1fr;min-height:calc(100vh - 88px)}aside{padding:42px 26px;border-right:1px solid var(--line)}.eyebrow{font-size:12px;letter-spacing:.15em;color:var(--muted);margin:0 0 24px}nav{display:grid;gap:10px}nav button{border:0;background:transparent;text-align:left;padding:15px 20px}nav button.active{background:#dfead9;color:#24563d}.side-note{font-size:13px;color:var(--muted);line-height:1.9;margin:70px 20px 0}main{padding:42px clamp(20px,4vw,60px);min-width:0}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px;flex-wrap:wrap}h1{font-size:34px;letter-spacing:-.04em;margin:5px 0 12px}h2{font-size:21px;margin:0 0 14px}p{line-height:1.7}small,.muted{color:var(--muted)}.hero{background:#e3ebda;border:1px solid #d5dfc9;border-radius:20px;padding:28px 30px;display:grid;grid-template-columns:1fr auto;gap:24px;margin:22px 0 32px}.hero h2{font-size:26px}.hero p{margin:10px 0 0}.count{width:102px;height:102px;border:7px solid #c3d4b3;border-radius:50%;display:grid;place-content:center;text-align:center;font-size:24px;font-weight:700}.count small{font-size:12px;margin-top:3px}.task-list{display:grid;gap:14px}.task{display:grid;grid-template-columns:48px 1fr auto;gap:18px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:22px}.task.done{background:#edf2e8}.task .number{font-size:23px;color:#8a9a86;font-weight:600}.task h3{margin:9px 0;font-size:19px}.task p{margin:4px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}.tag{display:inline-block;background:#f2e7d0;color:#795b30;font-size:12px;border-radius:6px;padding:4px 9px;margin-right:7px}.tag.math{background:#dfebf1;color:#426376}.tag.english{background:#e8e3f3;color:#69567f}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.task-actions{max-width:240px;justify-content:flex-end}.empty{text-align:center;border:1px dashed #c4cfbc;border-radius:18px;padding:45px 20px;background:#fafbf5}.empty .sprout{font-size:40px}.panel{padding:26px;background:var(--paper);border:1px solid var(--line);border-radius:16px;margin:16px 0}.catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.catalog article{border-top:2px solid #c8d6bc;padding:18px 8px}.catalog h3{font-size:16px}.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.filters label{font-size:13px;min-width:130px}input,select,textarea{border:1px solid #c7d2c1;border-radius:9px;padding:11px 12px;background:white;width:100%;min-height:44px}textarea{min-height:95px;resize:vertical}input[type=checkbox]{width:20px;min-height:20px}input[type=date]{width:auto;max-width:100%}label{display:block;margin:0 0 16px;font-size:14px}label input,label select,label textarea{margin-top:7px}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mistake{padding:25px;background:var(--paper);border:1px solid var(--line);border-radius:15px;margin:14px 0;overflow-wrap:anywhere}.mistake pre{font:inherit;white-space:pre-wrap;line-height:1.8}.mistake img{max-width:300px;max-height:230px}.review-log{font-size:13px;line-height:1.8;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:20px;padding:26px;width:min(620px,94vw);max-height:90dvh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#1c302b88}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head button{border:0;font-size:24px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#203e32;color:white;border-radius:12px;padding:14px 24px;z-index:20;display:none;max-width:90vw}#fatal{position:fixed;bottom:0;background:#fff0d1;color:#783923;width:100%;padding:20px;z-index:30}#study{position:fixed;inset:0;z-index:10;background:var(--bg)}#study[hidden]{display:none}.studybar{padding:12px 20px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-height:80px;border-bottom:1px solid var(--line)}#capture-note{font-size:12px;color:var(--muted);flex:1}iframe{width:100%;height:calc(100dvh - 90px);border:0}.file{padding:20px 0}#print-area{display:none}details{margin-top:15px}summary{cursor:pointer;padding:12px 0}@media(max-width:800px){header{height:70px;padding:0 20px}.shell{display:block}aside{padding:12px;border-right:0;border-bottom:1px solid var(--line)}aside .eyebrow,.side-note{display:none}nav{display:flex;gap:4px}nav button{flex:1;text-align:center;padding:12px 4px;font-size:13px}main{padding:26px 18px}h1{font-size:29px}.task{grid-template-columns:30px 1fr;padding:18px;gap:12px}.task-actions{grid-column:2;max-width:none;justify-content:flex-start}.hero{padding:22px;gap:10px}.count{width:80px;height:80px;font-size:20px}.hero h2{font-size:21px}.studybar{padding:10px;gap:6px}.studybar strong{width:100%}iframe{height:calc(100dvh - 150px)}}@media(max-width:420px){.local{font-size:10px}.brand span{font-size:15px}.two{grid-template-columns:1fr}.hero{grid-template-columns:1fr auto;padding:18px}.filters label{width:100%}.task-actions button{font-size:13px;padding:10px 12px}}@media print{body>*{display:none!important}#print-area{display:block!important;background:white;color:black;font-size:12pt}#print-area article{break-inside:avoid;border-bottom:1px solid #999;padding:14px 0}#print-area img{max-width:240px;max-height:200px}#print-area pre{white-space:pre-wrap;font:inherit}#print-area .space{height:65px}#print-area h1{font-size:22pt}@page{size:A4;margin:16mm}}
/* Four child-friendly spaces. Native CSS; no remote fonts or assets. */
body{--soft:#e3eddb;--strong:#c6d9b8;--radius:20px}button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}h1{letter-spacing:-.025em}.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:var(--green);color:white;border-radius:14px;font-size:23px}.header-tools{display:flex;align-items:center;gap:20px}.header-tools button{font-size:14px;background:var(--soft);border:0}.theme-studio{max-width:1280px;margin:22px auto;padding:0 28px}.theme-studio summary{display:flex;align-items:center;justify-content:space-between;gap:15px;font-weight:700;font-size:18px;min-height:48px;list-style:none}.theme-studio summary:after{content:'收起 −';font-size:12px;font-weight:500;color:var(--muted)}.theme-studio:not([open]) summary:after{content:'展开 ＋'}.theme-studio summary small{margin-left:auto;font-weight:400;font-size:13px}.theme-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:12px}.theme-option{text-align:left;display:block;padding:8px 8px 14px;border:2px solid var(--line);background:var(--paper);border-radius:18px;min-width:0;overflow:hidden}.theme-option:hover{background:var(--paper);transform:translateY(-2px)}.theme-option[aria-pressed=true]{border-color:var(--green);box-shadow:0 0 0 3px var(--soft)}.theme-name{display:flex;align-items:center;gap:8px;padding:12px 6px 5px;font-size:17px}.theme-name>small{font-size:11px;font-weight:500}.chosen{margin-left:auto;font-size:11px;border-radius:6px;background:var(--green);color:white;padding:3px 6px;visibility:hidden}.theme-option[aria-pressed=true] .chosen{visibility:visible}.theme-description{display:block;padding:0 6px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.6}.theme-tip{font-size:12px;color:var(--muted);margin:12px 0 0}.mini-scene{height:104px;position:relative;display:block;border-radius:11px;overflow:hidden}.mini-icon{position:absolute;font-size:49px;right:20px;top:17px;z-index:1}.mini-scene i{position:absolute;display:block;left:16px;top:20px;height:12px;width:43%;border-radius:5px;background:#ffffffc9}.mini-scene i:nth-of-type(2){top:42px;width:37%}.mini-scene i:nth-of-type(3){top:64px;width:40%}.mini-forest{background:#d8e9c9}.mini-forest:after{content:'';position:absolute;width:160px;height:95px;right:-35px;bottom:-54px;background:#97bc84;border-radius:50%}.mini-space{background:#28375d;background-image:radial-gradient(#fff8 1px,transparent 1px);background-size:20px 20px}.mini-space i{background:#c6d5f1}.mini-library{background:repeating-linear-gradient(0deg,#f5e8cd 0 19px,#e3d3b5 19px 20px)}.mini-library i{background:#fffaf1;border-left:4px solid #bc7a49}.mini-blocks{background:#fbdf8e}.mini-blocks i{width:48px;height:32px;top:16px;background:#91cbd2;box-shadow:2px 3px 0 #304958}.mini-blocks i:nth-of-type(2){left:72px;top:16px;width:48px;background:#f7a297}.mini-blocks i:nth-of-type(3){left:16px;top:56px;width:104px;height:26px;background:#f9f6e9}.shell{border-top:1px solid var(--line)}nav button.active{background:var(--soft);color:var(--ink)}.hero{background:var(--soft);border-color:var(--strong);position:relative;overflow:hidden;min-height:190px;padding-right:200px}.hero:after{content:attr(data-art);position:absolute;font-size:96px;right:30px;bottom:22px;line-height:1.2;filter:drop-shadow(0 8px 0 #00000008);pointer-events:none}.count{border-color:var(--strong);background:#ffffff55;flex-shrink:0}.hero h2{line-height:1.5}.task{border-radius:var(--radius)}.empty{padding:38px 20px;background:var(--paper)}.empty .sprout{font-size:62px;margin-bottom:14px}.task.done{background:var(--soft)}.task.done .number{color:var(--green)}.task h3{line-height:1.5}.task .number{width:42px;height:42px;display:grid;place-items:center;background:var(--soft);border-radius:50%;font-size:20px;color:var(--green)}
body[data-theme=forest]{--ink:#244532;--green:#356c3c;--muted:#60765e;--line:#d5dfca;--paper:#fffef7;--bg:#f4f6e9;--soft:#e2ecd4;--strong:#c0d5a8;background:var(--bg)}body[data-theme=forest] .hero{border-radius:26px 26px 64px 26px}body[data-theme=forest] .task{border-left:5px solid #bdd09d}body[data-theme=forest] aside{background:#edf1e1}body[data-theme=forest] .side-note{border-top:2px dotted #b5c8a7;padding-top:24px}
body[data-theme=space]{--ink:#263b60;--green:#395eaa;--muted:#627494;--line:#d0dced;--paper:#fcfdff;--bg:#edf2fb;--soft:#e0e9fa;--strong:#b2c5e8;--radius:22px;background:var(--bg)}body[data-theme=space] header{background:#233454;color:#fff}body[data-theme=space] header .brand{color:#fff}body[data-theme=space] header .local{color:#cbd7ef}body[data-theme=space] .shell{display:block}body[data-theme=space] aside{padding:14px 40px;border-right:0;border-bottom:1px solid var(--line);background:var(--paper)}body[data-theme=space] aside .eyebrow,body[data-theme=space] .side-note{display:none}body[data-theme=space] nav{display:flex;gap:14px;max-width:1000px;margin:auto}body[data-theme=space] nav button{flex:1;text-align:center;border-radius:24px}body[data-theme=space] main{max-width:1120px;margin:auto}body[data-theme=space] .hero{background:#283c65;color:#fff;border:0;background-image:radial-gradient(#ffffff60 1px,transparent 1px);background-size:31px 31px;border-radius:28px}body[data-theme=space] .hero .count{background:#ffffff10;border-color:#7f9bcf}body[data-theme=space] .hero small{color:#d2e1fc}body[data-theme=space] .task .number{border:2px solid var(--strong);border-radius:14px}body[data-theme=space] .task{box-shadow:0 4px 0 #d8e1f0}
body[data-theme=library]{--ink:#57412e;--green:#97603c;--muted:#87715e;--line:#e5d6bd;--paper:#fffdf6;--bg:#f6eedf;--soft:#f0e3c9;--strong:#d9bd91;--radius:10px;background:var(--bg)}body[data-theme=library] aside{background:#eee2cc}body[data-theme=library] .hero{border-radius:8px 26px 26px 8px;border-left:8px solid #c29a65;background:repeating-linear-gradient(0deg,#f7edd9 0 31px,#ebdfc6 31px 32px);box-shadow:4px 5px 0 #e6d7bb}body[data-theme=library] .count{border-radius:14px;border-width:2px;background:var(--paper)}body[data-theme=library] .task{border-left:5px solid #bf8f59;box-shadow:3px 3px 0 #e9dec9}body[data-theme=library] .task .number{border-radius:4px;background:#f0e1c2;color:#7c542e}body[data-theme=library] .task-list{gap:19px}body[data-theme=library] .empty{background:repeating-linear-gradient(0deg,#fffdf6 0 31px,#f1e8d7 31px 32px)}body[data-theme=library] nav button.active{border-left:3px solid var(--green);border-radius:0 12px 12px 0}
body[data-theme=blocks]{--ink:#263e4d;--green:#246a79;--muted:#5b737c;--line:#cad9da;--paper:#fffef8;--bg:#f3f5ef;--soft:#deedf0;--strong:#a9ccd1;--radius:18px;background:var(--bg)}body[data-theme=blocks] .shell{display:block}body[data-theme=blocks] aside{padding:15px 30px;border:0}body[data-theme=blocks] aside .eyebrow,body[data-theme=blocks] .side-note{display:none}body[data-theme=blocks] nav{display:flex;gap:12px;max-width:1100px;margin:auto}body[data-theme=blocks] nav button{flex:1;text-align:center;background:#fffdf5;border:2px solid #304958;box-shadow:0 3px 0 #304958;border-radius:12px}body[data-theme=blocks] nav button.active{background:#ffdc79}body[data-theme=blocks] main{max-width:1200px;margin:auto}body[data-theme=blocks] .hero{background:#ffe5a0;border:2px solid #304958;box-shadow:0 5px 0 #304958;border-radius:22px}body[data-theme=blocks] .count{background:#fff7df;border:3px solid #d8b257;border-radius:20px}body[data-theme=blocks] .task-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}body[data-theme=blocks] .task{grid-template-columns:42px minmax(0,1fr);align-items:start;border:2px solid #304958;box-shadow:0 4px 0 #304958;padding:22px}body[data-theme=blocks] .task:nth-child(3n+1){background:#e7f2f3}body[data-theme=blocks] .task:nth-child(3n+2){background:#fff0e8}body[data-theme=blocks] .task:nth-child(3n){background:#f1efd9}body[data-theme=blocks] .task-actions{grid-column:1/-1;max-width:none;justify-content:flex-start;padding-top:10px}body[data-theme=blocks] .task .number{background:#ffdb7e;color:#334a52;border:2px solid #304958;border-radius:12px}body[data-theme=blocks] .task-list>.empty{grid-column:1/-1}body[data-theme=blocks] .primary{box-shadow:0 2px 0 #17434c}
@media(max-width:1000px){.hero{padding-right:135px}.hero:after{font-size:70px;right:20px}.theme-options{gap:10px}.theme-description{font-size:11px}.theme-name{font-size:15px;gap:5px}}
@media(max-width:800px){.theme-studio{padding:0 18px;margin:12px auto}.theme-studio summary{font-size:16px}.theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}.mini-scene{height:76px}.mini-icon{font-size:39px;top:10px}.mini-scene i{top:13px;height:9px}.mini-scene i:nth-of-type(2){top:31px}.mini-scene i:nth-of-type(3){top:49px}.theme-name{padding-top:9px}.theme-studio summary small{display:none}.theme-description{font-size:11px}.header-tools{gap:8px}.header-tools .local{display:none}.header-tools button{font-size:12px;padding:9px 11px}.brand-mark{width:34px;height:34px;font-size:20px}.hero{padding:22px 22px 90px;grid-template-columns:1fr auto;min-height:230px}.hero:after{font-size:60px;bottom:10px;right:30px}.hero:before{content:attr(data-caption);position:absolute;bottom:30px;left:22px;font-size:13px;opacity:.8}.task .number{width:30px;height:30px;font-size:16px}body[data-theme=space] aside,body[data-theme=blocks] aside{padding:12px}body[data-theme=space] nav,body[data-theme=blocks] nav{gap:6px}body[data-theme=blocks] .task-list{grid-template-columns:1fr}body[data-theme=blocks] .task{grid-template-columns:32px 1fr}body[data-theme=blocks] nav button{font-size:12px;padding:10px 3px}body[data-theme=space] main,body[data-theme=blocks] main{padding:26px 18px}.theme-option:hover{transform:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
body{color:var(--ink)}input,select,textarea{border-color:var(--line)}
.week-days{display:grid;gap:8px}.week-days label{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:18px}.three-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.slot{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--paper);overflow-wrap:anywhere}.gap{background:#fff5dd!important;border:1px dashed #c29b54!important;color:#6c512a}.week-preview{padding:12px 0 24px;border-bottom:1px solid var(--line)}.source-question{display:block;max-width:100%;height:auto;margin:18px 0;border:1px solid var(--line);background:white}.math-question details img{max-width:100%}.question-text{white-space:pre-wrap;font:inherit}.panel>img{max-width:100%;height:auto}.math-question{overflow-wrap:anywhere}@media(max-width:800px){.week-days label{grid-template-columns:1fr;gap:4px}.three-slots{grid-template-columns:1fr}.week-days select{min-width:0}.math-question{padding:18px}}

/* Markdown math questions and automatically graded answers. */
.question-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.math-diagram{overflow-x:auto;white-space:pre;font-family:monospace;line-height:1.6}
.math-table{overflow-x:auto;margin:16px 0}.math-table td{border:1px solid #ccd7d0;padding:10px 18px;text-align:center}
.math-options{border:0;padding:0;margin:18px 0}.math-options label{display:flex;align-items:flex-start;gap:12px;padding:14px;background:var(--paper,#f5f8f2);border:1px solid #cbd9d1;border-radius:12px;cursor:pointer}.math-options input{width:auto;margin-top:5px;flex-shrink:0}.math-options span{white-space:pre-wrap;overflow-wrap:anywhere}
.math-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.math-inputs input{width:100%;min-width:0}.math-feedback{padding:16px;border:2px solid #80b5a2;border-radius:14px;margin:18px 0}

/* Daily subject entry points. */
.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.subject-card{display:flex;flex-direction:column;align-items:flex-start;gap:18px;text-align:left;min-width:0;min-height:310px;padding:28px 24px;border:2px solid #26334c;border-radius:24px;box-shadow:5px 6px 0 #26334c;color:#26334c}
.subject-card.subject-0{background:#ffdf85}.subject-card.subject-1{background:#c9c3fa}.subject-card.subject-2{background:#aee3d5}
.subject-card:hover{transform:translateY(-3px);border-color:#26334c;filter:brightness(1.03)}
.subject-icon{font-size:40px}.subject-card strong{font-size:32px}.subject-description{font-weight:500;line-height:1.6;overflow-wrap:anywhere}.subject-card small{color:#39445c}.subject-enter{margin-top:auto;font-size:16px}
@media(max-width:1000px){.subject-grid{gap:16px}.subject-card{padding:24px 18px}}
@media(max-width:650px){.subject-grid{grid-template-columns:1fr}.subject-card{min-height:210px;gap:12px}.subject-icon{font-size:30px}.subject-card strong{font-size:27px}}

.week-timeline{margin:0 0 30px}.week-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.week-toolbar strong{font-size:14px}.week-track{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;position:relative}.week-track:before{content:'';position:absolute;left:20px;right:20px;top:50%;height:3px;background:var(--strong)}.timeline-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 6px;border:2px solid #304958;background:var(--paper);box-shadow:0 3px 0 #304958}.timeline-day strong{font-size:19px}.timeline-day span{font-size:13px;white-space:nowrap}.timeline-day small{font-size:11px;min-height:16px}.timeline-day[aria-pressed=true]{background:#ffdc79;transform:translateY(-3px);box-shadow:0 6px 0 #304958}.daily-title{margin-bottom:22px;font-size:20px}
@media(max-width:650px){.week-toolbar{gap:10px}.week-toolbar>strong{order:-1;width:100%;text-align:center}.week-toolbar button{padding:8px 10px;font-size:12px}.week-track{gap:5px}.timeline-day{padding:12px 1px;gap:8px;border-radius:10px}.timeline-day strong{font-size:14px}.timeline-day span{font-size:10px}.timeline-day small{font-size:10px}.daily-title{font-size:18px}}

.record-export{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:1100px;margin:20px auto 0}.record-export small{font-size:12px}

.subject-export{margin:0}.subject-export summary{font-size:14px}.subject-export p{font-size:12px;max-width:580px}

.math-source-figure{margin:18px 0}.math-source-figure img{display:block;width:100%;height:auto}.math-source-figure figcaption,.answer-unit-hint{display:block;font-size:13px;color:#526b73;margin:6px 0}
