/* Keep the title and original product scenes together above the consultation dock.
   The controller measures title/chrome height and gives only the remaining space to the stage. */
@media (max-width:599px) {
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-heading {margin-bottom:12px;gap:12px}
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-heading h2 {
  font-size:clamp(20px,5.8vw,22px);line-height:1.2;
 }
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-film-stage {
  height:clamp(280px,var(--rg-stage-max-height,calc(100svh - 240px - var(--ai-dock-clearance,0px))),480px);
 }
}
@media (max-width:899px) {
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-app-preview > img {
  height:calc(100% - 36px);width:auto;object-fit:contain;
 }
}
@media (min-width:600px) and (max-width:899px) {
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-heading {margin-bottom:16px}
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-film-stage {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);
  gap:0;height:clamp(400px,var(--rg-stage-max-height,calc(100svh - 330px)),560px);min-height:0;
 }
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-input-scene,
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-generation,
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-app-destination {
  grid-column:1;grid-row:1;justify-self:center;align-self:center;min-width:0;
 }
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-input-scene {
  width:min(100%,560px);height:100%;padding-bottom:54px;
 }
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-composer {left:14px;right:14px}
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-generation {
  width:min(100%,480px);padding:0;pointer-events:none;
 }
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-generation-head {margin-bottom:14px}
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-generated-summary {height:36px;margin-top:12px}
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-app-destination {
  width:auto;height:100%;max-width:none;margin:0;padding:0;pointer-events:none;
 }
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-app-preview {transform:none!important}
 .risk-motion-page .rg-build[data-rg-mode=scroll] .rg-app-preview > img {
  height:calc(100% - 36px);width:auto;max-width:100%;object-fit:contain;
 }
}
