/* v119E.3.7.9.49.65 — coordinated production-density polish */
:root{--psp-density-gap:10px}
/* Conservative global tightening: preserve touch targets and readable type. */
@media(max-width:700px){
  main,.appMain,#app{--section-gap:10px}
  .workflowGroup,.pspWorkflowGroupV55,.sectionCard,.card{margin-top:10px!important;margin-bottom:10px!important}
  .workflowGroup>summary,.pspWorkflowGroupV55>summary{padding-top:15px!important;padding-bottom:15px!important}
  .infoBox,.notice,.guidanceBox,.callout{padding-top:12px!important;padding-bottom:12px!important}
  button,.button{min-height:48px}
}
/* Library: denser browsing without hiding capability. */
.pspLibraryHelpV52{padding:11px 14px!important}
.pspLibraryHelpV52 li{margin:2px 0!important}
.pspLibraryCardV52{margin:9px 0!important;padding:11px!important;border-radius:13px!important}
.pspLibraryCardHeaderV52{padding:12px 12px 10px!important;min-height:0!important}
.pspLibraryCardHeaderV52>strong{font-size:1.08em!important;margin-bottom:5px!important}
.pspLibraryBadgesV52{gap:5px!important}
.pspLibraryQuickV52{margin:8px 0!important;padding:9px 11px!important}
.pspLibraryQuickV52>div{margin:1px 0!important;line-height:1.24!important}
.pspLibraryDetailsV52{margin:8px 0!important}
.pspLibraryDetailsV52>summary{padding:10px 11px!important}
.pspLibraryCardV52 .commentBox{min-height:62px!important}
.pspLibraryCardV52 .libraryButtons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.pspLibraryCardV52 .libraryButtons button{min-height:50px!important;padding:9px 7px!important;font-size:.94em!important;line-height:1.12!important}
.pspLibraryCardV52 .libraryButtons button:last-child{grid-column:1/-1!important}
@media(max-width:360px){.pspLibraryCardV52 .libraryButtons{grid-template-columns:1fr!important}.pspLibraryCardV52 .libraryButtons button:last-child{grid-column:auto!important}}
/* Read-only release metadata should never resemble an editable control. */
.pspWorkflowGroupV55 input[data-release-version="true"]{border-radius:10px!important;padding:10px 12px!important;min-height:46px!important}
/* Shorter, calmer card and banner proportions. */
.savedRecipe .badge{padding-top:4px!important;padding-bottom:4px!important}
.savedRecipe h3,.savedRecipe header{margin-bottom:8px!important}


/* v49.55 final UI consistency: flatten nested library chrome and hide empty optional comments. */
.pspLibraryCardV52{padding:10px!important;border-radius:12px!important}
.pspLibraryCardHeaderV52{padding:12px 12px 10px!important;min-height:auto!important}
.pspLibraryQuickV52{margin:8px 0!important;padding:9px 10px!important;border-radius:8px!important}
.pspLibraryDetailsV52,.pspLibraryCommentV54{border:0!important;border-top:1px solid #d7e0da!important;border-radius:0!important;margin:6px 0!important;background:transparent!important}
.pspLibraryDetailsV52>summary,.pspLibraryCommentV54>summary{padding:10px 2px!important;background:transparent!important;border:0!important;font-weight:800;color:#075c32;cursor:pointer}
.pspLibraryCommentV54 .commentBox{margin-top:2px!important;min-height:66px!important}
.pspLibraryCardV52 .libraryButtons{margin-top:8px!important}
.pspLibraryCardV52 .libraryButtons button{min-height:48px!important}
.pspLibraryCardV52 .libraryButtons button:last-child{grid-column:1/-1!important}
.pspLibraryCardV52 .pspLibraryBadgesV52 .badge{padding:5px 9px!important}
.pspLibraryHelpV52{border-radius:10px!important}
.pspWorkflowGroupV55 input[data-release-version="true"]{border-radius:8px!important}
@media(max-width:360px){.pspLibraryCardV52 .libraryButtons{grid-template-columns:1fr!important}}


/* v49.55 final Library card polish: faster browsing, balanced emphasis, uniform actions. */
.pspLibraryCardV52{margin:7px 0!important;padding:9px!important}
.pspLibraryCardHeaderV52{padding:9px 10px 8px!important}
.pspLibraryCardHeaderV52>strong{font-size:1em!important;line-height:1.14!important;margin-bottom:5px!important;letter-spacing:-.01em}
.pspLibraryBadgesV52{gap:4px!important}
.pspLibraryBadgesV52 .badge{font-size:.82em!important;line-height:1.05!important;padding:4px 7px!important;font-weight:750!important}
.pspLibraryBadgesV52 .badge:first-child{opacity:.88}
.pspLibraryQuickV52{margin:6px 0!important;padding:8px 10px!important}
.pspLibraryQuickFactV55{position:relative;padding-left:13px!important;margin:1px 0!important;line-height:1.2!important}
.pspLibraryQuickFactV55::before{content:'•';position:absolute;left:0;top:0;color:#2f6d46;font-weight:900}
.pspLibraryDetailsV52,.pspLibraryCommentV54{margin:4px 0!important}
.pspLibraryDetailsV52>summary,.pspLibraryCommentV54>summary{padding:8px 2px!important}
.pspLibraryCardV52 .libraryButtons{gap:6px!important;margin-top:6px!important;grid-auto-rows:minmax(48px,auto)}
.pspLibraryCardV52 .libraryButtons button{height:100%!important;min-height:48px!important;padding:8px 6px!important;display:flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:390px){.pspLibraryCardHeaderV52>strong{font-size:.96em!important}.pspLibraryBadgesV52 .badge{font-size:.78em!important}}
