/* v119E.3.7.9.49.51 — review-mode safe area + progressive information hierarchy. Screen only. */
@media screen {
  :root{--psp-safe-top:env(safe-area-inset-top,0px);--psp-review-stack:116px}
  header{padding-top:calc(10px + var(--psp-safe-top))!important}
  #quickControls{top:var(--psp-safe-top)!important}
  body.pspRecipeReviewMode header{display:none!important}
  body.pspRecipeReviewMode #quickControls{top:var(--psp-safe-top)!important}
  body.pspRecipeReviewMode{padding-top:var(--psp-safe-top)}
  body.pspRecipeReviewMode #pspV98AtGlanceCard{position:sticky;top:calc(var(--psp-safe-top) + 52px);z-index:998}
  [data-psp-review-destination],#procedure,#kitchenRecipe,#timeline{scroll-margin-top:calc(var(--psp-safe-top) + var(--psp-review-stack) + 12px)}

  .pspProgressiveDetails{margin:8px 0;border:1px solid #c8d8cf;border-radius:10px;background:#fbfcfa;overflow:hidden}
  .pspProgressiveDetails>summary{cursor:pointer;padding:10px 12px;font-weight:850;color:#174f38;list-style:none}
  .pspProgressiveDetails>summary::-webkit-details-marker{display:none}
  .pspProgressiveDetails>summary:after{content:'▾';float:right}
  .pspProgressiveDetails[open]>summary:after{content:'▴'}
  .pspProgressiveDetails>.pspProgressiveBody{padding:0 12px 11px}
  .pspSecondaryInstruction{font-size:.93em;line-height:1.34}

  /* Full Formula: baker-facing formula first; audit material remains available, collapsed. */
  .pspFormulaAdvanced{margin-top:9px}
  .pspFormulaAdvanced .row{padding-block:4px!important}
  .pspFormulaAdvanced [data-psp-pp-expanded]:after{content:' percentage points';font-weight:400}

  /* Procedure: stronger scan rhythm without changing generated instructions. */
  #procedure ol,#kitchenRecipe ol{padding-left:2.2rem}
  #procedure li,#kitchenRecipe li{padding:4px 0 6px 2px;border-bottom:1px solid rgba(23,79,56,.10);line-height:1.24!important}
  #procedure li:last-child,#kitchenRecipe li:last-child{border-bottom:0}
  #procedure li strong:first-child,#kitchenRecipe li strong:first-child{font-weight:900}
  .pspProcedureCompactNote{display:block;margin-top:3px;font-size:.92em;line-height:1.3}

  /* Timeline: preserve the native single date/time rendering; remove duplicate generated labels. */
  #timeline .pspTimelineEvent50:before,#timeline .pspTimelineEvent50:after{content:none!important;display:none!important}
  #timeline.pspTimelineClean50 .pspTimelineDateGroup{margin-top:10px!important}
  #timeline.pspTimelineClean50 .pspTimelineItem{padding-block:4px!important}

  /* Instructional panels: essentials stay open; teaching/detail collapses. */
  .pspEssentialsCard50{padding:10px 12px!important;border-radius:10px;background:#f3f8f5}
  .pspEssentialsCard50 p{margin:3px 0!important}
  .pspCompactGuidance50 p,.pspCompactGuidance50 li{margin:3px 0!important;line-height:1.3!important}
  .pspCompactGuidance50{font-size:.94em}

  /* Fermentation + temperature: reduce oversized explanation blocks. */
  #pspV84ContainerGuidance.pspCompactGuidance50{padding:10px 12px!important}
  #pspV84ContainerGuidance.pspCompactGuidance50 button{min-height:36px!important}
  #pspV94TemperatureTrackingPanel .pspV94TempIntro{margin-bottom:6px!important}
  #pspV94TemperatureTrackingPanel .pspV94TempCard{padding:9px 10px!important;margin:5px 0!important}
  #pspV94TemperatureTrackingPanel .pspV94TempGuidance{font-size:.88em;line-height:1.28;margin-top:4px}
  #pspV94TemperatureTrackingPanel .pspV94TempGuard{font-size:.88em;line-height:1.28;padding:7px 9px}
  .pspDefaultResolution50{font-size:.84em!important;padding:5px 8px!important;margin:4px 0!important;background:#f4f7f6!important;border-radius:7px!important}
}
@media screen and (max-width:520px){
  :root{--psp-review-stack:112px}
  body.pspRecipeReviewMode #pspV98AtGlanceCard{top:calc(var(--psp-safe-top) + 50px)}
  .pspProgressiveDetails>summary{padding:9px 10px;font-size:.92rem}
  .pspProgressiveDetails>.pspProgressiveBody{padding:0 10px 9px}
  #procedure li,#kitchenRecipe li{font-size:.90em!important;line-height:1.23!important}
}

@media screen and (max-width:520px){#procedure ol,#kitchenRecipe ol{padding-left:1.8rem!important}#procedure li::marker,#kitchenRecipe li::marker{font-size:.88em}#procedure li p,#kitchenRecipe li p{margin:.18em 0!important}}
