
/* Cover filmstrip and precise crop preview */
body.spr-root .ztw-cover-chooser{display:grid;gap:8px;min-width:0}
body.spr-root .ztw-cover-chooser h4{font:500 17px Georgia,serif;color:#f4dec4;margin:0}
body.spr-root .ztw-cover-chooser>p{margin:0 0 4px;color:#d1baa0;font-size:12px}
body.spr-root .ztw-cover-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(91px,1fr));gap:8px;max-height:286px;overflow-y:auto;border:1px solid #6c553f;background:#211b16;border-radius:9px;padding:10px}
body.spr-root .ztw-cover-thumbs button{position:relative;min-width:0;background:#30271f;border:2px solid #584331;border-radius:6px;padding:4px;color:#ead4b8;cursor:pointer;text-align:left}
body.spr-root .ztw-cover-thumbs button[aria-pressed=true]{border-color:#f9d2a0;box-shadow:0 0 0 2px #f9d2a055}
body.spr-root .ztw-cover-thumbs img{display:block;width:100%;height:95px;object-fit:cover;border-radius:3px}
body.spr-root .ztw-cover-thumbs small{display:block;font:500 10px/1.35 Arial,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px}
body.spr-root .ztw-cover-ratios{display:grid;gap:7px;margin-top:8px}
body.spr-root .ztw-cover-ratios strong{font-size:12px;color:#e7d0af}
body.spr-root .ztw-cover-ratios>div{display:flex;flex-wrap:wrap;gap:7px}
body.spr-root .ztw-cover-ratios button{border:1px solid #7e6445;background:#302319;color:#ecd5b5;padding:8px 11px;border-radius:5px;font-size:12px}
body.spr-root .ztw-cover-ratios button[aria-pressed=true]{border-color:#ead0a4;background:#685034;color:white}
body.spr-root .ztw-cover-preview{width:min(560px,100%);height:auto;min-height:0;aspect-ratio:16/9;max-height:420px;transition:width .18s ease}
body.spr-root .ztw-cover-preview[data-ratio=square]{aspect-ratio:1;width:min(360px,100%)}
body.spr-root .ztw-cover-preview[data-ratio=portrait]{aspect-ratio:3/4;width:min(335px,100%)}
body.spr-root .ztw-cover-preview[data-ratio=tall]{aspect-ratio:2/3;width:min(285px,100%)}
body.spr-root .ztw-cover-preview img{width:100%;height:100%;object-fit:cover}
body.spr-root .ztw-photo-item label{display:grid;gap:5px;min-width:0;cursor:pointer}
body.spr-root .ztw-photo-item .ztw-delete-one{display:block;width:100%;border:1px solid #a56e57;border-radius:5px;background:#38231d;color:#ffcdbb;font-size:11px;padding:6px;cursor:pointer}
body.spr-root .ztw-photo-item .ztw-delete-one:hover{background:#71372b;color:white}
body.spr-root .szt-gallery-sidebar-title strong{font-size:13px;line-height:1.35;min-width:0;white-space:normal;overflow-wrap:anywhere;font-weight:700;color:#f3dbc0}
body.spr-root .szt-gallery-sidebar-title>span{white-space:nowrap;align-self:flex-start}
body.spr-root main.zgd-shell .zgd-sidebar a:nth-child(n+4){font-size:12px;margin-left:14px;padding:9px 11px;border-left:2px solid #70543a;border-radius:0 6px 6px 0}
body.spr-root .szt-step-panel .spr-hint a,body.spr-root main.szt-wizard .spr-hint a{color:#e8bc87!important;text-decoration:underline}
body.spr-root #odbitki,body.spr-root #szablony-email,body.spr-root #biblioteka-logo,body.spr-root #konta-fotografow{scroll-margin-top:22px}
body.spr-root main.szt-gallery-manage{align-content:start!important;align-items:start!important;grid-auto-rows:min-content!important;row-gap:0!important;min-height:0!important}
body.spr-root main.szt-gallery-manage>.spr-heading{margin:0 0 14px!important;min-height:0!important}
body.spr-root main.szt-gallery-manage[data-szt-section=kolejnosc]>#spr-section-photos,body.spr-root main.szt-gallery-manage[data-szt-section=wybrane]>#spr-section-picked{align-self:start!important;margin:0!important;min-height:0!important}
body.spr-root main.szt-gallery-manage[data-szt-section=kolejnosc] .spr-panel,body.spr-root main.szt-gallery-manage[data-szt-section=wybrane] .spr-panel{margin-top:0!important;margin-bottom:13px!important}
body.spr-root main.szt-gallery-manage.zgd-shell>.zgd-sidebar{grid-row:1/3!important;align-self:start!important}
@media(max-width:720px){body.spr-root .ztw-cover-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}body.spr-root .ztw-cover-preview{max-width:100%}}


/* Direct crop drag */
body.spr-root .ztw-cover-preview img{cursor:grab;touch-action:none;user-select:none}
body.spr-root .ztw-cover-preview.ztw-drag-crop img{cursor:grabbing}



