/* Prints: una sola cara — anular layout de dos photocards */
.print-body .pc-cards-stage{
  width:100%;
  max-width:min(640px, calc((100vh - 180px) * var(--pc-shell-w-mm) / var(--pc-shell-h-mm)), 84vw);
  margin:0 auto;
  justify-content:center;
  align-items:center;
  gap:0;
}
.print-body .pc-card-slot{
  flex:0 0 auto;
  width:100%;
  max-width:100%;
  min-width:0;
  height:auto;
  container-type:inline-size;
}
.print-body .pc-card-bleed-shell,
.print-body .pc-card-trim{
  --pc-card-radius:calc(100cqw * var(--pc-corner-mm) / var(--pc-shell-w-mm));
  --pc-shell-corner-radius:calc(100cqw * (var(--pc-corner-mm) + var(--pc-rebase-mm)) / var(--pc-shell-w-mm));
}
.print-body .pc-card-bleed-shell{
  width:100%;
  max-width:100%;
}
.print-body .pc-size-note{
  max-width:min(96vw,640px);
  text-align:center;
}

@media (min-width:821px){
  .print-body .pc-preview-dock{
    height:calc(100vh - 84px - 28px);
    max-height:calc(100vh - 84px - 28px);
    align-items:center;
    justify-content:center;
    gap:16px;
  }
  .print-body .pc-cards-stage{
    flex:0 0 auto;
    width:100%;
    max-width:min(640px, 66vw);
    height:auto;
    max-height:none;
    min-height:0;
    margin:0;
  }
  .print-body .pc-card-slot{
    width:100%;
    max-width:100%;
    height:auto;
    min-height:0;
    container-type:inline-size;
  }
  .print-body .pc-card-bleed-shell{
    width:min(
      640px,
      66vw,
      calc((100vh - 240px) * var(--pc-shell-w-mm) / var(--pc-shell-h-mm))
    );
    max-height:calc(100vh - 240px);
    margin:0 auto;
  }
  .print-body .pc-preview-dock > .pc-size-note,
  .print-body .pc-preview-dock > .pc-rebase-note,
  .print-body .pc-preview-dock > .pc-zoom-hint{
    width:100%;
    max-width:min(640px, 66vw);
    align-self:center;
    margin-top:0;
  }
  .print-body .pc-preview-dock > .pc-rebase-note{
    margin-top:4px;
  }
  .print-body .pc-preview-dock > .pc-zoom-hint{
    margin-top:6px;
  }
}

@media (max-width:820px){
  .print-body .pz-canvas-dock.pz-panel.pc-preview-dock{
    --pz-mobile-canvas-h:clamp(280px,min(100vw,48svh),470px);
    flex:0 0 var(--pz-mobile-canvas-h);
    height:var(--pz-mobile-canvas-h);
    min-height:var(--pz-mobile-canvas-h);
    max-height:var(--pz-mobile-canvas-h);
    overflow:hidden;
  }
  .print-body .pz-canvas-dock.pz-panel.pc-preview-dock:has(.is-editing-slot){
    overflow:visible;
  }
  .print-body .pc-cards-stage{
    flex:1 1 auto;
    min-height:0;
    width:100%;
    max-width:100%;
    margin:0;
    gap:4px;
    overflow:hidden;
    align-items:center;
    justify-content:center;
  }
  .print-body .pc-cards-stage:has(.is-editing-slot){
    overflow:visible;
  }
  .print-body .pc-card-slot{
    flex:1 1 auto;
    min-width:0;
    min-height:0;
    width:100%;
    max-width:100%;
    height:100%;
    gap:4px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    container-type:size;
  }
  .print-body .pc-card-label{
    flex:0 0 auto;
    font-size:.65rem;
    line-height:1;
  }
  .print-body .pc-card-bleed-shell{
    flex:1 1 auto;
    width:100%;
    height:auto;
    min-height:0;
    max-width:100%;
    max-height:100%;
    flex-shrink:1;
    margin:0 auto;
  }
  .print-body .pc-size-note,
  .print-body .pc-rebase-note,
  .print-body .pc-zoom-hint{
    display:none;
  }
  @supports (width:1cqw){
    .print-body .pc-card-bleed-shell{
      width:min(100cqw, calc(100cqh * (var(--pc-shell-w-mm) / var(--pc-shell-h-mm))));
      max-width:100cqw;
      max-height:100cqh;
    }
  }
}
