/* Shared child discovery; device History is a parent tool. */
.studio-destinations{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:22px 0 28px}
.studio-destinations button{border:1px solid #d5e5ec;border-radius:24px;padding:14px 12px 18px;min-height:190px;background:#fff;box-shadow:0 5px 0 #dceaf0;color:#17304e;cursor:pointer;transition:transform .15s,box-shadow .15s}
.studio-destinations button:hover{transform:translateY(-3px);box-shadow:0 8px 0 #dceaf0}
.studio-destinations button:active{transform:translateY(2px)}
.studio-destinations img{display:block;width:100%;height:125px;object-fit:contain;border-radius:16px;margin-bottom:10px}
.studio-destinations strong{font-family:inherit;font-weight:800;font-size:20px;line-height:1.2;display:block}
.studio-destinations [data-destination=learn]{background:#fff5dd}.studio-destinations [data-destination=music]{background:#f0eaff}.studio-destinations [data-destination=create]{background:#ffece6}.studio-destinations [data-destination=games]{background:#e6f6ff}.studio-destinations [data-destination=calm]{background:#e8f4e9}
.studio-home-button{margin-bottom:16px;min-height:48px}.studio-quick-shelf{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:28px}.studio-quick-shelf>div{background:#fff;border:1px solid #d5e5ec;border-radius:20px;padding:18px}.studio-quick-shelf h2{font-size:18px;margin:0 0 10px}.studio-quick-shelf p{font-size:14px;color:#486178;line-height:1.5}.studio-quick-shelf .studio-shelf-note{grid-column:1/-1;margin:0}.studio-quick-shelf button{min-height:48px;border:1px solid #d5e5ec;border-radius:14px;background:#f4f9fc;color:#17304e;font:inherit;padding:10px 14px;margin:4px;cursor:pointer}.studio-favorite-button{min-height:48px;border:1px solid #d5e5ec;border-radius:14px;background:#fff;font:inherit;color:#243d61;padding:10px 14px;cursor:pointer}.studio-favorite-button[aria-pressed=true]{background:#fff0e8;color:#82331a}.studio-navigation.studio-no-selection .studio-nav-indicator{opacity:0}.parent-device-history{padding:20px;margin:0 0 20px;background:#f0f7fb;border-radius:18px}.parent-device-history h2{font-size:20px}.five-destinations :is(.studio-destinations button,.studio-quick-shelf button,.studio-favorite-button,.studio-home-button):focus-visible{outline:3px solid #236ca4;outline-offset:4px}
body.five-destinations[data-presentation=website] .studio-activity-list{max-height:none}body.five-destinations[data-studio-room=home] .studio-category-filters{display:none}
@media(max-width:850px){.studio-destinations{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-destinations button{min-height:165px}.studio-destinations img{height:105px}}
@media(max-width:550px){.studio-destinations{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.studio-destinations button{min-height:150px;padding:10px}.studio-destinations img{height:95px}.studio-destinations strong{font-size:18px}.studio-quick-shelf{grid-template-columns:1fr}.studio-quick-shelf .studio-shelf-note{grid-column:auto}.studio-detail-actions{flex-wrap:wrap}.studio-favorite-button{flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){.studio-destinations button{transition:none}.studio-destinations button:hover{transform:none}}
body.five-destinations #activityHistory .history-back{display:inline-flex;min-height:48px;align-items:center}
/* Home is a full-width illustrated chooser, not the desktop catalog's two-column rail. */
body.five-destinations[data-studio-room=home] #home{display:block}
.studio-destinations{width:100%}
.studio-destinations img{object-fit:cover}
.studio-card-favorite{display:none}
@media(max-width:759px){body.five-destinations .studio-card-favorite{display:inline-flex;grid-column:2;align-items:center;justify-content:center;min-height:44px;border:1px solid #d5e5ec;border-radius:12px;background:#fff7ec;color:#243d61;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer}}


/* Six App destinations stay labelled, visible and comfortably tappable. */
body.studio-app[data-presentation=app] .studio-navigation{width:min(660px,calc(100% - 20px));max-width:calc(100% - 20px);grid-template-columns:repeat(6,minmax(44px,1fr));padding:5px}
body.studio-app[data-presentation=app] .studio-navigation .studio-nav-indicator{top:5px;bottom:5px;left:5px;width:calc((100% - 12px)/6)}
body.studio-app[data-presentation=app] .studio-navigation button{min-width:44px;min-height:56px;font-size:12px;padding:6px 1px}
body.studio-app[data-presentation=app] .studio-navigation button span{font-size:inherit;white-space:nowrap}
/* Below 320 CSS pixels (including large zoom), retain target sizes using two rows. */
@media(max-width:319px){body.studio-app[data-presentation=app] .studio-navigation{grid-template-columns:repeat(3,minmax(44px,1fr));border-radius:24px}body.studio-app[data-presentation=app] .studio-nav-indicator{display:none}body.studio-app[data-presentation=app] .studio-navigation button[aria-current=page]{background:var(--studio-navy)}body.studio-app[data-presentation=app].studio-browsing{padding-bottom:calc(150px + env(safe-area-inset-bottom))}}

/* Website: an ordinary full-width browsing catalog, not an App list/detail shell. */
body.website-catalog.studio-browsing{padding-bottom:0}
body.website-catalog #home{display:block}
body.website-catalog #home>#learningStagePanel,body.website-catalog .studio-catalog-workspace{display:block}
body.website-catalog .studio-activity-detail{display:none}
body.website-catalog .studio-navigation{position:static;transform:none;display:flex;flex-wrap:wrap;width:100%;max-width:none;gap:8px;margin:0 0 22px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.website-catalog .studio-navigation .studio-nav-indicator{display:none}
body.website-catalog .studio-navigation button{flex:0 1 auto;flex-direction:row;min-width:84px;min-height:48px;padding:10px 18px;gap:8px;border:1px solid var(--studio-border);background:#fff;font-size:14px}
body.website-catalog .studio-navigation button[aria-current=page]{background:var(--studio-navy);color:#fff}
body.website-catalog .studio-navigation button svg{width:20px;height:20px}
body.website-catalog .studio-activity-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-height:none}
body.website-catalog #home.bright-path .activity-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:18px;min-width:0;border-radius:22px}
body.website-catalog #home.bright-path .activity-card.studio-selected{border-color:var(--studio-border);box-shadow:none}
body.website-catalog #home.bright-path .activity-card>.studio-card-art{display:block;width:100%;height:180px;max-width:100%;object-fit:contain;background:#f5fbff;border-radius:14px}
body.website-catalog #home.bright-path .activity-card>strong{font-size:20px;line-height:1.2}
body.website-catalog #home.bright-path .activity-card>span:not(.learning-icon):not(.lab-card-example){font-size:14px;line-height:1.5}
body.website-catalog #home.bright-path .activity-card .activity-card-actions{margin-top:auto;flex-wrap:wrap}
body.website-catalog .studio-card-favorite{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--studio-border);border-radius:12px;background:#fff7ec;font:inherit;color:var(--studio-navy);cursor:pointer}
body.website-catalog .studio-card-favorite:focus-visible{outline:3px solid #0879ce;outline-offset:3px}
@media(max-width:899px){body.website-catalog .studio-activity-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:549px){body.website-catalog .studio-activity-list{grid-template-columns:minmax(0,1fr)}body.website-catalog .studio-navigation{gap:6px}body.website-catalog .studio-navigation button{flex:1 1 28%;padding:10px 8px;min-width:80px}body.website-catalog .studio-navigation button svg{display:none}}

/* Favorite controls overlay existing artwork without participating in card layout. */
body.five-destinations #home .activity-card,body.five-destinations .studio-activity-detail{position:relative}
body.five-destinations #home .activity-card>.studio-card-favorite,body.five-destinations .studio-activity-detail>.studio-favorite-button{position:absolute;grid-column:auto;grid-row:auto;inset:8px 8px auto auto;z-index:2;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:1px solid #d5e5ec;border-radius:50%;background:#fff;color:#243d61;font:36px/1 Arial,sans-serif;box-shadow:0 1px 4px #17304e26;cursor:pointer}
body.five-destinations #home .activity-card>.studio-card-favorite[aria-pressed=true],body.five-destinations .studio-activity-detail>.studio-favorite-button[aria-pressed=true]{color:#bd1735;background:#fff}
body.five-destinations #home .activity-card>.studio-card-favorite:focus-visible,body.five-destinations .studio-activity-detail>.studio-favorite-button:focus-visible{outline:3px solid #0879ce;outline-offset:3px}

/* Familiar rounded heart, independent of platform font glyphs. */
.studio-heart-icon{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
[aria-pressed=true]>.studio-heart-icon{fill:currentColor}
/* Keep the heart at the upper-right, above Play, in every presentation. */
body.five-destinations[data-presentation=app] #home .activity-card>.studio-card-favorite{inset:8px 8px auto auto}
/* Reserve a small text gutter so titles never run under the heart. */
body.five-destinations[data-presentation=app] #home .activity-card>strong,
body.five-destinations[data-presentation=app] #home .activity-card>span:not(.learning-icon):not(.lab-card-example){padding-right:44px}
@media(max-width:759px){body.five-destinations[data-presentation=app]:is([data-studio-room=music],[data-studio-room=calm]) #home .activity-card>strong,body.five-destinations[data-presentation=app]:is([data-studio-room=music],[data-studio-room=calm]) #home .activity-card>span:not(.learning-icon):not(.lab-card-example){padding-right:0}}
