:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#203452;background:#f4f7fc}*{box-sizing:border-box}body{margin:0}header{background:white;padding:24px max(5%,calc((100% - 1000px)/2));display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5ebf5;gap:24px}a{color:inherit;text-decoration:none}b{color:#2358bd;font-size:23px}b span{display:block;font-size:12px;font-weight:400;color:#7e8da5;margin-top:7px}nav{display:flex;gap:24px;font-size:14px}main{max-width:1000px;margin:46px auto;padding:0 22px}h1{font-size:34px;letter-spacing:-1px}h2{font-size:24px}p,.muted{color:#718097;line-height:1.8}.card{background:white;border:1px solid #e2e9f3;border-radius:20px;padding:28px;margin:20px 0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid .card{margin:0}button,.button{border:0;border-radius:10px;background:#2965d6;color:white;padding:13px 23px;font:inherit;cursor:pointer;display:inline-block}button.secondary{background:#edf3ff;color:#285cb3}input,select,textarea{font:inherit;border:1px solid #d4deec;border-radius:10px;padding:13px;background:white;color:#203452;max-width:100%}input,textarea{width:100%;margin:8px 0}label{display:block;margin:12px 0}select{margin:5px 10px 5px 0}.practice{text-align:center;max-width:720px;margin:auto}.practice h1{font-size:42px;margin:48px 0 30px}.practice input{font-size:24px;padding:20px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.good{color:#188454}.bad{color:#c64040}.feedback{min-height:40px;padding:12px}progress{width:100%;accent-color:#2965d6;height:9px}table{width:100%;border-collapse:collapse}td,th{padding:14px 8px;text-align:left;border-bottom:1px solid #edf0f6}.scroll{overflow:auto}small{color:#718097}.tag{background:#eaf1ff;color:#3165bc;border-radius:30px;padding:8px 14px}.hero{padding:16px 0 22px}.number{font-size:32px;font-weight:bold;color:#285fc7}footer{font-size:12px;color:#8793a8;margin:28px 0}@media(max-width:650px){header{padding:20px;align-items:flex-start;flex-direction:column;gap:20px}nav{gap:22px}main{margin:24px auto;padding:0 16px}.grid{grid-template-columns:1fr}.card{padding:22px}h1{font-size:28px}.practice h1{font-size:34px}button{padding:13px 18px}}
/* Sage garden theme */
:root{color:#304b41;background:#f4f6ee}body{background:radial-gradient(ellipse at 6% 12%,#dfe9d8aa,transparent 48%),radial-gradient(ellipse at 95% 70%,#f2e4df88,transparent 42%),#f7f8f1;min-height:100vh}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2382967a' opacity='.17' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");z-index:-1}header{background:#fcfdf7e8;border-color:#dfe6d7;backdrop-filter:blur(16px)}b{color:#41644c;font-family:Georgia,"Microsoft YaHei",serif;letter-spacing:-.6px}b span{color:#8b9a80;letter-spacing:1px}nav a{color:#60765f;padding:8px 0}nav a:hover{color:#315b3b}main{max-width:1080px;margin-top:30px}.hero{position:relative;min-height:335px;padding:60px 38px 40px;border-radius:28px;background:#eaf0df url('/kitten-hero.png') center/cover no-repeat;overflow:hidden;border:1px solid #e0e6d6;box-shadow:0 12px 36px #536b3e0a}.hero h1{position:relative;max-width:65%;font-size:36px;font-weight:650;line-height:1.4;letter-spacing:-1.2px;color:#36513b}.hero p{position:relative;max-width:53%;font-size:14px;line-height:1.9;color:#728269}.tag{background:#fffdf0d9;color:#617a4c;border:1px solid #dce5ca;font-size:12px;letter-spacing:1px}.card{background:linear-gradient(135deg,#fffffcfa,#fafcf4f5);border:1px solid #e0e7d8;border-radius:22px;box-shadow:0 7px 25px #465e3807,inset 0 1px 0 #fff}.grid .card{padding:29px;position:relative;overflow:hidden}.grid .card:after{content:'✧';position:absolute;right:24px;top:18px;font-size:45px;color:#dce7cf;pointer-events:none}.grid .card:nth-child(2){background:linear-gradient(135deg,#fffdf8,#faf5ee)}.grid .card:nth-child(3){background:linear-gradient(135deg,#fcfdfb,#eff5ed)}h2{font-weight:600;color:#3f5b43}p,.muted,small{color:#7e8b75}button,.button{background:#64865a;color:#fffef4;border:1px solid #5c7d52;border-radius:13px;box-shadow:0 4px 10px #56744514;transition:background .15s,transform .15s}button:hover,.button:hover{background:#4e7146;transform:translateY(-1px)}button.secondary{background:#edf2e6;color:#5b7650;border:1px solid #dce5d1;box-shadow:none}input,select,textarea{border-color:#dce4d2;color:#41553d;background:#fffffb;border-radius:12px}input:focus,select:focus,textarea:focus{outline:3px solid #bdd1a64d;border-color:#87a674}.number{color:#658656}progress{accent-color:#789b64}th{color:#5d7552;font-weight:500}td,th{border-color:#e7ecdf}.practice>.card{background:linear-gradient(160deg,#fffffc,#f7faf1);box-shadow:0 14px 45px #4b653b0a}.practice h1{color:#3d573d}.practice>small{color:#8a977e}.good{color:#388053}.bad{color:#ba6065}footer{color:#929d87}.hero+.card{margin-top:24px}.grid .card small{font-size:10px;letter-spacing:2px}.grid .card h2{margin-top:22px}.grid .card p{font-size:13px;margin-bottom:24px}nav a:focus-visible,button:focus-visible,.button:focus-visible{outline:3px solid #9bb783;outline-offset:4px}@media(max-width:650px){.hero{min-height:390px;padding:26px 23px;background-position:64% center;background-size:auto 100%}.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#edf2e8e8 0%,#edf2e8bc 44%,transparent 80%)}.hero h1{font-size:28px;max-width:75%;margin-top:30px}.hero p{max-width:66%;font-size:13px}.hero .tag{position:relative}.grid{gap:12px}.grid .card{padding:25px}.grid .card h2{margin-top:16px}.grid .card p{margin-bottom:16px}.practice h1{font-size:32px}header{gap:16px}nav{font-size:13px}main{margin-top:20px}}
.word-blanks{display:flex;flex-wrap:wrap;justify-content:center;gap:18px 14px;margin:26px 0}.word-slot{width:105px;margin:0}.practice .word-slot input{width:100%;border:0;border-bottom:2px solid #88a17b;border-radius:0;background:transparent;text-align:center;font-size:22px;padding:8px 3px;margin:0;box-shadow:none}.word-slot span{display:block;font-size:11px;color:#94a18b;margin-top:7px}.word-count{font-size:13px}.practice .word-slot input:focus{outline:none;border-bottom-color:#39623c;background:#edf3e6}.word-slot:focus-within span{color:#39623c}@media(max-width:650px){.word-slot{width:85px}.word-blanks{gap:16px 10px}.practice .word-slot input{font-size:20px}}
.grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.grid{grid-template-columns:1fr}}
.word-hint{width:162px;margin:24px auto 12px;padding:8px;background:#fbfcf6;border:1px solid #e0e7d8;border-radius:24px;box-shadow:0 8px 20px #536b3e0c}.hint-art{width:144px;height:144px;border-radius:18px;background-image:url('/word-hints.png');background-size:400% 400%;background-repeat:no-repeat}.word-hint figcaption{font-size:11px;letter-spacing:2px;color:#819574;margin:8px 0 4px}.practice .word-hint+.question-title{margin-top:18px;margin-bottom:20px}.hint-pending{font-size:12px;color:#8b9781;margin:20px auto 0}@media(max-width:650px){.word-hint{width:142px}.hint-art{width:124px;height:124px}}
.hint-gallery{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.hint-gallery .word-hint{margin:12px}
.practice .word-slot input.word-correct{border-bottom-color:#44815a;background:#edf6ee}.practice .word-slot input.word-incorrect{border-bottom:3px dashed #ba6065;background:#fff0ef}
.header-tools{display:flex;align-items:center;gap:24px}.top-grade-label{display:flex;align-items:center;gap:8px;font-size:11px;color:#7e8b75;margin:0}.top-grade-label select{font-size:12px;padding:9px 24px 9px 10px;margin:0;background:#f1f5e9;border-color:#dce5d1;border-radius:24px;max-width:190px}.hero{margin-bottom:24px}@media(max-width:850px){.header-tools{align-items:flex-end;flex-direction:column;gap:12px}nav{gap:14px}}@media(max-width:650px){.header-tools{width:100%;align-items:flex-start;gap:14px}.top-grade-label{align-self:flex-end}header{gap:8px}.top-grade-label select{max-width:180px}}
.practice #answer{display:block;width:min(100%,340px);margin:18px auto;text-align:center;padding:15px 18px;font-size:24px}
.reading-tools{display:flex;justify-content:center;align-items:center;gap:24px;margin:24px 0 0}.read-button{background:#eef3e7;color:#607c52;border:1px solid #dde6d2;border-radius:30px;padding:8px 16px;font-size:13px;box-shadow:none}.read-button:hover{background:#e0ebd5;color:#365d3a}.auto-read{display:inline-flex;align-items:center;gap:9px;position:relative;margin:0;font-size:12px;color:#7b8d70;cursor:pointer}.auto-read input{position:absolute;right:0;width:44px;height:26px;opacity:0;margin:0;cursor:pointer}.capsule-track{display:block;width:44px;height:26px;border-radius:20px;background:#dce3d5;border:1px solid #d0dac8;transition:background .18s;pointer-events:none}.capsule-track:after{content:'';display:block;width:18px;height:18px;border-radius:50%;background:#fffef8;box-shadow:0 2px 4px #41553522;transform:translate(3px,3px);transition:transform .18s}.auto-read input:checked+.capsule-track{background:#739563;border-color:#739563}.auto-read input:checked+.capsule-track:after{transform:translate(21px,3px)}.auto-read input:focus-visible+.capsule-track{outline:3px solid #aec795;outline-offset:3px}#read-status{display:block;font-size:11px;margin-top:8px;min-height:0}#read-status:empty{display:none}.practice .reading-tools~.question-title{margin-top:26px}
.kitten-journey{margin:26px 0 4px;padding-top:10px}.journey-path{position:relative;height:7px;margin:0 35px 0 27px;background:#e4eadc;border-radius:12px;box-shadow:inset 0 1px 2px #536b3e10}.journey-fill{height:100%;background:linear-gradient(90deg,#adc791,#739563);border-radius:12px;transition:width .45s ease}.kitten-marker{position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2;transition:left .45s ease}.kitten-face{display:block;width:43px;height:43px;border:2px solid #fffdf5;border-radius:50%;background:#f7f8f1 url('/kitten-journey.png') left center/200% 100% no-repeat;box-shadow:0 3px 8px #52683e26}.kitten-home{position:absolute;right:-30px;top:50%;transform:translateY(-56%);width:62px;height:62px;background:url('/kitten-journey.png') right center/200% 100% no-repeat;border-radius:16px}.journey-caption{margin-top:25px;color:#8b9b7d;font-size:11px;letter-spacing:.5px}.arrived .kitten-marker{transform:translate(-40%,-30%) scale(.66)}.arrived .journey-caption{color:#648653}.arrived .kitten-home{box-shadow:0 0 0 4px #dceacb77}.practice .kitten-journey+.reading-tools{margin-top:22px}@media(prefers-reduced-motion:reduce){.kitten-marker,.journey-fill{transition:none}}@media(max-width:650px){.kitten-face{width:38px;height:38px}.kitten-home{width:54px;height:54px;right:-26px}.journey-path{margin-right:28px}.journey-caption{font-size:10px}}
.practice #answer{width:min(100%,250px);min-height:72px;padding:20px 16px;border-radius:16px;font-size:27px;line-height:1.2}
.practice .back-home-button{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;min-height:46px;font-size:14px;font-weight:500;border-radius:13px;text-decoration:none;color:#fffef4;background:#64865a;border:1px solid #5c7d52;box-shadow:0 4px 10px #56744514}.practice .back-home-button:hover{background:#4e7146}.practice>.row{margin-bottom:18px}@media(max-width:650px){.practice .back-home-button{padding:11px 16px;min-height:44px;font-size:13px}}
.parent-panel{max-width:660px;margin:24px auto}.parent-panel hr{border:0;border-top:1px solid #e0e7d8;margin:28px 0}.parent-panel form{margin-top:24px}.parent-panel #parent-pass{max-width:300px;display:block}
.parent-shell{display:grid;grid-template-columns:190px minmax(0,1fr);gap:26px;align-items:start}.parent-sidebar{position:sticky;top:24px;background:linear-gradient(160deg,#fdfef8,#ecf2e4);border:1px solid #dce5d1;border-radius:22px;padding:24px 15px;box-shadow:0 8px 24px #536b3e08}.parent-sidebar-title{font-size:20px;color:#45613e;padding:0 12px 22px;font-weight:600}.parent-sidebar-title small{display:block;font-size:11px;font-weight:400;margin-top:7px}.parent-sidebar nav{display:flex;flex-direction:column;gap:7px}.parent-sidebar nav a{display:block;font-size:14px;padding:13px 15px;border-radius:12px;color:#718368}.parent-sidebar nav a:hover{background:#e4eddb}.parent-sidebar nav a.active{background:#64865a;color:#fffef4;box-shadow:0 4px 12px #536b3e16}.parent-sidebar>button{width:100%;font-size:12px;margin-top:28px}.parent-content{min-width:0}.parent-content>.card:first-child{margin-top:0}.parent-content .parent-panel{margin-top:0;max-width:none}.parent-content>h1{margin-top:0}.parent-content table button{font-size:12px;padding:9px 12px}.parent-content #parent-password{margin-top:0}@media(max-width:650px){.parent-shell{grid-template-columns:1fr;gap:18px}.parent-sidebar{position:static;padding:16px}.parent-sidebar-title{padding-bottom:12px;font-size:17px}.parent-sidebar nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px}.parent-sidebar nav a{font-size:12px;padding:10px 12px}.parent-sidebar>button{width:auto;margin-top:14px;padding:8px 13px}.parent-sidebar-title small{display:none}}
.mistake-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:16px 20px}.mistake-filters .tag{margin-left:auto;font-size:11px}.mistake-day{margin:26px 0 34px}.mistake-day-heading{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid #dfe7d5;padding-bottom:10px}.mistake-day-heading h2{font-size:18px;margin:0}.mistake-day-heading small{font-size:12px}.mistake-type{font-size:12px;font-weight:500;color:#809371;letter-spacing:1px;margin:18px 0 10px}.mistake-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mistake-item{background:#fffff9;border:1px solid #e0e7d8;border-radius:14px;padding:15px 16px;min-width:0;box-shadow:0 3px 10px #536b3e05}.mistake-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:13px;line-height:1.6}.mistake-item-top>span{overflow-wrap:anywhere}.mistake-item-top small{white-space:nowrap;font-size:10px;color:#b18672;background:#f8f0e9;border-radius:20px;padding:2px 7px}.mistake-answer{margin-top:8px;font-size:17px;color:#57734d;font-weight:500;overflow-wrap:anywhere;line-height:1.5}.sentence-mistakes{grid-template-columns:repeat(2,minmax(0,1fr))}.sentence-mistakes .mistake-answer{font-size:14px}@media(max-width:900px){.mistake-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.mistake-grid{gap:8px}.mistake-item{padding:12px}.mistake-item-top{display:block;font-size:12px}.mistake-item-top small{display:inline-block;margin-top:6px}.mistake-answer{font-size:15px}.sentence-mistakes{grid-template-columns:1fr}.mistake-filters .tag{margin-left:0}}
.photo-row{display:grid;grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) 36px;gap:8px;align-items:center;margin:8px 0}.photo-row .photo-select{width:18px}.photo-row button{padding:8px}.photo-row input{font-size:14px}#photo-recognize{margin-top:16px}#photo-results details{color:#809371;margin-bottom:18px}@media(max-width:650px){.photo-row{grid-template-columns:20px minmax(0,1fr) 32px}.photo-cn{grid-column:2}.photo-en{grid-column:2;grid-row:auto}.photo-remove{grid-column:3;grid-row:1 / span 2}.photo-select{grid-row:1 / span 2}}
#bank-toggle{margin:4px 0 10px}#bank-content[hidden]{display:none}#bank-content{margin-top:12px}
.learning-history>h1{font-size:28px;margin-bottom:20px}.learning-history>.card{padding:16px 20px;margin:16px 0;border-radius:16px}.learning-history>.card select{font-size:13px;padding:10px 12px}.learning-history>.grid{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.learning-history>.grid>.card{padding:18px 20px;border-radius:16px;font-size:12px;box-shadow:0 4px 14px #536b3e06}.learning-history .number{font-size:24px;line-height:1.4;margin-top:8px}.learning-history>.grid>.card p{font-size:11px;margin:5px 0 0}.learning-history h2{font-size:18px;margin:4px 0 14px}.learning-history table{font-size:13px}.learning-history td,.learning-history th{padding:11px 8px}.learning-history th{font-size:12px}@media(max-width:650px){.learning-history>h1{font-size:25px}.learning-history>.grid{gap:8px}.learning-history>.grid>.card{padding:14px 10px;font-size:11px}.learning-history .number{font-size:19px}.learning-history>.card{padding:15px}.learning-history td,.learning-history th{padding:10px 6px;font-size:12px}}
.theme-select{display:inline-block;position:relative;vertical-align:middle;margin:5px 10px 5px 0;max-width:100%}.native-select-hidden{display:none!important}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(160deg,#fffffb,#f3f6ed);border:1px solid #dce5d2;color:#526b49;border-radius:13px;padding:12px 15px;min-height:46px;font-size:14px;box-shadow:0 2px 5px #536b3e05,inset 0 1px 0 #fff;white-space:nowrap;width:100%}.select-trigger:after{content:'';width:6px;height:6px;border-right:1.5px solid #7b936c;border-bottom:1.5px solid #7b936c;transform:rotate(45deg);margin:-3px 2px 0 6px;flex-shrink:0}.select-trigger:hover,.select-trigger[aria-expanded=true]{background:#eef4e6;border-color:#adc39a;color:#3f603b;transform:none;box-shadow:0 0 0 3px #acc5911a}.select-trigger:disabled{opacity:.5;cursor:default}.select-menu{position:absolute;left:0;top:calc(100% + 7px);z-index:1000;min-width:100%;width:max-content;max-width:min(320px,85vw);max-height:300px;overflow:auto;background:#fffffb;border:1px solid #dce5d2;border-radius:16px;padding:6px;box-shadow:0 14px 40px #344b3226,0 3px 8px #344b3208}.select-menu[hidden]{display:none}.select-option{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;text-align:left;background:transparent;color:#697c5f;border:0;box-shadow:none;border-radius:10px;padding:11px 13px;font-size:13px;white-space:normal}.select-option:hover,.select-option:focus-visible{background:#f0f5e9;color:#3e6237;transform:none;outline:none}.select-option[aria-selected=true]{background:#e8f0de;color:#486d3d;font-weight:600}.select-option[aria-selected=true]:after{content:'✓';font-size:12px;color:#668953}.select-menu.opens-up{top:auto;bottom:calc(100% + 7px)}.top-grade-label .theme-select{margin:0}.top-grade-label .select-trigger{border-radius:24px;font-size:12px;padding:9px 13px;min-height:36px}.mistake-filters .theme-select{margin:0}.learning-history .select-trigger{font-size:13px;padding:10px 12px}.parent-content .select-trigger{font-size:13px}.parent-content .scroll{position:relative}@media(max-width:650px){.select-trigger{font-size:13px;min-height:44px;padding:11px 12px}.select-menu{max-height:240px}.select-option{min-height:44px}.top-grade-label .select-trigger{font-size:11px}}
.bank-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bank-actions a.secondary{background:#edf2e6;color:#5b7650;border-color:#dce5d1;box-shadow:none}.photo-back-link{display:inline-block;color:#64865a;font-size:13px;margin-bottom:18px}
.bank-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}.bank-section-head small{font-size:10px;letter-spacing:1.8px;color:#98a48b}.bank-section-head h2{font-size:21px;margin:7px 0 0}.bank-filter-row{margin-bottom:8px}.bank-existing>.row p{font-size:13px;margin:8px 0}.bank-existing #bank-toggle{margin:0}.bank-import-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:18px}.bank-import-method{padding:22px;background:#f6f8f0;border:1px solid #e1e8d8;border-radius:16px;min-width:0}.bank-method-label{font-size:10px;letter-spacing:1px;color:#8b9c7c}.bank-import-method h3{font-size:18px;font-weight:600;color:#4c6842;margin:10px 0}.bank-import-method p{font-size:12px;line-height:1.9;margin:0 0 20px}.bank-import-method .button,.bank-import-method button{font-size:12px;padding:11px 14px}.bank-csv-label{font-size:12px;color:#6f835f;margin:18px 0 8px}.bank-csv-label input{font-size:12px;padding:10px;background:#fffffb}.bank-import-method>small{font-size:10px;line-height:1.7;display:block;color:#97a28b}@media(max-width:850px){.bank-import-grid{grid-template-columns:1fr}.bank-import-method{padding:20px}}@media(max-width:650px){.bank-section-head h2{font-size:19px}.bank-section-head{margin-bottom:16px}.bank-create,.bank-existing{padding:20px}}
#editor .compact-editor{position:relative;max-width:560px;margin:20px auto;padding:24px;border-radius:18px;box-shadow:0 8px 26px #536b3e0b}#editor .compact-editor h2{font-size:20px;margin:0 40px 20px 0}#editor .compact-editor label{font-size:12px;margin:12px 0;color:#6c805f}#editor .compact-editor input{font-size:14px;padding:10px 12px;min-height:42px;margin:6px 0 0;border-radius:10px}#editor .compact-editor>button:not(.editor-close){font-size:13px;padding:11px 20px;margin-top:8px}#editor .editor-close{position:absolute;right:16px;top:16px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid #dfe7d7;border-radius:50%;background:#f1f5e9;color:#7b8f6c;font-size:22px;line-height:1;box-shadow:none}#editor .editor-close:hover{background:#e5eddc;color:#405f38;transform:none}@media(max-width:650px){#editor .compact-editor{padding:20px;margin:18px 0}#editor .compact-editor h2{font-size:18px}}
.word-slot .grammar-hint{font-size:10px;color:#829773;background:#edf3e6;border-radius:6px;padding:4px 5px;margin:0 0 7px;min-height:23px;white-space:nowrap;letter-spacing:0}.word-blanks{align-items:flex-end}
.word-slot .word-gloss{font-size:10px;color:#7b8f6f;line-height:1.5;min-height:30px;margin:7px -3px 0;overflow-wrap:anywhere}.word-slot{align-self:stretch}.word-blanks{align-items:stretch}
/* Spacious learning stage; parent and home layouts retain their current frame. */
main.practice-stage{max-width:1280px;padding:0 36px;margin:24px auto}.practice-stage .practice{max-width:1120px}.practice-stage .practice>.card{padding:28px 42px;border-radius:26px;margin-top:18px}.practice-stage .practice>.row{font-size:16px;margin-bottom:12px}.practice-stage .practice>.card>.row small{font-size:14px}.practice-stage .practice .question-title{font-size:clamp(34px,3.4vw,50px);line-height:1.45;margin:25px 0 18px;letter-spacing:.2px}.practice-stage .practice>.card>p{font-size:17px;margin:12px 0}.practice-stage .practice .word-count{font-size:15px;margin:14px 0 20px}.practice-stage .word-blanks{gap:20px 18px;margin:22px 0 12px}.practice-stage .word-slot{width:130px}.practice-stage .word-slot .grammar-hint{font-size:13px;padding:6px 5px;min-height:30px;white-space:normal;line-height:1.4}.practice-stage .practice .word-slot input{font-size:30px;min-height:60px;padding:10px 4px;border-bottom-width:3px}.practice-stage .word-slot .word-gloss{font-size:14px;min-height:36px;line-height:1.6;margin-top:10px}.practice-stage .feedback{font-size:16px;min-height:44px;padding:10px}.practice-stage #answerform>button{font-size:17px;padding:14px 28px;min-height:50px}.practice-stage .practice #answer{width:min(100%,300px);min-height:76px;font-size:30px}.practice-stage .reading-tools{margin-top:18px;gap:24px}.practice-stage .read-button{font-size:15px;padding:10px 20px}.practice-stage .auto-read{font-size:14px}.practice-stage .journey-caption{font-size:12px;margin-top:23px}.practice-stage .kitten-journey{margin-top:22px}.practice-stage .practice>.card>label{font-size:14px;margin:16px 0 0}.practice-stage .practice>small{font-size:13px}.practice-stage .practice .kitten-face{width:48px;height:48px}.practice-stage .practice .kitten-home{width:66px;height:66px}.practice-stage .practice .back-home-button{font-size:15px;padding:12px 20px}@media(min-width:1500px){main.practice-stage{max-width:1400px}.practice-stage .practice{max-width:1220px}}@media(max-width:850px){main.practice-stage{padding:0 24px}.practice-stage .practice>.card{padding:26px}.practice-stage .word-slot{width:112px}.practice-stage .word-blanks{gap:18px 14px}}@media(max-width:650px){main.practice-stage{padding:0 14px;margin-top:20px}.practice-stage .practice>.card{padding:22px 16px;border-radius:20px}.practice-stage .practice>.row{font-size:13px;gap:12px}.practice-stage .practice .question-title{font-size:32px;margin-top:22px}.practice-stage .practice>.card>.row small{font-size:12px}.practice-stage .word-slot{width:96px}.practice-stage .word-slot .grammar-hint{font-size:11px;min-height:27px}.practice-stage .word-slot .word-gloss{font-size:12px}.practice-stage .practice .word-slot input{font-size:25px;min-height:52px}.practice-stage .word-blanks{gap:14px 12px}.practice-stage .practice .word-count{font-size:12px}.practice-stage #answerform>button{font-size:15px;padding:13px 19px}.practice-stage .reading-tools{gap:18px}.practice-stage .read-button{font-size:13px}.practice-stage .auto-read{font-size:12px}.practice-stage .journey-caption{font-size:10px}.practice-stage .practice #answer{width:min(100%,260px)}.practice-stage .practice>.card>p{font-size:15px}}
/* Keep the learning controls in view by reducing space, not clipping content. */
@media(min-width:651px){.is-practicing>header{padding-top:14px;padding-bottom:14px}.is-practicing>header b{font-size:21px}.is-practicing>header b span{margin-top:4px}main.practice-stage{margin:14px auto 12px}.practice-stage .practice>.row{margin-bottom:8px}.practice-stage .practice .back-home-button{min-height:40px;padding:9px 18px;font-size:14px}.practice-stage .practice>.card{padding:18px 34px;margin:10px 0 8px}.practice-stage .kitten-journey{margin:16px 0 0;padding-top:7px}.practice-stage .journey-caption{margin-top:20px;font-size:11px;line-height:1.4}.practice-stage .reading-tools{margin-top:12px;gap:20px}.practice-stage .read-button{padding:8px 16px;font-size:14px}.practice-stage .practice .question-title{margin:16px 0 14px;font-size:clamp(32px,3vw,46px);line-height:1.3}.practice-stage .word-blanks{margin:14px 0 4px;gap:12px 14px}.practice-stage .word-slot{width:116px}.practice-stage .word-slot .grammar-hint{font-size:12px;min-height:26px;padding:4px;margin-bottom:4px}.practice-stage .practice .word-slot input{font-size:28px;min-height:50px;padding:7px 3px;line-height:1.2}.practice-stage .word-slot .word-gloss{font-size:13px;min-height:25px;margin-top:6px;line-height:1.4}.practice-stage .feedback{font-size:14px;min-height:34px;padding:6px;line-height:1.5}.practice-stage #answerform>button{font-size:16px;padding:11px 24px;min-height:44px}.practice-stage .practice #answer{min-height:66px;margin:14px auto 6px;font-size:29px;padding:16px}.practice-stage .practice>small{font-size:11px;line-height:1.4}.practice-stage.long-sentence .word-slot{width:98px}.practice-stage.long-sentence .word-blanks{gap:10px}.practice-stage.long-sentence .practice .question-title{font-size:32px;line-height:1.35}.practice-stage.long-sentence .word-slot .grammar-hint{font-size:11px}.practice-stage.long-sentence .word-slot .word-gloss{font-size:12px}}
@media(min-width:651px) and (max-height:800px){.is-practicing>header{padding-top:10px;padding-bottom:10px}main.practice-stage{margin-top:10px}.practice-stage .practice>.card{padding-top:15px;padding-bottom:15px}.practice-stage .practice .question-title{font-size:34px;margin:12px 0}.practice-stage .reading-tools{margin-top:10px}.practice-stage .word-blanks{margin-top:10px;gap:8px 12px}.practice-stage .practice .word-slot input{font-size:26px;min-height:44px;padding:5px 3px}.practice-stage .word-slot .grammar-hint{min-height:24px;font-size:11px}.practice-stage .word-slot .word-gloss{font-size:12px;min-height:23px;margin-top:4px}.practice-stage .journey-caption{font-size:10px;margin-top:18px}.practice-stage .kitten-journey{margin-top:13px}.practice-stage .practice .kitten-face{width:40px;height:40px}.practice-stage .practice .kitten-home{width:54px;height:54px}.practice-stage .feedback{min-height:30px}.practice-stage .practice>small{font-size:10px}}
@media(max-width:650px){main.practice-stage{margin-top:12px}.practice-stage .practice>.card{padding-top:18px;padding-bottom:18px;margin-bottom:8px}.practice-stage .practice .question-title{margin:16px 0}.practice-stage .reading-tools{margin-top:14px}.practice-stage .word-blanks{margin-top:14px;gap:12px 10px}.practice-stage .feedback{min-height:34px;padding:6px}.practice-stage .practice>small{font-size:10px}}
/* Use available desktop height instead of leaving the learning card shallow. */
@media(min-width:851px){main.practice-stage{max-width:1440px}.practice-stage .practice{max-width:1280px}.practice-stage .practice>.card{min-height:calc(100dvh - 210px);display:flex;flex-direction:column;padding:24px 40px}.practice-stage .practice>.card>.row{flex-shrink:0}.practice-stage .kitten-journey{flex-shrink:0;margin-top:22px}.practice-stage .reading-tools{margin-top:clamp(16px,3vh,32px)}.practice-stage .practice .question-title{font-size:clamp(40px,4vw,60px);margin:clamp(18px,3vh,36px) 0 20px;line-height:1.3}.practice-stage #answerform{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 10px;flex:1;align-content:center;padding-bottom:10px}.practice-stage #answerform>.word-blanks,.practice-stage #answerform>.feedback{flex-basis:100%}.practice-stage .practice #answer{width:min(100%,360px);min-height:90px;font-size:36px;margin:10px auto 0;flex-basis:360px}.practice-stage #answerform:has(>#answer){display:grid;grid-template-columns:auto auto;justify-content:center;align-content:center;column-gap:10px}.practice-stage #answerform>#answer{grid-column:1/-1}.practice-stage #answerform:has(>#answer)>.feedback{grid-column:1/-1}.practice-stage .feedback{min-height:44px;padding:10px;font-size:16px}.practice-stage #answerform>button{font-size:18px;padding:14px 30px;min-height:52px}.practice-stage .word-slot{width:130px}.practice-stage .practice .word-slot input{min-height:62px;font-size:32px}.practice-stage .word-slot .grammar-hint{font-size:13px;min-height:29px}.practice-stage .word-slot .word-gloss{font-size:14px;min-height:30px}.practice-stage .practice>small{display:block;margin-top:12px;font-size:12px}.practice-stage.long-sentence .word-slot{width:105px}.practice-stage.long-sentence .practice .question-title{font-size:36px}.practice-stage.long-sentence #answerform{align-content:center}}
@media(min-width:851px) and (max-height:800px){.practice-stage .practice>.card{min-height:calc(100dvh - 190px);padding:18px 32px}.practice-stage .practice .question-title{font-size:42px;margin:16px 0}.practice-stage .reading-tools{margin-top:14px}.practice-stage .practice #answer{min-height:76px;font-size:32px}.practice-stage #answerform>button{min-height:46px;font-size:16px;padding:11px 24px}.practice-stage .practice .word-slot input{min-height:48px;font-size:27px}.practice-stage .word-slot .grammar-hint{font-size:11px;min-height:24px}.practice-stage .word-slot .word-gloss{font-size:12px;min-height:24px}.practice-stage .feedback{min-height:34px;font-size:14px}.practice-stage .kitten-journey{margin-top:14px}.practice-stage .practice>small{font-size:10px;margin-top:8px}}
/* Keep question, answer and actions together as one visual unit. */
.question-workspace{width:100%;min-width:0}.practice-stage .question-workspace .question-title{margin:18px 0 24px}.practice-stage .question-workspace #answerform{flex:none;align-content:start;padding-bottom:0}.practice-stage .question-workspace #answerform:has(>#answer){display:grid;grid-template-columns:auto auto;justify-content:center;align-content:start;column-gap:12px}.practice-stage .question-workspace #answerform>#answer{margin:0 auto;grid-column:1/-1}.practice-stage .question-workspace .feedback{padding:8px;min-height:38px}.practice-stage .question-workspace #answerform>button{width:auto}
@media(min-width:851px){.question-workspace{flex:1;display:flex;flex-direction:column;justify-content:center;padding:22px 0 28px}.practice-stage .question-workspace .question-title{font-size:clamp(48px,4.5vw,72px);line-height:1.25;margin:0 0 28px}.practice-stage .question-workspace #answer{width:min(100%,390px);min-height:96px;font-size:42px;border-radius:18px}.practice-stage .question-workspace #answerform>button{font-size:20px;padding:15px 28px;min-height:56px}.practice-stage .question-workspace .word-slot input{font-size:34px;min-height:64px}.practice-stage .question-workspace .grammar-hint{font-size:14px}.practice-stage .question-workspace .word-gloss{font-size:15px}.practice-stage .question-workspace .word-blanks{margin:0 0 4px}.practice-stage.long-sentence .question-workspace .question-title{font-size:38px}.practice-stage.long-sentence .question-workspace{padding:16px 0}.practice-stage .reading-tools{margin-top:18px}}
@media(min-width:851px) and (max-height:800px){.question-workspace{padding:14px 0 18px}.practice-stage .question-workspace .question-title{font-size:48px;margin-bottom:20px}.practice-stage .question-workspace #answer{min-height:78px;font-size:36px}.practice-stage .question-workspace #answerform>button{font-size:17px;min-height:46px;padding:11px 24px}.practice-stage .question-workspace .word-slot input{font-size:28px;min-height:46px}.practice-stage .question-workspace .grammar-hint{font-size:12px}.practice-stage .question-workspace .word-gloss{font-size:13px}.practice-stage.long-sentence .question-workspace .question-title{font-size:32px;margin-bottom:16px}}
@media(max-width:850px){.question-workspace{padding:20px 0 6px}.practice-stage .question-workspace .question-title{margin:0 0 22px;font-size:38px}.practice-stage.long-sentence .question-workspace .question-title{font-size:30px}.practice-stage .question-workspace #answer{margin-top:0}.practice-stage .question-workspace .word-blanks{margin-top:0}}
/* Reserve vertical clearance for the house above the progress track. */
.practice-stage .practice .kitten-journey{margin-top:34px;padding-top:9px}.practice-stage .practice .journey-caption{margin-top:28px}.practice-stage .practice .journey-path{margin-right:40px}@media(min-width:851px) and (max-height:800px){.practice-stage .practice .kitten-journey{margin-top:29px;padding-top:7px}.practice-stage .practice .journey-caption{margin-top:24px}}@media(max-width:650px){.practice-stage .practice .kitten-journey{margin-top:28px;padding-top:7px}.practice-stage .practice .journey-caption{margin-top:25px}.practice-stage .practice .journey-path{margin-right:32px}}
.practice-modules .practice-module{padding:28px}.module-learning-status{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f1f5e9a6;border:1px solid #e1e8d7;border-radius:14px;padding:17px 18px;margin:20px 0}.practice-module .module-learning-status small{font-size:11px;letter-spacing:0}.module-total{font-size:32px;font-weight:600;color:#64865a;line-height:1.3;margin-top:5px}.module-total span{font-size:13px;font-weight:400;margin-left:7px;color:#8a9a7d}.module-count{font-size:11px;color:#819273;margin:0;display:flex;align-items:center;gap:10px}.module-count .theme-select{margin:0}.module-count .select-trigger{font-size:13px;min-height:40px;padding:9px 12px}.module-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.practice-module .module-checkin{font-size:11px;letter-spacing:0;line-height:1.5;text-align:right}.practice-module .module-checkin.checked{color:#64865a}.module-resume{margin-top:20px}@media(max-width:650px){.practice-modules .practice-module{padding:23px}.module-learning-status{padding:14px;margin:16px 0}.module-total{font-size:29px}.module-count{gap:8px}.module-bottom>button{font-size:14px;padding:12px 18px}}
.module-learning-status{align-items:flex-start}.module-count{flex-direction:column;align-items:flex-start;gap:8px;line-height:1.5}.module-learning-status>div>small{display:block;line-height:1.5}.module-total{margin-top:8px;min-height:40px;display:flex;align-items:center}.module-count>.theme-select{margin:0}.module-count .select-trigger{min-height:40px}
.module-learning-status{display:grid;grid-template-columns:1fr 1fr;align-items:start;column-gap:24px}.module-learning-status>div,.module-count{display:grid;grid-template-rows:18px 44px;row-gap:10px;align-items:center;margin:0}.module-learning-status>div>small{align-self:start}.module-total{margin:0;min-height:44px;line-height:1;display:flex;align-items:center}.module-count{justify-self:end;gap:10px;line-height:18px}.module-count .theme-select{margin:0;align-self:center}.module-count .select-trigger{min-height:44px}.module-bottom{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}.module-bottom>button{font-size:14px;padding:12px 14px;min-height:46px;white-space:nowrap}.module-resume-button{justify-self:stretch}.module-resume-button:disabled{opacity:.45;cursor:default;transform:none}.module-resume-button:disabled:hover{background:#edf2e6}@media(max-width:650px){.module-learning-status{column-gap:16px}.module-bottom>button{font-size:13px;padding:12px 10px}.module-bottom{gap:10px}}
.practice-module .module-total{font-size:24px;font-weight:500;letter-spacing:-.3px}.practice-module .module-total span{font-size:12px;margin-left:6px}@media(max-width:650px){.practice-module .module-total{font-size:23px}}
/* Compact header spacing, keeping the established logo and controls. */
body>header{padding-top:13px;padding-bottom:13px}.is-practicing>header{padding-top:10px;padding-bottom:10px}@media(max-width:650px){body>header{padding-top:12px;padding-bottom:12px;gap:8px}.header-tools{gap:10px}}
@media(min-width:851px){.practice-stage .question-workspace .question-title{font-size:clamp(56px,5vw,84px)}.practice-stage .question-workspace #answer{width:min(100%,430px);min-height:108px;font-size:48px}.practice-stage.long-sentence .question-workspace .question-title{font-size:42px}}@media(min-width:851px) and (max-height:800px){.practice-stage .question-workspace .question-title{font-size:56px}.practice-stage .question-workspace #answer{min-height:90px;font-size:42px}.practice-stage.long-sentence .question-workspace .question-title{font-size:36px}}@media(max-width:850px){.practice-stage .question-workspace .question-title{font-size:44px}.practice-stage .question-workspace #answer{font-size:34px;min-height:82px}.practice-stage.long-sentence .question-workspace .question-title{font-size:32px}}
/* Narrow the space between navigation and the home banner. */
main:has(>.hero){margin-top:12px}@media(max-width:650px){main:has(>.hero){margin-top:10px}}
/* One shared rhythm for the home-page modules. */
main:has(>.hero){--home-module-gap:20px;margin-top:var(--home-module-gap);margin-bottom:var(--home-module-gap);display:flex;flex-direction:column;gap:var(--home-module-gap)}main:has(>.hero)>.hero{margin:0}main:has(>.hero)>.practice-modules{gap:var(--home-module-gap);margin:0}main:has(>.hero)>.practice-modules>.card{margin:0}@media(max-width:650px){main:has(>.hero){--home-module-gap:16px}}
.bank-view-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.bank-view-actions .bank-clear{color:#a36c60;background:#f9f0e9;border-color:#eddcd2}.bank-clear:disabled{opacity:.45;cursor:default}.clear-bank-dialog{border:1px solid #dce5d2;border-radius:22px;padding:28px;width:min(480px,calc(100vw - 32px));color:#435c3e;background:#fffff8;box-shadow:0 20px 70px #243b3033;margin:auto}.clear-bank-dialog::backdrop{background:#253b3059;backdrop-filter:blur(4px)}.clear-bank-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.clear-bank-head h2{font-size:21px;margin:0}.dialog-close{padding:0;width:30px;height:30px;background:#edf3e5;border:0;color:#718765;font-size:22px;border-radius:50%;box-shadow:none}.clear-bank-dialog p{font-size:13px;line-height:1.9;color:#87947b;margin:18px 0}.clear-bank-dialog strong{color:#566e49;font-weight:600}.clear-bank-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.clear-bank-buttons button{font-size:13px;padding:11px 22px}.clear-bank-buttons #clear-confirm{background:#a47163;border-color:#a47163}.clear-bank-dialog #clear-error{color:#b16a5d}
