@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
/* Completed lessons and child selection retain text cues alongside color. */
.lesson-row.lesson-completed{background:#e5f6ed;border-left:5px solid #168069;border-radius:12px}
.lesson-row.lesson-completed small{color:#116b55;font-weight:800}
.child-tabs{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:22px}
fieldset{border:1px solid #d8ecdf;border-radius:10px}
fieldset label{display:block;margin:8px 0}
textarea{width:100%;min-height:80px;padding:10px 12px;border:1px solid #dfe5e0;border-radius:10px;font:inherit;resize:vertical}
.quiz-item{border-top:1px solid #eff0ee;padding:14px 0}
.quiz-item:first-of-type{border-top:0}
.quiz-score{color:#116b55;font-weight:700}
.chat-bubble{border-radius:14px;padding:10px 14px;margin:8px 0;line-height:1.7}
.chat-bubble span{display:block;font-size:11px;font-weight:800;color:#149577;margin-bottom:3px}
.chat-child{background:#f3f6f2}
.chat-assistant{background:#e5f6ed}
.row-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.row-actions form{margin:0}
.transcript-badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 8px;border-radius:10px;white-space:nowrap;margin-top:4px}
.transcript-badge.ready{background:#e5f6ed;color:#116b55}
.transcript-badge.queued,.transcript-badge.working{background:#fdf3dd;color:#8a6d1f}
.transcript-badge.failed{background:#fdeaea;color:#a33636}
.transcript-badge.missing{background:#f1f2f0;color:#7a8580}
:root{font-family:'DM Sans','Noto Sans SC',sans-serif;color:#242a31;background:#f7f8f5}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}.top{display:flex;align-items:center;justify-content:space-between;padding:20px max(5%,calc((100vw - 1160px)/2));background:#fff;border-bottom:1px solid #eceee8}.brand{font-size:22px;font-weight:800;letter-spacing:-.04em;color:#168069}.top nav{display:flex;gap:22px;align-items:center;color:#66716e;font-size:14px}.top form{margin:0}.link{border:0;background:none;color:#168069;font-weight:700}.top nav span{white-space:nowrap}main{width:min(1160px,90%);margin:0 auto;flex:1;padding:56px 0 90px}footer{text-align:center;color:#98a29d;padding:30px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.18em;color:#149577;margin-bottom:12px}h1{font-size:clamp(32px,4vw,52px);letter-spacing:-.055em;line-height:1.25;margin:0 0 14px}h2{font-size:25px;letter-spacing:-.04em;margin:0 0 20px}h3{margin:0 0 10px;font-size:18px}.accent{color:#f3b649}.lead{font-size:16px;color:#7a8580;margin:0 0 34px}.muted{color:#838e88;line-height:1.7}.small{font-size:12px}.panel{background:#fff;border:1px solid #ebeee8;border-radius:22px;padding:30px;box-shadow:0 10px 36px rgba(31,58,46,.035)}.dashboard{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;align-items:start}.wide{min-width:0}.highlight{background:#e5f6ed;border-color:#d8ecdf}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.section-head h2{margin-bottom:14px}.section-space{margin-top:54px}.section-space .cards{margin-top:20px}.pill{background:#e7f5ed;color:#168069;border-radius:20px;font-size:12px;font-weight:700;padding:8px 12px;white-space:nowrap}.metrics{display:flex;gap:12px;border-top:1px solid #eff0ee;padding:22px 0 14px}.metrics>div{flex:1;display:flex;flex-direction:column;gap:3px}.metrics strong{font-size:30px;letter-spacing:-.05em}.metrics span{font-size:12px;color:#8e9892}.chart{display:flex;height:160px;gap:12px;align-items:end;margin:10px 0}.chart-col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:9px;height:100%;justify-content:end}.bars{height:125px;display:flex;gap:3px;align-items:end;width:100%;justify-content:center;border-bottom:1px solid #ecede9}.bar{width:30%;max-width:22px;min-height:2px;border-radius:5px 5px 0 0}.planned{background:#daeae2}.actual{background:#26aa84}.chart small{font-size:11px;color:#9ba59e}.legend{display:flex;gap:18px;font-size:12px;color:#78837b}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}.dot-planned{background:#daeae2}.dot-actual{background:#26aa84}.stack{display:flex;flex-direction:column;gap:16px}.stack label{font-size:13px;color:#48534f;font-weight:700;display:flex;flex-direction:column;gap:8px}.stack input:not([type=checkbox]):not([type=radio]),.stack select{width:100%;border:1px solid #dfe5de;border-radius:10px;padding:12px 13px;background:#fff;color:#26312c;outline-color:#24ab85}.stack input[type=checkbox],.stack input[type=radio]{width:22px;height:22px;flex:0 0 auto;accent-color:#198d71}.primary,.secondary{border:0;border-radius:10px;padding:13px 18px;font-weight:800}.primary{background:#198d71;color:white}.primary:hover{background:#11765e}.secondary{color:#188769;background:#e6f5ed}.secondary:hover{background:#d7eee2}.notice{background:#fff7e7;padding:15px;border-radius:10px;color:#9a642b}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.course-card{background:#fff;border:1px solid #ebeee8;border-radius:20px;padding:24px;transition:transform .2s,box-shadow .2s}.course-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #123a2412}.course-card p{color:#909b95;font-size:13px;overflow-wrap:anywhere;min-height:25px}.course-card span{font-size:13px;font-weight:700;color:#179473}.course-icon{background:#e7f6ee;color:#1c9a77;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;margin-bottom:22px}.upcoming{display:grid;gap:12px}.schedule-item{display:flex;align-items:center;gap:13px;background:#fff;border-radius:14px;padding:13px}.calendar-icon{display:grid;place-items:center;background:#fdf4dc;border-radius:10px;width:39px;height:39px;color:#e5a727}.schedule-item strong,.schedule-item small{display:block}.schedule-item small{color:#87918a;margin-top:3px}.awards{list-style:none;padding:0;line-height:2.4}.back{display:inline-block;margin:0 0 30px;color:#178f71;font-weight:700;font-size:14px}.lesson-list{display:grid;gap:8px}.lesson-row{display:flex;align-items:center;border:1px solid #eff0ee;border-radius:12px;padding:12px;gap:8px}.lesson-row>a{display:flex;align-items:center;gap:14px;flex:1;min-width:0}.lesson-row strong{display:block;overflow-wrap:anywhere}.lesson-row small{display:block;color:#8d9891;margin-top:5px}.number{background:#e8f7ef;color:#169875;border-radius:10px;padding:11px;font-weight:800}.reorder form{display:flex}.reorder button{background:#f4f6f2;color:#54766a;border:0;border-radius:8px;margin-left:4px;padding:7px 10px}.schedule-summary{background:#e8f7ef;color:#176b55;border-radius:12px;padding:16px;margin-bottom:20px;font-weight:800;line-height:1.7}.schedule-summary span{font-weight:400;font-size:13px}.player-panel{max-width:960px}.watch-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:20px;align-items:start}.watch-layout .player-panel{max-width:100%}.watch-chat{display:flex;flex-direction:column;max-height:min(72vh,560px)}.watch-chat h2{margin-bottom:12px}.chat-log{flex:1;overflow-y:auto;padding-right:4px;min-height:80px}.chat-form{margin-top:12px}.chat-form textarea{min-height:60px}video{display:block;width:100%;max-height:70vh;background:#111;border-radius:12px}.player-panel p{margin-bottom:0}hr{border:0;border-top:1px solid #e9ede8;margin:28px 0}.login-wrap{display:grid;grid-template-columns:1fr 1fr;min-height:650px;gap:30px;align-items:center}.login-panel{max-width:510px;padding:45px}.login-panel .muted{margin:20px 0 32px}.login-panel h1{font-size:clamp(30px,3vw,43px)}.hero-art{background:#dbf4e8;border-radius:30px;height:570px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.sun{position:absolute;top:62px;right:70px;font-size:65px}.book{font-size:170px;z-index:1;transform:rotate(-12deg);filter:drop-shadow(0 30px 22px #29594724)}.orb{position:absolute;border-radius:50%;background:#b5e8d1}.orb-one{width:300px;height:300px;bottom:-120px;left:-80px}.orb-two{width:130px;height:130px;top:95px;left:35px;background:#f9e9bb}.hero-caption{position:absolute;bottom:50px;right:46px;color:#168066;font-size:22px;font-weight:800;line-height:1.4;z-index:2}.error{color:#c64646;margin:0}.login-panel .primary{margin-top:10px}code{color:#147f65;overflow-wrap:anywhere}@media(max-width:800px){main{padding:36px 0 60px}.dashboard,.login-wrap{grid-template-columns:1fr}.login-wrap{min-height:unset}.hero-art{display:none}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:22px}}@media(max-width:540px){.cards{grid-template-columns:1fr}.top{padding:16px 5%}.brand{font-size:18px}.top nav{gap:10px;font-size:12px}.chart{gap:3px}.chart small{font-size:9px}.metrics strong{font-size:24px}.section-head{flex-wrap:wrap}.login-panel{padding:25px}}
@media(max-width:800px){.watch-layout{grid-template-columns:1fr}.watch-chat{max-height:none}}
html{-webkit-text-size-adjust:100%}body{overflow-wrap:break-word}img,svg,video{max-width:100%;height:auto}.brand{white-space:nowrap}.top{flex-wrap:wrap;gap:10px 16px}.top nav{flex-wrap:wrap;justify-content:flex-end;gap:8px 14px;min-width:0}.top nav span{max-width:42vw;overflow:hidden;text-overflow:ellipsis}.top{padding-left:max(5%,env(safe-area-inset-left));padding-right:max(5%,env(safe-area-inset-right))}main{padding-bottom:calc(90px + env(safe-area-inset-bottom))}footer{padding-bottom:calc(30px + env(safe-area-inset-bottom))}.stack fieldset label{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px;margin:6px 0}
@media(max-width:800px){.top nav a,.top .link{display:inline-flex;align-items:center;min-height:40px;padding:0 4px}.back{display:inline-flex;align-items:center;min-height:40px;padding:4px 0}.danger-link{display:inline-flex;align-items:center;min-height:40px}.reorder button{min-width:38px;min-height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:15px}}
@media(max-width:600px){.chart{height:206px;overflow-x:auto;padding-bottom:2px}.chart-col{min-width:28px}.chart small{writing-mode:vertical-rl;text-orientation:mixed;height:auto;font-size:10px;line-height:1.2;white-space:nowrap}}
