@font-face{font-family:GardenRound;src:local('Arial Rounded MT Bold');font-display:swap}
:root{--paper:#f7f5eb;--ink:#334c40;--muted:#7c867b;--green:#54785c;--pale:#e9eddf;--line:#dedfd2;--peach:#f0cdb7;--ochre:#dfae58;--white:#fffef9;--shadow:0 12px 36px #334c4007;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--ochre);outline-offset:5px}button{border:0}a{color:inherit}svg{display:block}h1,h2,h3,p{margin:0}button svg,.icon{width:22px;height:22px;flex:none}button{user-select:none;-webkit-user-select:none}button:active:not(:disabled){transform:translateY(2px)}.page{padding:42px 0 28px;animation:appear .25s ease-out}.eyebrow{display:flex;align-items:center;gap:8px;color:#8c937c;font-size:11px;font-weight:650;letter-spacing:2.3px;text-transform:uppercase}.eyebrow:before{content:'';width:21px;height:1px;background:#9ba589}.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:15px;align-items:center;min-height:440px}.hero-copy{padding:10px 0 18px}.hero h1{font-size:clamp(32px,3.6vw,48px);line-height:1.55;letter-spacing:3px;font-weight:550;margin:22px 0 17px}.hero h1 em{font-style:normal;position:relative;white-space:nowrap}.hero h1 em:after{content:'';display:block;position:absolute;bottom:-4px;left:0;right:0;height:8px;border-radius:70%;background:#e3b96b70;z-index:-1;transform:rotate(-2deg)}.subtitle{font-size:15px;color:var(--muted);line-height:1.9}.hero-actions{display:flex;gap:13px;align-items:center;margin:28px 0 20px}.button{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:54px;border-radius:17px;padding:13px 24px;font-size:15px;font-weight:550;text-decoration:none;background:var(--pale);border:1px solid transparent}.button.primary{background:var(--green);color:white;box-shadow:0 5px 0 #3f6249}.button.primary:hover{background:#486c50}.button.secondary{background:transparent;border-color:#d6dacb}.button.small{min-height:43px;padding:9px 15px;border-radius:13px;font-size:13px}.button.warm{background:#f0dfc3}.micro{color:var(--muted);font-size:12px;line-height:1.9}.hero-art{position:relative;display:grid;place-items:center;height:405px}.hero-art>svg{width:100%;height:100%;max-width:470px}.float-tag{position:absolute;display:flex;gap:7px;align-items:center;font:13px Georgia,serif;background:#fffdf5e8;border:1px solid #e4e4d6;border-radius:40px;padding:10px 17px;box-shadow:var(--shadow);transform:rotate(-7deg);top:30px;right:33px}.float-tag svg{width:15px;height:15px}.today-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fffdf6;border:1px solid var(--line);border-radius:22px;padding:22px 28px;margin:16px 0 30px}.strip-label{display:flex;align-items:center;gap:13px}.strip-label>svg{width:35px;height:35px;color:#a8a477}.strip-label strong{font-size:15px;font-weight:550}.strip-label small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.letter-chips{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.letter-chip{font:25px GardenRound,'Trebuchet MS',sans-serif;padding:9px 13px;background:#eef0e6;border-radius:12px;letter-spacing:2px}.letter-chip:nth-child(3n+2){background:#f8e8d9}.letter-chip:nth-child(3n){background:#f1edd6}.section-line{display:flex;align-items:center;justify-content:space-between;margin:25px 0 17px}.section-line h2{font-size:17px;font-weight:550;letter-spacing:1px}.section-line span{font:italic 13px Georgia,serif;color:var(--muted)}.activity-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.mini-card{display:flex;align-items:center;gap:15px;background:#eeefe3;border-radius:19px;padding:23px 20px}.mini-card:nth-child(2){background:#f2e7da}.mini-card:nth-child(3){background:#eeecd9}.mini-card>svg{width:38px;height:38px;color:#78856b}.mini-card h3{font-size:15px;font-weight:550;margin-bottom:7px}.mini-card p{font-size:12px;color:#8a8e7b}.footer{padding:25px 0;display:flex;justify-content:space-between;align-items:center;gap:15px;color:#969b8d;font-size:11px;letter-spacing:.5px}.offline-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#b9bda8;margin-right:6px}.offline-dot.ready{background:#779a68}.footer button{background:transparent;color:inherit;padding:5px;text-decoration:underline;text-underline-offset:4px}.library-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:27px}.page-title{font-size:30px;font-weight:550;letter-spacing:2px;margin:13px 0}.segmented{display:inline-flex;background:#e9ecdf;padding:5px;border-radius:15px;gap:4px}.segmented button{padding:10px 17px;border-radius:11px;background:transparent;font-size:13px}.segmented button.selected{background:var(--white);box-shadow:0 2px 7px #334c400b}.alphabet-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:13px}.alphabet-card{min-width:0;position:relative;min-height:116px;border-radius:20px;background:var(--white);border:1px solid var(--line);padding:17px;text-align:center}.alphabet-card.current{background:#e9eddf;border-color:#d8e0ca}.alphabet-card:nth-child(5n+3){background:#f7ebdf}.alphabet-card .glyph{font-size:40px;line-height:1.2}.alphabet-card small{display:block;font-size:10px;margin-top:11px;color:#7b8774}.glyph{font-family:GardenRound,'Trebuchet MS',Arial,sans-serif;font-weight:600;letter-spacing:3px}.glyph.lower{font-family:'Trebuchet MS',Arial,sans-serif}.alphabet-card .tiny-speaker{position:absolute;right:11px;top:10px;opacity:.45}.tiny-speaker svg{height:13px;width:13px}.library-detail{margin-top:23px;background:var(--white);border:1px solid var(--line);padding:24px;border-radius:24px;display:flex;gap:30px;align-items:center}.library-detail>.glyph{font-size:86px;min-width:165px;text-align:center}.detail-copy{flex:1}.detail-copy h2{font-size:16px;font-weight:550;margin-bottom:9px}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.practice-shell{max-width:900px;margin:auto}.practice-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.progress-dots{display:flex;gap:8px;align-items:center}.progress-dots i{width:9px;height:9px;border-radius:50%;background:#e1e3d5}.progress-dots i.past{background:#8da57a}.progress-dots i.current{background:#dcac61;box-shadow:0 0 0 4px #e6d7b75c}.practice-panel{background:var(--white);border:1px solid var(--line);border-radius:30px;min-height:450px;padding:34px;text-align:center;position:relative;overflow:hidden}.practice-kicker{font-size:11px;letter-spacing:2px;color:#9a9d87;margin-bottom:15px}.practice-panel h1{font-size:25px;font-weight:550;letter-spacing:1px;margin-bottom:10px}.practice-panel>.micro{min-height:22px}.big-glyph{font-size:clamp(100px,14vw,160px);line-height:1.2;margin:24px auto 18px;color:#5b7958}.big-glyph span+span{color:#c08f62;margin-left:20px}.practice-panel .big-glyph.target{font-size:82px;margin:12px auto 16px}.choices{display:flex;gap:22px;justify-content:center;margin:24px 0}.choice{width:180px;min-height:150px;border:2px solid #e0e5d6;border-radius:25px;background:#f0f2e7;font-size:85px}.choice.chosen{border-color:#8ba67c}.choice.revealed{background:#e7eedc;border-color:#8ba67c}.choice:disabled{opacity:1}.choice:not(:disabled):hover{background:#e6ecd9}.sound-orb{margin:23px auto 12px;border-radius:50%;width:100px;height:100px;display:grid;place-items:center;background:#f0dfc4;color:#9b7947;border:8px solid #faf0df}.sound-orb svg{height:36px;width:36px}.feedback{min-height:29px;line-height:1.8;font-size:14px;color:#7f8e70;margin:15px 0 2px}.practice-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px}.practice-bottom .micro{max-width:65%}.recall-hint{font-size:13px;color:var(--muted);max-width:410px;margin:0 auto;line-height:1.8}.blend-letters{display:flex;gap:13px;justify-content:center;margin:34px 0 20px}.blend-letter{font-size:78px;min-width:108px;min-height:135px;border-radius:22px;background:#edf0e2;display:grid;place-items:center}.blend-letter.playing{background:#f0dfc4;transform:translateY(-5px)}.finish{max-width:760px;margin:15px auto 0;text-align:center;background:#fffdf6;border:1px solid var(--line);border-radius:34px;padding:30px}.finish-art{height:185px;margin:0 auto 8px}.finish-art svg{height:100%;margin:auto;max-width:100%}.finish h1{font-size:30px;font-weight:550;letter-spacing:2px;margin:16px 0}.finish .letter-chips{justify-content:center;margin:25px 0}.finish .button-row{justify-content:center;margin:26px 0 5px}.parent-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:23px;padding:25px}.panel+.panel{margin-top:20px}.panel h2{font-size:18px;font-weight:550;margin:0 0 15px}.panel h3{font-size:14px;font-weight:600;margin:21px 0 11px}.range-buttons{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.range-buttons button{border-radius:9px;padding:8px 11px;font-size:12px;background:#f0f0e5}.select-letters{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.select-letters button{min-height:39px;border:1px solid var(--line);border-radius:10px;background:transparent;font-size:18px}.select-letters button[aria-pressed=true]{background:#dfe8d5;border-color:#9aaa8d}.form-row{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:18px 0}.form-row label{font-size:14px}.form-row select,.observation-form select,.audio-tools select{padding:10px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);min-height:42px}.check-row{display:flex;align-items:start;gap:9px;font-size:13px;line-height:1.8;margin:17px 0}.check-row input{width:18px;height:18px;accent-color:var(--green);flex:none;margin-top:3px}.notice{background:#f6eddb;border-radius:13px;padding:13px 16px;font-size:12px;line-height:1.9;color:#88744f}.parent-message{font-size:13px;line-height:1.9;color:#7a8672;background:#edf0e5;border-radius:13px;padding:15px}.record-table{width:100%;border-collapse:collapse;font-size:12px}.record-table th,.record-table td{padding:12px 6px;text-align:left;border-bottom:1px solid #eceee4;line-height:1.6}.record-table th{font-weight:550;color:#8b927f}.record-table td:first-child{font-size:20px}.table-wrap{overflow:auto}.observation-form{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}.audio-tools{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:13px 0}.file-label{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:43px;font-size:13px;padding:10px 15px;border-radius:13px;background:#e9eddf}.file-label input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.backup{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.wide-panel{margin-top:22px!important}.empty{padding:22px 0;color:var(--muted);font-size:13px;text-align:center}.page-note{padding:15px 0 0;color:var(--muted);font-size:12px;line-height:1.9}.modal-backdrop{position:fixed;inset:0;background:#263c3459;z-index:10;display:grid;place-items:center;padding:22px;backdrop-filter:blur(5px)}.modal{width:min(100%,440px);background:var(--paper);border-radius:28px;padding:31px;text-align:center;box-shadow:0 25px 80px #243d3429}.modal h2{font-size:23px;font-weight:550;margin:9px 0 15px}.modal p{font-size:14px;line-height:1.9;color:var(--muted)}.modal .button-row{justify-content:center;margin-top:23px}.hold-button{position:relative;overflow:hidden;min-width:180px}.hold-button:before{content:'';position:absolute;inset:0;transform:scaleX(0);transform-origin:left;background:#ffffff25;transition:transform 0s}.hold-button.holding:before{transform:scaleX(1);transition:transform 1.8s linear}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);max-width:min(90vw,580px);background:#334c40;color:#fffdf6;border-radius:16px;padding:14px 22px;font-size:13px;line-height:1.7;box-shadow:0 8px 30px #334c4020;z-index:30;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.persistence-warning{padding:10px 15px;background:#f7e6c8;font-size:12px;line-height:1.8}.offline-state{display:inline-flex;align-items:center;gap:5px}.text-button{padding:7px 0;background:transparent;color:#7d8d73;font-size:12px;text-decoration:underline;text-underline-offset:4px}.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}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1400px){.hero{min-height:490px}}
@media(max-width:1050px){.hero{min-height:370px}.hero h1{font-size:35px}.hero-art{height:345px}.float-tag{right:0}.hero-actions{gap:9px}.hero-actions .button{padding:12px 18px}.alphabet-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.mini-card{padding:19px 15px;gap:12px}.mini-card>svg{width:31px;height:31px}.parent-layout{gap:16px}.panel{padding:21px}.select-letters{gap:5px}}
@media(max-width:760px){.hero{grid-template-columns:1fr 1fr;gap:0;min-height:345px}.hero h1{font-size:29px;letter-spacing:1px}.hero .subtitle{font-size:13px}.hero-art{height:310px}.float-tag{font-size:11px;top:15px;padding:9px 12px}.hero-actions{flex-wrap:wrap;margin:21px 0 17px}.hero-actions .button{min-height:47px;font-size:13px;padding:11px 15px}.hero .micro{font-size:10px}.today-strip{padding:18px;gap:13px}.letter-chip{font-size:22px;padding:8px 10px}.strip-label strong{font-size:13px}.strip-label small{font-size:10px}.mini-card{gap:9px;padding:18px 12px}.mini-card h3{font-size:13px}.mini-card p{font-size:10px;line-height:1.6}.mini-card>svg{width:27px;height:27px}.alphabet-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.alphabet-card{min-height:106px;padding:16px 10px}.alphabet-card .glyph{font-size:34px}.parent-layout{grid-template-columns:1fr}.page{padding-top:30px}.page-title{font-size:26px}.library-head{align-items:start;flex-direction:column}.practice-panel{padding:30px 22px;min-height:420px}.practice-panel h1{font-size:22px}.footer{font-size:10px}.library-detail{gap:18px;padding:20px}.library-detail>.glyph{min-width:120px;font-size:67px}.detail-copy .micro{font-size:11px}}
@media(max-width:520px){.hero{grid-template-columns:1fr;min-height:auto;position:relative}.hero-copy{padding-top:10px;z-index:1}.hero h1{font-size:34px;margin:16px 0 13px}.hero-art{height:235px;margin-top:-13px}.hero-art>svg{max-width:300px}.float-tag{right:20px;top:20px}.hero .micro{font-size:11px}.today-strip{margin-top:10px;flex-direction:column;align-items:start}.strip-label>svg{width:30px;height:30px}.letter-chip{font-size:24px}.letter-chips{gap:8px}.activity-preview{grid-template-columns:1fr;gap:10px}.mini-card{padding:17px 21px;gap:17px}.mini-card>svg{width:30px;height:30px}.mini-card h3{font-size:14px}.mini-card p{font-size:12px}.section-line span{font-size:11px}.footer{align-items:start;flex-direction:column;gap:8px}.alphabet-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.alphabet-card{min-height:93px;border-radius:16px}.alphabet-card .glyph{font-size:29px}.alphabet-card small{margin-top:9px;font-size:9px}.library-detail{flex-direction:column;gap:12px;align-items:stretch;text-align:center}.library-detail>.glyph{font-size:78px}.library-detail .button-row{justify-content:center}.practice-panel{padding:26px 17px;border-radius:24px;min-height:420px}.practice-panel h1{font-size:21px}.practice-panel>.micro{font-size:11px}.big-glyph{font-size:120px;margin:27px 0}.choice{width:130px;min-height:130px;font-size:70px}.choices{gap:15px}.practice-bottom{flex-direction:column-reverse;align-items:stretch;gap:17px}.practice-bottom .micro{max-width:100%;text-align:center;font-size:11px}.practice-top .button.small{padding:9px 11px}.progress-dots{gap:6px}.progress-dots i{width:7px;height:7px}.blend-letter{min-width:75px;min-height:109px;font-size:63px}.blend-letters{gap:10px}.finish{padding:22px 18px;border-radius:25px}.finish h1{font-size:25px}.finish-art{height:160px}.panel{padding:20px}.select-letters{grid-template-columns:repeat(7,minmax(0,1fr))}.form-row{align-items:start}.form-row select{max-width:170px}.observation-form select{max-width:100%}.page-title{font-size:25px}.parent-message{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.page{animation:none}
.sound-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-width:650px;margin:12px auto}
.sound-tile{display:flex;align-items:center;gap:13px;min-height:84px;padding:17px 19px;border:1px solid #dce2d1;border-radius:18px;background:#edf1e4;text-align:left}
.sound-tile:nth-child(2){background:#f7eadb;border-color:#ebd9bf}.sound-tile strong{display:block;font-size:16px;font-weight:550}.sound-tile strong b{font-weight:500;font-family:Georgia,serif;margin-left:8px}.sound-tile small{display:block;margin-top:8px;font-size:12px;line-height:1.6;color:var(--muted)}
.sound-tile.playing,.example-button.playing{outline:3px solid #d6ac61;outline-offset:2px}.example-line{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;max-width:650px;margin:12px auto 22px;font-size:12px;line-height:1.8;color:var(--muted)}.example-button{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:12px;padding:9px 13px;min-height:42px;background:var(--white);font-size:16px;color:var(--ink)}.example-button svg{width:17px;height:17px}.big-glyph.demo-glyph{font-size:115px;margin:15px auto}.library-detail .sound-guide{max-width:100%;margin-top:17px}.library-detail .sound-tile{padding:13px;gap:9px}.library-detail .sound-tile strong{font-size:14px}.library-detail .example-line{justify-content:flex-start;margin-bottom:0}
@media(max-width:520px){.sound-guide{grid-template-columns:1fr;gap:10px}.sound-tile{min-height:76px;padding:13px 17px}.big-glyph.demo-glyph{font-size:93px;margin:14px auto}.sound-tile strong{font-size:15px}.example-line{font-size:11px}.library-detail .sound-guide{text-align:left}}
@media(min-width:761px){.practice-page{padding-top:20px}.practice-page .practice-top{margin-bottom:15px}.demo-panel{padding:22px 28px;min-height:0}.demo-panel .practice-kicker{font-size:10px;margin-bottom:8px}.demo-panel h1{font-size:23px;margin-bottom:7px}.demo-panel .big-glyph.demo-glyph{font-size:84px;margin:9px auto}.demo-panel .sound-guide{margin:8px auto}.demo-panel .sound-tile{min-height:72px;padding:12px 17px}.demo-panel .example-line{margin:8px auto 12px}.demo-panel .feedback{margin-top:9px;min-height:20px}}
/* Learning activities share the garden palette; images stay local and consistent. */
#course{padding-bottom:20px}.level-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:26px}.level-picker button{border:1px solid var(--line);border-radius:22px;padding:22px;background:#fffdf6;text-align:left}.level-picker button[aria-pressed=true]{border:2px solid #718e60;background:#eef1e2}.level-picker span{display:block;font:italic 25px Georgia;color:#a8ae8b;margin-bottom:10px}.level-picker strong{display:block;font-size:18px}.level-picker small{display:block;color:var(--muted);line-height:1.8;margin-top:10px}.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:25px 0}.course-card{border:1px solid var(--line);border-radius:25px;padding:25px 18px;background:#fffdf6;text-align:left}.course-card:nth-child(2){background:#f2e9db}.course-card:nth-child(3){background:#edf1e7}.course-card:nth-child(4){background:#efedf6}.course-card h2{font-size:19px;margin:15px 0 10px}.course-card p{color:var(--muted);font-size:13px;line-height:1.9}.course-card>span{display:block;color:var(--green);margin-top:18px;font-size:13px}.word-picture{object-fit:contain;max-width:100%;height:auto}.course-card .word-picture{width:90px;height:90px}.topic-tabs,.skill-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 23px}.topic-tabs button,.skill-tabs button{background:#eeeee2;border:1px solid transparent;padding:12px 17px;min-height:44px;border-radius:15px;font-size:14px}.topic-tabs button[aria-pressed=true],.skill-tabs button[aria-pressed=true]{background:#dfe8d5;border-color:#a5b792}.word-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px}.word-layout:has(.quiz-hidden){grid-template-columns:1fr}.quiz-hidden{display:none!important}.word-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:620px;overflow:auto;align-content:start;padding:4px}.word-list [data-course="word"]{border:1px solid var(--line);background:#fffdf6;border-radius:17px;min-height:108px;padding:12px;font-size:15px}.word-list [data-course="word"][aria-pressed=true]{border:2px solid #82996c;background:#e9efde}.word-list .word-picture{width:48px;height:48px;display:block;margin:auto auto 8px}.learning-panel{background:#fffdf6;border:1px solid var(--line);border-radius:28px;padding:30px;text-align:center;min-height:450px}.learning-panel>.word-picture{height:145px;width:145px;margin-bottom:10px}.english-word{font:600 42px 'Trebuchet MS',sans-serif;letter-spacing:1px;margin:10px 0}.sentence{font-size:21px;line-height:1.8;margin:18px 0}.centered{justify-content:center}.picture-choices{display:flex;justify-content:center;gap:18px;margin:25px 0}.picture-choices button{background:#f0f2e8;border:2px solid #dee5d1;border-radius:22px;padding:20px;min-width:110px;flex:1;max-width:185px}.picture-choices button.revealed{border-color:#72965d;background:#e0edcf}.picture-choices button:disabled{opacity:1}.picture-choices span{display:block;margin-top:10px}.reading-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:23px;align-items:start}.reading-layout>.panel+.panel{margin:0}.story-heading{display:flex;gap:20px;align-items:center;margin-bottom:20px}.story-heading .word-picture{width:90px;height:90px}.story-heading h2{font-size:24px}.story-lines{list-style:none;padding:0;margin:15px 0}.story-lines button{background:transparent;border-radius:12px;text-align:left;width:100%;padding:13px 8px;display:flex;gap:12px;align-items:baseline;font-size:21px;line-height:1.8}.story-lines button:hover{background:#eef0e5}.story-lines span{font-size:11px;color:#8d997f}.story details{margin-top:25px;color:var(--muted);font-size:14px;line-height:1.9}.story summary{cursor:pointer;padding:10px 0}.reading-choices{display:grid;gap:12px}.reading-choices .button{justify-content:start;text-align:left;font-size:17px}.record-panel{padding:18px 0}.record-panel audio{max-width:100%;width:100%;margin-top:12px}.record-panel [role=status]{font-size:13px;line-height:1.8;margin-top:12px;color:var(--muted)}.dialogue-bubble{padding:19px;border-radius:20px;background:#edf0e5;margin:15px 0}.dialogue-bubble.my-turn{background:#f4e6cf;margin-left:20px}.dialogue-bubble strong{font-size:12px;color:var(--muted)}.dialogue-bubble p{font-size:21px;line-height:1.7;margin:10px 0}.dialogue-bubble .button{min-height:40px;padding:7px 12px;font-size:12px}.trace-wrap{border:1px solid var(--line);border-radius:18px;overflow:hidden;margin:15px 0}.trace-wrap canvas{display:block;width:100%;height:260px;touch-action:none}#trace-text,#spell-input{border:1px solid #cfd9c3;border-radius:13px;padding:13px;max-width:100%;background:#fff;font-size:22px;min-width:0}#trace-text{width:100%;margin-top:12px}#spell-form{display:flex;justify-content:center;gap:12px;margin:25px 0}#spell-input{width:240px}#writing-draft{font:18px/1.8 'Trebuchet MS',sans-serif;resize:vertical;min-height:235px;width:100%;border:1px solid #cfd9c3;border-radius:16px;margin-top:15px;padding:17px;background:#fffdf6}.writing-checks{display:grid;gap:12px;font-size:13px;line-height:1.8;margin:20px 0}.writing-checks input{accent-color:var(--green);width:18px;height:18px;vertical-align:middle}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stats .panel+.panel{margin:0}.stats strong{font-size:35px;display:block;margin:15px 0;color:#65805a}.event-list{padding:0;list-style:none}.event-list li{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.8}.prose p{line-height:2;margin:15px 0;color:var(--muted)}.prose h2{margin-top:20px}.example-button .word-picture{width:35px;height:35px}
@media(max-width:1050px){.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.word-layout{grid-template-columns:180px minmax(0,1fr)}.level-picker button{padding:17px}.level-picker strong{font-size:16px}.reading-layout{gap:15px}}
@media(max-width:760px){.reading-layout{grid-template-columns:1fr}.level-picker{grid-template-columns:1fr}.level-picker button{padding:16px 20px}.level-picker span{float:right;margin:0}.level-picker small{margin-top:5px}.word-layout{grid-template-columns:1fr}.word-list{display:flex;max-height:125px}.word-list [data-course="word"]{min-width:85px}.learning-panel{padding:23px 16px}.picture-choices{gap:9px}.picture-choices button{padding:14px;min-width:0}.picture-choices img{width:90px;height:90px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.course-card{padding:20px 15px}.course-card h2{font-size:17px}.course-grid{gap:12px}.story-lines button{font-size:19px}#spell-form{flex-wrap:wrap}.event-list li{flex-direction:column;gap:4px}}
.follow-panel{margin-bottom:24px}.follow-panel select{max-width:100%;padding:10px;border:1px solid var(--line,#d6e0d7);border-radius:12px;font:inherit;background:white;color:inherit}.follow-panel label{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.follow-panel #follow-status{font-size:18px;font-weight:600;min-height:28px}.alphabet-card.following{outline:3px solid #35775b;outline-offset:2px;background:#dcefe1}.follow-panel .button:disabled{opacity:.45;cursor:default}@media(max-width:600px){.library-head{flex-wrap:wrap}.library-head .segmented{max-width:100%;flex-wrap:wrap}.follow-panel .button-row{flex-wrap:wrap}}
.follow-panel #follow-status{margin:18px 0;line-height:1.6}.follow-panel>.micro{margin-top:14px}
.parent-settings{max-width:900px;margin:0 auto}
.letter-preview-picker{display:flex;align-items:center;gap:12px;margin:20px 0 14px;font-size:14px}
.letter-preview-picker select{min-width:100px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);font:inherit}
.letter-source-options{border:0;padding:0;margin:0;display:grid;gap:12px;min-width:0}
.letter-source-option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--white)}
.letter-source-option:has(input:checked){background:#edf3e7;border-color:#8ba677}
.letter-source-option label{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.letter-source-option input{width:20px;height:20px;flex-shrink:0;accent-color:var(--green)}
.letter-source-option strong{font-size:16px;font-weight:600}.letter-source-option small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.6}
.letter-source-option .button-row{flex-shrink:0;margin:0;gap:8px}.letter-source-status{min-height:24px;margin-bottom:0}
.letter-source-options+p{margin-top:12px}
@media(max-width:600px){.letter-source-option{align-items:stretch;flex-direction:column;gap:10px;padding:14px}.letter-source-option .button-row{padding-left:32px}.letter-source-option .button-row .button{flex:1;justify-content:center}}
.weekly-editor label{display:flex;flex-direction:column;gap:8px;margin:16px 0}.weekly-editor input,.weekly-editor textarea,.weekly-editor select{font:inherit;padding:12px;border:1px solid #cbd5c6;border-radius:10px;max-width:100%;background:white;color:inherit}.weekly-editor textarea{width:100%;resize:vertical}.weekly-editor details{margin-top:22px}.weekly-editor summary{cursor:pointer;font-weight:600;padding:12px 0}[data-weekly][aria-pressed="true"]{background:#dce8d1;border-color:#64805a}#weekly-status{min-height:3em;line-height:1.6;margin:20px 0}.activity-preview button.mini-card{text-align:left;font:inherit;color:inherit;cursor:pointer}.activity-preview button.mini-card h2{font-size:20px}
.weekly-editor fieldset{border:0;padding:0;margin:0;min-width:0}.weekly-editor fieldset:disabled{opacity:.75}#generation-status{line-height:1.6;margin:16px 0;overflow-wrap:anywhere}
/* Two destinations, with exercises grouped inside their subject. */
.home-intro{display:grid;grid-template-columns:1fr 300px;align-items:center;gap:40px;padding:16px 0 30px}.home-intro h1{font-size:clamp(28px,3vw,42px);line-height:1.5;margin:12px 0}.home-art{height:210px;overflow:hidden}.home-art svg{width:100%;height:100%}.home-entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.entry-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #d4ddc9;border-radius:28px;padding:30px;background:#eef2e5;color:var(--ink);cursor:pointer;transition:transform .15s,box-shadow .15s}.growth-entry{background:#f3e9d9;border-color:#e3d4bd}.entry-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #344d3910}.entry-card h2{font-size:28px;margin:14px 0}.entry-card p{flex:1;font-size:15px;line-height:1.8;color:var(--muted)}.entry-art{display:flex;align-items:center;font-size:65px;line-height:1;height:80px;color:#56744d}.entry-art svg{width:66px;height:66px}.entry-link{display:flex;align-items:center;gap:12px;margin-top:28px;font-size:15px;font-weight:600}.entry-link svg{width:20px;height:20px}.activity-switch,.source-switch{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 26px}.activity-switch button,.source-switch button{padding:13px 22px;min-height:48px;border:1px solid var(--line);border-radius:16px;background:#fffdf6;font-size:16px;line-height:1.5;color:var(--ink)}.activity-switch button[aria-pressed=true],.source-switch button[aria-pressed=true]{background:#dfe9d7;border-color:#8da27e;font-weight:600}.audio-sources{margin:28px 0;color:var(--muted)}.audio-sources summary{cursor:pointer;min-height:44px;line-height:44px}.audio-sources p{line-height:1.9}.letter-settings h3{margin:0 0 16px}.letter-settings .select-letters{margin:16px 0}.setting-divider{height:1px;background:var(--line);margin:26px 0}.letter-settings .form-row{flex-wrap:wrap;gap:12px}.content-editor fieldset{border:0;margin:0;padding:0;min-width:0}.content-editor label{display:block;margin:18px 0 9px;line-height:1.7}.content-editor textarea,.content-editor select{font:inherit;line-height:1.7;border:1px solid #cbd5c6;border-radius:12px;padding:12px;background:white;color:inherit;max-width:100%}.content-editor textarea{width:100%;resize:vertical;min-height:170px}.content-editor .content-options{display:grid;grid-template-columns:1fr 1fr;gap:20px}.content-editor .content-options select{display:block;width:100%;margin-top:8px}.content-editor .micro{line-height:1.9}.configured-words .word-list [data-course="word"]{min-width:0;min-height:80px;overflow-wrap:anywhere}.configured-words .word-list small{display:block;color:var(--muted);margin-top:10px;font-size:13px}.word-sentence{border-top:1px solid var(--line);padding-top:14px;margin-top:28px}.word-meaning{font-size:20px;line-height:1.7}.configured-words .english-word{overflow-wrap:anywhere}.configured-words .sentence{overflow-wrap:anywhere}.empty-content p{margin-top:20px;line-height:1.9}.empty-content{min-height:260px;padding-top:50px}button:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #527a52;outline-offset:3px}.button-row{flex-wrap:wrap}.practice-shell .practice-top{justify-content:space-between}.practice-panel #task-title{font-size:clamp(23px,3vw,32px)}
@media(max-width:760px){.activity-switch{gap:7px}.activity-switch button{padding:11px 12px;font-size:14px;flex:1;white-space:nowrap}.source-switch button{font-size:14px;padding:12px 15px}.content-editor .content-options{gap:12px}.letter-settings .form-row select{max-width:100%}.library-head .segmented{margin-top:14px}}


.word-entry{background:#f5eddc;border-color:#e5d7b9}.growth-entry{background:#eeedf5;border-color:#dcd8e9}.entry-art .word-picture{width:66px;height:66px}@media(min-width:761px) and (max-width:1050px){.entry-card{padding:24px}.entry-card h2{font-size:24px}}

.word-follow-extra{margin-top:24px;border-top:1px solid var(--line);padding-top:12px;color:var(--muted)}.word-follow-extra summary{cursor:pointer;padding:12px;min-height:44px;font-size:14px}.word-follow-extra .micro{margin:10px 0 16px}


.word-browser{min-width:0}#word-search{width:100%;font:inherit;font-size:16px;padding:12px;border:1px solid #cbd5c6;border-radius:13px;background:#fffdf6;color:var(--ink);margin-bottom:12px;min-width:0}.word-pagination{display:grid;gap:8px;margin-top:12px}.word-page-controls{display:flex;gap:6px}.word-page-controls .button{flex:1}.word-page-jump{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.word-page-jump input{width:4.5em;min-width:0;min-height:44px;font:inherit;font-size:16px;text-align:center;border:1px solid var(--line);border-radius:12px;background:#fffdf6;color:var(--ink)}.word-pagination .button{padding:9px 8px;min-height:44px;font-size:12px}.word-pagination span{font-size:11px;color:var(--muted);white-space:nowrap}.word-list [data-course="word"] span{overflow-wrap:anywhere}.picture-choices .word-picture{max-height:128px;object-fit:contain}

/* Balance the word browser with the learning card. */

.word-layout{grid-template-columns:minmax(300px,0.9fr) minmax(0,1.25fr);align-items:start;gap:28px}
.word-browser .word-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;padding:4px;gap:10px}
.word-browser .word-list [data-course="word"]{min-width:0;min-height:112px;padding:12px 6px;font-size:15px}.word-browser .word-list .word-picture{width:52px;height:52px}
.word-workspace{min-width:0}.word-workspace .learning-panel{min-height:480px;padding:30px 24px}.word-workspace .learning-panel>.word-picture{width:150px;height:150px}.word-workspace .english-word{font-size:clamp(30px,3.5vw,46px);overflow-wrap:anywhere}.word-workspace .sentence{margin-top:24px}.word-workspace .learning-panel>.button-row:last-child{margin-top:24px}
.sentence-meaning{font-size:17px;line-height:1.65;color:var(--muted);margin:8px 0 20px}.word-topic-select{display:none}.offline-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}.offline-controls select{font:inherit;padding:12px;max-width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--paper,#fffdf6)}
@media(max-width:1000px) and (min-width:761px){.word-layout{grid-template-columns:minmax(260px,.9fr) minmax(0,1.15fr);gap:20px}.word-browser .word-list{gap:8px}.word-browser .word-list [data-course="word"]{font-size:13px;min-height:100px}.word-workspace .learning-panel{padding:24px 16px}}
@media(max-width:760px){.word-topic-select{display:flex;align-items:center;gap:12px;margin-bottom:18px;font-size:14px}.word-topic-select select{flex:1;min-width:0;font:inherit;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fffdf6}.word-layout{display:flex;flex-direction:column;gap:20px}.word-browser,.word-workspace{width:100%}.word-browser .word-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.word-browser .word-list [data-course="word"]{min-height:82px;font-size:12px;padding:6px 3px;border-radius:13px}.word-browser .word-list .word-picture{width:38px;height:38px}.word-workspace .learning-panel{min-height:0;padding:24px 16px}.word-workspace .learning-panel>.word-picture{width:112px;height:112px}.word-workspace-toolbar .skill-tabs{gap:6px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.word-workspace-toolbar .skill-tabs button{padding:10px 3px;font-size:12px}.sentence-meaning{font-size:15px}.configured-words .word-list{display:grid;width:100%;max-height:none;grid-template-columns:repeat(3,minmax(0,1fr))}.offline-controls{align-items:stretch;flex-direction:column}}
.picture-badge{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:8px;background:#e4eedb;color:#47613d!important;font-size:11px}

@media(max-width:360px){.alphabet-card{padding:14px 5px}.alphabet-card .glyph{font-size:26px}}
.learning-panel>.feedback:empty{display:none}

.offline-estimate{margin:16px 0;padding:18px;border:1px solid var(--line,#d9dfd0);border-radius:16px;background:#f0f3e9;overflow-wrap:anywhere}
#offline-bar{display:block;width:100%;height:18px;accent-color:#52795c;margin-top:16px}
#offline-bar[hidden],#offline-cancel[hidden]{display:none}
.offline-controls{flex-wrap:wrap}
.offline-controls select{max-width:100%;min-width:0}
.mastery-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.mastery-filters button{padding:10px 16px;border:1px solid transparent;border-radius:24px;background:#ebeee3;color:inherit}
.mastery-filters button[aria-pressed=true]{border-color:#8ca979;background:#dfe9d6}
.mastery-badge{display:inline-block;font-size:12px;color:#43694b;background:#e3eddd;border-radius:12px;padding:3px 9px}
.mastery-control{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.mastery-control details{flex-basis:100%;font-size:13px;color:#778574;text-align:center}
.mastery-control .micro{max-width:560px;margin:10px auto}

.word-add-row{display:flex;gap:10px;margin-top:8px}.word-add-row input{flex:1;min-width:0;font:inherit;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fffdf6}
.parent-word-list{padding:0;margin:12px 0 20px;list-style:none}.parent-word-list>li{padding:16px 0;border-bottom:1px solid var(--line)}
.parent-word-preview{display:grid;grid-template-columns:minmax(100px,.75fr) minmax(100px,.85fr) minmax(160px,1.7fr) auto;gap:14px;align-items:start}.parent-word-preview p{margin:3px 0;overflow-wrap:anywhere}.parent-word-name{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere;min-width:0}.parent-word-name img{flex:none}
.parent-word-edit{display:flex;gap:16px;flex-wrap:wrap;align-items:baseline;margin-top:8px}.parent-word-edit details{flex:1;min-width:0}.parent-word-edit summary{font-size:14px;color:#52795c;cursor:pointer}.word-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.content-editor .word-edit-fields label{margin:0;display:flex;flex-direction:column;gap:6px;font-size:13px}.word-edit-fields input{width:100%;min-width:0;font:inherit;padding:10px;border:1px solid var(--line);border-radius:10px}.content-editor fieldset{min-width:0}.offline-note{margin-top:24px}.offline-help{margin-top:20px}.offline-help h3{margin:0 0 8px;font-size:16px;color:#52795c}
@media(max-width:760px){.parent-word-preview{grid-template-columns:minmax(0,1fr) auto;gap:10px}.parent-word-preview>div:nth-child(2),.parent-word-example{grid-column:1/-1}.parent-word-preview>button{grid-column:2;grid-row:1}.parent-word-edit{display:block}.parent-word-edit details{margin-top:8px}.word-edit-fields{grid-template-columns:1fr}.parent-word-list>li{padding:16px 12px;margin:12px 0;border:1px solid var(--line);border-radius:14px}}
.word-add-row{margin-bottom:10px}
.parent-section{margin-top:22px}.parent-section>h2{margin:0 0 16px}.parent-section .content-editor label:first-child{margin-top:0}

.word-card-actions>.mastery-badge{order:-1;flex-basis:100%;background:none;padding:0}
@media(max-width:760px){.word-card-actions>.button{padding:12px 10px;font-size:14px}}

#offline-progress:not(:empty){margin:24px 0 0;line-height:1.7}

.learning-panel .spell-feedback{max-width:460px;margin:0 auto 22px;padding:16px 20px;border:1px solid #dce4d2;border-radius:16px;background:#f0f4e9;color:#48654d;font-size:16px;line-height:1.6;min-height:0;overflow-wrap:anywhere}
.learning-panel .spell-feedback:empty{display:none}
.spell-feedback .spell-reference{display:block;font-size:28px;letter-spacing:2px;color:var(--ink);margin:6px 0}
.spell-feedback small{display:block;font-size:14px;color:#62715d}

.word-picture-placeholder{display:inline-flex;align-items:center;justify-content:center;background:#eff1e8;border-radius:16px;color:#778574;font-size:12px;min-height:48px;aspect-ratio:1}

.modal.parent-gate-modal{text-align:left}
.modal .parent-actions{justify-content:flex-end;gap:10px}
.modal .parent-actions .button{min-height:44px;padding:10px 16px;border-radius:10px;white-space:nowrap;box-shadow:none}
.parent-hold{position:relative;overflow:hidden;touch-action:none;-webkit-touch-callout:none;user-select:none;isolation:isolate}
.parent-hold:before{content:'';position:absolute;inset:0;background:#ffffff30;transform:scaleX(0);transform-origin:left;z-index:-1}
.parent-hold.holding:before{transform:scaleX(1);transition:transform 1s linear}
.word-order-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.word-order-actions .button{padding:9px 12px;min-height:44px}
#word-save-status,#word-audio-preparation{margin-top:16px}#word-audio-preparation>.micro{margin-bottom:12px}
@media(max-width:760px){.parent-word-preview>.word-order-actions{grid-column:1/-1;justify-content:flex-start}}
[data-learning="retry-save"][hidden]{display:none}

.letter-read-controls{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.letter-read-controls [hidden]{display:none}#letter-play-status{margin-top:12px}
.alphabet-card[aria-pressed="true"]{border-color:#52795c;box-shadow:inset 0 0 0 1px #52795c;background:#e1ecd9}

/* Letter browsing: compact selectors, one focal letter, equal listening actions. */
.page:has(.letter-detail){max-width:none;margin-inline:0}
.alphabet-grid.letter-picker{grid-template-columns:repeat(auto-fill,minmax(64px,84px));gap:10px}
.letter-picker .alphabet-card{min-height:64px;padding:10px 8px;border-radius:15px;background:#f3f4eb;border-color:var(--line)}
.letter-picker .alphabet-card .glyph{font-size:30px}
.letter-picker .alphabet-card[aria-pressed="true"]{background:#e1ecd9;border-color:#52795c;box-shadow:inset 0 0 0 1px #52795c}
.library-detail.letter-detail{display:block;padding:24px 28px;text-align:left;margin-top:20px}
.letter-detail-heading{display:flex;align-items:center;gap:22px;margin-bottom:20px}
.letter-detail-heading>.glyph{font-size:88px;line-height:1.1;flex:none;min-width:138px}
.letter-detail-heading h2{font-size:20px;margin:0 0 8px;font-weight:600}
.letter-detail-heading .micro{font-size:14px;line-height:1.7}
.letter-sounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.letter-detail .letter-sounds .sound-tile{min-height:80px;padding:14px 16px;gap:10px;border-radius:16px;background:#f1f3e9;border-color:#dce2d1}
.letter-detail .letter-sounds strong{font-size:16px;line-height:1.5}
.letter-detail .letter-sounds small{font-size:13px;margin-top:4px}
.letter-detail #letter-play-status{min-height:24px;margin:10px 0;font-size:14px;line-height:1.7;color:#48654d}
.letter-example{display:flex;align-items:center;gap:14px;padding-top:12px;border-top:1px solid #e9ecdf}
.letter-example .example-button{margin:0;padding:8px 12px;border:0;background:transparent;gap:10px}
@media(max-width:760px){.alphabet-grid.letter-picker{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:8px}.letter-picker .alphabet-card{min-height:58px}.letter-picker .alphabet-card .glyph{font-size:27px}.library-detail.letter-detail{padding:20px 18px}.letter-detail-heading{gap:16px;margin-bottom:18px}.letter-detail-heading>.glyph{font-size:70px;min-width:100px}.letter-detail-heading h2{font-size:18px}.letter-detail-heading .micro{font-size:12px}.letter-sounds{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.letter-detail .letter-sounds .sound-tile{padding:12px;gap:8px;min-height:76px}.letter-detail .letter-sounds strong{font-size:14px}.letter-sounds .letter-combined{grid-column:1/-1}.letter-detail .letter-sounds small{font-size:12px}}

.letter-example-meaning{font-size:14px;color:var(--muted)}

.selection-search{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0}.selection-search label{display:flex;flex-direction:column;gap:8px;flex:1;min-width:140px}.selection-search input,.selection-search select{height:48px;font:inherit;padding:12px;border:1px solid var(--line);border-radius:12px;min-width:0;background:white}.selection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.selection-grid button,.pending-grid article{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid var(--line);border-radius:16px;background:#fffdf6;padding:14px 8px;overflow-wrap:anywhere}.selection-grid button[aria-pressed=true]{background:#e1ecd9;border-color:#52795c}.selection-grid small{color:var(--muted)}#selection-chosen{margin-top:24px}.selected-word-list{list-style:none;padding:0}.selected-word-list li{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.selected-word-list li>span{flex:1;overflow-wrap:anywhere;min-width:0}.selected-word-list img{flex:none}@media(max-width:760px){.selection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.selected-word-list li{flex-wrap:wrap}.selected-word-list .word-order-actions{width:100%;justify-content:flex-end}}
.word-browser .word-list [data-course="word"]{display:flex;flex-direction:column;align-items:center}
.word-browser .word-list>.micro{grid-column:1/-1}
.word-browser .word-list [data-course="word"]>.word-picture{flex:none;margin:0 0 8px}
.word-browser .word-list [data-course="word"]>.mastery-badge{margin-top:6px;white-space:nowrap}

.site-update{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:100;display:flex;align-items:center;gap:16px;max-width:calc(100% - 32px);width:max-content;padding:12px 18px;background:#fffdf6;color:var(--ink);border:1px solid #b5c5a5;border-radius:18px;box-shadow:0 5px 22px #344d3922;font-size:14px}.site-update[hidden]{display:none}.site-update span{min-width:0}.site-update button{flex:none}@media(max-width:480px){.site-update{gap:10px;padding:10px 12px;font-size:12px}}

.word-context-label{display:inline-flex;align-items:center;justify-content:center;padding:.6rem;border-radius:.6rem;background:#eef4f0;color:#426952;font-size:.8rem;min-height:2.5rem}

#pending-browser{margin:24px 0 0;padding-top:12px;border-top:1px solid var(--line)}#pending-browser summary{cursor:pointer;color:var(--muted);font-size:14px;font-weight:500;min-height:44px;align-content:center}#pending-browser summary:focus-visible{outline:3px solid var(--ochre);outline-offset:3px;border-radius:4px}.pending-grid>.micro{grid-column:1/-1}.pending-grid article{text-align:center}

#offline-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.offline-category{border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.offline-category h3{font-size:18px;margin:0}.offline-category .micro{margin:6px 0;overflow-wrap:anywhere}.offline-category button{margin-top:auto}@media(max-width:600px){#offline-categories{grid-template-columns:1fr}}

.offline-category .offline-category-actions{margin-top:auto}.offline-category-actions button{margin-top:0}

#offline-plan{width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--paper,#fffdf6);color:var(--ink);box-shadow:0 20px 70px #243a3033;overflow:auto}#offline-plan::backdrop{background:#243a3070}#offline-plan .offline-estimate{margin:0;border:0;padding:24px;background:transparent}#offline-plan .offline-estimate:focus{outline:none}#offline-plan h3{margin:0 0 16px}#offline-plan .button-row{margin-top:20px}

/* Separate selection and playback targets; each speaker remains finger-sized. */
.alphabet-grid.letter-picker{grid-template-columns:repeat(auto-fill,minmax(120px,148px));gap:12px}
.letter-picker-card{position:relative}
.letter-picker .alphabet-card{width:100%;min-height:120px;padding:38px 12px 12px}
.letter-picker .alphabet-card .glyph{font-size:46px}
.letter-speaker{position:absolute;right:5px;top:5px;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:transparent}
.letter-speaker:hover,.letter-speaker.playing{background:#d3e3c8}
.letter-sounds{grid-template-columns:repeat(2,minmax(0,1fr))}
.loop-toolbar{display:flex;align-items:center;margin:0 0 20px}
.loop-control{display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:6px;border:1px solid #dce2d2;border-radius:20px;background:#edf0e4}
.loop-control .loop-play{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;width:120px;min-height:48px;padding:10px 12px;border:1px solid transparent;border-radius:14px;background:var(--green);color:#fffdf6;white-space:nowrap;font-size:15px;font-weight:600;box-shadow:0 2px 4px #344d3910}
.loop-control .loop-play svg{width:18px;height:18px;flex-shrink:0}
.loop-control .loop-play:hover{background:#42644a}.loop-control.is-playing .loop-play{background:#334f3a}
.loop-repeat-settings{display:flex;align-items:center;gap:8px;margin:0;padding:0 0 0 12px;border:0;border-left:1px solid #d1d9c7;min-width:0}
.loop-repeat-label{font-size:13px;color:#5f705c;white-space:nowrap}
.loop-repeat-options{display:flex;gap:2px;padding:3px;background:#f8f8f0;border:1px solid #dce2d2;border-radius:13px}
.loop-repeat-option{position:relative;display:flex;cursor:pointer;border-radius:9px}
.loop-repeat-input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.loop-repeat-option>span{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:4px;font-size:14px;color:#5a6a55;border-radius:9px;white-space:nowrap;border:1px solid transparent}
.loop-repeat-option:has(input:checked)>span{background:#dce8d1;color:#304c36;border-color:#b6c8a6;font-weight:650}
.loop-repeat-option:hover>span{background:#e7eddc}
.loop-control button:focus-visible,.loop-repeat-option:has(input:focus-visible){outline:3px solid #527a52;outline-offset:3px}
@media(max-width:340px){.loop-repeat-label{display:none}.loop-repeat-settings{border-left:0;padding-left:0}}
@media(max-width:380px){.loop-control{gap:8px;padding:5px}.loop-control .loop-play{width:112px}.loop-repeat-settings{gap:5px;padding-left:8px}.loop-repeat-option>span{min-width:42px}}
@media(max-width:520px){.alphabet-grid.letter-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.letter-picker .alphabet-card .glyph{font-size:38px}}

.word-workspace-toolbar{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px 20px;margin-bottom:20px}
.word-workspace-toolbar .skill-tabs{margin:0}
.word-loop-control{display:flex;flex-direction:column;align-items:flex-end;gap:5px;margin-left:auto}
.word-loop-control .button{min-height:46px;padding:10px 16px;border-radius:14px;background:#e1ecd9;border:1px solid #9bb18d;white-space:nowrap}
.word-loop-control .button[aria-pressed=true]{background:#52795c;border-color:#52795c;color:#fffdf6}
.word-loop-control .micro{font-size:11px;line-height:1.5}
@media(max-width:760px){.word-loop-control{width:100%;margin-left:0;align-items:center;flex-direction:row;flex-wrap:wrap;gap:8px 12px}}

/* Keep responsive text sizing stable when iPad changes orientation. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.selection-word-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;background:#fffdf6}
.selection-word-card:has(>[data-learning="select-word"][aria-pressed=true]){background:#e1ecd9;border-color:#52795c}
.selection-grid .selection-word-card>[data-learning="select-word"]{flex:1;width:100%;border:0;border-radius:15px 15px 0 0;background:transparent}
.selection-grid .selection-word-card>[data-learning="edit-meaning"]{width:100%;min-height:44px;justify-content:center;padding:10px 8px;font-size:12px;font-weight:400;color:var(--muted);background:transparent;border:0;border-top:1px solid var(--line);border-radius:0 0 15px 15px;text-decoration:none}
.selection-grid .selection-word-card>[data-learning="edit-meaning"]:hover{color:var(--ink);background:#52795c0a}
.selection-word-card>button:focus-visible{outline-offset:-4px}
#word-meaning-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line);border-radius:24px;padding:32px;background:var(--paper);color:var(--ink)}
#word-meaning-dialog::backdrop{background:#243a3070}
#word-meaning-dialog h3{margin:0 0 16px;font-size:20px;line-height:1.5;overflow-wrap:anywhere}
#word-meaning-dialog label{display:block;margin:24px 0 12px}
#word-meaning-input{width:100%;min-height:48px;font-size:16px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fffdf6;color:inherit}
#word-meaning-input+.micro{margin-top:18px;line-height:1.8}
#word-meaning-status{font-size:13px;line-height:1.7;margin-top:12px}
#word-meaning-status:empty{display:none}
#word-meaning-dialog .button-row{display:grid;grid-template-columns:1.3fr 1fr .8fr;gap:12px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
#word-meaning-dialog .button{min-height:48px;padding:12px;font-size:14px;box-shadow:none}
@media(max-width:520px){#word-meaning-dialog{padding:24px}#word-meaning-dialog .button-row{grid-template-columns:1fr 1fr}#word-meaning-dialog button[type="submit"]{grid-column:1/-1}}

#offline-settings>summary{cursor:pointer;list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;padding:4px 0}
#offline-settings>summary::-webkit-details-marker{display:none}
#offline-title{font-size:18px;font-weight:550}
#offline-settings>summary .micro{grid-column:1;grid-row:2}
#offline-settings>summary::after{content:'›';grid-column:2;grid-row:1/3;font-size:26px;color:var(--muted);transition:transform .15s}
#offline-settings[open]>summary::after{transform:rotate(90deg)}
#offline-settings>summary:focus-visible{outline:3px solid var(--ochre);outline-offset:6px;border-radius:4px}
.offline-settings-body{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
#offline-activity:not([hidden]){margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
#offline-activity #offline-progress{margin:8px 0;font-size:13px;line-height:1.7}
#offline-activity #offline-bar{width:100%}

#app-update-settings>summary{cursor:pointer;list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:4px 0}
#app-update-settings>summary::-webkit-details-marker{display:none}
#app-update-settings>summary>span:first-child{font-size:18px;font-weight:550}
#app-update-settings>summary .micro{grid-row:2;grid-column:1}
#app-update-settings>summary::after{content:'›';grid-row:1/3;grid-column:2;align-self:center;font-size:26px;color:var(--muted)}
#app-update-settings[open]>summary::after{transform:rotate(90deg)}
#app-update-settings>summary:focus-visible{outline:3px solid var(--ochre);outline-offset:6px;border-radius:4px}
.app-update-body{margin-top:20px;padding-top:4px;border-top:1px solid var(--line)}
.app-update-body>.micro{margin-top:16px}
.app-update-body .primary{box-shadow:none}
#app-update-status{font-size:13px;line-height:1.7;margin-top:12px}
#app-update-status:empty{display:none}
/* One full-card button keeps the image and footer on the same edit action. */
.content-word-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:4px}
.content-word-card{min-width:0}.content-word-card>button{display:flex;flex-direction:column;width:100%;height:100%;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fffdf6;color:inherit;font:inherit;text-align:center;cursor:pointer}
.content-word-card>button:hover{border-color:var(--sage,#52795c)}.content-word-card>button:focus-visible{outline:3px solid var(--ochre);outline-offset:1px}
.content-card-body{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;gap:8px;width:100%;padding:32px 12px 16px;min-width:0;overflow-wrap:anywhere}
.content-card-body img{width:64px;height:64px;object-fit:contain;flex-shrink:0}.content-card-body strong{font-size:18px;max-width:100%}.content-card-meaning{font-size:15px;max-width:100%;color:var(--muted)}
.content-edited-badge{position:absolute;top:8px;right:10px;font-size:11px;color:var(--muted)}.content-no-picture{display:grid;place-items:center;min-height:64px;color:var(--muted);font-size:13px}
.content-card-footer{display:grid;place-items:center;width:100%;min-height:44px;padding:10px 8px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.content-word-list>p{grid-column:1/-1}
@media(max-width:900px){.content-word-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.content-word-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.content-card-body{padding-inline:8px}}
#word-meaning-dialog{width:min(600px,calc(100vw - 32px));max-height:85dvh;overflow:auto}#word-meaning-form{display:flex;flex-direction:column;gap:12px}#word-meaning-form textarea{font:inherit;padding:12px;border:1px solid var(--line);border-radius:12px;min-height:88px;resize:vertical}.word-more summary{min-width:44px;min-height:44px;cursor:pointer;font-size:24px}
.word-tile{position:relative;min-width:0}.word-tile>[data-course=word]{width:100%;height:100%}.word-pagination[hidden]{display:none}#selection-results .content-word-list{max-height:min(520px,65dvh);overflow:auto;overscroll-behavior:contain}

.word-selection-toolbar{display:flex;justify-content:flex-end;width:100%;margin:0 0 12px}
.word-selection-action{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--green);font:inherit;font-size:14px;cursor:pointer}
.word-selection-action:hover{background:#eef1e7;border-color:#8da181}

.word-selection-action.is-add{background:#e9efdf;border-color:#a5b698}.word-workspace{scroll-margin-top:16px}

/* Equal tile heights; center each visible content group without an empty status row. */
.word-browser .word-list{grid-auto-rows:1fr}
.word-browser .word-list [data-course="word"]>.word-status-slot{display:flex;justify-content:center;align-items:center;flex:none;min-height:18px;height:18px;width:100%;margin-top:4px}
.word-status-slot>.learning-badge,.word-status-slot>.mastery-badge{display:inline-block;margin:0;padding:2px 6px;border:1px solid #d5e1cb;border-radius:6px;font-size:10px;font-weight:500;line-height:12px;letter-spacing:.2px;color:#49664b;background:#edf3e6;white-space:nowrap}
.word-status-slot>.mastery-badge{color:#68725c;background:#f0f1e8;border-color:#dfe3d5}

.word-browser .word-list [data-course="word"]{justify-content:center}
.word-browser .word-list [data-course="word"]>.word-status-slot:empty{display:none}

.voice-group+.voice-group{margin-top:24px}
.voice-group>.micro:not(:empty){margin-top:10px}
.voice-controls label.voice-rate{flex:none;min-width:88px}
.voice-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.voice-controls label{display:flex;flex:1;min-width:min(180px,100%);flex-direction:column;gap:8px}.voice-controls select{width:100%;min-width:0;height:48px;min-height:48px;padding:10px;font:inherit;border:1px solid var(--line);border-radius:12px;background:#fffdf6;color:inherit}.voice-controls .button{flex:none}

.letter-song{max-width:860px;margin:0 auto}.song-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.song-heading h2{margin:10px 0 4px}.song-heading p{margin:0}.song-tag{font-size:12px;color:#526d4b;background:#e9efdf;border-radius:8px;padding:5px 9px}.letter-song video{display:block;width:100%;aspect-ratio:640/368;border-radius:16px;background:#242b23}.song-note{margin:16px 0 0;line-height:1.7}@media(max-width:600px){.letter-song{padding:18px 14px}.letter-song video{border-radius:10px}}
.picture-quiz .quiz-feedback{min-height:2.8em;margin:12px 0 18px;font-size:18px;line-height:1.4;color:var(--ink)}.picture-quiz .quiz-feedback.correct{color:#456b38}.picture-quiz .quiz-feedback.revealed{color:#806136}
.picture-quiz .picture-choices button{opacity:1;min-height:190px;position:relative}.picture-quiz .picture-choices .quiz-correct{border:3px solid #719957;background:#e7f0da}.picture-quiz .picture-choices .quiz-wrong{border:2px solid #c8a36a;background:#faf0df}.picture-quiz .picture-choices .quiz-muted{opacity:.55}.quiz-choice-label{display:block;min-height:22px;font-size:14px;line-height:22px}.quiz-correct .quiz-choice-label{color:#456b38;font-weight:600}.quiz-wrong .quiz-choice-label{color:#806136}.quiz-complete .button{margin:8px}
@media(max-width:600px){.picture-quiz .picture-choices button{min-height:145px;padding:10px 6px}.picture-quiz .quiz-feedback{font-size:16px}.quiz-choice-label{font-size:12px}}
.picture-quiz .picture-choices .quiz-answer-word{font-size:15px;overflow-wrap:anywhere}
.quiz-choice-stage{position:relative;padding-top:44px}.quiz-choice-stage .picture-choices{margin-top:8px}.quiz-celebration{pointer-events:none;position:absolute;top:0;left:50%;z-index:1;display:flex;align-items:center;gap:8px;white-space:nowrap;transform:translateX(-50%);padding:5px 16px 5px 8px;border-radius:22px;background:#f0f5e8;color:#47673e;box-shadow:0 4px 16px #52795c18;font-size:16px;--quiz-motion-duration:1.4s;will-change:transform,opacity;animation:quiz-rise var(--quiz-motion-duration) linear forwards,quiz-fade var(--quiz-motion-duration) linear forwards}.quiz-celebration>img{width:40px;height:40px;object-fit:contain;animation:quiz-bloom .6s ease-out}.quiz-celebration.retry{background:#f6f1e5;color:#806136;--quiz-motion-duration:1.6s}.quiz-celebration.retry>img{transform-origin:bottom;animation:quiz-sway .8s ease-in-out}.quiz-celebration .quiz-petal{position:absolute;width:16px;height:16px;top:6px;animation:quiz-petal 1.1s ease-out forwards}.petal-one{left:-10px;--drift:-16px}.petal-two{right:-10px;--drift:16px}.quiz-celebration.complete{position:relative;left:auto;transform:none;justify-content:center;max-width:320px;margin:0 auto 22px;animation:quiz-bloom .9s ease-out}.quiz-complete{overflow:hidden}.quiz-reveal{animation:quiz-glow 1.2s ease-out}
@keyframes quiz-bloom{from{opacity:0;scale:.65}to{opacity:1;scale:1}}@keyframes quiz-rise{from{transform:translate3d(-50%,10px,0)}to{transform:translate3d(-50%,-80px,0)}}@keyframes quiz-fade{0%{opacity:0}15%,65%{opacity:1}100%{opacity:0}}@keyframes quiz-sway{0%,100%{rotate:0deg}30%{rotate:-4deg}70%{rotate:4deg}}@keyframes quiz-petal{from{opacity:.8;translate:0 0}to{opacity:0;translate:var(--drift) -26px}}@keyframes quiz-glow{0%,100%{box-shadow:0 0 0 0 #91ad6c00}40%{box-shadow:0 0 0 8px #91ad6c25}}
@media(prefers-reduced-motion:reduce){.quiz-celebration,.quiz-celebration>img,.quiz-reveal{animation:none!important}.quiz-celebration .quiz-petal{display:none}}
@media(max-width:600px){.quiz-celebration{font-size:13px}}

@media(max-width:760px){.word-workspace-toolbar .skill-tabs{width:100%}.word-workspace-toolbar{gap:12px;margin-bottom:18px}}
.record-controls [hidden],.practice-secondary[hidden]{display:none!important}.record-controls [data-course=delete-record]{background:transparent;border:0;font-size:13px;padding:8px 12px}.record-panel .record-note{margin-top:12px;font-size:12px;line-height:1.6}.record-panel #record-status:empty{display:none}
.speak-panel .speak-word-heading>.word-picture,.spell-panel .spell-prompt>.word-picture{width:96px;height:96px}.speak-panel .english-word{font-size:34px;margin:8px 0 0}.speak-panel .speak-example .sentence{margin:18px 0 6px;font-size:24px;line-height:1.5}.speak-panel .sentence-meaning{margin:0 0 12px;font-size:15px}.speak-panel .record-panel{padding:18px 0 8px}.practice-secondary{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.practice-secondary .button{background:transparent;border:0;font-size:14px;padding:8px 12px;min-height:44px}
.spell-panel .spell-prompt h2{font-size:24px;margin:8px 0 12px;overflow-wrap:anywhere}.spell-cue{display:flex;align-items:center;justify-content:center;gap:14px;font-size:18px}.spell-cue .button{font-size:14px;padding:8px 12px;min-height:44px}.spell-panel #spell-form{max-width:580px;margin:20px auto 0;gap:12px;flex-wrap:nowrap;align-items:center}.spell-panel #spell-form>.button{flex:0 0 auto;white-space:nowrap;padding:0 16px;box-shadow:none;border-radius:13px}.spell-panel #spell-form>.button,.spell-panel #spell-input{height:48px;min-height:48px}.spell-panel #spell-input{flex:1;min-width:0;width:auto}.spell-panel #spell-feedback{position:relative;width:100%;max-width:580px;min-height:48px;margin:12px auto 0;padding:12px 16px;font-size:16px;line-height:1.5}.spell-panel #spell-feedback .quiz-celebration{top:-28px}.spell-panel .spell-reference{margin:6px 0}
@media(max-width:600px){.word-workspace .speak-panel,.word-workspace .spell-panel{padding:22px 16px}.speak-panel .speak-word-heading>.word-picture,.spell-panel .spell-prompt>.word-picture{width:76px;height:76px}.speak-panel .english-word{font-size:28px}.speak-panel .speak-example .sentence{font-size:21px;margin-top:14px}.spell-panel #spell-form{gap:8px}.spell-panel #spell-form>.button{padding:0 12px;font-size:14px}.spell-panel #spell-input{font-size:18px;padding:12px 10px}.record-controls{gap:10px}.record-controls .button{min-height:48px}}

/* One navigation structure: top bar on tablets, a separate rail on wide screens. */
.shell{min-height:100svh}
.content-area{width:100%;max-width:1280px;min-width:0;margin-inline:auto;padding-inline:32px;container:garden-content / inline-size}
.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) 48px;align-items:center;gap:24px;padding:20px 32px;border-bottom:1px solid var(--line);background:#f4f2e8}
.brand{display:flex;align-items:center;gap:10px;min-height:48px;padding:4px 0;background:transparent;text-align:left}
.brand img{flex:none;width:42px;height:42px}
.brand strong{display:block;font-size:18px;line-height:1.2;font-weight:650;letter-spacing:1px;white-space:nowrap}
.brand small{display:block;margin-top:6px;font:10px/1.2 Georgia,serif;letter-spacing:2px;color:var(--muted)}
.nav{display:flex;justify-content:center;align-items:center;gap:8px;min-width:0}
.nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:52px;padding:12px 14px;border-radius:15px;background:transparent;font-size:16px;line-height:1.5;color:#697564;white-space:nowrap}
.nav-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;line-height:1}
.nav-letter{font-family:GardenRound,'Trebuchet MS',Arial,sans-serif;font-size:21px;font-weight:600;letter-spacing:-1px}
.nav button svg{display:block;width:22px;height:22px}
.nav button:hover,.parent-nav:hover{background:#e8edde}
.nav button.active{background:var(--green);color:var(--white)}
.parent-nav{display:flex;align-items:center;justify-content:center;gap:10px;width:48px;min-height:48px;padding:12px;border-radius:14px;background:transparent;color:#727e6c}
.parent-nav svg{width:24px;height:24px}
.parent-nav.active{background:#e1e8d8;color:var(--ink)}
.parent-label{display:none}
.sidebar-motto{display:none}
@media(min-width:1100px){
 .shell.word-shell{grid-template-rows:1fr}
 .shell{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start}
 .topbar{position:sticky;top:0;display:flex;flex-direction:column;align-items:stretch;gap:0;height:100svh;overflow-y:auto;padding:32px 20px max(24px,env(safe-area-inset-bottom));border-bottom:0;border-right:1px solid var(--line)}
 .brand{margin-bottom:48px}
 .nav{flex-direction:column;gap:12px}
 .nav button{width:100%;justify-content:flex-start;gap:12px;min-height:60px;padding:16px;font-size:18px}
 .nav-end{margin-top:auto}
 .parent-nav{width:100%;font-size:15px}
 .parent-label{display:inline}
 .content-area{display:flex;flex-direction:column;min-height:100svh;padding-inline:clamp(32px,3vw,48px)}
 .content-area>.page{width:100%;flex:1}
}
@media(min-width:1100px) and (min-height:650px){
 .sidebar-motto{display:grid;justify-items:center;gap:14px;padding:20px 0 24px;text-align:center;color:#697564;font-size:12px;line-height:1.6}
 .footer .offline-state{margin-inline-start:auto}
}
@media(max-width:760px){
 .content-area{padding-inline:22px}
 .topbar{grid-template-columns:minmax(0,1fr) 48px;gap:16px 12px;padding:16px 22px}
 .brand{grid-column:1;grid-row:1}
 .brand img{width:38px;height:38px}
 .nav-end{grid-column:2;grid-row:1}
 .nav{grid-column:1/-1;grid-row:2;gap:8px}
 .nav button{flex:1;padding:12px 6px;font-size:14px}
 .nav-icon{flex-basis:24px;width:24px;height:24px}
 .nav-letter{font-size:19px}
 .nav button svg{width:20px;height:20px}
}
@media(max-width:520px){
 .content-area{padding-inline:18px}
 .topbar{padding-inline:18px}
}
@media(max-width:380px){
 .nav{gap:5px}
 .nav button{gap:5px;padding-inline:4px;font-size:13px}
 .nav-icon{flex-basis:22px;width:22px;height:22px}
 .nav-letter{font-size:17px}
 .nav button svg{width:18px;height:18px}
}

/* The available content width matters once the rail takes part of the viewport. */
@container garden-content (max-width:900px){
 .home-intro{grid-template-columns:minmax(0,1fr) 180px;gap:24px;padding:0 0 26px}
 .home-art{height:150px}
 .home-entries{grid-template-columns:1fr;gap:16px}
 .entry-card{display:grid;grid-template-columns:minmax(0,1fr) 80px;align-items:center;column-gap:20px;padding:24px 28px}
 .entry-card .entry-art{grid-column:2;grid-row:1/4;justify-content:center;height:auto;font-size:58px}
 .entry-card h2{grid-column:1;grid-row:1;font-size:26px;margin:0}
 .entry-card p{grid-column:1;grid-row:2;margin-top:8px}
 .entry-link{grid-column:1;grid-row:3;margin-top:16px}
 .word-layout{grid-template-columns:minmax(260px,.9fr) minmax(0,1.15fr);gap:20px}
 .word-workspace .learning-panel{padding:24px 16px}
}
@container garden-content (max-width:540px){
 .home-intro{grid-template-columns:1fr;padding:12px 0 26px}
 .home-art{display:none}
 .home-intro .subtitle{font-size:16px}
 .entry-card{grid-template-columns:minmax(0,1fr) 60px;column-gap:16px;padding:22px}
 .entry-card h2{font-size:24px}
 .entry-card p{font-size:14px}
 .entry-card .entry-art{font-size:52px}
 .entry-art svg,.entry-art .word-picture{width:54px;height:54px}
}

:where(button, a[href], summary):active:not(:where(:disabled, [aria-disabled="true"], .parent-hold)) {
  filter: brightness(.94);
}

.translation-speaker{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;vertical-align:middle;border-radius:50%;background:transparent}
.translation-speaker:hover{background:var(--pale)}
.translation-speaker svg{width:18px;height:18px}

.word-browser-tools{display:flex;align-items:stretch;gap:8px;margin-bottom:12px}
.word-browser-tools #word-search{flex:1;margin:0}
.word-order-trigger{flex:none;min-width:44px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:transparent;color:var(--ink);font-size:14px;white-space:nowrap}
.word-order-trigger:hover{background:var(--pale)}
.word-order-dialog{width:min(640px,calc(100% - 24px));max-height:calc(100% - 24px);border:1px solid var(--line);border-radius:22px;background:#fffdf6;color:inherit;padding:20px}
.word-order-dialog[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px}
.word-order-dialog::backdrop{background:#26392c66}
.word-order-list{margin:0;padding:4px 5px 4px 30px;overflow:auto;overscroll-behavior:contain}
.word-order-list li{padding:8px 0;border-bottom:1px solid var(--line)}
.word-order-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
.word-order-name{display:grid;gap:3px;overflow-wrap:anywhere}
.word-order-name small{color:var(--muted)}
.word-order-moves,.word-order-footer{display:flex;gap:6px;flex-wrap:wrap}
.word-order-moves .button{min-height:44px;padding:6px 10px;font-size:13px}
.word-order-footer{justify-content:flex-end;gap:10px}
.word-order-status:not(:empty){flex-basis:100%;text-align:right}

/* Listening game: one grid for both cases, with text and borders alongside color feedback. */
.listen-settings{max-width:850px;margin:auto;padding:32px}.listen-settings h2{margin-top:0}.listen-settings fieldset{border:0;padding:0;margin:26px 0}.listen-settings legend{font-weight:600;margin-bottom:12px}.listen-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.listen-options label{display:flex;align-items:center;gap:12px;padding:20px;border:2px solid var(--line);border-radius:18px;cursor:pointer;background:#fffdf8}.listen-options label:has(input:checked){border-color:#64875c;background:#edf3e7}.listen-options input,.listen-checks input{accent-color:#53774b;width:20px;height:20px;flex-shrink:0}.listen-options strong{font-size:20px}.listen-options small{display:block;margin-top:8px;color:var(--muted);line-height:1.6}.listen-checks{display:flex;gap:28px;flex-wrap:wrap;margin:26px 0}.listen-checks label{display:flex;align-items:center;gap:8px;min-height:44px}.listen-settings>.button{display:flex;margin:auto;min-width:190px;justify-content:center}.listen-scorebar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.listen-scorebar strong{font-size:28px;color:#50754a}.listen-game{max-width:880px;margin-inline:auto}.listen-stage{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 24px;border:1px solid var(--line);border-radius:26px;background:linear-gradient(#eaf2e4,#fffdf7);gap:8px}.listen-stage .sound-orb{margin:0;width:92px;height:92px;flex-shrink:0}.listen-message{min-height:28px;text-align:center;line-height:1.7;margin:4px 0}.listen-stage>.button{min-height:44px;padding:8px 16px}.listen-answer{border:3px solid #64875c;border-radius:22px;background:#edf3e7;color:var(--ink);font:700 60px/1.2 GardenRound,'Trebuchet MS',sans-serif;width:88px;height:88px;cursor:pointer}.listen-pad{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:20px}.listen-key{flex:0 0 96px;width:96px;min-width:0;min-height:96px;font-size:44px;font-weight:700;background:#fffdf8;border:2px solid #d6dfcf;border-radius:14px;color:var(--ink);cursor:pointer;padding:10px 2px}.listen-key:disabled{opacity:.65;cursor:default}.listen-key.vowel{color:#b84239;background:#fff5ed}.listen-key.wrong{text-decoration:line-through;border-color:#bd7772;background:#f8e7e2}.listen-key.correct{border-color:#4b7842;background:#e2efd9;color:#365e30;opacity:1}.listen-key.hinted{outline:3px dashed #b28c38;outline-offset:2px}.listen-hint{display:flex;margin:22px auto 0}.listen-review{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.listen-review button{font-size:28px;min-width:64px}.listen-results{text-align:center}.listen-score{font-size:56px;color:#50754a;margin:20px}.listen-score small{font-size:20px}.listen-results .button-row{justify-content:center}.listen-game button:focus-visible{outline:3px solid #537c9e;outline-offset:3px}
@media(max-width:850px){.listen-settings{padding:24px}}
@media(max-width:500px){.listen-pad{gap:10px}.listen-key{flex-basis:72px;width:72px;min-height:76px;font-size:36px}.listen-options{grid-template-columns:1fr;gap:10px}.listen-options label{padding:14px}.listen-settings{padding:20px}.listen-stage{padding:16px;min-height:220px}.listen-scorebar strong{font-size:24px}}

.listen-settings>.button-row{justify-content:flex-end;gap:12px}.listen-settings>.button-row .button{min-width:110px}

.listen-stage{position:relative}.listen-stage>.quiz-celebration{top:45%}

.letters-page .pair-shell .practice-top,.practice-pair .practice-kicker{display:none}

.pair-workspace{width:100%;max-width:780px;margin:16px auto;display:grid;justify-items:center;gap:16px}
.practice-pair .pair-target .big-glyph{margin:0;line-height:1.1}
.pair-target{position:relative;display:flex;flex-direction:column;align-items:center;min-width:130px;padding:12px 8px;gap:8px}.pair-target .big-glyph{display:block;margin:0}.pair-voice{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:8px 10px;border-radius:10px;color:var(--ink);background:transparent;border:0;cursor:pointer;font-size:14px;white-space:nowrap}.pair-voice svg{width:18px;height:18px}.pair-option{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 0}.pair-voice:hover{background:var(--pale)}.pair-voice:focus-visible{outline:3px solid #537c9e;outline-offset:-3px}
.pair-workspace>.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:440px;margin:0}.pair-workspace .choice{width:clamp(112px,12vw,160px);max-width:100%;aspect-ratio:1;min-width:0;min-height:128px;padding:12px 8px;border:1px solid #e1e5d8;border-radius:22px;background:transparent}
.pair-workspace .choice.revealed{background:#e7eedc;border-color:#8ba67c}


.word-list-toggle{display:none}
.word-learning-content{display:contents}

/* One responsive workspace for every word mode and input device. The content
   width determines the column layout; long content always scrolls naturally. */
 /* The shell stays stable while its course subtree is replaced. */
 .word-shell{display:grid;grid-template-rows:auto 1fr;align-items:stretch}
 .word-shell>.content-area{display:flex;flex-direction:column}
 .word-shell .page{display:flex;flex-direction:column;flex:1;padding:12px 0 8px}
 .word-shell>.content-area>.footer{padding:6px 0}
 #course.word-page{flex:1;padding-bottom:0;grid-template-rows:auto auto minmax(auto,1fr)}
 .word-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 24px}
 .word-page>.library-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .word-page>.mastery-filters{margin:0;align-self:center;gap:4px}
 .word-page>.mastery-filters button{min-height:44px;padding:8px 12px;background:transparent;border-color:transparent;border-radius:12px;font-size:14px}
 .word-page>.mastery-filters button[aria-pressed=true]{background:#e5ecdd;border-color:#a5b795}
 .word-page>.word-topic-select{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0;font-size:14px;color:var(--muted)}
 .word-page>.word-topic-select select{min-width:0;width:210px;min-height:44px;appearance:none;-webkit-appearance:none;font:inherit;font-size:16px;padding:8px 40px 8px 12px;border:1px solid var(--line);border-radius:12px;background:#fffdf6;color:var(--ink)}
 .word-page>.word-topic-select::after{content:'';position:absolute;right:16px;top:calc(50% - 5px);width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);pointer-events:none}
 .word-page>.word-workspace-toolbar{grid-column:1/-1;align-items:center;gap:8px 16px;margin:0;padding-bottom:8px;border-bottom:1px solid var(--line)}
 .word-page .word-workspace-toolbar .skill-tabs{display:flex;width:auto;gap:4px;padding:4px;border-radius:17px;background:#eaede2}
 .word-page .skill-tabs button{min-height:44px;padding:10px 16px;background:transparent;border:1px solid transparent;border-radius:13px;font-size:15px}
 .word-page .skill-tabs button[aria-pressed=true]{background:var(--green);color:white;font-weight:600;box-shadow:0 2px 5px #344d3914}
 .word-page .word-loop-control{flex-direction:row;align-items:center;gap:8px}
 .word-page .word-loop-control .button{background:transparent;min-height:44px;padding:8px 12px;font-size:13px}
 .word-page .word-loop-control .button[aria-pressed=true]{background:var(--green);color:white}
 .word-page>.word-layout{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px}
 .word-page>.word-layout:has(.quiz-hidden),.word-page>.word-layout:has([data-empty-scope=selection]){grid-template-columns:minmax(0,1fr)}
 .word-page .word-layout:has([data-empty-scope=selection])>.word-browser{display:none}
 .word-page .word-browser .word-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .word-page .word-browser .word-list [data-course=word]{min-height:96px;padding:6px 4px;font-size:14px}
 .word-page .word-browser .word-list .word-picture{width:46px;height:46px}
 .word-page .word-browser .word-list [data-course=word]>.word-picture{margin-bottom:6px}
 .word-page .word-browser-tools{margin-bottom:8px}
 .word-page .word-pagination{margin-top:8px}
 .word-page .word-workspace .learning-panel{min-height:0;padding:12px 20px;border-radius:24px}
 .word-page .learning-panel .button{min-height:44px;padding:10px 12px;font-size:15px}
 .word-page .word-workspace .english-word{font-size:32px;margin:4px 0;line-height:1.2}
 .word-page .word-workspace .sentence{margin:16px 0 0;font-size:20px;line-height:1.5}
 .word-page .sentence-meaning{margin:4px 0 8px;font-size:16px}
 .word-mode-learn .word-selection-toolbar{margin-bottom:4px}
 .word-mode-learn .word-identity{display:flex;align-items:center;justify-content:center;gap:16px;min-height:128px}
 .word-mode-learn .word-identity-copy{display:block;min-width:0;text-align:left}
 .word-mode-learn .word-workspace .word-identity>.word-picture{width:128px;height:128px;margin:0;flex:none}
 .word-mode-learn .word-learning-content>.button-row{margin-top:12px}
 .word-mode-learn .mastery-control{margin-top:8px;gap:4px 10px}
 .word-mode-learn .mastery-control summary{min-height:44px;padding:12px 0;line-height:20px}
 .word-mode-learn .word-follow-extra{margin-top:4px;padding-top:4px}
 .word-mode-learn .word-follow-extra summary{padding:8px;min-height:44px}
 .word-page .word-workspace .empty-content{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px}
 .word-page .empty-content>p{margin:0;font-size:20px;font-weight:550}
 .word-page .word-empty-guide{display:flex;flex-direction:column;align-items:center;gap:24px;max-width:440px}
 .word-page .word-empty-guide p{margin:0;font-size:15px;line-height:1.8}
 .word-page .picture-quiz{max-width:900px;margin-inline:auto}
 .word-page .picture-quiz h2{font-size:24px;margin:6px 0}
 .word-page .picture-quiz .quiz-feedback{min-height:28px;margin:8px 0 12px}
 .word-page .picture-quiz .quiz-choice-stage{padding-top:32px}
 .word-page .picture-quiz .picture-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:700px;margin:8px auto 16px;gap:12px}
 .word-page .picture-quiz .picture-choices button{width:100%;max-width:none;min-width:0;min-height:176px;padding:12px}
 .word-page .picture-quiz .picture-choices .word-picture{width:112px;height:112px}
 .word-page .word-workspace .picture-quiz>.button-row{margin-top:8px}
 .word-page .speak-panel .speak-word-heading{display:flex;align-items:center;justify-content:center;gap:20px}
 .word-page .speak-panel .speak-word-heading>.word-picture{width:112px;height:112px}
 .word-page .speak-panel .speak-example{padding-bottom:12px;border-bottom:1px solid var(--line)}
 .word-page .speak-panel .record-panel{padding:16px 0 0}
 .word-page .word-workspace .speak-panel>.practice-secondary{margin-top:12px;padding-top:8px}
 .word-page .word-workspace .spell-panel{max-width:760px;margin-inline:auto;padding:24px 40px}
 .word-page .spell-panel .spell-prompt>.word-picture{width:128px;height:128px}
 .word-page .spell-panel .spell-prompt h2{font-size:24px;margin:8px 0}
 .word-page .spell-panel #spell-form{margin-top:16px}
 .word-page .spell-panel #spell-feedback{margin:8px auto 0}
 .word-page .word-workspace .spell-panel>.practice-secondary{margin-top:8px;padding-top:8px}

/* Only the preferred empty space is bounded. With automatic height, longer
   examples and expanded help grow the card instead of overflowing a hard cap. */
@container garden-content (min-width:781px){
 .word-page>.word-layout{align-items:stretch}
 .word-page .word-browser{display:flex;flex-direction:column}
 .word-page .word-browser .word-list{--word-grid-adaptive:1;flex:1;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(var(--word-grid-rows,1),minmax(min-content,var(--word-grid-card-height,128px)));grid-auto-rows:minmax(min-content,var(--word-grid-card-height,128px));align-content:start}
 .word-page .word-browser .word-list .word-picture{width:clamp(46px,calc(10svh - 30px),72px);height:clamp(46px,calc(10svh - 30px),72px)}
 .word-page .word-pagination{margin-top:auto;padding-top:8px}
 .word-page .word-workspace{display:flex;flex-direction:column}
 .word-page .word-workspace .learning-panel{display:flex;flex-direction:column;flex:0 0 auto;min-height:min(100%,720px);width:100%;padding-block:8px}
 .word-page .learning-panel>button{align-self:center}
 .word-page .word-workspace .empty-content,.word-page .word-workspace .quiz-complete{flex:0;min-height:280px;align-items:center;justify-content:center}
 .word-mode-learn .word-learning-content{display:flex;flex-direction:column;justify-content:center;flex:1}
 .word-mode-learn .word-workspace .word-identity>.word-picture{width:clamp(128px,calc(28svh - 100px),176px);height:clamp(128px,calc(28svh - 100px),176px)}
 .word-page .speak-panel .record-panel{flex:1;display:flex;flex-direction:column;justify-content:center}
 .word-page .speak-panel .speak-word-heading>.word-picture{width:clamp(112px,calc(25svh - 80px),176px);height:clamp(112px,calc(25svh - 80px),176px)}
 .word-page .picture-quiz .quiz-choice-stage{flex:1;display:flex;align-items:center;justify-content:center}
 .word-page .picture-quiz .picture-choices{width:100%}
 .word-page .picture-quiz .picture-choices .word-picture{width:clamp(112px,calc(25svh - 80px),160px);height:clamp(112px,calc(25svh - 80px),160px)}
 .word-page .spell-panel .spell-prompt{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}
 .word-page .spell-panel .spell-prompt>.word-picture{width:clamp(128px,calc(28svh - 100px),176px);height:clamp(128px,calc(28svh - 100px),176px)}
}

@container garden-content (max-width:780px){
 #course.word-page{flex:0;grid-template-rows:none;grid-template-columns:minmax(0,1fr)}
 .word-page>.mastery-filters{display:flex;flex-wrap:wrap}
 .word-page>.mastery-filters button{flex:1;padding-inline:6px}
 .word-page>.word-topic-select{justify-content:flex-start}
 .word-page>.word-topic-select select{flex:1;width:auto}
 .word-page>.word-workspace-toolbar{gap:8px}
 .word-page .word-workspace-toolbar .skill-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:2px}
 .word-page .skill-tabs button{padding-inline:2px}
 .word-page .word-loop-control{width:100%;margin:0;justify-content:space-between;flex-wrap:wrap}
 .word-page>.word-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .word-page .word-workspace .learning-panel{padding-inline:16px}
 .word-page .word-workspace .empty-content{padding:24px 16px}
 .word-page .picture-quiz .picture-choices{grid-template-columns:repeat(2,minmax(0,1fr));max-width:480px}
 .word-page .picture-choices>button:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 6px)}
 .word-page .spell-panel #spell-form{gap:8px}
 .word-page .spell-panel #spell-form>.button{padding:0 12px;font-size:14px}

 /* Narrow layouts can fold the grid into a horizontal strip. */
 .word-page .word-list-toggle{display:block;flex:none;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:13px;background:transparent;font-size:14px;color:var(--ink)}
 .word-page .word-browser[data-list-expanded=false] .word-list{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:8px}
 .word-page .word-browser[data-list-expanded=false] .word-tile{flex:0 0 88px}
 .word-page .word-browser[data-list-expanded=false] .word-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .word-page .word-browser[data-list-expanded=false] .word-page-controls{order:2;flex:none}
 .word-page .word-browser[data-list-expanded=false] .word-page-controls>button:first-child,
 .word-page .word-browser[data-list-expanded=false] .word-page-controls>button:last-child,
 .word-page .word-browser[data-list-expanded=false] .word-page-jump input,
 .word-page .word-browser[data-list-expanded=false] .word-page-jump button{display:none}
 .word-page .word-browser[data-list-expanded=false] .word-page-jump{justify-content:flex-start}
 .word-page .word-browser[data-list-expanded=false] .word-page-controls:not(:has(button:enabled)){display:none}
 .word-page .word-browser[data-list-expanded=false] .word-pagination[hidden]{display:none}
}

/* Letter activities share compact spacing and keep natural overflow for long ranges. */
.letters-page{padding:16px 0 10px;overflow-anchor:none}
.letters-page>.library-head{margin-bottom:12px}
.letters-page>.library-head .eyebrow{display:none}
.letters-page .page-title{font-size:26px;margin:0 0 4px}
.letters-page .subtitle{font-size:14px;line-height:1.7}
.letters-page>.activity-switch{margin-bottom:18px}
.letters-page .activity-switch button{min-height:44px;padding:10px 12px;font-size:14px}
.letter-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.letter-tools .activity-switch,.letter-tools .loop-toolbar{margin:0}
.letters-shell .footer{padding-block:8px}
.letter-picker .alphabet-card{min-height:88px;padding:32px 10px 8px}
.letter-picker .alphabet-card .glyph{font-size:38px}
.letters-page .library-detail.letter-detail{margin-top:14px;padding:16px 20px}
.letters-page .letter-detail-heading{margin-bottom:12px}
.letters-page .letter-detail-heading>.glyph{font-size:72px;min-width:112px}
.letters-page .letter-detail .letter-sounds .sound-tile{min-height:64px;padding:10px 12px}
.letters-page .audio-sources{margin:8px 0 0}
.letters-page .audio-sources summary{min-height:44px;padding:10px 0;line-height:24px}
@container garden-content (min-width:781px){
 /* Short viewports keep the compact baseline; taller ones enlarge the learning
    content itself. Cap the growth so a large monitor cannot stretch it apart. */
 .letters-page:has(.letter-detail){--letter-room:clamp(0px,calc(100svh - 800px),200px)}
 .letters-page .letter-tools{margin-bottom:calc(14px + var(--letter-room)*.05)}
 .letters-page .alphabet-grid.letter-picker{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:calc(12px + var(--letter-room)*.02)}
 .letters-page .letter-picker .alphabet-card{min-height:calc(88px + var(--letter-room)*.18)}
 .letters-page .letter-picker .alphabet-card .glyph{font-size:calc(38px + var(--letter-room)*.05)}
 .letters-page .library-detail.letter-detail{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:calc(8px + var(--letter-room)*.08) calc(20px + var(--letter-room)*.04);align-items:center;align-content:center;min-height:max(200px,var(--letter-stage-height,360px));margin-top:calc(14px + var(--letter-room)*.05);padding:calc(16px + var(--letter-room)*.08) calc(20px + var(--letter-room)*.06)}
 .letters-page .letter-detail-heading{grid-column:1;grid-row:1/4;flex-direction:column;align-items:flex-start;gap:calc(12px + var(--letter-room)*.04);margin:0}
 .letters-page .letter-detail-heading>.glyph{font-size:calc(72px + var(--letter-room)*.28);min-width:0}
 .letters-page .letter-detail-heading h2{font-size:calc(20px + var(--letter-room)*.02)}
 .letters-page .letter-detail-heading .micro{font-size:calc(14px + var(--letter-room)*.01)}
 .letters-page .letter-sounds{grid-column:2;grid-row:1}
 .letters-page .letter-detail .letter-sounds .sound-tile{min-height:calc(64px + var(--letter-room)*.16);padding:calc(10px + var(--letter-room)*.03) 16px}
 .letters-page .letter-detail .letter-sounds strong{font-size:calc(16px + var(--letter-room)*.01)}
 .letters-page .letter-detail .letter-sounds small{font-size:calc(13px + var(--letter-room)*.01)}
 .letters-page .letter-example{grid-column:2;grid-row:2;padding-top:calc(8px + var(--letter-room)*.04)}
 .letters-page .letter-example .example-button{font-size:calc(14px + var(--letter-room)*.03)}
 .letters-page .letter-example .word-picture{width:calc(35px + var(--letter-room)*.125);height:calc(35px + var(--letter-room)*.125)}
 .letters-page .letter-example-meaning{font-size:calc(14px + var(--letter-room)*.02)}
 .letters-page .letter-detail #letter-play-status{grid-column:2;grid-row:3;margin:0;min-height:24px}
}
.pair-target,.pair-option{border-radius:22px}
/* Playback is a listening cue, not a selected or graded card. */
.pair-target.is-speaking .big-glyph,.pair-option.is-speaking .choice{color:var(--green)}
.pair-voice::after{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;visibility:hidden;flex:none}
[data-pair-case].is-speaking .pair-voice{color:var(--green)}
[data-pair-case].is-speaking .pair-voice::after{visibility:visible}
[data-pair-case].is-speaking .pair-voice svg{stroke-width:2.5}
@container garden-content (max-width:540px){
 .letters-page .activity-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .letter-tools{align-items:stretch}
 .letter-tools .activity-switch{width:100%}
 .letters-page .letter-detail-heading>.glyph{font-size:64px;min-width:100px}
 .letters-page .library-detail.letter-detail{padding:16px}
}

/* Activity panels use the same measured remainder, independent of their content. */
@container garden-content (min-width:781px){
 .letters-page>.practice-shell{width:100%;max-width:none;min-height:var(--letter-stage-height,440px);display:flex;flex-direction:column}
 .letters-page .practice-top{display:none}
 .letters-page .practice-panel{flex:1;min-height:300px;padding:20px 28px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);grid-template-rows:auto auto 1fr auto;gap:8px 24px;align-items:center;overflow:visible}
 .letters-page .practice-kicker{display:none}
 .letters-page #task-title{grid-column:1/-1;margin:0;font-size:24px}
 .letters-page .practice-panel>.micro{grid-column:1/-1;margin:0}
 .letters-page .practice-pair{grid-template-columns:minmax(0,1fr)}
 .letters-page .pair-workspace{grid-column:1/-1;grid-row:3;grid-template-columns:minmax(180px,1fr) minmax(0,1.6fr);gap:clamp(24px,4vw,56px);align-items:center;align-self:start;margin:clamp(4px,calc((100dvh - 720px)*.25),80px) auto 4px}
 .letters-page .pair-target{margin:0;min-width:0;padding:8px;gap:4px}
 .letters-page .pair-target .big-glyph{font-size:clamp(100px,10vw,144px)}
 .letters-page .practice-panel>.choices{grid-column:2;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
 .letters-page .pair-option .choice{font-size:clamp(64px,7vw,96px)}
 .letters-page .practice-panel>.feedback{grid-column:1/-1;min-height:28px;margin:0;line-height:1.5}
 .letters-page .practice-bottom{margin-top:12px;gap:12px}
 .letters-page>.listen-game{max-width:none;width:100%;min-height:var(--letter-stage-height,420px);display:flex;flex-direction:column}
 .letters-page .listen-stage{flex:1;min-height:160px}
 .letters-page .listen-key{flex-basis:clamp(72px,7vw,96px);width:clamp(72px,7vw,96px);min-height:clamp(72px,7vw,96px);font-size:clamp(36px,4vw,44px)}
 .letters-page .listen-hint{margin:16px auto 0}
 .letters-page>.letter-song{max-width:none;width:100%;height:var(--letter-stage-height,480px);min-height:360px;display:flex;flex-direction:column;padding:20px 24px;margin:0}
 .letters-page .song-heading{flex:none;margin-bottom:12px}
 .letters-page .song-heading h2{font-size:22px;margin:4px 0}
 .letters-page .song-tag{display:none}
 .letters-page .song-video-stage{flex:1;min-height:180px;position:relative;background:#242b23;border-radius:16px}
 .letters-page .letter-song video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;aspect-ratio:auto}
 .letters-page .song-note{flex:none;margin:10px 0 0}
}
.letter-picker-card[hidden],.letter-picker-pages[hidden]{display:none}
.letter-picker-pages{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:8px;font-size:13px;color:var(--muted)}
.letter-picker-pages .button{min-height:44px}

/* Parent-guided oral vocabulary practice. */
.guided-entry{grid-column:1/-1;display:flex;justify-content:flex-start;margin:4px 0 12px}
.guided-entry .button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:9px 16px;border-radius:12px;font-size:15px;line-height:24px;white-space:nowrap;box-shadow:none}
.word-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}
.word-toolbar-actions .guided-entry{margin:0}
@container garden-content (max-width:780px){
 .word-toolbar-actions{width:100%;justify-content:flex-start}
 .word-page .word-toolbar-actions .word-loop-control{width:auto}
}
.shell.guided-shell{display:block;min-height:100svh;--muted:#596b5b;--guided-page-bottom:24px}
.guided-shell>.topbar,.guided-shell>.content-area>.footer{display:none}
.guided-shell>.content-area{display:block;max-width:none;min-height:100svh;padding:0 24px}
.guided-shell .page{display:block;width:100%;max-width:1280px;padding:0;margin:auto;animation:none}
.guided-shell .micro{font-size:14px;line-height:1.7}
.guided-shell #course{padding-bottom:var(--guided-page-bottom)}

.guided-heading{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px;padding:12px 0;margin-bottom:12px;background:var(--cream,#f7f6ed)}
.guided-heading .page-title{font-size:25px;line-height:1.3;letter-spacing:1px;margin:0}
.guided-heading p{font-size:13px;line-height:1.6;color:var(--muted);margin:3px 0 0}
.guided-header-actions{display:flex;gap:8px;align-items:center}
.guided-header-actions .button{min-width:44px;min-height:44px;padding:8px 12px;font-size:14px}
.guided-shell .button:focus-visible,.guided-entry .button:focus-visible,.guided-shell summary:focus-visible{outline:3px solid #709261;outline-offset:3px}
.guided-overview,.guided-summary{width:100%;max-width:none;margin:0 auto;padding:28px}
.guided-overview h2{font-size:28px;line-height:1.45;font-weight:600;margin:0}
.guided-intro{max-width:760px;font-size:16px;color:var(--muted);margin:10px 0 22px;line-height:1.8}
.guided-today{padding:22px 0;border-block:1px solid var(--line)}
.guided-start-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.guided-start-row h3{font-size:20px;font-weight:600;margin:0}
.guided-start-row p{font-size:14px;line-height:1.7;color:var(--muted);margin:6px 0 0}
.guided-start-row .button{min-height:52px;flex-shrink:0}
.guided-settings fieldset{border:0;padding:0;margin:22px 0}
.guided-settings legend{font-size:16px;font-weight:600;margin-bottom:10px}
.guided-settings-options{display:flex;flex-wrap:wrap;gap:10px;max-width:520px}
.guided-settings-options.is-count{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.guided-settings-options.is-count label{min-width:0}
.guided-settings-options.is-count span{padding-inline:4px}
.guided-settings-embedded{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}
.guided-settings-embedded h3{font-size:20px;font-weight:600;margin:0 0 16px}
.guided-settings-options label{position:relative;flex:1;min-width:78px;cursor:pointer}
.guided-settings-options input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.guided-settings-options span{display:flex;justify-content:center;align-items:center;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:14px;background:var(--paper,#fffef8);font-size:16px}
.guided-settings-options input:checked+span{background:#e2ecd9;border-color:#8ba576;color:var(--ink);font-weight:600}
.guided-settings-options input:focus-visible+span{outline:3px solid #709261;outline-offset:3px}
.guided-restart{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.guided-restart strong{font-size:15px;font-weight:500}
.guided-restart p{margin:5px 0 0}
.guided-restart .button{min-height:44px;font-size:14px}
.guided-restart-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100svh - 32px);overflow:auto;box-sizing:border-box;padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--paper,#fffef8);color:var(--ink);box-shadow:0 18px 80px #263b3630}
.guided-restart-dialog::backdrop{background:#20372d66}
.guided-restart-dialog h2{font-size:22px;line-height:1.5;margin:0 0 14px}
.guided-restart-dialog p{font-size:16px;line-height:1.8}
.guided-restart-dialog .micro{font-size:14px;color:var(--muted)}
.guided-restart-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.guided-restart-actions .button{flex:1;min-width:130px;min-height:48px}
.guided-word-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.guided-word-chips>span{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;max-width:100%;background:#edf1e5;padding:7px 11px;border-radius:12px;font-size:15px;overflow-wrap:anywhere}
.guided-word-chips strong{font-weight:600}
.guided-word-chips>span>span{color:var(--muted);font-size:14px}
.guided-path{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0;padding:0}
.guided-path li{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.6}
.guided-path li>span{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#e2ebd8}
.guided-path strong{font-weight:500}
.guided-scope-notice{padding:12px 14px;margin:16px 0;border-radius:12px;background:#edf1e5;font-size:14px;line-height:1.7}
.guided-parent-help,.guided-home-game,.guided-progress{margin-top:18px;padding-top:12px;border-top:1px solid var(--line);text-align:left}
.guided-parent-help summary,.guided-home-game summary,.guided-progress summary,.guided-details summary,.guided-parent-cue summary,.guided-credit summary{min-height:44px;padding:9px 0;cursor:pointer;font-size:14px;line-height:1.8;color:var(--ink)}
.guided-parent-help p,.guided-home-game p,.guided-details p,.guided-credit p{font-size:15px;line-height:1.8;margin:8px 0;color:var(--muted)}
.guided-progress ul{list-style:none;padding:0;margin:14px 0 0}
.guided-progress li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.guided-progress li>span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.guided-progress li>span:last-child{text-align:right;font-size:14px}
.guided-progress small{color:var(--muted);font-size:13px}
.guided-stage{display:flex;flex-direction:column;max-width:none;min-height:calc(100svh - var(--guided-header-height,90px) - 24px);padding:22px 26px 0;margin:0 auto;text-align:center;border-radius:24px}
.guided-stage-top{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;color:var(--muted);font-size:13px}
.guided-stage-top>.guided-session-progress{text-align:left}
.guided-scope-count{text-align:right}
.guided-session-progress{margin:0;font-size:14px;font-weight:500}
.guided-stage-path{grid-column:1/-1;display:flex;justify-content:center;gap:8px;list-style:none;padding:0;margin:0 auto;width:100%;max-width:480px}
.guided-stage-path li{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;padding:6px 8px;border:1px solid transparent;border-radius:30px;color:#586952;font-size:14px;line-height:1.5}
.guided-stage-path li[aria-current]{background:#e2ecd9;border-color:#9ab28d;color:#334c40;font-weight:600}
.guided-stage-path li>span{font-size:13px}
.guided-stage h2{font-size:26px;line-height:1.45;font-weight:600;margin:18px 0;outline:none}
.guided-stage-body{display:grid;flex:1;gap:20px;align-items:center}
/* Parent notes can grow without changing the child's position in the teaching area. */
.guided-kind-learn .guided-stage-body{grid-template-columns:minmax(0,1fr);align-content:start;align-items:start;padding:12px 0 8px}
.guided-kind-learn .guided-instructions{margin-block:0}
.guided-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0}
.guided-picture{display:block;width:clamp(144px,24svh,220px);height:clamp(144px,24svh,220px);object-fit:contain}
.guided-kind-learn .guided-picture{width:clamp(120px,20svh,200px);height:clamp(120px,20svh,200px)}
.guided-stage.is-picture-task .guided-stage-body{display:flex;flex-direction:column;gap:12px}
.guided-stage.is-picture-task .guided-visual{flex:1;width:100%;min-height:0}
.guided-stage.is-picture-task .guided-instructions{margin:0 auto}
/* Use the space between the measured header and controls. Short screens may
   scroll; tall screens keep the picture and parent controls in one workspace. */
.guided-kind-recall.is-picture-task .guided-picture{--picture-size:clamp(132px,min(34svh,calc(100svh - var(--guided-header-height,90px) - var(--guided-dock-height,160px) - 236px)),340px);width:var(--picture-size);height:var(--picture-size);max-width:100%}
.guided-model{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:8px 12px;overflow-wrap:anywhere}
.guided-model strong{font-size:32px;font-weight:600;line-height:1.4}
.guided-model>span{font-size:16px;color:var(--muted);line-height:1.6}
.guided-meaning-focus{font-size:14px;color:var(--muted);margin:0}
.guided-instructions{min-width:0;max-width:640px;width:100%;margin:auto;text-align:left}
.guided-activity{padding:16px 18px;border-radius:16px;background:#f0f3e9;text-align:left}
.guided-activity p{font-size:16px;line-height:1.8;margin:0;overflow-wrap:anywhere}
.guided-activity p+p{margin-top:12px}
.guided-activity strong{display:block;font-size:14px;font-weight:600;color:#52684e;margin-bottom:4px}
.guided-activity .guided-instruction-label{font-size:14px;font-weight:600;color:#52684e;margin:0 0 10px}
.guided-context p{margin:0;overflow-wrap:anywhere}
.guided-context .guided-scene{font-size:16px;color:var(--ink);line-height:1.8}
.guided-context .guided-context-english{font-size:21px;color:var(--ink);line-height:1.5;margin-top:12px}
.guided-context .micro{font-size:14px;color:var(--muted);margin-top:6px}
.guided-details{margin-top:12px;border-top:1px solid #d4decc}
.guided-details summary{font-weight:500}
.guided-details .guided-context{padding:6px 0 12px}
.guided-category-note{font-size:14px;color:#665937;line-height:1.7;margin:12px 0 0;padding:10px 12px;background:#f7f1e3;border-radius:12px}
.guided-credit{margin-top:6px}
.guided-credit p{overflow-wrap:anywhere}
.guided-parent-note{max-width:600px;margin:0 auto;color:var(--muted);text-align:center}
.guided-parent-note summary{display:list-item;width:fit-content;min-height:44px;padding:10px 8px;margin:auto;font-size:14px;line-height:1.7;cursor:pointer}
.guided-parent-note p{font-size:15px;line-height:1.8;padding:8px 14px;margin:0 0 6px;border-radius:12px;background:#f0f3e9;text-align:left}
.guided-defer-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0 10px;margin-top:8px;padding-inline:8px}
.guided-defer-row>.button{flex:none;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--green);font-size:14px;text-decoration:underline;text-underline-offset:4px}
.guided-defer-row>span{color:var(--muted);font-size:13px;line-height:1.6}
.guided-parent-cue{margin-top:8px;text-align:center}
.guided-parent-cue .guided-word-chips{justify-content:center;margin:4px 0 12px}
.guided-live-visual{display:flex;align-items:center;justify-content:center;gap:14px;color:var(--muted)}
.guided-live-visual svg{flex-shrink:0;width:52px;height:52px;color:var(--green)}
.guided-live-visual p{font-size:16px;line-height:1.7;margin:0}
.guided-kind-understand .guided-stage-body,.guided-kind-play .guided-stage-body{max-width:640px;margin:auto}
.guided-kind-play .guided-stage-body{width:100%;align-content:center;gap:24px}
.guided-kind-play .guided-instructions>.micro{text-align:center;margin-top:12px}
.guided-kind-understand .guided-instructions{max-width:600px}
.guided-kind-recall.is-live .guided-stage-body{max-width:720px;margin:auto}
.guided-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:min(100%,540px)}
.guided-choices .button{padding:18px;min-width:0;border-width:2px;border-radius:20px}
.guided-choices .guided-picture{width:100%;height:clamp(120px,22svh,200px)}
.guided-kind-choose .guided-stage-body{gap:18px}
.guided-offscreen-card{padding:18px;background:#f0f3e9;border-radius:16px;text-align:center}
.guided-offscreen-card h3{font-size:20px;font-weight:600;margin:0 0 10px}
.guided-offscreen-card p{font-size:16px;line-height:1.8;margin:8px 0}
.guided-dock{position:sticky;z-index:20;bottom:0;margin:22px -26px 0;padding:18px 26px max(18px,env(safe-area-inset-bottom));border:0;border-top:1px solid #dce4d5;border-radius:0 0 24px 24px;background:#f7f9f2;box-shadow:none}
.guided-dock-inner{display:flex;align-items:center;justify-content:center;gap:24px;width:100%;margin:auto}
.guided-dock .button{min-height:56px;max-width:100%;font-size:17px;padding:12px 20px;line-height:1.5;border-radius:15px}
.guided-dock .button.primary{box-shadow:0 3px 0 #3e6348}
.guided-dock-choose>.button,.guided-dock-play>.button{min-width:220px}
.guided-play-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;width:100%;max-width:440px}
.guided-play-actions .button{flex:1;min-width:0;white-space:normal}
.guided-rating{border:0;padding:0;margin:0;flex:1;max-width:660px;min-width:0}
.guided-rating legend{font-size:13px;line-height:1.6;color:var(--muted);padding:0 0 6px}
.guided-rating-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.guided-rating-options.is-binary{grid-template-columns:repeat(2,minmax(0,1fr))}
.guided-rating-options .button{font-size:15px;padding:10px 12px;box-shadow:none;border:1px solid #b6c8ad;border-radius:12px;background:#fffef9;color:var(--ink);font-weight:550}
.guided-rating-options .button:disabled{opacity:.5}
.guided-help-control{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:240px}
.guided-help-control>.button{min-height:44px;font-size:14px;padding:8px 12px}
.guided-help-control>span{font-size:13px;line-height:1.6;color:var(--muted);text-align:center}
.guided-audio-status{font-size:14px;line-height:1.7;color:#5d6d58;text-align:center;margin:0 auto 12px;max-width:800px}
.guided-audio-status:empty{display:none}
.guided-error{padding:12px 16px;margin:0 auto 16px;max-width:860px;border:1px solid #be8c5e;border-radius:12px;background:#fff1df;font-size:15px;line-height:1.8;outline:none}
.guided-summary{text-align:center}
.guided-summary h2{font-size:27px;line-height:1.45;margin:16px 0;outline:none}
.guided-summary>p{color:var(--muted);font-size:16px;line-height:1.8;max-width:560px;margin:12px auto}
.guided-summary-art svg{width:64px;height:64px;margin:auto;color:var(--green)}
.guided-summary .guided-word-chips{justify-content:center;margin:18px 0}
.guided-summary-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:22px 0}
.guided-summary-actions .button{min-height:50px}
@media(min-width:900px){
 .guided-stage-top{grid-template-columns:minmax(145px,1fr) minmax(360px,480px) minmax(95px,1fr);gap:16px}
 .guided-stage-path{grid-column:2;grid-row:1}
 .guided-scope-count{grid-column:3;grid-row:1}
 .guided-kind-learn .guided-stage-body{grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:36px;min-height:300px;padding-top:clamp(24px,4svh,48px)}
 .guided-kind-learn .guided-picture{width:220px;height:220px}
 .guided-kind-learn .guided-visual{gap:14px}
 .guided-kind-learn.is-phrase .guided-visual{padding:32px 14px;background:#f1f3ea;border-radius:20px}
 .guided-kind-learn.is-phrase .guided-live-visual{flex-direction:column}
}
@media(max-width:600px){
 .guided-entry{padding:0;margin:4px 0 12px}
 .guided-shell>.content-area{padding:0 12px}
 .shell.guided-shell{--guided-page-bottom:12px}
 .guided-heading{min-height:66px;padding:8px 0;gap:8px;margin-bottom:8px}
 .guided-heading .page-title{font-size:23px}
 .guided-heading p{font-size:12px}
 .guided-header-actions{gap:5px}
 .guided-header-actions .button{font-size:13px;padding:8px;min-height:44px}
 .guided-overview,.guided-summary{padding:22px 18px}
 .guided-overview h2{font-size:25px}
 .guided-intro{font-size:15px;margin:10px 0 18px}
 .guided-today{padding:18px 0}
 .guided-start-row{display:block}
 .guided-start-row .button{width:100%;margin-top:14px}
 .guided-word-chips{gap:7px;margin-top:14px}
 .guided-word-chips>span{padding:6px 9px;font-size:14px}
 .guided-word-chips>span>span{font-size:13px}
 .guided-path{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px;margin:18px 0}
 .guided-stage{min-height:calc(100svh - var(--guided-header-height,76px) - 12px);padding:14px 14px 0}
 .guided-kind-learn{min-height:0}
 .guided-kind-learn .guided-stage-body{flex:0}
 .guided-stage-top,.guided-session-progress{font-size:13px}
 .guided-stage-top{gap:10px}
 .guided-stage-path{gap:5px}
 .guided-stage-path li{font-size:13px;padding:5px 4px;gap:4px}
 .guided-stage h2{font-size:22px;margin:16px 0}
 .guided-stage-body{gap:16px}
 .guided-kind-learn .guided-visual{gap:6px}
 .guided-model strong{font-size:30px}
 .guided-model>span{font-size:15px}
 .guided-meaning-focus{font-size:13px}
 .guided-activity{padding:14px}
 .guided-activity p,.guided-context .guided-scene{font-size:15px;line-height:1.75}
 .guided-context .guided-context-english{font-size:20px}
 .guided-live-visual{gap:10px}
 .guided-live-visual svg{width:40px;height:40px}
 .guided-live-visual p{font-size:15px}
 .guided-kind-understand .guided-visual{display:none}
 .guided-choices{gap:12px}
 .guided-choices .button{padding:12px;border-radius:18px}
 .guided-choices .guided-picture{height:140px}
 .guided-dock{margin:18px -14px 0;padding:14px 14px max(16px,env(safe-area-inset-bottom))}
 .guided-dock-inner{gap:8px;flex-wrap:wrap}
 .guided-dock .button{font-size:16px;min-height:54px;padding:11px 12px}
 .guided-play-actions{gap:10px}
 .guided-dock-understand>.button{width:100%;max-width:none;min-height:44px;padding:8px}
 .guided-dock-understand .guided-rating{flex-basis:100%}
 .guided-help-control{flex-direction:row;justify-content:space-between;max-width:none;width:100%;gap:10px}
 .guided-help-control>.button{font-size:14px;min-height:44px;flex-shrink:0;padding:8px 10px}
 .guided-help-control>span{font-size:13px;text-align:right}
 .guided-dock-recall .guided-rating{flex-basis:100%}
 .guided-rating-options{gap:6px}
 .guided-rating-options .button{font-size:14px;padding:10px 4px;min-height:48px;align-self:stretch}
 .guided-rating legend{font-size:13px}
 .guided-summary h2{font-size:24px}
 .guided-summary-actions{gap:10px}
 .guided-summary-actions .button{font-size:15px;padding:10px 14px}
}

/* The overview uses document scrolling, with its primary action kept in reach. */
.guided-overview{display:flex;flex-direction:column;min-height:calc(100svh - var(--guided-header-height,90px) - 24px);padding-bottom:0}
.guided-overview h2,.guided-settings-fold{scroll-margin-top:calc(var(--guided-header-height,90px) + 16px)}
.guided-settings-fold{border-top:1px solid var(--line);padding-top:8px}
.guided-settings-fold>summary{cursor:pointer;min-height:48px;padding:10px 0;font-weight:600;line-height:1.7}
.guided-settings-fold>summary>span{display:block;margin-left:16px;font-size:13px;font-weight:400;color:var(--muted)}
.guided-settings-fold .guided-settings-embedded{border:0;margin:0;padding-top:12px}
.guided-settings-fold .guided-settings-embedded h3{display:none}
.guided-overview-actions{position:sticky;bottom:0;z-index:5;display:flex;justify-content:center;margin:auto -28px 0;padding:16px 24px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--white);border-radius:0 0 24px 24px}
.guided-overview-actions .button{width:min(100%,280px);min-height:52px}
@media(max-width:600px){
 .guided-overview{padding-bottom:0}
 .guided-overview-actions{margin-inline:-18px;padding-inline:18px}
 .guided-defer-row{justify-content:flex-start}
}

/* Leaving the module is secondary to continuing the current learning plan. */
.guided-header-actions :is([data-course="guided-exit"],[data-action="letter-guided-exit"]){border-color:transparent;background:transparent;box-shadow:none;font-weight:400;color:var(--muted)}
.guided-header-actions :is([data-course="guided-exit"],[data-action="letter-guided-exit"]):hover{background:var(--pale);color:var(--ink)}

/* Keep the select's native sizing and popup anchor; hide only its label. */
.word-page>.word-topic-select select{appearance:auto;-webkit-appearance:auto;padding-right:12px}
.word-page>.word-topic-select::after{display:none}
@media(max-width:360px){
 .guided-heading{gap:4px}
 .guided-heading .page-title{font-size:21px}
 .guided-heading p{font-size:11px;white-space:nowrap}
 .guided-header-actions{gap:2px}
 .guided-header-actions .button{font-size:12px;padding-inline:6px;white-space:nowrap}
 .guided-stage-top,.guided-session-progress{font-size:12px}
}
@media(max-width:360px){
 .guided-stage h2{margin-block:12px}
}
/* Settings follow their scope: learning controls in the module, shared care here. */
.letter-settings-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.letter-settings-page>.panel{margin:0;padding:28px;border-radius:24px}
.letter-settings-page .micro{line-height:1.8}
.letter-settings-page .select-letters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:20px 0}
.letter-settings-page .select-letters button{min-height:48px;min-width:0;padding:8px;font-size:20px;border-radius:12px}
.letter-settings-page .range-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.letter-settings-page .range-buttons button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.letter-settings-page .settings-footnote{grid-column:1/-1;color:var(--muted);padding:0 4px}
.settings-heading{align-items:flex-start;gap:16px}
.settings-heading>.button,.letters-page>.library-head>.button{flex-shrink:0;min-height:44px}
.parent-settings-grouped{display:grid;gap:32px;max-width:960px}
.parent-setting-group>header{margin:0 4px 14px}
.parent-setting-group>header h2{font-size:21px;font-weight:600;margin:0 0 6px}
.parent-setting-group>header p{font-size:14px;line-height:1.7;color:var(--muted)}
.parent-setting-group>.panel,.parent-device-grid>.panel{margin:0;padding:26px;border-radius:22px}
.parent-device-grid{display:grid;gap:16px}
.parent-settings-grouped .panel h2{font-size:18px;margin-top:0}
.parent-settings-grouped .micro{line-height:1.8}
@container garden-content (max-width:900px){
 .letter-settings-page{grid-template-columns:minmax(0,1fr);gap:18px;max-width:680px;margin:auto}
}
@media(max-width:600px){
 .letter-settings-page>.panel,.parent-setting-group>.panel,.parent-device-grid>.panel{padding:20px 16px}
 .letter-settings-page .select-letters{gap:6px}
 .letter-settings-page .select-letters button{min-height:44px}
 .parent-settings-grouped{gap:26px}
 .settings-heading .subtitle{font-size:13px}
}
@media(max-width:400px){
 .letter-settings-page .select-letters{grid-template-columns:repeat(5,minmax(0,1fr))}
}
/* Module-level settings stay beside the title, above activity controls. */
.letters-page>.library-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 16px;margin-bottom:20px}
.letters-page>.library-head>div{display:contents}
.letters-page>.library-head .page-title{grid-column:1;grid-row:1;margin:0}
.letters-page>.library-head>.button{grid-column:2;grid-row:1}
.letters-page>.library-head .subtitle{grid-column:1/-1;grid-row:2;margin:0}
.button.module-settings-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 13px;border:1px solid var(--line);border-radius:12px;background:transparent;box-shadow:none;font-size:14px;font-weight:500;white-space:nowrap}
.button.module-settings-button svg{width:18px;height:18px}
.button.module-settings-button:hover{background:var(--pale)}
@media(max-width:600px){
 .letters-page>.library-head{gap:8px 10px;margin-bottom:18px}
 .letters-page>.library-head .page-title{font-size:24px}
 .button.module-settings-button{padding-inline:10px;font-size:13px}
}

/* One outer page width; explanatory prose keeps a readable line length. */
.guided-overview .guided-parent-help p,.guided-overview .guided-policy-notice{max-width:760px}
.toast.has-action{width:max-content;max-width:calc(100vw - 32px);display:flex;align-items:center;gap:16px;padding:10px 14px 10px 18px}
.toast.show.has-action{pointer-events:auto}
.toast.has-action>span{min-width:0}
.toast.has-action>button{flex:none;min-height:44px;padding:8px 12px;border:1px solid #ffffff70;border-radius:10px;background:#ffffff12;color:#fffdf6;font:inherit;font-weight:600}
.toast.has-action>button:hover{background:#ffffff25}

/* The guided entry belongs to the letter activities, across free-play tabs. */
.letter-activity-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.letter-tools>.letter-activity-bar{margin:0;flex:1}
.letter-activity-bar .gl-entry .button{min-height:44px;padding:10px 18px;border-radius:14px;box-shadow:none;font-size:14px}
@media(max-width:600px){.letter-activity-bar{align-items:stretch}.letter-activity-bar .activity-switch{flex:1;min-width:200px}.letter-activity-bar .gl-entry{display:flex;align-items:center}.letter-tools>.letter-activity-bar{width:100%}}
