/* Compact shelf, scoped away from all activity screens. Heights grow with text. */
body.homepage-visible>header{padding:10px 32px;gap:10px 16px;min-height:68px;box-sizing:border-box}
body.homepage-visible>main{padding-top:18px}
#home>.eyebrow{display:none}
#home .compact-hero{padding-bottom:14px;gap:16px}
#home .compact-hero h1{font-size:clamp(26px,2.7vw,34px);line-height:1.1;margin:0 0 7px}
#home .compact-hero .intro{font-size:14px}
#home .compact-hero-tiles span{width:44px;height:50px;font-size:29px}
#home .section-heading{margin-bottom:8px}
#home .section-heading h2{font-size:18px}
#home .stage-tabs{margin:8px 0 10px;gap:8px}
#home .stage-tabs button{min-height:48px;padding:7px 14px;font-size:16px;gap:2px}
#home .stage-tabs button span{font-size:11px}
#home .learning-category{margin-top:18px;scroll-margin-top:16px}
#home .category-heading{padding-top:12px;margin-bottom:10px;gap:12px}
#home .category-heading h2{font-size:23px}
#home .category-heading p{margin-top:0}
#home .app-shelf{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#home .learning-card{grid-column:auto;min-height:205px;padding:16px;gap:9px;border-radius:16px}
#home .learning-card strong{font-size:20px;line-height:1.2;letter-spacing:-.5px;overflow-wrap:anywhere}
#home .learning-card>span:not(.learning-icon):not(.lab-card-example){font-size:14px;line-height:1.35}
#home .learning-card>.learning-icon{width:44px;height:42px;font-size:22px;margin-bottom:12px}
#home .lab-card-example{width:104px;height:65px;top:9px;right:12px}
#home .learning-card>b{font-size:13px}
.home-category-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.home-category-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;font-size:14px;background:#fffefa;box-sizing:border-box}
.home-category-links a:hover{background:var(--mint)}
.home-parent-toggle{min-height:44px;padding:7px 10px;border:1px solid var(--line);border-radius:12px;background:#fffefa;color:var(--ink);font-size:14px}
.home-parent-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;flex:1;min-width:0}
.home-parent-controls[hidden],.home-parent-toggle[hidden]{display:none!important}
.home-parent-controls .sound-toggle{min-height:44px}
.home-parent-controls .account-header-actions{width:auto}
.home-category-links a:focus-visible,.home-parent-toggle:focus-visible,#home .learning-card:focus-visible{outline:3px solid #3977ac;outline-offset:3px}
@media(max-width:1099px){#home .app-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:699px){
 body.homepage-visible>header{padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));min-height:60px;gap:8px}
 body.homepage-visible>main{padding:14px max(16px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 body.homepage-visible>header .brand{flex:1;min-width:0;flex-shrink:1;gap:7px}
 body.homepage-visible>header .brand-wordmark{font-size:18px;letter-spacing:-.5px}
 body.homepage-visible>header .brand-book,body.homepage-visible>header .brand-book img{width:30px;height:30px;flex-basis:30px}
 .home-parent-toggle{max-width:110px;font-size:13px;line-height:1.2}
 .home-parent-controls{flex-basis:100%;padding:10px 0;border-top:1px solid var(--line);justify-content:space-between}
 .home-parent-controls .account-header-actions{width:100%;order:3}
 .home-parent-controls .home-screen-button{margin-left:auto}
 #home .compact-hero{padding-bottom:10px;gap:8px}
 #home .compact-hero h1{font-size:26px;letter-spacing:-1px}
 #home .compact-hero .intro{font-size:13px}
 #home .compact-hero-tiles{gap:3px;padding:0}
 #home .compact-hero-tiles span{width:23px;height:32px;font-size:19px;border-radius:7px}
 #home .section-heading{display:none}
 #home .stage-tabs button{flex:1;min-width:0;padding:7px 10px;font-size:15px}
 #home .stage-tabs button span{font-size:11px}
 #home .app-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #home .learning-card{min-height:175px;padding:12px;gap:8px}
 #home .learning-card strong{font-size:17px;letter-spacing:-.35px}
 #home .learning-card>.learning-icon{width:40px;height:36px;font-size:21px;margin-bottom:0}
 #home .lab-card-example{display:none}
 #home .learning-card>span:not(.learning-icon):not(.lab-card-example){font-size:14px}
 #home .category-heading{padding-top:10px;margin-bottom:10px}
 #home .category-heading h2{font-size:21px}
 #home .category-heading p,#home .brand-preschool-label{display:none}
 #home .learning-category{margin-top:12px}
 .home-category-links{flex-wrap:nowrap;overflow-x:auto;padding:3px 3px 6px;scrollbar-width:thin}
 .home-category-links a{flex-shrink:0;padding:0 10px;font-size:13px}
}
/* rem-based width makes text-size preferences collapse cramped phone cards too. */
@media(max-width:22.49em){#home .app-shelf{grid-template-columns:minmax(0,1fr)}#home .compact-hero-tiles{display:none}}
#home.home-large-text .app-shelf{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
