/* v13: corrected modal sizing, 143px source preview enlargement, visible fields */
@media (min-width: 761px) {
  .pzh-simple-modal { padding:16px!important; align-items:center!important; }
  .pzh-simple-modal .pzh-simple-dialog {
    width:min(1080px,calc(100vw - 32px))!important;
    height:min(750px,calc(100dvh - 32px))!important;
    max-height:calc(100dvh - 32px)!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,.98fr)!important;
    align-items:stretch!important;
    gap:18px!important;
    padding:20px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .pzh-simple-modal .pzh-simple-image {
    min-width:0!important;min-height:0!important;height:100%!important;
    padding:22px!important;box-sizing:border-box!important;
    display:flex!important;justify-content:center!important;align-items:center!important;
    overflow:hidden!important;
  }
  .pzh-simple-modal .pzh-simple-details {
    min-width:0!important;min-height:0!important;height:100%!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    align-self:stretch!important;justify-content:flex-start!important;
    padding:12px 8px 18px 0!important;
    scrollbar-gutter:stable;
  }
}
.pzh-simple-modal .pzh-simple-image img {
  position:static!important;display:block!important;
  width:min(88%,380px)!important;height:auto!important;
  max-width:100%!important;max-height:95%!important;
  min-width:0!important;object-fit:contain!important;
  image-rendering:auto!important;transform:none!important;
}
.pzh-simple-modal .pzh-simple-details h2 {padding-right:38px!important;}
.pzh-simple-modal .pzh-data-editor {min-width:0!important;box-sizing:border-box!important;}
.pzh-simple-modal .pzh-data-fields {min-width:0!important;}
.pzh-simple-modal .pzh-data-field input[type=file] {
 display:block!important;visibility:visible!important;opacity:1!important;
 height:auto!important;width:100%!important;max-width:100%!important;
 border:1px dashed #8ebced!important;border-radius:9px!important;
 background:#f7fbff!important;padding:10px!important;box-sizing:border-box!important;
}
.pzh-simple-modal .pzh-data-field input[type=file]::file-selector-button {
 border:0;border-radius:7px;background:#1165c6;color:#fff;padding:8px 10px;cursor:pointer;margin-right:10px;
}
.pzh-simple-modal .pzh-data-editor[hidden] {display:none!important;}
@media(max-width:760px){
 .pzh-simple-modal{padding:8px!important;align-items:center!important;}
 .pzh-simple-modal .pzh-simple-dialog{width:100%!important;height:auto!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important;padding:14px!important;gap:10px!important;}
 .pzh-simple-modal .pzh-simple-image{min-height:180px!important;height:min(38dvh,290px)!important;flex:none!important;padding:12px!important;}
 .pzh-simple-modal .pzh-simple-image img{width:min(80%,255px)!important;max-height:100%!important;}
 .pzh-simple-modal .pzh-simple-details{overflow:visible!important;flex:none!important;}
}
