.zmpb{max-width:1500px;margin:30px auto;font-family:Arial,sans-serif;color:#181818}.zmpb *{box-sizing:border-box}.zmpb-head{text-align:center;padding:25px}.zmpb-head span{font-size:12px;letter-spacing:2px;color:#9a6d2c}.zmpb-head h1{font:46px Georgia,serif;margin:8px}.zmpb-head p{color:#666}.zmpb-top{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;background:#f5f1eb;padding:18px;border-radius:14px}.zmpb-top label{display:grid;gap:8px}.zmpb select{padding:12px;border:1px solid #d7d0c6;background:#fff;border-radius:7px}.zmpb-price{display:grid;align-content:center;text-align:right}.zmpb-price strong{font:30px Georgia,serif}.zmpb-work{display:grid;grid-template-columns:230px 1fr 240px;gap:20px;margin-top:20px;min-height:650px}.zmpb-photos,.zmpb-layouts{background:#faf8f5;padding:18px;border-radius:14px}.zmpb-upload,#zmpb-cart{display:block;background:#c99a51;color:#fff;padding:13px;border:0;border-radius:6px;text-align:center;font-weight:700;cursor:pointer}.hint,.safe{font-size:12px;color:#777}.zmpb-canvas{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ece8e2;border-radius:14px;padding:20px}.zmpb-toolbar{display:flex;gap:20px;align-items:center;margin-bottom:15px}.zmpb-toolbar button{border:1px solid #ccc;background:#fff;border-radius:50%;width:38px;height:38px}.spread{width:min(820px,100%);aspect-ratio:2/1;display:grid;grid-template-columns:1fr 2px 1fr;box-shadow:0 15px 40px #0002;background:white}.spread>i{background:#ddd}.page{background:#fff;padding:18px;display:grid;gap:7px;overflow:hidden}.slot{background:#eee;min-height:0;overflow:hidden;border:1px dashed #bbb;display:flex;align-items:center;justify-content:center;color:#999;font-size:12px}.slot img{width:100%;height:100%;object-fit:cover}.photo-thumb{margin:8px 0;background:#fff;border:1px solid #ddd;border-radius:6px;overflow:hidden;cursor:grab}.photo-thumb img{display:block;width:100%;height:95px;object-fit:cover}.count-tabs{display:flex;flex-wrap:wrap;gap:5px}.count-tabs button,.layout-btn,.ghost{border:1px solid #ccc;background:#fff;padding:8px;border-radius:5px;cursor:pointer}.count-tabs button.active{background:#111;color:#fff}.layout-btn{width:100%;margin:8px 0;height:58px;background:linear-gradient(90deg,#eee 49%,#fff 49%,#fff 51%,#eee 51%)}.ghost{width:100%;margin-top:15px}.zmpb-bottom{margin-top:20px;background:#111;color:#fff;padding:22px;border-radius:12px;display:flex;justify-content:space-between;align-items:center}.zmpb-bottom div{display:grid;gap:5px}.zmpb-bottom span{color:#bbb;font-size:13px}#zmpb-cart{min-width:280px}.slot.dragover{outline:3px solid #c99a51}@media(max-width:900px){.zmpb-top{grid-template-columns:1fr}.zmpb-price{text-align:left}.zmpb-work{grid-template-columns:1fr}.zmpb-photos,.zmpb-layouts{max-height:300px;overflow:auto}.spread{width:100%}.zmpb-bottom{display:grid;gap:15px}#zmpb-cart{min-width:0;width:100%}.zmpb-head h1{font-size:34px}}


/* v0.1.1 — mobile scroll compatibility */
html.zmpb-open, body.zmpb-open{overflow-x:hidden!important;overflow-y:auto!important;height:auto!important;min-height:100%!important;max-height:none!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
body.zmpb-open #page,body.zmpb-open .site,body.zmpb-open #content,body.zmpb-open .site-content,body.zmpb-open .content-area,body.zmpb-open main{height:auto!important;max-height:none!important;overflow:visible!important}
.zmpb{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
.zmpb select{width:100%;max-width:100%;min-height:48px;font-size:16px;line-height:1.25;white-space:normal;text-overflow:ellipsis}
.zmpb-top label{min-width:0}.zmpb-top{overflow:visible!important}
@media(max-width:900px){
 .zmpb{margin:18px auto 40px;padding:0 12px}
 .zmpb-head{padding:18px 6px}
 .zmpb-top{padding:14px;gap:14px}
 .zmpb-work{min-height:0!important;overflow:visible!important}
 .zmpb-photos,.zmpb-layouts{max-height:none!important;overflow:visible!important}
 .zmpb-canvas{overflow:visible!important;padding:12px 8px}
 .spread{min-height:260px}
}

/* v0.1.2 — mobile photo placement + crop controls */
.photo-thumb{width:100%;padding:0;text-align:left;appearance:none;-webkit-appearance:none;color:inherit}
.photo-thumb span{display:block;padding:7px 8px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff}
.photo-thumb.selected-photo{outline:3px solid #c99a51;outline-offset:1px}
.slot{position:relative;cursor:pointer;touch-action:manipulation}
.slot.selected{outline:3px solid #c99a51;outline-offset:-3px}
.slot img{transform-origin:center center;pointer-events:none;will-change:transform,object-position}
.slot span{padding:8px;text-align:center;line-height:1.3}
.zmpb-edit{margin-top:16px;padding:14px;background:#fff;border:1px solid #ddd5ca;border-radius:8px}
.zmpb-edit h4{margin:0 0 12px}.zmpb-edit label{display:grid;gap:7px;font-size:13px;font-weight:700}
.zmpb-edit input[type=range]{width:100%}
.zmpb-position{display:grid;grid-template-columns:repeat(3,42px);grid-template-areas:"x up x2" "left reset right" "x3 down x4";justify-content:center;gap:5px;margin:12px 0}
.zmpb-position button{width:42px;height:38px;border:1px solid #cfc7bb;border-radius:6px;background:#fff;font-size:18px;cursor:pointer}
.zmpb-position [data-move=up]{grid-area:up}.zmpb-position [data-move=left]{grid-area:left}.zmpb-position #zmpb-reset{grid-area:reset}.zmpb-position [data-move=right]{grid-area:right}.zmpb-position [data-move=down]{grid-area:down}
@media(max-width:900px){
 .zmpb-photos{order:1}.zmpb-canvas{order:2}.zmpb-layouts{order:3}
 #zmpb-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
 .photo-thumb{margin:0}.photo-thumb img{height:90px}.photo-thumb span{display:none}
 .zmpb-work{gap:12px}.zmpb-photos,.zmpb-layouts{padding:14px}
 .spread{aspect-ratio:auto;min-height:360px}.page{padding:8px;gap:5px}.slot{font-size:10px}
}

/* v0.1.3 — direct touch editing */
.slot.has-photo{position:relative;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.slot.has-photo.is-gesturing{cursor:grabbing}
.slot.has-photo img{pointer-events:none;will-change:transform,object-position;transform-origin:center center}
.slot.selected{outline:3px solid #c99a51;outline-offset:-3px}
.gesture-hint{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);z-index:3;background:rgba(0,0,0,.62);color:#fff!important;border-radius:999px;padding:5px 9px;font-size:10px;line-height:1;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s ease}
.slot.selected .gesture-hint{opacity:1}
.zmpb-touch-help{margin:10px 0 0;padding:12px;border:1px solid #ddd2c3;border-radius:8px;background:#fff;font-size:13px;line-height:1.45;color:#555}
.zmpb-touch-help strong{display:block;color:#181818;margin-bottom:3px}
.zmpb-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.zmpb-quick-actions .ghost{width:auto;flex:1 1 120px;margin-top:0}
@media(max-width:900px){
 .gesture-hint{opacity:.82}
 .slot.has-photo{touch-action:none}
}

/* v0.2.0 — stvarni formati listova, slobodni okviri, auto-layout i pregled stranica */
.zmpb-toolbar>div{display:grid;text-align:center;gap:3px}.zmpb-toolbar small{font-size:11px;color:#777;font-weight:400}.spread{height:auto;min-height:0!important;max-height:none!important;overflow:visible;transition:aspect-ratio .2s ease}.page{position:relative!important;display:block!important;padding:0!important;gap:0!important;overflow:hidden;background:#fff}.slot{position:absolute!important;min-width:10%;min-height:10%;border:1px dashed #b8b0a4;background:#f6f6f6;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#999;font-size:11px;touch-action:none}.slot.selected{outline:2px solid #c99a51;outline-offset:1px;z-index:8}.slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform-origin:center center;pointer-events:none;user-select:none;-webkit-user-select:none}.empty-hint{padding:8px;text-align:center;line-height:1.25;pointer-events:none}.frame-control{position:absolute!important;z-index:15!important;opacity:0;transition:opacity .12s ease;touch-action:none!important;user-select:none;-webkit-user-select:none}.slot.selected .frame-control,.slot:focus-within .frame-control{opacity:1}.move-handle{top:-1px;left:50%;transform:translate(-50%,-55%);width:38px;height:28px;border:1px solid #b48135;border-radius:999px;background:#fff7ea;color:#6e4817;font-size:18px;line-height:1;display:grid;place-items:center;cursor:move;padding:0}.delete-frame{top:-1px;right:-1px;transform:translate(45%,-45%);width:28px;height:28px;border:0;border-radius:50%;background:#b32020;color:#fff;font-size:21px;line-height:1;display:grid;place-items:center;padding:0;cursor:pointer}.resize-handle{width:18px;height:18px;border:2px solid #fff;background:#c99a51;border-radius:50%;box-shadow:0 0 0 1px #8a6229}.resize-handle.nw{left:-9px;top:-9px;cursor:nwse-resize}.resize-handle.ne{right:-9px;top:-9px;cursor:nesw-resize}.resize-handle.sw{left:-9px;bottom:-9px;cursor:nesw-resize}.resize-handle.se{right:-9px;bottom:-9px;cursor:nwse-resize}.res-warning{position:absolute;left:5px;top:5px;z-index:10;background:#8e1a1a;color:#fff!important;border-radius:4px;padding:4px 6px!important;font-size:9px;line-height:1;pointer-events:none}.gesture-hint{display:none!important}.zmpb-auto{margin-top:10px!important;border-color:#c99a51!important;color:#7a551d!important;font-weight:700}.layout-list{display:grid;gap:8px;margin:9px 0}.layout-btn.variant{height:auto;min-height:72px;display:grid;grid-template-columns:76px 1fr;align-items:center;gap:10px;text-align:left;padding:8px;width:100%;background:#fff}.layout-btn.variant b{font-size:12px}.layout-mini{position:relative;display:block;width:72px;height:48px;border:1px solid #d5cdc2;background:#fff;overflow:hidden}.layout-mini:before,.layout-mini:after{content:"";position:absolute;background:#ddd6cc;border:1px solid #ccc1b3}.layout-mini.grid:before{left:5px;top:5px;width:28px;height:16px;box-shadow:33px 0 0 #ddd6cc,0 21px 0 #ddd6cc,33px 21px 0 #ddd6cc}.layout-mini.hero:before{left:5px;top:5px;width:39px;height:38px}.layout-mini.hero:after{right:5px;top:5px;width:17px;height:10px;box-shadow:0 14px 0 #ddd6cc,0 28px 0 #ddd6cc}.layout-mini.editorial:before{left:5px;top:5px;width:62px;height:22px}.layout-mini.editorial:after{left:5px;bottom:5px;width:18px;height:11px;box-shadow:22px 0 0 #ddd6cc,44px 0 0 #ddd6cc}.spread-strip{display:flex;gap:7px;width:100%;max-width:900px;overflow-x:auto;padding:12px 2px 2px;scrollbar-width:thin}.spread-strip button{flex:0 0 auto;min-width:58px;height:38px;border:1px solid #d5cec4;border-radius:6px;background:#fff;color:#444;font-size:11px;cursor:pointer}.spread-strip button.active{background:#111;color:#fff;border-color:#111}.safe{text-align:center}.zmpb-touch-help strong+strong{margin-top:8px}.zmpb-touch-help strong{margin-top:4px}.zmpb-canvas{justify-content:flex-start}.zmpb-toolbar{margin-top:4px}.count-tabs button{min-width:38px;min-height:38px}
@media (hover:hover) and (pointer:fine){.slot:hover .frame-control{opacity:.9}}
@media(max-width:900px){
 .spread{width:100%;min-height:0!important}.zmpb-canvas{padding:12px 6px 16px}.zmpb-toolbar{width:100%;justify-content:center}.zmpb-toolbar button{flex:0 0 40px}.slot{font-size:8px}.move-handle{width:34px;height:26px;font-size:16px;opacity:1}.delete-frame{width:26px;height:26px;font-size:19px;opacity:1}.resize-handle{width:16px;height:16px;opacity:1}.resize-handle.nw{left:-8px;top:-8px}.resize-handle.ne{right:-8px;top:-8px}.resize-handle.sw{left:-8px;bottom:-8px}.resize-handle.se{right:-8px;bottom:-8px}.res-warning{font-size:7px;padding:3px 4px!important}.spread-strip{padding-top:10px}.layout-list{grid-template-columns:1fr}.zmpb-touch-help{font-size:12px}
}

/* v0.3.0 — undo/redo, snapping, safe/bleed and production-ready editor UI */
.zmpb-historybar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;border:1px solid #e0d8cd;border-radius:10px;background:#faf8f4}
.zmpb-historybar button{min-height:38px;padding:7px 12px;border:1px solid #cfc7bc;border-radius:7px;background:#fff;color:#222;font-weight:700;cursor:pointer}
.zmpb-historybar button:disabled{opacity:.42;cursor:not-allowed}
.zmpb-historybar button.active{background:#111;color:#fff;border-color:#111}
.zmpb-historybar span{margin-left:auto;font-size:12px;color:#756d62}
.spread{position:relative!important}
.print-guide{position:absolute;pointer-events:none;z-index:20;box-sizing:border-box}
.bleed-guide{border:1px dashed rgba(180,35,35,.85)}
.safe-guide{border:1px dashed rgba(183,139,69,.95)}
.gutter-line{position:absolute!important;left:50%;top:0;bottom:0;width:1px!important;height:auto!important;background:rgba(40,40,40,.28)!important;z-index:21;pointer-events:none}
.snap-guide{display:none;position:absolute;z-index:30;pointer-events:none;background:#1687ff;box-shadow:0 0 0 1px rgba(255,255,255,.9),0 0 8px rgba(22,135,255,.75)}
.snap-guide.contact-guide{background:#1687ff!important;box-shadow:0 0 0 1px rgba(255,255,255,.95),0 0 10px rgba(22,135,255,.85)!important}
.snap-v{top:0;bottom:0;width:3px}
.snap-h{left:0;right:0;height:3px}
.align-tools{margin-top:14px;padding:12px;border:1px solid #ddd5ca;border-radius:8px;background:#fff}
.align-tools>b{display:block;margin-bottom:8px;font-size:13px}
.align-tools>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.align-tools button{min-width:42px;min-height:40px;border:1px solid #ccc5bb;border-radius:6px;background:#fff;font-size:18px;cursor:pointer}
.align-tools button:active{background:#f1ece5}
@media(max-width:900px){
 .zmpb-historybar{position:sticky;top:0;z-index:50;margin-left:-2px;margin-right:-2px;padding:8px;background:rgba(250,248,244,.96);backdrop-filter:blur(5px)}
 .zmpb-historybar button{flex:1 1 auto;min-width:82px;font-size:12px;padding:7px 8px}
 .zmpb-historybar span{width:100%;margin-left:0;text-align:center;font-size:10px}
 .align-tools>div{grid-template-columns:repeat(6,1fr)}
 .align-tools button{min-width:0;padding:0;font-size:16px}
 .print-guide{border-width:1px}
}

/* v0.4.0 — Mobile UX: full spread fit, drawers, preview and concise instructions */
.zmpb-steps{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;border:1px solid #e3ddd4;border-radius:10px;background:#fff;font-size:12px;color:#5f584f}
.zmpb-steps b{color:#25221f}.zmpb-steps>span{color:#b78b45}.zmpb-steps button{margin-left:auto;border:1px solid #cfc7bc;background:#fff;border-radius:999px;padding:7px 12px;font-weight:700;cursor:pointer}
.zmpb-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:9px 12px;border-radius:9px;background:#111;color:#fff;font-size:12px}
.zmpb-status button{border:1px solid #777;background:#222;color:#fff;border-radius:6px;padding:7px 10px;cursor:pointer}.zmpb-status button:disabled{opacity:.45;cursor:not-allowed}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.drawer-head h3{margin:0}.drawer-close{display:none;width:42px;height:42px;border:1px solid #d3cbc0;border-radius:50%;background:#fff;font-size:24px;line-height:1;cursor:pointer}
.danger{color:#9b1515!important;border-color:#d8aaaa!important}.danger:disabled{opacity:.4!important;cursor:not-allowed!important}
.zmpb-mobilebar{display:none}
.zmpb-help-modal[hidden]{display:none!important}.zmpb-help-modal{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.62);display:grid;place-items:center;padding:20px}.zmpb-help-card{position:relative;width:min(560px,100%);max-height:80vh;overflow:auto;background:#fff;border-radius:14px;padding:24px;box-shadow:0 20px 70px #0005}.zmpb-help-card h3{margin:0 42px 14px 0;font:28px Georgia,serif}.zmpb-help-card ol{margin:0;padding-left:22px;line-height:1.55}.zmpb-help-card li+li{margin-top:8px}.help-close{position:absolute;right:12px;top:12px;width:38px;height:38px;border:1px solid #ddd;border-radius:50%;background:#fff;font-size:24px;cursor:pointer}
.zmpb-work>*{min-width:0}.zmpb-canvas{min-width:0;width:100%}.spread{max-width:100%;transform-origin:top center}.zmpb.is-preview .frame-control,.zmpb.is-preview .print-guide,.zmpb.is-preview .snap-guide,.zmpb.is-preview .res-warning{display:none!important}.zmpb.is-preview .slot{border-color:transparent!important;outline:0!important}.zmpb.is-preview .safe{display:none}.zmpb.is-preview .zmpb-photos,.zmpb.is-preview .zmpb-layouts{visibility:hidden}.zmpb.is-preview .zmpb-canvas{grid-column:1/-1}.zmpb.is-preview .spread{box-shadow:0 12px 36px #0002}.zmpb.is-preview .gutter-line{opacity:.25}

@media(max-width:900px){
 body.zmpb-open{padding-bottom:72px!important}
 .zmpb{width:100%!important;max-width:100%!important;margin:10px 0 20px!important;padding:0 10px 78px!important;overflow:hidden!important}
 .zmpb-head{padding:10px 4px 8px}.zmpb-head span{font-size:10px}.zmpb-head h1{font-size:27px!important;line-height:1.05;margin:5px 0}.zmpb-head p{margin:6px 0 0;font-size:12px;line-height:1.35}
 .zmpb-steps{justify-content:flex-start;gap:6px;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;padding:8px 9px;margin-bottom:9px;scrollbar-width:none}.zmpb-steps::-webkit-scrollbar{display:none}.zmpb-steps b{font-size:10px}.zmpb-steps>span{font-size:10px}.zmpb-steps button{margin-left:4px;flex:0 0 auto;min-height:34px;padding:5px 9px;font-size:11px}
 .zmpb-top{grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr)!important;gap:8px!important;padding:9px!important;border-radius:10px}.zmpb-top label{gap:4px}.zmpb-top label b{font-size:11px}.zmpb select{min-height:42px!important;padding:7px 8px!important;font-size:13px!important}.zmpb-price{grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;text-align:left!important;border-top:1px solid #ddd3c6;padding-top:7px}.zmpb-price small{font-size:10px}.zmpb-price strong{font-size:23px!important}
 .zmpb-status{margin:8px 0;padding:7px 9px;font-size:10px}.zmpb-status button{padding:6px 8px;font-size:10px;min-height:34px}
 .zmpb-historybar{position:static!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important;margin:0 0 8px!important;padding:6px!important;scrollbar-width:none}.zmpb-historybar::-webkit-scrollbar{display:none}.zmpb-historybar button{flex:0 0 auto!important;min-width:68px!important;min-height:36px!important;font-size:10px!important;padding:6px 8px!important}.zmpb-historybar span{display:none!important}
 .zmpb-work{display:block!important;margin-top:0!important;min-height:0!important}.zmpb .zmpb-canvas{width:100%!important;min-width:0!important;max-width:100%!important;padding:8px 4px 10px!important;border-radius:10px!important;overflow:hidden!important;background:#eeeae4!important}
 .zmpb-toolbar{width:100%!important;margin:0 0 7px!important;gap:8px!important;justify-content:space-between!important}.zmpb-toolbar>div{min-width:0;flex:1}.zmpb-toolbar b{font-size:13px}.zmpb-toolbar small{font-size:9px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zmpb-toolbar button{width:38px!important;height:38px!important;flex:0 0 38px!important}
 .spread{width:min(100%,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0 auto!important;box-shadow:0 8px 20px #0002!important;overflow:visible!important}
 .page{min-width:0!important}.slot{min-width:5%!important;min-height:5%!important}.empty-hint{font-size:7px!important;padding:3px!important}
 .move-handle{width:36px!important;height:30px!important;opacity:1!important}.delete-frame{width:34px!important;height:34px!important;font-size:22px!important;opacity:1!important}.resize-handle{width:20px!important;height:20px!important;opacity:1!important}.resize-handle.nw{left:-10px!important;top:-10px!important}.resize-handle.ne{right:-10px!important;top:-10px!important}.resize-handle.sw{left:-10px!important;bottom:-10px!important}.resize-handle.se{right:-10px!important;bottom:-10px!important}
 .safe{font-size:9px!important;margin:7px 0 2px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.spread-strip{max-width:100%!important;padding:7px 0 1px!important;gap:5px!important}.spread-strip button{min-width:52px!important;height:34px!important;font-size:10px!important;border-radius:7px!important}
 .zmpb-drawer{display:block!important;position:fixed!important;left:8px!important;right:8px!important;bottom:68px!important;top:auto!important;z-index:99998!important;max-height:68vh!important;overflow:auto!important;border-radius:16px 16px 8px 8px!important;padding:14px!important;background:#faf8f5!important;box-shadow:0 -10px 40px rgba(0,0,0,.28)!important;transform:translateY(calc(100% + 90px));visibility:hidden;transition:transform .2s ease,visibility .2s ease}.zmpb-drawer.is-open{transform:translateY(0);visibility:visible}.drawer-close{display:grid!important;place-items:center}.zmpb-drawer h3{font-size:20px}.zmpb-drawer .hint{font-size:11px}
 #zmpb-library{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}.photo-thumb img{height:68px!important}.photo-thumb.selected-photo{outline-width:2px!important}.layout-list{grid-template-columns:1fr 1fr!important;gap:7px!important}.layout-btn.variant{grid-template-columns:56px 1fr!important;min-height:60px!important;padding:6px!important}.layout-mini{width:52px!important;height:38px!important;transform:scale(.8);transform-origin:left center}.count-tabs{gap:5px!important}.count-tabs button{min-width:36px!important;min-height:36px!important;padding:5px!important}.align-tools{margin-top:10px!important;padding:9px!important}.zmpb-touch-help{font-size:11px!important;padding:9px!important}
 .zmpb-bottom{margin-top:9px!important;padding:12px!important;border-radius:10px!important}.zmpb-bottom div{display:none!important}#zmpb-cart{min-height:45px!important;font-size:12px!important}
 .zmpb-mobilebar{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:99999;background:#111;color:#fff;border-top:1px solid #333;padding:5px max(5px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));box-shadow:0 -5px 18px rgba(0,0,0,.2)}.zmpb-mobilebar button{min-width:0;min-height:53px;border:0;background:transparent;color:#fff;display:grid;place-items:center;align-content:center;gap:2px;font-size:9px;padding:3px;cursor:pointer}.zmpb-mobilebar button span{font-size:21px;line-height:1}.zmpb-mobilebar button.active{color:#e7bd7a}.zmpb-mobilebar button.danger{color:#ffadad!important}.zmpb-mobilebar button:disabled{opacity:.35!important}
 .zmpb-help-modal{padding:12px!important}.zmpb-help-card{padding:18px!important;max-height:78vh!important}.zmpb-help-card h3{font-size:23px!important}.zmpb-help-card ol{font-size:13px}
 .zmpb.is-preview .zmpb-historybar,.zmpb.is-preview .zmpb-status,.zmpb.is-preview .zmpb-steps{display:none!important}.zmpb.is-preview .zmpb-mobilebar button:not(#mobile-preview){opacity:.35;pointer-events:none}.zmpb.is-preview .zmpb-mobilebar #mobile-preview{grid-column:1/-1;font-size:11px}.zmpb.is-preview .zmpb-mobilebar{grid-template-columns:1fr}.zmpb.is-preview .spread{max-width:calc(100vw - 18px)!important;width:calc(100vw - 18px)!important}
}


/* v0.5.1 — edge-to-edge layouts + used-photo status */
.photo-thumb{position:relative}
.photo-thumb.used-photo img{filter:brightness(.58) saturate(.72);transition:filter .15s ease}
.photo-thumb.used-photo:not(.selected-photo){background:#eee9e1}
.used-badge{position:absolute;left:6px;top:6px;z-index:4;background:rgba(17,17,17,.84);color:#fff;font-style:normal;font-size:10px;line-height:1;padding:5px 6px;border-radius:999px;pointer-events:none;box-shadow:0 1px 5px rgba(0,0,0,.18)}
.photo-thumb.selected-photo.used-photo img{filter:brightness(.72) saturate(.85)}
.edge-note{font-size:11px;color:#777}
@media(max-width:900px){.used-badge{font-size:8px;left:3px;top:3px;padding:4px 5px}.photo-thumb.used-photo img{filter:brightness(.55) saturate(.7)}}

/* v0.6.0 — direktno pomjeranje okvira + veća biblioteka šablona */
.zmpb-mode{display:inline-flex;gap:3px;padding:3px;border:1px solid #d8d0c5;border-radius:9px;background:#f4f0ea}.zmpb-mode button{border:0!important;background:transparent!important;border-radius:6px!important;min-width:auto!important}.zmpb-mode button.active{background:#171717!important;color:#fff!important}
.frame-shapes{margin:14px 0;padding:12px;border:1px solid #ddd5ca;border-radius:10px;background:#fff}.frame-shapes>b{display:block;margin-bottom:8px;font-size:12px}.frame-shapes #shape-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.frame-shapes button{min-height:36px;border:1px solid #d6cec3;background:#fff;border-radius:6px;padding:6px 7px;font-size:11px;cursor:pointer}.frame-shapes button:hover{border-color:#b78b45}
.layout-list{grid-template-columns:1fr!important}.layout-btn.variant{background:#fff!important}.layout-mini{position:relative!important;display:block!important;width:72px!important;height:48px!important;border:1px solid #cfc7bc!important;background:#fff!important;overflow:hidden!important}.layout-mini:before,.layout-mini:after{display:none!important}.layout-mini i{position:absolute;display:block;background:#ddd7cf;border:1px solid #b9afa2;box-sizing:border-box}
.zmpb.frame-mode .slot{cursor:move!important}.zmpb.frame-mode .slot.has-photo{cursor:move!important}.slot.frame-editing.selected{outline:3px solid #b78b45!important}.slot.frame-editing.selected:after{content:'POMJERI OKVIR PRSTOM';position:absolute;left:50%;bottom:5px;transform:translateX(-50%);z-index:14;background:rgba(17,17,17,.78);color:#fff;font-size:8px;font-weight:700;letter-spacing:.4px;padding:4px 6px;border-radius:999px;pointer-events:none;white-space:nowrap}.slot.is-frame-moving{opacity:.92}.zmpb.frame-mode .move-handle{display:none!important}
@media(max-width:900px){.zmpb-mode{flex:0 0 auto}.zmpb-mode button{min-width:92px!important}.layout-list{grid-template-columns:1fr 1fr!important}.layout-btn.variant{grid-template-columns:58px 1fr!important;min-height:60px!important}.layout-mini{width:54px!important;height:38px!important;transform:none!important}.frame-shapes #shape-list{grid-template-columns:repeat(2,minmax(0,1fr))}.frame-shapes button{min-height:42px;font-size:10px}.slot.frame-editing.selected:after{font-size:7px;bottom:3px}}
/* v0.7 Smart Design */
.photo-filters{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 10px}.photo-filters button{min-height:38px;padding:7px 10px;border:1px solid #ddd;background:#fff;border-radius:8px}.photo-thumb{position:relative}.fav-toggle{position:absolute;right:5px;top:5px;width:30px;height:30px;display:grid;place-items:center;background:rgba(255,255,255,.92);border-radius:999px;font-size:20px;color:#9b6a35;z-index:4}.layout-list{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-btn b{font-size:12px;line-height:1.15}.zmpb-auto{font-weight:700}

/* v0.7.1 – explicit left/right template targeting and true 2D photo panning */
.page-target{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:6px 0 10px}.page-target button{min-height:42px;border:1px solid #cfc7bc;background:#fff;border-radius:7px;font-weight:700;cursor:pointer}.page-target button.active{background:#111;color:#fff;border-color:#111}.page.active-page{box-shadow:inset 0 0 0 2px rgba(201,154,81,.95);z-index:2}.slot.has-photo img{left:0!important;top:0!important;right:auto!important;bottom:auto!important;width:100%!important;height:100%!important;object-position:50% 50%!important;transform-origin:center center!important}.zmpb-layouts .hint{margin:6px 0 9px}
@media(max-width:900px){.page-target{position:sticky;top:0;z-index:5;background:#faf8f5;padding:4px 0}.page-target button{min-height:46px;font-size:13px}.page.active-page{box-shadow:inset 0 0 0 2px #c99a51}}

/* v0.7.2 FIX: spread contains two actual page columns; gutter is absolute overlay. */
.spread{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  column-gap:0!important;
}
.spread > .page[data-side="left"]{grid-column:1!important;grid-row:1!important;width:100%!important;height:100%!important;min-width:0!important;}
.spread > .page[data-side="right"]{grid-column:2!important;grid-row:1!important;width:100%!important;height:100%!important;min-width:0!important;}
.spread > .gutter-line{position:absolute!important;left:50%!important;top:0!important;bottom:0!important;width:1px!important;z-index:21!important;}


/* v0.7.3 FIX — uredni rasporedi bez preklapanja + jasnije oznake */
.page{isolation:isolate!important}
.slot{box-sizing:border-box!important}
.slot:not(.selected){z-index:1!important}
.slot.selected{z-index:6!important}
.zmpb:not(.frame-mode) .resize-handle,.zmpb:not(.frame-mode) .delete-frame,.zmpb:not(.frame-mode) .move-handle{display:none!important}
.zmpb.frame-mode .slot{overflow:visible!important}
.zmpb.frame-mode .slot.has-photo img,.zmpb.frame-mode .slot .empty-hint{overflow:hidden!important}
.layout-mini i{border-width:1px!important;box-sizing:border-box!important;inset:auto}
.layout-btn.variant{overflow:hidden!important}
.page-target:before{content:'Raspored za:';grid-column:1/-1;font-size:11px;font-weight:700;color:#6b6258;margin-bottom:-2px}
@media(max-width:900px){.page-target:before{font-size:10px}.slot.frame-editing.selected:after{content:'POMJERI'!important}}
/* Keep every generated frame visually clipped to its own bounds. Controls stay inside the frame. */
.zmpb.frame-mode .slot{overflow:hidden!important}
.zmpb.frame-mode .move-handle{top:3px!important;left:50%!important;transform:translateX(-50%)!important}
.zmpb.frame-mode .delete-frame{top:3px!important;right:3px!important;transform:none!important}
.zmpb.frame-mode .resize-handle.nw{left:2px!important;top:2px!important}
.zmpb.frame-mode .resize-handle.ne{right:2px!important;top:2px!important}
.zmpb.frame-mode .resize-handle.sw{left:2px!important;bottom:2px!important}
.zmpb.frame-mode .resize-handle.se{right:2px!important;bottom:2px!important}


/* v0.8.0 — Autosave, cover editor, saved projects, final preflight */
.zmpb-save-state{font-size:11px;color:#6f675e;margin-left:auto;white-space:nowrap}.zmpb-historybar #zmpb-cover.active{background:#111!important;color:#fff!important}.zmpb-cover-panel{margin:18px auto;max-width:1120px;padding:18px;background:#f7f4ef;border:1px solid #ddd4c8;border-radius:14px}.cover-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.cover-head b{font-size:20px}.cover-head small{display:block;color:#71685f}.cover-head button,.cover-tools button{min-height:42px;border:1px solid #ccc2b6;background:#fff;border-radius:8px;padding:8px 12px}.cover-canvas{display:grid;grid-template-columns:minmax(0,1fr) 5% minmax(0,1fr);aspect-ratio:2.08/1;background:#fff;border:1px solid #bbb;overflow:hidden}.cover-canvas section{position:relative;background:#fff center/cover no-repeat;min-width:0;cursor:pointer}.cover-canvas section.active-cover{box-shadow:inset 0 0 0 3px #c99a51}.cover-canvas section>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(255,255,255,.78);padding:6px 9px;font-size:11px;font-weight:700;text-align:center}.cover-spine{position:relative;background:#eee8df;border-left:1px dashed #aaa;border-right:1px dashed #aaa}.cover-spine span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-90deg);font-size:9px;font-weight:700}.cover-tools{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:12px}.cover-tools label{flex:1;min-width:200px;font-size:12px;font-weight:700}.cover-tools input{display:block;width:100%;min-height:42px;margin-top:4px;border:1px solid #ccc2b6;border-radius:8px;padding:8px 10px;font-size:16px}.saved-project{display:grid;grid-template-columns:1fr auto;gap:8px;border-bottom:1px solid #e4ddd3;padding:8px 0}.saved-project>button:first-child{text-align:left;border:0;background:#f8f5f0;border-radius:8px;padding:10px}.saved-project b,.saved-project small{display:block}.saved-project small{margin-top:3px;color:#746b62}.saved-delete{border:1px solid #d9b6b6;background:#fff;color:#9c3333;border-radius:8px;padding:8px}.final-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:15px}.final-actions button{min-height:44px;padding:9px 14px;border-radius:8px;border:1px solid #ccc;background:#fff}.final-actions #zmpb-final-submit{background:#111;color:#fff;border-color:#111}.check-ok,.check-warn{padding:10px 12px;margin:7px 0;border-radius:8px;font-size:13px}.check-ok{background:#eef6ef;border:1px solid #cfe3d1}.check-warn{background:#fff6e7;border:1px solid #ecd7ae}
@media(max-width:900px){.zmpb-save-state{order:20;width:100%;text-align:center;margin:2px 0 0}.cover-canvas{aspect-ratio:2/1}.zmpb-cover-panel{margin:8px;padding:10px}.cover-head{align-items:flex-start}.cover-head b{font-size:17px}.cover-tools{display:grid;grid-template-columns:1fr 1fr}.cover-tools label{grid-column:1/-1;min-width:0}.cover-canvas section>span{font-size:8px;padding:4px}.saved-project{grid-template-columns:1fr}.saved-delete{justify-self:end}.final-actions{display:grid;grid-template-columns:1fr}.final-actions button{width:100%}}

/* v0.8.1 — naslovnica u istom nizu sa stranicama + bolja čitljivost */
.cover-shortcut{display:none!important}
.cover-in-canvas{margin:0!important;max-width:none!important;width:100%!important;border-radius:0!important;box-sizing:border-box!important}
.cover-in-canvas[hidden]{display:none!important}
.cover-in-canvas .cover-head{margin-bottom:10px!important}
.cover-in-canvas .cover-head b{color:#171717!important}
.cover-in-canvas .cover-head small{color:#655e56!important;opacity:1!important}
.spread-strip .cover-tab{font-weight:800!important;min-width:96px!important}
.spread-strip button{color:#2b2824!important;background:#fff!important;border-color:#d7d0c7!important;opacity:1!important}
.spread-strip button.active{background:#171717!important;color:#fff!important;border-color:#171717!important}
.zmpb-toolbar button:disabled{opacity:.35!important;cursor:default!important}

/* Jasna dugmad za zatvaranje na telefonu i desktopu. */
.drawer-close,.help-close{display:grid!important;place-items:center!important;color:#fff!important;background:#171717!important;border:2px solid #fff!important;box-shadow:0 2px 10px rgba(0,0,0,.24)!important;font-family:Arial,sans-serif!important;font-weight:900!important;line-height:1!important;text-indent:0!important;opacity:1!important;visibility:visible!important}
.drawer-close{width:42px!important;height:42px!important;min-width:42px!important;border-radius:50%!important;font-size:19px!important;padding:0!important}
.help-close{width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;font-size:20px!important;padding:0!important;right:10px!important;top:10px!important;z-index:20!important}
.drawer-head{align-items:center!important;min-height:46px!important}.drawer-head h3{color:#171717!important;opacity:1!important;margin:0!important}

/* Tekst i oznake moraju ostati čitljivi na svijetloj pozadini. */
.zmpb,.zmpb button,.zmpb label,.zmpb small,.zmpb .hint,.zmpb p,.zmpb span{opacity:1}
.zmpb button{line-height:1.2!important;text-overflow:ellipsis}
.zmpb .hint{color:#5f584f!important;line-height:1.45!important}
.zmpb-help-card{color:#1b1a18!important}.zmpb-help-card h3{color:#171717!important}.zmpb-help-card p,.zmpb-help-card li,.zmpb-help-card small{color:#4e4841!important}
.cover-tools button{color:#171717!important;background:#fff!important}
.cover-tools label{color:#25221f!important}
.cover-tools input{color:#171717!important;background:#fff!important}
.cover-canvas section>span{color:#171717!important;background:rgba(255,255,255,.88)!important;max-width:88%;white-space:normal!important;line-height:1.2!important}
.cover-spine span{color:#3d3934!important}

@media(max-width:900px){
 .cover-in-canvas{padding:9px!important;background:#f7f4ef!important}
 .cover-in-canvas .cover-head{margin-bottom:7px!important}
 .cover-in-canvas .cover-head b{font-size:16px!important}
 .cover-in-canvas .cover-head small{font-size:10px!important}
 .cover-in-canvas .cover-tools{grid-template-columns:1fr!important;gap:7px!important;margin-top:8px!important}
 .cover-in-canvas .cover-tools label{grid-column:1!important}
 .cover-in-canvas .cover-tools button{width:100%!important;min-height:42px!important;font-size:12px!important}
 .cover-in-canvas .hint{font-size:10px!important;margin:7px 0 0!important}
 .spread-strip .cover-tab{min-width:88px!important}
 .spread-strip button{font-size:10px!important;color:#221f1b!important}
 .spread-strip button.active{color:#fff!important}
 .drawer-close{position:relative!important;right:auto!important;top:auto!important}
 .zmpb-help-card{padding-top:58px!important}
 .help-close{right:8px!important;top:8px!important}
}

/* v0.8.2 — naslovnica je isključivo prvi element u istom nizu sa spreadovima */
#spread-strip{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;overflow-x:auto!important;width:100%!important}
#spread-strip .cover-tab{order:-1!important;flex:0 0 auto!important}
#spread-strip button{white-space:nowrap!important}
.cover-shortcut{display:none!important}

/* v0.8.3 – force readable labels/numbers inside editor controls on themes with aggressive button styles */
.zmpb .zmpb-drawer button,
.zmpb .zmpb-drawer b,
.zmpb .zmpb-drawer strong,
.zmpb .zmpb-drawer label,
.zmpb .zmpb-drawer p,
.zmpb .zmpb-drawer span,
.zmpb .zmpb-drawer small,
.zmpb .zmpb-toolbar button,
.zmpb .spread-strip button,
.zmpb .zmpb-mobilebar button {
  opacity:1!important;
  visibility:visible!important;
  text-shadow:none!important;
}
.zmpb .page-target button,
.zmpb .count-tabs button,
.zmpb .layout-btn.variant,
.zmpb .layout-btn.variant b,
.zmpb .frame-shapes button,
.zmpb .align-tools button,
.zmpb .zmpb-quick-actions button,
.zmpb #add-frame,
.zmpb #delete-selected-frame,
.zmpb #clear-page {
  color:#1c1916!important;
  -webkit-text-fill-color:#1c1916!important;
  font-family:Arial,sans-serif!important;
  font-weight:600!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-indent:0!important;
}
.zmpb .page-target button.active,
.zmpb .count-tabs button.active {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#111!important;
  border-color:#111!important;
}
.zmpb .page-target button {
  font-size:14px!important;
  line-height:1.25!important;
  min-width:0!important;
  white-space:normal!important;
}
.zmpb .count-tabs {
  display:grid!important;
  grid-template-columns:repeat(10,minmax(42px,1fr))!important;
  gap:6px!important;
  overflow-x:auto!important;
  padding:2px 0 6px!important;
}
.zmpb .count-tabs button {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:42px!important;
  height:46px!important;
  padding:0 8px!important;
  font-size:17px!important;
  line-height:1!important;
  background:#fff!important;
  border:1px solid #cfc7bc!important;
  border-radius:8px!important;
}
.zmpb .count-tabs button.active {
  background:#111!important;
}
.zmpb .layout-btn.variant {
  min-height:74px!important;
  background:#fff!important;
  border:1px solid #d2cac0!important;
  border-radius:9px!important;
}
.zmpb .layout-btn.variant b {
  display:block!important;
  font-size:13px!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow:visible!important;
}
.zmpb .frame-shapes>b,
.zmpb .align-tools>b {
  display:block!important;
  color:#1c1916!important;
  -webkit-text-fill-color:#1c1916!important;
}
.zmpb .zmpb-layouts .hint {
  color:#5f584f!important;
  -webkit-text-fill-color:#5f584f!important;
  font-size:13px!important;
  opacity:1!important;
}
.zmpb .drawer-head h3 {
  color:#171717!important;
  -webkit-text-fill-color:#171717!important;
}
@media(max-width:900px){
  .zmpb .count-tabs{grid-template-columns:repeat(10,48px)!important;}
  .zmpb .count-tabs button{min-width:48px!important;height:48px!important;font-size:18px!important;}
  .zmpb .layout-btn.variant b{font-size:12px!important;}
  .zmpb .page-target button{font-size:13px!important;}
}

/* v0.8.4 — edge-to-edge templates */
.page{padding:0!important;gap:0!important;}
.slot{margin:0!important;box-sizing:border-box!important;}
/* The border is drawn inside each frame so it never changes frame geometry. */
.slot{border-width:1px!important;}
/* Keep the central fold clean: frames may end exactly at 50% of the open spread. */
.spread>.page[data-side="left"],.spread>.page[data-side="right"]{overflow:hidden!important;}

/* v0.8.8 — direct edge resize on touch */
.zmpb.frame-mode .slot{touch-action:none!important}
.zmpb.frame-mode .slot.selected{box-shadow:inset 0 0 0 2px #b78b45}
.zmpb.frame-mode .slot.is-edge-resizing{outline:3px solid #b78b45!important;cursor:nwse-resize!important}
.zmpb.frame-mode .slot.is-edge-resizing:after{content:'RAZVLAČENJE OKVIRA';position:absolute;left:50%;bottom:5px;transform:translateX(-50%);z-index:15;background:rgba(17,17,17,.82);color:#fff;font-size:8px;font-weight:700;letter-spacing:.35px;padding:4px 7px;border-radius:999px;pointer-events:none;white-space:nowrap}
.zmpb.frame-mode .slot:before{content:'';position:absolute;inset:0;z-index:12;pointer-events:none;border:1px solid rgba(183,139,69,.25)}
@media(max-width:900px){.zmpb.frame-mode .resize-handle{width:18px!important;height:18px!important}.zmpb.frame-mode .slot.selected{outline:2px solid #b78b45!important}}

/* v0.8.8: reliable direct edge resize handles for touch */
.zmpb.frame-mode .resize-edge{
  display:block!important;
  position:absolute!important;
  z-index:30!important;
  opacity:1!important;
  background:transparent!important;
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.zmpb.frame-mode .resize-edge.n{left:22px!important;right:22px!important;top:0!important;height:24px!important;cursor:ns-resize!important}
.zmpb.frame-mode .resize-edge.s{left:22px!important;right:22px!important;bottom:0!important;height:24px!important;cursor:ns-resize!important}
.zmpb.frame-mode .resize-edge.w{top:22px!important;bottom:22px!important;left:0!important;width:24px!important;cursor:ew-resize!important}
.zmpb.frame-mode .resize-edge.e{top:22px!important;bottom:22px!important;right:0!important;width:24px!important;cursor:ew-resize!important}
.zmpb:not(.frame-mode) .resize-edge{display:none!important}
.zmpb.frame-mode .slot.selected .resize-edge.n{border-top:3px solid rgba(183,139,69,.75)!important}
.zmpb.frame-mode .slot.selected .resize-edge.s{border-bottom:3px solid rgba(183,139,69,.75)!important}
.zmpb.frame-mode .slot.selected .resize-edge.w{border-left:3px solid rgba(183,139,69,.75)!important}
.zmpb.frame-mode .slot.selected .resize-edge.e{border-right:3px solid rgba(183,139,69,.75)!important}
@media(max-width:900px){
 .zmpb.frame-mode .resize-edge.n,.zmpb.frame-mode .resize-edge.s{height:30px!important}
 .zmpb.frame-mode .resize-edge.w,.zmpb.frame-mode .resize-edge.e{width:30px!important}
}
\n\n/* v0.8.9 — direct editing: no Fotografija/Okvir mode switch */\n.zmpb .zmpb-mode{display:none!important}\n.zmpb .slot{overflow:hidden!important}\n.zmpb .slot.selected .frame-control{opacity:1!important}\n.zmpb .slot .resize-edge{display:block!important;opacity:0!important;pointer-events:auto!important;position:absolute!important;z-index:30!important;background:transparent!important;touch-action:none!important}\n.zmpb .slot.selected .resize-edge{opacity:1!important}\n.zmpb .slot .resize-edge.n{left:28px!important;right:28px!important;top:0!important;height:28px!important;cursor:ns-resize!important}\n.zmpb .slot .resize-edge.s{left:28px!important;right:28px!important;bottom:0!important;height:28px!important;cursor:ns-resize!important}\n.zmpb .slot .resize-edge.w{top:28px!important;bottom:28px!important;left:0!important;width:28px!important;cursor:ew-resize!important}\n.zmpb .slot .resize-edge.e{top:28px!important;bottom:28px!important;right:0!important;width:28px!important;cursor:ew-resize!important}\n.zmpb .slot.selected .resize-edge.n{border-top:3px solid rgba(183,139,69,.82)!important}\n.zmpb .slot.selected .resize-edge.s{border-bottom:3px solid rgba(183,139,69,.82)!important}\n.zmpb .slot.selected .resize-edge.w{border-left:3px solid rgba(183,139,69,.82)!important}\n.zmpb .slot.selected .resize-edge.e{border-right:3px solid rgba(183,139,69,.82)!important}\n.zmpb .slot.selected .move-handle,.zmpb .slot.selected .delete-frame,.zmpb .slot.selected .resize-handle{display:grid!important;opacity:1!important}\n.zmpb .slot.frame-editing.selected:after{content:'RUB = VELIČINA  •  ⠿ = POMJERI'!important;position:absolute;left:50%;bottom:5px;transform:translateX(-50%);z-index:20;background:rgba(17,17,17,.78);color:#fff!important;font-size:8px;font-weight:700;letter-spacing:.25px;padding:4px 7px;border-radius:999px;pointer-events:none;white-space:nowrap}\n.zmpb .slot.is-frame-moving{opacity:.92}\n.zmpb .slot.is-edge-resizing{outline:3px solid #b78b45!important}\n.zmpb .move-handle{top:3px!important;left:50%!important;transform:translateX(-50%)!important;z-index:35!important}\n.zmpb .delete-frame{top:3px!important;right:3px!important;transform:none!important;z-index:36!important}\n@media(max-width:900px){\n .zmpb-mobilebar{grid-template-columns:repeat(4,1fr)!important}\n .zmpb .slot .resize-edge.n,.zmpb .slot .resize-edge.s{height:34px!important}\n .zmpb .slot .resize-edge.w,.zmpb .slot .resize-edge.e{width:34px!important}\n .zmpb .slot.frame-editing.selected:after{content:'RUB = VELIČINA • ⠿ = POMJERI'!important;font-size:7px!important}\n}\n
/* v0.9.0: full-spread frame */
.spread-wide-layer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:12!important;pointer-events:none!important;overflow:hidden!important}
.spread-wide-layer[hidden]{display:none!important}
.spread-wide-layer>.slot{pointer-events:auto!important}
.spread-wide-layer.active-spread{z-index:18!important}
.full-spread-tools{display:grid;gap:7px;margin:8px 0 12px}
.full-spread-btn{width:100%;min-height:48px;border:2px solid #171717!important;background:#171717!important;color:#fff!important;border-radius:8px!important;font-weight:800!important;padding:9px 12px!important;text-align:center!important}
.page-target{grid-template-columns:1fr 1fr!important}
@media(max-width:900px){.full-spread-btn{min-height:52px!important;font-size:13px!important}}

/* v0.9.2 — PREMIUM TRUE FULL-SHEET GEOMETRY
   Premium is one physical open sheet. The editing layer MUST span both grid columns. */
.spread > #spread-wide-layer,
.spread > .spread-wide-layer{
  grid-column:1 / -1!important;
  grid-row:1!important;
  left:0!important;
  right:0!important;
  top:0!important;
  bottom:0!important;
  width:auto!important;
  height:auto!important;
  max-width:none!important;
  min-width:0!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
}
/* In Premium mode the two legacy half-page surfaces are only visual background;
   the full-sheet layer above them owns all frame coordinates. */
.spread-wide-layer .slot{
  margin:0!important;
}

/* v0.9.7 – sigurno slanje projekta u korpu */
.zmpb-checkout-progress{margin-top:14px;padding:12px 14px;border:1px solid #cfd8e6;border-radius:12px;background:#f7faff;color:#172033}
.zmpb-checkout-progress b{display:block;margin-bottom:8px;font-size:14px}
.zmpb-checkout-progress div{height:8px;border-radius:99px;background:#dbe4f0;overflow:hidden}
.zmpb-checkout-progress div i{display:block;height:100%;background:#1976d2;border-radius:99px;transition:width .2s ease}
.zmpb-checkout-progress small{display:block;margin-top:5px;text-align:right;color:#596579}
#zmpb-final-submit:disabled{opacity:.65;cursor:wait}
