.library-page main{max-width:1100px;padding-bottom:50px}
.library-page h1,.library-page h2,.library-page p{margin:0}
.library-page .return-feed,#library-link{margin-left:auto;text-decoration:none;font-weight:700;font-size:14px;border:1px solid #c3cab9;border-radius:22px;padding:10px 15px;color:#294a37}
.library-hero{display:grid;grid-template-columns:1.35fr 1fr;align-items:center;gap:34px;margin:0 0 28px}
.library-hero h1{font-size:clamp(42px,6.7vw,82px);line-height:1;letter-spacing:-.06em}
.library-hero p{font-size:18px;line-height:1.5;color:var(--muted);max-width:44ch;margin-top:13px}
.featured{position:relative;display:block;overflow:hidden;border-radius:24px;border:1px solid #95a879;background:#cedead;color:white}
.featured canvas{display:block;width:100%;height:160px;object-fit:cover}
.featured span{position:absolute;inset:auto 0 0;padding:20px 16px 12px;background:linear-gradient(transparent,#183524e8);font-size:17px;font-weight:700}
.featured b{float:right}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.section-head h2{font-size:clamp(24px,3vw,34px);line-height:1.14;letter-spacing:-.045em}
.section-head button,#pages button,.lesson-results>button{border:1px solid #a6b69c;border-radius:22px;min-height:40px;padding:7px 14px;font-weight:700;background:#fffef8}
.section-head button[aria-pressed=true]{background:#dfedcc}
.subjects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.subjects button{display:flex;align-items:center;gap:10px;border:2px solid transparent;border-radius:14px;padding:10px 12px;text-align:left;font-size:16px;min-height:53px}
.subjects button[aria-pressed=true]{border-color:currentColor}
.subjects button:hover,.library-item:hover{outline:2px solid #6f806e;outline-offset:-2px}
.subjects span{font:25px "Segoe UI Emoji","Apple Color Emoji",sans-serif}
.results{margin-top:30px;scroll-margin-top:16px}
#result-count,#pages{font:700 13px var(--mono);color:#455d4b}
.filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(105px,170px);gap:12px;margin:12px 0 15px}
.filters label{display:grid;gap:4px;font-size:13px;font-weight:700;color:#415444}
.filters input,.filters select{font:inherit;font-size:16px;min-width:0;width:100%;padding:10px 12px;min-height:44px;border:1px solid #bbc6b4;border-radius:12px;background:#fffef8;color:var(--ink)}
.lesson-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.library-item{display:flex;align-items:center;gap:10px;min-width:0;background:#fffef9;border:1px solid #d5dbcf;border-radius:14px;padding:9px;text-decoration:none}
.tile-art{display:grid;place-items:center;flex:none;width:53px;height:56px;border-radius:10px;font:27px "Segoe UI Emoji","Apple Color Emoji",sans-serif}
.library-item strong,.library-item small{display:block}.library-item strong{font-size:16px;line-height:1.2}.library-item small{font-size:12px;color:#596b59;margin-top:4px}
#pages{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:18px}#pages button:disabled{opacity:.4}
@media(max-width:780px){.lesson-results{grid-template-columns:repeat(2,minmax(0,1fr))}.subjects button{font-size:14px}}
@media(max-width:600px){.library-page main,.library-page .mast-inner{width:calc(100% - 28px)}.library-page main{padding-top:22px}.library-page .mast-inner{min-height:58px;gap:8px}.library-page .brand{font-size:24px}.library-page .brand img{width:32px;height:32px}.library-page .return-feed{font-size:12px}.library-hero{gap:12px;grid-template-columns:minmax(0,1fr);margin-bottom:20px}.library-hero p{font-size:15px;margin-top:8px}.featured canvas{height:98px}.featured span{padding:16px 12px 8px;font-size:15px}.subjects{gap:6px}.subjects button{flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;padding:6px 7px;min-height:66px;font-size:12px}.subjects span{font-size:21px}.lesson-results{grid-template-columns:minmax(0,1fr)}.results{margin-top:20px}.filters{gap:7px}}
.library-page.practice-page main{max-width:700px}
.practice-sheet{background:#fffef8;border:1px solid #c8d1bf;border-radius:24px;padding:clamp(18px,4vw,38px)}
.practice-sheet h1{font-size:clamp(36px,5vw,58px);line-height:1.08;letter-spacing:-.045em}
.practice-sheet #question{font-size:clamp(25px,4.5vw,36px);line-height:1.18;margin:18px 0}
.practice-sheet h1:focus{outline:none}
.practice-sheet .practice-intro{color:#475849;font-size:18px;line-height:1.5;margin:12px 0 18px}
.practice-sheet .practice-meta,.practice-top,.practice-lesson small{font:700 13px/1.5 var(--mono);color:#4c6551}
.practice-sheet .practice-meta{margin:4px 0 16px}
.practice-sheet .quiet,.practice-link{font-family:inherit;font-size:15px;line-height:1.35;font-weight:700;color:#2c503b;border:1px solid #b3c2ac;border-radius:12px;min-height:44px;padding:10px 14px;background:#f0f4e8}
.practice-link{display:inline-flex;align-items:center;text-decoration:none;margin:0 0 15px}
.practice-controls,.practice-top,.practice-lesson{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.practice-controls{margin-top:14px}.practice-controls .primary{width:auto}
.practice-top{justify-content:space-between}.practice-top .quiet{font-size:13px}
.practice-lesson{margin-top:14px}.practice-lesson strong,.practice-lesson small{display:block}
.practice-lesson strong{font-size:19px}.practice-lesson #art{display:grid;place-items:center;width:53px;height:53px;border-radius:13px;font:29px "Segoe UI Emoji","Apple Color Emoji",sans-serif}
.practice-sheet .choice{min-height:48px;line-height:1.4}.practice-sheet .attempted{opacity:.65}.practice-sheet .correct{border-color:#577a50;background:#e5efce}.practice-sheet .correct:before{background:#3b6648;box-shadow:inset 0 0 0 3px #e5efce}
.practice-sheet #feedback:not(:empty){margin-top:16px;background:#eff3e7;padding:12px 15px;border-radius:12px;font-size:17px;line-height:1.5}
.practice-sheet #audio-status{font-size:13px;color:#46594a;margin-top:6px}.practice-review{display:inline-flex;align-items:center;min-height:44px;color:#36543c;font-weight:700}
.practice-sheet .lesson-results{grid-template-columns:minmax(0,1fr)}
.practice-sheet [hidden],.practice-sheet[hidden]{display:none}
.practice-entry{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;color:#36543c;font-weight:700}
.reading-feature{display:flex;align-items:center;gap:15px;padding:16px 18px;margin:0 0 24px;border:1px solid #bdcbb9;border-radius:18px;background:#e9efdc;text-decoration:none;color:#264736}
.reading-feature strong,.reading-feature small{display:block}.reading-feature small{margin-top:4px;line-height:1.4}.reading-feature b{margin-left:auto}.book-mark{display:grid;place-items:center;background:#fdf7e4;border-left:5px solid #719578;width:50px;height:49px;border-radius:3px 9px 9px 3px;font:700 23px Georgia,serif}
.reading-page main{max-width:1080px}.room-heading{display:flex;justify-content:space-between;align-items:end;gap:20px}.room-heading p,#done-copy{color:#4b5c50;line-height:1.5;margin-top:10px;font-size:18px}.level-label{display:grid;gap:5px;font-weight:700;font-size:14px}.level-label select,.read-pick{padding:10px 12px;min-height:44px;background:#fffef7;border:1px solid #acbaaa;border-radius:12px;color:#254531;font:inherit}
.reading-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:26px}.read-path,.reader-sheet{border:1px solid #c8d2bf;border-radius:22px;background:#fffef8}
.read-path{display:flex;flex-direction:column;padding:16px;gap:12px;min-width:0}.read-path h2{font-size:26px}.read-path>p{font-size:16px;line-height:1.45;color:#425447}.read-path .read-count{margin-top:auto;font-size:13px;font-weight:700}.read-path details{margin-top:2px}.read-path summary{cursor:pointer;min-height:42px;padding:10px 0;color:#34573e;font-weight:700}.read-pick{width:100%;margin:2px 0 8px}
.reading-sample{min-height:128px;border-radius:14px;display:flex;align-items:center;justify-content:center;text-align:center;padding:15px;background:#e7efcb;font:600 clamp(23px,3vw,35px)/1.2 Georgia,serif;color:#284b39;overflow-wrap:anywhere}.read-path[data-mode="blends"] .reading-sample{background:#f6e2ba;color:#5d421c}.read-path[data-mode="passages"] .reading-sample{background:#e1dcf1;color:#403354;font-size:23px;font-style:italic}
.reader-sheet{max-width:740px;margin:auto;padding:clamp(18px,4vw,36px)}.reading-page h1:focus{outline:0}.reader-bar,.voice-bar,.reading-actions,.word-parts{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.reader-bar{justify-content:space-between}.reader-bar span,.reading-kicker{font-size:14px;font-weight:700;color:#47614f}.reader-sheet .reading-kicker{margin-top:20px}.reader-sheet h1{font-size:clamp(30px,5vw,44px);line-height:1.13;letter-spacing:-.04em;margin:8px 0 18px}.reader-sheet h1.word-title{font:600 clamp(48px,9vw,84px)/1.12 Georgia,serif;color:#234a39;overflow-wrap:anywhere}
.reading-page .quiet,.reading-page .listen-piece{font:inherit;font-weight:700;border:1px solid #b6c3ae;background:#f4f5e9;color:#294835;border-radius:12px;min-height:44px;padding:9px 13px}.reading-actions{margin-top:18px}.reading-actions .primary{width:auto}.voice-bar{margin-top:18px;border-top:1px solid #d8dfcf;padding-top:12px}.voice-bar span{font-size:13px}
.reader-sheet .reading-line,.reader-sheet .word-sentence{display:block;width:100%;border:1px solid #dfdfce;border-radius:12px;padding:13px 15px;text-align:left;background:#faf8eb;font:normal clamp(19px,3vw,25px)/1.55 Georgia,serif;letter-spacing:.005em;margin:6px 0;color:#293d35}
.reader-sheet .reading-line[data-playing],.reader-sheet .listen-piece[data-playing],.reader-sheet .word-sentence[data-playing]{background:#e5edc5;outline:2px solid #60794b;outline-offset:-2px}.reader-help{color:#4c6151;font-size:15px;line-height:1.5}.reader-sheet .tip-copy{font-size:17px;line-height:1.5;margin:12px 0 8px}.word-parts{margin:12px 0}.reading-page .listen-piece{font:600 27px Georgia,serif;background:#f7e7c8;min-width:48px}
.reader-sheet .choices{margin:14px 0}.reader-sheet .choice{min-height:48px;line-height:1.4;font-size:18px}.reader-sheet .choice.correct{background:#e2edcb;border-color:#7b995d}.reader-sheet .choice.tried{text-decoration:line-through;color:#636c64}.reader-sheet #reply:not(:empty){margin:12px 0;background:#eef2e5;border-radius:10px;padding:12px 14px;line-height:1.5}.reading-page [hidden]{display:none!important}
@media(max-width:760px){.reading-paths{grid-template-columns:minmax(0,1fr)}.read-path{display:grid;grid-template-columns:minmax(92px,.6fr) 1.4fr;column-gap:14px;row-gap:9px}.reading-sample{grid-row:1 / 4;min-height:94px}.read-path h2{font-size:23px}.read-path details{grid-column:1 / -1}.read-path .primary{grid-column:1 / -1}.room-heading{align-items:start;flex-direction:column}.reading-paths{margin-top:18px}}
.reader-sheet .choice[data-playing]{outline:2px solid #60794b;outline-offset:-2px;background:#eef3df}
.read-invite{margin-top:22px;background:#dfeecf;border:1px solid #b6caa7;border-radius:18px;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;gap:12px}
#story-play{display:flex;align-items:center;gap:12px;font:700 clamp(19px,3vw,28px)/1.1 inherit;color:#203e2b;font-family:inherit;font-size:clamp(19px,3vw,28px);font-weight:750;line-height:1.15;text-align:left}
.play-circle{display:grid;place-items:center;border-radius:50%;width:54px;height:54px;color:#fff;background:#315b43;flex:none;font-size:24px;padding-left:3px}
.read-path>.quiet{justify-self:start;font-size:13px}
.read-path details .quiet{margin:3px 5px 0 0}.voice-bar label{font-size:14px;color:#354f40}.voice-bar select{min-height:44px;padding:5px 7px;border-radius:9px;background:#f9faef;color:#294835;border:1px solid #b6c3ae}
.reader-sheet .follow-word{border-radius:.18em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.reader-sheet .follow-word[data-current]{background:#ffdb59;color:#202719;box-shadow:0 .1em #6a4e00}
.reader-sheet .reading-line[data-playing],.reader-sheet .word-sentence[data-playing]{background:#fffcef;outline:1px solid #9ba88a}
.trace-entry{grid-column:1/-1;border-top:1px solid #cbd4c1;padding-top:14px;display:grid;gap:8px}
.trace-entry h3,.trace-entry p{margin:0}.trace-entry h3{font-size:21px}.trace-entry p{font-size:15px;line-height:1.45;color:#43594a}
.trace-copy{display:flex;flex-wrap:wrap;align-items:baseline;gap:.12em .06em;margin:2px 0 12px;font:600 clamp(21px,4.3vw,30px)/1.35 Georgia,serif;color:#59675e}
.trace-token{display:inline-flex}.trace-token:has(>span:only-child){white-space:pre}.trace-token span{border-radius:4px}
.trace-copy [data-tracing=current]{background:#ffe178;color:#283729;box-shadow:0 2px #826327}
.trace-copy [data-tracing=done]{color:#286546}
.trace-frame{position:relative;width:min(100%,360px);margin:0 auto 12px;border-radius:20px;border:2px solid #b7c9b4;overflow:hidden;background:#fffdf5}
.trace-pad{width:100%;display:block;aspect-ratio:1;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.trace-pad:focus-visible{outline:3px solid #356545;outline-offset:-4px}
.trace-rule{stroke:#d8dfd0;stroke-width:.8}.trace-rule.rule-74{stroke-dasharray:3 4}.trace-rule.rule-150{stroke:#a5b8a2;stroke-width:1.2}
.trace-guide,.trace-ink{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:10}.trace-guide{stroke:#d8e1d4}.trace-guide.active-stroke{stroke:#b3c8af}.trace-ink{stroke:#286849}
.trace-dot{fill:#ffe176;stroke:#31513c;stroke-width:1.7}.trace-demo-dot{fill:#fdad60;stroke:#543d27;stroke-width:1.5}
.trace-status{display:block;text-align:center;background:#edf3e6;border-top:1px solid #cfdbc8;color:#35563f;font-size:14px;font-weight:700;padding:6px}
.traced-word{margin:8px 0 16px;font:600 46px Georgia,serif;color:#286849}.trace-key-help{display:none}.trace-frame:focus-within + .reader-help .trace-key-help{display:inline}
@media(max-height:720px){.trace-frame{width:min(100%,285px)}}
@media(max-width:450px){.read-invite{padding:10px;gap:7px}.read-invite .quiet{font-size:13px}.play-circle{width:46px;height:46px}}
