/* ACTIVE Phase 6B — one terminal-clearance owner and stable short-session composition. */
:root{
  --active-terminal-clearance:32px;
  --active-short-session-min-height:calc(100dvh - 72px - var(--active-fixed-nav-clearance) - 26px);
}

/* The ACTIVE scroller already owns the fixed-dock and safe-area reserve. */
#activeContent.active-setup-shell{
  padding-bottom:0!important;
}

/* These nested screens previously reserved the same dock space a second time. */
#activeContent :is(
  .home-customise-screen,
  .home-picker-screen,
  .sy-flow-screen,
  .sy-saved-routines-screen,
  .active-progress-screen,
  .yoga-live-screen,
  .mobility-live-screen,
  .mobility-full-outcome
){
  padding-bottom:0!important;
}

#activeContent :is(
  .sy-saved-routines-screen.is-empty-v6,
  .active-progress-screen.is-empty-v6
){
  padding-bottom:0!important;
}

/*
 * Outdoor live screens are deliberately compact. Distribute only their spare
 * viewport height between the existing heading, instrument and terminal action;
 * the instrument itself is not stretched and narrow/zoomed layouts can still
 * grow and scroll naturally.
 */
#activeContent:has(> #walkSessionCard),
#activeContent:has(> #runSessionCard),
#activeContent:has(> #homeRestEndV2){
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  align-content:space-between!important;
  min-height:var(--active-short-session-min-height)!important;
  padding-bottom:16px!important;
}

@media(prefers-reduced-motion:reduce){
  #activeContent:has(> #walkSessionCard),
  #activeContent:has(> #runSessionCard),
  #activeContent:has(> #homeRestEndV2){
    scroll-behavior:auto!important;
  }
}
