/* Separate comparison row: does not displace or squeeze Atmosphere/Pills. */
#home-layout-preview { display:none; }
#home-layout-preview { position:fixed; z-index:10; top:var(--home-placement-top,96px); left:max(16px,env(safe-area-inset-left)); max-width:calc(100vw - 78px); flex-direction:column; align-items:flex-start; gap:0; font-size:11px; color:var(--ink); }
  #home-layout-preview label { display:flex; align-items:center; gap:4px; min-height:44px; }
  #home-layout-preview select { min-height:44px; min-width:0; max-width:100%; border:0; border-radius:0; padding:8px 4px; color:inherit; background:transparent; font:inherit; }
  #home-layout-preview select:focus-visible { outline:1px solid currentColor; outline-offset:1px; }
  body:is(.home-typing,.home-keyboard-closing) #home-layout-preview,
  body:has(#asking[hidden]) #home-layout-preview { display:none !important; }
  #home-layout-preview:has(#homepage-layout-preview:not([hidden])) { display:flex; }
  #home-placement-preview { display:none !important; }
@media(max-width:600px) {
  #home-layout-preview { display:flex; }
  #home-layout-preview #home-placement-preview { display:flex !important; }
}
  /* Give grid centering the whole composition's actual height. No transformed
     ancestor: the existing viewport-fixed footer must remain viewport-fixed. */
  :root[data-home-placement="group"] body:not(.home-typing):not(.home-keyboard-closing) #asking:not([data-home-flow]) #home-entry { padding-bottom:var(--home-group-space,0px); }
  :root[data-home-placement="group"] body:not(.home-typing):not(.home-keyboard-closing) #asking:not([data-home-flow]) #home-doors { top:calc(100% - var(--home-group-space,0px)); }

/* Necessary short-view scrolling starts below the complete comparison shell. */
body:not(.home-typing):not(.home-keyboard-closing) #asking[data-home-flow] { margin-top:var(--home-layout-flow-top,52px); height:max(44px,calc(var(--home-visible-height,100svh) - var(--home-layout-flow-top,52px) - max(12px,env(safe-area-inset-bottom)) - 52px)); }
