@import url('/web/coach.css');
:root{color-scheme:light;--paper:#faf7ee;--panel:#fffdf7;--ink:#254333;--muted:#778273;--forest:#2e6748;--forest-dark:#204c34;--sage:#e9eedc;--sage-deep:#d8e2c8;--gold:#e7b653;--apricot:#f1caa2;--line:#e6e8db;--red:#a44636;--shadow:0 12px 35px #344b3510;font-family:'Microsoft YaHei','PingFang SC',system-ui,sans-serif;font-size:15px;line-height:1.6;background:var(--paper);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 85% 5%,#e7eddb80,transparent 40%),var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #dcad50;outline-offset:4px}input,select,textarea{max-width:100%}[hidden]{display:none!important}svg,img{max-width:100%;display:block}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,3.2vw,46px);line-height:1.35;letter-spacing:-1.2px;font-weight:750}h2{font-size:25px;line-height:1.4}h3{font-size:18px}p{color:var(--muted)}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--forest);text-transform:uppercase;margin-bottom:12px}.app-header{max-width:1360px;margin:0 auto;padding:24px 48px;display:flex;justify-content:space-between;align-items:center;gap:18px}.brand{display:flex;gap:12px;align-items:center;font-weight:750;font-size:17px;line-height:1.3}.brand-mark{font-size:25px;background:var(--forest);color:#f5dc99;width:42px;height:46px;border-radius:16px 16px 16px 5px;display:grid;place-items:center}.brand-second{display:block;font-size:12px;font-weight:500;letter-spacing:5px;margin-top:3px}.app-header nav{display:flex;gap:30px;align-items:center;font-size:13px;color:var(--muted)}nav a.active{color:var(--ink);font-weight:700}nav a.active:after{content:'';display:block;height:3px;width:16px;border-radius:4px;background:var(--gold);margin:4px auto -7px}.app-header nav a:last-child{border:1px solid #dbe1cf;border-radius:30px;padding:9px 16px}.app-footer{max-width:1250px;margin:25px auto 0;display:flex;justify-content:space-between;padding:22px 30px 30px;font-size:11px;letter-spacing:1px;color:#8b9586}#app{max-width:1240px;margin:10px auto 0;padding:15px 26px 20px;min-height:70vh}.loading-shell{padding:140px 20px;text-align:center;color:var(--muted)}.loading-dot{display:inline-block;width:9px;height:9px;background:var(--forest);border-radius:50%;margin-right:10px;animation:pulse 1s ease-in-out 3}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:36px;align-items:center;padding:24px 0 40px}.hero-copy{padding:10px 0 0 12px}.hero-copy h1{margin-bottom:20px}.hero-copy h1 em{font-style:normal;position:relative;white-space:nowrap}.hero-copy h1 em:after{content:'';position:absolute;left:0;right:-5px;bottom:-3px;height:7px;border-radius:50%;background:#eacb81;z-index:-1}.hero-copy>p{max-width:400px;font-size:14px;line-height:1.95}.tagline{display:flex;gap:14px;align-items:center;font-size:11px;color:var(--muted);margin:22px 0 24px;flex-wrap:wrap}.tagline span{display:flex;align-items:center;gap:5px}.tagline b{color:var(--forest)}.button{border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 19px;font-size:13px;font-weight:600;min-height:46px;transition:background .2s,transform .2s}.button:hover:not(:disabled){transform:translateY(-1px);background:#f0f2e6}.button.primary{background:var(--forest);border-color:var(--forest);color:#fffdf2;box-shadow:0 4px 0 #1b442b18}.button.primary:hover:not(:disabled){background:var(--forest-dark)}.button.large{font-size:15px;min-height:54px;padding:15px 24px}.button.soft{background:var(--sage);border-color:var(--sage)}.button.ghost{border-color:transparent;background:transparent;box-shadow:none;color:var(--muted)}.button.danger{color:var(--red);border-color:#edd7d0}.button.full{width:100%}.button.small{font-size:12px;min-height:35px;padding:7px 12px}.hero-actions,.actions-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hero-note{font-size:11px!important;margin-top:16px!important}.hero-scene{position:relative;min-height:358px;border-radius:48% 48% 12% 12%;background:#e5ecd6;isolation:isolate;overflow:hidden;padding:32px 20px 0}.hero-scene:before{content:'';position:absolute;width:140%;height:150px;left:-20%;bottom:-40px;background:#d2dfbb;border-radius:50%;z-index:-1}.hero-scene .hero-sun{position:absolute;right:32px;top:30px;width:67px;height:67px;background:#f1d693;border-radius:50%;box-shadow:0 0 0 14px #f1d69324}.hero-scene yiyi-coach{position:absolute;left:-15px;bottom:-55px;width:63%;z-index:1}.hero-scene .hero-word{position:absolute;right:17px;top:76px;width:43%;transform:rotate(9deg);background:#fffaf0e8;border:8px solid #fffaf0;border-radius:26px;box-shadow:0 9px 0 #a7b59428;padding:13px;text-align:center}.hero-word .word-picture{height:135px}.hero-word strong{font-size:20px;letter-spacing:1px}.hero-float{position:absolute;left:24px;top:44px;border-radius:18px;background:#fffaf0;padding:9px 14px;font-size:12px;transform:rotate(-7deg);z-index:3;box-shadow:var(--shadow)}.hero-float b{color:var(--gold)}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:12px 0 20px}.section-heading h2{font-size:21px;margin:0}.section-heading p{margin:4px 0 0;font-size:12px}.source-pick{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.source-pick select{border:1px solid var(--line);background:var(--panel);padding:8px;border-radius:10px;color:var(--ink);max-width:240px;font-size:12px}.word-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.word-preview{border-radius:24px;background:var(--panel);padding:20px 22px 16px;box-shadow:var(--shadow);border:1px solid #ececdf;position:relative;overflow:hidden}.word-preview .word-picture{height:150px;margin:0 auto 9px}.word-picture{display:flex;align-items:center;justify-content:center}.word-picture>svg{height:100%;width:100%;max-width:260px}.word-preview .word-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.word-meta strong{font-size:18px}.word-meta small{color:var(--muted)}.audio-round{border:0;border-radius:50%;background:var(--sage);width:36px;height:36px;display:grid;place-items:center;color:var(--forest);font-size:18px;flex-shrink:0}.word-number{position:absolute;left:17px;top:13px;color:#aab39e;font-size:11px;letter-spacing:1px}.quiet-banner{display:flex;justify-content:space-between;gap:16px;align-items:center;border-radius:18px;background:#ecefdc80;padding:15px 20px;margin-top:22px;font-size:12px;color:var(--muted)}.quiet-banner strong{color:var(--ink)}.badge{display:inline-block;font-size:10px;line-height:1.6;border-radius:20px;padding:3px 9px;background:var(--sage);color:var(--forest);white-space:nowrap}.badge.review{background:#f7e8d0;color:#956b2a}.badge.off{background:#ecece6;color:#7a8075}.badge.error{background:#f8e2dc;color:var(--red)}.empty-state{padding:60px 24px;text-align:center;border:1px dashed #ccd7c0;border-radius:24px;background:#ffffff65}.empty-state h2{font-size:21px}.empty-state p{max-width:520px;margin:0 auto 20px;font-size:13px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:25px;box-shadow:var(--shadow)}.parent-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:15px 0 20px}.parent-title h1{font-size:31px;margin:0}.parent-title p{margin:7px 0 0;font-size:13px}.parent-tabs{display:flex;gap:4px;flex-wrap:wrap;background:var(--sage);padding:5px;border-radius:15px;width:fit-content;margin-bottom:22px}.parent-tab{border:0;border-radius:11px;padding:10px 20px;background:transparent;color:var(--muted);font-size:13px}.parent-tab.active{background:var(--panel);color:var(--ink);box-shadow:0 2px 8px #263e2410}.parent-grid{display:grid;grid-template-columns:340px 1fr;gap:20px;align-items:start}.upload-zone{border:1.5px dashed #c9d6bd;border-radius:19px;background:#f5f6ed;text-align:center;padding:24px 18px;margin-bottom:18px;position:relative}.upload-zone.dragging{background:var(--sage-deep)}.upload-symbol{display:grid;place-items:center;font-size:32px;color:var(--forest);margin:0 auto 10px}.upload-zone h3{margin:0 0 6px}.upload-zone p{font-size:11px;margin:0 0 15px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);margin-bottom:16px}.field input,.field select,.field textarea{border:1px solid #dce1d3;border-radius:11px;padding:11px 13px;background:#fffef9;color:var(--ink);width:100%;font-size:14px;min-height:44px}.field input[type=checkbox]{min-height:auto;width:auto}.check-field{display:flex;align-items:flex-start;gap:9px;color:var(--muted);font-size:12px;line-height:1.8;margin:10px 0 17px}.check-field input{margin-top:5px;width:17px;height:17px;flex-shrink:0;accent-color:var(--forest)}.pipeline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:18px 0}.pipeline span{display:flex;gap:8px;align-items:center}.pipeline span:not(:last-child):after{content:'→';color:#a8b59e}.progress-track{height:7px;background:#e8eddf;border-radius:8px;overflow:hidden}.progress-track>span{display:block;height:100%;background:var(--forest);transition:width .6s}.source-row{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);align-items:center}.source-row:last-child{border-bottom:0}.source-row h3{font-size:14px;margin:0 0 5px;overflow-wrap:anywhere}.source-row p{font-size:11px;margin:0}.source-row .button{flex-shrink:0}.unit-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:15px}.unit-toolbar input{border:1px solid var(--line);border-radius:11px;padding:10px 13px;background:var(--panel);font-size:13px;min-width:190px}.unit-list{display:grid;gap:9px}.unit-row{display:grid;grid-template-columns:56px 1fr auto;gap:14px;padding:13px 16px;border:1px solid var(--line);background:var(--panel);border-radius:16px;align-items:center}.unit-thumb{width:54px;height:54px;background:#f2f4e9;border-radius:13px;padding:4px}.unit-row h3{font-size:15px;margin:0}.unit-row p{font-size:11px;margin:2px 0 0}.unit-row-actions{display:flex;gap:7px;align-items:center}.unit-row .reason{color:#9a7440;font-size:11px;max-width:520px}.review-note{font-size:12px;line-height:1.8;border-radius:14px;background:#f8edda;padding:13px 17px;color:#8b6937;margin-bottom:17px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .panel h3{font-size:17px}.provider-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:11px 0;font-size:12px}.settings-note{font-size:11px;line-height:1.8;color:var(--muted)}.settings-details summary{font-size:12px;color:var(--forest);cursor:pointer;margin:15px 0}.records-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px}.stat{padding:19px;background:var(--panel);border:1px solid var(--line);border-radius:18px}.stat strong{font-size:29px;font-weight:600;display:block}.stat span{font-size:12px;color:var(--muted)}.record-item{border:1px solid var(--line);border-radius:18px;padding:20px;background:var(--panel);margin-bottom:12px}.record-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.record-head h3{margin:0;font-size:17px}.record-head p{font-size:11px;margin:2px 0 0}.record-item audio{max-width:100%;width:300px;height:36px}.record-observation{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0}.stale{opacity:.6}.record-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.dialog{border:1px solid var(--line);border-radius:26px;padding:30px;max-width:420px;width:calc(100% - 32px);background:var(--panel);color:var(--ink);box-shadow:0 24px 90px #213b3333}.dialog::backdrop{background:#223a2a66;backdrop-filter:blur(4px)}.dialog h2{margin-bottom:10px}.dialog p{font-size:13px}.dialog-close{position:absolute;right:16px;top:12px;background:transparent;border:0;font-size:27px;color:var(--muted)}.wide-dialog{max-width:650px;max-height:90vh}.edit-layout{display:grid;grid-template-columns:130px 1fr;gap:22px}.edit-layout .word-picture{height:160px}.edit-time{display:grid;grid-template-columns:1fr 1fr;gap:12px}.error-text{font-size:12px!important;color:var(--red)!important;min-height:18px}.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:30px;max-width:calc(100% - 30px);background:#254333;color:#fffdf3;padding:12px 20px;border-radius:15px;font-size:13px;box-shadow:0 10px 25px #223b2230;z-index:1000}.lesson-shell{max-width:930px;margin:5px auto}.lesson-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px;font-size:12px;color:var(--muted)}.lesson-progress{display:flex;gap:5px;max-width:450px;margin:0 auto 18px}.lesson-progress span{height:5px;background:#e0e6d4;border-radius:8px;flex:1}.lesson-progress span.done{background:var(--forest)}.lesson-progress span.current{background:var(--gold)}.lesson-card{background:var(--panel);border:1px solid var(--line);border-radius:32px;box-shadow:var(--shadow);padding:24px 30px;position:relative;overflow:hidden}.lesson-title{text-align:center;margin-bottom:10px}.lesson-title h1{font-size:30px;margin:4px 0 9px}.lesson-title p{font-size:13px;margin:0}.lesson-scene{display:grid;grid-template-columns:40% 60%;align-items:center;position:relative;min-height:240px}.lesson-scene yiyi-coach{width:100%;height:255px;--coach-ink:var(--ink);--coach-muted:var(--muted)}.lesson-target{text-align:center;position:relative}.lesson-target .word-picture{height:215px}.lesson-word{font-size:32px;letter-spacing:1px;font-weight:700;margin-top:2px}.lesson-meaning{font-size:13px;color:var(--muted);margin-top:3px}.lesson-original{text-align:center;font-size:11px;color:#8b957f;margin:5px 0 16px}.lesson-controls{display:flex;flex-direction:column;align-items:center;gap:12px;padding:12px 0 0}.lesson-controls .button.large{min-width:220px}.lesson-secondary{display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap}.lesson-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;padding-top:15px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.microphone{width:77px;height:77px;border:0;border-radius:50%;background:var(--forest);color:var(--panel);font-size:30px;box-shadow:0 0 0 9px var(--sage);display:grid;place-items:center;margin:7px 0 9px;position:relative}.microphone.recording{background:#b65e4a;box-shadow:0 0 0 9px #f3dfd4;animation:mic-pulse 1s ease-in-out infinite}.record-label{font-size:13px;font-weight:600}.recording-time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.assessment-box{background:#f0f3e5;border:1px solid #dfe6cf;border-radius:20px;padding:18px 20px;width:100%;max-width:550px;text-align:center}.assessment-box p{margin:7px 0 0;font-size:13px;color:var(--ink)}.assessment-tag{font-size:10px;color:var(--muted)}.stars{display:flex;justify-content:center;gap:6px;font-size:28px;letter-spacing:2px;color:var(--forest)}.stars .empty{color:#c1c9b4}.stars.gold{color:#dd9d31}.stars.gold .empty{color:#c6b68c}.stars.large-stars{font-size:44px;gap:9px;margin:16px 0}.correction-card{padding:15px 20px;border-radius:16px;background:#fbefd9;max-width:550px;width:100%;text-align:center}.correction-card h3{font-size:15px;margin:0 0 4px}.correction-card p{font-size:12px;color:#8d6f40;margin:0}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:22px 0 12px}.choice-card{border:2px solid #e6e9dc;background:#f6f7ed;border-radius:23px;padding:20px 10px;min-height:180px;transition:transform .2s,border-color .2s}.choice-card .word-picture{height:155px}.choice-card:hover:not(:disabled){transform:translateY(-4px);border-color:#a1b995}.choice-card.correct{border-color:var(--forest);background:#e8efda}.choice-card.try-again{border-color:#e2b77d}.choice-feedback{text-align:center;min-height:28px;font-size:14px;color:var(--forest)}.hint-note{font-size:11px;color:var(--muted);text-align:center}.celebration{text-align:center;max-width:750px;margin:12px auto}.celebration .panel{padding:30px}.celebration yiyi-coach{height:220px;width:270px;margin:0 auto;display:block}.celebration h1{font-size:31px;margin:0}.celebration p{font-size:13px}.sticker-options{display:flex;justify-content:center;gap:14px;margin:18px 0}.sticker-option{width:91px;height:102px;border:2px solid #e2e6d7;background:#faf9f0;border-radius:19px;padding:12px;position:relative}.sticker-option .word-picture{height:65px}.sticker-option.selected{border-color:var(--gold);background:#fff5d9}.collection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.collection-card{padding:22px;text-align:center;background:var(--panel);border:1px solid var(--line);border-radius:24px;transform:rotate(-1deg)}.collection-card:nth-child(even){transform:rotate(1deg)}.collection-card .word-picture{height:130px}.collection-card h3{font-size:15px;margin:8px 0}.collection-card p{font-size:11px;margin:6px 0 0}.listen-status{min-height:20px;color:var(--muted);font-size:12px;text-align:center}.inline-note{padding:10px 15px;font-size:11px;border-radius:12px;background:var(--sage);color:var(--muted);line-height:1.8;margin-bottom:15px}.phase-chips{display:flex;justify-content:center;gap:7px;font-size:10px;color:#8d987f;margin:13px 0}.phase-chips span{padding:3px 8px;border-radius:12px;background:#edf0e3}.phase-chips .active{color:var(--forest);background:#dfe9d0}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th,.data-table td{text-align:left;border-bottom:1px solid var(--line);padding:11px 8px}.data-table th{font-size:11px;color:var(--muted);font-weight:500}.mono{font-variant-numeric:tabular-nums}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@keyframes pulse{50%{opacity:.3}}@keyframes mic-pulse{50%{box-shadow:0 0 0 14px #f3dfd480}}
.recording-assist{font-size:11px;color:var(--muted);max-width:500px;text-align:left;margin-top:14px}.recording-assist summary{cursor:pointer;text-align:center}.recording-assist .field{margin-top:12px}.recording-assist input{font-size:11px}
.assignment-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.assignment-grid .word-preview{padding:28px 14px 12px}.assignment-grid .word-picture{height:105px}.assignment-grid .word-meta strong{font-size:14px}.assignment-grid .word-meta small{display:block;font-size:10px}.assignment-grid .word-meta{align-items:flex-start}.assignment-grid .word-preview>.button{width:100%;margin-top:8px;font-size:11px;min-height:30px;padding:4px}.assignment-grid .audio-round{width:29px;height:29px;font-size:15px}.pending-picture{flex-direction:column;background:#eff1e4;border-radius:18px;color:#7d916d}.pending-picture>span{font-size:36px}.pending-picture>small{font-size:10px}.original-home{margin-bottom:18px;font-size:12px;color:var(--muted)}.original-home summary{cursor:pointer}.original-home audio{height:36px;max-width:100%;margin:12px 0}.original-home small{display:block;font-size:11px}.assignment-progress-note{padding:13px 17px;background:#e9efdc;border-radius:15px;color:var(--muted);font-size:12px;margin-bottom:25px}.assignment-progress-note strong{color:var(--forest)}
@media(max-width:900px){.assignment-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:650px){.assignment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.assignment-grid .word-picture{height:90px}.assignment-grid .word-preview{padding:25px 9px 11px}}@media(max-width:420px){.assignment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.assignment-grid .word-picture{height:100px}}
@media(max-width:1000px){.app-header{padding:22px 28px}.hero{gap:25px}.hero-copy{padding-left:0}.hero-scene{min-height:315px}.hero-scene .hero-word .word-picture{height:110px}.parent-grid{grid-template-columns:300px 1fr}.hero-scene yiyi-coach{bottom:-46px}.word-preview .word-picture{height:130px}}
@media(max-width:760px){.app-header{padding:18px 20px;align-items:flex-start}.brand{font-size:14px;gap:8px}.brand-mark{width:35px;height:40px;font-size:23px}.brand-second{font-size:10px;letter-spacing:3px}.app-header nav{gap:15px;font-size:11px;padding-top:7px}.app-header nav a:last-child{border:0;padding:0}.app-header nav a[data-route=collection]{display:none}#app{padding:12px 18px}.hero{grid-template-columns:1fr 1fr;gap:15px;padding:10px 0 30px}.hero-copy h1{font-size:28px;letter-spacing:-.8px}.hero-copy>p{font-size:12px}.hero-scene{min-height:270px}.hero-scene .hero-word{right:5px;top:65px;padding:7px;border-width:5px;width:46%}.hero-word .word-picture{height:90px!important}.hero-word strong{font-size:15px}.hero-float{left:10px;font-size:10px;top:32px;padding:6px 9px}.hero-scene yiyi-coach{width:71%;left:-20px;bottom:-33px}.hero-actions{gap:5px}.hero-actions .button.large{font-size:13px;padding:12px 17px}.hero-actions .button.ghost{font-size:11px;padding-left:5px}.tagline{gap:10px;margin:15px 0}.parent-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.collection-grid{grid-template-columns:repeat(3,1fr)}.word-preview-grid{gap:10px}.word-preview{padding:15px 12px}.word-preview .word-picture{height:110px}.word-meta strong{font-size:15px}.word-meta small{font-size:10px}.source-pick select{max-width:190px}.lesson-card{padding:23px 20px}.lesson-scene{grid-template-columns:38% 62%}.lesson-target .word-picture{height:190px}.lesson-scene yiyi-coach{height:230px}.lesson-title h1{font-size:25px}.app-footer{font-size:10px;gap:12px}.app-footer span:last-child{display:none}.choice-card .word-picture{height:125px}.choice-card{min-height:150px;padding:13px 5px}.choice-grid{gap:9px}.unit-row{grid-template-columns:45px 1fr auto;padding:12px;gap:10px}.unit-thumb{width:43px;height:43px}.unit-row-actions{flex-direction:column;gap:5px}.parent-title h1{font-size:26px}}
@media(max-width:520px){.hero{grid-template-columns:1fr;padding-bottom:25px;gap:8px}.hero-copy{padding:9px 5px}.hero-copy h1{font-size:33px;margin-bottom:13px}.hero-copy>p{font-size:13px;max-width:330px}.hero-note{margin-bottom:0}.hero-scene{min-height:235px;border-radius:24px;margin-top:13px}.hero-scene yiyi-coach{width:55%;left:0;bottom:-75px}.hero-scene .hero-word{top:40px;right:35px;width:36%;transform:rotate(7deg)}.hero-word .word-picture{height:108px!important}.hero-float{top:22px;left:20px}.hero-scene .hero-sun{width:45px;height:45px;top:22px;right:20px}.word-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.word-preview{padding:24px 9px 12px;border-radius:18px}.word-preview .word-picture{height:80px;margin-bottom:7px}.word-meta{align-items:flex-start!important;flex-wrap:wrap;gap:4px!important}.word-meta strong{font-size:13px}.word-meta small{display:block}.word-meta .audio-round{width:27px;height:27px;font-size:15px}.word-number{font-size:9px;left:11px;top:9px}.section-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}.section-heading h2{font-size:19px}.source-pick{margin-left:auto}.quiet-banner{padding:14px;gap:9px;align-items:flex-start;flex-direction:column}.quiet-banner .button{padding:0;min-height:30px}.lesson-card{border-radius:25px;padding:20px 15px}.lesson-title h1{font-size:23px}.lesson-scene{min-height:200px;grid-template-columns:36% 64%}.lesson-scene yiyi-coach{height:200px}.lesson-target .word-picture{height:160px}.lesson-word{font-size:27px}.lesson-controls .button.large{font-size:14px;min-height:48px}.lesson-bottom{font-size:10px;gap:5px}.lesson-bottom .button{font-size:11px;padding:7px}.lesson-top{font-size:11px}.choice-grid{gap:7px;margin-top:16px}.choice-card{min-height:125px;padding:10px 1px;border-radius:17px}.choice-card .word-picture{height:105px}.records-summary{gap:8px}.stat{padding:15px 12px}.stat strong{font-size:25px}.stat span{font-size:10px}.parent-tabs{width:100%;justify-content:space-between}.parent-tab{padding:9px 13px;font-size:12px}.panel{padding:20px}.unit-row h3{font-size:14px}.edit-layout{grid-template-columns:1fr;gap:10px}.edit-layout>.word-picture{height:100px}.collection-grid{grid-template-columns:repeat(2,1fr);gap:12px}.collection-card{padding:17px}.collection-card .word-picture{height:100px}.stars.large-stars{font-size:36px;gap:6px}.celebration h1{font-size:27px}.celebration .panel{padding:26px 17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}}

/* Progressive journey and semantic object actors */
.journey-home{max-width:1000px;margin:20px auto 38px}.journey-heading{text-align:center;margin-bottom:24px}.journey-heading h1{font-size:clamp(28px,4.5vw,46px);margin:12px 0}.journey-heading p{color:var(--muted,#687763)}.journey-current{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;background:#fffdf5;border:1px solid #e0e6d4;border-radius:32px;padding:30px}.journey-scene{min-width:0}.journey-next h2{font-size:36px;margin:14px 0}.journey-next p{line-height:1.9;color:#6b7766}.journey-footer{display:flex;justify-content:center;gap:14px;margin-top:22px}.task-map{max-width:1000px;margin:0 auto 30px;border-top:1px solid #dfe5d6;padding-top:20px}.task-map>summary{cursor:pointer;color:#6b7766}.task-map>.field{margin-top:20px}.map-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.map-stop{display:flex;align-items:center;gap:10px;text-align:left;background:#fffdf6;border:1px solid #dfe6d6;border-radius:12px;padding:12px;color:#344939;cursor:pointer}.map-stop>span{border-radius:50%;background:#edf0dc;padding:5px 10px}.map-stop small{margin-left:auto;color:#7a8673}.map-stop.done{background:#eef5e8}.review-station{display:flex;align-items:center;justify-content:space-between;padding:22px;background:#eef2df;border-radius:22px;margin:0 auto 24px;max-width:1000px}.review-station p{font-size:14px}.round-award{padding:20px;background:#fff4cd;border-radius:20px;margin:18px 0}.round-award strong{display:block;font-size:20px;margin-top:10px}
yiyi-word-scene{display:block;width:100%;max-width:390px;margin:auto;position:relative}yiyi-word-scene svg{display:block;width:100%;overflow:visible}.scene-stage{position:relative}.object-bubble{position:relative;background:#f0f5e5;border:1px solid #d3dfc3;border-radius:18px;padding:12px 15px;color:#3e5d3b;font-size:15px;line-height:1.6;text-align:center;min-height:48px}.object-bubble:before{content:'';position:absolute;top:-9px;left:50%;width:16px;height:16px;background:#f0f5e5;border-left:1px solid #d3dfc3;border-top:1px solid #d3dfc3;transform:rotate(45deg)}.scene-demo{display:block;margin:9px auto 0;background:transparent;border:0;color:#617c53;font:inherit;font-size:13px;cursor:pointer;padding:8px}.scene-caption{display:block;font-size:11px;color:#85917d;text-align:center;line-height:1.5}.scene-state-mark{position:absolute;top:8%;right:8%;font-size:35px;color:#d0a044}.lesson-scene>yiyi-coach{display:none}.lesson-scene{grid-template-columns:1fr;justify-items:center}.lesson-target{width:min(100%,430px)}yiyi-word-scene[data-state=success] .object-bubble{background:#fff2bc;border-color:#ecd278}yiyi-word-scene[data-state=listening] .scene-state-mark{color:#5d8d55}yiyi-word-scene[data-state=thinking] .scene-state-mark{letter-spacing:5px}.lesson-scene .lesson-word{margin-top:10px}.scene-state-mark{transition:opacity .2s}.journey-scene .scene-caption{display:none}
@media(max-width:680px){.journey-current{grid-template-columns:1fr;gap:12px;padding:22px}.journey-next{text-align:center}.journey-scene{max-width:290px;width:100%;margin:auto}.journey-next h2{font-size:28px}.journey-heading h1{font-size:29px}.map-list{grid-template-columns:1fr}.journey-footer{gap:5px}.review-station{display:block}.lesson-target{max-width:320px}.lesson-scene{gap:0}.journey-next .button{width:100%}}

.child-login{max-width:520px;margin:36px auto;padding:28px}.child-login h1{font-size:30px}.child-login p{line-height:1.7}.child-account{max-width:1160px;margin:0 auto;padding:6px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.child-account:empty{display:none}

/* A lesson is a single phone screen; the scene yields space to the controls. */
@media(max-width:760px){
  body.lesson-mode{height:100dvh;min-height:0;overflow:hidden}
  .lesson-mode>.app-header,.lesson-mode>.app-footer,.lesson-mode>#child-account{display:none}
  .lesson-mode #app{height:100dvh;min-height:0;max-width:none;margin:0;padding:max(6px,env(safe-area-inset-top)) 10px max(6px,env(safe-area-inset-bottom))}
  .lesson-mode .lesson-shell{height:100%;min-height:0;display:flex;flex-direction:column;gap:5px;margin:0}
  .lesson-mode .lesson-top{flex:none;margin:0;min-height:26px;font-size:10px;gap:8px}
  .lesson-mode .lesson-progress{flex:none;height:4px;margin:0;gap:4px}
  .lesson-mode .lesson-card{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:20px;overflow:hidden}
  .lesson-mode .lesson-title{flex:none;margin:0}
  .lesson-mode .lesson-title .eyebrow{margin:0 0 3px;font-size:10px;letter-spacing:1px}
  .lesson-mode .lesson-title h1{font-size:20px;line-height:1.25;margin:0}
  .lesson-mode .lesson-title>p,.lesson-mode .lesson-original,.lesson-mode .lesson-card>.inline-note{display:none}
  .lesson-mode .coach-aid{display:none}
  .lesson-mode .lesson-scene{flex:1;min-height:65px;display:flex;justify-content:center;margin:0;overflow:hidden}
  .lesson-mode .lesson-target{width:100%;max-width:340px;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center}
  .lesson-mode .lesson-target>yiyi-word-scene{flex:1;width:100%;height:0;min-height:0;display:flex;flex-direction:column;align-items:center}
  .lesson-mode .scene-stage{flex:1;min-height:0;width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}
  .lesson-mode .scene-stage .word-visual{height:100%;max-height:100%;min-height:0;display:flex;align-items:center;justify-content:center;margin:0!important}
  .lesson-mode .scene-stage svg{height:100%;max-height:100%;width:auto;max-width:100%;object-fit:contain}
  .lesson-mode .object-bubble{flex:none;width:100%;min-height:0;padding:5px 8px;font-size:12px;line-height:1.35;border-radius:12px}
  .lesson-mode .object-bubble:empty{display:none}
  .lesson-mode .object-bubble:before{width:10px;height:10px;top:-6px}
  .lesson-mode .scene-demo,.lesson-mode .scene-caption{display:none}
  .lesson-mode .lesson-word{flex:none;font-size:clamp(22px,7vw,32px);line-height:1.05;margin:6px 0 2px;overflow-wrap:anywhere}
  .lesson-mode .lesson-meaning{flex:none;font-size:13px;line-height:1.2;margin:0}
  .lesson-mode .lesson-controls{flex:none;gap:5px;padding:0;margin:0;min-height:0}
  .lesson-mode .lesson-controls .button.large{min-height:46px;padding:9px 18px;font-size:16px;width:min(100%,340px)}
  .lesson-mode .listen-status,.lesson-mode .record-label{font-size:12px;line-height:1.35;min-height:0;margin:0}
  .lesson-mode .recording-time,.lesson-mode .hint-note{font-size:10px;line-height:1.3;margin:0}
  .lesson-mode #skip-word{min-height:25px;padding:3px 8px;font-size:11px}
  .lesson-mode .recording-assist{margin:0;font-size:10px}
  .lesson-mode .recording-assist summary{padding:2px}
  .lesson-mode .recording-assist[open]{position:fixed;inset:15% 12px auto;max-height:70dvh;overflow:auto;z-index:10;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:15px;box-shadow:var(--shadow)}
  .lesson-mode .lesson-bottom{flex:none;margin:0;padding:4px 0 0;min-height:28px;font-size:10px;gap:4px}
  .lesson-mode .lesson-bottom .button{min-height:26px;padding:3px 5px;font-size:11px}
  .lesson-mode .assessment-box{padding:8px 10px;margin:0;width:100%;border-radius:14px}
  .lesson-mode .assessment-box p{font-size:13px;line-height:1.4;margin:4px 0}
  .lesson-mode .assessment-tag{font-size:10px;line-height:1.3}
  .lesson-mode .assessment-box .stars{font-size:24px;line-height:1.1;margin:4px 0}
  .lesson-mode .correction-card{padding:6px 10px;margin:0;width:100%;border-radius:12px}
  .lesson-mode .correction-card h3{font-size:13px;line-height:1.3;margin:0 0 2px}
  .lesson-mode .correction-card p{font-size:12px;line-height:1.35;margin:0}
  .lesson-mode .lesson-secondary{gap:6px;margin:0;flex-wrap:wrap}
  .lesson-mode .lesson-secondary .button{min-height:42px;padding:7px 12px;font-size:13px}
  .lesson-mode .microphone{width:62px;height:62px;font-size:26px;margin:0}
  .lesson-mode .choice-grid{margin:0;gap:6px;flex:1;min-height:0;align-content:center}
  .lesson-mode .choice-card{min-height:100px;padding:6px}
  .lesson-mode .choice-card .word-picture{height:clamp(75px,18dvh,130px)}
}
@media(max-width:760px) and (max-height:650px){
  .lesson-mode .lesson-card{padding:8px;gap:4px}
  .lesson-mode .lesson-title h1{font-size:18px}
  .lesson-mode .object-bubble{font-size:11px;padding:4px 6px}
  .lesson-mode .recording-time{display:none}
  .lesson-mode .lesson-controls{gap:4px}
}
.scene-lab{max-width:650px;margin:40px auto;padding:24px}.lab-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:20px 0}.scene-lab h1{font-size:30px}.scene-lab p{line-height:1.8;color:#69775f}

.coach-aid{grid-column:1;grid-row:2;width:100%;max-width:340px;text-align:center;margin:12px 0}.coach-aid summary{font-size:12px;color:#7d8a71;cursor:pointer}.coach-aid small{display:block;font-size:11px;color:#87927e}.coach-aid yiyi-coach{display:block}

.journey-start-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.journey-start-actions .button{flex:1;white-space:nowrap}@media(max-width:680px){.journey-start-actions{display:grid;grid-template-columns:1fr 1fr}.journey-start-actions .button{min-width:0;padding:10px 8px;font-size:13px}}

/* Clear, playful listening and recording states, with text as well as colour. */
.practice-actions{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:center;width:min(100%,390px)}
.listen-action,.record-action{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center}
.listen-action small{font-size:12px;color:#4d8399}
.button.listen-button{background:#a0e1ff;color:#084b70;border:2px solid #72cef4;box-shadow:0 4px 0 #51b9df;border-radius:22px;font-weight:800;font-size:16px;min-height:58px;gap:6px}
.button.listen-button:hover:not(:disabled){background:#86d9ff}
.listen-button svg,.self-listen svg{width:25px;height:25px;flex:none}
.listen-action .listen-button{display:flex;flex-direction:column;min-width:135px;min-height:92px}
.record-orb{width:120px;height:120px;min-height:120px;border-radius:50%;border:4px solid #9bf5b2;background:linear-gradient(145deg,#64ef8f,#24d368);color:#07552d;box-shadow:0 6px 0 #13a34b,0 0 0 7px #dff9df;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:16px;font-weight:850;transition:background .2s,box-shadow .2s,transform .15s;cursor:pointer}
.record-orb svg{width:36px;height:36px}
.record-orb:disabled{opacity:1;background:#e1e9da;border-color:#d6e1cd;box-shadow:0 4px 0 #cbd5c3;color:#8d9d82;cursor:default}
.record-orb:not(:disabled):active{transform:translateY(3px);box-shadow:0 2px 0 #13a34b,0 0 0 7px #dff9df}
.record-orb.recording{background:#ff756c;border-color:#ffb0a5;color:#fff;box-shadow:0 5px 0 #d84c45,0 0 0 7px #ffe4dd;animation:record-breathe 1.2s ease-in-out infinite}
@keyframes record-breathe{50%{box-shadow:0 5px 0 #d84c45,0 0 0 11px #ffe4dd}}
.child-reward{background:#fff6d6;border:2px solid #ffe39b!important;text-align:center;position:relative}
.child-reward.mood-listen,.child-reward.mood-gentle{background:#ebf8ff;border-color:#c7e9f8!important}
.child-reward.mood-try{background:#f0fbe6;border-color:#cbe8aa!important}
.reward-heading{display:flex;gap:8px;align-items:center;justify-content:center}
.reward-buddy{font-size:34px;line-height:1.15;flex:none}
.reward-heading h2{font-size:22px;line-height:1.3;margin:0;color:#425b23;letter-spacing:0}
.child-reward .stars{color:#e8ad16;text-shadow:0 2px 0 #ffeab1;font-size:32px;justify-content:center}
.child-reward .child-tip{color:#5e6d3e;font-size:15px;line-height:1.5}
.reward-note{display:block;font-size:11px;color:#8d793c}
.button.self-listen{color:#62779b;background:#f1f5ff;border-color:#d9e2f4}
.button.retry-button{background:#fff0a6;border:2px solid #f1d56c;color:#725316;box-shadow:0 3px 0 #e9ce6d;font-weight:750}
.button.next-button{background:#2dbe73;border-color:#26b56b;box-shadow:0 3px 0 #1c9654}
.kid-audio-actions .button{border-radius:17px}
.assessment-details{font-size:11px;color:#8c9681;text-align:center;margin:0}
.assessment-details summary{cursor:pointer;padding:3px}
.assessment-details[open]{position:fixed;inset:20% 16px auto;z-index:20;max-height:60dvh;overflow:auto;text-align:left;padding:16px;border:1px solid var(--line);background:var(--panel);border-radius:18px;box-shadow:0 0 0 100vmax #20352755}
.assessment-details p{font-size:13px;line-height:1.7;margin:10px 0 0}
@media(max-width:760px){
  .lesson-mode .practice-actions{gap:12px;max-width:330px}
  .lesson-mode .listen-action,.lesson-mode .record-action{gap:7px}
  .lesson-mode .listen-action .listen-button{min-width:126px;min-height:76px;font-size:15px;padding:8px 12px;border-radius:22px}
  .lesson-mode .listen-action small{font-size:10px}
  .lesson-mode .record-orb{width:98px;height:98px;min-height:98px;font-size:15px;border-width:3px;gap:3px;box-shadow:0 5px 0 #13a34b,0 0 0 5px #dff9df}
  .lesson-mode .record-orb:disabled{box-shadow:0 4px 0 #cbd5c3}
  .lesson-mode .record-orb.recording{box-shadow:0 5px 0 #d84c45,0 0 0 6px #ffe4dd}
  .lesson-mode .record-orb svg{width:30px;height:30px}
  .lesson-mode .record-label{font-size:11px;font-weight:650}
  .lesson-mode .reward-heading h2{font-size:19px}
  .lesson-mode .reward-buddy{font-size:28px}
  .lesson-mode .assessment-box.child-reward{padding:9px 10px;border-radius:20px}
  .lesson-mode .assessment-box.child-reward .stars{font-size:29px;margin:5px 0}
  .lesson-mode .assessment-box .child-tip{font-size:13px;margin:4px 0}
  .lesson-mode .kid-audio-actions,.lesson-mode .kid-next-actions{display:flex;width:100%;gap:8px}
  .lesson-mode .kid-audio-actions .button,.lesson-mode .kid-next-actions .button{flex:1;min-width:0;min-height:43px;padding:6px 7px;font-size:12px;gap:4px}
  .lesson-mode .kid-audio-actions svg{width:20px;height:20px}
  .lesson-mode .assessment-details{font-size:10px}
}
@media(max-width:760px) and (max-height:650px){
  .lesson-mode .record-orb{width:86px;height:86px;min-height:86px;font-size:14px}
  .lesson-mode .listen-action .listen-button{min-height:70px}
  .lesson-mode .practice-actions{padding:4px 0}
}

.deferred-note{padding:12px;border-radius:16px;background:#e9f7ff;color:#3e7490;font-size:13px;line-height:1.6;margin-bottom:12px}.mood-yay .reward-buddy{animation:reward-bop .5s ease-out}@keyframes reward-bop{50%{transform:translateY(-5px) rotate(-8deg)}}

/* Sunshine, sky blue and red encouragement stars across the child's world. */
:root{--paper:#f0fbff;--panel:#fff;--ink:#254e7a;--muted:#627f9e;--forest:#178bc9;--forest-dark:#0873b3;--sage:#e2f6ff;--sage-deep:#c9edff;--gold:#ffc83d;--line:#d7ebfa;--red:#ed4762;--shadow:0 10px 28px #4ea5dd16}
body{background:radial-gradient(circle at 7% 8%,#fff1a8aa,transparent 29%),radial-gradient(circle at 95% 35%,#ffe0ed99,transparent 32%),linear-gradient(160deg,#f2fcff,#f9f7ff)}
.app-header .brand-mark{background:#ff708c;color:white;box-shadow:0 4px 0 #ffc2d1}
.panel,.word-preview,.collection-card{border-color:#cce9ff;background:#fff}
.lesson-card{background:linear-gradient(160deg,#fff,#f7fcff);border:2px solid #cdeaff;box-shadow:0 5px 0 #dcefff}
.lesson-progress span{background:#dfebff}.lesson-progress span.done{background:#48cda3}.lesson-progress span.current{background:#ffb52f}
.lesson-word{color:#3264b4}.lesson-meaning{color:#6089b1}
.object-bubble{background:#edf8ff;border-color:#c4e6ff;color:#497ea8}.object-bubble:before{background:#edf8ff;border-color:#c4e6ff}
.journey-current{background:linear-gradient(130deg,#e9f8ff,#fff4d1);border-color:#cce8ff}
.journey-heading .eyebrow,.lesson-title .eyebrow{color:#287fc2}
.journey-scene{background:#f7fcff;border-radius:30px}
.child-login{background:linear-gradient(145deg,#fff,#fff8ee);border:2px solid #cce9ff}
.stars,.stars.gold,.child-reward .stars,.lesson-mode .assessment-box.child-reward .stars{color:#f33e59;text-shadow:0 2px 0 #ffd0d8}
.stars .empty,.stars.gold .empty{color:#f8cbd3;text-shadow:none}
.child-reward{background:#fff2f5;border-color:#ffcbd6!important}.child-reward.mood-yay{background:linear-gradient(145deg,#fff8db,#fff0f4)}
.child-reward.mood-listen,.child-reward.mood-gentle{background:linear-gradient(145deg,#edf9ff,#fff5f8);border-color:#c8e8ff!important}
.child-reward .reward-heading h2{color:#4964a4}.child-reward .child-tip{color:#526f9b}.reward-note{color:#b05b75}
.button.coach-replay{background:#fff0c8;border-color:#ffd46c;color:#8d6016;border-radius:18px;min-height:36px;padding:5px 15px;font-size:12px;box-shadow:0 2px 0 #ffdf8f}
.lesson-mode .coach-replay{min-height:29px;padding:3px 12px;font-size:11px}
.lesson-mode .child-reward .reward-note{font-size:10px}
.lesson-mode .assessment-box.child-reward{padding:7px 9px}
.record-orb{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.record-orb.recording{cursor:grabbing}
.celebration yiyi-coach{height:auto;width:min(230px,100%);margin:8px auto 20px}
.scene-sound{display:block;margin:3px auto 8px;padding:9px 15px;border:1px solid #e6c486;border-radius:20px;background:#fff4d1;color:#75531d;font:inherit;font-size:13px;cursor:pointer}.scene-caption{max-width:350px;margin:5px auto}
@media(max-width:760px){.lesson-mode .scene-sound{flex:none;min-height:34px;margin:2px auto;padding:4px 12px;font-size:11px}}

.sentence-lesson .lesson-word{font-size:clamp(19px,4.8vw,26px);line-height:1.25;letter-spacing:0;max-width:100%;text-wrap:pretty}.sentence-lesson .lesson-meaning{line-height:1.4}
@media(max-width:760px){.lesson-mode .sentence-lesson .lesson-word{font-size:clamp(16px,4.4vw,22px);line-height:1.22;margin:4px 0}.lesson-mode .sentence-lesson .lesson-meaning{font-size:12px;line-height:1.3}.lesson-mode .sentence-lesson .pronunciation-guide{display:none}}
