body.kedu-app{--ke-purple:#7c3aed;--ke-bg:#f7f8fc;--ke-card:#fff;--ke-text:#172033;--ke-muted:#657086;--ke-line:#e9eaf2;background:var(--ke-bg);color:var(--ke-text);padding:0;font-family:Inter,system-ui,sans-serif}body.kedu-app>header,body.kedu-app>main,body.kedu-app>footer,body.kedu-app>.bottom-nav,body.kedu-app>.mobile-bottom-nav{display:none!important}.kedu-app #keduShell button{font:inherit;cursor:pointer}.ke-top{height:80px;position:fixed;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:var(--ke-card);border-bottom:1px solid var(--ke-line);z-index:200}.ke-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ke-text)}.ke-brand img{width:46px;height:46px;border-radius:14px}.ke-brand strong{font-size:25px;display:block;color:var(--ke-purple);line-height:1.1}.ke-brand small{font-size:10px;color:var(--ke-muted)}.ke-top-actions{display:flex;gap:12px;align-items:center}.ke-top-actions button{background:#f1edff;border:0;padding:11px 15px;border-radius:12px;color:#6d28d9}.ke-side{position:fixed;inset:80px auto 0 0;width:220px;padding:28px 18px;border-right:1px solid var(--ke-line);background:var(--ke-card);z-index:199;display:flex;flex-direction:column}.ke-side>p{font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--ke-muted);padding:0 13px}.ke-side nav{display:grid;gap:7px;margin:15px 0 30px}.ke-side nav button,.ke-side>button{padding:14px 16px;text-align:left;border:0;border-radius:12px;background:transparent;color:var(--ke-muted);display:flex;gap:14px;align-items:center}.ke-side nav button.active{background:#eee8ff;color:#6d28d9;font-weight:700}.ke-side>a{margin-top:auto;color:var(--ke-muted);padding:15px;text-decoration:none}.ke-content{margin:80px 0 0 220px;padding:35px clamp(20px,4vw,65px);max-width:1550px}.ke-heading h1{font-size:30px;margin:9px 0}.ke-heading p{color:var(--ke-muted)}.ke-eyebrow{color:var(--ke-purple);font-size:11px;letter-spacing:1.5px;font-weight:800}.ke-hero{background:linear-gradient(120deg,#6d28d9,#8b5cf6);border-radius:24px;margin:28px 0;display:flex;align-items:center;justify-content:space-between;padding:32px 40px;color:white;overflow:hidden}.ke-hero span{font-size:10px;font-weight:700;letter-spacing:2px;color:#ddd6fe}.ke-hero h2{font-size:34px;line-height:1.15;color:white;margin:12px 0}.ke-hero p{font-size:14px;color:#e9ddff;margin-bottom:22px}.ke-hero-icon img{width:190px;border-radius:36px;transform:rotate(-8deg);box-shadow:0 20px 60px #3c126d55}.ke-primary{border:0;border-radius:12px;background:#7c3aed;color:white;padding:14px 22px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:15px}.ke-hero .ke-primary{background:white;color:#6d28d9}.ke-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.ke-stats button{background:var(--ke-card);border:1px solid var(--ke-line);border-radius:17px;text-align:left;padding:22px;display:grid;gap:10px;color:var(--ke-text)}.ke-stats i{color:#7c3aed}.ke-stats strong{font-size:24px}.ke-stats span,.ke-note{font-size:12px;color:var(--ke-muted)}.ke-note{margin:14px 0 22px}.ke-columns{display:grid;grid-template-columns:1.15fr 1fr;gap:26px}.ke-section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px}.ke-section-head h2{font-size:19px;margin:0}.ke-section-head button,.ke-note button{border:0;background:transparent;color:var(--ke-purple);font-size:12px}.ke-document{width:100%;border:1px solid var(--ke-line);background:var(--ke-card);border-radius:14px;padding:19px;margin-bottom:10px;display:flex;align-items:center;gap:15px;text-align:left;color:var(--ke-text)}.ke-document>i:first-child{background:#f2edff;color:#7c3aed;padding:14px;border-radius:12px}.ke-document>i:last-child{margin-left:auto;color:#8b5cf6}.ke-document strong{display:block;font-size:13px}.ke-document small,.ke-community small{display:block;color:var(--ke-muted);font-size:11px;margin-top:7px}.ke-empty{background:var(--ke-card);border:1px dashed #d8cfef;border-radius:18px;padding:28px;text-align:center;color:var(--ke-muted)}.ke-empty h3{color:var(--ke-text);font-size:16px}.ke-empty p{font-size:13px}.ke-empty button{border:0;background:#ede9fe;color:#6d28d9;border-radius:9px;padding:10px 16px}.ke-community{display:flex;align-items:center;gap:16px;padding:23px;border-radius:16px;border:0;background:#eee8ff;color:#5b21b6;width:100%;text-align:left;margin-top:18px;font-size:13px}.ke-community>i{font-size:26px}.ke-bottom{display:none}.kedu-app #chatPage,.kedu-app #walletPage{position:fixed!important;inset:80px 0 0 220px!important;width:auto!important;height:auto!important;margin:0!important;z-index:100!important;overflow:auto;background:var(--ke-bg)}.kedu-app #chatPreviewApp{height:100%!important;max-width:none!important;border:0;border-radius:0}.kedu-app .chat-app-sidebar{display:none!important}.kedu-app .education-panel{padding:25px clamp(16px,3vw,45px);background:var(--ke-bg)}.kedu-app .education-card{border:1px solid var(--ke-line);border-radius:17px;background:var(--ke-card);box-shadow:none}.kedu-app .education-tabs{gap:6px;background:transparent}.kedu-app .education-tab{border-radius:10px}.kedu-app .education-primary{border-radius:10px;background:#7c3aed}.ke-login{position:fixed;inset:0;z-index:500;background:var(--ke-bg);display:grid;grid-template-columns:1fr 1fr}.ke-login[hidden]{display:none}.ke-login-art{padding:70px clamp(30px,6vw,100px);background:linear-gradient(145deg,#4c1d95,#7c3aed);color:white;display:flex;flex-direction:column;justify-content:center}.ke-login-art>img{width:85px;border-radius:23px;margin-bottom:50px}.ke-login-art>span{font-size:11px;letter-spacing:2px;color:#ddd6fe}.ke-login-art h1{font-size:clamp(30px,3.5vw,52px);line-height:1.12;margin:20px 0;color:white}.ke-login-art p{color:#ddd6fe;line-height:1.7;font-size:15px}.ke-login-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}.ke-login-tags span{border:1px solid #ffffff35;border-radius:20px;padding:8px 12px;font-size:11px}.ke-login-form{padding:45px clamp(25px,6vw,100px);display:flex;flex-direction:column;justify-content:center}.ke-login-form h2{font-size:30px;line-height:1.2;color:var(--ke-text);margin:16px 0}.ke-login-form>p{font-size:14px;color:var(--ke-muted);margin-bottom:30px}.ke-login-form label{display:grid;gap:9px;font-size:13px;font-weight:600;margin-bottom:20px}.ke-login-form input:not([type=checkbox]){padding:15px;border:1px solid var(--ke-line);border-radius:11px;background:var(--ke-card);color:var(--ke-text);width:100%;font:inherit}.ke-login-form .ke-check{display:flex;align-items:center;gap:9px;font-weight:400}.ke-login-form input[type=checkbox]{width:auto}.ke-login-form .ke-primary{width:100%}.ke-login-help{display:flex;justify-content:space-between;margin-top:24px;gap:16px}.ke-login-help button{background:transparent;border:0;color:var(--ke-purple);font-size:12px}#keLoginError{color:#b42318;font-size:13px}.ke-signed-out #chatPage,.ke-signed-out #walletPage{display:none!important}.kedu-app.ke-dark{--ke-bg:#101527;--ke-card:#1a2035;--ke-text:#f1f1fb;--ke-muted:#a5adc3;--ke-line:#30364c}.ke-dark .education-panel,.ke-dark .education-card,.ke-dark .education-form,.ke-dark .education-form input,.ke-dark .education-form textarea{color:var(--ke-text);background:var(--ke-card)}.ke-dark .education-panel h2,.ke-dark .education-panel h3,.ke-dark .education-panel h4{color:var(--ke-text)}.ke-dark .ke-side nav button.active,.ke-dark .ke-community{background:#332655;color:#ddd6fe}.kedu-app button:focus-visible,.kedu-app a:focus-visible{outline:3px solid #b99aff;outline-offset:3px}.kedu-app [hidden]{display:none!important}@media(max-width:1000px){.ke-side{width:185px}.ke-content{margin-left:185px;padding:25px}.kedu-app #chatPage,.kedu-app #walletPage{left:185px!important}.ke-hero{padding:28px}.ke-hero-icon img{width:135px}.ke-hero h2{font-size:29px}.ke-columns{grid-template-columns:1fr}}@media(max-width:700px){.ke-top{height:68px;padding:0 16px}.ke-brand strong{font-size:22px}.ke-brand img{width:39px;height:39px}.ke-top-actions{gap:7px}.ke-top-actions button{padding:9px}.ke-side{display:none}.ke-content{margin:68px 0 0;padding:24px 17px 100px}.ke-heading h1{font-size:25px}.ke-hero{padding:24px;border-radius:20px}.ke-hero h2{font-size:27px}.ke-hero p{font-size:12px}.ke-hero-icon{display:none}.ke-stats{gap:8px}.ke-stats button{padding:14px 10px;border-radius:13px}.ke-stats strong{font-size:17px}.ke-stats span{font-size:10px}.ke-bottom{position:fixed;inset:auto 0 0;height:74px;padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:var(--ke-card);border-top:1px solid var(--ke-line);z-index:201;display:flex;overflow-x:auto;gap:3px}.ke-bottom button{min-width:60px;flex:1;display:grid;place-content:center;gap:5px;border:0;border-radius:12px;background:transparent;color:var(--ke-muted);font-size:17px!important}.ke-bottom button span{font-size:9px}.ke-bottom button.active{color:#7c3aed;background:#f0eaff}.kedu-app #chatPage,.kedu-app #walletPage{inset:68px 0 74px 0!important}.kedu-app .education-panel{padding:17px 12px}.ke-login{grid-template-columns:1fr;overflow-y:auto}.ke-login-art{padding:30px 25px}.ke-login-art>img{width:54px;margin-bottom:22px;border-radius:15px}.ke-login-art h1{font-size:29px;margin:13px 0}.ke-login-art p{font-size:12px}.ke-login-tags{display:none}.ke-login-form{padding:30px 25px 45px}.ke-login-form h2{font-size:25px}.ke-login-art>span{font-size:9px}}
/* The standalone workspace owns its navigation and loading states. */
.kedu-app #ksBottomNav,.kedu-app #postLoginSplash,.kedu-app #pwaInstallBanner,.kedu-app #pwaIosBanner{display:none!important}

.ke-icon{display:inline-flex!important;align-items:center;justify-content:center}.ke-icon svg{width:21px;height:21px}.ke-account-dialog{border:1px solid #e9eaf2;border-radius:20px;padding:26px;min-width:280px;color:#172033}.ke-account-dialog::backdrop{background:#17203388}.ke-account-dialog button{display:block;width:100%;margin:8px 0;padding:12px;text-align:left;background:#f5f3ff;border:0;border-radius:9px;color:#6d28d9}.ke-bottom .ke-icon{justify-self:center}

/* Give both home learning actions their own wrapping, spaced layout. */
.ke-hero>div:first-child{min-width:0;flex:1}
.ke-hero{gap:24px}
.ke-hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.ke-hero .ke-primary{box-sizing:border-box;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4;justify-content:center}
@media(max-width:700px){.ke-hero-actions{display:grid;grid-template-columns:minmax(0,1fr)}.ke-hero-actions .ke-primary{width:100%}}

/* KChat uses the KEdu navigation, so its grid has no extra app-rail column. */
.kedu-app #chatPreviewApp.chat-preview,.kedu-app #chatPreviewApp.chat-preview:not(.has-profile-panel){grid-template-columns:minmax(220px,300px) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.kedu-app #chatPreviewApp.chat-preview.has-profile-panel{grid-template-columns:minmax(220px,280px) minmax(0,1fr) 260px}
.kedu-app #chatPreviewApp>.chat-sidebar,.kedu-app #chatPreviewApp>.chat-window{min-width:0;min-height:0;max-height:100%;overflow:hidden}
.kedu-app #chatPreviewApp>.education-panel,.kedu-app #chatPreviewApp>.support-pool-panel{grid-column:1 / -1;min-width:0}
.kedu-app #chatPreviewApp .chat-window-header{flex-wrap:wrap;min-width:0}
.kedu-app #chatPreviewApp #messageInput{min-width:0;width:0;flex:1 1 0}
.kedu-app #chatPreviewApp .send-message-button{flex-shrink:0}
.kedu-app .ke-side,.kedu-app .ke-top,.kedu-app .ke-bottom{box-sizing:border-box}
@media(min-width:781px) and (max-width:1180px){.kedu-app #chatPreviewApp.chat-preview.has-profile-panel{grid-template-columns:minmax(220px,280px) minmax(0,1fr)}}
@media(max-width:780px){.kedu-app #chatPreviewApp.chat-preview,.kedu-app #chatPreviewApp.chat-preview.has-profile-panel,.kedu-app #chatPreviewApp.chat-preview:not(.has-profile-panel){grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.kedu-app #chatPage{top:calc(var(--ks-vv-top,0px) + 68px)!important;bottom:auto!important;height:calc(var(--ks-vv-height,100dvh) - 142px - env(safe-area-inset-bottom,0px))!important}.kedu-app .ke-bottom{height:calc(74px + env(safe-area-inset-bottom,0px))}}

/* Keep account actions reachable when the workspace navigation is taller than the screen. */
.kedu-app .ke-side{min-height:0;overflow:hidden}
.kedu-app .ke-side>p,.kedu-app .ke-side>a,.kedu-app .ke-side>#keLogout{flex:0 0 auto}
.kedu-app .ke-side nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:15px 0 12px;scrollbar-gutter:stable}
.kedu-app .ke-side>a{margin-top:0}
.kedu-app .ke-side>#keLogout{min-height:44px;color:var(--ke-purple);border-top:1px solid var(--ke-line);border-radius:0}
.kedu-app .ke-account-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));min-width:0;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.kedu-app .ke-account-dialog button{box-sizing:border-box;min-height:44px;white-space:normal}

/* KEdu learning drawer */
.kedu-app .ke-menu-toggle,.kedu-app .ke-drawer-close{display:none}
.kedu-app .ke-drawer-backdrop[hidden]{display:none}
.kedu-app .ke-side nav button .ke-icon,.kedu-app .ke-bottom button .ke-icon{color:#7c3aed}
.kedu-app .ke-side nav button{min-height:44px}
@media(max-width:700px){
 .kedu-app .ke-top{gap:8px}
 .kedu-app .ke-brand{margin-right:auto}
 .kedu-app .ke-menu-toggle{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;border-radius:10px;background:#f1edff;color:#6d28d9;font-size:22px}
 .kedu-app .ke-side{display:none;inset:0 auto 0 0;width:min(310px,86vw);padding:16px;z-index:302;box-shadow:0 12px 40px #20123a33}
 .kedu-app.ke-drawer-open .ke-side{display:flex}
 .kedu-app .ke-drawer-close{display:block;align-self:flex-end;min-width:44px;min-height:44px;border:0;border-radius:10px;background:#f1edff;color:#6d28d9;font-size:26px}
 .kedu-app .ke-drawer-backdrop{position:fixed;inset:0;z-index:301;border:0;background:#160e2e99;width:100%;height:100%}
 .kedu-app.ke-drawer-open{overflow:hidden}
 .kedu-app .ke-side nav{margin:8px 0;gap:2px}
 .kedu-app .ke-side nav button{padding:10px 12px}
 .kedu-app .ke-bottom button .ke-icon{color:#7c3aed}
}

/* Grouped learning navigation: one scroll area, clear sections, stable footer. */
.kedu-app .ke-side nav { display:block; margin:12px 0; padding-right:3px; scrollbar-width:thin; }
.kedu-app .ke-nav-group { margin:0; padding:0; }
.kedu-app .ke-nav-group+.ke-nav-group { margin-top:18px; padding-top:14px; border-top:1px solid var(--ke-line); }
.kedu-app .ke-nav-group h2 { margin:0 0 7px; padding:0 12px; color:var(--ke-muted); font-size:10px; line-height:1.5; letter-spacing:1.1px; text-transform:uppercase; font-weight:700; }
.kedu-app .ke-side nav button { width:100%; min-height:44px; padding:10px 12px; margin:2px 0; gap:11px; font-size:13px!important; line-height:1.4; font-weight:500; }
.kedu-app .ke-side nav button>span { flex:1; min-width:0; overflow-wrap:normal; text-align:left; }
.kedu-app .ke-side nav button .ke-icon,.kedu-app .ke-side nav button>svg { width:20px; height:20px; flex:0 0 20px; color:#7c3aed; }
.kedu-app .ke-side nav button .ke-icon svg { width:20px; height:20px; }
.kedu-app .ke-side nav button:hover { background:#f7f3ff; color:#6330ac; }
.kedu-app .ke-side nav button.active { background:#eee8ff; color:#6d28d9; font-weight:700; }
.kedu-app .ke-side .ke-store-link,.kedu-app .ke-side>#keLogout { display:flex; align-items:center; gap:11px; min-height:44px; padding:12px; font-size:13px!important; line-height:1.4; }
.kedu-app .ke-side .ke-store-link .ke-icon,.kedu-app .ke-side>#keLogout .ke-icon { flex:0 0 20px; color:#7c3aed; }
.kedu-app .ke-side>p { margin:0; padding:0 12px 10px; font-size:10px; line-height:1.6; }
.kedu-app.ke-dark .ke-side nav button:hover { background:#332655; color:#ddd6fe; }
@media(max-width:700px) { .kedu-app .ke-side nav { margin:10px 0; } .kedu-app .ke-nav-group+.ke-nav-group { margin-top:15px; padding-top:12px; } .kedu-app .ke-side nav button { padding:10px 12px; font-size:14px!important; } .kedu-app .ke-nav-group h2 { font-size:10px; } }

/* Unified KEdu study screens */
.kedu-app .ke-study-frame{max-width:1440px;margin:0 auto;min-width:0;color:var(--ke-text)}
.kedu-app .ke-study-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--ke-card);border:1px solid var(--ke-line);border-radius:16px;padding:14px 16px;margin-bottom:16px}
.kedu-app .ke-study-brand{display:grid;gap:3px}.kedu-app .ke-study-brand span{font-size:10px;letter-spacing:1px;font-weight:750;color:var(--ke-purple)}.kedu-app .ke-study-brand strong{font-size:15px;color:var(--ke-text)}
.kedu-app .ke-study-navigation{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.kedu-app .ke-study-navigation button{font:inherit;font-size:13px;font-weight:650;border:1px solid transparent;border-radius:10px;padding:10px 13px;min-height:42px;color:var(--ke-muted);background:transparent;cursor:pointer}.kedu-app .ke-study-navigation button.is-current{background:#eee8ff;border-color:#d9cafa;color:#5b21b6}.kedu-app .ke-study-context{font-size:12px;color:var(--ke-muted)}
.kedu-app .ke-study-content{min-width:0}.kedu-app .ke-study-content>.mp,.kedu-app .ke-study-content>.kr{padding-top:0}.kedu-app .ke-study-content .km-tabs{display:none}.kedu-app.ke-dark .ke-study-navigation button.is-current{background:#392957;color:#e2d3ff}
@media(max-width:750px){.kedu-app .ke-study-bar{padding:12px}.kedu-app .ke-study-brand{width:100%}.kedu-app .ke-study-navigation{order:2;width:100%;flex-wrap:nowrap;overflow:auto}.kedu-app .ke-study-navigation button{flex:1 0 auto;padding:9px}.kedu-app .ke-study-context{order:3;width:100%}}


/* Approved KEdu Classic header and learning navigation. */
.kedu-app .ke-top{gap:20px}
.kedu-app .ke-global-search{flex:1 1 480px;max-width:620px;min-width:160px;margin:0 auto;position:relative}
.kedu-app .ke-global-search .ke-search-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.kedu-app .ke-global-search input{display:block;width:100%;min-width:0;height:43px;padding:9px 18px 9px 39px;border:1px solid #e3d8f3;border-radius:100px;background:#faf9fe;color:#261446;font:inherit;font-size:13px;box-shadow:0 2px 9px rgba(49,25,94,.05)}
.kedu-app .ke-global-search::before{content:'⌕';position:absolute;top:50%;left:14px;transform:translateY(-50%);font-size:25px;color:#7a37cb;pointer-events:none}
.kedu-app .ke-global-search input:focus{outline:3px solid #e9d9fb;border-color:#9850e4;outline-offset:1px}
.kedu-app .ke-nav-group[id=""]{margin:0}
.kedu-app #keNav-more{color:#7b6095}
.kedu-app #keNav-learning{color:#62457c}
.kedu-app .ke-brand{flex-shrink:0}
.kedu-app .ke-top-actions{flex-shrink:0}
@media(max-width:1100px){
 .kedu-app .ke-top{padding-inline:18px;gap:12px}
 .kedu-app .ke-global-search{flex-basis:300px}
}
@media(max-width:780px){
 .kedu-app .ke-top{flex-wrap:nowrap;padding-inline:12px;gap:9px}
 .kedu-app .ke-global-search{flex:1 1 130px}
 .kedu-app .ke-global-search input{font-size:12px;padding-left:30px;height:38px}
 .kedu-app .ke-global-search::before{left:10px;font-size:20px}
 .kedu-app .ke-brand small{display:none}
 .kedu-app .ke-brand strong{font-size:19px}
 .kedu-app .ke-brand img{width:36px;height:36px}
 .kedu-app .ke-top-actions{gap:5px}
 .kedu-app .ke-top-actions button{padding:9px}
}
@media(max-width:475px){
 .kedu-app .ke-global-search{min-width:0}
 .kedu-app .ke-global-search input{height:36px;font-size:11px;padding-right:7px}
 .kedu-app .ke-brand span{display:none}
 .kedu-app .ke-top-actions button#keBalance{font-size:0}
 .kedu-app .ke-top-actions button#keBalance::before{content:'Wallet';font-size:11px}
}


/* Window-width responsive KEdu shell.
   iPad Split View can have a desktop user agent while the usable viewport is narrow. */
@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){
 body.kedu-app{max-width:100%;overflow-x:clip}
 body.kedu-app #keduShell,body.kedu-app .ke-content,body.kedu-app .ke-study-frame,
 body.kedu-app #educationPanel,body.kedu-app #educationBody{min-width:0;max-width:100%;box-sizing:border-box}
 body.kedu-app .ke-top{height:68px;padding:0 12px;gap:10px;max-width:100vw;box-sizing:border-box}
 body.kedu-app .ke-menu-toggle{
  display:grid!important;place-items:center;width:42px;height:42px;min-width:42px;flex:0 0 42px;
  border:0;border-radius:11px;background:#f1edff;color:#6d28d9;font-size:22px
 }
 body.kedu-app .ke-brand{margin-right:0;min-width:0;flex-shrink:0}
 body.kedu-app .ke-brand img{width:38px;height:38px}
 body.kedu-app .ke-brand strong{font-size:19px}
 body.kedu-app .ke-brand small{display:none}
 body.kedu-app .ke-global-search{flex:1 1 140px;min-width:0;max-width:none}
 body.kedu-app .ke-global-search input{width:100%;min-width:0}
 body.kedu-app .ke-top-actions{gap:6px;flex:0 0 auto}
 body.kedu-app .ke-side{
  display:none!important;position:fixed!important;
  inset:0 auto 0 0!important;width:min(310px,86vw)!important;
  max-width:86vw;min-height:100dvh;padding:16px!important;
  z-index:302!important;box-shadow:0 12px 40px #20123a33;
  overflow-y:auto;box-sizing:border-box
 }
 body.kedu-app.ke-drawer-open .ke-side{display:flex!important}
 body.kedu-app .ke-drawer-close{
  display:block;align-self:flex-end;min-width:44px;min-height:44px;border:0;
  border-radius:10px;background:#f1edff;color:#6d28d9;font-size:26px
 }
 body.kedu-app .ke-drawer-backdrop{
  position:fixed;inset:0;z-index:301;border:0;
  background:#160e2e99;width:100%;height:100%
 }
 body.kedu-app.ke-drawer-open{overflow:hidden}
 body.kedu-app .ke-content{
  margin:68px 0 0!important;width:100%!important;
  padding:22px 18px 105px!important;max-width:100%!important
 }
 body.kedu-app #chatPage,body.kedu-app #walletPage{left:0!important}
 body.kedu-app .ke-study-frame{width:100%;max-width:100%;min-width:0}
 body.kedu-app .ke-study-content{min-width:0;max-width:100%}
 body.kedu-app .ke-study-bar{min-width:0}
}
@media (max-width:700px){
 body.kedu-app .ke-content{padding:18px 12px 110px!important}
 body.kedu-app .ke-top{gap:6px;padding:0 8px}
 body.kedu-app .ke-global-search{flex-basis:65px}
 body.kedu-app .ke-top-actions button{padding:7px}
}
/* The panel only reserves a right column when the viewport can actually afford it. */
@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){
 body.kedu-app.kedict-docked .ke-content{padding-right:18px!important}
}
@media (max-width:700px){
 body.kedu-app.kedict-docked .ke-content{padding-right:12px!important}
}


/* The visible Read Aloud controls must expose Stop without opening advanced options. */
.kedu-app .kdr-header-actions [data-study-action="stop"],
.kedu-app .kdr-mobile-actions [data-study-action="stop"]{
 display:inline-flex!important;align-items:center;justify-content:center;
 gap:6px;min-height:42px;min-width:82px;
 border:1px solid #d8bef1;border-radius:11px;
 background:#f5efff;color:#6222a5;
 font-weight:700;white-space:nowrap;
}
.kedu-app [data-study-action="stop"]:disabled{
 opacity:.6;cursor:not-allowed;
}
.kedu-app .kdr-header-actions,.kedu-app .kdr-mobile-actions{
 flex-wrap:wrap;min-width:0;row-gap:8px;
}
.kedu-app .kdr-mobile-actions>[data-study-action]{min-width:0}
@media(max-width:700px){
 .kedu-app .kdr-mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .kedu-app .kdr-mobile-actions>button{width:100%;min-width:0!important}
}


/* Scroll targets stay below the fixed workspace header. */
body.kedu-app{scroll-padding-top:88px}
.kedu-app .pu-page{scroll-margin-top:88px}
@media(max-width:1100px), (max-width:1366px) and (pointer:coarse){
 body.kedu-app{scroll-padding-top:76px}
 .kedu-app .pu-page{scroll-margin-top:76px}
}
/* Pricing help follows the content instead of covering tools and purchases. */
body.kedu-app:has(.pu-surface) .ksg-launch{position:relative!important;inset:auto!important;display:flex;margin:12px 18px calc(100px + env(safe-area-inset-bottom)) auto;width:max-content;max-width:calc(100% - 36px);box-shadow:0 3px 12px #38137624}

.kedu-document-reader:has(.kdr-tools-menu){position:relative;inset:auto;min-width:0;box-sizing:border-box;padding-bottom:calc(5rem + env(safe-area-inset-bottom))}
.kedu-document-reader:has(.kdr-tools-menu) .kdr-header-actions,body:has(.kdr-tools-menu) .ksg-launch{display:none!important}
.kdr-tools-menu{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:calc(.75rem + env(safe-area-inset-bottom));z-index:5}
.kdr-tools-menu>summary{display:block;list-style:none;background:#7134dc;color:white;font:600 14px/1.3 system-ui;border-radius:2rem;padding:.85rem 1rem;cursor:pointer;box-shadow:0 2px 10px #34144c33}
.kdr-tools-menu>summary::-webkit-details-marker{display:none}
.kdr-tools-panel{position:absolute;right:0;bottom:calc(100% + .5rem);width:min(18rem,calc(100vw - 2rem));max-height:65vh;overflow:auto;box-sizing:border-box;background:var(--ke-card,#fff);color:var(--ke-text,#241a32);border:1px solid #ddd3ed;border-radius:1rem;padding:.8rem;box-shadow:0 .5rem 2rem #27114530}
.kdr-tools-panel,.kdr-tools-panel .kedu-audio{display:grid;gap:.4rem}
.kdr-tools-panel button{min-height:42px}

.kdr-tools-menu>summary{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.kdr-tools-menu.is-dragging>summary{cursor:grabbing}


#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) .kedu-ask-view-bar{display:flex!important;align-items:center;flex-wrap:wrap;gap:.4rem}
#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) [data-ask-full]{display:inline-flex!important;order:-1;min-height:44px;color:#5d23ad;background:#f4edff}

#keduAsk .ask-table-scroll{max-width:100%;overflow-x:auto;margin:1em 0;border:1px solid var(--ke-line,#ded7e9);border-radius:.65rem}
#keduAsk .ask-table-scroll table{display:table;width:100%;border-collapse:collapse;font:inherit;text-align:start}
#keduAsk .ask-table-scroll :is(th,td){padding:.6em .8em;text-align:start;vertical-align:top;border-bottom:1px solid var(--ke-line,#ded7e9);overflow-wrap:break-word}
#keduAsk .ask-table-scroll th{background:var(--ke-bg,#f5f1fb);font-weight:650}
#keduAsk .ask-table-scroll tr:last-child td{border-bottom:0}
#keduAsk .ask-table-scroll ol{margin:0;padding-inline-start:1.6em}
#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) .kedu-chat-answer{max-width:72ch;margin-inline:auto;font-size:clamp(1rem,.96rem + .25vw,1.16rem);line-height:1.65}
#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) .kedu-chat-answer h4{font-size:1.16em;line-height:1.35;margin:1.4em 0 .45em;font-weight:700}
#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) .kedu-chat-teaching p{margin:.65em 0}

/* Keep the existing return control above the independently scrolling answer. */
body.kedu-app:has(#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus)) :is(.ke-top,.ke-side,.ke-bottom){display:none!important}
body.kedu-app #keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus){position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:0!important;z-index:2147483000}
#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) .kedu-chat-message{max-width:none;width:100%;margin-inline:0}
#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) .kedu-chat-answer{max-width:none;width:auto;margin-inline:0}
#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) .kedu-ask-thread{padding-inline:clamp(12px,1.5vw,24px)}
#keduAsk:is(.kedu-ask-full,.kedu-ask-reading-focus) .kedu-ask-view-bar{position:relative;order:-1;flex:none;z-index:5;background:var(--ke-card,#fff)}

body.kedu-app #keduAsk.kedu-ask-full {
 display:flex!important; flex-direction:column; box-sizing:border-box; border:0; color:var(--ke-text,#172033);
}
body.kedu-app #keduAsk.kedu-ask-full :is(.kedu-chat-canvas,.kedu-ask-layout,.kedu-ask-main,.kedu-ask-thread,.kedu-chat-assistant,.kedu-chat-answer) {
 box-sizing:border-box; width:100%!important; max-width:none!important; margin-inline:0!important; min-width:0;
}
body.kedu-app #keduAsk.kedu-ask-full .kedu-chat-answer {padding-inline:0!important}
body.kedu-app #keduAsk.kedu-ask-full .kedu-ask-view-bar {display:flex!important;order:-1;flex:0 0 auto}
