:root{--ink:#18336b;--muted:#71819b;--pink:#fb4091;--blue:#448dff;--line:#e4edf9;--bg:#edf6ff;--shadow:0 6px 22px #3154850b;--radius:22px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 'Segoe UI',Arial,sans-serif}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible{outline:3px solid #264fff;outline-offset:3px}button{border:0}.btn{border:1px solid transparent;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 17px;font-weight:700;text-decoration:none;white-space:nowrap;transition:transform .15s,box-shadow .15s;background:var(--pink);color:white;box-shadow:0 4px 12px #fb40912b}.btn:hover{transform:translateY(-1px);box-shadow:0 5px 15px #fb409136}.btn.blue{background:var(--blue);box-shadow:0 4px 12px #448dff28}.btn.orange{background:#ffab23}.btn.outline{background:white;border-color:#9fc3ff;color:#3077ed;box-shadow:none}.btn.ghost{background:#f3f7fc;color:var(--ink);box-shadow:none}.btn.danger{background:#fff0f2;color:#d44364;box-shadow:none}.btn.small{font-size:12px;padding:7px 10px;border-radius:10px}.icon-btn{border:1px solid var(--line);background:white;border-radius:12px;width:39px;height:39px;color:var(--ink);font-size:18px}.muted{color:var(--muted)}.tiny{font-size:12px}.stack{display:flex;flex-direction:column;gap:13px}.flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.spacer{flex:1}.nowrap{white-space:nowrap}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.loading{padding:20vh 20px;text-align:center;font-size:20px}.badge{display:inline-flex;gap:5px;align-items:center;padding:4px 9px;border-radius:8px;background:#ecf4ff;color:#4385df;font-size:11px;font-weight:700}.badge.pink{background:#fff0f8;color:#e7458c}.badge.green{background:#e9f8ef;color:#289d70}.badge.yellow{background:#fff7df;color:#a87619}.dot{width:8px;height:8px;background:#ff478e;border-radius:50%;display:inline-block}.page-title{margin:0;font-size:27px;letter-spacing:-.7px;line-height:1.25}h1,h2,h3,h4,p{overflow-wrap:anywhere}h3{font-size:17px}p{margin:6px 0 13px}small{color:var(--muted)}a{color:#327ce7}input,textarea,select{width:100%;border:1px solid #d8e4f3;border-radius:12px;padding:11px 12px;background:#fff;color:var(--ink);outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:#84afff;box-shadow:0 0 0 3px #448dff12}textarea{resize:vertical;min-height:100px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}label .hint{font-size:11px;color:var(--muted);font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:13px;border-top:1px solid var(--line);margin-top:5px}.form-error{color:#c23459;background:#fff0f3;border-radius:9px;padding:10px;display:none}.form-error.show{display:block}.empty{padding:42px 20px;text-align:center;color:var(--muted)}.empty .empty-icon{font-size:42px;display:block;margin-bottom:7px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}.page-head{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.page-head p{margin:5px 0 0;color:var(--muted);font-size:13px}
/* Shell */
.topbar{height:88px;background:linear-gradient(100deg,#fffdf2,#ebfaff 55%,#d7f0ff);border-bottom:1px solid #dae9f7;display:flex;align-items:center;padding:0 25px;gap:20px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);min-width:235px}.brand img{width:52px;height:52px}.brand-name{font-size:25px;letter-spacing:-1px;font-weight:900;color:var(--pink);line-height:1.15}.brand-name span{color:#3197df}.brand-tagline{font-size:10px;font-weight:600;margin-top:4px;color:#458764;letter-spacing:.2px}.top-slogan{flex:1;text-align:center;font-weight:800;color:#ed4c94;font-size:16px;line-height:1.25}.top-slogan span{display:inline-block;background:#ffffffb8;border-radius:32px;padding:12px 30px}.profile{display:flex;gap:9px;align-items:center;background:white;border:1px solid #e2edf7;padding:8px 12px;border-radius:15px;max-width:245px}.avatar{display:flex;align-items:center;justify-content:center;font-size:24px;width:38px;height:38px;background:#ffe9f3;border-radius:12px;flex-shrink:0}.profile strong{display:block;font-size:12px;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile small{display:block;font-size:10px}.bell{position:relative}.bell em{position:absolute;right:-4px;top:-4px;background:var(--pink);border:2px solid white;color:white;border-radius:20px;font-size:10px;padding:0 4px;font-style:normal}.sidebar{position:fixed;left:0;top:88px;bottom:0;width:223px;border-right:1px solid #dceaf7;background:linear-gradient(#fbfdff,#f0f8ff);padding:19px 12px 10px;z-index:10;overflow:auto;display:flex;flex-direction:column}.nav-label{padding:0 13px;margin-bottom:7px;color:#9aa9bc;font-size:9px;font-weight:800;letter-spacing:1.8px}.nav-item{width:100%;display:flex;align-items:center;gap:11px;background:transparent;color:#284372;font-weight:600;font-size:12px;text-align:left;border-radius:12px;padding:11px 13px;margin:2px 0}.nav-item .emoji{font-size:20px;width:24px;text-align:center;line-height:1}.nav-item:hover{background:#eaf2ff}.nav-item.active{background:linear-gradient(110deg,#ff328a,#ff5ba8);color:white;box-shadow:0 4px 10px #fb40912b}.sidebar-bottom{margin-top:auto;padding-top:23px}.sidebar-garden{height:105px;background:url('assets/garden.svg') 10% center/auto 105px;border-radius:15px}.sidebar-tip{background:white;border:1px dashed #c8deef;border-radius:13px;padding:11px;font-size:11px;color:#7b8da5;margin-top:10px}.main{margin-left:223px;padding:21px 25px 35px;min-height:calc(100vh - 88px);max-width:1800px}.footer{text-align:center;font-size:10px;color:#94a4bb;padding:28px 5px 0}.demo-bar{padding:9px 15px;background:#fff2c9;color:#876110;font-size:12px;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #f5e2ac}.demo-bar button{padding:4px 12px;font-size:11px}.demo-on .topbar{top:0}.mobile-menu{display:none}.hero{height:219px;border:5px solid white;border-radius:22px;background:url('assets/garden.svg') center/cover;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:var(--shadow);overflow:hidden}.hero-copy{text-align:center;padding:8px 15px;background:radial-gradient(ellipse,#fff8ffce,#fff8ff00 70%);width:70%;z-index:1}.hero h1{font-size:clamp(28px,3.5vw,47px);letter-spacing:-2px;line-height:1.15;margin:0 0 7px;color:#f82c89;text-shadow:2px 2px white,-2px -2px white,2px -2px white,-2px 2px white;font-weight:900}.hero h1 span{color:#288dee}.hero p{font-size:12px;font-weight:700;margin-bottom:13px}.hero .btn{font-size:11px;padding:9px 13px;border:2px solid white;box-shadow:0 4px 0 #ffffff90}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:17px 0 24px}.stat{background:white;border:4px solid white;border-radius:17px;display:flex;gap:12px;align-items:center;padding:12px 15px;box-shadow:var(--shadow);background:linear-gradient(110deg,#fff3fa,#ffe4f2)}.stat:nth-child(2){background:linear-gradient(110deg,#edfdf8,#d5f7ef)}.stat:nth-child(3){background:linear-gradient(110deg,#f2f8ff,#e0edff)}.stat:nth-child(4){background:linear-gradient(110deg,#fffbed,#fff0cc)}.stat-icon{font-size:33px}.stat strong{font-size:26px;line-height:1.15;display:block;font-weight:900}.stat small{font-size:10px;color:#3a5688}.stat-label{font-size:10px;font-weight:600}.section-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:17px}.section-head h2{margin:0;font-size:22px;letter-spacing:-.5px}.section-head p{margin:0;font-size:11px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.card{border:1px solid var(--line);border-radius:17px;background:white;overflow:hidden;box-shadow:var(--shadow)}.card-top{position:relative;height:155px;display:flex;align-items:center;justify-content:center;overflow:hidden}.card-top.bee{background:linear-gradient(130deg,#c5f5ad,#effdcc 50%,#9cdef8)}.card-top.fish{background:linear-gradient(135deg,#85e0f0,#b5edff 60%,#a1d0ff)}.card-top.story{background:linear-gradient(130deg,#e9dcff,#ffe8f7 65%,#d4edff)}.card-art{font-size:64px;letter-spacing:8px;filter:drop-shadow(0 8px 4px #31548519);transform:rotate(-5deg)}.card-top::before,.card-top::after{content:'✦';position:absolute;font-size:30px;color:#ffffffd9;left:13%;top:10%}.card-top::after{left:auto;right:9%;top:auto;bottom:8%;font-size:48px}.card-top .badge{position:absolute;left:10px;top:10px;background:#ffffffce;color:#34778b}.card-top .play-overlay{position:absolute;right:10px;bottom:10px;font-size:10px;padding:6px 10px;border:2px solid white}.card-body{padding:13px 15px 15px}.card-body h3{margin:0 0 4px;font-size:14px}.card-body p{color:var(--muted);font-size:11px;margin:6px 0 11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px}.card-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.card-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.filterbar{display:flex;gap:9px;align-items:center;justify-content:space-between;padding:10px;background:#f7faff;border:1px solid var(--line);border-radius:13px;margin-bottom:18px}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tab{background:transparent;color:#647797;border-radius:10px;padding:8px 12px;font-size:11px;font-weight:600}.tab.active{background:var(--pink);color:white;box-shadow:0 3px 9px #fb40912b}.search{max-width:260px;padding:9px 12px;font-size:12px;background:white}.two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:19px;margin-top:21px}.activity{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.activity:last-child{border-bottom:0}.activity-icon{background:#f0f5ff;border-radius:12px;width:39px;height:39px;display:flex;justify-content:center;align-items:center;font-size:20px;flex-shrink:0}.activity strong{font-size:12px}.activity p{font-size:11px;color:var(--muted);margin:2px 0}.quote{border-radius:17px;background:linear-gradient(120deg,#fff5dd,#fff0f5);padding:23px}.quote .big{font-size:35px}.quote h3{font-size:18px;margin:10px 0}.quote p{font-size:12px;color:#887487}
/* Tables, news, submissions */
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{background:#f6f9fe;font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#7e8fa9;padding:13px 14px;white-space:nowrap}td{padding:15px 14px;border-bottom:1px solid #edf2f8;vertical-align:middle}tr:last-child td{border-bottom:0}td strong{font-size:12px}.student-cell{display:flex;gap:10px;align-items:center}.student-cell .avatar{width:34px;height:34px;font-size:21px}code{background:#eef5ff;padding:4px 7px;border-radius:6px;color:#3f6aa1;font-size:11px}.news-card{padding:24px;border:1px solid var(--line);border-radius:17px;background:white;margin-bottom:15px}.news-card h3{margin:9px 0;font-size:18px}.news-card .pre{font-size:13px;color:#61728c}.news-date{font-size:10px;color:#8a9bb1}.note{padding:13px 16px;background:#f1f7ff;border-radius:12px;border:1px solid #e1edff;font-size:12px;color:#58759d}.note.warm{background:#fff8e9;border-color:#f9eccc;color:#8f763e}.result-card{padding:20px;border:1px solid var(--line);border-radius:16px;background:white;margin-bottom:14px}.score{background:#f0f8ff;color:#3f8cf0;padding:8px 13px;border-radius:12px;font-size:23px;font-weight:800}.review-box{background:#fff3f8;border-left:3px solid #ff6aa6;padding:13px;border-radius:9px;margin-top:14px;font-size:12px}.stars{color:#f1b02f;letter-spacing:2px}.chip{border-radius:99px;background:#f2f7ff;color:#6480a6;padding:5px 10px;font-size:11px}.file-tag{display:inline-flex;gap:7px;align-items:center;padding:8px 12px;background:#eff6ff;border-radius:10px;font-size:12px;max-width:100%;overflow-wrap:anywhere;white-space:normal}.media{width:100%;border-radius:13px;max-height:400px;background:#172d4d;margin:12px 0}.media.audio{background:#f3f7ff;min-height:55px}.article{background:#f7faff;border:1px solid var(--line);padding:20px;border-radius:13px;font-size:15px;line-height:1.85;max-height:400px;overflow:auto}
/* Chat */
.chat-layout{display:grid;grid-template-columns:240px 1fr;border:1px solid var(--line);border-radius:19px;background:white;overflow:hidden;min-height:530px}.chat-contacts{border-right:1px solid var(--line);padding:12px;background:#fbfdff;max-height:600px;overflow:auto}.contact{display:flex;gap:9px;align-items:center;background:transparent;text-align:left;width:100%;border-radius:12px;padding:12px 10px;color:var(--ink);margin-bottom:5px}.contact.active{background:#fff0f7}.contact strong{font-size:12px;display:block}.contact small{font-size:10px;display:block}.contact .avatar{width:32px;height:32px;font-size:20px}.chat-pane{display:flex;flex-direction:column;min-width:0}.chat-header{padding:16px 20px;border-bottom:1px solid var(--line);font-weight:700;font-size:13px}.chat-messages{padding:23px;display:flex;flex-direction:column;gap:13px;height:380px;overflow:auto;background:radial-gradient(#e4eefc 1px,transparent 1px) 0 0/22px 22px}.bubble{background:white;box-shadow:0 2px 8px #17366b09;border:1px solid var(--line);border-radius:15px 15px 15px 3px;padding:11px 14px;max-width:83%;align-self:flex-start;font-size:13px}.bubble.mine{background:#fff0f7;border-color:#ffe3f0;border-radius:15px 15px 3px 15px;align-self:flex-end}.bubble small{font-size:9px;display:block;margin-top:5px}.chat-compose{padding:13px;display:flex;gap:10px;border-top:1px solid var(--line)}.chat-compose textarea{min-height:48px;height:48px;max-height:140px;font-size:12px}.chat-compose .btn{align-self:flex-end}
/* Login */
.login-page{min-height:100vh;background:radial-gradient(ellipse at top left,#fff4d9,transparent 50%),radial-gradient(ellipse at bottom right,#ffdff0,transparent 50%),#eaf7ff;padding:30px}.login-top{display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:auto}.login-top .chip{background:white}.login-layout{max-width:1130px;margin:55px auto 30px;display:grid;grid-template-columns:1.2fr .9fr;gap:60px;align-items:center}.login-visual{padding:10px 0}.eyebrow{font-size:11px;letter-spacing:1.6px;color:#5d8db7;font-weight:800;text-transform:uppercase}.login-visual h1{font-size:49px;line-height:1.18;letter-spacing:-2px;margin:17px 0;color:#214577}.login-visual h1 span{color:var(--pink)}.login-visual p{font-size:14px;color:#6f84a0;max-width:420px}.login-garden{height:230px;border:7px solid white;border-radius:28px;background:url('assets/garden.svg') center/cover;box-shadow:0 15px 30px #4f8bbb17;margin:28px 0 18px}.login-pills{display:flex;gap:8px;flex-wrap:wrap}.login-pills .chip{background:white;border:1px solid #e1edf7;color:#52799f}.login-box{padding:33px;background:#ffffffef;border:1px solid white;border-radius:28px;box-shadow:0 20px 60px #386b9d12}.login-box h2{font-size:25px;margin:0 0 5px}.login-box p{font-size:12px;color:var(--muted);margin-bottom:21px}.login-box .btn{width:100%;padding:13px}.login-separator{display:flex;align-items:center;gap:12px;color:#99a7ba;font-size:10px;margin:23px 0}.login-separator::before,.login-separator::after{content:'';height:1px;background:var(--line);flex:1}.login-foot{font-size:10px!important;text-align:center;margin:12px 0 0!important;line-height:1.6}.login-footer{text-align:center;font-size:11px;color:#92a6be}.role-pills{display:flex;gap:7px;margin-bottom:20px}.role-pills span{border:1px solid #dfebfa;background:#f5f9ff;font-size:11px;padding:7px 10px;border-radius:10px}
/* Dialog and play */
dialog{border:1px solid #dfebf7;border-radius:23px;padding:0;width:min(740px,calc(100% - 28px));max-height:90dvh;box-shadow:0 25px 90px #16346640;color:var(--ink)}dialog::backdrop{background:#18315d77;backdrop-filter:blur(4px)}.dialog-head{position:sticky;top:0;z-index:3;background:white;border-bottom:1px solid var(--line);padding:16px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-head h2{font-size:19px;margin:0}#dialog-body{padding:23px}.question-editor{border:1px solid var(--line);background:#f8fbff;border-radius:15px;padding:16px;margin-bottom:13px}.question-editor label{font-size:11px}.question-editor .question-num{font-weight:800;font-size:12px;color:#6385ae;margin-bottom:10px}.question-editor .options-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:11px 0}.upload-box{border:2px dashed #d2e3f8;background:#f7faff;border-radius:14px;padding:17px;text-align:center;color:#6d89ac;font-size:12px}.upload-box input{font-size:12px;margin-top:10px}.quiz-screen{text-align:center;padding:10px 0}.quiz-scene{font-size:60px;padding:10px;letter-spacing:7px}.quiz-progress{height:8px;background:#ecf2fb;border-radius:10px;overflow:hidden;margin:14px 0}.quiz-progress div{height:100%;background:linear-gradient(90deg,#ff66ae,#ffbc63);transition:width .2s;width:var(--progress)}.quiz-question{font-size:25px;margin:23px 0 28px;line-height:1.5}.quiz-options{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:25px}.quiz-option{background:linear-gradient(130deg,#f0f8ff,#f4f0ff);border:3px solid #e0ebff;min-height:95px;font-size:25px;font-weight:800;border-radius:20px;color:#3b66a6;padding:15px;overflow-wrap:anywhere;white-space:normal}.quiz-option.selected{border-color:#ff62a5;background:#fff0f7;color:#df3280;box-shadow:0 5px 12px #fb409119}.quiz-score{font-size:60px;font-weight:900;color:#458eff;margin:15px 0}.quiz-controls{display:flex;justify-content:space-between;gap:9px;align-items:center}.quiz-controls small{font-size:11px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;z-index:100;background:#24446a;color:white;box-shadow:0 8px 30px #1b3e6c35;border-radius:14px;padding:12px 20px;font-size:13px;max-width:90vw;transition:.2s}#toast.show{transform:translateX(-50%) translateY(0);opacity:1}#toast.error{background:#af3e64}.notify-item{padding:13px;border:1px solid var(--line);border-radius:13px;display:flex;gap:10px;align-items:center;cursor:pointer}.notify-item.unread{background:#fff3f8}.notify-item p{margin:0;font-size:12px}.notify-item small{font-size:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
@media(min-width:1500px){.main{padding-left:35px;padding-right:35px}.hero{height:250px}.card-top{height:180px}}
@media(max-width:1120px){.top-slogan{display:none}.topbar .spacer{display:block}.brand{margin-right:auto}.main{padding:18px}.stats{gap:8px}.stat{padding:10px;gap:8px}.stat-icon{font-size:26px}.grid{gap:12px}.hero-copy{width:73%}.hero .btn{padding:8px;font-size:10px}.sidebar{width:205px}.main{margin-left:205px}.login-layout{gap:30px}.login-visual h1{font-size:40px}}
@media(max-width:850px){.topbar{height:74px;padding:0 15px;gap:10px}.brand{min-width:0}.brand-name{font-size:21px}.brand img{width:41px;height:41px}.brand-tagline{font-size:8px}.profile{padding:5px 8px;max-width:170px}.profile .avatar{display:none}.profile strong{max-width:120px;font-size:10px}.mobile-menu{display:block}.sidebar{top:74px;width:220px;transform:translateX(-100%);transition:transform .2s;box-shadow:8px 0 30px #17366b15}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.login-layout{grid-template-columns:1fr;max-width:500px;margin-top:30px}.login-visual{display:none}.login-page{padding:20px}.login-top{justify-content:center}.login-top .chip{display:none}.login-box{padding:27px}.hero{height:200px}.hero h1{font-size:33px}.stats{margin:12px 0 20px}.stat strong{font-size:23px}.stat-label{font-size:9px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.chat-layout{grid-template-columns:185px 1fr}.page-title{font-size:24px}.card-top{height:145px}.filterbar{flex-wrap:wrap}.search{max-width:none;flex:1;min-width:160px}}
@media(max-width:520px){body{font-size:14px}.brand-name{font-size:18px}.brand img{width:35px;height:35px}.brand-tagline{font-size:7px}.profile{display:none}.topbar{height:68px}.sidebar{top:68px}.main{padding:13px}.hero{height:210px;background-position:center}.hero-copy{width:90%;padding:12px;background:#ffffff70;border-radius:18px}.hero h1{font-size:29px}.hero p{font-size:10px}.hero .flex{gap:4px;justify-content:center}.hero .btn{font-size:9px;padding:7px}.stats{grid-template-columns:repeat(2,1fr);gap:8px}.stat{padding:10px 12px}.stat strong{font-size:24px}.stat-icon{font-size:27px}.panel{padding:15px}.grid{grid-template-columns:1fr}.card-top{height:180px}.card-body h3{font-size:16px}.card-body p{font-size:12px}.page-head{gap:12px;margin-bottom:16px}.page-head p{font-size:11px}.page-head .btn{font-size:11px;padding:9px 12px}.page-title{font-size:22px}.section-head h2{font-size:19px}.tabs{gap:2px}.tab{font-size:10px;padding:7px 9px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}#dialog-body{padding:17px}.dialog-head{padding:13px 17px}.dialog-head h2{font-size:16px}.quiz-options{gap:7px}.quiz-option{font-size:21px;padding:12px;min-height:80px}.quiz-question{font-size:21px}.quiz-scene{font-size:47px}.chat-layout{display:flex;flex-direction:column;min-height:500px}.chat-contacts{max-height:145px;display:flex;gap:7px;border-right:0;border-bottom:1px solid var(--line);overflow:auto;flex-shrink:0}.contact{width:auto;min-width:150px;margin:0}.chat-messages{height:350px;padding:13px}.bubble{max-width:90%}.chat-compose{padding:10px}.chat-compose .btn{padding:10px;font-size:11px}.login-box{padding:23px}.two-col{margin-top:15px}.note{font-size:11px}.footer{font-size:9px}.btn{font-size:12px}.card-actions .btn{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.hero-copy>.flex{justify-content:center}.quiz-meter{width:100%;height:9px;border:0;border-radius:9px;overflow:hidden;margin-top:15px;accent-color:#ff6aa6}.quiz-meter::-webkit-progress-bar{background:#edf3ff;border-radius:9px}.quiz-meter::-webkit-progress-value{background:linear-gradient(90deg,#ff68ac,#ffc264);border-radius:9px}.quiz-meter::-moz-progress-bar{background:#ff68ac;border-radius:9px}.quiz-options:has(.quiz-option:nth-child(4)){grid-template-columns:repeat(2,1fr)}
.demo-select{width:auto;max-width:220px;padding:4px 8px;font-size:11px;border-color:#e8d6a3;background:#fffdf3}.demo-bar+.topbar+.sidebar{top:134px}@media(max-width:850px){.demo-bar+.topbar+.sidebar{top:150px}}@media(max-width:520px){.demo-bar+.topbar+.sidebar{top:170px}}
/* V3 — accessible typography and real 3D preschool illustration */
body{font-family:Arial,Helvetica,sans-serif;font-size:17px;line-height:1.6}.topbar{height:94px}.brand{min-width:260px}.brand-name{font-family:Arial,Helvetica,sans-serif;font-size:28px;letter-spacing:-.7px}.brand-tagline{font-size:12px}.sidebar{top:94px;width:267px;padding:14px 11px}.nav-item{font-size:16px;padding:11px 12px;line-height:1.35;font-weight:600}.nav-label{font-size:11px}.main{margin-left:267px;padding:22px 26px}.sidebar-garden,.login-garden,.hero{background-image:url('assets/hero-3d.webp')}.hero{height:285px;background-position:center;background-size:cover;border:6px solid white}.hero-copy{width:59%;padding:16px 12px;background:radial-gradient(ellipse,#ffffffd6,#ffffff40 75%,transparent);border-radius:22px}.hero h1{font-family:Arial,Helvetica,sans-serif;font-size:clamp(33px,3vw,49px);font-weight:800;letter-spacing:-1.2px}.hero p{font-size:16px}.hero .btn{font-size:15px;padding:10px 13px}.hero-copy>.flex{gap:8px}.hero .flex{flex-wrap:wrap}.sidebar-garden{height:110px;background-size:auto 110px;background-position:7% center}.login-garden{height:255px;background-size:cover}.login-visual h1{font-family:Arial,Helvetica,sans-serif;font-size:48px}.login-visual p,.login-box p{font-size:16px}.login-box h2{font-size:28px}.login-foot{font-size:13px!important}.role-pills span{font-size:14px}.login-top .chip{font-size:14px}.login-box label{font-size:16px}.login-box input{font-size:18px}.top-slogan{font-size:18px}.profile strong{font-size:15px;max-width:175px}.profile small{font-size:12px}.profile{max-width:270px}.page-title{font-size:31px;letter-spacing:-.5px}.page-head p{font-size:16px}.btn{font-size:16px;padding:11px 17px}.btn.small{font-size:14px;padding:8px 12px}.icon-btn{width:42px;height:42px;font-size:20px}h2{font-size:25px}h3{font-size:22px}label{font-size:16px}input,textarea,select{font-size:17px;padding:12px}.form-grid{gap:18px}.hint{font-size:13px!important}.tiny,.muted.tiny{font-size:14px}.badge{font-size:13px}.chip{font-size:14px}.note{font-size:15px;line-height:1.65}.empty{font-size:17px}.panel{padding:24px}.section-head h2{font-size:26px}.section-head p{font-size:15px}.stat-label{font-size:14px}.stat small{font-size:13px}.stat strong{font-size:30px}.stat-icon{font-size:38px}.stats{gap:14px}.stat{padding:14px;gap:12px}.card-top{height:190px;background-image:url('assets/hero-3d.webp')!important;background-size:auto 190px!important;background-position:left center!important}.card-top.fish{background-position:right center!important}.card-top.story{background-position:86% center!important}.card-art{font-size:48px;align-self:flex-end;margin:0 0 18px 40px;background:#ffffffcf;border-radius:15px;line-height:1.2;padding:5px}.card-top .badge{font-size:12px}.card-top .play-overlay{font-size:14px;padding:8px 12px}.card-body{padding:18px}.card-body h3{font-size:21px;line-height:1.45}.card-body p{font-size:16px;min-height:48px}.card-actions{gap:8px}.tab{font-size:15px;padding:9px 13px}.search{font-size:16px;max-width:320px}.filterbar label{min-width:220px;flex:1}.filterbar select{width:100%}.activity strong{font-size:16px}.activity p{font-size:15px}.activity small{font-size:12px}.quote p{font-size:16px}.quote h3{font-size:24px}.sidebar-tip{font-size:14px}.grid{gap:20px}.grade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grade-card{background:linear-gradient(120deg,white,#fff0f8)}.grade-card:nth-child(2){background:linear-gradient(120deg,white,#e5f7ff)}.grade-card:nth-child(3){background:linear-gradient(120deg,white,#f2fbe4)}.grade-card:nth-child(4){background:linear-gradient(120deg,white,#fff6d8)}.grade-icon{font-size:60px}.school-banner{background:linear-gradient(110deg,#fffdf7,#eff9ff);margin-bottom:22px}.year-card{padding:20px;border-radius:15px;background:#f7faff;border:1px solid #e2ecf8}.author-tools{margin-bottom:22px}.author-tools .tabs{gap:10px}.author-tools p{margin:15px 0 0;font-size:15px}.table-wrap th{font-size:13px}.table-wrap td,.table-wrap td strong{font-size:16px}code{font-size:15px}.student-cell .avatar{width:42px;height:42px}.news-card h2{font-size:26px}.news-card .pre{font-size:18px;color:#425b7d}.news-image{display:block;max-width:100%;max-height:520px;object-fit:contain;border-radius:17px;margin:20px 0;border:1px solid var(--line)}.check-label{flex-direction:row;align-items:center;gap:10px;font-weight:500}.check-label input{width:20px;height:20px;flex-shrink:0;accent-color:#fb4091}.credential{font-size:26px;letter-spacing:2px;border:1px dashed #9dc8ff;background:#f0f7ff;border-radius:14px;padding:18px;text-align:center;font-weight:700;overflow-wrap:anywhere}.green-note{background:#effaf3;border-color:#d5efde;color:#3a8e61}.my-rank{background:#fff3fa}.game-frame{width:100%;height:500px;border:2px solid #e2eafb;border-radius:16px;background:white}.form-error{font-size:16px}.question-editor .question-num{font-size:16px}.question-editor label{font-size:15px}.dialog-head h2{font-size:24px}dialog{width:min(850px,calc(100% - 28px))}.quiz-question{font-size:31px}.quiz-option{font-size:29px;min-height:105px}.quiz-controls small{font-size:14px}.quiz-scene{font-size:68px}.article{font-size:20px}.result-card p{font-size:17px}.review-box{font-size:17px}.file-tag{font-size:16px}.bubble{font-size:17px}.bubble small{font-size:12px}.chat-header{font-size:17px}.contact strong{font-size:16px}.contact small{font-size:13px}.chat-compose textarea{font-size:17px}.notify-item p{font-size:17px}.notify-item small{font-size:13px}.footer{font-size:12px}.demo-bar{font-size:14px;gap:9px;min-height:49px}.demo-bar button{font-size:13px}.demo-select{font-size:13px;padding:6px;width:auto}.demo-bar+.topbar+.sidebar{top:143px}.login-footer{font-size:14px}
@media(max-width:1250px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:36px}.hero .btn{font-size:13px;padding:8px 10px}.stats{grid-template-columns:repeat(2,1fr)}.hero p{font-size:14px}.brand{min-width:230px}.topbar{gap:13px;padding:0 18px}.profile{max-width:220px}}
@media(max-width:1000px){.top-slogan{display:none}.sidebar{width:245px}.main{margin-left:245px;padding:18px}.nav-item{font-size:15px}.hero{height:270px}.hero-copy{width:68%;background:#ffffff9c}.hero h1{font-size:32px}.hero .btn{font-size:12px}.profile strong{font-size:13px}}
@media(max-width:850px){.topbar{height:82px}.brand{min-width:0}.brand-name{font-size:24px}.sidebar{top:82px;width:265px;transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.mobile-menu{display:block}.hero-copy{width:60%}.hero{height:280px}.hero h1{font-size:34px}.hero p{font-size:15px}.hero .btn{font-size:13px}.page-title{font-size:28px}.login-box{padding:30px}.grade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-bar+.topbar+.sidebar{top:175px}}
@media(max-width:540px){body{font-size:17px}.topbar{height:77px;gap:8px;padding:0 11px}.brand-name{font-size:22px}.brand-tagline{font-size:10px}.brand img{width:38px;height:38px}.sidebar{top:77px;width:270px}.nav-item{font-size:17px;padding:13px}.main{padding:13px}.hero{height:290px;background-size:auto 290px;background-position:center}.hero-copy{width:94%;background:#ffffffbd;padding:16px 10px}.hero h1{font-size:33px}.hero p{font-size:16px}.hero .btn{font-size:14px;padding:10px 12px}.grid,.grade-grid{grid-template-columns:1fr}.stats{gap:9px}.stat{padding:10px;gap:8px}.stat-icon{font-size:29px}.stat strong{font-size:27px}.stat-label{font-size:13px}.stat small{font-size:11px}.page-title{font-size:27px}.page-head p{font-size:15px}.page-head .btn{font-size:15px;padding:10px 13px}.panel{padding:18px}.card-top{height:215px;background-size:auto 215px!important}.card-body h3{font-size:23px}.card-body p{font-size:17px}.card-actions .btn{font-size:14px}.tabs .btn{font-size:14px;white-space:normal}.tab{font-size:14px}.search{font-size:16px;max-width:none}.section-head{flex-wrap:wrap}.section-head h2{font-size:24px}.section-head p{font-size:15px}.dialog-head h2{font-size:21px}.dialog-head{padding:16px}.quiz-question{font-size:27px}.quiz-option{font-size:25px;padding:13px;min-height:95px}.quiz-controls{flex-wrap:wrap;justify-content:center}.quiz-controls small{display:none}.quiz-scene{font-size:55px}.game-frame{height:440px}.note{font-size:15px}.bubble{font-size:17px}.chat-compose .btn{font-size:15px}.demo-bar{font-size:12px}.demo-bar+.topbar+.sidebar{top:200px}.login-box h2{font-size:27px}.login-box .role-pills{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.footer{font-size:11px}}
.hero::after{content:'✦  ✧  ✦';position:absolute;right:30%;top:16px;color:#fff4a1;font-size:27px;pointer-events:none;animation:twinkle 3s ease-in-out infinite}.card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #31548519;transition:.2s}.card-art{animation:bob 4s ease-in-out infinite}.news-card small{font-size:14px}.author-tools+.panel{margin-top:0}.school-banner+.panel{margin-top:22px}.form-grid input{min-height:48px}[hidden]{display:none!important}@keyframes bob{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-6px) rotate(1deg)}}@keyframes twinkle{0%,100%{opacity:.55;transform:translateY(0)}50%{opacity:1;transform:translateY(4px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* V4: game scenes, accessible media controls and voice recording */
dialog.game-dialog{width:min(1180px,calc(100% - 22px));max-height:96dvh}.game-dialog .dialog-head{background:linear-gradient(110deg,#fff8e9,#f1faff)}.game-dialog #dialog-body{padding:0}.game-arena{position:relative;min-height:690px;padding:22px 26px 30px;background-color:#e5f9ee;background-size:cover;background-position:center;border-radius:0 0 20px 20px}.game-arena.theme-garden,.game-finished.theme-garden{background-image:url('assets/garden-game.webp')}.game-arena.theme-ocean,.game-finished.theme-ocean{background-image:url('assets/ocean-game.webp')}.game-arena.theme-music,.game-finished.theme-music{background-image:url('assets/music-game.webp')}.game-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.game-toolbar>.badge{background:#ffffffed;color:#ce4387;border:1px solid #fff;font-size:15px;box-shadow:0 5px 18px #12364513}.game-theme-label{flex-direction:row;align-items:center;gap:8px;background:#ffffffdf;padding:8px 12px;border-radius:13px;font-size:14px;white-space:nowrap}.game-theme-label select{font-size:14px;padding:7px 9px;width:auto;max-width:205px;background:#fff}.game-content{width:min(830px,92%);margin:25px auto 0;background:#ffffffe3;border:3px solid #fff;border-radius:30px;padding:25px;box-shadow:0 12px 40px #1247791a;backdrop-filter:blur(3px)}.game-progress-label{text-align:center;font-size:16px;font-weight:700;color:#5b80a2}.game-content .quiz-meter{height:12px;margin:12px 0 0}.game-question-card{margin:15px 0 21px;text-align:center;padding:10px}.game-question-card .quiz-question{font-size:clamp(25px,3vw,36px);margin:8px 0 10px;color:#234878;line-height:1.6}.game-question-card p{font-size:16px;color:#6c86a4}.game-options{gap:16px;margin-bottom:24px}.game-answer{position:relative;min-height:183px;padding:12px 12px 17px;border:4px solid #d8eaff;border-radius:25px;background:linear-gradient(150deg,#fff,#eaf5ff);display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;box-shadow:0 7px 0 #c5ddf355,0 8px 20px #1961ac0c;transition:transform .15s,border-color .15s,background .15s}.game-answer:hover{transform:translateY(-4px);border-color:#ffadd3}.game-answer.selected{border-color:#ff55a0;background:linear-gradient(150deg,#fff,#ffe2f0);box-shadow:0 7px 0 #ff86bb55,0 8px 20px #fb409122;transform:translateY(-3px)}.answer-character{display:block;height:80px;width:80px;border-radius:23px;overflow:hidden;border:3px solid white;box-shadow:0 6px 15px #284b7322;background:#eef9ff;position:relative}.answer-character img{position:absolute;width:320px;height:180px;max-width:none;object-fit:cover;top:-12px;left:-8px}.answer-character.art-1 img{top:-80px;left:-3px}.answer-character.art-2 img{top:-80px;left:-239px}.answer-character.art-3 img{top:-5px;left:-237px}.theme-ocean .answer-character.art-0 img{top:-27px;left:0}.theme-ocean .answer-character.art-1 img{top:-88px;left:-3px}.theme-ocean .answer-character.art-2 img{top:-34px;left:-239px}.answer-text{font-size:clamp(23px,2.4vw,32px);color:#325a8c;line-height:1.4;overflow-wrap:anywhere;max-width:100%}.answer-number{position:absolute;top:8px;left:10px;font-size:13px;background:#e7f3ff;color:#6192c0;border-radius:50%;width:25px;height:25px;display:flex;align-items:center;justify-content:center}.answer-check{position:absolute;right:-8px;top:-8px;background:#ff4c98;color:white;width:31px;height:31px;border:3px solid white;border-radius:50%;font-size:20px;display:flex;align-items:center;justify-content:center}.game-controls{flex-wrap:wrap;gap:10px}.game-controls .btn{font-size:16px;padding:12px 16px}.game-encourage{font-size:13px;color:#7893ad}.game-finished{background-size:cover;background-position:center;padding:24px 12%!important;min-height:650px}.game-finished h2,.game-finished p,.game-finished .quiz-score{background:#ffffffdf;border-radius:15px;padding:8px 12px}.game-finished-art{width:100%;max-height:190px;object-fit:cover;object-position:center;border-radius:21px;border:4px solid white;box-shadow:0 7px 22px #2b7b9930}.game-finished .quiz-scene{display:none}.theme-picker{padding:18px;background:#f7fbff;border:1px solid #e1edf8;border-radius:16px}.theme-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.theme-thumb{padding:5px;background:white;border:2px solid #e1eaf4;border-radius:13px;color:#54789d;font-size:13px;overflow:hidden}.theme-thumb.selected{border-color:#ff55a0;background:#fff2f8;color:#ce4283}.theme-thumb img{width:100%;height:80px;object-fit:cover;border-radius:8px;display:block}.theme-thumb span{display:block;padding:7px 2px}.card .card-top[data-game-theme="garden"]{background-image:url('assets/garden-game.webp')!important;background-size:cover!important;background-position:center!important}.card .card-top[data-game-theme="ocean"]{background-image:url('assets/ocean-game.webp')!important;background-size:cover!important;background-position:center!important}.card .card-top[data-game-theme="music"]{background-image:url('assets/music-game.webp')!important;background-size:cover!important;background-position:center!important}.card-top[data-game-theme] .card-art{display:none}.media-widget{margin:18px 0;background:linear-gradient(145deg,#f7fbff,#fff5fa);border:1px solid #dae9f8;border-radius:19px;padding:18px}.media-widget-title{font-weight:700;font-size:18px;color:#436b97;margin-bottom:12px;overflow-wrap:anywhere}.media-widget .media{margin:0 0 13px;display:block;max-height:470px}.media-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.media-tools .btn{font-size:16px;min-height:45px}.volume-label{display:flex;flex-direction:row;align-items:center;gap:10px;flex:1;min-width:210px;font-size:15px;background:#ffffffd9;padding:8px 13px;border-radius:12px}.volume-label input{accent-color:#ff4b9a;padding:0;width:100%;min-width:70px;max-width:180px;height:25px;box-shadow:none}.volume-label output{font-size:13px;min-width:46px;white-space:nowrap}.media-status{font-size:13px;line-height:1.65;margin:13px 0 0;color:#6a88a9;min-height:21px}.lesson-intro{padding:25px 24%;text-align:center;min-height:175px;border:3px solid white;border-radius:20px;background-size:cover;background-position:center;margin-bottom:16px;box-shadow:0 5px 20px #214a8010}.lesson-intro.theme-garden{background-image:linear-gradient(#ffffff25,#ffffff35),url('assets/garden-game.webp')}.lesson-intro.theme-ocean{background-image:linear-gradient(#ffffff25,#ffffff35),url('assets/ocean-game.webp')}.lesson-intro.theme-music{background-image:linear-gradient(#ffffff25,#ffffff35),url('assets/music-game.webp')}.lesson-intro h3{font-size:24px;background:#ffffffe0;border-radius:12px;margin:10px 0 6px;padding:7px}.lesson-intro p{font-size:15px;background:#ffffffdc;border-radius:9px;padding:5px}.lesson-dialog{width:min(960px,calc(100% - 25px))}.voice-recorder{margin:20px 0;background:#fff9f1;border:2px solid #f5dfc7;border-radius:23px;overflow:hidden}.recorder-hero{position:relative;min-height:160px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:23px 24%;text-align:center}.recorder-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.recorder-hero>div{position:relative;z-index:1;background:#ffffffda;border-radius:15px;padding:9px 15px}.recorder-hero h3{font-size:24px;margin:6px 0}.recorder-hero p{font-size:15px;margin:4px 0}.recorder-hero .badge{font-size:10px}.recorder-main{padding:22px}.record-indicator{display:flex;align-items:center;justify-content:center;gap:12px;background:white;border:1px solid #eee2d8;border-radius:13px;padding:13px;font-size:15px}.record-indicator output{font-size:28px;font-weight:700;letter-spacing:2px;font-variant-numeric:tabular-nums;color:#49759b}.record-led{width:12px;height:12px;border-radius:50%;background:#b9c9d7;box-shadow:0 0 0 5px #dce7f355}.voice-recorder[data-state="recording"] .record-led{background:#ff4c7f;box-shadow:0 0 0 5px #ff4c7f22;animation:record-pulse 1s infinite}.voice-recorder[data-state="paused"] .record-led{background:#ffb944}.voice-recorder[data-state="ready"] .record-led{background:#47b690}.record-bars{height:38px;display:flex;align-items:center;justify-content:center;gap:5px;margin:15px auto;width:180px}.record-bars i{width:8px;border-radius:7px;height:8px;background:#f3b9d0}.voice-recorder[data-state="recording"] .record-bars i{animation:voice-bars 1s ease-in-out infinite;background:#ff66a4}.record-bars i:nth-child(2n){animation-delay:.18s!important}.record-bars i:nth-child(3n){animation-delay:.35s!important}.record-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.record-buttons .btn{min-height:48px;font-size:16px}.recorder-status{font-size:15px;line-height:1.7;color:#876d67;text-align:center;margin:16px 0}.recorder-main>.muted{margin-top:15px;font-size:13px}.practice-entry{padding:22px;background:linear-gradient(140deg,#fff1f8,#ecf7ff);border:1px solid #f2d8e6;border-radius:20px;margin-top:20px;display:flex;flex-direction:column;gap:12px}.practice-entry h3{margin:0}.practice-entry p{margin:0}.submit-voice{font-size:19px;padding:16px}.submitted-recording{border:1px dashed #c7deee;border-radius:16px;padding:16px;margin:18px 0;background:#f7fcff}.submitted-recording>h3{font-size:19px;margin:0}.recorded-widget{background:#f8fcff}.voice-success{text-align:center;padding:12px}.voice-success>img{width:100%;height:210px;object-fit:cover;border-radius:20px}.voice-success .btn{margin:7px}.voice-success h2{font-size:27px}.game-answer:focus-visible{outline:4px solid #e99723;outline-offset:4px}@keyframes record-pulse{50%{opacity:.5}}@keyframes voice-bars{0%,100%{height:8px}50%{height:31px}}
@media(max-width:800px){.game-content{width:100%;padding:20px}.game-arena{padding:18px;min-height:640px}.game-encourage{display:none}.game-options{gap:11px}.game-answer{min-height:170px}.game-toolbar>.badge{font-size:13px}.game-theme-label{font-size:12px}.game-theme-label select{font-size:12px;max-width:165px}.lesson-intro{padding:25px 18%}.recorder-hero{padding:20px 18%}}
@media(max-width:540px){.game-dialog .dialog-head{padding:12px}.game-dialog .dialog-head h2{font-size:18px}.game-arena{padding:13px 10px 23px;min-height:640px;background-position:center}.game-toolbar{justify-content:center;gap:7px}.game-theme-label{padding:5px 9px}.game-content{padding:17px 11px;border-radius:22px;margin-top:15px;background:#fffffff0}.game-question-card{padding:3px 0;margin:10px 0 18px}.game-question-card .quiz-question{font-size:26px}.game-question-card p{font-size:14px}.game-answer{border-width:3px;min-height:160px;padding:9px 6px 15px;border-radius:19px}.game-options{gap:9px}.answer-character{height:62px;width:62px;border-radius:18px}.answer-character img{width:250px;height:141px;top:-5px;left:-4px}.answer-character.art-1 img{top:-66px;left:-3px}.answer-character.art-2 img{top:-66px;left:-187px}.answer-character.art-3 img{top:-5px;left:-187px}.theme-ocean .answer-character.art-0 img{top:-21px;left:0}.theme-ocean .answer-character.art-1 img{top:-69px;left:-3px}.theme-ocean .answer-character.art-2 img{top:-26px;left:-187px}.answer-text{font-size:23px}.answer-number{font-size:11px;width:21px;height:21px;left:4px;top:5px}.game-controls .btn{font-size:15px;padding:11px 13px}.game-finished{padding:20px 10px!important;min-height:560px}.game-finished-art{height:160px}.theme-thumbs{gap:6px}.theme-thumb{font-size:11px;padding:3px}.theme-thumb img{height:60px}.theme-picker{padding:12px}.media-widget{padding:13px;border-radius:15px}.media-widget-title{font-size:17px}.media-tools{gap:8px}.media-tools .btn{font-size:15px;padding:10px 12px}.volume-label{min-width:100%;font-size:14px;padding:7px 10px;justify-content:space-between}.volume-label input{max-width:none;flex:1}.media-status{font-size:12px}.lesson-intro{padding:20px 12%;min-height:175px}.lesson-intro h3{font-size:23px}.recorder-hero{padding:17px 12%}.recorder-hero>div{padding:8px}.recorder-hero h3{font-size:22px}.recorder-hero p{font-size:13px}.recorder-main{padding:16px}.record-indicator{gap:9px;font-size:13px}.record-indicator output{font-size:25px}.record-buttons{gap:8px}.record-buttons .btn{font-size:15px;padding:11px 13px}.record-buttons .btn:first-child{width:100%}.recorder-status{font-size:14px}.practice-entry{padding:18px}.submit-voice{font-size:17px}.submitted-recording{padding:11px}.voice-success>img{height:170px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* V5: preserve the full teacher illustration, with readable overlay controls. */
.lesson-illustration{display:block;width:100%;max-height:440px;object-fit:contain;background:#fff8ef;border-radius:20px;margin:0 auto 18px;border:2px solid #f6e0cd}
.illustration-editor{padding:20px;border:2px dashed #e8bc80;border-radius:22px;background:#fffaf3}.illustration-editor h3,.illustration-editor p{margin:0}.illustration-preview:empty{display:none}.illustration-preview img{margin:0;max-height:260px}
.card-top:has(.custom-card-illustration){background:#fff8ef!important;overflow:hidden}.custom-card-illustration{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff8ef}.card-top:has(.custom-card-illustration) .badge,.card-top:has(.custom-card-illustration) .play-overlay{z-index:2;position:relative}.game-question-card .lesson-illustration{max-height:270px}
