/* Shared attribution remains in document flow above the fixed navigation. */
body.sg-home-active .app>.footer.sb-app-footer,
body.sb-day-active.sg-home-active .app>.footer.sb-app-footer{
 display:block!important;text-align:center;margin:40px 0 0!important;padding:0 14px 14px!important;
 color:#868087;font:400 11px/1.8 Montserrat,Arial,sans-serif!important;background:transparent!important;border:0!important
}
.sb-app-footer .prototype-label{display:none!important}
[data-color-mode=night] body.sg-home-active .app>.footer.sb-app-footer{color:#b5adb6}
body.sb-day-active.sg-home-active>.nav-wrap{display:block!important}
body.sb-day-active.sg-home-active .app{max-width:620px!important}
body.sb-day-active #sb-day-preview .sb-phone{min-height:0;background:transparent}
body.sb-day-active #sb-day-preview main{padding:0!important}
body.sb-day-active #sb-day-preview .sb-back-link{display:flex;align-items:center;gap:8px;padding:8px 0;margin:0 0 18px;font:400 12px/1.6 Montserrat,sans-serif}
body.sb-day-active #sb-day-preview .sb-back-link svg{width:16px;height:16px}
body.sb-day-active #sb-day-preview .sb-top,
body.sb-day-active #sb-day-preview .sb-bottom-nav{display:none!important}
.sc-add-direction{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:46px;margin-top:14px;padding:12px 16px;border:1px solid var(--sc-border);border-radius:19px;background:var(--sc-surface);color:var(--sc-text);font:500 12px/1.5 Montserrat,sans-serif}
.sc-add-direction>span{font-size:19px;font-weight:400;line-height:1}
body.sg-cab-active #view .sc-multiple-hint{font-size:11px!important;line-height:1.7!important;color:var(--sc-muted);text-align:center;margin:10px 12px 0}
body[data-view=profile] #view .owner-controls h3{color:var(--sc-muted)}

/* Approved courses: reserve the fixed controls once, on the app shell.
   Individual lesson styles previously added 260px inside the article or
   250px on the shell, leaving inconsistent empty tails after navigation. */
body:has(#view .mc-course.sai-intro .mc-lesson-tools) main.app{
 padding-bottom:calc(132px + env(safe-area-inset-bottom))!important;
}
#view .mc-course.sai-intro:has(.mc-lesson-tools){
 padding-bottom:0!important;
}
#view .mc-course.sai-intro:has(.mc-lesson-tools) .mc-navigation{
 margin-bottom:0!important;
}
body:has(#view .mc-course.sai-intro .mc-lesson-tools) .app>.footer.sb-app-footer{
 margin-top:40px!important;
 padding-bottom:0!important;
}

/* Research fills the native content column instead of a second framed screen. */
body.sg-home-active:has(#sb-research-root){background:#222329!important;color:#faf6f9!important}
body.sg-home-active:has(#sb-research-root)::before{background:none!important}
body:has(#sb-research-root) #view .sb-panel.sb-research,
body:has(#sb-research-root) #view #sb-research-root{
 width:100%;max-width:none;min-width:0;margin:0;padding:0;border:0;
 border-radius:0;background:transparent;box-shadow:none;
}
