
/* During a finite destination-settling window, inherited late auto-scroll calls must not
   inherit the app's global smooth scrolling; otherwise long recipe pages animate for seconds. */
html.pspC6LandingInstantV3781,
html.pspC6LandingInstantV3781 body{scroll-behavior:auto!important}

/* Pizza Style Profiler v119E.3.7.8.2 — C6 navigation/menu/snapshot preview correction. */

/* Guide/Help and Print/Export remain part of the one canonical Quick Shortcuts grid.
   Their complete choice list is docked as a full-width row below the standard shortcuts,
   so the menu is neither clipped nor replaced by a competing shortcut presentation. */
body.pspC6GuideSubmenuOpenV3781 #pspQuickAccordionBodyV984,
body.pspC6PrintSubmenuOpenV3781 #pspQuickAccordionBodyV984{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  align-content:start!important;
}
#pspQuickAccordionBodyV984>#guideHelpMenu.open,
#pspQuickAccordionBodyV984>#printExportMenu.open{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-column:1/-1!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  max-height:none!important;
  overflow:visible!important;
  margin:0!important;
  padding:7px!important;
  border:1px solid #c8ddcc!important;
  border-radius:10px!important;
  box-shadow:none!important;
  background:#fffefa!important;
  box-sizing:border-box!important;
}
#pspQuickAccordionBodyV984>#guideHelpMenu.open button,
#pspQuickAccordionBodyV984>#printExportMenu.open button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  margin:0!important;
  padding:8px 7px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
  font-size:12px!important;
  line-height:1.15!important;
  border:1px solid rgba(11,107,53,.18)!important;
  border-radius:9px!important;
}

/* The navigation panels are fixed below the live sticky stack. Resetting their internal
   scrollTop on every open makes Input Index and Quick Nav always begin at their headings. */
body.pspInputIndexOpenV74 #pspInputIndexPanelV74,
body.pspQuickNavOpenV68 #pspWorkflowNavigatorTopV45{
  top:calc(var(--psp-live-stack-bottom-v3781,var(--psp-top-stack-height-v984,118px)) + 4px)!important;
  max-height:calc(100dvh - var(--psp-live-stack-bottom-v3781,var(--psp-top-stack-height-v984,118px)) - 8px)!important;
  height:auto!important;
  scroll-behavior:auto!important;
}


/* Keep enough temporary room below the last saved card to restore that exact card to the
   top of the usable viewport after its inline preview is removed. The class is cleared by
   the next normal navigation action or when another preview opens. */
body.pspC6LibraryReturnClearanceV3781 #recipeLibrary::after{
  content:'';
  display:block;
  height:calc(100dvh - var(--psp-live-stack-bottom-v3781,var(--psp-top-stack-height-v984,118px)) + 24px);
  min-height:420px;
  pointer-events:none;
}

/* Saved snapshot preview: retain every C5 report section and the unchanged print model,
   but present the interactive copy as compact section accordions rather than a 40,000-pixel
   continuously expanded document. The identity/Close row stays reachable while reading. */
body.pspC6SnapshotPreviewOpenV3781 #pspWorkflowLibrarySectionV55,
body.pspC6SnapshotPreviewOpenV3781 #pspWorkflowLibrarySectionV55>.inner{
  overflow:visible!important;
}
#savedSnapshotViewer .c5SavedViewer{
  position:relative!important;
  scroll-margin-top:calc(env(safe-area-inset-top,0px) + var(--psp-top-stack-height-v984,118px) + 12px)!important;
}
#savedSnapshotViewer .pspC6SnapshotControlsV3781{
  position:sticky!important;
  top:calc(env(safe-area-inset-top,0px) + var(--psp-top-stack-height-v984,118px) + 4px)!important;
  z-index:20!important;
  margin:-2px -2px 8px!important;
  padding:7px!important;
  border:1px solid #c8ddcc!important;
  border-radius:10px!important;
  background:rgba(247,251,248,.98)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.10)!important;
  backdrop-filter:blur(7px)!important;
}
#savedSnapshotViewer .pspC6SnapshotControlsV3781 .c5SavedHeader{
  position:static!important;
  margin:0!important;
}
#savedSnapshotViewer .c5SavedActions{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  margin:8px 0 10px!important;
  background:transparent!important;
}
#savedSnapshotViewer .pspC6SnapshotSectionToolsV3781{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  grid-column:1/-1!important;
  width:100%!important;
}
#savedSnapshotViewer .pspC6SnapshotSectionToolsV3781 button{
  width:100%!important;
  min-width:0!important;
  white-space:normal!important;
}
#savedSnapshotViewer .c5SavedPreviewBody{
  max-height:none!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
}
#savedSnapshotViewer .c5SavedPreviewBody>.c5ReportHeader{
  margin:8px 0 12px!important;
}
#savedSnapshotViewer .pspC6SnapshotSectionV3781{
  display:block!important;
  margin:8px 0!important;
  border:1px solid #c8ddcc!important;
  border-radius:11px!important;
  background:#fffefa!important;
  overflow:hidden!important;
  scroll-margin-top:calc(env(safe-area-inset-top,0px) + var(--psp-top-stack-height-v984,118px) + 12px)!important;
}
#savedSnapshotViewer .pspC6SnapshotSectionV3781>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:48px!important;
  padding:11px 13px!important;
  list-style:none!important;
  cursor:pointer!important;
  color:#075b2d!important;
  font-weight:800!important;
  line-height:1.18!important;
  background:#f7fbf8!important;
}
#savedSnapshotViewer .pspC6SnapshotSectionV3781>summary::-webkit-details-marker{display:none!important}
#savedSnapshotViewer .pspC6SnapshotSectionV3781>summary::after{
  content:'▾';
  flex:0 0 auto;
  font-size:17px;
  line-height:1;
  transition:transform .15s ease;
}
#savedSnapshotViewer .pspC6SnapshotSectionV3781[open]>summary::after{transform:rotate(180deg)}
#savedSnapshotViewer .pspC6SnapshotSectionV3781>.c5Section{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
#savedSnapshotViewer .pspC6SnapshotSectionV3781>.c5Section>h2:first-child{display:none!important}
#savedSnapshotViewer .pspC6SnapshotBottomCloseV3781{
  display:block!important;
  width:100%!important;
  margin:10px 0 0!important;
}
.pspC6ReturnPulseV3781{
  outline:4px solid rgba(31,110,65,.38)!important;
  outline-offset:4px!important;
  border-radius:10px!important;
  transition:outline-color .45s ease!important;
}
@media(max-width:600px){
  #savedSnapshotViewer .c5SavedHeader{display:block!important}
  #savedSnapshotViewer .c5SavedHeader button{margin-top:8px!important;width:100%!important}
  #savedSnapshotViewer .c5SavedActions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
  #savedSnapshotViewer .c5SavedActions button{width:100%!important;min-width:0!important}
  #savedSnapshotViewer .pspC6SnapshotSectionToolsV3781{grid-template-columns:1fr 1fr!important}
}
@media(max-width:360px){
  #pspQuickAccordionBodyV984>#guideHelpMenu.open,
  #pspQuickAccordionBodyV984>#printExportMenu.open{grid-template-columns:1fr!important}
}
@media print{
  .pspC6SnapshotControlsV3781,.pspC6SnapshotBottomCloseV3781{position:static!important}
}
