/* v119E.3.7.9.49.65 — final screen-density and Library details completion. */
@media screen {
  /* Global accordion rhythm: shorter without sacrificing deliberate touch targets. */
  details.card,details.pspWorkflowGroupV55,.pspProgressiveDetails{margin-top:7px!important;margin-bottom:7px!important}
  details.card>summary,details.pspWorkflowGroupV55>summary,.pspProgressiveDetails>summary{
    min-height:44px!important;padding:10px 12px!important;line-height:1.18!important;display:flex;align-items:center
  }
  details.card>.inner,details.pspWorkflowGroupV55>.inner{padding-top:9px!important;padding-bottom:10px!important}
  .pspWorkflowSectionNoteV55{margin:0 0 8px!important;padding:8px 10px!important;line-height:1.28!important}
  .card .card{margin-block:6px!important}
  .card .card>summary{min-height:42px!important;padding:9px 10px!important}

  /* Library shell and cards: emphasize title and facts, remove excess chrome. */
  #pspWorkflowLibrarySectionV55>.inner{padding-top:8px!important}
  .pspLibraryHelpV52{margin-bottom:8px!important;padding:9px 11px!important}
  .pspLibraryHelpV52>strong{margin-bottom:3px!important}
  .pspLibraryHelpV52 ul{margin:2px 0 5px 1.05rem!important}
  .pspLibraryCardV52{margin:6px 0!important;padding:8px!important;border-radius:11px!important}
  .pspLibraryCardHeaderV52{padding:7px 8px 6px!important}
  .pspLibraryCardHeaderV52>strong{font-size:.98em!important;line-height:1.13!important;margin-bottom:4px!important}
  .pspLibraryBadgesV52 .badge{padding:3px 6px!important;font-size:.76em!important}
  .pspLibraryQuickV52{margin:5px 0!important;padding:7px 9px!important}
  .pspLibraryQuickFactV55{font-size:.91em!important;line-height:1.18!important}
  .pspLibraryDetailsV52,.pspLibraryCommentV54{margin:3px 0!important}
  .pspLibraryDetailsV52>summary,.pspLibraryCommentV54>summary{min-height:42px!important;padding:8px 2px!important;line-height:1.15!important}
  .pspLibraryDetailsBodyV57{padding:0 2px 3px}
  .pspLibraryLockedNoteV52{margin:6px 0 7px!important;padding:0!important;font-size:.85em;line-height:1.27}

  /* Recipe Details: progressive nested subsections instead of one long block. */
  .pspLibraryDetailSectionV57{margin:5px 0!important;border-top:1px solid #d7e0da!important;background:transparent!important}
  .pspLibraryDetailSectionV57>summary{
    min-height:40px!important;padding:8px 2px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
    color:#174f38;font-weight:800;cursor:pointer;list-style:none
  }
  .pspLibraryDetailSectionV57>summary::-webkit-details-marker{display:none}
  .pspLibraryDetailSectionV57>summary:after{content:'▾';margin-left:8px}
  .pspLibraryDetailSectionV57[open]>summary:after{content:'▴'}
  .pspLibraryDetailSectionV57>summary span{margin-left:auto;margin-right:5px;min-width:24px;padding:2px 7px;border-radius:999px;background:#eaf2ed;font-size:.78em;text-align:center;color:#315d49}
  .pspLibraryDetailSectionV57 ul{margin:1px 0 7px 1.05rem!important;padding:0 4px 0 0!important}
  .pspLibraryDetailSectionV57 li{margin:2px 0!important;font-size:.91em;line-height:1.25!important}

  .pspLibraryCardV52 .libraryButtons{gap:5px!important;margin-top:5px!important;grid-auto-rows:minmax(46px,auto)!important}
  .pspLibraryCardV52 .libraryButtons button{min-height:46px!important;padding:7px 6px!important;font-size:.9em!important}
}
@media screen and (max-width:520px){
  main{padding-left:9px!important;padding-right:9px!important}
  details.card>summary,details.pspWorkflowGroupV55>summary{font-size:.96rem!important}
  .pspLibraryCardV52{padding:7px!important}
  .pspLibraryCardHeaderV52{padding:6px 7px 5px!important}
  .pspLibraryQuickV52{padding:6px 8px!important}
}
@media screen and (max-width:360px){
  .pspLibraryCardV52 .libraryButtons{grid-template-columns:1fr!important}
  .pspLibraryCardV52 .libraryButtons button:last-child{grid-column:auto!important}
}

/* v119E.3.7.9.49.65 — corrective mobile density + pizza info icon repair. */
@media screen {
  /* Restore a clean, purpose-built pizza glyph instead of shrinking the full app icon. */
  button.infoBtn,
  label button.infoBtn {
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    min-height:22px!important;
    padding:0!important;
    margin:0 0 0 6px!important;
    border:1px solid #b51f2e!important;
    border-radius:50%!important;
    background:#fff!important;
    background-image:none!important;
    box-shadow:none!important;
    color:transparent!important;
    text-indent:0!important;
    overflow:hidden!important;
    line-height:1!important;
    font-size:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 22px!important;
  }
  button.infoBtn::before,
  label button.infoBtn::before {
    content:'🍕';
    display:block;
    font-size:14px;
    line-height:1;
    text-indent:0;
    transform:none;
  }

  /* Actual top-level workflow accordion reduction. */
  main > details.pspWorkflowGroupV55 {
    margin:6px 0!important;
    border-radius:12px!important;
    min-height:0!important;
  }
  main > details.pspWorkflowGroupV55:not([open]) {
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
  }
  main > details.pspWorkflowGroupV55 > summary {
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    padding:0 16px!important;
    margin:0!important;
    font-size:1rem!important;
    line-height:1.12!important;
  }
  main > details.pspWorkflowGroupV55 > summary::after {
    font-size:15px!important;
    flex:0 0 auto!important;
  }
}
@media screen and (max-width:520px){
  main > details.pspWorkflowGroupV55:not([open]) {
    height:56px!important;
    min-height:56px!important;
    max-height:56px!important;
  }
  main > details.pspWorkflowGroupV55 > summary {
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
    padding:0 14px!important;
    font-size:.96rem!important;
  }
}

/* v119E.3.7.9.49.65 — exact accordion auto-height and existing pizza-help icon restoration. */
@media screen {
  /* Existing pizza help buttons only: restore the real app pizza artwork without adding icons anywhere else. */
  button.infoBtn,
  label button.infoBtn {
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    max-width:24px!important;
    min-height:24px!important;
    padding:0!important;
    margin-left:6px!important;
    border:1px solid #b51f2e!important;
    border-radius:50%!important;
    background-color:#fff!important;
    background-image:url("../../icon-192.png")!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
    background-size:22px 22px!important;
    box-shadow:0 1px 2px rgba(0,0,0,.16)!important;
    color:transparent!important;
    font-size:0!important;
    line-height:0!important;
    text-indent:-9999px!important;
    overflow:hidden!important;
    display:inline-flex!important;
    flex:0 0 24px!important;
  }
  button.infoBtn::before,
  label button.infoBtn::before { content:none!important; display:none!important; }

  /* Closed workflow accordions are one compact line; long titles grow only as needed to wrap. */
  main > details.pspWorkflowGroupV55 {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:5px 0!important;
    border-radius:11px!important;
  }
  main > details.pspWorkflowGroupV55:not([open]) {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  main > details.pspWorkflowGroupV55 > summary {
    height:auto!important;
    min-height:38px!important;
    max-height:none!important;
    padding:7px 14px!important;
    margin:0!important;
    line-height:1.18!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    align-items:center!important;
  }
}
@media screen and (max-width:520px){
  main > details.pspWorkflowGroupV55 > summary {
    height:auto!important;
    min-height:38px!important;
    max-height:none!important;
    padding:7px 13px!important;
    font-size:.96rem!important;
  }
}
