/* v171: viewport-attached artwork; never reserve a footer strip over the cut edge. */
html:has(body.learning-builder){scrollbar-gutter:auto}
body.learning-builder .learn-corner-mascot{--mascot-width:clamp(350px,min(33vw,50svh),560px);position:fixed;inset:auto 0 0 auto!important;width:var(--mascot-width)!important;height:auto!important;aspect-ratio:626/900;overflow:visible;transform:none;contain:layout style;animation:learn-edge-fade 700ms var(--learn-ease) both}
body.learning-builder .learn-corner-mascot img{position:absolute;inset:auto 0 0 auto!important;display:block;width:100%!important;height:auto!important;max-width:none!important;max-height:none;object-fit:fill;object-position:initial!important;margin:0!important;transform:none}
body.learning-builder[data-learning-scene=goal] .learn-corner-mascot img{right:-1.5%!important}
body.learning-builder[data-learning-scene=stack] .learn-corner-mascot{left:0!important;right:auto!important}
body.learning-builder[data-learning-scene=stack] .learn-corner-mascot img{left:-4%!important;right:auto!important}
body.learning-builder[data-learning-scene=pace] .learn-corner-mascot{aspect-ratio:720/480}
body.learning-builder[data-learning-scene=pace] .learn-corner-mascot img{right:-8.5%!important}
body.learning-builder[data-learning-scene=schedule] .learn-corner-mascot img{right:-6%!important}
body.learning-builder[data-learning-scene=summary] .learn-corner-mascot img{right:-1.5%!important;bottom:-8%!important}
body.learning-builder .learn-footer,body.learning-builder:not([data-learning-scene=home]) .learn-footer{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* Two 44px touch targets share one vertical centre line, at x=34px. */
body.learning-builder .learn-colour-control{left:max(12px,env(safe-area-inset-left,0px))!important;bottom:calc(max(12px,env(safe-area-inset-bottom,0px)) + 56px)!important;width:44px;height:44px;padding:0;margin:0}
body.learning-builder .learn-colour-control label{width:44px;height:44px;min-width:44px;min-height:44px;margin:0}
body.learning-builder .cg-chat{left:max(12px,env(safe-area-inset-left,0px))!important;right:auto!important;bottom:max(12px,env(safe-area-inset-bottom,0px))!important}
body.learning-builder .cg-chat .cg-chat-toggle{width:44px!important;height:44px!important;min-width:44px;min-height:44px;display:grid;place-items:center;padding:0!important;border-radius:50%;line-height:1}
body.learning-builder .cg-chat .cg-chat-toggle svg{display:block;width:22px;height:22px;margin:0;justify-self:center;align-self:center}
@media(max-width:800px){body.learning-builder .learn-corner-mascot{--mascot-width:clamp(155px,34vw,270px)}}
@keyframes learn-edge-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){body.learning-builder .learn-corner-mascot{animation:none}}
