/* Public app layout: fills _layout_main's `_main` stack. */

/* No background here: the page behind the cards is each page's own
   (.app-backdrop, home/home.css), so it moves with the page's layer when a
   transition animates it - here, it stayed put and the layers showed through
   each other mid-slide. The skin's tokens still reach it: they're declared on
   .app-skin and inherited. */

.app-shell {
  /* height, not min-height: flow-layer (position:absolute, height:100%)
     contributes nothing to intrinsic height, so this chain needs a definite
     size handed down from here - min-height only clamps the final box AFTER
     layout, it doesn't give .app-main something to flex-grow into. 100%: this
     fills _layout_main's `_main` stack, which sizes it. */
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  /* flex items default to min-height:auto (content-based), which can refuse
     to shrink below their content size. flow-stack's only content is
     absolutely positioned (contributes 0 to that), so this rarely bites here,
     but it's the standard guard whenever a flex item must take the REST of a
     definite-height column rather than size to its content. */
  min-height: 0;
  position: relative;
}
