@font-face{font-family:system-rounded;src:local('Nunito'),local('Avenir Next'),local('Segoe UI');font-display:swap}
:root{--ink:#1b2d47;--muted:#64748a;--blue:#2775de;--blue-dark:#175fc0;--blue-wash:#edf4ff;--line:#e4eaf3;--bg:#f4f7fc;--white:#fff;--radius:26px;color-scheme:light;font-family:system-rounded,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:100%;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;color:inherit;background:none;touch-action:manipulation}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #66a5f6;outline-offset:4px}button:active:not(:disabled){transform:scale(.98)}button svg{display:block;width:24px;height:24px;pointer-events:none}a{color:var(--blue)}[hidden]{display:none!important}
.app-shell{max-width:1080px;margin:0 auto;padding:0 32px}.app-header{min-height:96px;height:auto;padding:20px 0;flex-wrap:wrap;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}.brand-mark{display:block;position:relative;width:38px;height:40px;overflow:hidden;mix-blend-mode:multiply}.brand-mark img{width:114px;max-width:none;position:absolute;left:-38px;top:-26px}.brand-name{font-size:1.688rem;font-weight:700;letter-spacing:2px;line-height:1.05}.brand-caption{display:block;letter-spacing:.06em;font-weight:500;font-size:0.75rem;margin-top:7px;color:var(--muted)}.header-actions{display:flex;gap:14px;align-items:center}.offline-status{color:var(--muted);font-size:0.8125rem}.offline-status.ready{color:#3a6d5a}.icon-button{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--white)}
main{max-width:700px;margin:14px auto 0}.lesson-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.eyebrow{margin:0 0 7px;font-size:0.75rem;font-weight:700;letter-spacing:.14em;color:var(--blue)}h1{font-size:1.875rem;line-height:1.2;margin:0;font-weight:700;letter-spacing:-.025em}.parent-button{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 15px;font-size:0.875rem;white-space:nowrap}.parent-button svg{width:19px;height:19px;color:var(--muted)}.lesson-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.segmented{display:flex;align-items:stretch;gap:3px;background:#e9eef6;padding:4px;border-radius:13px}.segmented button{font-size:0.875rem;min-height:38px;padding:8px 18px;border-radius:10px;font-weight:500;white-space:normal}.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 2px 5px #1b2d4710;color:var(--blue);font-weight:700}.target-control{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.control-label{font-size:0.8125rem;color:var(--muted)}
.flashcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:21px 28px 13px;box-shadow:0 10px 40px #2a467308;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}.card-meta{display:flex;justify-content:space-between;align-items:center;font-size:0.75rem;letter-spacing:.035em;color:var(--muted);margin-bottom:20px}.card-meta span:last-child{font-variant-numeric:tabular-nums;letter-spacing:.12em}.object-stage{display:flex;align-items:center;justify-content:center;min-height:235px}.photo-button{display:block;width:100%;max-width:440px;padding:0;border-radius:18px;overflow:hidden;position:relative;background:#f3f5f7;outline-offset:4px;line-height:0}.photo-button img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;pointer-events:none;-webkit-user-drag:none}.photo-button[aria-pressed=true]{box-shadow:0 0 0 4px #9bc3fb}.target-area{text-align:center;margin:21px 0 18px}.target-kind{font-size:0.75rem;letter-spacing:.15em;color:var(--muted);margin:0 0 6px}.target-line{display:flex;justify-content:center;align-items:center;gap:10px;min-height:48px}.target-line h2{font-size:2.438rem;line-height:1.2;margin:0;font-weight:700;letter-spacing:-.02em}.target-line.sentence h2{font-size:1.688rem;max-width:540px;line-height:1.35}.target-line.phrase h2{font-size:2.062rem}.target-audio{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;background:var(--blue-wash);color:var(--blue);border-radius:50%}.target-audio svg{width:20px;height:20px}.tap-hint{font-size:0.8125rem;color:var(--muted);margin:9px 0 0}.audio-controls{display:flex;justify-content:center;gap:12px}.audio-button{display:flex;align-items:center;justify-content:center;gap:10px;font-weight:600;font-size:0.9375rem;min-height:52px;border-radius:14px;padding:13px 22px;flex:1;max-width:220px}.audio-button svg{width:22px;height:22px}.name-audio{background:var(--blue);color:#fff}.name-audio:hover{background:var(--blue-dark)}.sound-audio{background:var(--blue-wash);color:var(--blue-dark);border:1px solid #d7e6fe}.sound-audio:hover{background:#e1edff}.audio-button[aria-pressed=true]{box-shadow:0 0 0 3px #9bc3fb}.card-bottom{display:flex;justify-content:space-between;align-items:center;min-height:37px;margin-top:7px;gap:12px}.playback-status{font-size:0.75rem;color:var(--muted);margin:0;min-height:16px;flex:1}.watermark{display:block;position:relative;overflow:hidden;width:78px;height:25px;opacity:.22;flex:none;pointer-events:none}.watermark img{position:absolute;width:128px;height:128px;left:-26px;top:-75px;max-width:none}.card-navigation{display:flex;align-items:center;justify-content:center;gap:32px;margin-top:20px}.nav-button{width:50px;height:48px;background:#fff;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:center}.nav-button:hover:not(:disabled){background:var(--blue-wash);color:var(--blue)}.navigation-center{min-width:180px;text-align:center;font-size:0.8125rem;color:var(--muted)}.progress-track{height:3px;border-radius:3px;overflow:hidden;background:#e2e9f2;max-width:120px;margin:12px auto 0}.progress-track div{background:var(--blue);height:100%;border-radius:3px;transition:width .16s ease}.app-footer{display:flex;justify-content:space-between;gap:16px;font-size:0.75rem;color:#79879b;padding:32px 0 24px;max-width:700px;margin:0 auto}
.mystery{min-height:275px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.mystery-icon{display:flex;align-items:center;justify-content:center;width:112px;height:112px;border-radius:35px;background:var(--blue-wash);color:var(--blue);margin-bottom:20px}.mystery-icon svg{width:48px;height:48px}.mystery h2{font-size:1.75rem;margin:0 0 8px}.mystery p{font-size:1rem;color:var(--muted);margin:0}.guess-controls{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:24px;min-height:105px}.guess-controls .audio-button{max-width:280px;width:100%;flex:0}.reveal-button{font-size:0.9375rem;padding:10px 18px;color:var(--blue);text-decoration:underline;text-underline-offset:5px}.flashcard.guessing .card-bottom{margin-top:17px}
.app-dialog{border:1px solid var(--line);border-radius:24px;color:var(--ink);background:#fff;padding:28px;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);box-shadow:0 24px 100px #162b5040}.app-dialog::backdrop{background:#13274455;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-header h2{font-size:1.438rem;line-height:1.2;letter-spacing:-.015em;margin:0}.dialog-close{flex:none}.dialog-intro{font-size:1.062rem;margin:24px 0 9px;font-weight:600}.prompt-note{font-size:0.875rem;line-height:1.6;margin:0 0 20px;color:var(--muted)}.prompt-steps{display:grid;gap:10px}.prompt-step{border:1px solid var(--line);border-radius:15px;padding:13px 16px}.prompt-step .step-label{margin:0 0 6px;font-size:0.75rem;font-weight:600;letter-spacing:.03em;color:var(--muted)}.prompt-step .step-text{margin:0;font-size:1rem;line-height:1.5}.prompt-step.model{background:var(--blue-wash);border-color:#dbe9fd}.model-button{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--blue);color:#fff;width:100%;border-radius:13px;min-height:50px;margin-top:20px;font-weight:600;font-size:0.9375rem}.model-button svg{width:20px;height:20px}.help-content{margin-top:22px;font-size:1rem;line-height:1.65}.help-content p{margin:0 0 16px}.offline-help{padding:20px;background:var(--blue-wash);border-radius:16px;margin-top:24px}.offline-help h3{margin:0 0 12px;font-size:1.125rem}.offline-help p:last-of-type{font-size:0.8125rem;color:var(--muted)}.small-button{min-height:44px;background:#fff;border:1px solid #cfdef1;padding:10px 16px;border-radius:10px;font-size:0.875rem;margin:8px 4px 0 0}.credits{margin-top:24px;color:var(--muted);font-size:0.8125rem}.credits summary{cursor:pointer;padding:9px 0;font-size:0.875rem}.credits div{margin-top:10px}.credits p{margin-bottom:12px}.credits a{overflow-wrap:anywhere}body.modal-open{overflow:hidden}
@media(min-width:1000px) and (min-height:850px){main{margin-top:28px}.object-stage{min-height:280px}.photo-button{max-width:500px}.target-area{margin-top:28px;margin-bottom:24px}.flashcard{padding:24px 32px 16px}}
@media(max-width:700px){.app-shell{padding:0 20px}.app-header{min-height:80px;height:auto;padding:16px 0}.brand-name{font-size:1.562rem}.header-actions{gap:10px}.offline-status{font-size:0.75rem}.lesson-heading{margin-bottom:20px}main{margin-top:14px}h1{font-size:1.625rem}.parent-button{padding:10px 12px;font-size:0.8125rem}.lesson-controls{gap:12px}.target-control{gap:8px}.control-label{display:none}.segmented button{padding:7px 13px}.flashcard{padding:18px 20px 10px}.card-meta{margin-bottom:16px}.object-stage{min-height:210px}.target-line h2{font-size:2.25rem}.target-line.phrase h2{font-size:1.875rem}.target-line.sentence h2{font-size:1.5rem}.target-area{margin-top:20px}.audio-button{padding:13px 16px;font-size:0.875rem}.card-navigation{margin-top:18px}.app-footer{padding-top:26px}}
@media(max-width:480px){.app-shell{padding:0 16px}.app-header{min-height:72px;height:auto;padding:14px 0}.brand-mark{width:31px;height:35px}.brand-mark img{width:100px;left:-34px;top:-24px}.brand{gap:9px}.brand-name{font-size:1.5rem}.brand-caption{font-size:0.75rem;margin-top:5px}.offline-status{max-width:125px;text-align:right;line-height:1.3}.icon-button{width:36px;height:36px}.icon-button svg{width:20px;height:20px}main{margin-top:10px}.eyebrow{font-size:0.75rem;margin-bottom:6px}h1{font-size:1.438rem}.lesson-heading{gap:8px;margin-bottom:17px}.parent-button{padding:10px;font-size:0.875rem;gap:5px}.parent-button svg{width:17px;height:17px}.lesson-controls{display:grid;grid-template-columns:1fr;gap:10px}.mode-control{justify-self:start}.mode-control button{min-height:35px;padding:7px 18px}.target-control{width:100%;justify-content:space-between}.control-label{display:block;font-size:0.75rem}.target-control .segmented{flex:1 1 225px;max-width:none;flex-wrap:wrap}.target-control .segmented button{flex:1;padding:7px 12px;min-height:35px}.segmented button{font-size:0.8125rem}.flashcard{border-radius:23px;padding:17px 16px 9px}.card-meta{font-size:0.75rem;margin-bottom:15px}.object-stage{min-height:180px}.photo-button{border-radius:13px}.target-kind{font-size:0.75rem}.target-area{margin:18px 0 16px}.target-line h2{font-size:2.062rem}.target-line.phrase h2{font-size:1.688rem}.target-line.sentence h2{font-size:1.375rem}.tap-hint{font-size:0.75rem}.audio-controls{gap:9px}.audio-button{min-height:50px;padding:12px 10px;font-size:0.875rem;gap:7px}.audio-button svg{width:20px;height:20px}.watermark{width:78px}.playback-status{font-size:0.75rem}.card-navigation{gap:16px;margin-top:15px}.nav-button{width:46px;height:44px}.navigation-center{font-size:0.75rem;min-width:0;flex:1;max-width:220px}.app-footer{font-size:0.75rem;padding:24px 0 18px}.app-dialog{padding:22px 20px}.dialog-header h2{font-size:1.312rem}.mystery{min-height:240px}.mystery h2{font-size:1.562rem}.mystery p{font-size:0.9375rem}.guess-controls{margin-top:18px}}
@media(max-height:650px) and (min-width:700px){.app-header{min-height:68px;height:auto;padding:12px 0}main{margin-top:0}.lesson-heading{margin-bottom:14px}.lesson-controls{margin-bottom:12px}.flashcard{padding:14px 24px 7px}.card-meta{margin-bottom:10px}.object-stage{min-height:130px}.photo-button{max-width:260px}.target-area{margin:12px 0}.target-line h2{font-size:1.875rem}.target-line.sentence h2{font-size:1.438rem}.tap-hint{margin-top:5px}.audio-button{min-height:44px;padding:10px 18px}.card-bottom{min-height:30px;margin-top:2px}.card-navigation{margin-top:12px}.app-footer{padding:18px 0}.mystery{min-height:170px}.mystery-icon{width:72px;height:72px;border-radius:22px;margin-bottom:10px}.mystery-icon svg{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.category-settings{margin-top:22px;padding-bottom:20px;border-bottom:1px solid var(--line)}.settings-label{display:block;font-size:.875rem;font-weight:600;margin:0 0 10px}.category-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}.category-button{display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;padding:12px 14px;min-height:65px;border:1px solid var(--line);border-radius:12px;font-size:.9375rem}.category-button[aria-pressed=true]{background:var(--blue-wash);border-color:#b6d1f6;color:var(--blue-dark)}.category-count{font-size:.75rem;color:var(--muted)}.card-picker{font:inherit;font-size:1rem;width:100%;min-height:46px;padding:10px 12px;color:var(--ink);background:#fff;border:1px solid #d3deec;border-radius:10px}.card-picker:focus-visible{outline:3px solid #66a5f6;outline-offset:3px}.settings-note{font-size:.8125rem;color:var(--muted);line-height:1.5;margin:10px 0 0}.target-line.question h2{font-size:1.625rem;line-height:1.4;max-width:540px}.answer-area{padding:15px;margin:0 0 18px;background:var(--blue-wash);border-radius:14px;text-align:center}.answer-line{display:flex;justify-content:center;align-items:center;gap:12px}.answer-line p{font-size:1.25rem;line-height:1.5;margin:0}.answer-line .target-audio{background:#fff}.qa-reveal{line-height:1.35}.question-card .audio-controls{flex-wrap:wrap}.question-card .audio-button{flex:1 1 140px}.question-card .target-area{margin-top:18px}
@media(max-width:480px){.target-line.question h2{font-size:1.3125rem}.answer-line p{font-size:1.125rem}.question-card .audio-button{font-size:.875rem}.category-button{padding:11px 12px}}

.category-settings summary{font-size:.9375rem;font-weight:600;color:var(--blue-dark);padding:9px 0;cursor:pointer}.category-settings[open] summary{margin-bottom:16px}.category-button{min-width:0;overflow-wrap:anywhere}.target-line h2{min-width:0;overflow-wrap:anywhere}.app-dialog{overflow-y:auto}

main.home-view{max-width:900px;margin-top:22px}.home-heading{margin:0 0 26px}.home-heading h1{font-size:2rem}.material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.material-card{display:flex;flex-direction:column;min-width:0;width:100%;padding:12px;text-align:left;border:1px solid var(--line);border-radius:22px;background:var(--white);box-shadow:0 8px 24px #2a467305;overflow:hidden}.material-card:hover{border-color:#aacbf7;background:#fbfdff}.material-card img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#f3f5f7;border-radius:14px;pointer-events:none}.material-card-body{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 12px;padding:17px 7px 8px}.material-name{font-size:1.25rem;font-weight:700;line-height:1.3}.material-count{font-size:.875rem;line-height:1.4;color:var(--muted)}.home-signature{display:flex;justify-content:flex-end;margin-top:24px}.lesson-breadcrumb{display:flex;align-items:center;gap:16px;margin:0 0 20px;font-size:.875rem;color:var(--muted)}.home-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--blue-dark);font-size:.875rem;font-weight:600}.home-button:hover{background:var(--blue-wash)}.home-button svg{width:18px;height:18px}.home-heading h1:focus,.lesson-heading h1:focus{outline:none}
@media(max-width:700px){main.home-view{margin-top:14px}.material-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-heading{margin-bottom:20px}.home-heading h1{font-size:1.75rem}.material-card{padding:10px;border-radius:18px}.material-card-body{padding:14px 3px 6px}.material-name{font-size:1.125rem}.lesson-breadcrumb{margin-bottom:17px}}
@media(max-width:380px){.material-grid{gap:10px}.material-card{padding:8px;border-radius:16px}.material-card img{border-radius:11px}.material-card-body{padding:12px 2px 5px;gap:5px}.material-name{font-size:1rem}}

.question-card{display:flex;flex-direction:column}.question-card .card-meta{order:0}.question-card .target-area{order:1;margin:4px 0 18px}.question-card .object-stage{order:2;min-height:0}.question-card .answer-area{order:3;margin-top:15px}.question-card .audio-controls{order:4;margin-top:14px}.question-card .card-bottom{order:5}.question-stage{width:100%;max-width:600px}.answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.picture-choice{display:block;position:relative;min-width:0;min-height:72px;width:100%;padding:6px;border:2px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;line-height:0}.picture-choice img{display:block;width:100%;height:auto;max-height:210px;aspect-ratio:3/2;object-fit:contain;border-radius:9px;pointer-events:none}.choice-letter{position:absolute;top:9px;left:9px;display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:7px;background:#fff;color:var(--muted);font-size:.875rem;font-weight:700;line-height:1;box-shadow:0 1px 5px #1b2d4715}.picture-choice:hover{border-color:#a9cafa}.picture-choice.correct{border-color:#388367;background:#f1fbf5}.picture-choice.try-again{border-color:#8ca6c8}.choice-result{position:absolute;right:9px;bottom:9px;font-size:1.1rem;line-height:1;color:#267453;background:#fff;border-radius:50%;padding:4px}.choice-result:empty{display:none}.choice-feedback{font-size:1rem;line-height:1.45;text-align:center;color:var(--muted);margin:12px 0 0;min-height:24px}.choice-feedback[data-result=correct]{color:#267453;font-weight:600}.question-context{margin-bottom:14px;border-radius:12px;overflow:hidden;background:#f5f7fa}.question-context p{font-size:.875rem;line-height:1.4;margin:8px 10px;color:var(--muted)}.question-context img{display:block;width:100%;height:auto;max-height:160px;object-fit:contain}.question-card .target-line.question h2{font-size:1.5rem;line-height:1.35}.question-card .tap-hint{font-size:.875rem}
@media(max-width:480px){.answer-grid{gap:9px}.picture-choice{padding:4px;border-radius:12px}.picture-choice img{aspect-ratio:4/3}.choice-letter{top:7px;left:7px;width:23px;height:23px}.question-card .target-line.question h2{font-size:1.25rem}.question-card .target-area{margin-bottom:14px}.choice-feedback{font-size:.9375rem}.question-context img{max-height:110px}.choice-result{right:6px;bottom:6px}}

.update-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;background:var(--blue-wash);border:1px solid #d7e6fe;border-radius:14px;font-size:.875rem}.update-notice .small-button{margin:0}.version-note{margin:6px 0 0;font-size:.8125rem;color:var(--muted)}

/* The two media types have their own shelves, with the actual book covers. */
.home-intro{margin:12px 0 0;color:var(--muted);font-size:1rem;line-height:1.5}
.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:800px}
.media-card{position:relative;display:flex;flex-direction:column;text-align:left;min-width:0;padding:18px;border:1px solid var(--line);border-radius:24px;background:#fff;overflow:hidden}
.media-card:hover{border-color:#aacbf7}
.media-cover{display:flex;align-items:center;justify-content:center;min-height:230px;padding:16px;border-radius:16px;background:#f3f7fd;pointer-events:none}
.media-cover img{display:block;width:100%;height:210px;object-fit:contain;border-radius:7px}
.worksheet-cover{background:#faf7f2}.worksheet-cover img{width:auto;max-width:100%;box-shadow:0 6px 16px #1b2d4717}
.media-card-body{display:flex;flex-direction:column;gap:9px;padding:22px 5px 8px}
.media-card-body .material-name{font-size:1.5rem}.media-description{display:block;color:var(--muted);font-size:.875rem;line-height:1.5}
.media-arrow{position:absolute;right:26px;bottom:28px;color:var(--blue);font-size:1.4rem}
.media-card-body .media-description{padding-right:20px}
.material-card img{aspect-ratio:3/2;background:#f6f8fb;object-fit:contain}
.book-grid{display:grid;grid-template-columns:minmax(0,320px);gap:20px}
.book-card img{aspect-ratio:595/842;border-radius:12px;background:#faf7f2}
.book-card .material-card-body{flex-direction:column;gap:8px}.book-card .material-name{font-size:1.15rem}
.breadcrumb-link{min-height:44px;padding:8px 0;color:var(--blue-dark);font-size:.875rem;text-underline-offset:4px}.breadcrumb-link:hover{text-decoration:underline}
.lesson-breadcrumb{flex-wrap:wrap;gap:8px 14px}

/* Quiet feedback: one short animation, no confetti, timers or auto-advance. */
.picture-choice.try-again,.worksheet-choice.try-again{border-color:#c68b50;background:#fff8ef}
.picture-choice.try-again .choice-result{color:#95602c}
.choice-feedback[data-result=retry]{color:#95602c}
.feedback-correct{animation:answer-confirm .34s ease-out}
.feedback-retry{animation:answer-retry .3s ease-out}
@keyframes answer-confirm{0%{transform:scale(1)}45%{transform:scale(1.025)}100%{transform:scale(1)}}
@keyframes answer-retry{0%,100%{transform:translateX(0)}30%{transform:translateX(-3px)}70%{transform:translateX(3px)}}

.worksheet-selector{display:flex;align-items:center;gap:12px;margin:0 0 18px}
.worksheet-selector label{font-size:.875rem;color:var(--muted)}
.worksheet-selector select{flex:1;min-width:0;width:auto;font-size:.9375rem}
.worksheet-card{padding:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 40px #2a467308;min-width:0}
.worksheet-card .card-meta{margin-bottom:18px;gap:10px;line-height:1.5}
.worksheet-instructions{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.worksheet-instructions p{flex:1;margin:0;font-size:1.0625rem;line-height:1.55}
.worksheet-modes{width:max-content;max-width:100%;margin-bottom:17px}
.drawing-tools{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.drawing-tools button{min-height:44px;padding:9px 12px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:.875rem}
.drawing-tools button[aria-pressed=true]{border-color:#a6c6f3;background:var(--blue-wash);color:var(--blue-dark);font-weight:600}
.worksheet-hint{font-size:.8125rem;line-height:1.5;margin:0 0 12px;color:var(--muted)}
.drawing-board{position:relative;isolation:isolate;width:100%;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;user-select:none;-webkit-user-select:none}
.drawing-board img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none}
#worksheet-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none}
#worksheet-canvas.erasing{cursor:cell}
.worksheet-save-note{margin:10px 0 0;font-size:.75rem;line-height:1.5;color:var(--muted)}
.worksheet-row-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px;font-size:.875rem;color:var(--muted)}
.worksheet-row-navigation .small-button{margin:0;min-width:46px;font-size:1.1rem}
.worksheet-row-image{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;border-radius:10px;margin-bottom:15px;background:#fff}
.worksheet-row-image.single-item{max-height:220px}
.worksheet-row-prompt{font-weight:600;font-size:1.125rem;line-height:1.4;margin:4px 0 15px;text-align:center}
.worksheet-answers{display:flex;align-items:stretch;justify-content:center;gap:10px}
.worksheet-choice{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;max-width:180px;min-height:54px;padding:12px 9px;border:2px solid var(--line);border-radius:12px;background:#f9fbfe;font-size:1.125rem;font-weight:600}
.worksheet-choice.correct{background:#f1fbf5;border-color:#388367;color:#267453}
.worksheet-choice.try-again{color:#95602c}
.worksheet-choice-result{font-size:1.15rem}
.worksheet-choice-result:empty{display:none}
.worksheet-card .reveal-button{display:block;margin:4px auto 0;font-size:.8125rem}
.vocabulary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.vocabulary-card{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;padding:12px;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.vocabulary-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:10px;pointer-events:none}
.vocabulary-card span{font-size:1rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.vocabulary-card[aria-pressed=true]{border-color:var(--blue);box-shadow:0 0 0 2px #bcd7fb}
#vocabulary-playback-status{margin-top:18px;min-height:22px}
@media(max-width:700px){.media-grid{gap:16px}.media-card{padding:13px}.media-cover{min-height:180px;padding:12px}.media-cover img{height:165px}.media-card-body{padding-top:19px}.media-card-body .material-name{font-size:1.3rem}.media-arrow{right:19px;bottom:22px}.vocabulary-grid{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.worksheet-card{padding:20px}}
@media(max-width:480px){.media-grid{grid-template-columns:1fr;gap:16px}.media-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:17px;align-items:center;padding:15px}.media-cover{min-height:132px;padding:8px;border-radius:12px}.media-cover img{height:116px}.media-card-body{padding:0;gap:8px}.media-card-body .material-name{font-size:1.35rem}.media-card-body .material-count{font-size:.8125rem}.media-description{font-size:.8125rem}.media-arrow{display:none}.media-card-body .media-description{padding:0}.home-intro{font-size:.9375rem}.worksheet-card{padding:17px 13px;border-radius:22px}.worksheet-instructions p{font-size:.9375rem}.worksheet-card .card-meta{font-size:.75rem}.worksheet-selector{gap:9px;align-items:flex-start}.worksheet-selector label{padding-top:13px}.worksheet-selector select{font-size:.875rem;max-width:100%}.drawing-tools{gap:6px}.drawing-tools button{font-size:.8125rem;padding:9px 10px;flex:1 1 auto}.worksheet-modes button{font-size:.875rem}.worksheet-row-image{max-height:330px}.worksheet-choice{font-size:1.0625rem;min-height:52px}.worksheet-answers{gap:8px}.vocabulary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.vocabulary-card{padding:10px;gap:8px}.vocabulary-card span{font-size:.9375rem}.lesson-breadcrumb{font-size:.8125rem}}
@media(prefers-reduced-motion:reduce){.feedback-correct,.feedback-retry{animation:none!important}}

/* Progressive SPOK and caregiver-scored articulation practice. */
.book-grid{grid-template-columns:repeat(2,minmax(0,320px))}
.spok-card .object-stage{margin-bottom:18px}.spok-card .photo-button{max-width:520px;margin-inline:auto}
.spok-parts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:560px;margin:0 auto 20px}
.spok-part{position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;text-align:center}
.spok-part img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:10px}
.spok-role{font-weight:700;font-size:.75rem;color:var(--blue-dark)}.spok-word{font-size:.875rem;line-height:1.35;overflow-wrap:anywhere}
.articulation-selectors{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;margin-bottom:18px}
.articulation-selectors label{display:flex;flex-direction:column;gap:8px;font-size:.8125rem;color:var(--muted)}
.articulation-selectors select{width:100%;min-width:0;font-size:.9375rem}
.articulation-levels{width:max-content;max-width:100%;margin:0 auto 18px}
.articulation-photo-button{display:block;max-width:250px;width:100%;margin:12px auto;border-radius:16px;background:#fff}
.articulation-photo-button img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain;pointer-events:none}
.articulation-photo-button[aria-pressed=true]{box-shadow:0 0 0 3px #bcd7fb}
.articulation-target{justify-content:center;text-align:center;margin:10px auto 8px;min-height:50px}
.articulation-target h2{font-size:1.75rem;line-height:1.45;margin:0;overflow-wrap:anywhere}
#articulation-playback-status{text-align:center;min-height:22px;margin:0 0 12px}
.articulation-targets{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:22px}
.articulation-targets button{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid var(--line);border-radius:10px;padding:8px 5px;font-size:.75rem;line-height:1.35;min-width:0}
.articulation-targets img{width:56px;height:56px;max-width:100%;object-fit:contain;pointer-events:none}
.articulation-targets span{overflow-wrap:anywhere}.articulation-targets button[aria-pressed=true]{border-color:var(--blue);background:var(--blue-wash);box-shadow:0 0 0 1px var(--blue)}
.repetition-panel{border-top:1px solid var(--line);padding-top:23px}
.repetition-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.repetition-heading h2{font-size:1.125rem;margin:0 0 7px}.repetition-heading p{font-size:.8125rem;color:var(--muted);margin:0;line-height:1.5}
#repetition-total{font-size:.8125rem;white-space:nowrap;color:var(--muted);padding-top:4px}
.repetition-active{font-size:.875rem;font-weight:600;margin:20px 0 10px}
.repetition-grades{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:10px}
.repetition-grades button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:56px;border:2px solid;border-radius:12px;font-size:.9375rem;font-weight:600;padding:10px 8px;line-height:1.4}
.grade-correct{color:#145d37;background:#e8f7ed;border-color:#239254!important}
.grade-partial{color:#755200;background:#fff3c4;border-color:#d5a817!important}
.grade-wrong{color:#972627;background:#ffeded;border-color:#d34b50!important}
.repetition-grades button[aria-pressed=true]{outline:3px solid currentColor;outline-offset:2px}
.repetition-trials{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0 12px;max-height:240px;overflow:auto;padding:4px}
.repetition-trials:empty{margin:0}
.repetition-trial{min-width:48px;min-height:44px;padding:9px;border:1px solid;border-radius:9px;font-size:.875rem;font-weight:600}
.repetition-trial[aria-pressed=true]{outline:3px solid var(--blue-dark);outline-offset:2px}
.repetition-summary{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}
.repetition-summary span{font-size:.75rem;padding:7px 9px;border-radius:7px;line-height:1.4}
.repetition-tools{display:flex;flex-wrap:wrap;gap:8px}.repetition-tools .small-button{margin:0;font-size:.8125rem;min-height:44px}
.articulation-guidance{margin:22px 0 0;border-top:1px solid var(--line);padding-top:17px}
.articulation-guidance summary{cursor:pointer;font-weight:600;font-size:.875rem;min-height:32px;color:var(--blue-dark)}
.articulation-guidance p{font-size:.875rem;line-height:1.6;color:var(--muted)}
.articulation-guidance img{display:block;width:100%;height:auto;margin-top:14px;border-radius:10px}
.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}
@media(max-width:600px){.articulation-targets{grid-template-columns:repeat(3,minmax(0,1fr))}.spok-parts{gap:8px}.spok-word{font-size:.8125rem}.repetition-grades{gap:7px}.repetition-grades button{font-size:.8125rem;flex-direction:column;gap:3px}.repetition-grades button span{font-size:1.15rem}.articulation-target h2{font-size:1.4rem}.book-grid{gap:14px}.book-card .material-name{font-size:1rem}}
@media(max-width:380px){.book-grid{grid-template-columns:minmax(0,1fr)}.articulation-selectors{grid-template-columns:85px minmax(0,1fr);gap:10px}.articulation-selectors select{font-size:.8125rem}.spok-parts{grid-template-columns:repeat(2,minmax(0,1fr));max-width:260px}.target-control .segmented button{padding-inline:9px;font-size:.75rem}}
