/* The working form belongs to the page. Only the guided presentation uses a bounded stage. */
@media screen {
  html[data-page-flow="shell"] {scroll-padding-top:calc(var(--ribbon) + 16px)}
  html[data-page-flow="shell"] .workspace {height:auto;min-height:calc(100dvh - var(--ribbon));grid-template-rows:auto auto auto;align-items:start}
  html[data-page-flow="shell"] .workspace>.view {display:none}
  html[data-page-flow="shell"] .presnp-host {height:auto;min-height:0;align-self:start;overflow:clip}
  html[data-page-flow="shell"] .presnp-host iframe {height:var(--presnp-page-height,900px)}
  html[data-page-flow="shell"] .app-header {min-height:88px}
  html[data-page-flow="shell"] .app-footer {min-height:42px;padding-bottom:24px}
  @media(min-width:851px) {
    html[data-page-flow="shell"] .sidebar {position:sticky;top:var(--ribbon);height:calc(100dvh - var(--ribbon))}
  }
  @media(max-width:850px) {
    html[data-page-flow="shell"] .app-header {min-height:78px}
  }

  html[data-page-flow="form"],html[data-page-flow="form"] body {height:auto;min-height:0;overflow:visible!important;scroll-padding-top:0}
  html[data-page-flow="form"] #presnp-wizard {height:auto;min-height:0;overflow:visible}
  html[data-page-flow="form"] #wizard-viewport {flex:none;overflow:visible;min-height:0}
  html[data-page-flow="form"] .wizard-header {position:relative}
  html[data-page-flow="form"] .wizard-steps,
  html[data-page-flow="form"] .wizard-bottom {position:static}
  html[data-page-flow="form"] .wizard-bottom {padding-bottom:120px}
  html[data-page-flow="form"] #wizard-pane-2 .cockpit-preview {position:static}
  html[data-page-flow="form"] #wizard-pane-2 #viewer-stage {height:clamp(300px,calc(var(--page-viewport-height,800px) * .56),520px)!important;min-height:0!important}
  html[data-page-flow="form"] body>[id^="modal-"]:not(.hidden) {position:absolute!important;top:var(--page-visible-top,0px)!important;bottom:auto!important;height:var(--page-visible-height,600px)!important}
  html[data-page-flow="form"] body>[id^="modal-"]>[data-modal-overlay] {position:absolute!important}
  html[data-page-flow="form"] body>[id^="modal-"] [data-modal-panel] {max-height:calc(var(--page-visible-height,600px) - 32px)!important;overflow:auto}
  html[data-page-flow="form"] #toast-container {position:absolute!important;top:calc(var(--page-visible-top,0px) + var(--page-visible-height,600px) - 100px)!important;bottom:auto!important}
  html[data-page-flow="form"] body:has(>[id^="modal-"]:not(.hidden)) #toast-container {visibility:hidden}
  html[data-page-flow="form"] #presnp-wizard:fullscreen {height:100dvh;overflow-y:auto}
  @media(max-width:700px) {
    html[data-page-flow="form"] #wizard-pane-2 #viewer-stage {height:clamp(280px,calc(var(--page-viewport-height,700px) * .48),410px)!important}
  }
}
