:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#283d36;background:#f7f8f4;font-size:14px;--orange:#d77923;--green:#367961;--muted:#74847a;--border:#e2e8df;--shadow:0 8px 28px #233d2406}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,.button{cursor:pointer;border:1px solid #dce4d8;border-radius:10px;padding:9px 15px;background:#fff;color:#456052;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.5}button:hover,.button:hover{background:#f0f5ed;border-color:#b9cbbc}button:disabled{opacity:.48;cursor:not-allowed}.primary,button.primary{background:#367961;border-color:#367961;color:#fff}.primary:hover{background:#29684f;color:#fff}.quiet{border-color:transparent;background:transparent}.danger{color:#ab5144}a{color:#397961}h1,h2,h3,h4,p{overflow-wrap:anywhere}h2{font-size:23px;letter-spacing:-.04em}h3{font-size:16px;margin:0 0 14px}h4{margin:8px 0}p{line-height:1.8}small,.note{font-size:12px;color:var(--muted);line-height:1.7}.topbar{height:74px;background:#fcfdf9;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 36px;gap:12px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#314b3d}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:#f7b557;color:#533b23;font-size:18px;border-radius:14px}.brand strong{font-size:18px;display:block}.brand small{display:block;font-size:10px;letter-spacing:.06em;margin-top:3px}.role-switch{display:flex;gap:4px;background:#edf1e9;padding:4px;border-radius:13px}.role-switch button{background:transparent;border:0;padding:7px 20px;color:#78887a}.role-switch button.active{background:#fff;color:#396b4e;box-shadow:0 2px 8px #39513212}.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:calc(100vh - 74px);max-width:1700px;margin:auto}aside{padding:40px 22px;background:#f2f5ec;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:28px}.eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:11px;color:#87937e}.welcome h1{font-size:23px;margin:10px 0}.welcome p{font-size:12px;color:var(--muted);margin:0}nav{display:grid;gap:9px}nav button{justify-content:flex-start;gap:12px;background:transparent;border:0;padding:13px 16px;font-weight:500}nav button span{font-size:17px;color:#93a88c}nav button.active{background:#fff;color:#326348;box-shadow:0 3px 10px #314c2d06}nav button.active span{color:#dc9b32}.device-card{margin-top:70px;padding:16px;background:#e9efdf;border:1px solid #dce6cf;border-radius:14px;display:grid;gap:6px}.device-card span{font-size:11px;color:#849274}.device-card strong{font-size:13px;font-weight:500}.device-card small{font-size:11px}.refresh{font-size:12px;justify-content:flex-start}.content{padding:34px clamp(20px,4vw,60px) 70px;min-width:0}.content-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.content-head h2{margin:7px 0 0;font-size:27px}#status{font-size:11px;color:#6f8c74;white-space:nowrap}#notice{font-size:13px;color:#54815d;margin:0 0 15px;min-height:0}#notice:empty{display:none}.error{color:#ad473d!important}#content{min-width:0}#content>section,#content>.cards,#content>.two,#content>.learning-layout,#content>.project-layout{margin-bottom:22px}.panel,.hero-card{border:1px solid var(--border);border-radius:17px;padding:23px;background:#fff;box-shadow:var(--shadow);min-width:0}.panel{margin-bottom:18px}.hero-card{background:#edf3e4;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:32px;margin-bottom:24px}.hero-card h2{margin:8px 0}.hero-card p{color:#718064;margin:8px 0 0}.hero-icon{font-size:64px;color:#dfac52;line-height:1}.companion-hero{background:linear-gradient(110deg,#eaf1df,#f8f6e9);border:1px solid #e2e7d6;border-radius:22px;display:flex;align-items:center;gap:30px;padding:10px 38px 20px;min-height:265px;margin-bottom:25px}.companion{width:230px;flex-shrink:0}.companion svg{width:100%;display:block;filter:drop-shadow(0 16px 15px #99753017)}.companion[data-mood=resting]{opacity:.75}.companion-hero h2{font-size:27px;margin:12px 0}.companion-hero p{color:#7c8b6e}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}.stage-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.stage-top h2,.stage-top h3{margin:0}.two,.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:17px}.work-card{padding:0;text-align:left;display:block;border-radius:17px;overflow:hidden;box-shadow:var(--shadow)}.work-card>div{padding:20px}.work-card h3{margin:9px 0}.work-card p{font-size:13px;color:var(--muted);margin:8px 0}.work-visual{height:145px;display:grid;place-items:center;background:#e9eedc;font-size:64px;color:#86a171}.kind-story{background:#f1e6cc;color:#c8994b}.kind-craft{background:#e6e9f4;color:#8e99c3}.kind-life{background:#f2e6df;color:#ce9e7d}.kind-classroom{background:#e2eef0;color:#7cabae}.meta{font-size:11px;color:#8b9888}.badge{display:inline-block;border-radius:8px;padding:5px 9px;font-size:11px;background:#edf3e5;color:#5b7c50;white-space:normal}.empty{text-align:center;padding:45px 24px;background:#fff;border:1px dashed #dbe4d4;border-radius:17px;color:#8a9784}.empty strong{display:block;color:#60785a;margin-bottom:10px}.empty p{font-size:13px}.wide{grid-column:1/-1}label{display:grid;gap:7px;color:#526450;font-size:13px;margin-bottom:13px}input,select,textarea{width:100%;min-width:0;border:1px solid #dce4d8;border-radius:9px;padding:10px 12px;background:#fcfdfa;color:#334d3e;outline:0}input:focus,textarea:focus,select:focus,button:focus-visible{border-color:#78a387;box-shadow:0 0 0 3px #88b88724}textarea{resize:vertical;min-height:80px;line-height:1.7}.check{display:flex;align-items:center;gap:9px}.check input,input[type=checkbox]{width:17px;height:17px;accent-color:#3e7f5e;flex-shrink:0;margin:0}.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-form input{flex:2;width:auto}.inline-form select{width:auto;flex:1}.switch-row,.info-row,.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf1e8;padding:15px 0;margin:0}.switch-row:first-child{border:0}.learning-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:start}.visual-panel{position:sticky;top:20px}.visual-canvas{background:#f7faf4;border:1px solid #e7eddf;border-radius:12px;padding:9px;overflow:hidden;min-width:0}.visual-canvas svg{display:block;width:100%;height:auto;max-height:450px}.controls{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.controls button{font-size:12px;padding:7px 10px}.controls label{flex:1;min-width:130px}.fact{color:#52805c;font-size:13px}.module-grid{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.module-grid button{font-size:12px}.messages{max-height:390px;overflow:auto;display:grid;gap:10px;padding:5px 2px 20px;scrollbar-width:thin}.message{max-width:92%;border-radius:12px;background:#f0f4eb;padding:10px 15px;width:fit-content}.message.mine{justify-self:end;background:#fff3dc}.message small{font-size:10px}.message p{white-space:pre-wrap;margin:4px 0;font-size:13px;line-height:1.8}.composer{border-top:1px solid #e9eee3;padding-top:14px}.composer textarea{min-height:70px}.composer .actions{margin-top:4px}.composer button{font-size:12px}.task-row{display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid #edf0e8;padding:12px 0}.task-title{display:grid;justify-content:start;text-align:left;padding:0}.task-title strong{font-size:13px}.task-title small{font-size:11px;font-weight:400}.task-row>button:last-child{font-size:12px}.steps{display:flex;list-style:none;padding:0;gap:8px;counter-reset:step;flex-wrap:wrap}.steps li{font-size:11px;border-radius:7px;padding:6px 10px;background:#f3f5f0;color:#94a08d}.steps li.current{background:#fff1d6;color:#bb8428}.steps li.done{background:#e9f3e3;color:#6c9460}.challenge,.hint,.question{padding:14px 16px;border-radius:11px;background:#fff5de;color:#9b722d;font-size:13px}.challenge p{margin:6px 0}.homework-item{padding:18px 0;border-top:1px solid #e8edde}.homework-review{padding:12px;border-top:1px solid #e8edde}.homework-review p{font-size:13px}.project-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0 25px}.project-header h2{font-size:30px;margin:6px 0}.project-header p{color:#849078;margin:5px 0}.project-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:22px}.story-pages{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:15px;margin:15px 0}.story-page{border:1px solid #e3e9dc;border-radius:13px;overflow:hidden;padding:12px}.story-page small{display:block;margin-top:10px}.story-page p{font-size:13px}.illustration{background:#f2f5e9;border-radius:11px;overflow:hidden}.illustration svg{width:100%;height:auto;max-height:260px;display:block}.story-page .actions button{font-size:11px;padding:5px 8px}.timeline article,.memory-row{border-top:1px solid #e6edde;padding:14px 0}.timeline p,.memory-row p{font-size:13px}.timeline button{padding:4px 0;font-size:11px}.entry-photo{max-width:100%;max-height:220px;object-fit:contain;border-radius:10px}.checklist-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #edf1e8;padding:10px 0}.checklist-row label{margin:0;flex:1}.checklist-row button{font-size:11px;padding:5px 8px}.selection{align-items:flex-start;font-size:12px;padding:7px 0}.ai-panel{background:#f4f7ee}.proposal{padding:15px;border:1px solid #dce7cf;border-radius:12px;margin:14px 0;background:#fff}.proposal b{font-size:12px;color:#719052}.proposal p{font-size:12px}.subnav{display:flex;gap:8px;overflow:auto;padding:2px 0 18px}.subnav button{white-space:nowrap;background:transparent}.subnav button.active{background:#e3edda;color:#4c7240;border-color:#d6e2cc}.shared-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}.shared-cards>section{padding:14px;border:1px solid #e4ecdb;border-radius:12px}.shared-cards p{font-size:13px}.card{background:#fff;border:1px solid var(--border);padding:19px;border-radius:14px}.skill-mounted{padding:12px;border-bottom:1px solid var(--border);display:flex;gap:8px;align-items:center;flex-wrap:wrap}.skill-option{padding:10px;border-bottom:1px solid var(--border)}.skill-option span{display:grid}.skill-option small{font-size:11px}.small-form{max-width:700px}.courseware-workspace{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr);gap:22px}.courseware-frame{aspect-ratio:16/9;overflow:hidden;position:relative;background:#eef3e7;border-radius:10px;width:100%}.courseware-frame iframe{width:1280px;height:720px;border:0;position:absolute;top:0;left:0;transform-origin:top left}.courseware-shelf{display:flex;gap:12px;overflow:auto;margin:20px 0}.courseware-shelf button{min-width:180px;display:grid;text-align:left}.courseware-view{min-width:0}fieldset{border:1px solid #dde6d5;border-radius:12px;padding:17px;margin-bottom:18px;min-width:0}legend{font-size:12px;color:#789168;padding:0 7px}details{margin:17px 0}summary{cursor:pointer;font-size:13px;color:#5d7c4e;margin-bottom:13px}dialog{max-width:600px;width:calc(100% - 32px);border:1px solid #dce6d2;border-radius:20px;padding:28px;color:#334d3e;box-shadow:0 20px 80px #20351c26}dialog::backdrop{background:#213b2c55;backdrop-filter:blur(5px)}#voicePlayer{position:fixed;bottom:18px;right:20px;z-index:20;max-width:calc(100vw - 40px)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.memory-row .check{font-size:11px}.memory-row button{padding:3px 0;font-size:11px}@media(min-width:1450px){.content{padding-left:65px;padding-right:65px}}@media(max-width:1100px){.shell{grid-template-columns:200px minmax(0,1fr)}.content{padding:28px 22px}.companion{width:170px}.companion-hero{gap:18px;padding:18px}.companion-hero h2{font-size:23px}.learning-layout{grid-template-columns:1fr}.visual-panel{position:static}.project-layout{grid-template-columns:1fr}.project-side{display:grid;grid-template-columns:1fr 1fr;gap:18px}.project-side>details{grid-column:1/-1}.courseware-workspace{grid-template-columns:1fr}}@media(max-width:700px){.topbar{height:66px;padding:0 15px}.brand small{display:none}.brand-mark{width:31px;height:31px;font-size:15px}.role-switch button{padding:6px 10px;font-size:12px}.topbar>.quiet{font-size:11px;padding:5px}.shell{display:block}aside{padding:10px 14px;border:0;border-bottom:1px solid var(--border);display:block}.welcome,.device-card,.refresh{display:none}nav{display:flex;gap:5px}nav button{padding:10px 11px;font-size:12px;gap:7px;flex:1;justify-content:center}nav button span{font-size:14px}.content{padding:24px 15px 45px}.content-head h2{font-size:24px}.companion-hero{flex-direction:column;text-align:center;padding:8px 18px 26px;gap:0}.companion{width:175px}.companion-hero h2{font-size:24px}.companion-hero .actions{justify-content:center}.panel,.hero-card{padding:19px;border-radius:14px}.hero-icon{font-size:40px}.hero-card h2{font-size:21px}.two,.form-grid,.project-side{grid-template-columns:1fr}.project-header{display:block}.project-header h2{font-size:25px}.project-header .actions{margin-top:20px}.cards{grid-template-columns:1fr}.work-visual{height:115px}.stage-top{align-items:center}.stage-top>h3{font-size:15px}.inline-form input{flex-basis:100%}.messages{max-height:350px}.story-pages{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.list-row{flex-wrap:wrap}.courseware-frame{border-radius:6px}#voicePlayer{bottom:10px;right:10px;max-width:calc(100vw - 20px)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.canvas svg{width:100%;height:auto;max-height:420px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}#coauthorDialog{max-width:1100px}.experiment-work{padding:16px 0;border-top:1px solid var(--border)}.coauthor-messages{max-height:280px;overflow:auto}pre{white-space:pre-wrap;overflow-wrap:anywhere}.shared-cards label{display:block}.shared-cards .selection{border:1px solid var(--border);border-radius:12px;padding:12px}@media(max-width:700px){.editor-grid{grid-template-columns:1fr}.experiment-work .shared-cards{grid-template-columns:1fr}}

