:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#1b2634;background:#f5f7fa;font-size:17px;line-height:1.55}*{box-sizing:border-box}body{margin:0}.wrap{width:min(960px,calc(100% - 32px));margin:auto}header{background:#163457;color:white}.head{display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:15px 0}.brand{font-weight:800;font-size:1.25rem;color:white;text-decoration:none}nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap}nav a,nav button{color:white}h1{font-size:1.7rem;margin:28px 0 18px}h2{font-size:1.25rem}h3{font-size:1.05rem}main{padding-bottom:40px}.panel{background:white;border:1px solid #d9e1eb;border-radius:12px;padding:20px;margin:16px 0;box-shadow:0 3px 14px #132e4c0b}.narrow{max-width:580px}.notice{padding:12px 16px;background:#eaf3fb;border-left:4px solid #346993;border-radius:6px}.success{background:#e5f5eb;padding:12px}form label{display:block;font-weight:600;margin:14px 0 8px}input:not([type=checkbox]),textarea,select{display:block;width:100%;border:1px solid #8d9ba9;border-radius:6px;padding:10px;font:inherit;background:white;color:#182736}textarea{resize:vertical}button,.button{border:0;border-radius:7px;padding:10px 17px;background:#1b527d;color:white;font:inherit;cursor:pointer;text-decoration:none;display:inline-block;font-weight:650;margin:4px 5px 4px 0}.secondary{background:#596575}.textbutton{background:transparent;padding:0;text-decoration:underline}.inline{display:inline}.check{font-weight:400;display:flex;align-items:center;gap:8px}.check input{width:18px;height:18px}.review{padding:16px 0;border-bottom:1px solid #e1e4e7}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.eyebrow{text-transform:uppercase;font-size:.8rem;letter-spacing:.08em;color:#596575;font-weight:700}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:8px;border-bottom:1px solid #d9e1eb}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;background:white;padding:8px}footer{font-size:.85rem;color:#536376;padding:15px 0 30px}@media(max-width:520px){.head{align-items:flex-start}.panel{padding:14px}h1{font-size:1.45rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Reward animations: praise is always conveyed in text, never by motion alone. */
.reward{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;border:2px solid #d1b3fa;background:#fbf7ff}
.reward-copy{flex:1 1 240px}.reward h2{font-size:1.45rem;color:#552993;margin:.2rem 0}
.reward-gif{display:block;width:min(190px,40vw);height:auto;aspect-ratio:1;object-fit:contain;border-radius:12px}
.reward-toggle{font-size:.8rem;padding:6px 10px}.reward-still{display:none;width:min(190px,40vw);aspect-ratio:1;object-fit:contain;border-radius:12px}
@media(prefers-reduced-motion:reduce){.reward-gif{display:none}.reward-still{display:block}.reward-toggle{display:none}}

/* Progressive classroom and readable 12-year-old accessible controls. */
.lesson-card{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.lesson-card>div{flex:1;min-width:260px}.lesson-card .button{white-space:nowrap}.actions{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin:1rem 0}.urgent{border:2px solid #ad4242;background:#fff9f9}.success{border-left:5px solid #16845d;background:#f1fff7}progress{width:100%;height:20px;accent-color:#7b65c2}table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}td,th{padding:9px 12px;border:1px solid #dfe2e8;text-align:left;vertical-align:top}th{background:#eeeafc}.panel .pre,.pre{white-space:pre-wrap;overflow-wrap:anywhere}.review{padding:12px 0;border-bottom:1px solid #e1dff1}.review:last-child{border-bottom:none}.check{display:flex;flex-direction:row;align-items:center;gap:.5rem}.check input{width:auto}.reward{display:flex;align-items:center;justify-content:space-between;gap:1.2rem}.reward-gif{max-width:160px;max-height:170px;object-fit:contain}.reward-still{display:none}.reward-copy{flex:1}@media(max-width:650px){.reward{flex-direction:column;align-items:flex-start}.head{align-items:flex-start}.lesson-card{display:block}.lesson-card .button{margin-top:10px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Final reduced-motion override (must follow default .reward-still rule). */
@media (prefers-reduced-motion: reduce) {
 .reward-gif {display:none!important}
 .reward-still {display:block!important}
 .reward-toggle {display:none!important}
}

/* Teacher’s separate written-help window. High contrast, no animation required. */
.teacher-panel{max-width:780px}.teacher-context{padding:9px 12px;border-left:4px solid #6d5fa5;background:#f3f0ff}.teacher-messages{min-height:140px;max-height:450px;overflow-y:auto;border:1px solid #cbd3e4;border-radius:10px;padding:12px;background:#f7f9fe}.teacher-bubble{padding:12px 14px;border-radius:13px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;max-width:90%;line-height:1.5}.teacher-student{margin-left:auto;background:#e4eaff;border:1px solid #b2bfe9}.teacher-response{margin-right:auto;background:white;border:1px solid #ccd7e6}.teacher-panel textarea{min-height:100px}

/* Student-facing theme studio: colors are a personal choice, not a gender assumption. */
.role-student {--page-bg:#f4effd;--surface:#ffffff;--ink:#292442;--nav-bg:#302a59;--accent:#6d40a3;--soft:#ede5fa;--line:#d7c6ed;--hero:#43347f;--hero2:#7e53b9; color:var(--ink);background:var(--page-bg)}
.role-student.theme-berry {--page-bg:#fff0f6;--ink:#41283b;--nav-bg:#63305a;--accent:#a52f79;--soft:#ffe3ef;--line:#edbdd7;--hero:#85345f;--hero2:#c35c9d}
.role-student.theme-forest {--page-bg:#eff9f5;--ink:#213f39;--nav-bg:#214c44;--accent:#277868;--soft:#d8f4ea;--line:#b9e1d1;--hero:#276b58;--hero2:#50a58c}
.role-student.theme-aurora {--page-bg:#edf8fc;--ink:#223747;--nav-bg:#183f66;--accent:#2375a1;--soft:#dff4fb;--line:#b2daeb;--hero:#205580;--hero2:#6669b3}
.role-student header {background:var(--nav-bg)}
.role-student .panel {background:var(--surface);border-color:var(--line)}
.role-student .panel h2,.role-student .panel h3 {color:var(--ink)}
.role-student .eyebrow{color:var(--accent)}
.role-student button:not(.textbutton),.role-student .button:not(.secondary) {background:var(--accent)}
.role-student button:focus-visible,.role-student a:focus-visible,.role-student input:focus-visible,.role-student textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.role-student .notice {background:var(--soft);border-left-color:var(--accent)}
.role-student .urgent {background:#fff7f7;border-color:#a83b3b}
.role-student progress{accent-color:var(--accent)}
.student-hero{margin:18px 0;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(120deg,var(--hero),var(--hero2));border-radius:20px;color:white;box-shadow:0 10px 26px #24204423}
.student-hero h2{font-size:1.5rem;color:white;margin:6px 0}.student-hero p{margin:4px 0 12px}.student-hero img{width:120px;height:120px;object-fit:contain;background:#ffffff25;border-radius:20px}
.student-hero .hero-kicker{font-size:.77rem;font-weight:800;letter-spacing:.1em}.student-hero .hero-link{font-weight:700;color:white;text-decoration:underline;text-underline-offset:4px}
.style-studio fieldset{border:1px solid var(--line,#ddd);border-radius:14px;padding:14px;margin:14px 0}.style-studio legend{font-weight:750;padding:0 8px}.style-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}.style-choice{margin:0;padding:13px;border:2px solid #d4d1df;border-radius:13px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:white;cursor:pointer}
.style-choice:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 2px var(--soft)}
.style-choice input{accent-color:var(--accent);margin:0}.style-choice small{font-weight:400;font-size:.82rem}.style-spot{display:block;width:100%;height:27px;border-radius:9px;background:linear-gradient(90deg,#302a59,#9f7cd2)}
.sample-berry .style-spot{background:linear-gradient(90deg,#63305a,#e88fb7)}.sample-forest .style-spot{background:linear-gradient(90deg,#214c44,#95deba)}.sample-aurora .style-spot{background:linear-gradient(90deg,#183f66,#75ced5)}
.interest-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:5px 12px}.interest-choice{margin:4px 0;padding:10px;border-radius:9px;background:var(--soft);font-weight:500}.interest-choice input{display:inline;accent-color:var(--accent)}
.achievement-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}.achievement-tile{background:var(--soft);border:1px solid var(--line);border-radius:15px;padding:15px;text-align:center}.achievement-tile img{max-width:120px;object-fit:contain}.achievement-tile h2{font-size:1rem;line-height:1.4;margin:8px 0}.achievement-tile small{font-size:.8rem}
@media (max-width:600px){.student-hero{padding:18px;gap:10px}.student-hero img{width:82px;height:82px}.student-hero h2{font-size:1.17rem}}
@media(prefers-reduced-motion:reduce){.student-hero,.style-choice,.achievement-tile{animation:none!important;transition:none!important}}