.robot-screen{background:#15271f}.robot-screen .topbar,.robot-screen aside,.robot-screen .content-head,.robot-screen #notice{display:none}.robot-screen .shell{display:block;min-height:100dvh}.robot-screen .content{padding:0;display:grid;place-items:center;min-height:100dvh}.robot-display{width:min(100vw,280px);height:min(100dvh,280px);text-align:center;color:#f9f4dc;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px}.robot-display .companion{width:170px}.robot-display p{font-size:16px;line-height:1.5;margin:0 0 8px;max-width:235px}.robot-display .device-indicator{font-size:10px;color:#a3bc8d}.device-back{display:block;margin:30px auto 0;background:transparent;color:#c6d6b1;border-color:#3c5847}@media(max-width:320px){.robot-screen .device-back{display:none}}


/* Coucou / Mochi — shared local prototype character (COUCOU-NOTICE.md). */
.companion svg{filter:none}
.companion .mochi-eyes{display:none}
.companion[data-mood=ready] [data-expression=ready],.companion[data-mood=listening] [data-expression=listening],.companion[data-mood=thinking] [data-expression=thinking],.companion[data-mood=speaking] [data-expression=speaking],.companion[data-mood=resting] [data-expression=resting]{display:block}
.companion-hero{background:#eff1ed;border-color:#e1e5de}
.brand-mark{background:#232624;border-radius:13px;overflow:hidden}
.brand-mark .companion{width:50px;flex-shrink:0}
.robot-screen{background:#111310}
.robot-display .companion{width:180px}
.robot-display .eyebrow{color:#b5bbae}
@media(max-width:700px){.brand-mark .companion{width:42px}}
