.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:600px){.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:600px){
 .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:600px){
 .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:600px){
 .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:600px;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:600px){
 .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:600px){
 .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:600px){
 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:600px){.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:600px){.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:600px){.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:600px){.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:600px){.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:600px){
 .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:600px){
  .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:600px){.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:600px){
 .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}
}


/* v0.8.9 — direct editing: no Fotografija/Okvir mode switch */
.zmpb .zmpb-mode{display:none!important}
.zmpb .slot{overflow:hidden!important}
.zmpb .slot.selected .frame-control{opacity:1!important}
.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}
.zmpb .slot.selected .resize-edge{opacity:1!important}
.zmpb .slot .resize-edge.n{left:28px!important;right:28px!important;top:0!important;height:28px!important;cursor:ns-resize!important}
.zmpb .slot .resize-edge.s{left:28px!important;right:28px!important;bottom:0!important;height:28px!important;cursor:ns-resize!important}
.zmpb .slot .resize-edge.w{top:28px!important;bottom:28px!important;left:0!important;width:28px!important;cursor:ew-resize!important}
.zmpb .slot .resize-edge.e{top:28px!important;bottom:28px!important;right:0!important;width:28px!important;cursor:ew-resize!important}
.zmpb .slot.selected .resize-edge.n{border-top:3px solid rgba(183,139,69,.82)!important}
.zmpb .slot.selected .resize-edge.s{border-bottom:3px solid rgba(183,139,69,.82)!important}
.zmpb .slot.selected .resize-edge.w{border-left:3px solid rgba(183,139,69,.82)!important}
.zmpb .slot.selected .resize-edge.e{border-right:3px solid rgba(183,139,69,.82)!important}
.zmpb .slot.selected .move-handle,.zmpb .slot.selected .delete-frame,.zmpb .slot.selected .resize-handle{display:grid!important;opacity:1!important}
.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}
.zmpb .slot.is-frame-moving{opacity:.92}
.zmpb .slot.is-edge-resizing{outline:3px solid #b78b45!important}
.zmpb .move-handle{top:3px!important;left:50%!important;transform:translateX(-50%)!important;z-index:35!important}
.zmpb .delete-frame{top:3px!important;right:3px!important;transform:none!important;z-index:36!important}
@media(max-width:600px){
 .zmpb-mobilebar{grid-template-columns:repeat(4,1fr)!important}
 .zmpb .slot .resize-edge.n,.zmpb .slot .resize-edge.s{height:34px!important}
 .zmpb .slot .resize-edge.w,.zmpb .slot .resize-edge.e{width:34px!important}
 .zmpb .slot.frame-editing.selected:after{content:'RUB = VELIČINA • ⠿ = POMJERI'!important;font-size:7px!important}
}

/* 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:600px){.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}

/* v0.9.9 — Desktop Workspace / iMac 27: maksimalan canvas, minimalno vertikalnog skrolovanja */
@media (min-width:1100px){
  .zmpb{
    width:calc(100% - 24px)!important;
    max-width:1900px!important;
    margin:10px auto 18px!important;
  }
  .zmpb-head{padding:8px 10px 10px!important}
  .zmpb-head span{font-size:10px!important;letter-spacing:1.6px!important}
  .zmpb-head h1{font-size:34px!important;line-height:1.05!important;margin:4px 0!important}
  .zmpb-head p{font-size:12px!important;margin:3px 0 0!important}

  .zmpb-steps{
    min-height:34px!important;
    margin:0 0 7px!important;
    padding:5px 10px!important;
    gap:7px!important;
    font-size:10px!important;
    flex-wrap:nowrap!important;
    overflow:hidden!important;
  }
  .zmpb-steps button{padding:4px 10px!important;min-height:28px!important;font-size:10px!important}

  .zmpb-top{
    grid-template-columns:minmax(350px,2fr) minmax(160px,.75fr) minmax(150px,.6fr)!important;
    gap:10px!important;
    padding:9px 12px!important;
    border-radius:10px!important;
    align-items:end!important;
  }
  .zmpb-top label{gap:4px!important;font-size:11px!important}
  .zmpb-top select{min-height:38px!important;padding:7px 10px!important;font-size:13px!important}
  .zmpb-price strong{font-size:24px!important;line-height:1!important}
  .zmpb-price small{font-size:9px!important}

  .zmpb-status{
    margin:6px 0!important;
    min-height:34px!important;
    padding:5px 10px!important;
    font-size:10px!important;
  }
  .zmpb-status button{min-height:28px!important;padding:4px 8px!important;font-size:10px!important}

  .zmpb-historybar{
    position:relative!important;
    top:auto!important;
    margin:0 0 7px!important;
    min-height:38px!important;
    padding:5px 8px!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
  }
  .zmpb-historybar button{min-height:30px!important;padding:4px 9px!important;font-size:10px!important;white-space:nowrap!important}
  .zmpb-historybar span{font-size:10px!important;white-space:nowrap!important}

  .zmpb-work{
    grid-template-columns:minmax(210px,250px) minmax(0,1fr) minmax(250px,300px)!important;
    gap:10px!important;
    margin-top:0!important;
    height:clamp(610px,calc(100vh - 315px),880px)!important;
    min-height:610px!important;
    max-height:880px!important;
    align-items:stretch!important;
  }
  .zmpb-photos,.zmpb-layouts{
    min-width:0!important;
    height:100%!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:11px!important;
    border-radius:10px!important;
    scrollbar-width:thin!important;
    overscroll-behavior:contain!important;
  }
  .drawer-head{position:sticky!important;top:-11px!important;z-index:20!important;background:#faf8f5!important;padding:4px 0 7px!important;margin-bottom:4px!important}
  .drawer-head h3{font-size:18px!important}
  .drawer-close{display:none!important}
  .zmpb-upload{padding:9px!important;font-size:11px!important}
  .zmpb-photos .ghost,.zmpb-layouts .ghost{min-height:34px!important;padding:6px 8px!important;font-size:10px!important;margin-top:7px!important}
  .zmpb-photos .hint,.zmpb-layouts .hint{font-size:10px!important;line-height:1.35!important;margin:7px 0!important}
  .photo-filters{gap:4px!important}
  .photo-filters button{font-size:9px!important;padding:5px 6px!important}
  .photo-thumb{margin:5px 0!important}
  .photo-thumb img{height:78px!important}
  .photo-thumb span{font-size:9px!important;padding:5px 6px!important}

  .zmpb-canvas{
    height:100%!important;
    min-width:0!important;
    padding:8px 10px!important;
    border-radius:10px!important;
    overflow:hidden!important;
    justify-content:flex-start!important;
  }
  .zmpb-toolbar{
    flex:0 0 auto!important;
    width:100%!important;
    min-height:38px!important;
    margin:0 0 6px!important;
    justify-content:center!important;
    gap:12px!important;
  }
  .zmpb-toolbar button{width:32px!important;height:32px!important;font-size:16px!important}
  .zmpb-toolbar b{font-size:13px!important}
  .zmpb-toolbar small{font-size:9px!important}

  /* Glavni list zauzima gotovo cijelu raspoloživu sredinu. */
  .spread{
    flex:1 1 auto!important;
    width:auto!important;
    max-width:100%!important;
    height:auto!important;
    max-height:calc(100% - 82px)!important;
    margin:0 auto!important;
    box-shadow:0 8px 24px rgba(0,0,0,.15)!important;
  }
  /* Za 2:1 i slične formate širinu određuje dostupna visina, bez izlaska iz canvasa. */
  .zmpb-canvas .spread{
    width:min(100%,calc((100vh - 405px) * 2))!important;
  }
  .spread-strip{
    flex:0 0 auto!important;
    width:100%!important;
    max-width:none!important;
    padding:6px 0 0!important;
    gap:4px!important;
  }
  .spread-strip button{height:30px!important;min-width:48px!important;font-size:9px!important;padding:0 8px!important}
  .spread-strip .cover-tab{min-width:76px!important}

  .count-tabs{grid-template-columns:repeat(5,minmax(38px,1fr))!important;gap:4px!important}
  .zmpb .count-tabs button{min-width:38px!important;height:36px!important;font-size:13px!important;border-radius:6px!important}
  .layout-list{gap:5px!important;margin:6px 0!important}
  .zmpb .layout-btn.variant{
    min-height:52px!important;
    grid-template-columns:58px 1fr!important;
    gap:7px!important;
    padding:5px!important;
    margin:0!important;
  }
  .layout-mini{width:54px!important;height:36px!important}
  .zmpb .layout-btn.variant b{font-size:10px!important}
  .full-spread-tools{gap:5px!important;margin:5px 0 7px!important}
  .full-spread-btn{min-height:38px!important;padding:6px 8px!important;font-size:10px!important}
  .page-target button{min-height:32px!important;padding:5px 6px!important;font-size:10px!important}
  .frame-shapes,.align-tools,.zmpb-touch-help{font-size:10px!important}
  .zmpb-touch-help{padding:8px!important;margin-top:8px!important}
  .frame-shapes button,.align-tools button{min-height:30px!important;padding:4px 6px!important;font-size:10px!important}

  .zmpb-bottom{
    position:relative!important;
    bottom:auto!important;
    z-index:10!important;
    margin:10px 0 0!important;
    min-height:50px!important;
    padding:7px 12px!important;
    border-radius:10px!important;
    box-shadow:none!important;
  }
  .zmpb-bottom b{font-size:12px!important}
  .zmpb-bottom span{font-size:10px!important}
  #zmpb-cart{min-width:230px!important;padding:10px 14px!important;font-size:12px!important}

  .zmpb-cover-panel{height:calc(100% - 48px)!important;overflow:auto!important;margin:0!important;padding:12px!important}
  .cover-canvas{max-height:calc(100% - 120px)!important}
}

/* Na vrlo širokim desktop ekranima daj još više prostora samom listu. */
@media (min-width:1550px){
  .zmpb-work{grid-template-columns:250px minmax(0,1fr) 300px!important;gap:12px!important}
  .zmpb-canvas .spread{width:min(100%,calc((100vh - 390px) * 2))!important}
}

/* v0.9.10 – TRUE PHYSICAL PROPORTIONS ON DESKTOP
   The sheet must never grow vertically as a flex item. JS fits the exact open-sheet
   ratio into the available workspace (20×40 = 2:1, 30×60 = 2:1, A3 = 42:29.7, etc.). */
@media (min-width:601px){
  .zmpb-canvas .spread{
    flex:0 0 auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:none!important;
    aspect-ratio:var(--sheet-ratio,2)!important;
  }
  .spread > .page,
  .spread > #spread-wide-layer,
  .spread > .spread-wide-layer{
    min-height:0!important;
  }
}


/* v0.9.11 — FULL-WIDTH THEME ESCAPE
   The editor is allowed to escape a narrow theme/content container only on the
   Photobook Designer page. The rest of the WordPress site remains untouched. */
@media (min-width:601px){
  html.zmpb-open,body.zmpb-open{overflow-x:hidden!important}

  /* Common WordPress/theme wrappers must not clip the editor. */
  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 .site-main,
  body.zmpb-open main,
  body.zmpb-open article,
  body.zmpb-open .entry-content,
  body.zmpb-open .wp-block-post-content,
  body.zmpb-open .container,
  body.zmpb-open .ast-container,
  body.zmpb-open .site-container,
  body.zmpb-open .content-container,
  body.zmpb-open .elementor,
  body.zmpb-open .elementor-section,
  body.zmpb-open .elementor-container,
  body.zmpb-open .elementor-widget-wrap,
  body.zmpb-open .elementor-widget-container{
    overflow:visible!important;
  }

  /* Escape any max-width imposed by the active theme. */
  body.zmpb-open .zmpb{
    width:calc(100vw - 24px)!important;
    max-width:none!important;
    margin:10px 0 24px!important;
    position:relative!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    padding:0 4px!important;
  }

  /* The designer itself should use the available monitor width. */
  body.zmpb-open .zmpb-work{
    width:100%!important;
    grid-template-columns:clamp(220px,15vw,285px) minmax(0,1fr) clamp(260px,18vw,340px)!important;
    gap:12px!important;
  }
  body.zmpb-open .zmpb-canvas{min-width:0!important;width:100%!important}
  body.zmpb-open .zmpb-top,
  body.zmpb-open .zmpb-status,
  body.zmpb-open .zmpb-historybar,
  body.zmpb-open .zmpb-bottom,
  body.zmpb-open .zmpb-steps{width:100%!important;max-width:none!important}
}

@media (min-width:1700px){
  body.zmpb-open .zmpb{width:calc(100vw - 32px)!important}
  body.zmpb-open .zmpb-work{
    grid-template-columns:280px minmax(0,1fr) 340px!important;
    gap:14px!important;
  }
}


/* v0.9.12 — DESKTOP BOTTOM BAR NO-OVERLAY
   The finish bar must never cover the photo sheet or thumbnails on desktop. */
@media (min-width:601px){
  .zmpb-bottom{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    margin:10px 0 0!important;
    box-shadow:none!important;
    z-index:auto!important;
  }
  .zmpb-work{padding-bottom:0!important;}
}


/* v0.9.13 — CLEAN PHOTO UPLOAD PANEL
   Hide browser-native file control even when a theme overrides [hidden].
   Keep only the translated ZM upload button visible. */
#zmpb-files,
#zmpb-files-hidden,
.zmpb-upload input[type="file"]{
  display:none !important;
  visibility:hidden !important;
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.zmpb-upload{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:48px !important;
  cursor:pointer !important;
  text-align:center !important;
}
/* The three tiny filter buttons were confusing and can inherit invisible text from themes.
   Filtering logic remains in JS for compatibility, but the controls are intentionally hidden. */
.photo-filters{display:none !important;}
.zmpb-photos .hint{margin-top:12px !important;line-height:1.45 !important;}


/* v0.9.14 — HARD CLEAN PHOTO PANEL (desktop + mobile)
   The native browser file input never participates in layout. */
#zmpb-files,
#zmpb-files-hidden,
.zmpb input#zmpb-files[type="file"],
.zmpb form#zmpb-submit input[type="file"]{
  display:none!important;
  visibility:hidden!important;
  position:fixed!important;
  left:-99999px!important;
  top:-99999px!important;
  width:1px!important;
  height:1px!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  opacity:0!important;
  pointer-events:none!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.zmpb-upload{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:48px!important;
  padding:12px 14px!important;
  border:0!important;
  border-radius:8px!important;
  background:#c99a51!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:700!important;
  cursor:pointer!important;
}
.photo-filters{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
.zmpb-photos .hint{margin:12px 0 0!important;line-height:1.45!important}
@media(max-width:600px){
  .zmpb-photos{padding-bottom:16px!important}
  .zmpb-upload{min-height:52px!important;font-size:16px!important}
  .zmpb-auto{margin-top:10px!important}
  #zmpb-library:empty{display:none!important}
}


/* v0.9.15 — FINISH BAR READABILITY / THEME-PROOF DESKTOP
   Some themes override generic div/span/button colors and flex sizing.
   Keep the final order action readable and never collapse it into a thin bar. */
@media (min-width:601px){
  body.zmpb-open .zmpb .zmpb-bottom{
    display:flex!important;
    flex-direction:row!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:18px!important;
    width:100%!important;
    min-height:64px!important;
    padding:12px 16px!important;
    margin:12px 0 4px!important;
    background:#111!important;
    color:#fff!important;
    border:0!important;
    border-radius:10px!important;
    opacity:1!important;
    visibility:visible!important;
    overflow:visible!important;
  }
  body.zmpb-open .zmpb .zmpb-bottom>div{
    display:flex!important;
    flex:1 1 auto!important;
    min-width:0!important;
    flex-direction:column!important;
    gap:3px!important;
    color:#fff!important;
    opacity:1!important;
  }
  body.zmpb-open .zmpb .zmpb-bottom b{
    display:block!important;
    color:#fff!important;
    font-size:14px!important;
    line-height:1.25!important;
    opacity:1!important;
  }
  body.zmpb-open .zmpb .zmpb-bottom span{
    display:block!important;
    color:#e4e4e4!important;
    font-size:12px!important;
    line-height:1.35!important;
    opacity:1!important;
  }
  body.zmpb-open .zmpb #zmpb-cart{
    display:inline-flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:250px!important;
    max-width:none!important;
    min-height:44px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:11px 18px!important;
    margin:0!important;
    background:#c99a51!important;
    color:#fff!important;
    border:0!important;
    border-radius:7px!important;
    font-weight:800!important;
    font-size:12px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    opacity:1!important;
    visibility:visible!important;
    writing-mode:horizontal-tb!important;
    transform:none!important;
  }
}


/* v0.9.16 – jasniji mobilni alatni bar */
.zmpb-mobilebar button{font-weight:650!important;line-height:1.15!important}
.zmpb-mobilebar button span{position:relative!important}
.zmpb-mobilebar button span i{position:absolute;right:-9px;top:-6px;font-style:normal;font-size:13px;line-height:1;font-weight:800}
.zmpb-mobilebar #mobile-delete-frame:disabled{color:#8d8d8d!important;opacity:.42!important;filter:grayscale(1)}
.zmpb-mobilebar #mobile-delete-frame:not(:disabled){color:#ff9f9f!important;opacity:1!important}
@media(max-width:600px){.zmpb-mobilebar button{font-size:10px!important;padding:4px 2px!important}.zmpb-mobilebar button span{font-size:22px!important}}


/* v0.9.17 – jasno objašnjenje automatskog kreiranja */
.zmpb-auto-help{margin:8px 2px 12px!important;font-size:13px!important;line-height:1.45!important;color:#5f5a52!important;}
.zmpb-photos .hint{margin-top:10px!important;}
@media(max-width:767px){.zmpb-auto-help{font-size:13px!important;margin:8px 0 10px!important}.zmpb-auto{white-space:normal!important;line-height:1.25!important;padding:14px 10px!important}}
/* v0.9.18 server project save */
#zmpb-save-later{font-weight:800}.server-project{display:flex!important;justify-content:space-between;align-items:center;width:100%;margin:6px 0;padding:10px 12px!important;border:1px solid #d8d8d8!important;border-radius:10px!important;background:#fff!important;color:#151515!important;text-align:left}.server-project small{opacity:.65}#zmpb-server-projects h4{margin:14px 0 6px}


/* v1.0.0 — PAMETNA ZAVRŠNA KONTROLA */
.final-intro{margin:0 0 14px!important;color:#5f584f!important;font-size:13px!important;line-height:1.45!important;max-width:760px}
#zmpb-final-report{max-height:min(62vh,680px);overflow:auto;padding-right:3px}
.preflight-loading{display:flex;flex-direction:column;gap:4px;padding:18px;border:1px solid #e0d8cc;background:#faf8f4;border-radius:12px}.preflight-loading b{color:#171717!important}.preflight-loading span{font-size:12px;color:#6c645b!important}
.preflight-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:2px 0 12px}.preflight-summary>div{padding:10px 12px;border:1px solid #e2dbd1;border-radius:10px;background:#faf8f5;min-width:0}.preflight-summary small{display:block;font-size:9px!important;letter-spacing:.08em;color:#7a7168!important;margin-bottom:3px}.preflight-summary b{display:block;color:#171717!important;font-size:12px!important;line-height:1.3;overflow-wrap:anywhere}
.preflight-result{display:flex;flex-direction:column;gap:3px;padding:13px 14px;border-radius:10px;margin-bottom:10px}.preflight-result b{font-size:14px!important}.preflight-result span{font-size:12px!important;line-height:1.4}.preflight-result.ok{background:#edf7ef;border:1px solid #c9e3cf}.preflight-result.ok b{color:#235d31!important}.preflight-result.ok span{color:#426a4a!important}.preflight-result.warn{background:#fff6e8;border:1px solid #ebd3a8}.preflight-result.warn b{color:#7d5310!important}.preflight-result.warn span{color:#745f3a!important}
.preflight-note{padding:9px 11px;background:#eef5fb;border:1px solid #cfe0ed;border-radius:9px;color:#38586d!important;font-size:12px;margin-bottom:10px}.preflight-issues{display:flex;flex-direction:column;gap:7px}.preflight-issue{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:1px solid #e1d9ce;border-radius:10px;background:#fff}.preflight-issue.warn{border-left:4px solid #d79b37}.preflight-issue.error{border-left:4px solid #bd3636}.preflight-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff4dc;color:#8a5b0c!important;font-weight:900}.preflight-issue.error .preflight-icon{background:#fde9e9;color:#a92525!important}.preflight-copy{min-width:0}.preflight-copy b{display:block;color:#201d19!important;font-size:12px!important;margin-bottom:2px}.preflight-copy span{display:block;color:#675f57!important;font-size:11px!important;line-height:1.35}.preflight-open{min-width:78px!important;min-height:36px!important;padding:7px 11px!important;border:1px solid #c99a51!important;border-radius:8px!important;background:#fff!important;color:#7c5520!important;font-weight:800!important;font-size:11px!important;white-space:nowrap!important}.preflight-open:hover{background:#c99a51!important;color:#fff!important}.slot.preflight-focus{animation:zmpbPreflightFocus .55s ease-in-out 3;box-shadow:inset 0 0 0 4px #2d8cff!important;z-index:20!important}@keyframes zmpbPreflightFocus{0%,100%{box-shadow:inset 0 0 0 2px #2d8cff}50%{box-shadow:inset 0 0 0 6px #2d8cff,0 0 0 4px rgba(45,140,255,.22)}}
@media(max-width:700px){.preflight-summary{grid-template-columns:1fr 1fr}#zmpb-final-report{max-height:64vh}.preflight-issue{grid-template-columns:30px minmax(0,1fr)}.preflight-open{grid-column:2;width:100%!important;min-width:0!important}.final-intro{font-size:12px!important}}

/* v1.0.1 — novi šablon samo za trenutni list/stranicu */
.zmpb-reroll-current{display:flex!important;width:100%!important;align-items:center!important;justify-content:center!important;min-height:44px!important;margin:8px 0 6px!important;padding:10px 12px!important;border:1px solid #c99a51!important;border-radius:8px!important;background:#fffaf2!important;color:#5b431f!important;font-weight:800!important;cursor:pointer!important}
.zmpb-reroll-current:hover{background:#f7ead5!important}
.zmpb-reroll-note{margin:0 0 8px!important;padding:7px 9px!important;border-radius:7px!important;background:#eef7ff!important;color:#145b91!important;font-size:12px!important;font-weight:700!important;line-height:1.35!important}
@media(max-width:600px){.zmpb-reroll-current{min-height:50px!important;font-size:15px!important}}


/* v1.0.2 — direct photo swap feedback */
.zmpb.swap-mode{user-select:none!important;-webkit-user-select:none!important}
.zmpb .slot.swap-source{outline:4px solid #2d8cff!important;box-shadow:inset 0 0 0 3px rgba(45,140,255,.35),0 0 0 4px rgba(45,140,255,.12)!important;opacity:.72!important;z-index:25!important}
.zmpb .slot.swap-target{outline:5px solid #2d8cff!important;box-shadow:inset 0 0 0 4px rgba(45,140,255,.35),0 0 0 6px rgba(45,140,255,.18)!important;z-index:30!important}
.zmpb .slot.swap-target:after{content:'PUSTI OVDJE'!important;position:absolute!important;left:50%!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;background:#2d8cff!important;color:#fff!important;padding:7px 10px!important;border-radius:999px!important;font-size:9px!important;font-weight:900!important;letter-spacing:.3px!important;white-space:nowrap!important;z-index:60!important;pointer-events:none!important}
@media(max-width:600px){.zmpb .slot.swap-target:after{font-size:8px!important;padding:6px 8px!important}.zmpb .slot.swap-source{outline-width:3px!important}.zmpb .slot.swap-target{outline-width:4px!important}}


/* v1.0.3 — favorites: clear visual priority for Smart Design */
.photo-thumb .fav-toggle{display:grid!important;visibility:visible!important;opacity:1!important;box-shadow:0 1px 6px rgba(0,0,0,.18);font-weight:700}
.photo-thumb .fav-toggle:hover{transform:scale(1.06)}
.photo-thumb:has(.fav-toggle:first-of-type){position:relative}
@media(max-width:600px){.fav-toggle{width:34px!important;height:34px!important;font-size:22px!important;right:5px!important;top:5px!important}}

/* v1.0.4 — Smart cover suggestion */
.cover-smart-suggest{background:#171717!important;color:#fff!important;border-color:#171717!important;font-weight:800!important}.cover-smart-note{margin:9px 0 2px;padding:9px 11px;border-radius:8px;background:#f1f6fb;border:1px solid #cbddec;color:#34495e;font-size:12px;line-height:1.4}.cover-smart-note.ok{background:#eef7ef;border-color:#cce2cf;color:#285b31}@media(max-width:600px){.cover-smart-note{font-size:11px}.cover-smart-suggest{grid-column:1/-1!important}}


/* v1.0.5 — jednostavan tekst na listovima/stranicama */
.zmpb-text-tools{margin:14px 0 10px;padding:12px;border:1px solid #ddd4c8;border-radius:10px;background:#faf8f4}.zmpb-text-tools>b{display:block;margin-bottom:4px;color:#171717!important}.zmpb-text-tools .hint{margin:3px 0 9px!important;font-size:11px!important}.zmpb-text-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.zmpb-text-add textarea{min-width:0!important;min-height:92px!important;resize:vertical!important;padding:10px!important;border:1px solid #cfc7bc!important;border-radius:7px!important;background:#fff!important;color:#171717!important;font:inherit!important;line-height:1.35!important}.zmpb-text-add button{min-height:40px!important;padding:8px 10px!important;border:0!important;border-radius:7px!important;background:#171717!important;color:#fff!important;font-weight:800!important}.zmpb-text-edit{margin-top:9px;padding-top:9px;border-top:1px solid #e2dbd2}.zmpb-text-edit label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;font-size:11px;font-weight:700;color:#4f4942}.zmpb-text-edit select{height:36px!important}.zmpb-text-align{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:7px 0}.zmpb-text-align button{min-width:0!important;padding:7px 4px!important;font-size:10px!important;border:1px solid #d4ccc1!important;background:#fff!important;color:#333!important;border-radius:6px!important}.zmpb-text-align button.active{background:#c99a51!important;color:#fff!important;border-color:#c99a51!important}.zmpb-page-text{position:absolute!important;z-index:18!important;max-width:92%!important;transform:translate(-50%,-50%)!important;color:var(--zmpb-text-color,#111111)!important;font-family:var(--zmpb-text-font,Arial),Arial,Helvetica,sans-serif!important;font-weight:600!important;line-height:1.12!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;text-shadow:0 1px 2px rgba(255,255,255,.55);cursor:grab!important;touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;padding:3px 5px!important;border:1px solid transparent!important;border-radius:4px!important;container-type:size}.zmpb-page-text.selected{border:2px solid #2d8cff!important;background:rgba(255,255,255,.35)!important;box-shadow:0 0 0 2px rgba(45,140,255,.14)!important}.zmpb-page-text:active{cursor:grabbing!important}.preview-mode .zmpb-page-text{border-color:transparent!important;background:transparent!important;box-shadow:none!important}
@media(max-width:600px){.zmpb-text-add{grid-template-columns:1fr}.zmpb-text-add button{min-height:46px!important}.zmpb-text-tools{padding:10px}.zmpb-page-text{font-weight:650!important}}

/* v1.0.7 — 3D book preview */
.zmpb-book-preview[hidden]{display:none!important}.zmpb-book-preview{position:fixed!important;inset:0!important;z-index:1000000!important;background:rgba(10,12,16,.94)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important}.zmpb-book-preview-shell{width:min(1500px,98vw)!important;height:min(900px,96vh)!important;display:grid!important;grid-template-rows:auto 1fr auto!important;background:#17191d!important;border-radius:16px!important;overflow:hidden!important;box-shadow:0 30px 90px #000!important;color:#fff!important}.zmpb-book-preview-head,.zmpb-book-preview-foot{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:12px 18px!important;background:#111317!important}.zmpb-book-preview-head b{display:block!important;font-size:16px!important;color:#fff!important}.zmpb-book-preview-head span,.zmpb-book-preview-foot span{font-size:12px!important;color:#c8ccd3!important}.zmpb-book-preview-head button,.zmpb-book-preview-foot button{border:0!important;border-radius:8px!important;background:#fff!important;color:#111!important;padding:9px 14px!important;font-weight:800!important}.zmpb-book-stage{min-height:0!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px 70px!important;perspective:1800px!important;background:radial-gradient(ellipse at center,#353a43 0,#20242b 48%,#121419 100%)!important}.zmpb-book-preview-pages{position:relative!important;width:min(1180px,82vw)!important;max-height:72vh!important;aspect-ratio:2/1!important;background:#fff!important;box-shadow:0 25px 55px rgba(0,0,0,.55)!important;transform:rotateX(2deg)!important;transform-style:preserve-3d!important;overflow:hidden!important}.zmpb-book-preview-pages.turn-next{animation:zmpbTurnNext .34s ease}.zmpb-book-preview-pages.turn-prev{animation:zmpbTurnPrev .34s ease}@keyframes zmpbTurnNext{50%{transform:rotateX(2deg) rotateY(-7deg) scale(.985)}}@keyframes zmpbTurnPrev{50%{transform:rotateX(2deg) rotateY(7deg) scale(.985)}}.zmpb-preview-sheet{position:absolute!important;inset:0!important;background:#fff!important;overflow:hidden!important}.zmpb-preview-sheet:after{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translateX(-1px);background:linear-gradient(90deg,rgba(0,0,0,.08),rgba(255,255,255,.5),rgba(0,0,0,.12));z-index:30;pointer-events:none}.zmpb-preview-frame{position:absolute!important;overflow:hidden!important;background:#eee!important}.zmpb-preview-frame img{position:absolute!important;left:50%!important;top:50%!important;width:100%!important;height:100%!important;object-fit:cover!important;max-width:none!important;max-height:none!important}.zmpb-preview-text{position:absolute!important;color:#111!important;font-family:Arial,sans-serif!important;font-weight:600!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;max-width:92%!important;line-height:1.12!important;z-index:20!important}.zmpb-preview-cover{display:grid!important;grid-template-columns:1fr 10px 1fr!important;height:100%!important;background:#e9e6df!important}.zmpb-preview-cover-side{position:relative!important;overflow:hidden!important;background:#ddd!important}.zmpb-preview-cover-side img{width:100%!important;height:100%!important;object-fit:cover!important}.zmpb-preview-cover-spine{background:#c9c4ba!important}.zmpb-preview-cover-title{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;color:#fff!important;text-shadow:0 2px 8px #000!important;font-size:clamp(18px,3vw,46px)!important;font-weight:800!important;text-align:center!important;width:86%!important}.book-arrow{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;width:48px!important;height:64px!important;border:0!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;color:#111!important;font-size:42px!important;line-height:1!important;z-index:50!important}.book-arrow.prev{left:12px!important}.book-arrow.next{right:12px!important}.book-arrow:disabled{opacity:.25!important}.zmpb-preview-empty{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;color:#777!important;font-weight:700!important}@media(max-width:700px){.zmpb-book-preview{padding:0!important}.zmpb-book-preview-shell{width:100vw!important;height:100dvh!important;border-radius:0!important}.zmpb-book-stage{padding:14px 38px!important}.zmpb-book-preview-pages{width:calc(100vw - 82px)!important}.book-arrow{width:34px!important;height:50px!important;font-size:32px!important}.book-arrow.prev{left:2px!important}.book-arrow.next{right:2px!important}.zmpb-book-preview-foot span{display:none!important}.zmpb-book-preview-head{padding:10px 12px!important}}
/* v1.0.8 read-only shared project */
body.zmpb-share-view .zmpb-top,body.zmpb-share-view .zmpb-status,body.zmpb-share-view .zmpb-historybar,body.zmpb-share-view .zmpb-work,body.zmpb-share-view .zmpb-bottom,body.zmpb-share-view .zmpb-mobilebar,body.zmpb-share-view .zmpb-steps{display:none!important}
body.zmpb-share-view .zmpb-head{margin-bottom:18px}
body.zmpb-share-view .zmpb-book-preview-foot #zmpb-book-preview-edit{display:none!important}


/* v1.2.0 — ZM Theme Engine */
.zmpb-theme-engine{margin:14px 0;padding:14px;border:1px solid #ddd;border-radius:12px;background:#fff}.zmpb-theme-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.zmpb-theme-head small{display:block;color:#666;margin-top:3px}.zmpb-theme-head button{border:1px solid #bbb;background:#fff;border-radius:7px;padding:7px 10px}.zmpb-theme-list{display:grid;grid-template-columns:repeat(7,minmax(105px,1fr));gap:8px;margin-top:12px}.zmpb-theme-list button{min-height:82px;text-align:left;border:2px solid transparent;border-radius:10px;padding:8px;background:#f7f7f7;color:#222}.zmpb-theme-list button.active{border-color:#111;box-shadow:0 0 0 1px #111}.zmpb-theme-list button i{display:block;height:26px;border-radius:5px;margin-bottom:6px;background:#fff}.zmpb-theme-list button b,.zmpb-theme-list button span{display:block}.zmpb-theme-list button span{font-size:10px;opacity:.7;margin-top:2px}.zmpb-theme-list [data-theme="baby-girl"] i{background:linear-gradient(135deg,#fff6f8,#f4c8d4)}.zmpb-theme-list [data-theme="baby-boy"] i{background:linear-gradient(135deg,#f3f9ff,#bddcf2)}.zmpb-theme-list [data-theme="wedding"] i{background:linear-gradient(135deg,#fbf8f1,#d8c8a8)}.zmpb-theme-list [data-theme="travel"] i{background:linear-gradient(135deg,#f7f1e3,#c9b78e)}.zmpb-theme-list [data-theme="birthday"] i{background:linear-gradient(135deg,#fff8e9,#f2c36b)}.zmpb-theme-list [data-theme="mix"] i{background:linear-gradient(135deg,#f4f0e9,#c7b8a4)}.zmpb-theme-decoration{display:flex;gap:7px;align-items:center;margin-top:10px;font-size:12px}
.zmpb [data-side],.zmpb #spread-wide-layer,.zmpb .zmpb-cover-side,.zmpb-themed-surface{background-color:var(--zmt-bg,#fff)!important}.zmpb[data-theme="baby-girl"]{--zmt-bg:#fff6f8;--zmt-accent:#f4c8d4}.zmpb[data-theme="baby-boy"]{--zmt-bg:#f3f9ff;--zmt-accent:#bddcf2}.zmpb[data-theme="wedding"]{--zmt-bg:#fbf8f1;--zmt-accent:#d8c8a8}.zmpb[data-theme="travel"]{--zmt-bg:#f7f1e3;--zmt-accent:#c9b78e}.zmpb[data-theme="birthday"]{--zmt-bg:#fff8e9;--zmt-accent:#f2c36b}.zmpb[data-theme="mix"]{--zmt-bg:#f4f0e9;--zmt-accent:#c7b8a4}.zmpb.zmpb-theme-decor [data-side]::before,.zmpb.zmpb-theme-decor #spread-wide-layer::before,.zmpb.zmpb-theme-decor .zmpb-cover-side::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(circle at 6% 8%,var(--zmt-accent) 0 2.4%,transparent 2.6%),radial-gradient(circle at 94% 90%,var(--zmt-accent) 0 3%,transparent 3.2%);opacity:.55}.zmpb[data-theme="clean"] [data-side]::before,.zmpb[data-theme="clean"] #spread-wide-layer::before,.zmpb[data-theme="clean"] .zmpb-cover-side::before{display:none}.zmpb .slot,.zmpb .zmpb-page-text{z-index:2}.zmpb-themed-surface[data-theme="baby-girl"]{--zmt-bg:#fff6f8;--zmt-accent:#f4c8d4}.zmpb-themed-surface[data-theme="baby-boy"]{--zmt-bg:#f3f9ff;--zmt-accent:#bddcf2}.zmpb-themed-surface[data-theme="wedding"]{--zmt-bg:#fbf8f1;--zmt-accent:#d8c8a8}.zmpb-themed-surface[data-theme="travel"]{--zmt-bg:#f7f1e3;--zmt-accent:#c9b78e}.zmpb-themed-surface[data-theme="birthday"]{--zmt-bg:#fff8e9;--zmt-accent:#f2c36b}.zmpb-themed-surface[data-theme="mix"]{--zmt-bg:#f4f0e9;--zmt-accent:#c7b8a4}.zmpb-themed-surface.with-decor::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 6% 8%,var(--zmt-accent) 0 2.5%,transparent 2.7%),radial-gradient(circle at 94% 90%,var(--zmt-accent) 0 3%,transparent 3.2%);opacity:.5}
@media(max-width:600px){.zmpb-theme-list{display:flex;overflow-x:auto}.zmpb-theme-list button{min-width:125px}.zmpb-theme-head{align-items:flex-start}.zmpb-theme-engine{padding:10px}}


/* v1.2.1 — richer ZM theme artwork, 4 alternating sheet variants */
.zmpb.zmpb-theme-decor [data-side]::before,.zmpb.zmpb-theme-decor #spread-wide-layer::before,.zmpb.zmpb-theme-decor .zmpb-cover-side::before,.zmpb-themed-surface.with-decor::before{background:none;opacity:1}
.zmpb.zmpb-theme-decor[data-theme="baby-girl"] [data-side]::before,.zmpb.zmpb-theme-decor[data-theme="baby-girl"] #spread-wide-layer::before,.zmpb-themed-surface[data-theme="baby-girl"].with-decor::before{background:radial-gradient(ellipse at 5% 8%,#f4c8d4aa 0 2.8%,transparent 3%),radial-gradient(ellipse at 9% 9%,#f4c8d488 0 2.2%,transparent 2.4%),radial-gradient(circle at 94% 88%,#e9aebf88 0 2.4%,transparent 2.6%),radial-gradient(circle at 88% 7%,#fff 0 .8%,transparent 1%)}
.zmpb.zmpb-theme-decor[data-theme="baby-boy"] [data-side]::before,.zmpb.zmpb-theme-decor[data-theme="baby-boy"] #spread-wide-layer::before,.zmpb-themed-surface[data-theme="baby-boy"].with-decor::before{background:radial-gradient(ellipse at 6% 10%,#bddcf2aa 0 3%,transparent 3.2%),radial-gradient(ellipse at 10% 11%,#bddcf288 0 2.3%,transparent 2.5%),radial-gradient(circle at 94% 86%,#8fc4e488 0 2.3%,transparent 2.5%),radial-gradient(circle at 88% 7%,#fff 0 .8%,transparent 1%)}
.zmpb.zmpb-theme-decor[data-theme="wedding"] [data-side]::before,.zmpb.zmpb-theme-decor[data-theme="wedding"] #spread-wide-layer::before,.zmpb-themed-surface[data-theme="wedding"].with-decor::before{background:radial-gradient(ellipse at 2% 5%,#d8c8a855 0 7%,transparent 7.3%),radial-gradient(ellipse at 7% 2%,#d8c8a844 0 9%,transparent 9.3%),radial-gradient(ellipse at 98% 95%,#d8c8a855 0 8%,transparent 8.3%),linear-gradient(135deg,transparent 0 96%,#d8c8a833 96% 100%)}
.zmpb.zmpb-theme-decor[data-theme="travel"] [data-side]::before,.zmpb.zmpb-theme-decor[data-theme="travel"] #spread-wide-layer::before,.zmpb-themed-surface[data-theme="travel"].with-decor::before{background:linear-gradient(165deg,transparent 0 46%,#5f735f26 46.2% 46.5%,transparent 46.7%),radial-gradient(circle at 8% 20%,#5f735f55 0 1.2%,transparent 1.4%),radial-gradient(circle at 92% 76%,#5f735f55 0 1.2%,transparent 1.4%),linear-gradient(to top,#c9b78e33 0 7%,transparent 7%)}
.zmpb.zmpb-theme-decor[data-theme="birthday"] [data-side]::before,.zmpb.zmpb-theme-decor[data-theme="birthday"] #spread-wide-layer::before,.zmpb-themed-surface[data-theme="birthday"].with-decor::before{background:radial-gradient(ellipse at 5% 9%,#f2c36b99 0 2%,transparent 2.2%),radial-gradient(ellipse at 94% 12%,#b76d6999 0 1.7%,transparent 1.9%),radial-gradient(circle at 8% 90%,#f2c36b88 0 1%,transparent 1.2%),radial-gradient(circle at 88% 88%,#b76d6988 0 1%,transparent 1.2%),linear-gradient(115deg,transparent 0 8%,#f2c36b55 8.2% 8.7%,transparent 8.9%)}
.zmpb.zmpb-theme-decor[data-theme="mix"] [data-side]::before,.zmpb.zmpb-theme-decor[data-theme="mix"] #spread-wide-layer::before,.zmpb-themed-surface[data-theme="mix"].with-decor::before{background:linear-gradient(90deg,#c7b8a433 0 2.5%,transparent 2.5% 97.5%,#c7b8a433 97.5%)}
.zmpb[data-theme-variant="1"].zmpb-theme-decor [data-side]::before,.zmpb[data-theme-variant="1"].zmpb-theme-decor #spread-wide-layer::before,.zmpb-themed-surface[data-theme-variant="1"].with-decor::before{transform:scaleX(-1)}
.zmpb[data-theme-variant="2"].zmpb-theme-decor [data-side]::before,.zmpb[data-theme-variant="2"].zmpb-theme-decor #spread-wide-layer::before,.zmpb-themed-surface[data-theme-variant="2"].with-decor::before{transform:scaleY(-1)}
.zmpb[data-theme-variant="3"].zmpb-theme-decor [data-side]::before,.zmpb[data-theme-variant="3"].zmpb-theme-decor #spread-wide-layer::before,.zmpb-themed-surface[data-theme-variant="3"].with-decor::before{transform:scale(-1)}
.zmpb[data-theme-variant="cover"].zmpb-theme-decor .zmpb-cover-side::before,.zmpb-themed-surface[data-theme-variant="cover"].with-decor::before{background-size:100% 100%;filter:saturate(.9)}

/* v1.2.2 themed cover presets */
.cover-live-copy{position:absolute;left:8%;right:8%;top:50%;transform:translateY(-50%);z-index:4;text-align:center;padding:14px 12px;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.55);pointer-events:none}.cover-live-copy strong,.cover-live-copy small{display:block}.cover-live-copy strong{font-size:clamp(18px,2.4vw,38px);line-height:1.05}.cover-live-copy small{font-size:clamp(9px,1vw,15px);margin-top:7px;letter-spacing:.06em}.zmpb-cover-panel[data-theme="baby-girl"] .cover-live-copy,.zmpb-cover-panel[data-theme="baby-boy"] .cover-live-copy{top:68%;background:rgba(255,255,255,.78);color:#714f5b;text-shadow:none;border-radius:999px}.zmpb-cover-panel[data-theme="baby-boy"] .cover-live-copy{color:#416a87}.zmpb-cover-panel[data-theme="wedding"] .cover-live-copy{top:72%;background:rgba(251,248,241,.84);color:#625542;text-shadow:none;border-top:1px solid #d8c8a8;border-bottom:1px solid #d8c8a8}.zmpb-cover-panel[data-theme="travel"] .cover-live-copy{top:auto;bottom:8%;transform:none;text-align:left;background:rgba(247,241,227,.88);color:#445744;text-shadow:none}.zmpb-cover-panel[data-theme="birthday"] .cover-live-copy{top:65%;background:rgba(255,248,233,.86);color:#9a5652;text-shadow:none;transform:translateY(-50%) rotate(-1deg)}.zmpb-cover-panel[data-theme="mix"] .cover-live-copy{top:auto;bottom:7%;transform:none;background:rgba(20,20,20,.72);text-align:left}.zmpb-cover-panel[data-cover-style="1"] .cover-live-copy{top:22%;bottom:auto;transform:none}.zmpb-cover-panel[data-cover-style="2"] .cover-live-copy{top:50%;bottom:auto;transform:translateY(-50%);max-width:64%;margin:auto}.zmpb-cover-panel[data-theme="clean"] .cover-live-copy{background:none}.cover-tools label{min-width:190px}.zmpb-preview-cover-title small{display:block!important;font-size:.38em!important;font-weight:500!important;margin-top:.7em!important;letter-spacing:.06em!important}.zmpb-preview-sheet[data-theme="baby-girl"] .zmpb-preview-cover-title,.zmpb-preview-sheet[data-theme="baby-boy"] .zmpb-preview-cover-title,.zmpb-preview-sheet[data-theme="wedding"] .zmpb-preview-cover-title,.zmpb-preview-sheet[data-theme="travel"] .zmpb-preview-cover-title,.zmpb-preview-sheet[data-theme="birthday"] .zmpb-preview-cover-title{background:rgba(255,255,255,.82)!important;color:#5f5550!important;text-shadow:none!important;padding:3% 5%!important}.zmpb-preview-sheet[data-cover-style="1"] .zmpb-preview-cover-title{top:25%!important}.zmpb-preview-sheet[data-cover-style="2"] .zmpb-preview-cover-title{top:72%!important}


/* v1.2.5 – themed captions */
.zmpb-theme-captions{margin:10px 0 12px;padding:10px;border:1px solid rgba(20,30,40,.12);border-radius:12px;background:rgba(255,255,255,.72)}
.zmpb-theme-captions small{display:block;font-weight:700;margin-bottom:7px}
.zmpb-theme-captions em{display:block;font-size:11px;opacity:.7;margin-top:6px;font-style:normal}
#zmpb-theme-caption-list{display:flex;flex-wrap:wrap;gap:6px}
#zmpb-theme-caption-list button{border:1px solid rgba(20,30,40,.14);background:#fff;border-radius:999px;padding:7px 10px;cursor:pointer;font-size:12px}
.zmpb-page-text[data-text-style="soft"]{font-weight:500;letter-spacing:.02em}
.zmpb-page-text[data-text-style="accent"]{font-weight:650;letter-spacing:.04em}

/* v1.2.6 – movable print-safe themed graphic elements */
.zmpb-theme-stickers{margin:10px 0 8px;padding:10px;border:1px solid rgba(20,30,40,.12);border-radius:12px;background:rgba(255,255,255,.72)}
.zmpb-theme-stickers small{display:block;font-weight:700;margin-bottom:8px}.zmpb-theme-stickers em{display:block;font-size:11px;opacity:.7;margin-top:7px;font-style:normal}
#zmpb-theme-sticker-list{display:flex;flex-wrap:wrap;gap:7px}#zmpb-theme-sticker-list button{display:flex;align-items:center;gap:5px;border:1px solid rgba(20,30,40,.14);background:#fff;border-radius:10px;padding:6px 8px;cursor:pointer;font-size:11px}#zmpb-theme-sticker-list svg{width:23px;height:23px;display:block}
.zmpb-sticker-edit{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 12px}.zmpb-sticker-edit button{font-size:11px;padding:7px 9px}
.zmpb-page-sticker{position:absolute;z-index:3;aspect-ratio:1;cursor:grab;touch-action:none;transform-origin:center;filter:drop-shadow(0 1px 1px rgba(0,0,0,.05))}.zmpb-page-sticker svg{display:block;width:100%;height:100%;overflow:visible}.zmpb-page-sticker.selected{outline:2px dashed #1677ff;outline-offset:4px;border-radius:4px}.zmpb-page-sticker:active{cursor:grabbing}

/* v1.2.7 Smart Theme Wizard */
.zmpb-theme-wizard-open{margin-top:10px;width:100%;font-weight:800}.zmpb-theme-wizard-hint{display:block;margin-top:6px;line-height:1.35}.zmpb-wizard-card label{display:block;font-weight:700;margin:12px 0}.zmpb-wizard-card input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:11px 12px;border:1px solid #ccd2d8;border-radius:9px;font:inherit}.zmpb-wizard-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.zmpb-wizard-actions button{padding:11px 15px}


/* v1.2.8 – guided start */
.zmpb-guided{position:fixed;inset:0;z-index:100000;background:rgba(12,18,24,.72);backdrop-filter:blur(8px);display:grid;place-items:center;padding:18px}.zmpb-guided[hidden]{display:none!important}.zmpb-guided-card{position:relative;width:min(920px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;padding:28px;box-shadow:0 28px 90px rgba(0,0,0,.28)}.zmpb-guided-brand{font-size:11px;font-weight:800;letter-spacing:.14em;opacity:.55}.zmpb-guided-card h2{margin:7px 0 18px;font-size:clamp(24px,3vw,38px)}.zmpb-guided-card h3{font-size:24px;margin:7px 0}.zmpb-guided-card section>p{margin-top:4px;color:#58636e}.zmpb-guided-skip{position:absolute;right:22px;top:22px;border:0;background:transparent;text-decoration:underline;cursor:pointer;color:#59636d}.zmpb-guided-progress{display:flex;gap:7px;margin:0 0 24px}.zmpb-guided-progress i{height:5px;flex:1;border-radius:9px;background:#e8ebee}.zmpb-guided-progress i.active{background:#18232d}.zmpb-guide-kicker{font-size:11px;letter-spacing:.12em;color:#7b8792}.zmpb-guide-books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px}.zmpb-guide-books button,.zmpb-guide-themes button{border:1px solid #dce1e5;background:#fff;border-radius:13px;text-align:left;padding:13px;cursor:pointer}.zmpb-guide-books button.active,.zmpb-guide-themes button.active{border:2px solid #18232d;box-shadow:0 0 0 2px rgba(24,35,45,.08)}.zmpb-guide-books b,.zmpb-guide-books span,.zmpb-guide-themes b,.zmpb-guide-themes span{display:block}.zmpb-guide-books span,.zmpb-guide-themes span{font-size:12px;opacity:.68;margin-top:3px}.zmpb-guide-pages{display:block;font-weight:700;margin-top:14px}.zmpb-guide-pages select{margin-left:8px;padding:8px}.zmpb-guide-themes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:16px}.zmpb-guide-themes i{display:block;height:40px;border-radius:8px;margin-bottom:8px;background:#f4f4f2}.zmpb-guide-themes [data-theme="baby-girl"] i{background:#fff0f5}.zmpb-guide-themes [data-theme="baby-boy"] i{background:#eef7ff}.zmpb-guide-themes [data-theme="wedding"] i{background:#f8f2e8}.zmpb-guide-themes [data-theme="travel"] i{background:#edf2e8}.zmpb-guide-themes [data-theme="birthday"] i{background:#fff2d8}.zmpb-guide-themes [data-theme="mix"] i{background:#ece8e2}.zmpb-guide-info-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.zmpb-guide-info-fields label{font-weight:700}.zmpb-guide-info-fields input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:11px;border:1px solid #ccd3d9;border-radius:9px;font:inherit}.zmpb-guide-clean-note,.zmpb-guide-photo-count,.zmpb-guide-summary{margin-top:18px;padding:16px;border-radius:12px;background:#f4f6f7}.zmpb-guide-upload{margin-top:16px;padding:15px 22px;border:0;border-radius:10px;background:#18232d;color:#fff;font-weight:800;cursor:pointer}.zmpb-guide-summary{display:flex;gap:8px;flex-wrap:wrap}.zmpb-guide-summary b{width:100%}.zmpb-guide-summary span{background:#fff;padding:6px 9px;border-radius:999px;font-size:12px}.zmpb-guide-auto{display:block;margin-top:16px;font-weight:800}.zmpb-guided-actions{display:flex;justify-content:space-between;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #e5e8ea}.zmpb-guided-actions button{padding:11px 18px;border-radius:9px;font-weight:800;cursor:pointer}.zmpb-guided-actions #zmpb-guide-next{margin-left:auto;background:#18232d;color:#fff;border:1px solid #18232d}.zmpb-guided-actions .ghost{background:#fff;border:1px solid #ccd3d9}@media(max-width:700px){.zmpb-guided{padding:0}.zmpb-guided-card{width:100%;height:100%;max-height:none;border-radius:0;padding:22px 16px;box-sizing:border-box}.zmpb-guided-skip{position:static;float:right;margin-bottom:8px}.zmpb-guide-books,.zmpb-guide-themes{grid-template-columns:1fr 1fr}.zmpb-guide-info-fields{grid-template-columns:1fr}.zmpb-guided-card h2{clear:both}.zmpb-guided-actions{position:sticky;bottom:-22px;background:#fff;padding-bottom:16px}}


/* v1.2.9 – Guided Start visibility + responsive fix */
#zmpb-guided .zmpb-guide-books button,
#zmpb-guided .zmpb-guide-themes button{
  color:#18232d !important;font-size:16px !important;line-height:1.3 !important;
  opacity:1 !important;visibility:visible !important;-webkit-text-fill-color:#18232d !important;
  min-height:78px;position:relative;
}
#zmpb-guided .zmpb-guide-books button b,
#zmpb-guided .zmpb-guide-themes button b{
  display:block !important;color:#18232d !important;-webkit-text-fill-color:#18232d !important;
  opacity:1 !important;visibility:visible !important;font-size:16px !important;font-weight:800 !important;
  line-height:1.25 !important;margin:0 !important;padding:0 !important;
}
#zmpb-guided .zmpb-guide-books button span,
#zmpb-guided .zmpb-guide-themes button span{
  display:block !important;color:#5c6670 !important;-webkit-text-fill-color:#5c6670 !important;
  opacity:1 !important;visibility:visible !important;font-size:13px !important;font-weight:500 !important;
  line-height:1.35 !important;margin-top:5px !important;padding:0 !important;
}
#zmpb-guided .zmpb-guide-books button.active::after,
#zmpb-guided .zmpb-guide-themes button.active::after{
  content:'✓';position:absolute;right:12px;top:10px;width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;background:#18232d;color:#fff;font-size:14px;font-weight:900;
  -webkit-text-fill-color:#fff;
}
@media(max-width:700px){
 #zmpb-guided .zmpb-guided-card{padding:18px 15px 20px}
 #zmpb-guided .zmpb-guided-card h2{font-size:27px;line-height:1.12;margin-bottom:14px}
 #zmpb-guided .zmpb-guided-card h3{font-size:22px;line-height:1.2}
 #zmpb-guided .zmpb-guided-progress{margin-bottom:18px}
 #zmpb-guided .zmpb-guide-books{grid-template-columns:1fr;gap:8px}
 #zmpb-guided .zmpb-guide-books button{min-height:68px;padding:11px 46px 11px 13px}
 #zmpb-guided .zmpb-guide-themes{grid-template-columns:1fr 1fr}
 #zmpb-guided .zmpb-guide-pages{margin-top:12px}
}

/* v1.3.0 – visual format chooser */
#zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#zmpb-guided .zmpb-guide-books button{position:relative;min-height:205px;padding:14px 14px 13px!important;text-align:left;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-end;overflow:hidden}
#zmpb-guided .zmpb-guide-books button.active{border-color:#1877e8!important;box-shadow:0 0 0 2px rgba(24,119,232,.10)!important}
#zmpb-guided .zmpb-guide-books button.active::after{background:#1877e8!important;color:#fff!important;right:10px!important;top:10px!important}
#zmpb-guided .zmpb-book-badge{position:absolute;left:11px;top:11px;z-index:3;width:auto!important;margin:0!important;padding:4px 8px;border-radius:999px;font-size:9px!important;line-height:1!important;font-weight:900!important;letter-spacing:.06em;opacity:1!important}
#zmpb-guided .zmpb-book-badge.magazin{background:#e8f2ff;color:#173b60}#zmpb-guided .zmpb-book-badge.classic{background:#eee9e1;color:#4d4237}#zmpb-guided .zmpb-book-badge.premium{background:#ffe3e8;color:#a51e35}
#zmpb-guided .zmpb-book-visual{height:104px;margin:13px 0 5px;display:flex;align-items:center;justify-content:center;width:100%!important;opacity:1!important}
#zmpb-guided .zmpb-book-object{position:relative;width:var(--bw);height:var(--bh);border:1px solid #aeb8c2;border-radius:1px;background:linear-gradient(135deg,#f7f8f9 0%,#dfe7ed 48%,#c9d7e2 100%);box-shadow:5px 5px 10px rgba(20,34,48,.16);transform:perspective(500px) rotateY(-7deg)}
#zmpb-guided .zmpb-book-object:before{content:"";position:absolute;inset:7% 7%;border-radius:1px;background:linear-gradient(135deg,#dbe8f2,#9fc1d8);opacity:.8}
#zmpb-guided .zmpb-book-object i{position:absolute;left:-4px;top:2px;bottom:2px;width:5px;border-radius:2px 0 0 2px;background:linear-gradient(90deg,#8c98a3,#eef2f5);z-index:2}
#zmpb-guided .zmpb-book-object em{position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(20,30,40,.12);display:none}
#zmpb-guided .zmpb-book-visual.is-open .zmpb-book-object{transform:perspective(700px) rotateX(3deg);box-shadow:0 7px 14px rgba(20,34,48,.14);background:linear-gradient(90deg,#eef3f6,#fff 48%,#fff 52%,#e8eef2)}
#zmpb-guided .zmpb-book-visual.is-open .zmpb-book-object:before{inset:5%;background:linear-gradient(90deg,#b7d1e2 0 49.5%,#91b9d3 50.5% 100%)}
#zmpb-guided .zmpb-book-visual.is-open .zmpb-book-object i{display:none}#zmpb-guided .zmpb-book-visual.is-open .zmpb-book-object em{display:block;z-index:3}
#zmpb-guided .zmpb-guide-book-copy{display:block!important;width:100%;opacity:1!important}#zmpb-guided .zmpb-guide-book-copy>b{font-size:14px!important;line-height:1.18!important;color:#17212b!important}#zmpb-guided .zmpb-guide-book-copy>span{font-size:11px!important;color:#5f6b76!important;opacity:1!important}
#zmpb-guided .zmpb-guide-book-detail{margin-top:15px;padding:18px;border:1px solid #dfe5ea;border-radius:14px;background:#fbfcfd;display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);gap:20px;align-items:center}
#zmpb-guided .zmpb-guide-detail-copy>b{font-size:19px;color:#17212b}#zmpb-guided .zmpb-guide-detail-copy p{margin:6px 0 12px;color:#5b6873;font-size:13px;line-height:1.45}.zmpb-guide-benefits{display:flex;gap:8px;flex-wrap:wrap}.zmpb-guide-benefits span{font-size:11px;background:#fff;border:1px solid #e1e6ea;border-radius:9px;padding:7px 9px;color:#65717b}.zmpb-guide-benefits strong{display:block;color:#17212b;font-size:11px}
#zmpb-guided .zmpb-guide-detail-books{display:flex;align-items:flex-end;justify-content:center;gap:22px}#zmpb-guided .zmpb-guide-detail-books figure{margin:0;text-align:center;min-width:120px}#zmpb-guided .zmpb-guide-detail-books figcaption{font-size:10px;line-height:1.35;color:#53606b;margin-top:3px}#zmpb-guided .zmpb-guide-detail-books figcaption b{color:#17212b}.zmpb-book-visual.is-large{height:126px!important;margin:0!important}
@media(max-width:700px){#zmpb-guided .zmpb-guide-books{grid-template-columns:1fr 1fr!important;gap:8px}#zmpb-guided .zmpb-guide-books button{min-height:176px!important;padding:10px!important}#zmpb-guided .zmpb-book-visual{height:86px;margin:12px 0 3px}#zmpb-guided .zmpb-guide-book-copy>b{font-size:12px!important}#zmpb-guided .zmp-guide-book-copy>span{font-size:10px!important}#zmpb-guided .zmp-guide-book-detail{grid-template-columns:1fr}#zmpb-guided .zmpb-guide-book-detail{grid-template-columns:1fr;padding:13px;gap:10px}#zmpb-guided .zmpb-guide-detail-books{gap:8px;overflow:hidden}#zmpb-guided .zmpb-guide-detail-books figure{min-width:0;flex:1}.zmpb-book-visual.is-large{transform:scale(.82);margin:-8px 0!important}.zmpb-guide-benefits{display:none}}

/* v1.3.1 – realistic format cards */
#zmpb-guided .zmpb-guide-books button{min-height:244px!important;justify-content:flex-end!important;background:linear-gradient(180deg,#fff,#fdfefe)!important}
#zmpb-guided .zmpb-book-visual{position:relative;height:132px!important;margin:15px 0 7px!important;padding:0 24px 16px 31px;box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;overflow:visible!important}
#zmpb-guided .zmpb-book-object{position:relative;width:var(--bw);height:var(--bh);border:0!important;border-radius:1px;background:#f7f7f7;box-shadow:7px 9px 14px rgba(22,36,49,.18),0 0 0 1px rgba(89,105,119,.22);transform:perspective(650px) rotateY(-7deg);overflow:visible}
#zmpb-guided .zmpb-cover-scene{position:absolute;inset:5px 5px 5px 7px;display:block;border-radius:1px;overflow:hidden;background:#caddeb;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
#zmpb-guided .zmp-cover-scene:after{content:""}
#zmpb-guided .zmpb-cover-scene.coast{background:linear-gradient(180deg,#b7d8ee 0 42%,#e8f0f2 42% 51%,#7cabb6 51% 63%,#5d7b6d 63% 100%)}
#zmpb-guided .zmpb-cover-scene.coast:before{content:"";position:absolute;left:9%;right:9%;bottom:18%;height:32%;background:linear-gradient(145deg,transparent 0 26%,#6d7669 27% 36%,transparent 37% 48%,#8d8e7f 49% 59%,transparent 60%),linear-gradient(25deg,#d9b28c 0 12%,transparent 13%);opacity:.9}
#zmpb-guided .zmpb-cover-scene.mountain{background:linear-gradient(180deg,#cae0ef 0 47%,#94bfcc 47% 63%,#315b62 64% 100%)}
#zmpb-guided .zmpb-cover-scene.mountain:before{content:"";position:absolute;left:2%;right:2%;bottom:30%;height:50%;clip-path:polygon(0 100%,22% 45%,35% 72%,55% 15%,73% 65%,86% 38%,100% 100%);background:linear-gradient(180deg,#eef3f4,#607886)}
#zmpb-guided .zmpb-cover-scene.lavender{background:linear-gradient(180deg,#efd4c7 0 43%,#f4c8b9 43% 50%,#9d7cae 50% 100%)}
#zmpb-guided .zmpb-cover-scene.lavender:before{content:"";position:absolute;left:-10%;right:-10%;bottom:-3%;height:52%;background:repeating-linear-gradient(78deg,transparent 0 8px,rgba(77,44,103,.72) 9px 12px,transparent 13px 19px);transform:skewX(-7deg)}
#zmpb-guided .zmpb-book-spine{position:absolute;left:-5px;top:2px;bottom:2px;width:6px!important;border-radius:2px 0 0 2px;background:linear-gradient(90deg,#737f89,#dfe4e8 62%,#aeb8c0);z-index:4}
#zmpb-guided .zmpb-page-edge{position:absolute;right:-3px;top:4px;bottom:-4px;width:5px;background:repeating-linear-gradient(180deg,#fff 0 2px,#d7dde1 3px 4px);transform:skewY(-12deg);z-index:-1}
#zmpb-guided .zmpb-book-visual.magazin .zmpb-book-object{box-shadow:4px 6px 10px rgba(22,36,49,.14),0 0 0 1px rgba(89,105,119,.18);transform:perspective(650px) rotateY(-4deg)}
#zmpb-guided .zmpb-book-visual.magazin .zmpb-book-spine{width:3px!important;left:-2px;background:#9ca6ad}
#zmpb-guided .zmpb-book-visual.magazin .zmpb-page-edge{width:2px;right:-2px;bottom:-2px}
#zmpb-guided .zmpb-book-visual.classic .zmpb-book-object{box-shadow:7px 9px 13px rgba(22,36,49,.17),0 0 0 2px rgba(166,174,181,.27)}
#zmpb-guided .zmpb-book-visual.premium .zmpb-book-object{box-shadow:8px 10px 15px rgba(22,36,49,.2),0 0 0 3px rgba(239,240,241,.95),0 0 0 4px rgba(151,160,168,.22)}
#zmpb-guided .zmpb-book-visual.premium .zmpb-page-edge{width:7px;right:-6px;background:repeating-linear-gradient(180deg,#fefefe 0 4px,#d5d8db 5px 6px)}
#zmpb-guided .zmpb-measure{position:absolute!important;display:block!important;width:auto!important;margin:0!important;color:#58708a!important;font-size:9px!important;font-weight:700!important;line-height:1!important;opacity:1!important;white-space:nowrap;letter-spacing:0!important}
#zmpb-guided .zmpb-measure-h{left:50%;bottom:0;transform:translateX(-50%);padding-top:6px;border-top:1px solid #7b92aa;min-width:calc(var(--bw) * .78);text-align:center}
#zmpb-guided .zmpb-measure-h:before,#zmpb-guided .zmpb-measure-h:after{content:"";position:absolute;top:-4px;width:1px;height:7px;background:#7b92aa}#zmpb-guided .zmpb-measure-h:before{left:0}#zmpb-guided .zmpb-measure-h:after{right:0}
#zmpb-guided .zmpb-measure-v{left:2px;top:50%;transform:translateY(-50%) rotate(-90deg);padding-top:5px;border-top:1px solid #7b92aa;min-width:calc(var(--bh) * .72);text-align:center}
#zmpb-guided .zmpb-measure-v:before,#zmpb-guided .zmpb-measure-v:after{content:"";position:absolute;top:-4px;width:1px;height:7px;background:#7b92aa}#zmpb-guided .zmpb-measure-v:before{left:0}#zmpb-guided .zmpb-measure-v:after{right:0}
#zmpb-guided .zmpb-book-visual.is-open{height:150px!important;padding:0 20px 21px 29px}
#zmpb-guided .zmpb-book-visual.is-open .zmpb-book-object{transform:perspective(800px) rotateX(3deg)!important;box-shadow:0 8px 15px rgba(20,34,48,.16),0 0 0 1px rgba(107,119,129,.2);background:#fff;overflow:hidden}
#zmpb-guided .zmpb-book-visual.is-open .zmpb-cover-scene{inset:4px;display:block;background:linear-gradient(90deg,#b7d9eb 0 49.5%,#a4cde2 50.5% 100%)}
#zmpb-guided .zmpb-book-visual.is-open .zmpb-cover-scene:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#cde4ef 0 46%,#82b7ca 47% 59%,#396b70 60% 100%);clip-path:none;transform:none}
#zmpb-guided .zmpb-book-visual.is-open .zmpb-cover-scene:after{content:"";position:absolute;left:49.4%;top:0;bottom:0;width:1.2%;background:linear-gradient(90deg,rgba(30,45,55,.12),rgba(255,255,255,.55),rgba(30,45,55,.09))}
#zmpb-guided .zmpb-book-visual.is-open .zmpb-book-spine,#zmpb-guided .zmpb-book-visual.is-open .zmpb-page-edge{display:none}
#zmpb-guided .zmpb-book-visual.is-open.classic .zmpb-book-object:after{content:"";position:absolute;left:47.5%;top:0;bottom:0;width:5%;background:radial-gradient(ellipse at center,rgba(33,44,52,.22),rgba(255,255,255,.35) 42%,transparent 68%);pointer-events:none}
#zmpb-guided .zmpb-book-visual.is-open.premium .zmpb-book-object:after{content:"";position:absolute;left:49.6%;top:0;bottom:0;width:.8%;background:rgba(53,67,77,.14);pointer-events:none}
#zmpb-guided .zmpb-guide-book-detail{background:linear-gradient(180deg,#fbfdff,#f8fafb)!important}
#zmpb-guided .zmpb-guide-detail-books{gap:28px!important}
#zmpb-guided .zmpb-book-visual.is-large{height:151px!important;min-width:150px}
@media(max-width:700px){#zmpb-guided .zmpb-guide-books button{min-height:218px!important}#zmpb-guided .zmpb-book-visual{height:120px!important;padding-left:23px;padding-right:14px}#zmpb-guided .zmpb-measure{font-size:8px!important}#zmpb-guided .zmpb-guide-book-copy>b{font-size:12px!important}#zmpb-guided .zmpb-guide-book-copy>span{font-size:9px!important}.zmpb-book-visual.is-large{transform:scale(.78);margin:-15px -12px!important}.zmpb-guide-detail-books{gap:0!important}}

/* v1.3.2 – approved realistic visuals + distraction-free guided start */
#zmpb-guided{z-index:2147483646!important;background:#f7f9fb!important;backdrop-filter:none!important}
#zmpb-guided .zmpb-guided-card{z-index:2147483647!important;box-shadow:0 24px 70px rgba(18,31,44,.18)!important}
#zmpb-guided .zmpb-guide-books button{min-height:248px!important;background:#fff!important}
#zmpb-guided .zmpb-book-visual.zmpb-real-book{position:relative!important;height:142px!important;margin:12px 0 6px!important;padding:0 24px 18px 28px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;width:100%!important;box-sizing:border-box!important}
#zmpb-guided .zmpb-book-visual.zmpb-real-book img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;opacity:1!important;filter:none!important;mix-blend-mode:normal!important}
#zmpb-guided .zmpb-real-measure{position:absolute!important;display:block!important;color:#536d86!important;font-size:10px!important;font-weight:700!important;line-height:1!important;opacity:1!important;white-space:nowrap!important;background:#fff!important;padding:2px 4px!important;border-radius:4px!important}
#zmpb-guided .zmpb-real-measure-h{left:50%!important;bottom:1px!important;transform:translateX(-50%)!important}
#zmpb-guided .zmpb-real-measure-v{left:2px!important;top:50%!important;transform:translateY(-50%) rotate(-90deg)!important}
#zmpb-guided .zmpb-guide-detail-books .zmpb-real-book{height:150px!important;padding:0 12px 18px 20px!important;margin:0!important}
#zmpb-guided .zmpb-guide-detail-books .zmpb-real-book.is-open{height:150px!important}
body.zmpb-focus-mode{overflow:hidden!important}
@media(max-width:700px){#zmpb-guided .zmpb-guide-books{grid-template-columns:1fr 1fr!important}#zmpb-guided .zmpb-guide-books button{min-height:214px!important}#zmpb-guided .zmpb-book-visual.zmpb-real-book{height:112px!important;padding:0 14px 16px 18px!important}#zmpb-guided .zmpb-real-measure{font-size:8px!important}#zmpb-guided .zmpb-guide-book-copy>b{font-size:12px!important;line-height:1.2!important}#zmpb-guided .zmpb-guide-book-copy>span{font-size:10px!important}}


/* v1.3.3 – true focus overlay + larger approved-style format cards */
body.zmpb-guide-open > #zmpb-guided{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;z-index:2147483647!important;overflow:auto!important;background:#f7f9fb!important}
body.zmpb-guide-open header,
body.zmpb-guide-open #header,
body.zmpb-guide-open #masthead,
body.zmpb-guide-open .site-header,
body.zmpb-guide-open .header-wrapper,
body.zmpb-guide-open .main-header,
body.zmpb-guide-open .mobile-header-wrapper,
body.zmpb-guide-open .sticky-header,
body.zmpb-guide-open .fixed-header,
body.zmpb-guide-open .elementor-location-header,
body.zmpb-guide-open .fusion-header-wrapper,
body.zmpb-guide-open [class*="sticky-header"],
body.zmpb-guide-open [class*="header-wrapper"]{visibility:hidden!important;pointer-events:none!important}
body.zmpb-guide-open #zmpb-guided,body.zmpb-guide-open #zmpb-guided *{visibility:visible!important}
#zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(auto-fit,minmax(235px,1fr))!important;gap:14px!important}
#zmpb-guided .zmpb-guide-books button{min-height:285px!important;padding:14px 14px 16px!important}
#zmpb-guided .zmpb-book-visual.zmpb-real-book{height:170px!important;margin:9px 0 8px!important;padding:0 30px 20px 34px!important}
#zmpb-guided .zmpb-book-visual.zmpb-real-book img{object-fit:contain!important;transform:none!important}
#zmpb-guided .zmpb-guide-book-copy>b{font-size:15px!important;line-height:1.25!important}
#zmpb-guided .zmpb-guide-book-copy>span{font-size:12px!important;line-height:1.3!important;margin-top:6px!important}
#zmpb-guided .zmpb-real-measure{font-size:10px!important;background:rgba(255,255,255,.92)!important}
@media (pointer:coarse) and (max-width:1400px){
 #zmpb-guided .zmpb-guided-card{width:min(100%,920px)!important;padding-left:18px!important;padding-right:18px!important}
 #zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 #zmpb-guided .zmpb-guide-books button{min-height:270px!important}
 #zmpb-guided .zmpb-book-visual.zmpb-real-book{height:158px!important;padding-left:22px!important;padding-right:18px!important}
}
@media(max-width:560px){
 #zmpb-guided .zmpb-guide-books{grid-template-columns:1fr!important}
 #zmpb-guided .zmpb-guide-books button{min-height:245px!important}
}


/* v1.3.4 – exact approved format-card artwork */
#zmpb-guided .zmpb-guide-books{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v134{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:0!important;height:auto!important;aspect-ratio:auto!important;padding:0!important;margin:0!important;background:#fff!important;border:1px solid #dce3e9!important;border-radius:14px!important;overflow:hidden!important;box-shadow:none!important;transform:none!important}
#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v134:hover{border-color:#aebdca!important;box-shadow:0 6px 18px rgba(22,42,62,.08)!important}
#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v134.active{border:3px solid #1687ed!important;box-shadow:0 0 0 2px rgba(22,135,237,.08)!important}
#zmpb-guided .zmpb-format-card-art{display:block!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain!important;opacity:1!important;visibility:visible!important;filter:none!important;transform:none!important;margin:0!important;padding:0!important}
#zmpb-guided .zmpb-format-selected{display:none!important;position:absolute!important;right:10px!important;top:10px!important;width:28px!important;height:28px!important;border-radius:50%!important;background:#1687ed!important;color:#fff!important;font:700 18px/28px Arial,sans-serif!important;text-align:center!important;z-index:4!important;box-shadow:0 2px 7px rgba(0,80,160,.2)!important}
#zmpb-guided .zmpb-format-card-v134.active .zmpb-format-selected{display:block!important}
#zmpb-guided .zmpb-guide-detail-books .zmpb-real-book{height:180px!important;min-width:180px!important;padding:0 8px 20px 18px!important}
#zmpb-guided .zmpb-guide-detail-books .zmpb-real-book img{width:100%!important;height:100%!important;object-fit:contain!important}
@media(min-width:1001px){#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v134:nth-child(-n+4){grid-column:span 1}#zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:1000px){#zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}
@media(max-width:520px){#zmpb-guided .zmpb-guide-books{grid-template-columns:1fr!important}#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v134{max-width:360px!important;width:100%!important;margin-inline:auto!important}}

/* v1.3.5 – approved format cards: no selection bubbles + complete 10-format grid */
#zmpb-guided .zmpb-format-selected{display:none!important}
#zmpb-guided .zmpb-format-card-v134.active .zmpb-format-selected{display:none!important}
#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v134.active{border:3px solid #1687ed!important;box-shadow:0 0 0 2px rgba(22,135,237,.06)!important}
/* Missing 20x30 asset is a clean product visual rather than a baked card; keep it fully visible. */
#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v134:nth-child(8) .zmpb-format-card-art{object-fit:contain!important;background:#fff!important;padding:18px!important;box-sizing:border-box!important;max-height:360px!important}
@media(max-width:760px){#zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v134{max-width:none!important}}
@media(max-width:420px){#zmpb-guided .zmpb-guide-books{grid-template-columns:1fr!important}}

/* v1.3.6 – corrected physical orientation for all books */
#zmpb-guided .zmpb-guide-books button.active::after{display:none!important;content:none!important}
#zmpb-guided .zmpb-guide-books{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136{position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-end!important;min-height:300px!important;padding:14px!important;background:#fff!important;border:1px solid #dce3e9!important;border-radius:14px!important;overflow:hidden!important;box-shadow:none!important;text-align:left!important}
#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136.active{border:3px solid #1687ed!important;box-shadow:0 0 0 2px rgba(22,135,237,.06)!important}
#zmpb-guided .zmpb-format-badge{position:absolute!important;left:12px!important;top:12px!important;z-index:3!important;padding:5px 10px!important;border-radius:999px!important;font-size:11px!important;font-weight:800!important;letter-spacing:.02em!important;background:#eef4fb!important;color:#17375c!important}
#zmpb-guided .zmpb-format-badge.classic{background:#f2ede5!important;color:#544737!important}
#zmpb-guided .zmpb-format-badge.premium{background:#ffe8ed!important;color:#c2253b!important}
#zmpb-guided .zmpb-format-card-v136 .zmpb-book-visual{height:190px!important;margin:16px 0 6px!important;padding:0 10px 18px 22px!important;box-sizing:border-box!important}
#zmpb-guided .zmpb-format-card-v136 .zmpb-book-visual img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
#zmpb-guided .zmpb-format-card-copy{display:block!important;margin-top:auto!important;opacity:1!important}
#zmpb-guided .zmpb-format-card-copy>b{display:block!important;color:#17212b!important;-webkit-text-fill-color:#17212b!important;font-size:15px!important;line-height:1.25!important;font-weight:800!important}
#zmpb-guided .zmpb-format-card-copy>small{display:block!important;color:#65717c!important;-webkit-text-fill-color:#65717c!important;font-size:12px!important;line-height:1.3!important;margin-top:6px!important}
#zmpb-guided .zmpb-real-measure{font-size:10px!important;color:#53677a!important;-webkit-text-fill-color:#53677a!important}
@media(max-width:1000px){#zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important}#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136{min-height:285px!important}}
@media(max-width:520px){#zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136{min-height:245px!important;padding:10px!important}#zmpb-guided .zmpb-format-card-v136 .zmpb-book-visual{height:142px!important;padding:0 4px 16px 16px!important;margin-top:18px!important}#zmpb-guided .zmpb-format-card-copy>b{font-size:12px!important}#zmpb-guided .zmpb-format-card-copy>small{font-size:10px!important}#zmpb-guided .zmpb-format-badge{font-size:9px!important;padding:4px 8px!important}}

/* v1.3.7 – larger book visuals, geometry unchanged */
@media (min-width:1001px){
  body.zmpb-guide-open > #zmpb-guided .zmpb-guided-card{
    width:min(1320px,96vw)!important;
    max-width:none!important;
  }
  #zmpb-guided .zmpb-guide-books{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:14px!important;
  }
  #zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136{
    min-height:360px!important;
    padding:16px!important;
  }
  #zmpb-guided .zmpb-format-card-v136 .zmpb-book-visual{
    height:245px!important;
    margin:16px 0 8px!important;
    padding:0 6px 18px 18px!important;
  }
  #zmpb-guided .zmpb-format-card-v136 .zmpb-book-visual img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
  #zmpb-guided .zmpb-format-card-copy>b{font-size:16px!important}
  #zmpb-guided .zmpb-format-card-copy>small{font-size:12.5px!important}
  #zmpb-guided .zmpb-guide-book-detail{
    grid-template-columns:minmax(0,1fr) minmax(520px,1.05fr)!important;
  }
  #zmpb-guided .zmpb-guide-detail-books .zmpb-real-book{
    height:225px!important;
    min-width:240px!important;
    padding:0 10px 20px 22px!important;
  }
  #zmpb-guided .zmpb-guide-detail-books{gap:28px!important}
}
@media (min-width:701px) and (max-width:1000px){
  body.zmpb-guide-open > #zmpb-guided .zmpb-guided-card{width:min(960px,97vw)!important}
  #zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136{min-height:340px!important}
  #zmpb-guided .zmpb-format-card-v136 .zmpb-book-visual{height:225px!important;padding:0 8px 18px 20px!important}
  #zmpb-guided .zmpb-guide-detail-books .zmpb-real-book{height:190px!important}
}
@media (max-width:700px){
  #zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  #zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136{min-height:270px!important;padding:10px!important}
  #zmpb-guided .zmpb-format-card-v136 .zmpb-book-visual{height:175px!important;padding:0 2px 16px 13px!important;margin:17px 0 5px!important}
  #zmpb-guided .zmpb-guide-detail-books .zmpb-real-book{height:150px!important;padding:0 4px 17px 12px!important}
}


/* v1.3.8 – compact photo library: full uncropped thumbnails */
.zmpb-photos #zmpb-library{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;align-items:start!important;margin-top:10px!important}
.zmpb-photos #zmpb-library .photo-thumb{width:100%!important;margin:0!important;padding:0!important;min-width:0!important;background:#f2f2f2!important;border:1px solid #ddd!important;border-radius:8px!important;overflow:hidden!important;aspect-ratio:1/1!important;position:relative!important}
.zmpb-photos #zmpb-library .photo-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:#f2f2f2!important}
.zmpb-photos #zmpb-library .photo-thumb>span:not(.fav-toggle){display:none!important}
.zmpb-photos #zmpb-library .fav-toggle{right:4px!important;top:4px!important;width:25px!important;height:25px!important;font-size:17px!important;background:rgba(255,255,255,.94)!important}
.zmpb-photos #zmpb-library .used-badge{left:4px!important;top:auto!important;bottom:4px!important;font-size:8px!important;padding:3px 5px!important;max-width:calc(100% - 8px)!important}
.zmpb-photos #zmpb-library .photo-thumb.used-photo img{filter:none!important;opacity:.68!important}
.zmpb-photos #zmpb-library .photo-thumb.selected-photo{outline:2px solid #c99a51!important;outline-offset:1px!important}
.zmpb-auto-help{font-size:12px!important;line-height:1.45!important;margin:10px 0 6px!important}
.zmpb-photo-tips{font-size:11px;color:#666;margin:5px 0 10px;border-top:1px solid #e4e0da;padding-top:7px}
.zmpb-photo-tips summary{cursor:pointer;font-weight:700;color:#555}
.zmpb-photo-tips p{margin:7px 0 0;line-height:1.45}
@media(min-width:1200px){.zmpb-photos #zmpb-library{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:600px){.zmpb-photos #zmpb-library{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}.zmpb-photos{max-height:none!important}}
@media(max-width:560px){.zmpb-photos #zmpb-library{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}}

/* v1.3.9 – TRUE ORIGINAL-ASPECT PHOTO LIBRARY
   Keep every uploaded photo uncropped and compact. This block intentionally
   comes last with high specificity so older theme/mobile thumbnail rules cannot
   force panoramic crops. */
.zmpb .zmpb-photos #zmpb-library{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  align-items:start!important;
  margin-top:10px!important;
}
.zmpb .zmpb-photos #zmpb-library .photo-thumb{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:3px!important;
  border:1px solid #ddd!important;
  border-radius:7px!important;
  background:#f3f3f3!important;
  overflow:visible!important;
  position:relative!important;
  line-height:0!important;
}
.zmpb .zmpb-photos #zmpb-library .photo-thumb img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border-radius:4px!important;
  transform:none!important;
}
.zmpb .zmpb-photos #zmpb-library .photo-thumb > span:not(.fav-toggle){display:none!important}
.zmpb .zmpb-photos #zmpb-library .fav-toggle{
  position:absolute!important;
  right:5px!important;
  top:5px!important;
  width:24px!important;
  height:24px!important;
  line-height:24px!important;
  font-size:17px!important;
  background:rgba(255,255,255,.92)!important;
  border-radius:50%!important;
  z-index:4!important;
}
.zmpb .zmpb-photos #zmpb-library .used-badge{
  position:absolute!important;
  left:5px!important;
  top:auto!important;
  bottom:5px!important;
  font-size:8px!important;
  line-height:1!important;
  padding:3px 4px!important;
  z-index:4!important;
}
.zmpb .zmpb-photos #zmpb-library .photo-thumb.used-photo img{
  filter:none!important;
  opacity:.72!important;
}
@media (min-width:601px){
  .zmpb .zmpb-photos #zmpb-library{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:600px){
  .zmpb .zmpb-photos #zmpb-library{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
}
@media (max-width:560px){
  .zmpb .zmpb-photos #zmpb-library{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
}

/* v1.3.10 – compact 3-column photo library */
.zmpb aside.zmpb-photos #zmpb-library{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:6px!important;
  width:100%!important;
  align-items:start!important;
}
.zmpb aside.zmpb-photos #zmpb-library > .photo-thumb{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:92px!important;
  min-height:92px!important;
  max-height:92px!important;
  aspect-ratio:auto!important;
  padding:2px!important;
  margin:0!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#f3f3f3!important;
}
.zmpb aside.zmpb-photos #zmpb-library > .photo-thumb > img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
}
.zmpb aside.zmpb-photos #zmpb-library .fav-toggle{
  width:20px!important;height:20px!important;line-height:20px!important;font-size:14px!important;right:3px!important;top:3px!important
}
@media(max-width:560px){
  .zmpb aside.zmpb-photos #zmpb-library > .photo-thumb{height:82px!important;min-height:82px!important;max-height:82px!important}
}
/* v1.3.12 direct photo crop/pan */
.slot.has-photo{cursor:grab!important;touch-action:none!important}
.slot.has-photo.is-gesturing{cursor:grabbing!important}
.slot.has-photo img{pointer-events:none!important;user-select:none!important;-webkit-user-drag:none!important}

/* v1.3.13 – force direct crop position above theme image rules */
.slot.has-photo > img{
  object-fit:cover!important;
  pointer-events:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-user-drag:none!important;
  will-change:object-position,transform!important;
}


/* v1.3.17 — mobile photo discoverability + denser true-aspect library */
.zmpb-mobilebar #mobile-photo-library em{font-style:normal!important;font:inherit!important;line-height:1.1!important}
.zmpb-mobilebar #mobile-photo-library span{position:relative!important}
.zmpb-mobilebar #mobile-photo-count{position:absolute!important;left:15px!important;top:-9px!important;min-width:17px!important;height:17px!important;padding:0 4px!important;border-radius:999px!important;background:#d3a04e!important;color:#111!important;font-size:9px!important;line-height:17px!important;font-weight:900!important;text-align:center!important;box-shadow:0 1px 4px rgba(0,0,0,.28)!important}
.zmpb-mobile-photo-toast{display:none;position:fixed;left:50%;transform:translateX(-50%) translateY(10px);bottom:76px;z-index:100005;border:0;border-radius:999px;background:#111;color:#fff;padding:10px 15px;font-size:12px;font-weight:750;box-shadow:0 7px 22px rgba(0,0,0,.28);opacity:0;transition:.2s ease;white-space:nowrap;max-width:calc(100vw - 24px);overflow:hidden;text-overflow:ellipsis}
.zmpb-mobile-photo-toast.show{display:block;opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:600px){
  .zmpb aside.zmpb-photos #zmpb-library{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}
  .zmpb aside.zmpb-photos #zmpb-library>.photo-thumb{height:68px!important;min-height:68px!important;max-height:68px!important;padding:2px!important;border-radius:6px!important}
  .zmpb aside.zmpb-photos #zmpb-library>.photo-thumb>img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
  .zmpb aside.zmpb-photos #zmpb-library .fav-toggle{width:17px!important;height:17px!important;line-height:17px!important;font-size:12px!important;right:2px!important;top:2px!important}
  .zmpb aside.zmpb-photos #zmpb-library .used-badge{font-size:7px!important;padding:2px 3px!important;left:2px!important;bottom:2px!important}
}
@media(max-width:560px){
  .zmpb aside.zmpb-photos #zmpb-library{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
  .zmpb aside.zmpb-photos #zmpb-library>.photo-thumb{height:64px!important;min-height:64px!important;max-height:64px!important}
}
@media(min-width:601px){.zmpb-mobile-photo-toast{display:none!important}}


/* v1.3.18 — mobile photo flow: keep library visible after picker and provide explicit continue action */
.zmpb-mobile-photo-continue{display:none}
@media(max-width:600px), (pointer:coarse){
  .zmpb-drawer[data-drawer="photos"] .zmpb-mobile-photo-continue{display:block!important;position:sticky;bottom:8px;z-index:4;width:calc(100% - 12px);margin:10px 6px 4px;padding:12px 14px;border:0;border-radius:10px;background:#111;color:#fff;font-weight:800;font-size:13px;box-shadow:0 5px 18px rgba(0,0,0,.25)}
  .zmpb aside.zmpb-photos #zmpb-library{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}
  .zmpb aside.zmpb-photos #zmpb-library>.photo-thumb{height:60px!important;min-height:60px!important;max-height:60px!important;padding:1px!important}
}
@media(max-width:560px){
  .zmpb aside.zmpb-photos #zmpb-library{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}
  .zmpb aside.zmpb-photos #zmpb-library>.photo-thumb{height:58px!important;min-height:58px!important;max-height:58px!important}
}


/* v1.3.19 — persistent mobile photo tray */
.zmpb-mobile-photo-tray{display:none}
@media(max-width:600px),(pointer:coarse){
  .zmpb-mobile-photo-tray{display:flex;position:fixed;left:0;right:0;bottom:64px;z-index:100003;height:82px;background:rgba(17,17,17,.97);border-top:1px solid rgba(255,255,255,.12);box-shadow:0 -4px 16px rgba(0,0,0,.22);align-items:center;gap:7px;padding:7px 8px;box-sizing:border-box}
  .zmpb-mobile-photo-tray[hidden]{display:none!important}
  .zmpb-mobile-photo-strip{display:flex;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;flex:1;min-width:0;height:68px;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:1px}
  .zmpb-mobile-photo-strip::-webkit-scrollbar{display:none}
  .zmpb-mobile-tray-thumb{position:relative;flex:0 0 58px;width:58px;height:58px;padding:2px;margin:0;border:1px solid #555;border-radius:7px;background:#2b2b2b;overflow:hidden;box-sizing:border-box}
  .zmpb-mobile-tray-thumb img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#202020}
  .zmpb-mobile-tray-thumb.selected{border:2px solid #d3a04e;box-shadow:0 0 0 1px #d3a04e}
  .zmpb-mobile-tray-fav{position:absolute;right:2px;top:1px;color:#d3a04e;font-size:11px;line-height:1;text-shadow:0 1px 2px #000}
  .zmpb-mobile-photo-more{flex:0 0 auto;height:58px;min-width:66px;padding:5px 7px;border:1px solid #555;border-radius:7px;background:#191919;color:#fff;font-size:9px;font-weight:800;line-height:1.15;text-transform:uppercase}
  body.zmpb-has-photo-tray .zmpb-mobilebar{bottom:0!important}
  body.zmpb-has-photo-tray .zmpb-final-bar{margin-bottom:82px}
}


/* v1.3.20 — simple mobile photo flow; no persistent tray */
.zmpb-mobile-photo-tray{display:none!important}
body.zmpb-has-photo-tray .zmpb-final-bar{margin-bottom:0!important}
@media(max-width:600px),(pointer:coarse){
 .zmpb-drawer[data-drawer="photos"] .zmpb-mobile-photo-continue{display:block!important;position:sticky!important;bottom:8px!important;z-index:100010!important;width:calc(100% - 12px)!important;margin:10px 6px 4px!important;padding:15px 14px!important;border:0!important;border-radius:10px!important;background:#111!important;color:#fff!important;font-weight:900!important;font-size:14px!important;box-shadow:0 5px 18px rgba(0,0,0,.28)!important}
 .zmpb aside.zmpb-photos #zmpb-library{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}
 .zmpb aside.zmpb-photos #zmpb-library>.photo-thumb{height:58px!important;min-height:58px!important;max-height:58px!important;padding:1px!important}
}


/* v1.3.21 — persistent SIDE photo library for mobile editing */
.zmpb-side-photo-library{display:none}
@media(max-width:600px),(pointer:coarse){
  .zmpb-work{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:5px!important;align-items:start!important}
  .zmpb-side-photo-library{display:flex!important;grid-column:1!important;position:sticky!important;top:6px!important;height:min(68vh,620px)!important;max-height:calc(100vh - 155px)!important;min-height:260px!important;flex-direction:column!important;gap:5px!important;padding:5px!important;background:#171717!important;border-radius:9px!important;overflow:hidden!important;z-index:20!important;box-shadow:0 3px 12px rgba(0,0,0,.18)!important}
  .zmpb-side-photo-library[hidden]{display:none!important}
  .zmpb-side-photo-library[hidden]+.zmpb-canvas{grid-column:1/-1!important}
  .zmpb-side-photo-scroll{display:flex!important;flex:1 1 auto!important;min-height:0!important;flex-direction:column!important;gap:5px!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;padding:1px!important}
  .zmpb-side-photo-thumb{position:relative!important;display:flex!important;flex:0 0 62px!important;width:100%!important;height:62px!important;min-height:62px!important;padding:2px!important;border:1px solid #454545!important;border-radius:6px!important;background:#292929!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
  .zmpb-side-photo-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;background:#222!important}
  .zmpb-side-photo-thumb.selected{border:2px solid #d3a04e!important;box-shadow:0 0 0 1px #d3a04e!important}
  .zmpb-side-photo-thumb.used img{opacity:.58!important}
  .zmpb-side-photo-thumb i{position:absolute!important;right:3px!important;top:2px!important;color:#e4b55e!important;font-style:normal!important;font-size:11px!important;line-height:1!important;text-shadow:0 1px 2px #000!important}
  .zmpb-side-photo-thumb em{position:absolute!important;left:3px!important;bottom:2px!important;width:15px!important;height:15px!important;border-radius:50%!important;background:#111!important;color:#fff!important;font-style:normal!important;font-size:10px!important;line-height:15px!important;text-align:center!important}
  .zmpb-side-add,.zmpb-side-all{flex:0 0 auto!important;width:100%!important;border:1px solid #555!important;border-radius:6px!important;background:#242424!important;color:#fff!important;font-weight:800!important}
  .zmpb-side-add{height:38px!important;font-size:23px!important;line-height:1!important}
  .zmpb-side-all{height:32px!important;font-size:9px!important;text-transform:uppercase!important}
  .zmpb-canvas{grid-column:2!important;min-width:0!important;width:100%!important}
  .zmpb-layouts{grid-column:1/-1!important}
  .zmpb-photos{grid-column:1/-1!important}
  .zmpb-drawer{display:block!important}
}
@media(max-width:430px){
  .zmpb-work{grid-template-columns:66px minmax(0,1fr)!important;gap:4px!important}
  .zmpb-side-photo-thumb{flex-basis:54px!important;height:54px!important;min-height:54px!important}
}

/* v1.3.22 Tap-to-place: make the currently targeted frame unmistakable on touch. */
@media (max-width:600px){
 .zmpb .slot.selected{outline:3px solid #d2a04b !important;outline-offset:-3px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.9),0 0 0 2px rgba(210,160,75,.22)!important}
 .zmpb .slot.selected:not(.has-photo) .empty-hint{font-weight:800;color:#8b6428}
 .zmpb-side-photo-thumb.selected{outline:3px solid #d2a04b!important;outline-offset:1px}
}

/* v1.3.23 Hold & Move / Swap */
.zmpb.swap-mode .slot:not(.swap-source){cursor:copy}
.zmpb .slot.swap-target:not(.has-photo):after{content:'PUSTI ZA PREMJEŠTANJE'!important}
.zmpb .slot.swap-target.has-photo:after{content:'PUSTI ZA ZAMJENU'!important}


/* v1.3.24 — book preview must use the exact editor geometry and crop. */
.zmpb-book-preview-pages{aspect-ratio:var(--zmpb-preview-ratio,2/1)!important;}
.zmpb-preview-frame img{max-width:none!important;max-height:none!important;object-fit:unset!important;transform:none!important;}


/* v1.3.25 — template count applies immediately + mobile preview safe controls */
@media (max-width:700px){
  .zmpb-book-preview{padding:0!important;}
  .zmpb-book-preview-shell{
    width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;
    border-radius:0!important;grid-template-rows:auto minmax(0,1fr) auto!important;
  }
  .zmpb-book-stage{
    min-height:0!important;padding:12px 44px 12px!important;overflow:hidden!important;
  }
  .zmpb-book-preview-pages{
    width:min(calc(100vw - 96px), calc((100dvh - 150px) * var(--zmpb-preview-ratio,2)))!important;
    max-width:calc(100vw - 96px)!important;max-height:calc(100dvh - 150px)!important;
    margin:auto!important;transform:none!important;
  }
  .book-arrow{
    position:fixed!important;top:50%!important;transform:translateY(-50%)!important;
    width:38px!important;height:56px!important;border-radius:10px!important;font-size:34px!important;
    z-index:1000003!important;box-shadow:0 3px 14px rgba(0,0,0,.28)!important;
  }
  .book-arrow.prev{left:6px!important;}
  .book-arrow.next{right:6px!important;}
  .zmpb-book-preview-foot{
    min-height:64px!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
    display:flex!important;justify-content:flex-end!important;align-items:center!important;overflow:visible!important;
  }
  .zmpb-book-preview-foot span{display:none!important;}
  #zmpb-book-preview-edit{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    max-width:calc(100vw - 24px)!important;white-space:nowrap!important;margin:0!important;
    padding:11px 16px!important;font-size:15px!important;line-height:1.2!important;
  }
  .zmpb-book-preview-head{padding:9px 12px!important;}
}


/* v1.3.27 — STABLE DESKTOP 3-COLUMN WORKSPACE
   Photo/template panels must never resize the sheet after their content appears. */
@media (min-width:1100px){
  body.zmpb-open .zmpb-work{
    display:grid!important;
    grid-template-columns:clamp(220px,14vw,260px) minmax(0,1fr) clamp(250px,17vw,310px)!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-photos,
  body.zmpb-open .zmpb-layouts{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  body.zmpb-open .zmpb-canvas{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-canvas .spread{
    flex:0 0 auto!important;
    max-width:calc(100% - 8px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
@media (min-width:1700px){
  body.zmpb-open .zmpb-work{
    grid-template-columns:260px minmax(0,1fr) 310px!important;
  }
}

/* v1.3.28 — stable desktop workspace + mobile side template library */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb-work,
  .zmpb-work{
    display:grid!important;
    grid-template-columns:240px minmax(0,1fr) 285px!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    align-items:stretch!important;
  }
  .zmpb-photos{grid-column:1!important;min-width:0!important;width:240px!important;max-width:240px!important}
  .zmpb-canvas{grid-column:2!important;min-width:0!important;width:100%!important;max-width:100%!important;height:100%!important;overflow:hidden!important}
  .zmpb-layouts{grid-column:3!important;min-width:0!important;width:285px!important;max-width:285px!important}
  .zmpb-canvas .spread{max-width:100%!important;min-width:0!important;min-height:0!important;margin-left:auto!important;margin-right:auto!important}
  .zmpb-side-photo-library,.zmpb-side-template-library{display:none!important}
}

.zmpb-side-template-library{display:none}
@media (max-width:600px),(pointer:coarse){
  .zmpb-work.templates-open{grid-template-columns:66px minmax(0,1fr) 72px!important}
  .zmpb-work.templates-open .zmpb-side-photo-library{grid-column:1!important}
  .zmpb-work.templates-open .zmpb-canvas{grid-column:2!important}
  .zmpb-side-template-library{
    display:none!important;
    grid-column:3!important;
    position:sticky!important;
    top:6px!important;
    height:min(68vh,620px)!important;
    max-height:calc(100vh - 155px)!important;
    min-height:260px!important;
    flex-direction:column!important;
    gap:5px!important;
    padding:5px!important;
    background:#171717!important;
    border-radius:9px!important;
    overflow:hidden!important;
    z-index:21!important;
    box-shadow:0 3px 12px rgba(0,0,0,.18)!important;
  }
  .zmpb-work.templates-open .zmpb-side-template-library{display:flex!important}
  .zmpb-side-template-title{flex:0 0 auto;color:#fff!important;font-size:9px!important;font-weight:900!important;text-align:center!important;letter-spacing:.04em!important;padding:4px 1px!important}
  .zmpb-side-template-scroll{display:flex!important;flex:1 1 auto!important;min-height:0!important;flex-direction:column!important;gap:5px!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;padding:1px!important}
  .zmpb-side-template-btn{flex:0 0 50px!important;display:grid!important;place-items:center!important;width:100%!important;height:50px!important;min-height:50px!important;border:1px solid #555!important;border-radius:7px!important;background:#282828!important;color:#fff!important;font-size:18px!important;font-weight:900!important;padding:0!important}
  .zmpb-side-template-btn.active{border:2px solid #d3a04e!important;background:#3a2f1e!important;color:#f5cc83!important;box-shadow:0 0 0 1px #d3a04e!important}
  .zmpb-side-template-reroll{flex:0 0 auto!important;width:100%!important;min-height:38px!important;border:1px solid #555!important;border-radius:7px!important;background:#242424!important;color:#fff!important;font-size:18px!important;font-weight:900!important;padding:0!important}
  .zmpb-side-template-close{flex:0 0 auto!important;width:100%!important;min-height:32px!important;border:1px solid #555!important;border-radius:7px!important;background:#111!important;color:#fff!important;font-size:10px!important;font-weight:800!important;padding:2px!important}
}
@media(max-width:430px){
  .zmpb-work.templates-open{grid-template-columns:58px minmax(0,1fr) 64px!important;gap:3px!important}
  .zmpb-side-template-btn{flex-basis:46px!important;height:46px!important;min-height:46px!important;font-size:16px!important}
}

/* v1.3.29 — desktop: photos | book | visual templates. No full text drawer. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb-work,
  .zmpb-work{
    display:grid!important;
    grid-template-columns:210px minmax(0,1fr) 170px!important;
    gap:10px!important;
    align-items:start!important;
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
  .zmpb-work > .zmpb-photos{
    display:block!important;grid-column:1!important;width:210px!important;max-width:210px!important;min-width:0!important;
    align-self:start!important;max-height:calc(100vh - 210px)!important;overflow-y:auto!important;overflow-x:hidden!important;
  }
  .zmpb-work > .zmpb-canvas{
    grid-column:2!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;
    align-self:start!important;overflow:hidden!important;padding:10px!important;
  }
  .zmpb-work > .zmpb-layouts{display:none!important}
  .zmpb-work > .zmpb-side-template-library{
    display:flex!important;grid-column:3!important;grid-row:1!important;position:sticky!important;top:8px!important;
    width:170px!important;min-width:170px!important;max-width:170px!important;height:auto!important;max-height:calc(100vh - 190px)!important;
    padding:7px!important;background:#f6f3ee!important;border:1px solid #ddd5ca!important;border-radius:10px!important;
    box-shadow:none!important;overflow:hidden!important;flex-direction:column!important;gap:6px!important;align-self:start!important;
  }
  .zmpb-side-template-title,.zmpb-side-template-reroll,.zmpb-side-template-close{display:none!important}
  .zmpb-side-template-scroll{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
    overflow-y:auto!important;overflow-x:hidden!important;padding:1px!important;min-height:0!important;
  }
  .zmpb-side-template-btn{
    display:block!important;position:relative!important;width:100%!important;height:68px!important;min-height:68px!important;padding:6px!important;
    border:1px solid #d2cbc1!important;border-radius:8px!important;background:#fff!important;color:transparent!important;overflow:hidden!important;
  }
  .zmpb-side-template-btn:hover{border-color:#a98a59!important}
  .zmpb-side-template-btn.active{border:2px solid #c99a51!important;background:#fffaf2!important;box-shadow:0 0 0 1px #e2c99e!important}
  .zmpb-side-template-mini{display:block!important;position:relative!important;width:100%!important;height:100%!important;background:#fff!important}
  .zmpb-side-template-mini i{position:absolute!important;background:#ded8cf!important;border:1px solid #bdb4a7!important;box-sizing:border-box!important}
  .zmpb-canvas .spread{max-width:100%!important;min-width:0!important;min-height:0!important;margin-left:auto!important;margin-right:auto!important}
}
@media (min-width:1500px) and (pointer:fine){
  body.zmpb-open .zmpb-work,.zmpb-work{grid-template-columns:230px minmax(0,1fr) 190px!important}
  .zmpb-work > .zmpb-photos{width:230px!important;max-width:230px!important}
  .zmpb-work > .zmpb-side-template-library{width:190px!important;min-width:190px!important;max-width:190px!important}
  .zmpb-side-template-btn{height:74px!important;min-height:74px!important}
}


/* v1.3.30 — larger stable desktop sheet + explicit 1–10 template choices + mobile one-row workspace */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb-work,.zmpb-work{
    grid-template-columns:190px minmax(0,1fr) 160px!important;
    gap:8px!important;
  }
  .zmpb-work > .zmpb-photos{width:190px!important;max-width:190px!important}
  .zmpb-work > .zmpb-side-template-library{width:160px!important;min-width:160px!important;max-width:160px!important}
  .zmpb-work > .zmpb-canvas{
    min-height:calc(100vh - 245px)!important;
    height:calc(100vh - 245px)!important;
    display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  }
  .zmpb-canvas .spread{max-width:100%!important;margin-inline:auto!important}
  .zmpb-side-template-btn{height:68px!important;min-height:68px!important}
  .zmpb-side-template-count{
    display:grid!important;place-items:center!important;position:absolute!important;right:4px!important;top:4px!important;
    z-index:3!important;width:22px!important;height:22px!important;border-radius:999px!important;
    background:#171717!important;color:#fff!important;font-size:12px!important;font-weight:900!important;line-height:1!important;
    box-shadow:0 1px 3px rgba(0,0,0,.2)!important;
  }
  .zmpb-side-template-btn.active .zmpb-side-template-count{background:#c99543!important;color:#111!important}
}
@media (min-width:1500px) and (pointer:fine){
  body.zmpb-open .zmpb-work,.zmpb-work{grid-template-columns:210px minmax(0,1fr) 170px!important}
  .zmpb-work > .zmpb-photos{width:210px!important;max-width:210px!important}
  .zmpb-work > .zmpb-side-template-library{width:170px!important;min-width:170px!important;max-width:170px!important}
}

@media (max-width:600px), (pointer:coarse){
  .zmpb-work.templates-open{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr) 64px!important;
    grid-template-rows:minmax(0,auto)!important;
    gap:3px!important;align-items:start!important;
    flex-wrap:nowrap!important;overflow:visible!important;
  }
  .zmpb-work.templates-open > .zmpb-side-photo-library{
    grid-column:1!important;grid-row:1!important;min-width:0!important;
  }
  .zmpb-work.templates-open > .zmpb-canvas{
    grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important;
    align-self:start!important;overflow:hidden!important;margin:0!important;padding:3px!important;
  }
  .zmpb-work.templates-open > .zmpb-side-template-library{
    display:flex!important;grid-column:3!important;grid-row:1!important;min-width:0!important;width:64px!important;max-width:64px!important;
    align-self:start!important;
  }
  .zmpb-work.templates-open .zmpb-canvas .spread{
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto!important;
  }
  .zmpb-work.templates-open .zmpb-side-template-count{display:none!important}
}

/* v1.3.31 — Template Library v2: choose 1–10 photos, then a visual layout variant */
.zmpb-template-count-chooser{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;flex:0 0 auto!important}
.zmpb-template-count-chooser button{min-width:0!important;height:30px!important;padding:0!important;border:1px solid #bdb5aa!important;border-radius:6px!important;background:#fff!important;color:#222!important;font-size:12px!important;font-weight:900!important;line-height:1!important}
.zmpb-template-count-chooser button.active{background:#171717!important;color:#fff!important;border-color:#171717!important;box-shadow:0 0 0 2px #d3a04e!important}
.zmpb-template-variants{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;align-content:start!important}
@media (min-width:601px) and (pointer:fine){
 .zmpb-side-template-scroll{display:flex!important;flex-direction:column!important;gap:8px!important}
 .zmpb-template-variants{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .zmpb-template-variants .zmpb-side-template-btn{height:62px!important;min-height:62px!important}
}
@media (max-width:600px),(pointer:coarse){
 .zmpb-work.templates-open{grid-template-columns:58px minmax(0,1fr) 92px!important;grid-template-rows:auto!important}
 .zmpb-work.templates-open > .zmpb-side-template-library{width:92px!important;max-width:92px!important;height:min(68vh,620px)!important}
 .zmpb-side-template-scroll{display:flex!important;flex-direction:column!important;gap:6px!important;overflow-y:auto!important}
 .zmpb-template-count-chooser{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important}
 .zmpb-template-count-chooser button{height:27px!important;font-size:11px!important}
 .zmpb-template-variants{grid-template-columns:1fr!important;gap:5px!important}
 .zmpb-template-variants .zmpb-side-template-btn{display:block!important;position:relative!important;width:100%!important;height:52px!important;min-height:52px!important;padding:4px!important;border:1px solid #555!important;border-radius:7px!important;background:#fff!important;overflow:hidden!important}
 .zmpb-template-variants .zmpb-side-template-btn.active{border:2px solid #d3a04e!important;box-shadow:0 0 0 1px #d3a04e!important}
 .zmpb-template-variants .zmpb-side-template-mini{display:block!important;position:relative!important;width:100%!important;height:100%!important;background:#fff!important}
 .zmpb-template-variants .zmpb-side-template-mini i{position:absolute!important;background:#ded8cf!important;border:1px solid #aaa197!important;box-sizing:border-box!important}
}


/* v1.3.32 — desktop sheet stability after photo load.
   Keep the actual book spread in the center workspace and never let side-panel
   content or image intrinsic dimensions stretch the canvas vertically. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb-work,
  .zmpb-work{
    grid-template-columns:210px minmax(0,1fr) 190px!important;
    align-items:start!important;
    overflow:visible!important;
  }
  .zmpb-work > .zmpb-photos{
    width:210px!important;max-width:210px!important;min-width:0!important;
    align-self:start!important;
  }
  .zmpb-work > .zmpb-canvas{
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;align-self:start!important;justify-content:flex-start!important;
    padding:10px 8px 12px!important;
  }
  .zmpb-work > .zmpb-side-template-library{
    width:190px!important;min-width:190px!important;max-width:190px!important;
    align-self:start!important;
  }
  .zmpb-canvas .spread{
    flex:0 0 auto!important;min-width:0!important;min-height:0!important;
    max-width:100%!important;max-height:620px!important;
    margin:0 auto!important;overflow:visible!important;
  }
  .zmpb-canvas .page,
  .zmpb-canvas .spread-wide-layer{
    min-width:0!important;min-height:0!important;
  }
  .zmpb-canvas .slot{contain:layout paint!important;}
}
@media (min-width:1500px) and (pointer:fine){
  body.zmpb-open .zmpb-work,.zmpb-work{grid-template-columns:230px minmax(0,1fr) 205px!important;}
  .zmpb-work > .zmpb-photos{width:230px!important;max-width:230px!important;}
  .zmpb-work > .zmpb-side-template-library{width:205px!important;min-width:205px!important;max-width:205px!important;}
}


/* v1.3.33 — HARD DESKTOP SHEET CONTAINMENT
   Keep all rendered page/frame content inside the one real spread. Prevent any
   absolute photo layer from escaping above/below the book after library/template rerenders. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb-work{
    display:grid!important;
    grid-template-columns:220px minmax(0,1fr) 200px!important;
    gap:10px!important;
    align-items:start!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos{grid-column:1!important;grid-row:1!important;width:220px!important;max-width:220px!important;min-width:0!important;}
  body.zmpb-open .zmpb-work>.zmpb-canvas{
    grid-column:2!important;grid-row:1!important;
    position:relative!important;width:100%!important;min-width:0!important;max-width:100%!important;
    height:auto!important;min-height:0!important;overflow:hidden!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
    padding:10px!important;
    contain:layout paint!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library{
    grid-column:3!important;grid-row:1!important;width:200px!important;min-width:200px!important;max-width:200px!important;
  }
  body.zmpb-open .zmpb-canvas>#spread,
  body.zmpb-open .zmpb-canvas>.spread{
    position:relative!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:1fr!important;
    flex:0 0 auto!important;
    max-width:100%!important;
    min-width:0!important;min-height:0!important;
    overflow:hidden!important;
    isolation:isolate!important;
    contain:layout paint!important;
    margin:0 auto!important;
  }
  body.zmpb-open .zmpb-canvas>#spread>.page,
  body.zmpb-open .zmpb-canvas>.spread>.page{
    position:relative!important;
    width:100%!important;height:100%!important;
    min-width:0!important;min-height:0!important;
    overflow:hidden!important;
    contain:layout paint!important;
  }
  body.zmpb-open #spread-wide-layer,
  body.zmpb-open .spread>.spread-wide-layer{
    position:absolute!important;inset:0!important;
    width:100%!important;height:100%!important;
    max-width:100%!important;max-height:100%!important;
    overflow:hidden!important;
    transform:none!important;margin:0!important;
    contain:layout paint!important;
  }
  body.zmpb-open .spread .slot{
    position:absolute!important;
    max-width:none!important;max-height:none!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-side-photo-library{display:none!important;}
}
@media (min-width:1500px) and (pointer:fine){
  body.zmpb-open .zmpb-work{grid-template-columns:235px minmax(0,1fr) 215px!important;}
  body.zmpb-open .zmpb-work>.zmpb-photos{width:235px!important;max-width:235px!important;}
  body.zmpb-open .zmpb-work>.zmpb-side-template-library{width:215px!important;min-width:215px!important;max-width:215px!important;}
}

/* v1.3.34 — make the permanent right template rail self-explanatory. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb-side-template-title{
    display:block!important;
    flex:0 0 auto!important;
    color:#171717!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1.2!important;
    text-align:left!important;
    letter-spacing:.04em!important;
    text-transform:none!important;
    padding:2px 2px 5px!important;
  }
}

/* v1.5.0 — Fullscreen Photobook App Mode */
html.zmpb-open,body.zmpb-open{width:100%!important;height:100%!important;max-height:100%!important;overflow:hidden!important;overscroll-behavior:none!important}
body.zmpb-open .zmpb{position:fixed!important;inset:0!important;z-index:2147482000!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important;background:#f4f2ef!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;font-family:Arial,sans-serif!important}
body.zmpb-open .zmpb-appbar{flex:0 0 46px!important;min-height:46px!important;padding:0 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;background:#171717!important;color:#fff!important;border-bottom:1px solid #333!important}
body.zmpb-open .zmpb-appbar>div{display:flex!important;align-items:baseline!important;gap:8px!important;white-space:nowrap!important}body.zmpb-open .zmpb-appbar b{font-size:13px!important;letter-spacing:.08em!important}body.zmpb-open .zmpb-appbar span{font-size:10px!important;color:#aaa!important;letter-spacing:.08em!important}
body.zmpb-open .zmpb-app-exit{color:#fff!important;text-decoration:none!important;border:1px solid #555!important;border-radius:7px!important;padding:7px 10px!important;font-size:12px!important;font-weight:700!important;line-height:1!important}
body.zmpb-open .zmpb>.zmpb-head,body.zmpb-open .zmpb>.zmpb-steps{display:none!important}
body.zmpb-open .zmpb>.zmpb-top{flex:0 0 auto!important;margin:8px 10px 0!important;padding:8px 12px!important;border-radius:9px!important;gap:10px!important}
body.zmpb-open .zmpb>.zmpb-status{flex:0 0 auto!important;margin:4px 10px 0!important}body.zmpb-open .zmpb>.zmpb-historybar{flex:0 0 auto!important;margin:4px 10px 0!important;padding:4px!important}
body.zmpb-open .zmpb>.zmpb-work{flex:1 1 auto!important;min-height:0!important;height:auto!important;margin:6px 10px 0!important;overflow:hidden!important}
body.zmpb-open .zmpb-work>.zmpb-photos,body.zmpb-open .zmpb-work>.zmpb-layouts,body.zmpb-open .zmpb-work>.zmpb-side-template-library{height:100%!important;max-height:100%!important;overflow-y:auto!important;overscroll-behavior:contain!important}
body.zmpb-open .zmpb-work>.zmpb-canvas{height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important}
body.zmpb-open .zmpb>.zmpb-bottom{flex:0 0 auto!important;margin:6px 10px 8px!important;padding:8px 12px!important;border-radius:9px!important}
body.zmpb-open #wpadminbar{visibility:hidden!important;pointer-events:none!important}
@media (min-width:601px) and (pointer:fine){body.zmpb-open .zmpb>.zmpb-top{grid-template-columns:minmax(260px,2fr) minmax(150px,1fr) minmax(120px,.7fr)!important}body.zmpb-open .zmpb-work{align-items:stretch!important}body.zmpb-open .zmpb-canvas{justify-content:flex-start!important;padding:8px!important}body.zmpb-open .zmpb-toolbar{flex:0 0 auto!important;margin:0 0 6px!important}}
@media (max-width:600px),(pointer:coarse){body.zmpb-open .zmpb-appbar{flex-basis:42px!important;min-height:42px!important;padding:0 8px!important}body.zmpb-open .zmpb-appbar span{display:none!important}body.zmpb-open .zmpb-app-exit{font-size:11px!important;padding:6px 8px!important}body.zmpb-open .zmpb>.zmpb-top{margin:4px 5px 0!important;padding:5px 7px!important;grid-template-columns:minmax(0,1fr) minmax(0,.72fr) auto!important;gap:5px!important}body.zmpb-open .zmpb-top label{gap:2px!important;font-size:10px!important}body.zmpb-open .zmpb-top select{min-width:0!important;width:100%!important;padding:6px 4px!important;font-size:11px!important}body.zmpb-open .zmpb-price strong{font-size:18px!important}body.zmpb-open .zmpb>.zmpb-status,body.zmpb-open .zmpb>.zmpb-historybar{display:none!important}body.zmpb-open .zmpb>.zmpb-work{margin:4px 4px 0!important;padding:0!important}body.zmpb-open .zmpb>.zmpb-bottom{display:none!important}body.zmpb-open .zmpb-mobile-bar{position:relative!important;flex:0 0 58px!important;inset:auto!important;margin:0!important;z-index:50!important}body.zmpb-open{padding-bottom:0!important}}

/* v1.5.1 — Desktop fullscreen containment fix */
body.zmpb-open > .zmpb{position:fixed!important;inset:0!important;transform:none!important;isolation:isolate!important;contain:layout paint!important}
body.zmpb-open > .zmpb *{box-sizing:border-box}
@media (min-width:601px){body.zmpb-open > .zmpb{width:100vw!important;height:100dvh!important}}

/* v1.5.2 — Android visible-viewport + bottom navigation containment */
@media (max-width:600px),(pointer:coarse){
  body.zmpb-open > .zmpb{
    height:var(--zmpb-visible-height,100dvh)!important;
    max-height:var(--zmpb-visible-height,100dvh)!important;
  }
  body.zmpb-open .zmpb>.zmpb-work{
    flex:1 1 0!important;
    min-height:0!important;
    height:0!important;
    overflow:hidden!important;
    margin-bottom:0!important;
  }
  body.zmpb-open .zmpb>.zmpb-mobilebar{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    inset:auto!important;
    width:100%!important;
    flex:0 0 calc(62px + env(safe-area-inset-bottom))!important;
    min-height:62px!important;
    margin:0!important;
    z-index:100!important;
    padding:5px max(5px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left))!important;
    box-shadow:0 -4px 14px rgba(0,0,0,.18)!important;
  }
  body.zmpb-open .zmpb>.zmpb-mobilebar button{
    min-height:52px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-canvas{
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
    padding-bottom:3px!important;
  }
}


/* v1.5.3 — Android work-area + bottom-sheet containment */
@media (max-width:600px),(pointer:coarse){
  /* Rails belong to the work area, never to the full browser viewport. */
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
  body.zmpb-open .zmpb-work>.zmpb-side-template-library{
    position:relative!important;
    top:auto!important;
    bottom:auto!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    align-self:stretch!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll,
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add,
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-all,
  body.zmpb-open .zmpb-side-template-library>button{
    flex:0 0 auto!important;
  }

  /* Mobile drawers are real bottom sheets: always above the black toolbar,
     with their own scroll. They no longer climb to the very top of Chrome. */
  body.zmpb-open .zmpb-drawer{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(70px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    height:auto!important;
    max-height:min(58vh,calc(var(--zmpb-visible-height,100dvh) - 185px))!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    padding:12px 12px 14px!important;
    border-radius:16px!important;
    z-index:2147482100!important;
  }
  body.zmpb-open .zmpb-drawer .drawer-head{
    position:sticky!important;
    top:-12px!important;
    z-index:20!important;
    margin:-12px -12px 8px!important;
    padding:11px 12px 9px!important;
    background:#faf8f5!important;
    border-bottom:1px solid #e3ddd4!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-mobile-photo-continue{
    bottom:0!important;
  }

  /* Canvas/strip may scroll internally when a very short Android viewport
     leaves less vertical room, but the page itself never scrolls. */
  body.zmpb-open .zmpb-work>.zmpb-canvas{
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin!important;
  }
}

/* v1.6.0 — Simple User Flow */
.zmpb-simple-flow{display:flex;align-items:center;gap:12px;margin:6px 10px 0;padding:7px 9px;background:#fff;border:1px solid #e5dfd5;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.04);flex:0 0 auto}
.zmpb-flow-steps{display:flex;align-items:center;gap:5px;min-width:0;flex:1}
.zmpb-flow-steps span{display:flex;align-items:center;gap:5px;padding:5px 7px;border-radius:999px;font-size:11px;font-weight:700;color:#777;white-space:nowrap}
.zmpb-flow-steps i{display:grid;place-items:center;width:20px;height:20px;border:1px solid #cfc8bd;border-radius:50%;font-style:normal;font-size:10px;background:#faf8f5}
.zmpb-flow-steps span.done{color:#55704d}.zmpb-flow-steps span.done i{background:#eef5eb;border-color:#91aa86}
.zmpb-flow-steps span.active{color:#171717;background:#f2eadc}.zmpb-flow-steps span.active i{background:#cfa04f;border-color:#cfa04f;color:#fff}
#zmpb-flow-action{flex:0 0 auto;border:0;border-radius:8px;background:#111;color:#fff;font-weight:800;font-size:11px;padding:9px 13px;cursor:pointer;white-space:nowrap}
#zmpb-flow-action.smart{background:#b88432}#zmpb-flow-action.finish{background:#55704d}
@media(max-width:600px),(pointer:coarse){body.zmpb-open .zmpb-simple-flow{margin:4px 5px 0!important;padding:4px 5px!important;gap:4px!important}.zmpb-flow-steps{gap:2px}.zmpb-flow-steps span{padding:3px!important;font-size:0!important;gap:0!important}.zmpb-flow-steps i{width:20px;height:20px;font-size:10px}.zmpb-flow-steps span.active{font-size:9px!important;padding-right:5px!important;gap:3px!important}#zmpb-flow-action{font-size:9px!important;padding:7px 8px!important;max-width:42vw;overflow:hidden;text-overflow:ellipsis}.zmpb-simple-flow+.zmpb-status{display:none!important}}
/* v1.6.2 — always-visible essential project controls on compact/fullscreen UI */
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-historybar{
  display:flex!important;flex:0 0 42px!important;min-height:42px!important;
  margin:3px 5px 0!important;padding:3px 5px!important;gap:4px!important;
  overflow:visible!important;background:#faf8f4!important;border:1px solid #e0d8cd!important;
  border-radius:8px!important;align-items:center!important;position:relative!important;top:auto!important;
 }
 body.zmpb-open .zmpb-historybar #duplicate-frame,
 body.zmpb-open .zmpb-historybar #zmpb-share-project,
 body.zmpb-open .zmpb-historybar #zmpb-preview,
 body.zmpb-open .zmpb-historybar #zmpb-save-state{display:none!important}
 body.zmpb-open .zmpb-historybar #zmpb-undo,
 body.zmpb-open .zmpb-historybar #zmpb-redo,
 body.zmpb-open .zmpb-historybar #zmpb-save-later,
 body.zmpb-open .zmpb-historybar #zmpb-projects{
  display:block!important;flex:1 1 0!important;min-width:0!important;min-height:34px!important;
  padding:4px 5px!important;font-size:10px!important;line-height:1.05!important;white-space:nowrap!important;
 }
}


/* v1.6.3 — quick controls live inside the already-visible Simple Flow bar */
.zmpb-flow-quick{display:none}
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-historybar{display:none!important}
 body.zmpb-open .zmpb-simple-flow{display:flex!important;align-items:center!important;overflow:visible!important}
 body.zmpb-open .zmpb-flow-quick{display:flex!important;align-items:center!important;gap:3px!important;flex:0 0 auto!important;margin-left:auto!important}
 body.zmpb-open .zmpb-flow-quick button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:38px!important;height:34px!important;min-width:38px!important;min-height:34px!important;padding:1px 2px!important;margin:0!important;border:1px solid #d8d0c5!important;border-radius:7px!important;background:#fff!important;color:#161616!important;box-shadow:none!important;line-height:1!important}
 body.zmpb-open .zmpb-flow-quick button b{font-size:15px!important;line-height:15px!important;font-weight:800!important}
 body.zmpb-open .zmpb-flow-quick button small{display:block!important;font-size:7px!important;line-height:9px!important;font-weight:800!important;margin:1px 0 0!important;color:inherit!important}
 body.zmpb-open .zmpb-flow-quick button:disabled{opacity:.32!important}
 body.zmpb-open #zmpb-flow-action{flex:0 1 auto!important;max-width:31vw!important}
}
@media (max-width:620px){
 body.zmpb-open .zmpb-flow-quick button{width:34px!important;min-width:34px!important}
 body.zmpb-open .zmpb-flow-quick button small{display:none!important}
 body.zmpb-open #zmpb-flow-action{max-width:28vw!important;padding-left:6px!important;padding-right:6px!important}
}


/* v1.6.4 — Tekst lives inside Šabloni, not in the main toolbar. */
.zmpb-layout-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 10px;padding:4px;background:#eee9e1;border-radius:10px;position:sticky;top:0;z-index:8}
.zmpb-layout-tabs button{min-height:38px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#333!important;font-weight:800!important}
.zmpb-layout-tabs button.active{background:#171717!important;color:#fff!important}
.zmpb-layouts.zmpb-text-focus>.page-target,.zmpb-layouts.zmpb-text-focus>.zmpb-reroll-current,.zmpb-layouts.zmpb-text-focus>.zmpb-reroll-note,.zmpb-layouts.zmpb-text-focus>.full-spread-tools,.zmpb-layouts.zmpb-text-focus>.hint,.zmpb-layouts.zmpb-text-focus>.count-tabs,.zmpb-layouts.zmpb-text-focus>.layout-list,.zmpb-layouts.zmpb-text-focus>.frame-shapes,.zmpb-layouts.zmpb-text-focus>#add-frame,.zmpb-layouts.zmpb-text-focus>#delete-selected-frame,.zmpb-layouts.zmpb-text-focus>.align-tools,.zmpb-layouts.zmpb-text-focus>.zmpb-touch-help,.zmpb-layouts.zmpb-text-focus>.zmpb-quick-actions,.zmpb-layouts.zmpb-text-focus>#clear-page{display:none!important}
.zmpb-layouts.zmpb-text-focus>.zmpb-text-tools{display:block!important;margin-top:4px!important}
.zmpb-side-mode-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;padding:6px!important}
.zmpb-side-mode-tabs button{min-width:0!important;padding:8px 3px!important;border:0!important;border-radius:6px!important;background:#2b2b2b!important;color:#ddd!important;font-size:10px!important;font-weight:900!important}
.zmpb-side-mode-tabs button.active{background:#fff!important;color:#171717!important}
@media(max-width:600px),(pointer:coarse){.zmpb-layouts.zmpb-text-focus{padding-bottom:calc(var(--zmpb-mobilebar-h,84px) + env(safe-area-inset-bottom) + 14px)!important}.zmpb-layouts.zmpb-text-focus .zmpb-text-tools{min-height:auto!important}.zmpb-layout-tabs{top:0}}


/* v1.6.5 — make Šabloni / Tekst unmistakably visible on Android. */
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb-work.templates-open .zmpb-side-template-title.zmpb-side-mode-tabs{
   display:grid!important;grid-template-columns:1fr!important;gap:5px!important;padding:4px 2px 7px!important;
 }
 body.zmpb-open .zmpb-work.templates-open .zmpb-side-mode-tabs button{
   display:block!important;width:100%!important;min-width:0!important;min-height:34px!important;padding:5px 1px!important;
   border:1px solid #666!important;border-radius:7px!important;background:#282828!important;color:#fff!important;
   font-size:9px!important;font-weight:900!important;line-height:1.05!important;letter-spacing:0!important;
 }
 body.zmpb-open .zmpb-work.templates-open .zmpb-side-mode-tabs button.active{
   background:#fff!important;color:#171717!important;border-color:#fff!important;
 }
 body.zmpb-open .zmpb-work.templates-open .zmpb-side-mode-tabs [data-side-mode="text"]{
   background:#d3a04e!important;color:#171717!important;border-color:#e6bd78!important;
 }
}


/* v1.6.6 — explicit text confirmation + always-visible exit on mobile. */
.zmpb-text-feedback{margin:8px 0 0!important;padding:9px 11px!important;border-radius:8px!important;background:#edf7ed!important;color:#225b2c!important;font-size:12px!important;font-weight:800!important;text-align:center!important}
.zmpb-text-donebar{margin-top:14px!important;padding-top:12px!important;border-top:1px solid #ddd6c9!important}
.zmpb-text-donebar button{width:100%!important;min-height:46px!important;border:0!important;border-radius:8px!important;background:#111!important;color:#fff!important;font:800 14px/1.2 inherit!important;cursor:pointer!important}
@media(max-width:600px),(pointer:coarse){
  .zmpb-layouts.zmpb-text-focus>.zmpb-text-tools{padding-bottom:76px!important}
  .zmpb-text-donebar{position:sticky!important;bottom:0!important;z-index:8!important;background:#f7f4ee!important;padding:10px 0 2px!important;margin-top:14px!important;box-shadow:0 -10px 18px rgba(247,244,238,.96)!important}
  .zmpb-text-donebar button{min-height:50px!important;font-size:14px!important}
}

/* v1.6.6.2 — Mobile Photo Edit Mode. On touch devices, tapping a placed photo opens
   a large dedicated crop workspace. Frame movement/resizing remains on explicit handles. */
.zmpb-mobile-photo-edit{display:none}
@media(max-width:600px),(pointer:coarse){
 body.zmpb-mobile-photo-edit-open{overflow:hidden!important}
 .zmpb-mobile-photo-edit{position:fixed;inset:0;z-index:100050;background:rgba(12,12,12,.78);padding:12px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
 .zmpb-mobile-photo-edit[hidden]{display:none!important}
 .zmpb-mpe-card{width:min(96vw,620px);max-height:calc(var(--zmpb-visible-height,100dvh) - 24px);overflow:auto;background:#f7f4ee;border-radius:16px;padding:12px;box-sizing:border-box;box-shadow:0 18px 60px rgba(0,0,0,.42)}
 .zmpb-mpe-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#171717}.zmpb-mpe-head>div{min-width:0}.zmpb-mpe-head b{display:block;font-size:17px}.zmpb-mpe-head small{display:block;font-size:11px;color:#666;margin-top:2px}
 .zmpb-mpe-close{width:42px!important;height:42px!important;min-width:42px!important;border:0!important;border-radius:50%!important;background:#b91f24!important;color:#fff!important;font-size:26px!important;line-height:1!important;padding:0!important}
 .zmpb-mpe-stage{display:flex;align-items:center;justify-content:center;min-height:260px;max-height:58vh;padding:8px;background:#1b1b1b;border-radius:12px;box-sizing:border-box;overflow:hidden}
 .zmpb-mpe-crop{position:relative;width:min(100%,540px);max-height:54vh;overflow:hidden;background:#eee;touch-action:none;box-shadow:0 0 0 3px #d3a04e;user-select:none;-webkit-user-select:none}
 .zmpb-mpe-crop img{position:absolute;display:block;max-width:none!important;max-height:none!important;pointer-events:none;user-select:none;-webkit-user-drag:none}
 .zmpb-mpe-zoom{display:grid;grid-template-columns:54px 1fr 54px;gap:10px;align-items:center;margin:14px 0 10px}.zmpb-mpe-zoom button{height:48px!important;border:0!important;border-radius:10px!important;background:#111!important;color:#fff!important;font-size:28px!important;font-weight:800!important;padding:0!important}.zmpb-mpe-zoom input{width:100%;height:36px;accent-color:#c99847}
 .zmpb-mpe-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px}.zmpb-mpe-actions button{min-height:48px!important;border-radius:10px!important;font-weight:850!important;font-size:14px!important;padding:10px!important}.zmpb-mpe-reset{background:#fff!important;color:#222!important;border:1px solid #ccc!important}.zmpb-mpe-done{background:#111!important;color:#fff!important;border:1px solid #111!important}
 .zmpb .slot.has-photo.selected:after{content:'Dodirni fotografiju za kadar';position:absolute;left:50%;bottom:4px;transform:translateX(-50%);z-index:8;background:rgba(17,17,17,.82);color:#fff;border-radius:999px;padding:3px 7px;font-size:8px;font-weight:800;white-space:nowrap;pointer-events:none}
}

/* v1.6.6.3 — Safe Back / Exit Protection. */
.zmpb-exit-guard{position:fixed;inset:0;z-index:100100;background:rgba(0,0,0,.64);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}
.zmpb-exit-guard[hidden]{display:none!important}
.zmpb-exit-card{width:min(92vw,470px);background:#f7f4ee;border-radius:16px;padding:22px;box-sizing:border-box;box-shadow:0 18px 60px rgba(0,0,0,.38);text-align:center;color:#171717}
.zmpb-exit-icon{width:52px;height:52px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;background:#d3a04e;color:#171717;font-size:27px;font-weight:900}
.zmpb-exit-card h3{margin:0 0 8px!important;font-size:21px!important}.zmpb-exit-card p{margin:0 0 8px!important;font-size:15px!important;font-weight:750!important}.zmpb-exit-card small{display:block;color:#666;line-height:1.45;font-size:12px}
.zmpb-exit-actions{display:grid;grid-template-columns:1.35fr 1fr;gap:9px;margin-top:18px}.zmpb-exit-actions button{min-height:50px!important;border-radius:10px!important;font-weight:850!important;font-size:14px!important;padding:10px 12px!important}.zmpb-exit-actions #zmpb-exit-stay{background:#111!important;color:#fff!important;border:1px solid #111!important}.zmpb-exit-actions #zmpb-exit-leave{background:#fff!important;color:#222!important;border:1px solid #cfc8bb!important}
@media(max-width:520px){.zmpb-exit-card{padding:18px 14px}.zmpb-exit-actions{grid-template-columns:1fr}.zmpb-exit-actions #zmpb-exit-stay{order:1}.zmpb-exit-actions #zmpb-exit-leave{order:2}}

/* v1.6.6.7 — explicit, finger-sized crop editor trigger on mobile */
@media (max-width:600px),(pointer:coarse){
 .zmpb .zmpb-mobile-crop-btn{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:50%!important;border:2px solid #fff!important;background:rgba(17,17,17,.82)!important;color:#fff!important;font-size:24px!important;line-height:1!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:80!important;box-shadow:0 2px 10px rgba(0,0,0,.35)!important;touch-action:manipulation!important}
 .zmpb .slot.has-photo:not(.selected) .zmpb-mobile-crop-btn{opacity:.72!important}
 .zmpb .slot.has-photo.selected .zmpb-mobile-crop-btn{opacity:1!important}
 .zmpb-mpe-crop{touch-action:none!important;overscroll-behavior:contain!important}
}

/* v1.6.6.8 — direct touch crop on the photo. The center target is visual only so
   it can never steal pointer events from pan/pinch gestures. */
@media (max-width:600px),(pointer:coarse){
 .zmpb .zmpb-mobile-crop-btn{pointer-events:none!important}
 .zmpb .slot.has-photo{touch-action:none!important;overscroll-behavior:contain!important}
 .zmpb .slot.has-photo.selected:after{content:'1 PRST = POMJERI FOTO • 2 PRSTA = ZOOM'!important}
}

/* v1.6.6.9 — hide center crop target and soften direct mobile gestures. */
@media (max-width:600px),(pointer:coarse){
 .zmpb .zmpb-mobile-crop-btn{display:none!important}
}

/* v1.6.6.10 — compact template-count buttons on mobile to expose more template previews. */
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb-work.templates-open .count-tabs{
   grid-template-columns:repeat(5,minmax(30px,1fr))!important;
   gap:3px!important;
   margin:4px 0 5px!important;
 }
 body.zmpb-open .zmpb-work.templates-open .count-tabs button{
   min-width:30px!important;
   width:auto!important;
   min-height:27px!important;
   height:27px!important;
   padding:1px 2px!important;
   border-radius:5px!important;
   font-size:11px!important;
   line-height:1!important;
 }
 body.zmpb-open .zmpb-work.templates-open .layout-list{
   margin-top:3px!important;
 }
}

/* v1.6.6.11 — compact Šabloni / Tekst mode buttons on mobile. */
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb-work.templates-open .zmpb-side-template-title.zmpb-side-mode-tabs{
   gap:4px!important;
   padding:3px 2px 5px!important;
 }
 body.zmpb-open .zmpb-work.templates-open .zmpb-side-mode-tabs button{
   min-height:27px!important;
   height:27px!important;
   padding:2px 1px!important;
   border-radius:6px!important;
   font-size:8px!important;
   line-height:1!important;
 }
}

/* v1.6.6.12 — extra-compact mobile template controls to reveal more previews. */
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb-work.templates-open .zmpb-side-template-title.zmpb-side-mode-tabs{
   gap:2px!important;padding:1px 1px 3px!important;
 }
 body.zmpb-open .zmpb-work.templates-open .zmpb-side-mode-tabs button{
   min-height:21px!important;height:21px!important;padding:1px!important;border-radius:5px!important;font-size:7px!important;line-height:1!important;
 }
 body.zmpb-open .zmpb-work.templates-open .count-tabs{
   grid-template-columns:repeat(5,minmax(25px,1fr))!important;gap:2px!important;margin:2px 0 3px!important;
 }
 body.zmpb-open .zmpb-work.templates-open .count-tabs button{
   min-width:25px!important;min-height:22px!important;height:22px!important;padding:0 1px!important;border-radius:4px!important;font-size:9px!important;line-height:1!important;
 }
 body.zmpb-open .zmpb-work.templates-open .layout-list{gap:5px!important;margin:2px 0!important;}
}


/* v1.6.6.13 — large mobile photo correction popup */
@media (max-width:600px), (pointer:coarse){
 .zmpb-mpe-card{width:min(98vw,760px)!important;max-height:calc(var(--zmpb-visible-height,100dvh) - 10px)!important;padding:10px!important;border-radius:14px!important;overflow:auto!important}
 .zmpb-mpe-head{margin-bottom:7px!important}.zmpb-mpe-head b{font-size:18px!important}.zmpb-mpe-head small{font-size:12px!important}
 .zmpb-mpe-stage{min-height:300px!important;height:min(58dvh,620px)!important;max-height:none!important;padding:6px!important}
 .zmpb-mpe-crop{width:min(100%,700px)!important;max-height:56dvh!important}
 .zmpb-mpe-toolbar{display:grid;grid-template-columns:minmax(150px,210px) 1fr;gap:12px;align-items:center;margin:10px 0 8px}
 .zmpb-mpe-nudge{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,38px);gap:4px;justify-content:center;align-items:center}
 .zmpb-mpe-nudge button{width:44px!important;height:38px!important;min-width:44px!important;border:1px solid #b9b3aa!important;border-radius:9px!important;background:#fff!important;color:#111!important;padding:0!important;font-size:22px!important;font-weight:900!important;line-height:1!important}
 .zmpb-mpe-nudge .zmpb-mpe-center{background:#e5b04f!important;border-color:#c89338!important;font-size:20px!important}
 .zmpb-mpe-zoom-wrap{min-width:0}.zmpb-mpe-zoom{margin:0!important;grid-template-columns:48px 1fr 48px!important;gap:8px!important}.zmpb-mpe-zoom button{height:44px!important;font-size:25px!important}.zmpb-mpe-zoom-value{text-align:center;margin-top:2px;font-size:12px;font-weight:800;color:#555}
 .zmpb-mpe-actions{position:sticky;bottom:0;background:#f7f4ee;padding-top:4px}.zmpb-mpe-actions button{min-height:46px!important}
}
@media (max-width:520px){
 .zmpb-mpe-stage{height:min(52dvh,520px)!important;min-height:250px!important}
 .zmpb-mpe-toolbar{grid-template-columns:1fr!important;gap:6px!important}
 .zmpb-mpe-nudge{grid-template-columns:repeat(3,42px);grid-template-rows:repeat(3,34px)}
 .zmpb-mpe-nudge button{width:42px!important;height:34px!important;min-width:42px!important}
}


/* v1.6.6.14 — clearer mobile tap affordance; popup is opened from pointerup, not click. */
@media (max-width:600px),(pointer:coarse){
 .zmpb .slot.has-photo.selected:after{content:'DODIRNI FOTO = UREDI U VELIKOM PROZORU'!important}
}


/* v1.6.6.15 — explicit mobile UREDI button. This bypasses Samsung/Android tap/pinch
   gesture conflicts and opens the in-page editor directly; it is not a browser popup. */
@media (max-width:600px),(pointer:coarse){
 .zmpb .zmpb-mobile-crop-btn{
   display:flex!important;
   pointer-events:auto!important;
   left:50%!important;
   top:auto!important;
   bottom:6px!important;
   transform:translateX(-50%)!important;
   width:auto!important;
   min-width:62px!important;
   height:30px!important;
   min-height:30px!important;
   padding:0 11px!important;
   border-radius:999px!important;
   border:2px solid #fff!important;
   background:#111!important;
   color:#fff!important;
   font-size:10px!important;
   font-weight:900!important;
   letter-spacing:.3px!important;
   line-height:1!important;
   z-index:120!important;
   opacity:.94!important;
   box-shadow:0 2px 9px rgba(0,0,0,.38)!important;
   touch-action:manipulation!important;
 }
 .zmpb .slot.has-photo.selected .zmpb-mobile-crop-btn{opacity:1!important}
 .zmpb .slot.has-photo.selected:after{display:none!important;content:none!important}
}


/* v1.6.6.20 — mobile checkout CTA lives beside price, never over page navigation. */
.zmpb-mobile-finish{display:none}
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb-price{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:8px!important;grid-column:1/-1!important}
 body.zmpb-open .zmpb-price small{grid-column:1}
 body.zmpb-open .zmpb-price strong{grid-column:2;text-align:right}
 body.zmpb-open .zmpb-price .zmpb-mobile-finish{display:inline-flex!important;grid-column:3!important;position:static!important;align-items:center!important;justify-content:center!important;min-height:34px!important;padding:6px 10px!important;border:0!important;border-radius:8px!important;background:#d3a04e!important;color:#111!important;font-size:10px!important;font-weight:900!important;letter-spacing:.1px!important;box-shadow:none!important;white-space:nowrap!important;touch-action:manipulation!important}
 body.zmpb-exit-guard-open .zmpb-mobile-finish{visibility:hidden!important}
 .zmpb-exit-guard{z-index:1002000!important}.zmpb-exit-card{z-index:1002001!important}
}


/* v1.6.6.21 — mobile book preview controls: always visible and clear */
@media (max-width:700px){
  .zmpb-book-preview{
    padding:0!important;
    align-items:stretch!important;
    justify-content:stretch!important;
  }
  .zmpb-book-preview-shell{
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    border-radius:0!important;
    overflow:hidden!important;
    grid-template-rows:58px minmax(0,1fr) 68px!important;
  }
  .zmpb-book-preview-head{
    position:relative!important;
    z-index:1000006!important;
    min-height:58px!important;
    height:58px!important;
    padding:8px 10px 8px 14px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    flex:0 0 58px!important;
  }
  .zmpb-book-preview-head>div{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
  }
  .zmpb-book-preview-head b{
    font-size:15px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .zmpb-book-preview-head span{
    display:block!important;
    margin-top:2px!important;
    font-size:12px!important;
    line-height:1.15!important;
  }
  #zmpb-book-preview-close{
    position:relative!important;
    inset:auto!important;
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#111!important;
    font-size:24px!important;
    line-height:1!important;
    z-index:1000008!important;
    box-shadow:0 2px 10px rgba(0,0,0,.22)!important;
    overflow:visible!important;
  }
  .zmpb-book-stage{
    position:relative!important;
    min-height:0!important;
    overflow:hidden!important;
    padding:14px 48px!important;
    box-sizing:border-box!important;
  }
  .zmpb-book-preview-pages{
    width:min(calc(100vw - 108px), calc((100dvh - 154px) * var(--zmpb-preview-ratio,2)))!important;
    max-width:calc(100vw - 108px)!important;
    max-height:calc(100dvh - 154px)!important;
    margin:auto!important;
    transform:none!important;
  }
  .book-arrow{
    position:absolute!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:40px!important;
    height:64px!important;
    min-width:40px!important;
    min-height:64px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#111!important;
    font-size:42px!important;
    line-height:1!important;
    z-index:1000005!important;
    box-shadow:0 3px 14px rgba(0,0,0,.30)!important;
  }
  .book-arrow.prev{left:6px!important;right:auto!important;}
  .book-arrow.next{right:6px!important;left:auto!important;}
  .book-arrow:disabled{opacity:.25!important;}
  .zmpb-book-preview-foot{
    position:relative!important;
    z-index:1000006!important;
    min-height:68px!important;
    height:68px!important;
    box-sizing:border-box!important;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:visible!important;
  }
  .zmpb-book-preview-foot span{display:none!important;}
  #zmpb-book-preview-edit{
    width:min(100%,360px)!important;
    max-width:calc(100vw - 24px)!important;
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:10px 16px!important;
    font-size:14px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
}

/* v1.6.6.23 — Samsung Fold / coarse-pointer book preview hard fix.
   Fold can report a wide CSS viewport, so do not rely on max-width:700px. */
@media (max-width:600px), (pointer:coarse){
  .zmpb-book-preview{
    position:fixed!important; inset:0!important; width:100vw!important; height:100dvh!important;
    padding:0!important; margin:0!important; display:flex!important; align-items:stretch!important; justify-content:stretch!important;
    overflow:hidden!important; box-sizing:border-box!important;
  }
  .zmpb-book-preview-shell{
    position:relative!important; width:100vw!important; height:100dvh!important; max-width:none!important; max-height:none!important;
    margin:0!important; border-radius:0!important; overflow:hidden!important;
    display:grid!important; grid-template-rows:64px minmax(0,1fr) 64px!important;
  }
  .zmpb-book-preview-head{
    position:relative!important; min-height:64px!important; height:64px!important; padding:8px 68px 8px 16px!important;
    box-sizing:border-box!important; overflow:visible!important; z-index:1000010!important;
  }
  .zmpb-book-preview-head>div{min-width:0!important; max-width:100%!important;}
  #zmpb-book-preview-close{
    position:absolute!important; top:8px!important; right:max(10px,env(safe-area-inset-right))!important; left:auto!important; bottom:auto!important;
    width:48px!important; height:48px!important; min-width:48px!important; min-height:48px!important; padding:0!important; margin:0!important;
    display:grid!important; place-items:center!important; border-radius:50%!important; background:#fff!important; color:#111!important;
    font-size:28px!important; line-height:1!important; z-index:1000020!important; box-shadow:0 3px 14px rgba(0,0,0,.35)!important;
  }
  .zmpb-book-stage{
    position:relative!important; min-height:0!important; width:100%!important; height:100%!important; overflow:hidden!important;
    padding:16px 62px!important; box-sizing:border-box!important; display:flex!important; align-items:center!important; justify-content:center!important;
  }
  .zmpb-book-preview-pages{
    width:min(calc(100vw - 144px), calc((100dvh - 170px) * var(--zmpb-preview-ratio,2)))!important;
    max-width:calc(100vw - 144px)!important; max-height:calc(100dvh - 170px)!important;
    height:auto!important; margin:auto!important; transform:none!important;
  }
  .book-arrow{
    position:absolute!important; top:50%!important; transform:translateY(-50%)!important;
    width:46px!important; height:64px!important; min-width:46px!important; min-height:64px!important; padding:0!important; margin:0!important;
    display:grid!important; place-items:center!important; border-radius:12px!important; background:#fff!important; color:#111!important;
    font-size:40px!important; line-height:1!important; z-index:1000015!important; box-shadow:0 3px 14px rgba(0,0,0,.32)!important;
  }
  .book-arrow.prev{left:max(8px,env(safe-area-inset-left))!important; right:auto!important;}
  .book-arrow.next{right:max(8px,env(safe-area-inset-right))!important; left:auto!important;}
  .zmpb-book-preview-foot{
    position:relative!important; min-height:64px!important; height:64px!important; padding:7px 12px calc(7px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important; display:flex!important; align-items:center!important; justify-content:center!important; overflow:hidden!important; z-index:1000010!important;
  }
  .zmpb-book-preview-foot span{display:none!important;}
  #zmpb-book-preview-edit{
    width:min(360px,calc(100vw - 28px))!important; min-height:44px!important; margin:0!important; padding:9px 16px!important;
    display:flex!important; align-items:center!important; justify-content:center!important; white-space:nowrap!important;
  }
}

/* v1.6.6.25 — cleaner, centered mobile photo-start panel */
.zmpb-upload-help{display:none}
@media (max-width:600px),(pointer:coarse){
  body.zmpb-open .zmpb-drawer[data-drawer="photos"]{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    padding:12px 14px 14px!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] .drawer-head{
    flex:0 0 auto!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] #zmpb-upload-trigger{
    width:min(680px,94%)!important;
    min-height:58px!important;
    margin:clamp(34px,7vh,74px) auto 0!important;
    padding:14px 18px!important;
    border-radius:14px!important;
    font-size:17px!important;
    line-height:1.15!important;
    box-shadow:0 5px 16px rgba(0,0,0,.10)!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-upload-help{
    display:block!important;
    width:min(680px,94%)!important;
    margin:8px auto 0!important;
    text-align:center!important;
    font-size:12px!important;
    line-height:1.35!important;
    color:#756f66!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] #zmpb-auto{
    width:min(680px,94%)!important;
    min-height:52px!important;
    margin:14px auto 0!important;
    padding:12px 15px!important;
    border-radius:12px!important;
    font-size:15px!important;
    line-height:1.2!important;
    background:#fff!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-auto-help,
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-photo-tips,
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] #zmpb-library{
    width:min(680px,94%)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-auto-help{
    margin-top:14px!important;
    text-align:center!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-photo-tips{
    margin-top:4px!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] #zmpb-library{
    margin-top:14px!important;
  }
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-mobile-photo-continue{
    width:min(680px,94%)!important;
    margin:14px auto 4px!important;
    border-radius:13px!important;
  }
}
@media (max-height:720px) and (pointer:coarse){
  body.zmpb-open .zmpb-drawer[data-drawer="photos"] #zmpb-upload-trigger{
    margin-top:18px!important;
  }
}


/* v1.6.6.27 — clearer favorite control in photo library */
.zmpb aside.zmpb-photos #zmpb-library .photo-thumb .fav-toggle{
  display:grid!important;place-items:center!important;
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  right:6px!important;top:6px!important;padding:0!important;margin:0!important;
  border:2px solid rgba(201,154,81,.72)!important;border-radius:50%!important;
  background:rgba(255,255,255,.97)!important;color:#8b6330!important;
  font-size:22px!important;line-height:1!important;font-family:Arial,sans-serif!important;font-weight:900!important;
  box-shadow:0 2px 9px rgba(0,0,0,.22)!important;z-index:30!important;
  cursor:pointer!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;
}
.zmpb aside.zmpb-photos #zmpb-library .photo-thumb .fav-toggle.is-favorite{
  background:#d3a04e!important;color:#fff!important;border-color:#d3a04e!important;
  box-shadow:0 2px 10px rgba(151,103,31,.34)!important;
}
@media (max-width:600px),(pointer:coarse){
  .zmpb aside.zmpb-photos #zmpb-library .photo-thumb .fav-toggle{
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
    right:5px!important;top:5px!important;font-size:23px!important;
  }
}


/* v1.6.6.34 — free text drag only; no layout/photo-layer overrides */
.zmpb-page-text.is-moving{cursor:grabbing!important;outline:2px solid rgba(45,140,255,.35)!important}


/* v1.6.6.42 — conservative cover fix: original stable layout, no grid/panel overrides. */
#zmpb-cover-canvas .zmpb-cover-side{overflow:hidden!important}
#zmpb-cover-canvas .cover-live-copy{z-index:4!important;pointer-events:none!important}
#zmpb-cover-canvas .zmpb-cover-side:not(.has-cover-photo) .cover-live-copy{color:#222!important;text-shadow:none!important}
#zmpb-cover-canvas .zmpb-cover-side.has-cover-photo .cover-live-copy{color:#fff!important;text-shadow:0 2px 10px rgba(0,0,0,.62)!important}


/* v1.6.6.44 — stable cover interaction + fully visible cover controls */
#cover-view.cover-in-canvas{overflow-x:hidden!important;max-width:100%!important;box-sizing:border-box!important}
#cover-view .cover-tools{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) repeat(4,max-content)!important;gap:7px!important;align-items:end!important;width:100%!important;max-width:100%!important;overflow:visible!important;box-sizing:border-box!important}
#cover-view .cover-tools label{min-width:0!important;width:100%!important}
#cover-view .cover-tools input{width:100%!important;min-width:0!important;box-sizing:border-box!important}
#cover-view .cover-tools button{white-space:normal!important;max-width:190px!important;height:auto!important;min-height:40px!important}
#zmpb-cover-canvas .zmpb-cover-side{pointer-events:auto!important;cursor:pointer!important;touch-action:manipulation!important}
#zmpb-cover-canvas .zmpb-cover-side.active-cover{box-shadow:inset 0 0 0 4px #c99a51!important}
@media(max-width:1450px){#cover-view .cover-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}#cover-view .cover-tools button{max-width:none!important;width:100%!important}}
@media(max-width:700px){#cover-view .cover-tools{grid-template-columns:1fr!important}}


/* v1.6.6.45 — Naslovna is a normal editable sheet, not a special cover editor */
#cover-view{display:none!important}
.zmpb-work:has(#spread-strip .cover-tab.active) .zmpb-side-template-library{display:block}

/* v1.6.6.47 — alati isključivo za novu Naslovnu kao običan list */
.zmpb-cover-text-quick{margin:0 0 10px;padding:10px;border:1px solid #d7b77b;border-radius:9px;background:#fffaf0}.zmpb-cover-text-quick>b{display:block;font-size:12px;color:#171717}.zmpb-cover-text-quick>small{display:block;margin:3px 0 8px;color:#6b6257;font-size:10px;line-height:1.35}.zmpb-cover-text-quick>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}.zmpb-cover-text-quick button{min-height:39px!important;border:1px solid #c99645!important;border-radius:7px!important;background:#171717!important;color:#fff!important;font-weight:800!important}.zmpb-editing-cover-list #layout-list .zmpb-cover-layout-btn b{font-size:10px!important}.zmpb-editing-cover-list .page-target{display:none!important}.zmpb-editing-cover-list .full-spread-tools{display:none!important}.zmpb-editing-cover-list #zmpb-reroll-note{display:none!important}
@media(max-width:600px){.zmpb-cover-text-quick>div{grid-template-columns:1fr}.zmpb-cover-text-quick button{min-height:46px!important}}

/* v1.6.6.47: Naslovna text interaction only; ordinary pages untouched */
.zmpb.zmpb-cover-page-active #spread-wide-layer .zmpb-page-text{z-index:80!important;pointer-events:auto!important;touch-action:none!important;cursor:grab!important}
.zmpb.zmpb-cover-page-active #spread-wide-layer .slot{z-index:2!important}
.zmpb.zmpb-cover-page-active #spread-wide-layer .zmpb-page-text.selected{z-index:90!important}
.zmpb-cover-selected-text{display:grid!important;gap:5px!important;margin:0 0 9px!important}.zmpb-cover-selected-text span{font-size:11px;font-weight:800}.zmpb-cover-selected-text input{width:100%!important;min-width:0!important;height:40px!important;padding:8px 10px!important;border:2px solid #c99a51!important;border-radius:7px!important;background:#fff!important;color:#111!important}

/* v1.6.6.48 — robust text selection/drag on cover and all regular pages */
.zmpb .zmpb-page-text{
  z-index:120!important;
  pointer-events:auto!important;
  touch-action:none!important;
  -ms-touch-action:none!important;
  cursor:grab!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  -webkit-touch-callout:none!important;
}
.zmpb .zmpb-page-text.selected{z-index:130!important}
.zmpb .zmpb-page-text.is-moving{z-index:140!important;cursor:grabbing!important}
.zmpb .page,.zmpb #spread-wide-layer{isolation:isolate}


/* v1.6.6.49 — text editing controls on cover + all pages; drag logic untouched */
.zmpb .zmpb-page-text{transform:translate(-50%,-50%) rotate(var(--zmpb-text-rotate,0deg))!important;transform-origin:center center!important}
.zmpb-text-content-label{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;margin-bottom:8px!important}.zmpb-text-content-label span{font-size:11px!important;font-weight:800!important}.zmpb-text-content-label textarea{width:100%!important;min-width:0!important;min-height:92px!important;resize:vertical!important;padding:9px 10px!important;border:1px solid #cfc7bc!important;border-radius:7px!important;background:#fff!important;color:#171717!important;font:inherit!important;line-height:1.35!important}.zmpb-text-two{display:grid!important;grid-template-columns:minmax(0,1fr) 104px!important;gap:7px!important;margin:7px 0!important}.zmpb-text-two label{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}.zmpb-text-two input[type=color]{width:100%!important;height:36px!important;padding:2px!important;border:1px solid #cfc7bc!important;border-radius:6px!important;background:#fff!important}.zmpb-text-size-label{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;margin:8px 0!important}.zmpb-text-size-label input[type=range]{width:100%!important}.zmpb-text-rotate{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;margin:7px 0!important}.zmpb-text-rotate button,.zmpb-text-actions button{min-height:38px!important;border:1px solid #d4ccc1!important;border-radius:6px!important;background:#fff!important;color:#333!important;font-size:10px!important;font-weight:800!important}.zmpb-text-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:7px!important}.zmpb-text-actions .danger{color:#a61d24!important}
@media(max-width:600px),(pointer:coarse){.zmpb-text-content-label textarea{min-height:110px!important;font-size:16px!important}.zmpb-text-two{grid-template-columns:1fr 90px!important}.zmpb-text-rotate button,.zmpb-text-actions button{min-height:44px!important;font-size:11px!important}}

/* v1.6.6.52: stil novog teksta je vidljiv odmah, prije dodavanja */
.zmpb-new-text-style{margin-top:10px;padding:10px;border:1px solid #ddd4c8;border-radius:8px;background:#fff}.zmpb-new-text-style>b{display:block;margin-bottom:6px;color:#171717}.zmpb-new-text-note{display:block;margin-top:5px;color:#6f675f;font-size:10px}.zmpb-new-text-style .zmpb-text-align button.active{background:#c99a51!important;color:#fff!important;border-color:#c99a51!important}

/* v1.6.6.53 multiline text */
.zmpb-text-add textarea,.zmpb-text-content-label textarea{box-sizing:border-box!important;width:100%!important}
.zmpb-page-text,.zmpb-preview-text{white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important}

/* v1.6.6.54 — multiline tekst bez prelamanja slovo-po-slovo */
.zmpb .zmpb-page-text,
.zmpb .zmpb-preview-text{
  display:inline-block!important;
  width:max-content!important;
  min-width:4ch!important;
  max-width:92%!important;
  white-space:pre-wrap!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}

/* v1.6.6.55 — definitivni multiline width fix: tekst nije query-container */
.zmpb .zmpb-page-text,
.zmpb .zmpb-preview-text{
  container-type:normal!important;
  contain:none!important;
  display:inline-block!important;
  width:fit-content!important;
  min-width:0!important;
  max-width:92%!important;
  white-space:pre-wrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}


/* v1.6.6.56 — transparent text: no white background, no visible border */
.zmpb .zmpb-page-text,
.zmpb .zmpb-page-text.selected,
.zmpb .zmpb-page-text.is-moving{
  background:transparent!important;
  border:none!important;
  outline:none!important;
  box-shadow:none!important;
  padding:0!important;
}
.preview-mode .zmpb-page-text,
.zmpb-preview-text{
  background:transparent!important;
  border:none!important;
  outline:none!important;
  box-shadow:none!important;
}


/* v1.6.6.57 — stvarni web fontovi + live picker */
.zmpb-live-font-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:7px!important}
.zmpb-live-font-picker button{min-height:48px!important;padding:7px 8px!important;border:1px solid #d5cec4!important;border-radius:8px!important;background:#fff!important;color:#171717!important;font-size:18px!important;font-weight:400!important;line-height:1.1!important;overflow:hidden!important}
.zmpb-live-font-picker button.active{border-color:#c99a51!important;box-shadow:inset 0 0 0 2px #c99a51!important;background:#fffaf1!important}
/* Tekst na fotografiji mora ostati potpuno providan. Selekcija se označava samo diskretnim ručicama/UI, ne podlogom. */
.zmpb-page-text,.zmpb-page-text.selected,.zmpb-page-text.is-moving,
.zmpb .zmpb-page-text,.zmpb .zmpb-page-text.selected,.zmpb .zmpb-page-text.is-moving{
 background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;
}
@media(max-width:600px){.zmpb-live-font-picker{grid-template-columns:1fr 1fr!important}.zmpb-live-font-picker button{font-size:17px!important}}


/* v1.6.6.58 — 8 live font cards + stable text box width while dragging */
#zmpb-new-text-font,#zmpb-text-font{display:none!important}
.zmpb-text-two label:has(#zmpb-new-text-font),.zmpb-text-two label:has(#zmpb-text-font){grid-template-columns:1fr!important}
.zmpb-live-font-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.zmpb-live-font-picker button{font-family:var(--zmpb-card-font,Arial),Arial,sans-serif!important;font-size:20px!important;min-height:54px!important}
.zmpb-live-font-picker button.active::after{content:' ✓';font-family:Arial,sans-serif!important;font-size:12px!important;color:#9a6b24!important}
.zmpb .zmpb-page-text,.zmpb .zmpb-preview-text{box-sizing:border-box!important;white-space:pre-wrap!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
.zmpb .zmpb-page-text{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;padding:0!important}
@media(max-width:600px){.zmpb-live-font-picker button{font-size:19px!important;min-height:50px!important}}
.zmpb .zmpb-page-text{width:var(--zmpb-text-width,70%)!important;max-width:var(--zmpb-text-width,70%)!important}.zmpb .zmpb-preview-text{width:var(--zmpb-preview-width,70%)!important;max-width:var(--zmpb-preview-width,70%)!important}


/* v1.6.6.59 — live font cards use the real loaded family, no fallback masking */
.zmpb-live-font-picker button[data-font="Arial"]{font-family:Arial,Helvetica,sans-serif!important}
.zmpb-live-font-picker button[data-font="Georgia"]{font-family:Georgia,'Times New Roman',serif!important}
.zmpb-live-font-picker button[data-font="Playfair Display"]{font-family:'Playfair Display',Georgia,serif!important}
.zmpb-live-font-picker button[data-font="Montserrat"]{font-family:Montserrat,Arial,sans-serif!important}
.zmpb-live-font-picker button[data-font="Dancing Script"]{font-family:'Dancing Script',cursive!important}
.zmpb-live-font-picker button[data-font="Great Vibes"]{font-family:'Great Vibes',cursive!important}
.zmpb-live-font-picker button[data-font="Pacifico"]{font-family:Pacifico,cursive!important}
.zmpb-live-font-picker button[data-font="Caveat"]{font-family:Caveat,cursive!important}


/* v1.6.6.60 — direct +/- text size controls on selected text */
.zmpb .zmpb-page-text{overflow:visible!important}
.zmpb .zmpb-page-text-content{display:block!important;width:100%!important;white-space:pre-wrap!important}
.zmpb .zmpb-text-size-controls{
 position:absolute!important;right:-6px!important;top:-44px!important;z-index:300!important;
 display:flex!important;gap:6px!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 transform:rotate(calc(-1 * var(--zmpb-text-rotate,0deg)))!important;transform-origin:bottom right!important;
}
.zmpb .zmpb-page-text.selected .zmpb-text-size-controls{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.zmpb .zmpb-text-size-controls button{
 width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;
 border:2px solid #c99a51!important;border-radius:999px!important;background:#171717!important;color:#fff!important;
 font:800 24px/1 Arial,sans-serif!important;box-shadow:0 2px 8px rgba(0,0,0,.25)!important;
 display:grid!important;place-items:center!important;touch-action:manipulation!important;cursor:pointer!important;
}
.zmpb .zmpb-text-size-controls button:active{transform:scale(.94)!important}
@media(max-width:600px),(pointer:coarse){.zmpb .zmpb-text-size-controls{top:-50px!important}.zmpb .zmpb-text-size-controls button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;font-size:27px!important}}


/* v1.6.6.61 — dedicated Text item in the mobile bottom bar */
@media(max-width:600px),(pointer:coarse){
  .zmpb-mobilebar{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  .zmpb-mobilebar #mobile-text-tools{color:#fff!important;}
  .zmpb-mobilebar #mobile-text-tools.active{color:#e7bd7a!important;}
  .zmpb-mobilebar #mobile-text-tools span{font-size:23px!important;line-height:1!important;}
}


/* v1.6.6.63 — selected text inline controls + deselect behavior */
.zmpb .zmpb-text-size-controls .zmpb-inline-delete-text{
  background:#b91c1c!important;
  border-color:#b91c1c!important;
  color:#fff!important;
  font-size:20px!important;
}
.zmpb .zmpb-page-text:not(.selected) .zmpb-text-size-controls{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}

/* v1.6.6.65 — Add sheet tab */
.zmpb .spread-strip .add-sheet-tab{font-weight:800!important;min-width:94px!important;border:1px dashed #b8893f!important;background:#fffaf1!important;color:#7a5319!important}.zmpb .spread-strip .add-sheet-tab span{font-size:16px;font-weight:900;vertical-align:-1px}.zmpb .spread-strip .add-sheet-tab:active{transform:scale(.98)}
@media (max-width:600px),(pointer:coarse){.zmpb .spread-strip .add-sheet-tab{min-width:88px!important;padding:0 8px!important}}


/* v1.6.6.66 — Classic/Magazine duplex locked first-left and last-right pages */
.zmpb .page.zmpb-page-locked{
  position:relative!important;
  background:repeating-linear-gradient(135deg,#f1f1f1 0,#f1f1f1 12px,#e9e9e9 12px,#e9e9e9 24px)!important;
  overflow:hidden!important;
}
.zmpb .zmpb-locked-page-notice{
  position:absolute!important;inset:0!important;z-index:80!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;padding:18px!important;text-align:center!important;color:#555!important;
  background:rgba(255,255,255,.62)!important;box-sizing:border-box!important;
}
.zmpb .zmpb-locked-page-notice .zmpb-lock-icon{font-size:28px!important;line-height:1!important}
.zmpb .zmpb-locked-page-notice b{font-size:14px!important;line-height:1.25!important;color:#333!important}
.zmpb .zmpb-locked-page-notice small{max-width:210px!important;font-size:11px!important;line-height:1.35!important;color:#666!important}
.zmpb-preview-locked-page{position:absolute;top:0;bottom:0;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:repeating-linear-gradient(135deg,#f1f1f1 0,#f1f1f1 12px,#e6e6e6 12px,#e6e6e6 24px);color:#555;text-align:center;border-right:1px solid rgba(0,0,0,.08);box-sizing:border-box}
.zmpb-preview-locked-page span{font-size:24px}.zmpb-preview-locked-page b{font-size:13px}.zmpb-preview-locked-page small{font-size:11px}
@media(max-width:600px),(pointer:coarse){.zmpb .zmpb-locked-page-notice{padding:8px!important;gap:4px!important}.zmpb .zmpb-locked-page-notice .zmpb-lock-icon{font-size:22px!important}.zmpb .zmpb-locked-page-notice b{font-size:11px!important}.zmpb .zmpb-locked-page-notice small{font-size:9px!important}}


/* v1.6.6.67 — Desktop list strip must remain visible for every book aspect ratio */
@media (min-width:601px) and (pointer:fine){
 body.zmpb-open .zmpb-canvas>#spread-strip{flex:0 0 auto!important;min-height:40px!important;max-height:44px!important;margin-top:4px!important;padding-top:4px!important;position:relative!important;z-index:5!important;}
}


/* v1.6.6.68 — Desktop main tool bar: same clear navigation as mobile */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb>.zmpb-mobilebar{
    display:grid!important;
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    flex:0 0 62px!important;
    min-height:62px!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    background:#111!important;
    color:#fff!important;
    border-top:1px solid #333!important;
    padding:4px 8px!important;
    z-index:120!important;
    box-shadow:0 -3px 12px rgba(0,0,0,.14)!important;
  }
  body.zmpb-open .zmpb>.zmpb-mobilebar button{
    min-height:52px!important;
    font-size:11px!important;
    padding:3px 8px!important;
  }
  body.zmpb-open .zmpb>.zmpb-mobilebar button span{font-size:21px!important}
  body.zmpb-open .zmpb>.zmpb-mobilebar #mobile-text-tools.active{color:#e7bd7a!important}
  body.zmpb-open .zmpb>.zmpb-work{min-height:0!important;flex:1 1 0!important;overflow:hidden!important}
}


/* v1.6.6.69 — Desktop: one compact black bar for tools + finish action */
@media (min-width:601px){
  body.zmpb-open .zmpb>.zmpb-bottom{display:none!important;}
  body.zmpb-open .zmpb>.zmpb-mobilebar{
    flex:0 0 48px!important;min-height:48px!important;
    grid-template-columns:repeat(5,minmax(0,1fr)) minmax(180px,1.15fr)!important;
    padding:3px 8px!important;gap:2px!important;
  }
  body.zmpb-open .zmpb>.zmpb-mobilebar button{
    min-height:40px!important;height:40px!important;font-size:10px!important;padding:2px 6px!important;
  }
  body.zmpb-open .zmpb>.zmpb-mobilebar button span{font-size:17px!important;}
  body.zmpb-open .zmpb>.zmpb-mobilebar #zmpb-cart.zmpb-toolbar-finish{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;
    margin:0!important;padding:4px 10px!important;border-radius:7px!important;
    background:#d3a04e!important;color:#111!important;font-size:11px!important;font-weight:900!important;
    white-space:nowrap!important;
  }
}


/* v1.6.6.70 — Desktop text tools open in the right workspace column */
@media (min-width:601px){
  body.zmpb-open .zmpb-work.desktop-text-open{
    grid-template-columns:210px minmax(0,1fr) 330px!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-side-template-library{
    display:none!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-drawer.zmpb-text-focus.is-open{
    display:block!important;
    grid-column:3!important;grid-row:1!important;
    position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    transform:none!important;visibility:visible!important;
    width:330px!important;min-width:330px!important;max-width:330px!important;
    height:100%!important;max-height:100%!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    padding:12px!important;margin:0!important;
    background:#faf8f5!important;border:1px solid #ddd5ca!important;border-radius:10px!important;
    box-shadow:none!important;z-index:3!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts .drawer-close{
    display:grid!important;place-items:center!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts .zmpb-layout-tabs{
    position:sticky!important;top:0!important;z-index:5!important;background:#faf8f5!important;
  }
}

/* v1.6.6.72 - sticky compact close button for text tools */
.zmpb-text-tools{position:relative!important}
.zmpb-text-close-sticky{
  position:sticky!important;top:8px!important;z-index:60!important;
  margin:0 0 -42px auto!important;width:42px!important;height:42px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border:0!important;border-radius:999px!important;background:#111!important;color:#fff!important;
  font:700 28px/1 Arial,sans-serif!important;cursor:pointer!important;box-shadow:0 3px 12px rgba(0,0,0,.24)!important;
}
.zmpb-text-close-sticky:hover{transform:scale(1.04)}
.zmpb-text-donebar{display:none!important}
@media (max-width:600px),(pointer:coarse){
 .zmpb-text-close-sticky{top:10px!important;right:0!important;width:44px!important;height:44px!important;font-size:30px!important}
}


/* v1.6.6.73 — Desktop Smart-style workspace layout
   Keep the existing editor engine/functions, but reorganize the desktop workspace:
   active spread on top/center, templates at right, photo pool horizontally below. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb>.zmpb-work{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 218px!important;
    grid-template-rows:minmax(0,1fr) 154px!important;
    gap:8px!important;
    align-items:stretch!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    margin:5px 8px 0!important;
  }

  /* Main book stage */
  body.zmpb-open .zmpb-work>.zmpb-canvas{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:100%!important;
    max-height:100%!important;
    min-height:0!important;
    padding:7px 10px 5px!important;
    border-radius:7px!important;
    background:#d8d8d8!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-canvas .zmpb-toolbar{
    min-height:34px!important;
    margin:0 0 4px!important;
  }
  body.zmpb-open .zmpb-canvas>#spread-strip{
    min-height:36px!important;
    max-height:40px!important;
    margin-top:3px!important;
    padding:3px 0 0!important;
    background:transparent!important;
  }

  /* Permanent compact template column on the right. */
  body.zmpb-open .zmpb-work>.zmpb-side-template-library{
    grid-column:2!important;
    grid-row:1!important;
    width:218px!important;
    min-width:218px!important;
    max-width:218px!important;
    height:100%!important;
    max-height:100%!important;
    align-self:stretch!important;
    border-radius:7px!important;
    overflow:hidden!important;
  }

  /* Horizontal photo pool below the book, similar to pro album editors. */
  body.zmpb-open .zmpb-work>.zmpb-photos{
    display:grid!important;
    grid-column:1 / 3!important;
    grid-row:2!important;
    grid-template-columns:165px minmax(0,1fr)!important;
    grid-template-rows:auto 1fr!important;
    column-gap:10px!important;
    row-gap:5px!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:154px!important;
    max-height:154px!important;
    min-height:154px!important;
    padding:8px 10px!important;
    border-radius:7px!important;
    overflow:hidden!important;
    background:#4b4b4b!important;
    color:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .drawer-head{
    grid-column:1!important;
    grid-row:1!important;
    position:static!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    color:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .drawer-head h3{
    margin:0!important;
    font-size:14px!important;
    color:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-upload{
    grid-column:1!important;
    grid-row:2!important;
    align-self:start!important;
    margin:0!important;
    min-height:36px!important;
    padding:7px 9px!important;
    font-size:10px!important;
    border-radius:6px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-auto{
    grid-column:1!important;
    grid-row:2!important;
    align-self:end!important;
    margin:0!important;
    min-height:34px!important;
    padding:6px 8px!important;
    font-size:9px!important;
    background:#666!important;
    border-color:#777!important;
    color:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-upload-help,
  body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-auto-help,
  body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-photo-tips,
  body.zmpb-open .zmpb-work>.zmpb-photos .photo-filters{
    display:none!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library{
    grid-column:2!important;
    grid-row:1 / 3!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    margin:0!important;
    padding:3px 4px 5px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:thin!important;
    overscroll-behavior-x:contain!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb{
    flex:0 0 94px!important;
    width:94px!important;
    min-width:94px!important;
    max-width:94px!important;
    height:112px!important;
    min-height:112px!important;
    max-height:112px!important;
    margin:0!important;
    padding:3px!important;
    border-radius:5px!important;
    background:#333!important;
    border:2px solid #eee!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb>img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    background:#2e2e2e!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb.selected-photo{
    outline:3px solid #d3a04e!important;
    outline-offset:1px!important;
  }

  /* Text tools still use the existing engine; only occupy the right column. */
  body.zmpb-open .zmpb-work.desktop-text-open{
    grid-template-columns:minmax(0,1fr) 340px!important;
    grid-template-rows:minmax(0,1fr) 154px!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-drawer.zmpb-text-focus.is-open{
    grid-column:2!important;
    grid-row:1!important;
    width:340px!important;
    min-width:340px!important;
    max-width:340px!important;
    height:100%!important;
    max-height:100%!important;
    border-radius:7px!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-photos{
    grid-column:1 / 3!important;
    grid-row:2!important;
  }

  /* Hide the narrow mobile photo rail on desktop; the bottom photo pool replaces it. */
  body.zmpb-open .zmpb-side-photo-library{display:none!important;}
}

/* v1.6.6.74 — Desktop STAGE-FIRST: the book/spread is the hero.
   Compress secondary chrome and photo pool so the active spread gets the maximum viewport. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb-appbar{flex:0 0 32px!important;min-height:32px!important;padding:0 10px!important}
  body.zmpb-open .zmpb-appbar b{font-size:11px!important}
  body.zmpb-open .zmpb-appbar span{font-size:8px!important}
  body.zmpb-open .zmpb-app-exit{padding:4px 8px!important;font-size:10px!important}

  /* Hide onboarding/status rows during editing; their functions remain available elsewhere. */
  body.zmpb-open .zmpb>.zmpb-simple-flow,
  body.zmpb-open .zmpb>.zmpb-status{display:none!important}

  /* One very compact book settings row. */
  body.zmpb-open .zmpb>.zmpb-top{
    margin:3px 8px 0!important;padding:3px 7px!important;min-height:38px!important;
    grid-template-columns:minmax(280px,2fr) minmax(130px,.8fr) minmax(105px,.45fr)!important;gap:7px!important
  }
  body.zmpb-open .zmpb-top label{gap:1px!important;font-size:9px!important}
  body.zmpb-open .zmpb-top label>b{font-size:9px!important}
  body.zmpb-open .zmpb-top select{min-height:25px!important;height:25px!important;padding:2px 6px!important;font-size:10px!important}
  body.zmpb-open .zmpb-price small{font-size:7px!important}
  body.zmpb-open .zmpb-price strong{font-size:17px!important;line-height:1!important}

  /* Compact project actions to a single thin utility strip. */
  body.zmpb-open .zmpb>.zmpb-historybar{
    margin:3px 8px 0!important;padding:2px 4px!important;min-height:28px!important;gap:3px!important;border-radius:5px!important
  }
  body.zmpb-open .zmpb-historybar button{min-height:22px!important;height:22px!important;padding:1px 6px!important;font-size:9px!important;border-radius:4px!important}
  body.zmpb-open .zmpb-historybar span{font-size:8px!important}

  /* Give almost all remaining height to the stage. Photo pool is intentionally shallow. */
  body.zmpb-open .zmpb>.zmpb-work{
    margin:3px 6px 0!important;
    grid-template-columns:minmax(0,1fr) 176px!important;
    grid-template-rows:minmax(0,1fr) 92px!important;
    gap:5px!important
  }
  body.zmpb-open .zmpb-work>.zmpb-canvas{padding:3px 6px 2px!important;border-radius:5px!important}
  body.zmpb-open .zmpb-canvas .zmpb-toolbar{min-height:24px!important;height:24px!important;margin:0 0 2px!important}
  body.zmpb-open .zmpb-canvas .zmpb-toolbar button{width:24px!important;height:24px!important;min-height:24px!important;padding:0!important}
  body.zmpb-open .zmpb-canvas .zmpb-toolbar b{font-size:9px!important}
  body.zmpb-open .zmpb-canvas .zmpb-toolbar small{font-size:7px!important}
  body.zmpb-open .zmpb-canvas>#spread-strip{min-height:28px!important;max-height:30px!important;margin-top:2px!important;padding-top:2px!important}
  body.zmpb-open .zmpb-canvas>#spread-strip button{min-height:24px!important;height:24px!important;padding:2px 7px!important;font-size:8px!important}

  body.zmpb-open .zmpb-work>.zmpb-side-template-library{width:176px!important;min-width:176px!important;max-width:176px!important;border-radius:5px!important}

  body.zmpb-open .zmpb-work>.zmpb-photos{
    grid-template-columns:118px minmax(0,1fr)!important;
    height:92px!important;min-height:92px!important;max-height:92px!important;
    padding:4px 6px!important;column-gap:6px!important;row-gap:2px!important;border-radius:5px!important
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .drawer-head h3{font-size:10px!important}
  body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-upload,
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-auto{min-height:27px!important;height:27px!important;padding:3px 5px!important;font-size:8px!important}
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library{gap:6px!important;padding:1px 2px!important}
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb{
    flex:0 0 66px!important;width:66px!important;min-width:66px!important;max-width:66px!important;
    height:76px!important;min-height:76px!important;max-height:76px!important;padding:2px!important
  }

  body.zmpb-open .zmpb>.zmpb-mobilebar{flex:0 0 42px!important;min-height:42px!important;padding:2px 6px!important}
  body.zmpb-open .zmpb>.zmpb-mobilebar button{height:36px!important;min-height:36px!important;font-size:9px!important}
  body.zmpb-open .zmpb>.zmpb-mobilebar button span{font-size:15px!important}
  body.zmpb-open .zmpb>.zmpb-mobilebar #zmpb-cart.zmpb-toolbar-finish{height:36px!important;min-height:36px!important;font-size:10px!important}

  /* Text panel can be wider only while it is actually open. */
  body.zmpb-open .zmpb-work.desktop-text-open{grid-template-columns:minmax(0,1fr) 300px!important;grid-template-rows:minmax(0,1fr) 92px!important}
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-drawer.zmpb-text-focus.is-open{width:300px!important;min-width:300px!important;max-width:300px!important}
}

/* v1.6.6.75 — Desktop polish: clearer photo add action + wider text/font controls. */
@media (min-width:601px) and (pointer:fine){
  /* Bottom-left photo actions: keep the primary add button obvious and separated. */
  body.zmpb-open .zmpb-work>.zmpb-photos{
    grid-template-columns:132px minmax(0,1fr)!important;
    grid-template-rows:16px 31px 25px!important;
    row-gap:3px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .drawer-head{
    grid-column:1!important;grid-row:1!important;
    align-self:center!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .drawer-head h3{
    font-size:9px!important;line-height:1!important;opacity:.9!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-upload{
    grid-column:1!important;grid-row:2!important;
    align-self:stretch!important;
    width:100%!important;height:31px!important;min-height:31px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:3px 6px!important;
    background:#d3a04e!important;color:#171717!important;border:1px solid #e5bb74!important;
    font-size:9px!important;font-weight:900!important;border-radius:6px!important;
    white-space:nowrap!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-auto{
    grid-column:1!important;grid-row:3!important;
    align-self:stretch!important;
    width:100%!important;height:25px!important;min-height:25px!important;
    margin:0!important;padding:2px 5px!important;
    font-size:7px!important;line-height:1.05!important;
    background:#626262!important;border-color:#777!important;color:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library{
    grid-column:2!important;grid-row:1 / 4!important;
  }

  /* Text panel: font cards get the full panel width; color control moves below them. */
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-new-text-style .zmpb-text-two,
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-text-edit .zmpb-text-two{
    display:block!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-text-two>label{
    display:block!important;width:100%!important;min-width:0!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-text-two>label+label{
    margin-top:8px!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-live-font-picker{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    margin:6px 0 0!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-live-font-picker button{
    width:100%!important;min-width:0!important;
    min-height:42px!important;height:42px!important;
    padding:4px 7px!important;
    font-size:16px!important;
    white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open input[type="color"]#zmpb-new-text-color,
  body.zmpb-open .zmpb-work.desktop-text-open input[type="color"]#zmpb-text-color{
    display:block!important;
    width:100%!important;height:30px!important;min-height:30px!important;
    margin-top:4px!important;padding:2px!important;
    border:1px solid #cfc7bc!important;border-radius:6px!important;background:#fff!important;
    cursor:pointer!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-text-size-label{
    margin-top:8px!important;
  }
}


/* v1.6.6.76 — make the entire desktop "Dodaj fotografije" tile a real hit target. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open #zmpb-upload-trigger{
    position:relative!important;
    z-index:20!important;
    pointer-events:auto!important;
    cursor:pointer!important;
    user-select:none!important;
  }
  body.zmpb-open #zmpb-upload-trigger,
  body.zmpb-open #zmpb-upload-trigger *{
    cursor:pointer!important;
  }
}

/* v1.6.6.77 — Desktop text composer: large full-width field, add action directly below. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-text-add{
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    width:100%!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-text-add textarea#zmpb-text-input{
    display:block!important;
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
    height:128px!important;
    min-height:128px!important;
    max-height:190px!important;
    padding:11px 12px!important;
    font-size:16px!important;
    line-height:1.35!important;
    resize:vertical!important;
    box-sizing:border-box!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open #zmpb-add-text{
    display:flex!important;
    width:100%!important;
    min-width:100%!important;
    height:42px!important;
    min-height:42px!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:6px 10px!important;
    font-size:13px!important;
    cursor:pointer!important;
  }
}
/* v1.6.6.79 — contextual “+ Dodaj polje” in the largest free page area */
.zmpb-add-field-zone{
  position:absolute;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  box-sizing:border-box;
}
.zmpb-add-field-btn{
  pointer-events:auto;
  cursor:pointer;
  min-width:112px;
  max-width:88%;
  min-height:34px;
  padding:8px 14px;
  border:1px dashed rgba(17,17,17,.38);
  border-radius:8px;
  background:rgba(255,255,255,.88);
  color:#222;
  font-size:12px;
  font-weight:800;
  line-height:1.1;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  backdrop-filter:blur(2px);
}
.zmpb-add-field-btn:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}
@media (max-width:600px),(pointer:coarse){
  .zmpb-add-field-btn{min-width:104px;min-height:38px;font-size:12px;padding:8px 12px;}
}

/* v1.6.6.80 — sigurno brisanje posljednjeg dodanog lista */
.zmpb .spread-strip .delete-sheet-tab{font-weight:800!important;min-width:112px!important;border:1px dashed #b94a48!important;background:#fff6f6!important;color:#8e2523!important}.zmpb .spread-strip .delete-sheet-tab span{font-size:16px;font-weight:900;vertical-align:-1px}.zmpb .spread-strip .delete-sheet-tab:hover{background:#ffeaea!important;border-color:#9f2d2a!important}.zmpb .spread-strip .delete-sheet-tab:active{transform:scale(.98)}
@media (max-width:600px),(pointer:coarse){.zmpb .spread-strip .delete-sheet-tab{min-width:104px!important;padding:0 8px!important}}


/* v1.6.6.81 — make + Dodaj polje unmistakably visible/clickable in free areas */
.zmpb-add-field-zone{z-index:60!important;}
.zmpb-add-field-zone .zmpb-add-field-btn{position:relative!important;z-index:61!important;pointer-events:auto!important;}
.spread-wide-layer>.zmpb-add-field-zone{pointer-events:auto!important;}
.spread-wide-layer>.zmpb-add-field-zone .zmpb-add-field-btn{pointer-events:auto!important;}
.zmpb-add-field-btn{background:rgba(255,255,255,.96)!important;border:2px dashed #c99a51!important;color:#6f4b16!important;box-shadow:0 3px 14px rgba(0,0,0,.14)!important;}
.zmpb-add-field-btn:hover{background:#111!important;color:#fff!important;border-color:#111!important;}


/* v1.6.6.82 — preview size is forced from the real open-book dimensions in JS. */
.zmpb-book-preview-pages{box-sizing:border-box!important;}


/* v1.6.6.83 — keep + Dodaj polje centered inside the exact detected white/free area */
.zmpb-add-field-zone{
  display:block!important;
  border:1px dashed rgba(201,154,81,.32);
  background:rgba(255,255,255,.025);
}
.zmpb-add-field-zone>.zmpb-add-field-btn{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
}


/* v1.6.6.86 — dedicated visible cover workspace */
.zmpb-cover-workspace-guides{position:absolute;inset:0;z-index:70;pointer-events:none;overflow:hidden}
.zmpb-cover-safe{position:absolute;inset:4%;border:1px dashed rgba(180,120,35,.72);border-radius:2px}
.zmpb-cover-spine{position:absolute;left:49%;top:0;width:2%;height:100%;background:rgba(201,154,81,.10);border-left:1px dashed rgba(90,65,30,.65);border-right:1px dashed rgba(90,65,30,.65)}
.zmpb-cover-label{position:absolute;top:8px;padding:5px 9px;border-radius:999px;background:rgba(20,20,20,.76);color:#fff;font-size:10px;font-weight:900;letter-spacing:.05em;box-shadow:0 2px 8px #0002}
.zmpb-cover-label-back{left:24%;transform:translateX(-50%)}
.zmpb-cover-label-front{left:76%;transform:translateX(-50%)}
.zmpb-cover-label-spine{left:50%;top:42px;transform:translateX(-50%);writing-mode:vertical-rl;padding:7px 4px;font-size:8px}
.zmpb-cover-template-heading{display:grid;gap:2px;padding:4px 2px 8px}.zmpb-cover-template-heading b{font-size:11px}.zmpb-cover-template-heading small{font-size:8px;color:#777;line-height:1.25}
.zmpb-cover-page-active .zmpb-side-template-library:before{content:'NASLOVNA';display:block;font-size:9px;font-weight:900;letter-spacing:.08em;color:#9a6d2c;margin:0 0 5px}
@media(max-width:600px),(pointer:coarse){.zmpb-cover-label{font-size:7px;padding:3px 5px;top:5px}.zmpb-cover-label-spine{top:28px;font-size:6px}.zmpb-cover-safe{inset:3%}}


/* v1.6.6.87 — Premium-only dynamic spine */
.zmpb-cover-center-seam{position:absolute;top:0;height:100%;width:0;border-left:1px dashed rgba(90,65,30,.48)}
.zmpb-cover-spine{top:0!important;height:100%!important;background:rgba(201,154,81,.13)!important}
.zmpb-cover-label-spine{white-space:nowrap}


/* v1.6.6.88 — mobile/tablet must preserve the exact physical open-book ratio.
   Older coarse-pointer rules used a 2:1 height shortcut, which was wrong for A4
   and other non-2:1 formats. --sheet-ratio is calculated from the selected book. */
@media (max-width:600px),(pointer:coarse){
  body.zmpb-open .zmpb-canvas .spread{
    width:min(100%,calc(100vw - 28px))!important;
    max-width:calc(100vw - 28px)!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    flex:0 0 auto!important;
    aspect-ratio:var(--sheet-ratio,2)!important;
  }
}


/* v1.6.6.89 — premium thematic cover collection */
.zmpb-cover-theme-section{display:grid;gap:7px;margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid #ddd}
.zmpb-cover-theme-title{display:grid;gap:2px}.zmpb-cover-theme-title b{font-size:10px;letter-spacing:.08em;color:#9a6d2c}.zmpb-cover-theme-title small{font-size:8px;line-height:1.25;color:#777}
.zmpb-cover-theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.zmpb-cover-theme-card{appearance:none;border:1px solid #d8d1c6;background:#fff;border-radius:7px;padding:4px;display:grid;gap:4px;cursor:pointer;text-align:left;min-width:0}
.zmpb-cover-theme-card:hover{border-color:#b7863d;box-shadow:0 2px 10px #0001}.zmpb-cover-theme-card strong{font-size:7px;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zmpb-cover-theme-preview{position:relative;display:flex;aspect-ratio:1.45;align-items:center;justify-content:center;overflow:hidden;border-radius:4px;background:linear-gradient(135deg,#272522,#8c8175);color:#fff}
.zmpb-cover-theme-preview:after{content:'';position:absolute;inset:7%;border:1px solid #ffffff55}.zmpb-cover-theme-preview i{position:relative;z-index:1;font-family:Georgia,serif;font-style:normal;font-size:11px;letter-spacing:.06em}.zmpb-cover-theme-preview em{position:absolute;z-index:1;bottom:8px;font-size:5px;font-style:normal;text-transform:uppercase;letter-spacing:.18em}
.zmpb-cover-theme-card:nth-child(2) .zmpb-cover-theme-preview{background:linear-gradient(135deg,#5d4a43,#c5a995)}
.zmpb-cover-theme-card:nth-child(3) .zmpb-cover-theme-preview{background:linear-gradient(135deg,#151515,#6f6a65)}
.zmpb-cover-theme-card:nth-child(4) .zmpb-cover-theme-preview{background:#eee9df;color:#1b1b1b}
.zmpb-cover-theme-card:nth-child(5) .zmpb-cover-theme-preview{background:linear-gradient(135deg,#353a39,#9b8d7d)}
.zmpb-cover-theme-card:nth-child(6) .zmpb-cover-theme-preview{background:linear-gradient(135deg,#6b5c54,#d2c0ae)}
.zmpb-cover-basic-title{font-size:8px;font-weight:900;letter-spacing:.08em;color:#777;margin:3px 0 5px}
@media(max-width:600px),(pointer:coarse){.zmpb-cover-theme-grid{grid-template-columns:1fr}.zmpb-cover-theme-card{grid-template-columns:64px 1fr;align-items:center}.zmpb-cover-theme-preview{width:64px}.zmpb-cover-theme-card strong{font-size:8px}}


/* v1.6.6.90 — mobile geometry + cover-theme stability/polish */
@media (max-width:600px),(pointer:coarse){
  body.zmpb-open .zmpb-work>.zmpb-canvas{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-canvas .spread{
    margin-left:auto!important;
    margin-right:auto!important;
    min-width:0!important;
  }
  body.zmpb-open .zmpb-canvas>#spread-strip{
    width:100%!important;
    flex:0 0 30px!important;
    min-height:30px!important;
    max-height:30px!important;
    margin-top:3px!important;
    padding-top:2px!important;
    position:relative!important;
    z-index:120!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    background:#ece8e1!important;
  }
  body.zmpb-open .zmpb-canvas>#spread-strip button{
    min-height:25px!important;
    height:25px!important;
    flex:0 0 auto!important;
  }
}
.zmpb-cover-theme-card.active{border-color:#c79443!important;box-shadow:0 0 0 2px rgba(199,148,67,.22)!important;background:#fffaf2!important}
.zmpb-cover-theme-card.active strong{color:#7b531b!important}
.zmpb.zmpb-cover-page-active #spread-wide-layer .zmpb-page-text[data-cover-theme]{
  line-height:1.02!important;
  text-wrap:balance;
}
@media(max-width:600px),(pointer:coarse){
  .zmpb.zmpb-cover-page-active #spread-wide-layer .zmpb-page-text[data-cover-theme]{
    padding:1px 3px!important;
    line-height:1!important;
    text-shadow:0 1px 2px rgba(0,0,0,.20)!important;
  }
  .zmpb-cover-theme-section{gap:5px;margin-bottom:7px;padding-bottom:7px}
  .zmpb-cover-theme-grid{gap:5px}
  .zmpb-cover-theme-card{min-height:54px!important;padding:3px!important}
}

/* v1.6.6.91 — cover theme text safe zones */
.zmpb.zmpb-cover-page-active .zmpb-page-text{line-height:.94!important;text-wrap:balance;}
@media(max-width:600px),(pointer:coarse){.zmpb.zmpb-cover-page-active .zmpb-page-text{line-height:.92!important}.zmpb.zmpb-cover-page-active .zmpb-page-text-content{max-width:100%!important}}

/* v1.6.6.92 — MOBILE STAGE-FIRST.
   Mirror the accepted desktop philosophy: tiny chrome, maximum book workspace. */
@media (max-width:600px),(pointer:coarse){
  body.zmpb-open .zmpb-appbar{
    flex:0 0 30px!important;min-height:30px!important;height:30px!important;
    padding:0 7px!important;
  }
  body.zmpb-open .zmpb-appbar b{font-size:10px!important;letter-spacing:.06em!important}
  body.zmpb-open .zmpb-app-exit{font-size:9px!important;padding:4px 7px!important;border-radius:6px!important}

  /* One compact settings strip instead of a tall header block. */
  body.zmpb-open .zmpb>.zmpb-top{
    flex:0 0 45px!important;min-height:45px!important;height:45px!important;
    margin:2px 4px 0!important;padding:3px 5px!important;
    grid-template-columns:minmax(0,1.55fr) minmax(0,.72fr) minmax(112px,.62fr)!important;
    grid-template-rows:1fr!important;gap:4px!important;align-items:center!important;
    border-radius:7px!important;
  }
  body.zmpb-open .zmpb-top label{gap:0!important;align-self:center!important}
  body.zmpb-open .zmpb-top label>b{display:none!important}
  body.zmpb-open .zmpb-top select{
    height:34px!important;min-height:34px!important;padding:3px 6px!important;
    font-size:10px!important;border-radius:6px!important;
  }
  body.zmpb-open .zmpb-price{
    grid-column:3!important;display:grid!important;grid-template-columns:1fr!important;
    align-items:center!important;justify-items:stretch!important;gap:1px!important;
    border:0!important;padding:0!important;min-width:0!important;
  }
  body.zmpb-open .zmpb-price small{display:none!important}
  body.zmpb-open .zmpb-price strong{display:none!important}
  body.zmpb-open .zmpb-price .zmpb-mobile-finish{
    width:100%!important;height:34px!important;min-height:34px!important;padding:4px 6px!important;
    font-size:8px!important;border-radius:6px!important;line-height:1.05!important;white-space:normal!important;
  }

  /* Keep only useful project actions; remove the onboarding step circles while editing. */
  body.zmpb-open .zmpb-simple-flow{
    flex:0 0 36px!important;min-height:36px!important;height:36px!important;
    margin:2px 4px 0!important;padding:2px 4px!important;gap:3px!important;border-radius:7px!important;
  }
  body.zmpb-open .zmpb-simple-flow .zmpb-flow-steps{display:none!important}
  body.zmpb-open .zmpb-simple-flow .zmpb-flow-quick{margin-left:0!important;gap:2px!important}
  body.zmpb-open .zmpb-flow-quick button{
    width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;border-radius:6px!important;
  }
  body.zmpb-open .zmpb-flow-quick button b{font-size:13px!important}
  body.zmpb-open #zmpb-flow-action{
    margin-left:auto!important;height:30px!important;min-height:30px!important;max-width:none!important;
    padding:4px 8px!important;font-size:8px!important;border-radius:6px!important;white-space:nowrap!important;
  }

  /* The work area receives every pixel saved above. */
  body.zmpb-open .zmpb>.zmpb-work{
    flex:1 1 0!important;min-height:0!important;height:0!important;
    margin:2px 3px 0!important;gap:2px!important;overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-canvas{
    height:100%!important;min-height:0!important;padding:2px!important;border-radius:5px!important;
    display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  }
  body.zmpb-open .zmpb-canvas .zmpb-toolbar{
    flex:0 0 30px!important;min-height:30px!important;height:30px!important;margin:0 0 2px!important;
  }
  body.zmpb-open .zmpb-canvas .zmpb-toolbar button{
    width:30px!important;height:30px!important;min-height:30px!important;flex:0 0 30px!important;
  }
  body.zmpb-open .zmpb-canvas .zmpb-toolbar b{font-size:11px!important}
  body.zmpb-open .zmpb-canvas .zmpb-toolbar small{font-size:8px!important}
  body.zmpb-open .zmpb-canvas>.spread{
    flex:0 0 auto!important;
  }
  body.zmpb-open .zmpb-canvas>#spread-strip{
    flex:0 0 31px!important;min-height:31px!important;height:31px!important;max-height:31px!important;
    margin:2px 0 0!important;padding:1px 0!important;gap:4px!important;
  }
  body.zmpb-open .zmpb-canvas>#spread-strip button{
    height:28px!important;min-height:28px!important;min-width:48px!important;padding:2px 6px!important;font-size:9px!important;
  }
  body.zmpb-open .zmpb-canvas>.safe{display:none!important}

  /* Slightly slimmer side rails: still familiar, but the book wins the width. */
  body.zmpb-open .zmpb-work.templates-open{
    grid-template-columns:50px minmax(0,1fr) 82px!important;gap:2px!important;
  }
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
    width:50px!important;min-width:50px!important;max-width:50px!important;padding:3px!important;border-radius:6px!important;
  }
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
    width:82px!important;min-width:82px!important;max-width:82px!important;padding:4px!important;border-radius:6px!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add{min-height:38px!important;font-size:0!important}
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add:before{content:'＋';font-size:25px!important;line-height:1!important}
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-all{font-size:8px!important;min-height:34px!important;padding:3px!important}
  body.zmpb-open .zmpb-side-photo-scroll{gap:3px!important}
  body.zmpb-open .zmpb-side-photo-scroll .photo-thumb{margin:0!important;border-radius:4px!important}
  body.zmpb-open .zmpb-side-photo-scroll .photo-thumb img{height:58px!important}
  body.zmpb-open .zmpb-template-variants .zmpb-side-template-btn{height:46px!important;min-height:46px!important;padding:3px!important}

  /* Bottom toolbar stays compact and fixed, similar to desktop's thin command bar. */
  body.zmpb-open .zmpb>.zmpb-mobilebar{
    flex:0 0 56px!important;min-height:56px!important;height:56px!important;padding:2px 4px calc(2px + env(safe-area-inset-bottom))!important;
  }
  body.zmpb-open .zmpb>.zmpb-mobilebar button{min-height:50px!important;font-size:8px!important;gap:1px!important}
  body.zmpb-open .zmpb>.zmpb-mobilebar button span{font-size:18px!important}
}

/* Extra-tight phones: preserve the working canvas before anything else. */
@media (max-width:560px) and (pointer:coarse){
  body.zmpb-open .zmpb>.zmpb-top{grid-template-columns:minmax(0,1.45fr) minmax(0,.72fr) 96px!important}
  body.zmpb-open .zmpb-top select{font-size:9px!important;padding-left:4px!important;padding-right:3px!important}
  body.zmpb-open .zmpb-price .zmpb-mobile-finish{font-size:7px!important;padding:3px!important}
  body.zmpb-open .zmpb-work.templates-open{grid-template-columns:46px minmax(0,1fr) 76px!important}
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{width:46px!important;min-width:46px!important;max-width:46px!important}
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{width:76px!important;min-width:76px!important;max-width:76px!important}
}


/* v1.6.6.93 — Book Preview uses the exact editor text geometry.
   One state model now drives editor + preview: same x/y, width, font, color, rotation and cqh size. */
.zmpb .zmpb-preview-sheet{container-type:size!important;contain:layout style!important}
.zmpb .zmpb-preview-text{
  width:var(--zmpb-preview-width,70%)!important;
  max-width:var(--zmpb-preview-width,70%)!important;
  font-size:calc(var(--zmpb-preview-size,2.6) * 1cqh)!important;
  font-family:var(--zmpb-preview-font,Arial),Arial,Helvetica,sans-serif!important;
  color:var(--zmpb-preview-color,#111111)!important;
  font-weight:600!important;line-height:1.12!important;
  box-sizing:border-box!important;white-space:pre-wrap!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
  background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;
  transform-origin:center center!important;
}
@media(max-width:600px),(pointer:coarse){.zmpb .zmpb-preview-text{font-weight:650!important}}


/* v1.6.6.94 — restore Smart Design as a permanent mobile side-rail action. */
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-smart{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:32px!important;height:32px!important;margin:3px 0!important;padding:0!important;
  border:1px solid #c79443!important;border-radius:5px!important;background:#2a2a2a!important;color:#fff!important;
  font-size:16px!important;line-height:1!important;cursor:pointer!important;flex:0 0 32px!important;
 }
}


/* v1.6.6.95 — make Smart Design self-explanatory on mobile. */
@media (max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-smart{
  min-height:48px!important;height:48px!important;flex:0 0 48px!important;
  flex-direction:column!important;gap:1px!important;padding:3px 2px!important;
  font-size:9px!important;font-weight:800!important;line-height:1.05!important;text-align:center!important;
  letter-spacing:-.15px!important;white-space:normal!important;
 }
 body.zmpb-open .zmpb-side-smart-icon{font-size:15px!important;line-height:15px!important;display:block!important}
 body.zmpb-open .zmpb-side-smart-label{display:block!important;font-size:8.5px!important;line-height:1.05!important}
}


/* v1.6.6.97 — desktop parity for the cover workspace.
   The desktop template rail is permanently visible, so it must be refreshed on
   every spread/cover switch just like the automatically-open mobile rail. */
@media (min-width:601px) and (pointer:fine){
  body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work{
    grid-template-columns:minmax(0,1fr) 220px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library{
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
    padding:8px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading{
    padding:2px 2px 7px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading b{
    font-size:12px!important;
    letter-spacing:.04em;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading small{
    font-size:9px!important;
    line-height:1.3!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-section{
    gap:8px!important;
    margin-bottom:9px!important;
    padding-bottom:9px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title b{
    font-size:10px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title small{
    font-size:8px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-card{
    grid-template-columns:82px minmax(0,1fr)!important;
    align-items:center!important;
    gap:7px!important;
    padding:5px!important;
    min-height:58px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-preview{
    width:82px!important;
    min-width:82px!important;
    aspect-ratio:1.5!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-card strong{
    font-size:9px!important;
    white-space:normal!important;
    line-height:1.15!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-basic-title{
    margin-top:2px!important;
    font-size:8px!important;
  }
}


/* v1.6.6.98 — desktop usability polish: compact favorite hearts + text panel always inside viewport. */
@media (min-width:601px) and (pointer:fine){
  /* The horizontal desktop photo pool is only ~76px tall. Keep favorite controls small
     enough that they mark the photo without covering faces/content. */
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb>.fav-toggle{
    width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
    right:3px!important;top:3px!important;padding:0!important;
    border-width:1px!important;font-size:12px!important;line-height:18px!important;
    box-shadow:0 1px 4px rgba(0,0,0,.22)!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb>.fav-toggle:hover{
    transform:scale(1.08)!important;
  }

  /* v97 widened the cover template rail. When Text is opened on a cover, that late
     two-column cover rule must yield to the dedicated text-workspace grid. */
  body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.desktop-text-open{
    grid-template-columns:minmax(0,1fr) minmax(260px,300px)!important;
    grid-template-rows:minmax(0,1fr) 92px!important;
    gap:4px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.desktop-text-open>.zmpb-side-template-library{
    display:none!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-drawer.zmpb-text-focus.is-open{
    display:block!important;
    grid-column:2!important;grid-row:1!important;
    width:300px!important;min-width:260px!important;max-width:300px!important;
    height:100%!important;max-height:100%!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    position:relative!important;left:auto!important;right:auto!important;transform:none!important;
    box-sizing:border-box!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-text-focus .zmpb-text-tools,
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-text-focus .zmpb-text-tools *{
    max-width:100%!important;box-sizing:border-box!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-text-focus input,
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-text-focus textarea,
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-text-focus select{
    min-width:0!important;max-width:100%!important;
  }
}
@media (min-width:601px) and (max-width:1280px) and (pointer:fine){
  body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.desktop-text-open{
    grid-template-columns:minmax(0,1fr) 270px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-drawer.zmpb-text-focus.is-open{
    width:270px!important;min-width:270px!important;max-width:270px!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open .zmpb-live-font-picker button{
    font-size:14px!important;
  }
}

/* v1.6.6.103 — exact approved premium start */
#zmpb-guided{background:#f7f4ee!important;padding:0!important;place-items:start center!important}
#zmpb-guided .zmpb-guided-card{width:min(1440px,100vw)!important;max-height:none!important;min-height:100dvh!important;border-radius:0!important;padding:0!important;overflow:visible!important;background:#f8f5ef!important;box-shadow:none!important}
#zmpb-guided .zmp-guided-skip,#zmpb-guided .zmpb-guided-skip{top:27px!important;right:40px!important;z-index:8;font-size:14px;color:#171717!important;text-decoration:none!important}
#zmpb-guided .zmpb-premium-top{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:#fff;box-sizing:border-box}
#zmpb-guided .zmpb-guided-brand{display:flex;align-items:center;gap:12px;font-size:16px!important;letter-spacing:.03em!important;opacity:1!important;color:#171717}
#zmpb-guided .zmpb-guided-brand strong{font-size:22px}.zmpb-guided-brand span{padding-left:12px;border-left:1px solid #aaa;color:#555}
#zmpb-guided .zmpb-premium-progress{position:absolute;left:50%;top:18px;transform:translateX(-50%);width:185px;text-align:center;color:#222}.zmpb-premium-progress small{font-size:13px}
#zmpb-guided .zmp-guided-progress,#zmpb-guided .zmpb-guided-progress{gap:12px;margin:8px 0 0!important}.zmpb-guided-progress i{height:4px!important;background:#ddd!important}.zmpb-guided-progress i.active{background:#111!important}
#zmpb-guided .zmp-premium-hero,#zmpb-guided .zmpb-premium-hero{height:540px;display:grid;grid-template-columns:41% 59%;background:#eee6d9;overflow:hidden}
#zmpb-guided .zmpb-premium-hero-copy{padding:86px 32px 38px 60px;box-sizing:border-box;background:linear-gradient(90deg,#f5eee4 0%,#f2eadf 84%,rgba(242,234,223,.72) 100%);z-index:2}
#zmpb-guided .zmpb-premium-hero-copy h2{font-family:Georgia,'Times New Roman',serif!important;font-weight:400!important;font-size:64px!important;line-height:.96!important;letter-spacing:-.045em;margin:0 0 20px!important;color:#090909}
#zmpb-guided .zmpb-premium-hero-copy h4{font-family:Georgia,'Times New Roman',serif;font-size:31px;font-weight:400;margin:0 0 22px}.zmpb-premium-hero-copy>p{font-size:18px!important;line-height:1.5!important;color:#252525!important;max-width:390px;margin:0!important}
#zmpb-guided .zmpb-premium-hero-image{background-image:url('premium-start-v103/hero-photobook.png');background-size:cover;background-position:center;height:100%}
#zmpb-guided .zmpb-premium-benefits{display:flex;gap:34px;margin-top:58px}.zmpb-premium-benefits span{display:flex;align-items:center;gap:10px;font-size:31px}.zmpb-premium-benefits b{font:500 13px/1.3 Arial,sans-serif}
#zmpb-guided .zmpb-premium-format{padding:32px 42px 34px;background:#faf8f4}.zmpb-premium-format>.zmpb-guide-kicker{font-size:14px!important;color:#666!important}.zmpb-premium-format>h3{font-family:Georgia,'Times New Roman',serif!important;font-weight:400!important;font-size:45px!important;line-height:1.05!important;margin:14px 0 12px!important}.zmpb-premium-format>p{font-family:Georgia,'Times New Roman',serif;font-size:18px!important;color:#555!important;margin:0 0 24px!important}
#zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0!important}
#zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;padding:0!important;min-height:435px!important;border:1px solid #dedbd5!important;border-radius:13px!important;background:#fff!important;overflow:hidden!important;position:relative!important}
#zmpb-guided .zmpb-guide-books button.active{border:2px solid #95651d!important;box-shadow:none!important}.zmpb-guide-books button.active::after{display:none!important}
#zmpb-guided .zmpb-format-badge{position:absolute!important;z-index:4!important;top:10px!important;left:10px!important;width:auto!important;margin:0!important;padding:6px 10px!important;border-radius:999px!important;background:rgba(246,238,228,.94)!important;color:#675a4a!important;font-size:10px!important;line-height:1!important;letter-spacing:.03em!important;opacity:1!important}.zmpb-guide-books button:first-child .zmpb-format-badge{background:#8b6225!important;color:#fff!important}
#zmpb-guided .zmpb-premium-product-image{display:block!important;height:285px!important;width:100%!important;margin:0!important;overflow:hidden!important;background:#eee8df!important;opacity:1!important}.zmpb-premium-product-image img{width:100%;height:100%;object-fit:cover;display:block}
#zmpb-guided .zmpb-guide-books button:nth-child(n+5) .zmpb-book-visual{height:285px!important;margin:0!important;padding:30px!important;background:#eee8df!important;box-sizing:border-box}
#zmpb-guided .zmpb-format-card-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;padding:16px 17px 18px!important;width:100%!important;box-sizing:border-box!important;opacity:1!important;text-align:left!important}.zmpb-format-card-copy b{font:700 17px/1.2 Arial,sans-serif!important;color:#111!important}.zmpb-format-card-copy small{font:400 14px/1.3 Arial,sans-serif!important;color:#666!important;margin-top:7px!important}.zmpb-format-card-copy strong{font:700 17px/1.2 Arial,sans-serif!important;color:#111!important;margin-top:20px!important}
#zmpb-guided .zmpb-guide-book-detail{display:none!important}
#zmpb-guided .zmpb-premium-features{display:grid;grid-template-columns:repeat(4,1fr);margin:40px 0 20px;padding:28px 20px;background:#f5f1ea;border-radius:14px}.zmpb-premium-features span{display:grid;grid-template-columns:50px 1fr;padding:0 20px;border-right:1px solid #ded9d0;font-size:34px}.zmpb-premium-features span:last-child{border-right:0}.zmpb-premium-features b{font:600 14px/1.3 Arial,sans-serif}.zmpb-premium-features small{grid-column:1/-1;font:400 13px/1.5 Arial,sans-serif;color:#666;margin-top:15px}
#zmpb-guided .zmpb-guide-pages{font-size:14px;margin:20px 0!important}.zmpb-guide-pages select{border:1px solid #aaa;background:#fff;border-radius:4px}
#zmpb-guided .zmpb-guided-actions{padding:18px 42px 26px!important;margin:0!important;background:#faf8f4!important}.zmpb-guided-actions #zmpb-guide-next{background:#1b2834!important;border-radius:8px!important}
@media(max-width:600px){#zmpb-guided .zmpb-premium-top{height:58px;padding:0 18px}.zmpb-guided-brand strong{font-size:17px!important}.zmpb-guided-brand span{font-size:11px}.zmpb-premium-progress{display:none}.zmpb-guided-skip{top:20px!important;right:16px!important;font-size:12px!important}.zmpb-premium-hero{height:auto!important;grid-template-columns:42% 58%!important}.zmpb-premium-hero-copy{padding:50px 18px 26px!important}.zmpb-premium-hero-copy h2{font-size:43px!important}.zmpb-premium-hero-copy h4{font-size:23px!important}.zmpb-premium-hero-copy>p{font-size:14px!important}.zmpb-premium-benefits{margin-top:30px!important;gap:12px!important;flex-direction:column}.zmpb-premium-benefits span{font-size:20px!important}.zmpb-premium-format{padding:25px 22px!important}.zmpb-premium-format>h3{font-size:36px!important}.zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important}.zmpb-guide-books button.zmpb-format-card-v136{min-height:380px!important}.zmpb-premium-product-image{height:245px!important}.zmpb-premium-features{grid-template-columns:1fr 1fr!important;gap:24px}.zmpb-premium-features span{border:0!important}.zmpb-guided-actions{padding-left:22px!important;padding-right:22px!important}}
@media(max-width:560px){#zmpb-guided .zmpb-premium-hero{grid-template-columns:1fr!important}.zmpb-premium-hero-copy{padding:36px 24px!important}.zmpb-premium-hero-image{height:300px!important}.zmpb-premium-benefits{flex-direction:row!important;flex-wrap:wrap!important}.zmpb-premium-format{padding:24px 14px!important}.zmpb-premium-format>h3{font-size:32px!important}.zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.zmpb-guide-books button.zmpb-format-card-v136{min-height:300px!important}.zmpb-premium-product-image{height:180px!important}.zmpb-format-card-copy{padding:11px!important}.zmpb-format-card-copy b{font-size:13px!important}.zmpb-format-card-copy small{font-size:11px!important}.zmpb-format-card-copy strong{font-size:13px!important;margin-top:10px!important}.zmpb-premium-features{grid-template-columns:1fr!important}.zmpb-premium-features span{padding:0!important}}

/* v1.6.6.104 — premium start responsive parity */
@media (min-width:561px) and (max-width:1100px){
  #zmpb-guided .zmpb-premium-top{height:64px!important;padding:0 28px!important}
  #zmpb-guided .zmpb-premium-progress{display:block!important;top:13px!important;width:175px!important}
  #zmpb-guided .zmpb-guided-skip{top:22px!important;right:26px!important;font-size:13px!important}
  #zmpb-guided .zmpb-premium-hero{height:515px!important;grid-template-columns:34% 66%!important}
  #zmpb-guided .zmpb-premium-hero-copy{padding:64px 24px 30px 40px!important}
  #zmpb-guided .zmpb-premium-hero-copy h2{font-size:50px!important;line-height:.96!important;margin-bottom:18px!important}
  #zmpb-guided .zmpb-premium-hero-copy h4{font-size:27px!important;margin-bottom:20px!important}
  #zmpb-guided .zmpb-premium-hero-copy>p{font-size:15px!important;line-height:1.48!important;max-width:290px!important}
  #zmpb-guided .zmpb-premium-benefits{margin-top:48px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:start!important}
  #zmpb-guided .zmpb-premium-benefits span{font-size:25px!important;gap:6px!important;min-width:0!important}
  #zmpb-guided .zmpb-premium-benefits b{font-size:10px!important;line-height:1.2!important}
  #zmpb-guided .zmpb-premium-hero-image{background-position:center center!important}
  #zmpb-guided .zmpb-premium-format{padding:31px 30px 34px!important}
  #zmpb-guided .zmpb-premium-format>h3{font-size:43px!important;margin:12px 0 10px!important}
  #zmpb-guided .zmpb-premium-format>p{font-size:17px!important;margin-bottom:22px!important}
  #zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
  #zmpb-guided .zmpb-guide-books button.zmpb-format-card-v136{min-height:0!important;height:auto!important;border-radius:12px!important}
  #zmpb-guided .zmpb-premium-product-image,
  #zmpb-guided .zmpb-guide-books button:nth-child(n+5) .zmpb-book-visual{height:230px!important}
  #zmpb-guided .zmpb-guide-books button:nth-child(n+5) .zmpb-book-visual{padding:18px!important}
  #zmpb-guided .zmpb-format-card-copy{padding:13px 13px 15px!important;min-height:116px!important}
  #zmpb-guided .zmpb-format-card-copy b{font-size:14px!important;line-height:1.16!important}
  #zmpb-guided .zmpb-format-card-copy small{font-size:11px!important;margin-top:6px!important}
  #zmpb-guided .zmpb-format-card-copy strong{font-size:14px!important;margin-top:14px!important}
  #zmpb-guided .zmpb-format-badge{top:8px!important;left:8px!important;font-size:9px!important;padding:5px 8px!important}
  #zmpb-guided .zmpb-premium-features{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin-top:34px!important;padding:25px 12px!important}
  #zmpb-guided .zmpb-premium-features span{display:grid!important;grid-template-columns:40px 1fr!important;gap:0!important;padding:0 13px!important;border-right:1px solid #ded9d0!important;font-size:29px!important}
  #zmpb-guided .zmpb-premium-features span:last-child{border-right:0!important}
  #zmpb-guided .zmpb-premium-features b{font-size:12px!important}
  #zmpb-guided .zmpb-premium-features small{font-size:11px!important;margin-top:12px!important}
}
@media (min-width:700px) and (max-width:1100px){
  #zmpb-guided .zmpb-guide-books button:nth-child(n+5) .zmpb-book-visual{background:#eee8df!important}
}


/* v1.6.6.117 — cover typography parity.
   Cover theme typography uses the same regular weight as the production renderer.
   Geometry (x/y/size/width/rotation) is intentionally untouched. */
.zmpb .zmpb-page-text[data-cover-theme],
.zmpb .zmpb-preview-text[data-cover-theme]{
  font-weight:400!important;
  font-style:normal!important;
  text-shadow:none!important;
}
@media(max-width:600px),(pointer:coarse){
  .zmpb .zmpb-page-text[data-cover-theme],
  .zmpb .zmpb-preview-text[data-cover-theme]{font-weight:400!important}
}

/* v1.6.6.122 — simple editorial storefront. Visual-only start screen; book click opens editor. */
#zmpb-guided .zmpb-premium-top{height:74px!important;padding:0 54px!important;border-bottom:1px solid #eee9e1!important}
#zmpb-guided .zmpb-premium-progress{display:none!important}
#zmpb-guided .zmpb-guided-skip{top:27px!important;right:54px!important;font:500 13px/1 Arial,sans-serif!important}
#zmpb-guided .zmpb-premium-hero{height:500px!important;grid-template-columns:42% 58%!important}
#zmpb-guided .zmpb-premium-hero-copy{padding:68px 42px 36px 62px!important}
#zmpb-guided .zmpb-premium-hero-copy h2{font-size:62px!important;line-height:.94!important}
#zmpb-guided .zmpb-premium-hero-copy h4{font-size:30px!important;margin-top:22px!important}
#zmpb-guided .zmpb-premium-benefits{margin-top:45px!important;gap:28px!important}
#zmpb-guided .zmpb-premium-format{padding:42px 52px 0!important;background:#fbfaf7!important}
#zmpb-guided .zmpb-premium-format>.zmpb-guide-kicker{font:600 11px/1.2 Arial,sans-serif!important;letter-spacing:.18em!important;color:#8a7967!important}
#zmpb-guided .zmpb-premium-format>h3{font-size:48px!important;margin:10px 0 7px!important}
#zmpb-guided .zmpb-premium-format>p{font-family:Arial,sans-serif!important;font-size:16px!important;color:#62605d!important;margin-bottom:28px!important}
#zmpb-guided .zmpb-guide-books{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:22px!important;margin:0!important}
#zmpb-guided .zmpb-guide-books button.zmpb-direct-book{min-height:0!important;height:auto!important;border:1px solid #e5e0d9!important;border-radius:13px!important;background:#fff!important;box-shadow:0 8px 24px rgba(54,43,30,.07)!important;overflow:hidden!important;padding:0!important;transition:transform .18s ease,box-shadow .18s ease!important}
#zmpb-guided .zmpb-guide-books button.zmpb-direct-book:hover{transform:translateY(-3px)!important;box-shadow:0 13px 32px rgba(54,43,30,.12)!important}
#zmpb-guided .zmpb-direct-book .zmpb-premium-product-image{height:235px!important;background:#eee7dd!important}
#zmpb-guided .zmpb-direct-book .zmpb-premium-product-image img{width:100%!important;height:100%!important;object-fit:cover!important}
#zmpb-guided .zmpb-direct-book .zmpb-format-card-copy{padding:15px 15px 17px!important;min-height:132px!important}
#zmpb-guided .zmpb-direct-book .zmpb-format-card-copy em{font:600 9px/1.2 Arial,sans-serif!important;letter-spacing:.15em!important;color:#9b8267!important;font-style:normal!important;margin-bottom:5px!important}
#zmpb-guided .zmpb-direct-book .zmpb-format-card-copy b{font:700 15px/1.2 Arial,sans-serif!important;color:#171717!important}
#zmpb-guided .zmpb-direct-book .zmpb-format-card-copy small{font:400 12px/1.3 Arial,sans-serif!important;color:#777!important;margin-top:6px!important}
#zmpb-guided .zmpb-direct-book .zmp-card-price{display:flex!important;width:100%!important;justify-content:space-between!important;align-items:center!important;margin-top:auto!important;padding-top:17px!important;font:700 14px/1 Arial,sans-serif!important;color:#1c1b19!important;opacity:1!important}
#zmpb-guided .zmpb-direct-book .zmp-card-price i{font:400 18px/1 Arial,sans-serif!important;font-style:normal!important}
#zmpb-guided .zmpb-editorial-quote{grid-column:3/5;min-height:220px;margin:22px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#f5efe7,#fbfaf7);border-radius:14px}
#zmpb-guided .zmpb-editorial-quote blockquote{margin:0;text-align:center;font:italic 31px/1.2 Georgia,serif;color:#28231e}
#zmpb-guided .zmpb-editorial-quote span{margin-top:20px;font:500 10px/1 Arial,sans-serif;letter-spacing:.24em;color:#999}
#zmpb-guided .zmpb-premium-features{margin:34px -52px 0!important;border-radius:0!important;padding:28px 52px!important;background:#f6f2ec!important}
#zmpb-guided .zmpb-guide-pages,#zmpb-guided .zmpb-guided-actions{display:none!important}
#zmpb-guided [data-guide-step="2"],#zmpb-guided [data-guide-step="3"]{display:none!important}
@media(max-width:700px){
 #zmpb-guided .zmpb-premium-top{height:58px!important;padding:0 18px!important}
 #zmpb-guided .zmpb-guided-brand strong{font-size:16px!important}.zmpb-guided-brand span{font-size:9px!important}
 #zmpb-guided .zmpb-guided-skip{top:22px!important;right:16px!important;font-size:10px!important}
 #zmpb-guided .zmpb-premium-hero{height:auto!important;grid-template-columns:1fr!important}
 #zmpb-guided .zmpb-premium-hero-copy{padding:34px 24px 28px!important}
 #zmpb-guided .zmpb-premium-hero-copy h2{font-size:43px!important;line-height:.96!important}
 #zmpb-guided .zmpb-premium-hero-copy h4{font-size:23px!important;margin:15px 0!important}
 #zmpb-guided .zmpb-premium-hero-copy>p{font-size:14px!important;max-width:310px!important}
 #zmpb-guided .zmpb-premium-benefits{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:9px!important;margin-top:25px!important}
 #zmpb-guided .zmpb-premium-benefits span{display:block!important;font-size:18px!important}.zmpb-premium-benefits b{font-size:9px!important;margin-top:4px!important}
 #zmpb-guided .zmpb-premium-hero-image{height:270px!important}
 #zmpb-guided .zmpb-premium-format{padding:30px 16px 0!important}
 #zmpb-guided .zmpb-premium-format>h3{font-size:34px!important;line-height:1!important;margin:9px 0 8px!important}
 #zmpb-guided .zmpb-premium-format>p{font-size:13px!important;margin-bottom:20px!important}
 #zmpb-guided .zmpb-guide-books{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}
 #zmpb-guided .zmpb-guide-books button.zmpb-direct-book{min-height:0!important}
 #zmpb-guided .zmpb-direct-book .zmpb-premium-product-image{height:175px!important}
 #zmpb-guided .zmpb-direct-book .zmpb-format-card-copy{padding:11px 10px 12px!important;min-height:120px!important}
 #zmpb-guided .zmpb-direct-book .zmpb-format-card-copy b{font-size:12px!important;line-height:1.15!important}
 #zmpb-guided .zmpb-direct-book .zmpb-format-card-copy small{font-size:10px!important}
 #zmpb-guided .zmpb-direct-book .zmp-card-price{font-size:11px!important;padding-top:12px!important}
 #zmpb-guided .zmpb-format-badge{font-size:8px!important;top:7px!important;left:7px!important;padding:5px 7px!important}
 #zmpb-guided .zmpb-editorial-quote{display:none!important}
 #zmpb-guided .zmpb-premium-features{grid-template-columns:1fr 1fr!important;gap:0!important;margin:26px -16px 0!important;padding:22px 16px!important}
 #zmpb-guided .zmpb-premium-features span{padding:12px!important;font-size:24px!important}.zmpb-premium-features b{font-size:10px!important}.zmpb-premium-features small{font-size:9px!important;margin-top:8px!important}
}


/* v1.6.6.127 — Fold/Duo explicit toolbar drawers.
   IMPORTANT: real CSS newlines; v126 accidentally stored escaped \n text. */
@media (pointer:coarse){
  body.zmpb-open:not(.zmpb-user-drawer-open) .zmpb-drawer,
  body.zmpb-open:not(.zmpb-user-drawer-open) .zmpb-drawer.is-open{
    transform:translateY(calc(100% + 140px))!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  body.zmpb-open.zmpb-user-drawer-open .zmpb-drawer.is-open{
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}

/* v1.6.6.128 — Fold/Duo landscape: keep the command bar visible even when
   the CSS viewport is wider than 900px. No editor/drawer behavior changes. */
@media (pointer:coarse){
  body.zmpb-open .zmpb>.zmpb-mobilebar{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    background:#111!important;
    color:#fff!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}

/* v1.6.6.129 — 4K/5K desktop workspace scaling.
   Visual geometry only. Fine-pointer desktop screens get more usable vertical
   workspace; touch/Fold/mobile rules remain untouched. */
@media (min-width:1800px) and (min-height:950px) and (pointer:fine){
  body.zmpb-open .zmpb{
    width:calc(100vw - 28px)!important;
    margin:6px 0 8px!important;
  }
  body.zmpb-open .zmpb-work{
    height:calc(100dvh - 205px)!important;
    min-height:720px!important;
    max-height:none!important;
    grid-template-columns:clamp(250px,14vw,330px) minmax(0,1fr) clamp(300px,17vw,390px)!important;
    gap:12px!important;
  }
  body.zmpb-open .zmpb-canvas{
    height:100%!important;
    padding:8px 12px 6px!important;
  }
  body.zmpb-open .zmpb-canvas .spread{
    max-width:100%!important;
    max-height:calc(100% - 78px)!important;
  }
  body.zmpb-open .zmpb-photos,
  body.zmpb-open .zmpb-layouts{
    height:100%!important;
    max-height:100%!important;
  }
  body.zmpb-open .zmpb-bottom{
    margin-top:6px!important;
  }
}

@media (min-width:2400px) and (min-height:1250px) and (pointer:fine){
  body.zmpb-open .zmpb-work{
    height:calc(100dvh - 195px)!important;
    min-height:900px!important;
    grid-template-columns:320px minmax(0,1fr) 400px!important;
    gap:14px!important;
  }
  body.zmpb-open .zmpb-canvas .spread{
    max-height:calc(100% - 82px)!important;
  }
}

/* v1.6.6.130 — 4K/5K desktop side panels refinement.
   Desktop/fine-pointer only: use the extra screen width for a larger photo library
   on the left and a clean template panel on the right. Fold/mobile unchanged. */
@media (min-width:1800px) and (min-height:950px) and (pointer:fine){
  body.zmpb-open .zmpb-work{
    grid-template-columns:clamp(300px,16vw,390px) minmax(0,1fr) clamp(360px,19vw,460px)!important;
    gap:14px!important;
  }
  body.zmpb-open .zmpb-photos,
  body.zmpb-open .zmpb-layouts{
    padding:14px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  body.zmpb-open .zmpb-photos #zmpb-library{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:9px!important;
  }
  body.zmpb-open .zmpb-photos #zmpb-library>.photo-thumb{
    height:92px!important;
    min-height:92px!important;
    max-height:92px!important;
    padding:3px!important;
  }
  body.zmpb-open .zmpb-layouts .count-tabs{
    grid-template-columns:repeat(5,minmax(48px,1fr))!important;
    gap:7px!important;
  }
  body.zmpb-open .zmpb-layouts .count-tabs button{
    min-width:48px!important;
    height:42px!important;
    font-size:14px!important;
  }
  body.zmpb-open .zmpb-layouts .layout-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body.zmpb-open .zmpb-layouts .layout-btn.variant{
    width:100%!important;
    min-width:0!important;
    min-height:76px!important;
    height:auto!important;
    grid-template-columns:72px minmax(0,1fr)!important;
    gap:9px!important;
    padding:8px!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-layouts .layout-mini{
    width:68px!important;
    height:48px!important;
    max-width:100%!important;
  }
  body.zmpb-open .zmpb-layouts .layout-btn.variant b,
  body.zmpb-open .zmpb-layouts .layout-btn.variant span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.zmpb-open .zmpb-bottom{
    min-height:72px!important;
    padding:10px 18px!important;
  }
}
@media (min-width:2400px) and (min-height:1250px) and (pointer:fine){
  body.zmpb-open .zmpb-work{
    grid-template-columns:390px minmax(0,1fr) 480px!important;
    gap:16px!important;
  }
  body.zmpb-open .zmpb-photos #zmpb-library{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.zmpb-open .zmpb-photos #zmpb-library>.photo-thumb{
    height:112px!important;
    min-height:112px!important;
    max-height:112px!important;
  }
  body.zmpb-open .zmpb-layouts .layout-btn.variant{
    min-height:86px!important;
    grid-template-columns:82px minmax(0,1fr)!important;
  }
  body.zmpb-open .zmpb-layouts .layout-mini{
    width:78px!important;
    height:54px!important;
  }
  body.zmpb-open .zmpb-bottom{min-height:78px!important;}
}


/* v1.6.6.131 — REAL 4K/5K three-column workspace.
   Fine-pointer large desktops only. Existing photo drawer becomes a permanent
   left library; canvas stays centered; template rail gets a true right column. */
/* v3.0.7 — keep the permanent three-column desktop workspace under Chrome zoom.
   Browser zoom reduces CSS viewport dimensions (e.g. 2000px -> ~1337px at 150%),
   so the old 1800x950 gate incorrectly fell back to the two-column/bottom-photo layout. */
@media (min-width:1200px) and (min-height:760px) and (pointer:fine){
  body.zmpb-open .zmpb>.zmpb-work{
    display:grid!important;
    grid-template-columns:clamp(250px,14vw,340px) minmax(0,1fr) clamp(270px,15vw,360px)!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:12px!important;
    height:calc(100dvh - 205px)!important;
    min-height:720px!important;
    overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos{
    display:flex!important;
    flex-direction:column!important;
    grid-column:1!important;grid-row:1!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:100%!important;min-height:0!important;max-height:100%!important;
    padding:12px!important;gap:8px!important;
    overflow:hidden!important;border-radius:7px!important;
    background:#3f3f3f!important;color:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .drawer-head{
    flex:0 0 auto!important;display:block!important;position:static!important;
    margin:0!important;padding:0!important;background:transparent!important;color:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos .drawer-head h3{font-size:15px!important;color:#fff!important;margin:0 0 3px!important}
  body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-upload{
    order:2!important;display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-height:44px!important;height:44px!important;margin:0!important;
    padding:8px 10px!important;font-size:12px!important;border-radius:7px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-auto{
    order:3!important;width:100%!important;min-height:40px!important;height:40px!important;
    margin:0!important;padding:7px 9px!important;font-size:10px!important;border-radius:7px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library{
    order:4!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:max-content!important;align-content:start!important;
    gap:8px!important;width:100%!important;height:auto!important;min-height:0!important;
    flex:1 1 auto!important;margin:0!important;padding:4px 2px 8px!important;
    overflow-y:auto!important;overflow-x:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb{
    width:100%!important;min-width:0!important;max-width:none!important;
    height:112px!important;min-height:112px!important;max-height:112px!important;
    flex:none!important;margin:0!important;padding:3px!important;box-sizing:border-box!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb>img{
    width:100%!important;height:100%!important;object-fit:contain!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-canvas{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;
    height:100%!important;max-height:100%!important;overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library{
    display:flex!important;flex-direction:column!important;
    grid-column:3!important;grid-row:1!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:100%!important;max-height:100%!important;padding:12px 10px!important;
    box-sizing:border-box!important;overflow:hidden!important;border-radius:7px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title{
    flex:0 0 auto!important;margin:0 0 8px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-scroll{
    flex:1 1 auto!important;min-height:0!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:max-content!important;align-content:start!important;
    gap:9px!important;padding:2px!important;overflow-y:auto!important;overflow-x:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-btn{
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:88px!important;min-height:88px!important;margin:0!important;padding:6px!important;
    box-sizing:border-box!important;overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-mini{
    width:100%!important;height:100%!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-reroll,
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-close{
    flex:0 0 auto!important;width:100%!important;min-height:38px!important;margin-top:7px!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open{
    grid-template-columns:clamp(250px,14vw,340px) minmax(0,1fr) clamp(330px,18vw,430px)!important;
    grid-template-rows:minmax(0,1fr)!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-drawer.zmpb-text-focus.is-open{
    grid-column:3!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;
    height:100%!important;max-height:100%!important;overflow-y:auto!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-photos{grid-column:1!important;grid-row:1!important}
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-canvas{grid-column:2!important;grid-row:1!important}
  body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-side-template-library{display:none!important}
  body.zmpb-open .zmpb>.zmpb-mobilebar{
    min-height:58px!important;flex-basis:58px!important;padding:4px 8px!important;
  }
  body.zmpb-open .zmpb>.zmpb-mobilebar button{min-height:48px!important;height:48px!important;font-size:10px!important}
}
@media (min-width:2400px) and (min-height:1250px) and (pointer:fine){
  body.zmpb-open .zmpb>.zmpb-work{
    grid-template-columns:360px minmax(0,1fr) 400px!important;
    height:calc(100dvh - 195px)!important;min-height:900px!important;gap:14px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library>.photo-thumb{height:138px!important;min-height:138px!important;max-height:138px!important}
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-btn{height:104px!important;min-height:104px!important}
}

/* v1.6.6.132 — 4K/5K right template panel: structured chooser + clean 2-column cards.
   Large fine-pointer desktops only; mobile/Fold and editor behavior unchanged. */
@media (min-width:1800px) and (min-height:950px) and (pointer:fine){
  body.zmpb-open .zmpb>.zmpb-work{
    grid-template-columns:clamp(250px,14vw,340px) minmax(0,1fr) clamp(320px,17vw,410px)!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library{
    padding:14px!important;
    gap:10px!important;
    background:#f4f4f2!important;
    border:1px solid #d8d8d4!important;
    color:#151515!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title{
    display:block!important;
    margin:0!important;padding:0!important;text-align:left!important;color:#151515!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title button{
    display:block!important;width:100%!important;border:0!important;background:transparent!important;
    color:#151515!important;text-align:left!important;font-size:14px!important;font-weight:900!important;
    letter-spacing:.05em!important;padding:2px 0 6px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-scroll{
    display:block!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 3px 4px 0!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser{
    display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;
    gap:5px!important;width:100%!important;margin:0 0 12px!important;padding:0!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button{
    width:100%!important;min-width:0!important;height:30px!important;min-height:30px!important;
    margin:0!important;padding:0!important;border:1px solid #d3d3cf!important;border-radius:5px!important;
    background:#fff!important;color:#222!important;font-size:11px!important;font-weight:800!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button.active{
    background:#171717!important;color:#fff!important;border-color:#171717!important;
    box-shadow:none!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;width:100%!important;margin:0!important;padding:0!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
    display:block!important;position:relative!important;width:100%!important;min-width:0!important;max-width:none!important;
    height:112px!important;min-height:112px!important;margin:0!important;padding:8px!important;
    border:1px solid #d2d2ce!important;border-radius:7px!important;background:#fff!important;
    overflow:hidden!important;box-shadow:none!important;box-sizing:border-box!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn.active{
    border:2px solid #d7a13c!important;background:#fff!important;box-shadow:0 0 0 1px #f1d18f!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-mini{
    display:block!important;position:relative!important;width:100%!important;height:100%!important;
    max-width:none!important;background:#f7f7f6!important;border:1px solid #e3e3df!important;
    box-sizing:border-box!important;overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-mini i{
    position:absolute!important;background:#deddd9!important;border:1px solid #bdbbb5!important;box-sizing:border-box!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-reroll{
    display:block!important;flex:0 0 auto!important;width:100%!important;height:42px!important;min-height:42px!important;
    margin:0!important;border:1px solid #333!important;border-radius:6px!important;background:#222!important;
    color:#fff!important;font-size:19px!important;font-weight:900!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-close{display:none!important}
}
@media (min-width:2400px) and (min-height:1250px) and (pointer:fine){
  body.zmpb-open .zmpb>.zmpb-work{grid-template-columns:360px minmax(0,1fr) 460px!important}
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
    height:132px!important;min-height:132px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button{
    height:34px!important;min-height:34px!important;font-size:12px!important;
  }
}


/* v1.6.6.133 — Text tab is a dedicated right panel: no template UI above it. */
.zmpb-layouts.zmpb-text-focus>.zmpb-layout-tabs{display:none!important}
.zmpb-layouts.zmpb-text-focus>.drawer-head{margin-bottom:8px!important}
.zmpb-layouts.zmpb-text-focus>.zmpb-text-tools{margin-top:0!important}
@media (min-width:601px){
 body.zmpb-open .zmpb-work.desktop-text-open>.zmpb-layouts.zmpb-text-focus.is-open>.zmpb-layout-tabs{display:none!important}
}


/* v1.6.6.134 — hard-separated Text panel. Hidden template controls must stay hidden even under 4K/5K overrides. */
.zmpb-layouts[data-panel-mode="text"] .page-target,
.zmpb-layouts[data-panel-mode="text"] .zmpb-reroll-current,
.zmpb-layouts[data-panel-mode="text"] .zmpb-reroll-note,
.zmpb-layouts[data-panel-mode="text"] .full-spread-tools,
.zmpb-layouts[data-panel-mode="text"] .count-tabs,
.zmpb-layouts[data-panel-mode="text"] .layout-list,
.zmpb-layouts[data-panel-mode="text"] .frame-shapes,
.zmpb-layouts[data-panel-mode="text"] #add-frame,
.zmpb-layouts[data-panel-mode="text"] #delete-selected-frame,
.zmpb-layouts[data-panel-mode="text"] .align-tools,
.zmpb-layouts[data-panel-mode="text"] .zmpb-touch-help,
.zmpb-layouts[data-panel-mode="text"] .zmpb-quick-actions,
.zmpb-layouts[data-panel-mode="text"] #clear-page,
.zmpb-layouts[data-panel-mode="text"] > .hint,
.zmpb-layouts[data-panel-mode="text"] > .zmpb-layout-tabs{display:none!important}
.zmpb-layouts[data-panel-mode="text"] > .zmpb-text-tools{display:block!important}
.zmpb-layouts [hidden]{display:none!important}


/* v1.6.6.135 — absolute Text-only guard, including high-specificity 4K/5K layout rules. */
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .page-target,
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .zmpb-reroll-current,
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .zmpb-reroll-note,
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .full-spread-tools,
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .hint,
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .count-tabs,
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .layout-list,
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .frame-shapes,
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .zmpb-layout-tabs {display:none!important;}
body.zmpb-open .zmpb-work.desktop-text-open > .zmpb-layouts[data-panel-mode="text"].zmpb-text-focus.is-open > .zmpb-text-tools {display:block!important;margin-top:0!important;}

/* v1.6.6.136 — Wide desktop viewport edge containment.
   Keep the fullscreen app flush with both viewport edges while Chrome is resized.
   This only overrides old wide-screen width/margin rules; editor behavior is untouched. */
@media (min-width:1700px) and (pointer:fine){
  html.zmpb-open, body.zmpb-open{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  body.zmpb-open > .zmpb{
    position:fixed!important;
    inset:0!important;
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
    transform:none!important;
    overflow:hidden!important;
    background:#f4f2ef!important;
  }
}


/* v1.6.6.137 — 4K/5K stable viewport cap.
   On very wide fine-pointer desktops, keep the editor at the same usable CSS
   width as the proven normal desktop layout instead of stretching with the
   physical 4K/5K viewport. No JS/functions or touch/Fold rules are changed. */
@media (min-width:2400px) and (pointer:fine){
  body.zmpb-open{
    display:flex!important;
    justify-content:center!important;
    align-items:flex-start!important;
    background:#111!important;
  }
  body.zmpb-open > .zmpb{
    position:fixed!important;
    top:0!important;
    bottom:0!important;
    left:50%!important;
    right:auto!important;
    width:min(1920px,100vw)!important;
    max-width:1920px!important;
    height:100dvh!important;
    margin:0!important;
    transform:translateX(-50%)!important;
    overflow:hidden!important;
    background:#f4f2ef!important;
  }
  body.zmpb-open .zmpb>.zmpb-work{
    grid-template-columns:300px minmax(0,1fr) 360px!important;
    min-width:0!important;
  }
  body.zmpb-open .zmpb-work.desktop-text-open{
    grid-template-columns:300px minmax(0,1fr) 400px!important;
  }
}

/* v1.6.6.138 — wide desktop cover grid parity.
   The older v97 cover rule forced a 2-column grid and conflicted with the later
   4K/5K permanent left-photo/right-template workspace. Keep the same 3-column
   structure on Naslovna as on normal spreads. Also undo the v137 viewport cap. */
@media (min-width:1800px) and (min-height:950px) and (pointer:fine){
  body.zmpb-open{
    display:block!important;
    background:#f4f2ef!important;
  }
  body.zmpb-open > .zmpb{
    position:fixed!important;
    inset:0!important;
    left:0!important;right:0!important;top:0!important;bottom:0!important;
    width:100vw!important;max-width:100vw!important;height:100dvh!important;
    margin:0!important;transform:none!important;overflow:hidden!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active > .zmpb-work{
    display:grid!important;
    grid-template-columns:clamp(250px,14vw,340px) minmax(0,1fr) clamp(320px,17vw,410px)!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:12px!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work > .zmpb-photos{
    grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work > .zmpb-canvas{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work > .zmpb-side-template-library{
    grid-column:3!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;
  }
}
@media (min-width:2400px) and (min-height:1250px) and (pointer:fine){
  body.zmpb-open .zmpb.zmpb-cover-page-active > .zmpb-work{
    grid-template-columns:360px minmax(0,1fr) 460px!important;
    gap:14px!important;
  }
}


/* v1.6.6.139 — 4K/5K Naslovna -> Tekst transition parity.
   v138's late wide-cover grid intentionally wins for cover templates, but it must
   yield when the Text workspace is opened. Keep cover editing active and switch
   only the workspace columns to the same left-photos / canvas / text layout used
   by a normal spread. */
@media (min-width:1800px) and (min-height:950px) and (pointer:fine){
  body.zmpb-open .zmpb.zmpb-cover-page-active > .zmpb-work.desktop-text-open{
    display:grid!important;
    grid-template-columns:clamp(250px,14vw,340px) minmax(0,1fr) clamp(330px,18vw,430px)!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:12px!important;
    min-width:0!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active > .zmpb-work.desktop-text-open > .zmpb-photos{
    display:flex!important;grid-column:1!important;grid-row:1!important;
    width:100%!important;min-width:0!important;max-width:none!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active > .zmpb-work.desktop-text-open > .zmpb-canvas{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active > .zmpb-work.desktop-text-open > .zmpb-side-template-library{
    display:none!important;
  }
  body.zmpb-open .zmpb.zmpb-cover-page-active > .zmpb-work.desktop-text-open > .zmpb-layouts.zmpb-drawer.zmpb-text-focus.is-open{
    display:block!important;grid-column:3!important;grid-row:1!important;
    position:relative!important;inset:auto!important;transform:none!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:100%!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
}
@media (min-width:2400px) and (min-height:1250px) and (pointer:fine){
  body.zmpb-open .zmpb.zmpb-cover-page-active > .zmpb-work.desktop-text-open{
    grid-template-columns:360px minmax(0,1fr) 460px!important;
    gap:14px!important;
  }
}

/* v1.6.6.149 – full-width photo-book banner replaces the old split hero. */
#zmpb-guided .zmpb-premium-hero.zmpb-banner-hero{display:block!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:12/5!important;overflow:hidden!important;background:#f8f2ea!important}
#zmpb-guided .zmpb-banner-image{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
@media(max-width:650px){#zmpb-guided .zmpb-premium-hero.zmpb-banner-hero{aspect-ratio:12/5!important;min-height:0!important;height:auto!important}#zmpb-guided .zmpb-banner-image{height:100%!important}}

/* v150: theme header/footer on storefront; clean editor only after product click. */
.zmpb-storefront{width:100%;max-width:1500px;margin:0 auto 64px;padding:0 20px;color:#292521;font-family:Montserrat,Arial,sans-serif;box-sizing:border-box}
.zmpb-storefront *{box-sizing:border-box}.zmpb-store-hero{position:relative;overflow:hidden;border-radius:14px;margin:20px 0 56px}.zmpb-store-hero img{display:block;width:100%;height:auto}.zmpb-store-hero-link{position:absolute;left:3%;bottom:10%;width:27%;height:16%;border-radius:14px}.zmpb-store-hero-link:focus-visible{outline:3px solid #111;outline-offset:3px}
.zmpb-store-products{text-align:center;scroll-margin-top:110px}.zmpb-store-kicker{font-size:12px;letter-spacing:.22em;color:#a6755b}.zmpb-store-products h1{font-size:clamp(27px,3vw,44px);line-height:1.2;margin:12px 0}.zmpb-store-products>p{color:#746d67;margin:0 0 34px}.zmpb-store-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:24px;text-align:left}.zmpb-store-card{background:#fff;border:1px solid #ece5df;border-radius:14px;overflow:hidden;box-shadow:0 10px 28px #3222170b}.zmpb-store-image{display:block;background:#f6f3ef;aspect-ratio:1.35}.zmpb-store-image img{display:block;width:100%;height:100%;object-fit:contain}.zmpb-store-card-body{padding:22px}.zmpb-store-card h2{font-size:19px;line-height:1.35;margin:8px 0}.zmpb-store-card p{font-size:14px;color:#766e67;margin:0 0 14px}.zmpb-store-badges{display:flex;gap:6px;min-height:23px}.zmpb-store-badges span{font-size:11px;font-weight:700;background:#aa755d;color:white;border-radius:4px;padding:4px 8px}.zmpb-store-badges span+span{background:#292521}.zmpb-store-price{display:flex;align-items:baseline;gap:10px;margin:10px 0 20px}.zmpb-store-price del{color:#928880;font-size:14px}.zmpb-store-price strong{font-size:23px}.zmpb-store-cta{display:block;text-align:center;background:#a57157;color:#fff!important;text-decoration:none!important;border-radius:8px;padding:13px 12px;font-weight:700}.zmpb-store-cta:hover{background:#82543d;color:#fff!important}
body.zmpb-editor-page #masthead,body.zmpb-editor-page #colophon,body.zmpb-editor-page .site-header,body.zmpb-editor-page .site-footer,body.zmpb-editor-page .elementor-location-header,body.zmpb-editor-page .elementor-location-footer,body.zmpb-editor-page .wp-site-blocks>header,body.zmpb-editor-page .wp-site-blocks>footer{display:none!important}
body.zmpb-editor-page .zmpb{max-width:1500px;margin:0 auto}body.zmpb-editor-page .entry-header,body.zmpb-editor-page .page-header,body.zmpb-editor-page .entry-title{display:none!important}
@media(max-width:650px){.zmpb-storefront{padding:0 12px}.zmpb-store-hero{margin:12px 0 35px;border-radius:8px}.zmpb-store-hero-link{bottom:8%;height:18%}.zmpb-store-grid{gap:15px}}

/* Upozorenje vidljivo samo tokom slanja narudžbe. */
.zmpb-checkout-warning:not([hidden]){display:block;margin:14px 0 8px;padding:12px 14px;border:1px solid #d83b3b;border-radius:10px;background:#fff1f1;color:#a31616;font-size:14px;line-height:1.45}
.zmpb-checkout-warning strong,.zmpb-checkout-warning span{display:block;color:#a31616}
.zmpb-checkout-warning strong{font-weight:800;margin-bottom:5px}

/* v1.6.6.167: show edge guides inside the page even at the bottom/right boundary. */
.zmpb .snap-guide{z-index:100!important;pointer-events:none!important;transform:translate(-50%,-50%)}
.zmpb .snap-h{height:3px!important;bottom:auto!important}
.zmpb .snap-v{width:3px!important;right:auto!important}

/* 1.6.6.172: keep right/bottom snap indicators visible within the sheet. */
.zmpb .snap-guide{z-index:110!important;visibility:visible!important;}
.zmpb .snap-v{transform:translateX(-50%)!important;}
.zmpb .snap-h{transform:translateY(-50%)!important;}

/* v2.0.0 mobile: photo library is a horizontal tray below the spread.
   Desktop rails and all editing/placement handlers remain unchanged. */
@media (max-width:600px), (pointer:coarse){
  body.zmpb-open .zmpb>.zmpb-work,
  body.zmpb-open .zmpb-work.templates-open{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 76px!important;
    grid-template-rows:minmax(0,1fr) 108px!important;
    gap:3px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-canvas{
    grid-column:1!important;grid-row:1!important;
    width:100%!important;height:100%!important;min-width:0!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library{
    grid-column:2!important;grid-row:1!important;
    width:76px!important;min-width:76px!important;max-width:76px!important;
    height:100%!important;max-height:100%!important;min-height:0!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
    display:flex!important;grid-column:1/-1!important;grid-row:2!important;
    position:relative!important;top:auto!important;bottom:auto!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:108px!important;min-height:108px!important;max-height:108px!important;
    flex-direction:row!important;align-items:stretch!important;
    padding:5px!important;gap:5px!important;overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library[hidden]{display:none!important}
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:62px!important;min-width:62px!important;height:auto!important;min-height:0!important;
    flex:0 0 62px!important;font-size:0!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add:before{content:'＋'!important;font-size:26px!important}
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-smart{
    flex:0 0 74px!important;width:74px!important;min-width:74px!important;
    height:auto!important;min-height:0!important;max-height:none!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{
    display:flex!important;flex:1 1 auto!important;flex-direction:row!important;
    align-items:center!important;min-width:0!important;min-height:0!important;
    width:auto!important;height:100%!important;gap:6px!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;
  }
  body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{
    flex:0 0 88px!important;width:88px!important;height:88px!important;min-height:88px!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-all{
    flex:0 0 38px!important;width:38px!important;min-width:38px!important;
    height:auto!important;min-height:0!important;
  }
}

/* v2.0.1 mobile: one existing template chooser above the full-width spread.
   Keep its original buttons/handlers; photo tray remains below the spread. */
@media (max-width:600px), (pointer:coarse){
  body.zmpb-open .zmpb>.zmpb-work,
  body.zmpb-open .zmpb-work.templates-open{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:156px minmax(0,1fr) 108px!important;
    gap:4px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
    display:flex!important;grid-column:1!important;grid-row:1!important;
    position:relative!important;top:auto!important;align-self:stretch!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:156px!important;min-height:0!important;max-height:156px!important;
    padding:5px 7px!important;gap:3px!important;overflow:hidden!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title{
    flex:0 0 auto!important;min-height:22px!important;padding:1px 3px!important;
    font-size:12px!important;text-align:left!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-scroll{
    display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
    min-width:0!important;min-height:0!important;overflow:hidden!important;gap:5px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser{
    display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;
    overflow-x:auto!important;overflow-y:hidden!important;gap:5px!important;
    -webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button{
    flex:0 0 37px!important;width:37px!important;min-width:37px!important;height:29px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{
    display:flex!important;flex:1 1 auto!important;flex-direction:row!important;
    flex-wrap:nowrap!important;min-width:0!important;min-height:0!important;
    overflow-x:auto!important;overflow-y:hidden!important;gap:7px!important;
    -webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
    display:block!important;flex:0 0 130px!important;width:130px!important;min-width:130px!important;
    height:68px!important;min-height:68px!important;max-height:68px!important;padding:4px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-reroll,
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-close{
    display:none!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-canvas,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{
    grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important;
    height:100%!important;max-width:100%!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
    grid-column:1!important;grid-row:3!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library[hidden]{display:none!important}
}

/* v2.0.2: Fold/mobile viewport budget. Reclaim height for the actual sheet,
   without changing the sheet ratio or the existing fit/drag calculations. */
@media (max-width:600px), (pointer:coarse){
  body.zmpb-open .zmpb>.zmpb-work,
  body.zmpb-open .zmpb-work.templates-open{
    grid-template-rows:118px minmax(0,1fr) 92px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
    height:118px!important;max-height:118px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title{
    min-height:17px!important;font-size:10px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button{
    height:25px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
    height:51px!important;min-height:51px!important;max-height:51px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
    height:92px!important;min-height:92px!important;max-height:92px!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add{
    flex-basis:43px!important;width:43px!important;min-width:43px!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-smart{
    flex-basis:59px!important;width:59px!important;min-width:59px!important;
    font-size:9px!important;
  }
  body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{
    flex-basis:76px!important;width:76px!important;height:76px!important;min-height:76px!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-all{
    flex-basis:31px!important;width:31px!important;min-width:31px!important;
  }
}

/* v2.0.3: simplified mobile/Fold design inspired by the approved sketch.
   Reuse the existing controls and event handlers; keep frame geometry untouched. */
@media (max-width:600px), (pointer:coarse){
  body.zmpb-open .zmpb>.zmpb-work,
  body.zmpb-open .zmpb-work.templates-open{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:112px minmax(0,1fr) 86px!important;
    gap:3px!important;
    background:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
    height:112px!important;max-height:112px!important;
    padding:5px 7px!important;border-radius:8px!important;
    background:#fff!important;color:#202020!important;
    border:1px solid #e8e4de!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title{
    font-size:11px!important;min-height:15px!important;
    text-align:left!important;background:transparent!important;color:#242424!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-scroll{
    gap:3px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser{
    gap:4px!important;scrollbar-width:none!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button{
    flex:0 0 28px!important;width:28px!important;min-width:28px!important;
    height:23px!important;min-height:23px!important;font-size:11px!important;
    border-radius:6px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{
    gap:6px!important;scrollbar-width:none!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
    flex:0 0 100px!important;width:100px!important;min-width:100px!important;
    height:56px!important;min-height:56px!important;max-height:56px!important;
    border-radius:7px!important;padding:4px!important;background:#fff!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-canvas,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{
    background:#faf8f5!important;border-radius:8px!important;
    padding:3px!important;min-height:0!important;
  }
  body.zmpb-open .zmpb-canvas>.spread{
    margin-top:auto!important;margin-bottom:auto!important;
    max-width:100%!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
    height:86px!important;min-height:86px!important;max-height:86px!important;
    border-radius:8px!important;background:#fff!important;
    border:1px solid #e8e4de!important;padding:4px!important;gap:4px!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add{
    flex:0 0 48px!important;width:48px!important;min-width:48px!important;
    border-radius:7px!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-smart{
    flex:0 0 58px!important;width:58px!important;min-width:58px!important;
    font-size:9px!important;border-radius:7px!important;
  }
  body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{
    flex:0 0 72px!important;width:72px!important;height:72px!important;min-height:72px!important;
    border-radius:7px!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-all{
    flex:0 0 31px!important;width:31px!important;min-width:31px!important;
  }
}

/* v2.0.4: approved compact Fold/mobile arrangement; no frame/model changes. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work,body.zmpb-open .zmpb-work.templates-open{
  grid-template-rows:94px minmax(0,1fr) 76px!important;gap:4px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library,body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
  height:94px!important;max-height:94px!important;padding:4px 7px!important;overflow:visible!important;z-index:25!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title{min-height:21px!important;height:21px!important;text-align:left!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title button{
  display:inline-flex!important;align-items:center!important;width:auto!important;min-height:21px!important;
  padding:0 7px!important;font-size:11px!important;cursor:pointer!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-scroll{overflow:visible!important;min-height:0!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser{
  display:none!important;position:absolute!important;top:29px!important;left:7px!important;right:7px!important;
  z-index:30!important;padding:8px!important;background:#fff!important;border:1px solid #d5c9b7!important;
  border-radius:8px!important;box-shadow:0 6px 18px #0002!important;flex-wrap:wrap!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library.zmpb-counts-open .zmpb-template-count-chooser{display:flex!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{height:62px!important;min-height:62px!important;overflow-x:auto!important;overflow-y:hidden!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
  flex:0 0 106px!important;width:106px!important;min-width:106px!important;height:59px!important;min-height:59px!important;max-height:59px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-canvas,body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{
  justify-content:flex-start!important;align-items:center!important;padding:5px 3px!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb-canvas>.spread{margin-top:0!important;margin-bottom:0!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
  height:76px!important;min-height:76px!important;max-height:76px!important;padding:4px!important;
 }
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add{flex:0 0 51px!important;width:51px!important;min-width:51px!important;}
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-smart{display:none!important;}
 body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{flex:0 0 65px!important;width:65px!important;height:65px!important;min-height:65px!important;}
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-all{flex:0 0 31px!important;width:31px!important;min-width:31px!important;}
}

/* v2.0.5 — mobile visual treatment matching the approved clean mockup.
   Presentation only: preserve editor controls, photo data and spread geometry. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work,body.zmpb-open .zmpb-work.templates-open{
  grid-template-rows:104px minmax(0,1fr) 82px!important;gap:0!important;background:#fff!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library,body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
  height:104px!important;max-height:104px!important;padding:7px 8px 4px!important;
  border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title{
  height:25px!important;min-height:25px!important;padding:0!important;text-align:left!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title button{
  font-size:12px!important;font-weight:700!important;letter-spacing:.02em!important;padding:0 3px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{
  height:67px!important;min-height:67px!important;gap:8px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
  flex:0 0 88px!important;width:88px!important;min-width:88px!important;
  height:62px!important;min-height:62px!important;max-height:62px!important;
  border:1px solid #d8d8d8!important;border-radius:8px!important;background:#fff!important;padding:6px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn.active{
  border:2px solid #c99a51!important;box-shadow:0 0 0 1px #c99a5133!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-canvas,body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{
  background:#fff!important;border:0!important;border-radius:0!important;padding:4px 5px!important;
  justify-content:center!important;align-items:center!important;
 }
 body.zmpb-open .zmpb-canvas>.spread{margin-top:auto!important;margin-bottom:auto!important;box-shadow:0 2px 8px #00000012!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
  height:82px!important;min-height:82px!important;max-height:82px!important;
  padding:6px 5px!important;border:0!important;border-top:1px solid #eee!important;
  border-radius:0!important;background:#fff!important;gap:6px!important;
 }
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add{
  flex:0 0 56px!important;width:56px!important;min-width:56px!important;border-radius:7px!important;
 }
 body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{
  flex:0 0 69px!important;width:69px!important;height:69px!important;min-height:69px!important;border-radius:7px!important;
 }
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-all{display:none!important;}
}

/* v2.0.6: one compact mobile settings row; actions retained in header menu. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-appbar{flex:0 0 48px!important;height:48px!important;min-height:48px!important;padding:0 12px!important;gap:8px!important}
 body.zmpb-open .zmpb-appbar b{font-size:14px!important}
 body.zmpb-open .zmpb-app-exit{display:none!important}
 body.zmpb-open .zmpb-appbar .zmpb-mobile-finish{display:block!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;height:36px!important;min-height:36px!important;padding:0 12px!important;font-size:12px!important;white-space:nowrap!important;background:#d5a454!important;color:#181818!important;border:0!important;border-radius:9px!important;font-weight:700!important}
 body.zmpb-open .zmpb-appbar .zmpb-v2-menu-toggle{display:block!important;order:-1!important;background:none!important;border:0!important;color:white!important;font-size:24px!important;line-height:1!important;padding:4px!important}
 body.zmpb-open .zmpb-appbar>div{flex:1!important}
 body.zmpb-open .zmpb>.zmpb-top{display:grid!important;flex:0 0 49px!important;height:49px!important;min-height:49px!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:1fr!important;margin:0!important;padding:5px 9px!important;gap:0!important;background:#fff!important;border-radius:0!important}
 body.zmpb-open .zmpb>.zmpb-top>label:first-child{display:block!important;min-width:0!important}
 body.zmpb-open .zmpb>.zmpb-top>label:first-child select{height:38px!important;min-height:38px!important;font-size:12px!important;padding:5px 9px!important;border-radius:8px!important}
 body.zmpb-open .zmpb>.zmpb-top>label:nth-child(2),body.zmpb-open .zmpb>.zmpb-top>.zmpb-price{display:none!important}
 body.zmpb-open .zmpb>.zmpb-simple-flow{display:none!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library,body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{height:84px!important;max-height:84px!important;padding:3px 7px!important}
 body.zmpb-open .zmpb>.zmpb-work,body.zmpb-open .zmpb-work.templates-open{grid-template-rows:84px minmax(0,1fr) 82px!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title{height:17px!important;min-height:17px!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title button{font-size:11px!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{height:61px!important;min-height:61px!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{height:57px!important;min-height:57px!important;max-height:57px!important}
 body.zmpb-open .zmpb-canvas>.zmpb-toolbar{width:100%!important;justify-content:space-between!important;margin:0 0 7px!important}
 body.zmpb-open .zmpb-canvas>.zmpb-toolbar small{display:none!important}
 body.zmpb-open .zmpb-canvas>.spread{margin-top:0!important;margin-bottom:auto!important}
 body.zmpb-open .zmpb-v2-menu{position:absolute!important;top:47px!important;left:8px!important;right:8px!important;z-index:9999!important;background:#fff!important;color:#222!important;border:1px solid #ddd!important;border-radius:10px!important;padding:12px!important;box-shadow:0 12px 35px #0003!important;display:grid!important;gap:10px!important}
 body.zmpb-open .zmpb-v2-menu[hidden]{display:none!important}
 body.zmpb-open .zmpb-v2-menu label{display:grid!important;gap:4px!important;font-size:12px!important}
 body.zmpb-open .zmpb-v2-menu select{width:100%!important}
 body.zmpb-open .zmpb-v2-menu .zmpb-flow-quick{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
 body.zmpb-open .zmpb-v2-menu .zmpb-flow-quick button{min-width:55px!important}
}
@media (min-width:601px) and (pointer:fine){.zmpb-v2-menu-toggle,.zmpb-v2-menu{display:none!important}}

/* v2.0.7: approved one-row mobile toolbar; real controls remain visible. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-appbar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;padding:0 5px!important;height:52px!important;min-height:52px!important;flex:0 0 52px!important;overflow:visible!important}
 body.zmpb-open .zmpb-appbar>div:first-child{display:none!important}
 body.zmpb-open .zmpb-appbar .zmpb-v2-menu-toggle{flex:0 0 24px!important;width:24px!important;font-size:20px!important;padding:0!important;order:0!important}
 body.zmpb-open .zmpb-appbar>label:first-of-type{display:block!important;flex:1 1 0!important;min-width:0!important;width:auto!important;margin:0!important}
 body.zmpb-open .zmpb-appbar>label:first-of-type>b{display:none!important}
 body.zmpb-open .zmpb-appbar>label:first-of-type select{width:100%!important;min-width:0!important;max-width:100%!important;height:34px!important;min-height:34px!important;padding:3px 15px 3px 4px!important;font-size:clamp(9px,2.5vw,12px)!important;border-radius:6px!important;text-overflow:ellipsis!important;background:#fff!important;color:#222!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:2px!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:34px!important;min-height:34px!important;padding:0!important;margin:0!important;border:1px solid #ddd!important;border-radius:5px!important;background:#fff!important;color:#202020!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button b{font-size:17px!important;line-height:1!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button small{display:none!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button:disabled{opacity:.38!important}
 body.zmpb-open .zmpb-appbar .zmpb-mobile-finish{display:block!important;flex:0 0 auto!important;order:10!important;height:34px!important;min-height:34px!important;padding:0 5px!important;font-size:10px!important;border-radius:6px!important}
 body.zmpb-open .zmpb>.zmpb-top{display:none!important;height:0!important;min-height:0!important;flex:0 0 0!important;padding:0!important;margin:0!important}
 body.zmpb-open .zmpb-v2-menu{top:51px!important}
}
@media (min-width:600px) and (max-width:600px), (min-width:600px) and (pointer:coarse){
 body.zmpb-open .zmpb-appbar{gap:8px!important;padding:0 12px!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick{gap:5px!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button{width:38px!important;min-width:38px!important;flex-basis:38px!important}
 body.zmpb-open .zmpb-appbar .zmpb-mobile-finish{padding:0 12px!important;font-size:12px!important}
}

/* v2.0.8 — mobile photo gallery: multiple rows and vertical scrolling.
   Preserve existing photo selection, upload and drag/drop handlers. */
@media (max-width:600px), (pointer:coarse){
  body.zmpb-open .zmpb>.zmpb-work,
  body.zmpb-open .zmpb-work.templates-open{
    grid-template-rows:84px minmax(0,1fr) clamp(180px,32dvh,340px)!important;
    min-height:0!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
  body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    align-items:stretch!important;
    height:100%!important;min-height:0!important;max-height:100%!important;
    padding:6px!important;gap:7px!important;
    overflow:hidden!important;background:#fff!important;
    border-top:1px solid #e7e7e7!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library[hidden]{display:none!important}
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add{
    grid-column:1!important;grid-row:1!important;
    display:flex!important;align-self:start!important;
    width:58px!important;min-width:0!important;height:78px!important;min-height:78px!important;
    border-radius:8px!important;
  }
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{
    grid-column:2!important;grid-row:1!important;
    display:grid!important;flex:none!important;
    grid-template-columns:repeat(auto-fill,minmax(72px,1fr))!important;
    grid-auto-rows:82px!important;
    align-content:start!important;align-items:stretch!important;
    width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
    gap:6px!important;padding:1px 3px 5px 1px!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;
    scrollbar-width:thin!important;
  }
  body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{
    display:flex!important;flex:none!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:82px!important;min-height:0!important;max-height:82px!important;
    margin:0!important;padding:2px!important;border-radius:7px!important;
  }
  body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb img{
    width:100%!important;height:100%!important;object-fit:cover!important;
  }
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-smart,
  body.zmpb-open .zmpb-side-photo-library>.zmpb-side-all{display:none!important}
}
@media (max-width:380px){
  body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{
    grid-template-columns:repeat(auto-fill,minmax(65px,1fr))!important;
  }
}

/* v2.0.9: always-visible 1–10 template counts beside the title on mobile. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title.zmpb-side-mode-tabs{
  display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;white-space:nowrap!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title.zmpb-side-mode-tabs::-webkit-scrollbar{display:none!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title [data-side-mode="templates"]{
  flex:0 0 auto!important;padding:0 2px!important;background:transparent!important;color:#171717!important;pointer-events:none!important;font-size:11px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser{
  display:flex!important;position:static!important;flex:0 0 auto!important;gap:4px!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;flex-wrap:nowrap!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser button{
  flex:0 0 24px!important;width:24px!important;min-width:24px!important;height:23px!important;min-height:23px!important;padding:0!important;border:1px solid #d0d0d0!important;border-radius:5px!important;background:#fff!important;color:#222!important;font-size:11px!important;line-height:1!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser button.active{background:#d5a453!important;border-color:#d5a453!important;color:#161616!important;box-shadow:none!important}
}

/* v2.0.10: photo-upload label and one template count selector only. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add{
  flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
  font-size:12px!important;line-height:1.1!important;text-align:center!important;padding:4px 2px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add:before{content:none!important;display:none!important}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add .zmpb-add-icon{display:block!important;font-size:27px!important;line-height:1!important}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add .zmpb-add-label{display:block!important;font-size:10px!important;font-weight:800!important;line-height:1.15!important}
}

/* v2.0.11 — tidy, single-row mobile template count selector (1–10). */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title.zmpb-side-mode-tabs{
  gap:8px!important;padding:5px 10px!important;min-height:43px!important;
  overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title [data-side-mode="templates"]{
  flex:0 0 auto!important;font-size:12px!important;font-weight:800!important;letter-spacing:.02em!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser{
  display:flex!important;flex:0 0 auto!important;gap:5px!important;align-items:center!important;
  width:max-content!important;max-width:none!important;overflow:visible!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser button{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;
  margin:0!important;padding:0!important;border:1px solid #d6d0c8!important;border-radius:7px!important;
  background:#fff!important;color:#252525!important;font-size:12px!important;font-weight:800!important;
  line-height:1!important;box-shadow:0 1px 2px rgba(0,0,0,.06)!important;
  appearance:none!important;-webkit-appearance:none!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser button.active{
  background:#d3a04e!important;border-color:#b98330!important;color:#171717!important;
  box-shadow:0 0 0 2px rgba(211,160,78,.22)!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser button:focus-visible{
  outline:2px solid #222!important;outline-offset:2px!important;
 }
}

/* v2.0.13 — cover-only mobile layout: keep premium designs inside their own
   horizontal strip; never let cover cards overlay the spread or photo tray. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open{
  grid-template-rows:132px minmax(0,1fr) clamp(180px,32dvh,340px)!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library{
  height:132px!important;min-height:132px!important;max-height:132px!important;
  overflow:hidden!important;z-index:1!important;padding:5px 8px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-title{
  display:none!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll{
  display:flex!important;flex-direction:column!important;gap:4px!important;
  height:100%!important;max-height:100%!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading{
  display:flex!important;align-items:center!important;gap:9px!important;
  flex:0 0 18px!important;height:18px!important;padding:0!important;margin:0!important;
  white-space:nowrap!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading b{font-size:11px!important}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading small{
  font-size:10px!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-section{
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
  min-height:0!important;margin:0!important;padding:0!important;gap:4px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title{
  display:flex!important;align-items:center!important;gap:7px!important;
  flex:0 0 15px!important;min-height:15px!important;margin:0!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title b{font-size:10px!important}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title small{
  font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid{
  display:flex!important;flex:1 1 auto!important;flex-wrap:nowrap!important;
  min-height:0!important;max-height:76px!important;gap:7px!important;
  overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;
  -webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-card{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;flex:0 0 102px!important;width:102px!important;
  min-width:102px!important;max-width:102px!important;height:72px!important;
  min-height:72px!important;max-height:72px!important;gap:2px!important;
  padding:3px!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-preview{
  display:flex!important;width:88px!important;min-width:88px!important;
  height:46px!important;min-height:46px!important;aspect-ratio:auto!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-card strong{
  display:block!important;width:100%!important;font-size:8px!important;
  line-height:11px!important;text-align:center!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-basic-title,
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-template-variants{display:none!important}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-canvas{
  position:relative!important;z-index:0!important;min-height:0!important;overflow:hidden!important;
 }
}

/* v2.0.14: concise instruction and touch photo drag feedback. */
.zmpb-photo-drag-hint{display:none}
.zmpb-photo-drag-ghost{position:fixed!important;z-index:2147483000!important;pointer-events:none!important;transform:translate(-50%,-50%)!important;width:76px!important;height:82px!important;opacity:.88;box-shadow:0 6px 24px #0005;border:2px solid #d3a354;border-radius:8px;overflow:hidden;background:#fff}
.zmpb-photo-drag-ghost img{width:100%;height:100%;object-fit:cover}
.slot.dragover,#zmpb-cover-canvas [data-cover].dragover{outline:3px solid #d3a354!important;outline-offset:-3px!important}
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-photo-drag-hint{display:block!important;grid-column:1!important;grid-row:1!important;align-self:start!important;margin:87px 0 0!important;font-size:9px!important;line-height:1.3!important;text-align:center!important;color:#555!important;overflow-wrap:break-word!important;max-width:58px!important}
}

/* v2.0.15 — mobile cover: show the entire premium-design carousel.
   Keep the cover sheet's own heading and do not change spread geometry. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library{
  box-sizing:border-box!important;display:block!important;height:132px!important;
  min-height:132px!important;max-height:132px!important;overflow:hidden!important;
  padding:5px 8px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library>.zmpb-side-template-scroll{
  display:block!important;box-sizing:border-box!important;height:120px!important;
  min-height:120px!important;max-height:120px!important;overflow:hidden!important;
  padding:0!important;margin:0!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-template-heading{
  display:none!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-theme-section{
  display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
  height:120px!important;min-height:120px!important;max-height:120px!important;
  overflow:hidden!important;gap:5px!important;margin:0!important;padding:0!important;border:0!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title{
  flex:0 0 17px!important;height:17px!important;min-height:17px!important;
  max-height:17px!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid{
  display:flex!important;flex:0 0 94px!important;box-sizing:border-box!important;
  height:94px!important;min-height:94px!important;max-height:94px!important;
  overflow-x:auto!important;overflow-y:hidden!important;align-items:flex-start!important;
  flex-wrap:nowrap!important;gap:8px!important;padding:2px 2px 4px!important;
  scroll-snap-type:x proximity!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  flex:0 0 112px!important;width:112px!important;min-width:112px!important;
  max-width:112px!important;height:86px!important;min-height:86px!important;
  max-height:86px!important;padding:4px!important;gap:3px!important;
  scroll-snap-align:start!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>.zmpb-cover-theme-preview{
  box-sizing:border-box!important;flex:0 0 56px!important;width:100%!important;
  min-width:0!important;height:56px!important;min-height:56px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>strong{
  flex:0 0 13px!important;line-height:13px!important;font-size:9px!important;
 }
}

/* v2.0.16: compact thumbnails without reducing the editing canvas. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{gap:5px!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{flex:0 0 72px!important;width:72px!important;min-width:72px!important;max-width:72px!important;height:57px!important;min-height:57px!important;max-height:57px!important;padding:4px!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-thumb,
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-thumb img{ -webkit-touch-callout:none!important;user-select:none!important;-webkit-user-select:none!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-thumb{touch-action:pan-y!important;}
}

/* v2.0.17: separate the three mobile work areas visually; preserve row sizing and canvas geometry. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work,
 body.zmpb-open .zmpb-work.templates-open{
   gap:6px!important; padding:6px!important; box-sizing:border-box!important;
   background:#f2efe9!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
   box-sizing:border-box!important; min-width:0!important;
   border:1px solid #e2ddd3!important; border-radius:10px!important;
   background:#fff!important; box-shadow:0 1px 4px #352b1a12!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-canvas,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{
   box-sizing:border-box!important; min-height:0!important; min-width:0!important;
   border:1px solid #e2ddd3!important; border-radius:10px!important;
   background:#fff!important; box-shadow:0 1px 4px #352b1a12!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
   box-sizing:border-box!important; min-width:0!important;
   border:1px solid #e2ddd3!important; border-radius:10px!important;
   background:#fff!important; box-shadow:0 1px 4px #352b1a12!important;
 }
}

/* v2.0.18 — mobile panels: actual layout separation, contained template strip,
   and a compact empty photo tray. No changes to editor interactions. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work,
 body.zmpb-open .zmpb-work.templates-open{
  display:grid!important;grid-template-rows:132px minmax(0,1fr) 116px!important;
  gap:10px!important;padding:10px!important;min-height:0!important;
  background:#f2efe9!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb),
 body.zmpb-open .zmpb-work.templates-open:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){
  grid-template-rows:132px minmax(0,1fr) clamp(170px,29dvh,300px)!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open{
  grid-template-rows:150px minmax(0,1fr) 116px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb),
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){
  grid-template-rows:150px minmax(0,1fr) clamp(170px,29dvh,300px)!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
  position:relative!important;z-index:0!important;align-self:stretch!important;
  box-sizing:border-box!important;height:100%!important;min-height:0!important;max-height:100%!important;
  padding:9px 10px!important;overflow:hidden!important;
  border:1px solid #e2ddd3!important;border-radius:12px!important;background:#fff!important;
  box-shadow:0 2px 6px #352b1a12!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title.zmpb-side-mode-tabs{
  box-sizing:border-box!important;height:43px!important;min-height:43px!important;max-height:43px!important;
  padding:3px 0!important;margin:0 0 4px!important;overflow-x:auto!important;overflow-y:hidden!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{
  box-sizing:border-box!important;height:65px!important;min-height:0!important;max-height:65px!important;
  margin:0!important;padding:2px 1px 3px!important;overflow-x:auto!important;overflow-y:hidden!important;
  align-items:flex-start!important;scrollbar-width:thin!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
  box-sizing:border-box!important;flex:0 0 70px!important;width:70px!important;min-width:70px!important;
  max-width:70px!important;height:56px!important;min-height:56px!important;max-height:56px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-canvas,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{
  position:relative!important;z-index:0!important;box-sizing:border-box!important;
  min-width:0!important;min-height:0!important;width:100%!important;
  padding:10px 10px 7px!important;overflow:hidden!important;
  border:1px solid #e2ddd3!important;border-radius:12px!important;background:#fff!important;
  box-shadow:0 2px 6px #352b1a12!important;
 }
 body.zmpb-open .zmpb-canvas>.zmpb-toolbar{
  box-sizing:border-box!important;min-width:0!important;width:100%!important;
  margin:0 0 9px!important;gap:5px!important;
 }
 body.zmpb-open .zmpb-canvas>.spread{max-width:100%!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
  box-sizing:border-box!important;position:relative!important;z-index:0!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  grid-template-columns:92px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
  gap:10px!important;padding:10px!important;overflow:hidden!important;
  border:1px solid #e2ddd3!important;border-radius:12px!important;background:#fff!important;
  box-shadow:0 2px 6px #352b1a12!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add{
  box-sizing:border-box!important;grid-column:1!important;grid-row:1!important;
  width:92px!important;min-width:92px!important;max-width:92px!important;
  height:92px!important;min-height:92px!important;max-height:92px!important;
  align-self:start!important;padding:5px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-photo-drag-hint{
  box-sizing:border-box!important;display:block!important;grid-column:2!important;grid-row:1!important;
  align-self:center!important;justify-self:stretch!important;width:auto!important;max-width:none!important;
  margin:0!important;padding:0 4px!important;text-align:left!important;
  font-size:12px!important;line-height:1.45!important;overflow-wrap:normal!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{
  grid-column:2!important;grid-row:1!important;min-width:0!important;
  height:100%!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb) .zmpb-photo-drag-hint{
  display:none!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library:not(:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb)) .zmpb-side-photo-scroll{
  display:none!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library{
  height:100%!important;min-height:0!important;max-height:100%!important;padding:9px 10px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library>.zmpb-side-template-scroll{
  box-sizing:border-box!important;height:100%!important;min-height:0!important;max-height:100%!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-theme-section{
  height:100%!important;min-height:0!important;max-height:100%!important;
 }
}

/* v2.0.20: give the spread more of the FIXED mobile viewport, not a scrolling page.
   Photo thumbnails scroll inside their tray; template choices scroll horizontally. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work,
 body.zmpb-open .zmpb-work.templates-open{
  grid-template-rows:96px minmax(0,1fr) 82px!important;
  gap:6px!important;padding:6px!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb),
 body.zmpb-open .zmpb-work.templates-open:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){
  grid-template-rows:96px minmax(0,1fr) 104px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open{
  grid-template-rows:114px minmax(0,1fr) 82px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb),
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){
  grid-template-rows:114px minmax(0,1fr) 104px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{padding:5px 7px!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title.zmpb-side-mode-tabs{
  height:33px!important;min-height:33px!important;max-height:33px!important;margin-bottom:2px!important;padding:0!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button{
  height:27px!important;min-height:27px!important;width:30px!important;min-width:30px!important;flex-basis:30px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{
  height:48px!important;max-height:48px!important;padding:1px!important;gap:5px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
  flex:0 0 59px!important;width:59px!important;min-width:59px!important;max-width:59px!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;padding:3px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-canvas,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{padding:5px 6px 4px!important;}
 body.zmpb-open .zmpb-canvas>.zmpb-toolbar{margin-bottom:4px!important;}
 body.zmpb-open .zmpb-canvas>.spread{max-width:100%!important;max-height:calc(100% - 75px)!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
  padding:6px!important;gap:7px!important;grid-template-columns:68px minmax(0,1fr)!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add{
  width:68px!important;min-width:68px!important;max-width:68px!important;
  height:68px!important;min-height:68px!important;max-height:68px!important;font-size:10px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-photo-drag-hint{font-size:11px!important;line-height:1.25!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{overflow-y:auto!important;overscroll-behavior:contain!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library{padding:5px 7px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid{
  flex-basis:75px!important;height:75px!important;min-height:75px!important;max-height:75px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card{
  flex-basis:95px!important;width:95px!important;min-width:95px!important;max-width:95px!important;
  height:70px!important;min-height:70px!important;max-height:70px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>.zmpb-cover-theme-preview{
  flex-basis:43px!important;height:43px!important;min-height:43px!important;
 }
}

/* v2.0.21 — two visible photo rows, uncropped original orientation.
   Keep the editor viewport fixed: only the gallery scrolls when necessary. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb),
 body.zmpb-open .zmpb-work.templates-open:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){
  grid-template-rows:96px minmax(0,1fr) 150px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb),
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){
  grid-template-rows:114px minmax(0,1fr) 150px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{
  grid-template-columns:repeat(auto-fill,minmax(62px,1fr))!important;
  grid-auto-rows:64px!important;gap:5px!important;
  align-content:start!important;overflow-y:auto!important;overflow-x:hidden!important;
 }
 body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{
  box-sizing:border-box!important;height:64px!important;min-height:64px!important;max-height:64px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:3px!important;background:#f6f4f0!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  object-position:center!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add{
  height:68px!important;min-height:68px!important;max-height:68px!important;
 }
}
/* On short split-screen displays, scale both photo rows rather than scrolling the whole editor. */
@media (max-width:600px) and (max-height:650px){
 body.zmpb-open .zmpb>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb),
 body.zmpb-open .zmpb-work.templates-open:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){grid-template-rows:82px minmax(0,1fr) 122px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){grid-template-rows:100px minmax(0,1fr) 122px!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{grid-auto-rows:51px!important;gap:4px!important;}
 body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{height:51px!important;min-height:51px!important;max-height:51px!important;}
}

/* v2.0.22: original-aspect photo tiles, two-row gallery, persistent drag hint.
   Tiles have widths proportional to image dimensions, not square frames. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
  grid-template-columns:68px minmax(0,1fr)!important;
  grid-template-rows:68px minmax(0,1fr)!important;
  column-gap:7px!important;row-gap:2px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add{
  grid-column:1!important;grid-row:1!important;height:65px!important;min-height:65px!important;max-height:65px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-photo-drag-hint,
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb) .zmpb-photo-drag-hint{
  display:block!important;grid-column:1!important;grid-row:2!important;
  align-self:start!important;justify-self:stretch!important;
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  text-align:center!important;font-size:9px!important;line-height:1.15!important;
  overflow-wrap:break-word!important;color:#666!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{
  display:flex!important;flex-flow:row wrap!important;align-content:flex-start!important;
  align-items:flex-start!important;justify-content:flex-start!important;
  grid-column:2!important;grid-row:1 / 3!important;
  gap:5px!important;overflow-x:hidden!important;overflow-y:auto!important;
 }
 body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{
  flex:0 0 auto!important;box-sizing:border-box!important;
  width:clamp(36px,calc(64px * var(--zmpb-photo-ratio,1.5)),170px)!important;
  min-width:0!important;max-width:100%!important;
  height:64px!important;min-height:64px!important;max-height:64px!important;
  padding:0!important;margin:0!important;border-radius:6px!important;
  background:transparent!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
 }
}
@media (max-width:600px) and (max-height:650px){
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{grid-template-rows:52px minmax(0,1fr)!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library>.zmpb-side-add{height:50px!important;min-height:50px!important;max-height:50px!important;}
 body.zmpb-open .zmpb-side-photo-scroll .zmpb-side-photo-thumb{
  width:clamp(30px,calc(51px * var(--zmpb-photo-ratio,1.5)),135px)!important;
  height:51px!important;min-height:51px!important;max-height:51px!important;
 }
}

/* v2.0.25: compact vertical photo controls on the right, below X. */
@media (max-width:600px),(pointer:coarse){
 .zmpb .slot.has-photo .zmpb-mobile-crop-btn{left:auto!important;right:4px!important;top:32px!important;bottom:auto!important;transform:none!important;width:25px!important;min-width:25px!important;height:25px!important;min-height:25px!important;padding:0!important;border:1px solid #ddd!important;border-radius:50%!important;background:#fff!important;color:#222!important;font-size:0!important;letter-spacing:0!important;box-shadow:0 1px 4px #0003!important;opacity:1!important;}
 .zmpb .slot.has-photo .zmpb-mobile-crop-btn:before{content:'✎';font-size:17px!important;font-weight:600!important;}
 .zmpb .slot.has-photo .delete-frame{top:4px!important;right:4px!important;left:auto!important;transform:none!important;width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;font-size:19px!important;z-index:125!important;}
 .zmpb .slot.has-photo .move-handle{display:grid!important;top:61px!important;right:4px!important;left:auto!important;transform:none!important;width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;padding:0!important;border:1px solid #ddd!important;border-radius:50%!important;background:#fff!important;color:#222!important;font-size:17px!important;z-index:125!important;}
 .zmpb .slot.has-photo .zmpb-clear-photo-btn{display:grid!important;place-items:center!important;top:90px!important;right:4px!important;left:auto!important;transform:none!important;width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;padding:0!important;border:1px solid #ddd!important;border-radius:50%!important;background:#fff!important;color:#222!important;font-size:17px!important;z-index:125!important;}
 .zmpb .slot.has-photo:not(.selected) .zmpb-mobile-crop-btn,.zmpb .slot.has-photo:not(.selected) .move-handle,.zmpb .slot.has-photo:not(.selected) .zmpb-clear-photo-btn,.zmpb .slot.has-photo:not(.selected) .delete-frame{opacity:0!important;pointer-events:none!important;}
 .zmpb .slot.has-photo.selected .zmpb-mobile-crop-btn,.zmpb .slot.has-photo.selected .move-handle,.zmpb .slot.has-photo.selected .zmpb-clear-photo-btn,.zmpb .slot.has-photo.selected .delete-frame{opacity:1!important;pointer-events:auto!important;}
}

/* v2.0.26: only Edit (top left) and X (top right) on selected mobile photo. */
@media (max-width:600px),(pointer:coarse){
 .zmpb .slot.has-photo .zmpb-mobile-crop-btn{
  left:4px!important;right:auto!important;top:4px!important;bottom:auto!important;
  transform:none!important;width:auto!important;min-width:0!important;max-width:calc(100% - 42px)!important;
  height:25px!important;min-height:25px!important;padding:0 8px!important;
  border:1px solid rgba(255,255,255,.85)!important;border-radius:999px!important;
  background:#202020!important;color:#fff!important;font-size:10px!important;
  font-weight:700!important;letter-spacing:0!important;white-space:nowrap!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  z-index:125!important;
 }
 .zmpb .slot.has-photo .zmpb-mobile-crop-btn:before{content:'✎'!important;font-size:12px!important;line-height:1!important;}
 .zmpb .slot.has-photo .delete-frame{top:4px!important;right:4px!important;left:auto!important;transform:none!important;}
 .zmpb .slot.has-photo .move-handle,.zmpb .slot.has-photo .zmpb-clear-photo-btn{display:none!important;opacity:0!important;pointer-events:none!important;}
 .zmpb .slot.has-photo:not(.selected) .zmpb-mobile-crop-btn,.zmpb .slot.has-photo:not(.selected) .delete-frame{opacity:0!important;pointer-events:none!important;}
 .zmpb .slot.has-photo.selected .zmpb-mobile-crop-btn,.zmpb .slot.has-photo.selected .delete-frame{opacity:1!important;pointer-events:auto!important;}
}

/* v2.0.27: fit the complete template previews inside the existing compact panel.
   Do not change the page or photo-gallery dimensions. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title.zmpb-side-mode-tabs{
  height:29px!important;min-height:29px!important;max-height:29px!important;
  margin-bottom:2px!important;padding:0!important;gap:5px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser{gap:4px!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser button{
  flex:0 0 25px!important;width:25px!important;min-width:25px!important;max-width:25px!important;
  height:25px!important;min-height:25px!important;max-height:25px!important;font-size:11px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{
  height:43px!important;min-height:43px!important;max-height:43px!important;
  padding:1px!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
  box-sizing:border-box!important;flex:0 0 53px!important;width:53px!important;
  min-width:53px!important;max-width:53px!important;height:39px!important;
  min-height:39px!important;max-height:39px!important;padding:2px!important;
 }
}

/* v2.0.28: cover-only mobile premium templates fit fully in their panel.
   Keep the inner-page templates, canvas and photo tray unchanged. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library{padding:5px 7px!important;overflow:hidden!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library>.zmpb-side-template-scroll{display:flex!important;flex-direction:column!important;gap:3px!important;overflow:hidden!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-template-heading{display:flex!important;flex:0 0 15px!important;height:15px!important;min-height:15px!important;max-height:15px!important;gap:6px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-theme-section{display:flex!important;flex-direction:column!important;gap:3px!important;min-height:0!important;overflow:hidden!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title{flex:0 0 14px!important;height:14px!important;min-height:14px!important;max-height:14px!important;overflow:hidden!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid{box-sizing:border-box!important;flex:0 0 57px!important;height:57px!important;min-height:57px!important;max-height:57px!important;overflow-x:auto!important;overflow-y:hidden!important;gap:5px!important;padding:1px 1px 3px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card{box-sizing:border-box!important;flex:0 0 76px!important;width:76px!important;min-width:76px!important;max-width:76px!important;height:52px!important;min-height:52px!important;max-height:52px!important;padding:2px!important;gap:1px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>.zmpb-cover-theme-preview{box-sizing:border-box!important;flex:0 0 34px!important;width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;max-height:34px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>strong{flex:0 0 11px!important;font-size:8px!important;line-height:11px!important;}
}

/* v2.0.29: cover templates in ONE visible row on touch/mobile.
   The explanatory headings and basic variants are hidden only in the compact
   mobile strip; premium theme buttons remain accessible via horizontal swipe. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library{
  box-sizing:border-box!important;padding:5px 8px!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library>.zmpb-side-template-scroll{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  gap:7px!important;width:100%!important;height:100%!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-template-heading{
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;
  flex:0 0 76px!important;width:76px!important;min-width:76px!important;max-width:76px!important;
  height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;
  white-space:normal!important;overflow:visible!important;gap:2px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading b{font-size:10px!important;line-height:12px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading b:after{content:' ŠABLONI:';}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading small{display:none!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-theme-section{
  display:flex!important;flex:1 1 0!important;min-width:0!important;width:auto!important;
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;
  flex-direction:row!important;align-items:center!important;gap:0!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title{display:none!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid{
  box-sizing:border-box!important;display:flex!important;flex:1 1 0!important;align-items:center!important;
  width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;max-height:100%!important;
  overflow-x:auto!important;overflow-y:hidden!important;gap:5px!important;padding:1px 1px 3px!important;
  scrollbar-width:thin!important;scrollbar-color:#c7a16a transparent!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card{
  box-sizing:border-box!important;flex:0 0 80px!important;width:80px!important;min-width:80px!important;max-width:80px!important;
  height:65px!important;min-height:65px!important;max-height:65px!important;padding:3px!important;gap:1px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>.zmpb-cover-theme-preview{
  flex:0 0 56px!important;height:56px!important;min-height:56px!important;max-height:56px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>strong{display:none!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-basic-title,
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-template-variants{display:none!important;}
}

/* v2.0.30: cover rail is one actual row; remove duplicate heading in JS. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb),
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb){grid-template-rows:90px minmax(0,1fr) 122px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library{display:grid!important;grid-template-columns:105px minmax(0,1fr)!important;align-items:center!important;column-gap:6px!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:6px 8px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library>.zmpb-side-template-title.zmpb-side-mode-tabs{display:flex!important;grid-column:1!important;grid-row:1!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:0!important;margin:0!important;overflow:hidden!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-title [data-side-mode="templates"]{font-size:12px!important;white-space:nowrap!important;padding:0!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-work>.zmpb-side-template-library>.zmpb-side-template-scroll{display:block!important;grid-column:2!important;grid-row:1!important;box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-theme-section{display:block!important;box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-title,
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-template-heading,
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-cover-basic-title,
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-side-template-scroll>.zmpb-template-variants{display:none!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid{display:flex!important;align-items:center!important;box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow-x:auto!important;overflow-y:hidden!important;gap:5px!important;margin:0!important;padding:2px 1px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card{box-sizing:border-box!important;flex:0 0 75px!important;width:75px!important;min-width:75px!important;max-width:75px!important;height:66px!important;min-height:66px!important;max-height:66px!important;margin:0!important;padding:3px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>.zmpb-cover-theme-preview{height:56px!important;min-height:56px!important;max-height:56px!important;flex:0 0 56px!important;}
 body.zmpb-open .zmpb.zmpb-cover-page-active .zmpb-cover-theme-grid>.zmpb-cover-theme-card>strong{display:none!important;}
}

/* v2.0.38: diskretno brisanje fotografije iz biblioteke, bez promjene omjera minijatura. */
.zmpb .photo-thumb .zmpb-photo-delete{position:absolute;left:4px;top:4px;z-index:12;width:25px;height:25px;min-width:25px;min-height:25px;padding:0;border:1px solid #fff;background:#a9222b;color:#fff;border-radius:50%;font:700 20px/22px Arial,sans-serif;cursor:pointer;display:grid;place-items:center;touch-action:manipulation}
.zmpb .zmpb-side-photo-scroll>.zmpb-photo-item{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
.zmpb .zmpb-side-photo-scroll>.zmpb-photo-item>.zmpb-side-photo-thumb{max-width:100%;margin:0}
.zmpb .zmpb-side-photo-scroll .zmpb-side-photo-delete{position:absolute;right:2px;top:2px;z-index:12;width:22px;height:22px;min-width:22px;min-height:22px;padding:0;border:1px solid #fff;background:#a9222b;color:#fff;border-radius:50%;font:700 17px/19px Arial,sans-serif;cursor:pointer;display:grid;place-items:center;touch-action:manipulation}

/* Keep each image and its delete control in the same flex item. */
body.zmpb-open .zmpb-side-photo-scroll>.zmpb-photo-item{flex:0 0 62px;width:100%;height:62px;min-height:62px;max-width:100%}
body.zmpb-open .zmpb-side-photo-scroll>.zmpb-photo-item>.zmpb-side-photo-thumb{width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;flex:1 1 auto!important}
@media(max-width:600px),(pointer:coarse){body.zmpb-open .zmpb-side-photo-scroll>.zmpb-photo-item{flex:0 0 auto!important;width:clamp(36px,calc(64px * var(--zmpb-photo-ratio,1.5)),170px)!important;height:64px!important;min-height:64px!important}}
@media(max-width:600px) and (max-height:650px){body.zmpb-open .zmpb-side-photo-scroll>.zmpb-photo-item{width:clamp(30px,calc(51px * var(--zmpb-photo-ratio,1.5)),135px)!important;height:51px!important;min-height:51px!important}}

/* v2.0.41 — persistent add-frame control when the contextual overlay is unavailable */
.zmpb #zmpb-add-field-header{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin:4px 8px;padding:5px 10px;border:1px dashed #bd9453;border-radius:7px;background:#fffaf1;color:#654719;font-size:12px;font-weight:750;cursor:pointer;position:relative;z-index:5}.zmpb #zmpb-add-field-header[hidden]{display:none!important}

/* v2.0.43: remove the obsolete add-frame button above the page. */
.zmpb #zmpb-add-field-header{display:none!important}

/* v2.0.45 — obavijest o kvalitetu prikaza i originalima */
.zmpb-preview-quality-note{margin:8px 10px 12px;padding:9px 11px;border:1px solid #d9c9a9;border-radius:9px;background:#fff9ed;color:#51432f;font-size:12px;line-height:1.4;}
@media(max-width:600px),(pointer:coarse){body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-preview-quality-note{display:block!important;width:min(680px,94%)!important;box-sizing:border-box;margin:7px auto 8px!important;font-size:11px!important;padding:7px 9px!important;}body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-preview-quality-note{display:none!important;}}

/* v2.0.47: Magazin A4 cover — hide dashed preparation guides in editor only. */
.zmpb.zmpb-mag-a4-cover .zmpb-cover-workspace-guides .zmpb-cover-safe,
.zmpb.zmpb-mag-a4-cover .zmpb-cover-workspace-guides .zmpb-cover-center-seam{display:none!important}

/* v2.0.49 Smart Design izbor */
.zmpb-auto-modal{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.58);display:grid;place-items:center;padding:18px}.zmpb-auto-modal[hidden]{display:none!important}.zmpb-auto-card{position:relative;width:min(520px,100%);background:#fff;border-radius:18px;padding:24px;box-shadow:0 22px 70px rgba(0,0,0,.3)}.zmpb-auto-card h3{margin:0 38px 8px 0;font-size:22px}.zmpb-auto-card>p{color:#666;margin:0 0 16px}.zmpb-auto-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#f2f2f2}.zmpb-auto-styles{display:grid;gap:9px}.zmpb-auto-styles label{display:flex;gap:10px;align-items:flex-start;border:1px solid #ddd5ca;border-radius:12px;padding:12px;cursor:pointer}.zmpb-auto-styles label:has(input:checked){border:2px solid #c99a51;background:#fff9ef;padding:11px}.zmpb-auto-styles input{margin-top:3px}.zmpb-auto-styles span{display:grid;gap:3px}.zmpb-auto-styles small{color:#706a62;line-height:1.3}.zmpb-auto-warning{margin-top:14px!important;padding:10px 12px;background:#fff4df;border-radius:9px;color:#79531e!important;font-size:13px}.zmpb-auto-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.zmpb-auto-actions button{min-height:42px;padding:9px 16px;border-radius:9px}.zmpb-auto-create{background:#111;color:#fff;border:1px solid #111;font-weight:700}@media(max-width:600px){.zmpb-auto-card{padding:18px;border-radius:15px}.zmpb-auto-card h3{font-size:19px}.zmpb-auto-styles label{padding:10px}.zmpb-auto-styles label:has(input:checked){padding:9px}.zmpb-auto-actions{display:grid;grid-template-columns:1fr 1fr}.zmpb-auto-actions button{width:100%}}

/* v2.0.54 compact preview notice + photo sorting */
.zmpb-preview-quality-note{margin:7px 0 7px!important;padding:6px 8px!important;font-size:11px!important;line-height:1.25!important;border-radius:7px!important;}
.zmpb-photo-sort{display:flex;align-items:center;gap:7px;margin:6px 0 8px;font-size:12px;}
.zmpb-photo-sort label{font-weight:700;white-space:nowrap;}
.zmpb-photo-sort select{min-width:0;flex:1;padding:6px 7px!important;font-size:12px!important;border-radius:7px!important;}
@media(max-width:600px),(pointer:coarse){body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-preview-quality-note{margin:5px auto 6px!important;padding:5px 7px!important;font-size:10px!important;line-height:1.2!important;}body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-photo-sort{width:min(680px,94%);margin:5px auto 7px;font-size:11px;}body.zmpb-open .zmpb-drawer[data-drawer="photos"] .zmpb-photo-sort select{padding:5px 6px!important;font-size:11px!important;}}
/* v2.0.56: photo panel order requested: Add > Auto > Sort > Info > photos */
body.zmpb-open .zmpb-work>.zmpb-photos{display:flex!important;flex-direction:column!important;}
body.zmpb-open .zmpb-work>.zmpb-photos .drawer-head{order:0!important;}
body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-upload-trigger{order:10!important;}
body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-upload-help{order:11!important;}
body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-files{order:12!important;}
body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-auto{order:20!important;}
body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-photo-sort{order:30!important;}
body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-preview-quality-note{order:40!important;}
body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-auto-help{order:41!important;}
body.zmpb-open .zmpb-work>.zmpb-photos .zmpb-photo-tips{order:42!important;}
body.zmpb-open .zmpb-work>.zmpb-photos .photo-filters{order:43!important;}
body.zmpb-open .zmpb-work>.zmpb-photos #zmpb-library{order:50!important;}
/* v2.0.57 – Smart Design controls */
.zmpb-auto-options{display:grid;gap:11px;margin-top:14px}.zmpb-auto-options>label{display:grid;gap:6px}.zmpb-auto-options b{font-size:13px}.zmpb-auto-options select{width:100%;min-height:42px;border:1px solid #d8d1c7;border-radius:9px;background:#fff;padding:8px 10px}.zmpb-auto-options .zmpb-auto-check{grid-template-columns:auto 1fr;align-items:start;border:1px solid #ddd5ca;border-radius:10px;padding:10px}.zmpb-auto-check input{margin-top:3px}.zmpb-auto-check span{display:grid;gap:2px}.zmpb-auto-check small{color:#706a62}

/* v2.0.59 — Smart Design page-count slider */
.zmpb-auto-pages{margin-top:14px;padding:12px 0 2px}.zmpb-auto-pages-head,.zmpb-auto-pages-scale{display:flex;align-items:center;justify-content:space-between;gap:10px}.zmpb-auto-pages-head strong{font-size:14px}.zmpb-auto-pages input[type=range]{width:100%;margin:10px 0 6px;accent-color:#111}.zmpb-auto-pages-scale{font-size:11px;color:#777}.zmpb-auto-pages-scale span:nth-child(2){text-align:center;flex:1;font-size:12px;color:#555}@media(max-width:600px){.zmpb-auto-pages{padding-top:8px}.zmpb-auto-pages input[type=range]{min-height:36px}}

/* v2.0.60 — Smart Design: density integrated with page slider + live price */
.zmpb-auto-pages{background:#f7f7f5;border:1px solid #e2e0da;border-radius:12px;padding:13px!important;margin-top:10px!important}.zmpb-auto-pages-head{align-items:flex-start!important}.zmpb-auto-pages-head>div{min-width:0}.zmpb-auto-pages-head small{display:block;margin-top:3px;max-width:420px;font-size:11px;line-height:1.3;color:#777;font-weight:500}.zmpb-auto-pages-head>strong{white-space:nowrap;font-size:16px!important}.zmpb-auto-density-inline{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important;margin:12px 0 4px!important}.zmpb-auto-density-inline span{font-size:12px;font-weight:800;color:#333}.zmpb-auto-density-inline select{margin:0!important;min-width:0!important;height:38px!important}.zmpb-auto-pages input[type=range]{margin:8px 0 3px!important}.zmpb-auto-price{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #ddd9d1}.zmpb-auto-price span{font-size:12px;color:#555;font-weight:700}.zmpb-auto-price strong{font-size:17px;color:#111;white-space:nowrap}@media(max-width:600px){.zmpb-auto-density-inline{grid-template-columns:1fr!important;gap:5px!important}.zmpb-auto-pages-head{gap:6px!important}.zmpb-auto-pages-head small{font-size:10px}.zmpb-auto-pages-head>strong{font-size:14px!important}}
/* v2.0.61 – jednostavniji Smart Design izbor */
.zmpb-auto-recommend{margin:8px 0 12px;padding:8px 10px;border-radius:8px;background:#fff;color:#555;font-size:12px;font-weight:700;text-align:center}.zmpb-auto-density-choice{padding-top:10px;border-top:1px solid #ddd9d1}.zmpb-auto-density-choice>b{display:block;margin-bottom:8px;font-size:12px}.zmpb-auto-density-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.zmpb-auto-density-buttons button{min-width:0;padding:9px 6px;border:1px solid #d8d5ce;border-radius:9px;background:#fff;color:#222;text-align:center;cursor:pointer}.zmpb-auto-density-buttons button strong,.zmpb-auto-density-buttons button small{display:block}.zmpb-auto-density-buttons button strong{font-size:11px;line-height:1.2}.zmpb-auto-density-buttons button small{margin-top:3px;font-size:9px;line-height:1.2;color:#777}.zmpb-auto-density-buttons button.active{border:2px solid #111;background:#f1f1ef;padding:8px 5px}.zmpb-auto-pages-scale span:first-child,.zmpb-auto-pages-scale span:last-child{font-weight:800;color:#666}@media(max-width:600px){.zmpb-auto-density-buttons{grid-template-columns:1fr}.zmpb-auto-density-buttons button{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:8px 10px}.zmpb-auto-density-buttons button small{margin:0 0 0 8px;text-align:right}.zmpb-auto-density-buttons button.active{padding:7px 9px}}

/* v2.0.62 – napomena u Smart Design prozoru */
.zmpb-auto-edit-note{margin:10px 0 12px;padding:9px 11px;border:1px solid rgba(0,0,0,.10);border-radius:10px;background:rgba(0,0,0,.035);font-size:13px;line-height:1.4;color:#444}
.zmpb-auto-edit-note strong{color:#222}


/* v2.0.63 — brzo premještanje cijelog lista na drugu poziciju */
.zmpb-move-sheet{display:flex;align-items:center;gap:6px;margin-left:8px;font-size:11px;font-weight:600;white-space:nowrap}
.zmpb-move-sheet span{opacity:.68}
.zmpb-move-sheet select{width:auto;max-width:154px;min-height:32px;height:32px;border-radius:8px;padding:2px 25px 2px 8px;font-size:12px}
/* v2.0.64: premjestanje lista ostaje kompaktno u postojecoj navigaciji i ne uzima novi red editora. */
@media(max-width:600px){.zmpb-toolbar{flex-wrap:nowrap!important;gap:4px}.zmpb-move-sheet{order:initial;width:auto;flex:0 0 auto;margin:0 0 0 2px}.zmpb-move-sheet span{display:none}.zmpb-move-sheet select{width:68px;max-width:68px;min-height:32px;height:32px;padding:2px 20px 2px 6px;font-size:11px}.zmpb-toolbar>div{min-width:0;flex:1}.zmpb-toolbar #page-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}}
@media(max-width:420px){.zmpb-move-sheet select{width:62px;max-width:62px}.zmpb-toolbar{gap:2px}.zmpb-toolbar button{flex-basis:36px!important}}

/* v2.0.65: tekst kontrole promijenjen u Premjesti list na… */

/* v2.0.66 Smart Wedding scene grouping */
.zmpb-smart-wedding{margin-top:2px}.zmpb-smart-wedding .zmpb-auto-check{border:1px solid #dfd5c5;border-radius:12px;padding:11px;background:#fffaf2}.zmpb-smart-wedding-note{margin:7px 2px 0!important;font-size:12px;line-height:1.35;color:#6d604d!important}.zmpb-smart-wedding-note[hidden]{display:none!important}@media(max-width:600px){.zmpb-smart-wedding .zmpb-auto-check{padding:9px}.zmpb-smart-wedding .zmpb-auto-check small{font-size:11px;line-height:1.25}}


/* v2.0.67 — mobilni editor: čitljiv Premjesti list i podignuta biblioteka fotografija. */
@media(max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb-move-sheet select{width:108px!important;max-width:108px!important;min-width:108px!important;padding:2px 22px 2px 7px!important;font-size:10px!important;font-weight:700!important;}
 body.zmpb-open .zmpb-toolbar{gap:3px!important;}
 body.zmpb-open .zmpb-toolbar>div{flex:1 1 auto!important;min-width:86px!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{transform:translateY(-10px)!important;margin-bottom:-10px!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-photo-drag-hint,
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb) .zmpb-photo-drag-hint{display:block!important;visibility:visible!important;opacity:1!important;font-size:9px!important;line-height:1.12!important;}
}
@media(max-width:420px){
 body.zmpb-open .zmpb-move-sheet select{width:102px!important;max-width:102px!important;min-width:102px!important;font-size:9.5px!important;}
 body.zmpb-open .zmpb-toolbar button{flex-basis:34px!important;min-width:34px!important;}
}


/* v2.0.68 — mobilni photo tray više iznad donje navigacije + uredan Smart Wedding checkbox. */
.zmpb-smart-wedding .zmpb-auto-check{
 display:grid!important;
 grid-template-columns:18px minmax(0,1fr)!important;
 align-items:start!important;
 column-gap:9px!important;
 width:100%!important;
 box-sizing:border-box!important;
}
.zmpb-smart-wedding .zmpb-auto-check>input{
 grid-column:1!important;
 margin:3px 0 0!important;
 width:16px!important;
 height:16px!important;
}
.zmpb-smart-wedding .zmpb-auto-check>span{
 grid-column:2!important;
 min-width:0!important;
 display:grid!important;
 gap:3px!important;
}
.zmpb-smart-wedding .zmpb-auto-check b,
.zmpb-smart-wedding .zmpb-auto-check small{display:block!important;}
@media(max-width:600px),(pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work,
 body.zmpb-open .zmpb-work.templates-open{
  grid-template-rows:96px minmax(0,1fr) 112px!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open{
  grid-template-rows:114px minmax(0,1fr) 112px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
  transform:none!important;
  margin-bottom:0!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-photo-drag-hint,
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library:has(.zmpb-side-photo-scroll .zmpb-side-photo-thumb) .zmpb-photo-drag-hint{
  display:block!important;visibility:visible!important;opacity:1!important;
  font-size:10px!important;line-height:1.15!important;
 }
}
\n\n/* v2.0.70 — touch/mobile landscape: side rails leave maximum room for the book. */
@media (orientation:landscape) and (pointer:coarse) and (max-height:700px){
 body.zmpb-open .zmpb>.zmpb-work,
 body.zmpb-open .zmpb-work,
 body.zmpb-open .zmpb-work.templates-open,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr) 92px!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:5px!important;
  align-items:stretch!important;
  min-height:0!important;
  margin-top:4px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library{
  display:flex!important;grid-column:1!important;grid-row:1!important;
  position:relative!important;top:auto!important;transform:none!important;
  width:82px!important;height:auto!important;min-height:0!important;
  max-height:none!important;margin:0!important;align-self:stretch!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-canvas{
  grid-column:2!important;grid-row:1!important;min-width:0!important;
  width:100%!important;height:100%!important;min-height:0!important;
  padding:5px!important;align-self:stretch!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library{
  display:flex!important;grid-column:3!important;grid-row:1!important;
  position:relative!important;top:auto!important;width:92px!important;
  min-width:92px!important;max-width:92px!important;height:auto!important;
  min-height:0!important;max-height:none!important;align-self:stretch!important;
  padding:4px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-layouts,
 body.zmpb-open .zmpb-work>.zmpb-photos{display:none!important}
 body.zmpb-open .zmpb-side-photo-thumb{flex-basis:48px!important;height:48px!important;min-height:48px!important}
 body.zmpb-open .zmpb-side-add{height:34px!important;font-size:18px!important}
 body.zmpb-open .zmpb-side-smart{min-height:34px!important}
 body.zmpb-open .zmpb-photo-drag-hint{font-size:8px!important;line-height:1.05!important;margin:1px 0!important}
 body.zmpb-open .zmpb-side-template-btn{flex-basis:44px!important;height:44px!important;min-height:44px!important}
 body.zmpb-open .zmpb-side-template-title{font-size:8px!important;padding:2px 0!important}
 body.zmpb-open .zmpb-side-template-reroll{min-height:30px!important}
 body.zmpb-open .zmpb-side-template-close{display:none!important}
 body.zmpb-open .zmpb-canvas .zmpb-toolbar{margin-bottom:3px!important;min-height:34px!important}
 body.zmpb-open .zmpb-canvas>#spread-strip{margin-top:3px!important;min-height:34px!important;max-height:38px!important}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:520px){
 body.zmpb-open .zmpb>.zmpb-work,
 body.zmpb-open .zmpb-work,
 body.zmpb-open .zmpb-work.templates-open{grid-template-columns:72px minmax(0,1fr) 80px!important;gap:3px!important}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library{width:72px!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library{width:80px!important;min-width:80px!important;max-width:80px!important}
}

/* v2.0.84 — centralni Smart Wedding AI progress overlay */
.zmpb-ai-overlay[hidden]{display:none!important}
.zmpb-ai-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(10,10,12,.76);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);cursor:wait}
.zmpb-ai-progress-card{width:min(480px,calc(100vw - 36px));padding:30px 28px 27px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:#171719;color:#fff;text-align:center;box-shadow:0 28px 80px rgba(0,0,0,.48)}
.zmpb-ai-spark{width:52px;height:52px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#f2bd5a;color:#171719;font-size:27px;font-weight:800}
.zmpb-ai-progress-card h2{margin:0 0 8px!important;color:#fff!important;font-size:24px!important;line-height:1.15!important}
.zmpb-ai-progress-card p{margin:0 0 18px!important;color:#f4f1ea!important;font-size:17px!important;font-weight:700!important}
.zmpb-ai-progress-track{height:13px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.14);box-shadow:inset 0 1px 3px rgba(0,0,0,.35)}
.zmpb-ai-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:#f2bd5a;transition:width .25s ease}
.zmpb-ai-progress-card strong{display:block;margin:12px 0 7px;color:#fff;font-size:15px}
.zmpb-ai-progress-card small{display:block;color:#bbb;font-size:12px;line-height:1.45}
html.zmpb-ai-busy,html.zmpb-ai-busy body{overflow:hidden!important}
@media(max-width:600px){.zmpb-ai-overlay{padding:16px}.zmpb-ai-progress-card{padding:25px 20px 23px;border-radius:17px}.zmpb-ai-progress-card h2{font-size:21px!important}.zmpb-ai-progress-card p{font-size:15px!important}.zmpb-ai-progress-track{height:12px}}

/* v2.0.98 — Auto Design modal must stay above every onboarding/mobile overlay. */
#zmpb-auto-modal{z-index:2147483647!important;}
body.zmpb-guide-open #zmpb-auto-modal:not([hidden]){display:grid!important;}

/* v2.0.99 — Auto Design modal: mobile viewport scrolling */
#zmpb-auto-modal:not([hidden]){
  display:block!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:18px!important;
}
#zmpb-auto-modal .zmpb-auto-card{
  margin:0 auto!important;
  max-height:none!important;
  overflow:visible!important;
}
@media(max-width:600px){
  #zmpb-auto-modal:not([hidden]){
    padding:12px!important;
    padding-top:max(12px,env(safe-area-inset-top))!important;
    padding-bottom:max(18px,env(safe-area-inset-bottom))!important;
    touch-action:pan-y!important;
  }
  #zmpb-auto-modal .zmpb-auto-card{
    width:100%!important;
    min-height:0!important;
    margin:0 auto!important;
  }
}


/* v3.0.1 — always-visible Auto Design shortcut on mobile and Fold.
   Uses the existing #zmpb-auto workflow; desktop remains unchanged. */
#zmpb-mobile-auto{display:none}
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open #zmpb-mobile-auto{display:flex!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick #zmpb-mobile-auto{background:#fff8e8!important;border-color:#d5a454!important;color:#6d4b14!important}
}


/* v3.0.2 — move Auto Design from the app bar into the mobile/Fold photo panel.
   Reuses the existing .zmpb-side-smart -> #zmpb-auto handler. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open #zmpb-mobile-auto{display:none!important}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
   grid-template-columns:58px 92px minmax(0,1fr)!important;
 }
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-add{
   grid-column:1!important;grid-row:1!important;
 }
 body.zmpb-open .zmpb-side-photo-library>.zmpb-side-smart{
   grid-column:2!important;grid-row:1!important;
   display:flex!important;align-self:start!important;
   align-items:center!important;justify-content:center!important;
   flex-direction:column!important;gap:3px!important;
   width:92px!important;min-width:92px!important;max-width:92px!important;
   height:78px!important;min-height:78px!important;max-height:78px!important;
   margin:0!important;padding:5px 4px!important;
   border:1px solid #c79443!important;border-radius:8px!important;
   background:#fff8e8!important;color:#6d4b14!important;
   font-weight:800!important;text-align:center!important;cursor:pointer!important;
 }
 body.zmpb-open .zmpb-side-smart-icon{font-size:20px!important;line-height:20px!important}
 body.zmpb-open .zmpb-side-smart-label{font-size:9px!important;line-height:1.1!important}
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library .zmpb-side-photo-scroll{
   grid-column:3!important;grid-row:1!important;
 }
}


/* v3.0.5 — Chrome zoom compact desktop safety.
   At 150% zoom a 1024px laptop reports about 683 CSS px. Keep the real desktop
   three-column workspace alive for fine-pointer devices down to 601 CSS px. */
@media (min-width:601px) and (max-width:700px) and (pointer:fine){
 body.zmpb-open .zmpb-work{display:grid!important;grid-template-columns:150px minmax(0,1fr) 170px!important;gap:6px!important;min-width:0!important;}
 body.zmpb-open .zmpb-work>.zmpb-photos{display:block!important;visibility:visible!important;grid-column:1!important;width:150px!important;min-width:150px!important;max-width:150px!important;overflow-y:auto!important;}
 body.zmpb-open .zmpb-work>.zmpb-canvas{display:flex!important;grid-column:2!important;min-width:0!important;width:100%!important;}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library{grid-column:3!important;width:170px!important;min-width:170px!important;max-width:170px!important;}
 body.zmpb-open .zmpb-side-photo-library{display:none!important;}
}

/* v3.0.11 — touch layout lock.
   A touch device always uses the same stacked editor structure at every browser zoom
   and in both orientations. This intentionally overrides the old landscape side-rail
   rules which could mix desktop rails with the mobile bottom toolbar. */
@media (pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work,
 body.zmpb-open .zmpb-work,
 body.zmpb-open .zmpb-work.templates-open,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open{
   display:grid!important;
   grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:96px minmax(0,1fr) 112px!important;
   gap:6px!important;
   padding:6px!important;
   min-width:0!important;
   min-height:0!important;
   overflow:hidden!important;
   align-items:stretch!important;
 }
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work,
 body.zmpb-open .zmpb.zmpb-cover-page-active>.zmpb-work.templates-open{
   grid-template-rows:114px minmax(0,1fr) 112px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{
   display:block!important;grid-column:1!important;grid-row:1!important;
   position:relative!important;inset:auto!important;transform:none!important;
   width:100%!important;min-width:0!important;max-width:none!important;
   height:100%!important;min-height:0!important;max-height:100%!important;
   margin:0!important;align-self:stretch!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-canvas,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{
   display:flex!important;grid-column:1!important;grid-row:2!important;
   position:relative!important;inset:auto!important;transform:none!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   height:100%!important;min-height:0!important;max-height:none!important;
   margin:0!important;align-self:stretch!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-photo-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-photo-library{
   display:flex!important;grid-column:1!important;grid-row:3!important;
   position:relative!important;inset:auto!important;transform:none!important;
   width:100%!important;min-width:0!important;max-width:none!important;
   height:100%!important;min-height:0!important;max-height:100%!important;
   margin:0!important;align-self:stretch!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-layouts,
 body.zmpb-open .zmpb-work>.zmpb-photos{display:none!important}
 body.zmpb-open .zmpb-mobilebar{display:flex!important}
}

/* v3.0.12 — mobile toolbar drawers are mutually exclusive.
   v3.0.11 locks the touch workspace rails, but toolbar actions must still be
   allowed to open their real drawer above that workspace. */
@media (pointer:coarse), (max-width:600px){
 body.zmpb-open.zmpb-user-drawer-open .zmpb-work>.zmpb-drawer.is-open{
   display:block!important;
   position:fixed!important;
   left:8px!important;right:8px!important;top:auto!important;
   bottom:68px!important;
   width:auto!important;min-width:0!important;max-width:none!important;
   height:auto!important;min-height:0!important;max-height:68vh!important;
   margin:0!important;padding:14px!important;
   overflow:auto!important;
   z-index:99998!important;
   visibility:visible!important;opacity:1!important;pointer-events:auto!important;
   transform:translateY(0)!important;
   border-radius:16px 16px 8px 8px!important;
   background:#faf8f5!important;
   box-shadow:0 -10px 40px rgba(0,0,0,.28)!important;
 }
 body.zmpb-open.zmpb-user-drawer-open .zmpb-work>.zmpb-photos.zmpb-drawer.is-open{
   grid-column:auto!important;grid-row:auto!important;
 }
 body.zmpb-open.zmpb-user-drawer-open .zmpb-work>.zmpb-layouts.zmpb-drawer.is-open{
   grid-column:auto!important;grid-row:auto!important;
 }
}
\n/* v3.0.14 — explicit production guides for trim/safe/fold zones */
.print-guide:before{content:attr(data-label);position:absolute;left:4px;top:3px;padding:2px 5px;border-radius:3px;background:rgba(255,255,255,.9);font:700 9px/1.2 Arial,sans-serif;letter-spacing:.02em;color:#5f421b;white-space:nowrap}
.bleed-guide:before{color:#9b2020}.zmpb-fold-risk{position:absolute;top:0;bottom:0;z-index:19;pointer-events:none;background:repeating-linear-gradient(90deg,rgba(214,145,26,.10),rgba(214,145,26,.10) 5px,rgba(214,145,26,.18) 5px,rgba(214,145,26,.18) 10px);border-left:1px dashed rgba(170,100,0,.8);border-right:1px dashed rgba(170,100,0,.8)}
.zmpb-fold-risk span{position:absolute;top:24px;left:50%;transform:translateX(-50%) rotate(-90deg);transform-origin:center;background:#fff8e5;color:#8a5a00;padding:2px 5px;border-radius:3px;font:700 9px Arial,sans-serif;white-space:nowrap}

.zmpb-page-text.zmpb-safe-warning{outline:3px solid #d63638!important;outline-offset:2px!important}.zmpb-page-text.zmpb-safe-warning:after{content:'⚠ PREBLIZU RUBU / PREGIBU';position:absolute;left:50%;bottom:100%;transform:translateX(-50%);background:#d63638;color:#fff;padding:3px 6px;border-radius:4px;font:700 9px Arial,sans-serif;white-space:nowrap;z-index:99}

/* v3.0.20 — optional client-editable Premium spine text */
.zmpb-cover-spine-text-btn{pointer-events:auto!important;position:absolute;top:58px;transform:translateX(-50%);z-index:12;border:1px solid #9a6b2f;background:#fff8e8;color:#5b3b12;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.zmpb-cover-spine-text-btn:hover{background:#fff1cc}
@media(max-width:700px){.zmpb-cover-spine-text-btn{top:52px;font-size:10px;padding:5px 8px}}

/* v3.0.22 — clearer client safe-zone guidance */
.zmpb-safe-zone-note{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:24;display:flex;align-items:center;gap:8px;max-width:min(720px,82%);padding:7px 10px;border:1px solid rgba(154,107,47,.55);border-radius:8px;background:rgba(255,250,240,.94);box-shadow:0 2px 8px rgba(0,0,0,.08);color:#4d3a21;font:600 10px/1.3 Arial,sans-serif;pointer-events:none}
.zmpb-safe-zone-note b{white-space:nowrap;font-size:10px;letter-spacing:.04em}.zmpb-safe-zone-note span{font-weight:500}
@media(max-width:700px){.zmpb-safe-zone-note{bottom:6px;max-width:88%;padding:5px 7px;font-size:8px;gap:5px}.zmpb-safe-zone-note b{font-size:8px}}

/* v3.0.23: clickable spine text + clear client safe-zone guidance */
.zmpb-cover-safe-caption{position:absolute;left:50%;top:10px;transform:translateX(-50%);z-index:14;max-width:min(720px,72%);padding:5px 9px;border-radius:7px;background:rgba(255,248,232,.94);border:1px solid #c89b5a;color:#5b4932;font-size:10px;font-weight:700;line-height:1.3;text-align:center;pointer-events:none}
.zmpb-cover-spine-text-btn{pointer-events:auto!important}
.zmpb-cover-workspace-guides .zmpb-cover-spine-text-btn{pointer-events:auto!important}
@media(max-width:700px){.zmpb-cover-safe-caption{top:6px;font-size:9px;max-width:68%;padding:4px 7px}}
/* v3.0.24 — visual Premium cover previews. Demo imagery is UI-only and never saved. */
.zmpb-cover-theme-preview{background-size:cover!important;background-position:center 44%!important}
.zmpb-cover-theme-preview:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.38));z-index:0}
.zmpb-cover-theme-preview i,.zmpb-cover-theme-preview em{text-shadow:0 1px 3px rgba(0,0,0,.72)}
.zmpb-cover-theme-card:nth-child(4) .zmpb-cover-theme-preview{color:#fff}
.zmpb-demo-photo{overflow:hidden;background:#ddd!important}
.zmpb-demo-photo>img{width:100%;height:100%;object-fit:cover;object-position:center 44%;display:block;pointer-events:none;filter:saturate(.96)}
.zmpb-demo-photo .zmpb-demo-badge{position:absolute;left:50%;bottom:3%;transform:translateX(-50%);z-index:8;padding:5px 9px;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font:600 8px/1.2 Arial,sans-serif;letter-spacing:.05em;white-space:nowrap;pointer-events:none;text-transform:uppercase}
\n\n/* v3.0.26 — cleaner cover guides + reliable spine text */
.zmpb.zmpb-cover-page-active .zmpb-cover-safe,
.zmpb.zmpb-cover-page-active .zmpb-cover-safe-caption,
.zmpb.zmpb-cover-page-active .zmpb-safe-zone-note{display:none!important}
.zmpb.zmpb-cover-page-active .safe-guide:before{
 content:"SIGURNA ZONA"!important;
 left:-1px!important;top:50%!important;
 transform:translate(-100%,-50%) rotate(-90deg)!important;
 transform-origin:right center!important;
 background:rgba(255,248,232,.96)!important;
 border:1px solid rgba(183,139,69,.75)!important;
 padding:4px 7px!important;border-radius:5px!important;
 font-size:9px!important;letter-spacing:.04em!important;
}
.zmpb.zmpb-cover-page-active .bleed-guide:before{
 left:auto!important;right:-1px!important;top:50%!important;
 transform:translate(100%,-50%) rotate(90deg)!important;
 transform-origin:left center!important;
}
.zmpb-cover-spine-text-btn{top:74px!important;z-index:160!important;pointer-events:auto!important}
.zmpb.zmpb-cover-page-active #spread-wide-layer .zmpb-page-text{z-index:100!important}
.zmpb.zmpb-cover-page-active #spread-wide-layer .zmpb-page-text[data-side="spread"]{pointer-events:auto!important}
@media(max-width:700px){.zmpb-cover-spine-text-btn{top:62px!important}.zmpb.zmpb-cover-page-active .safe-guide:before{font-size:7px!important;padding:3px 5px!important}}
\n/* v3.0.27 — restore visible cover safe zone + reverse spine reading direction */
.zmpb.zmpb-cover-page-active .safe-guide{
 display:block!important;
 visibility:visible!important;
 opacity:1!important;
 border:2px dashed rgba(183,139,69,.95)!important;
 z-index:45!important;
}
.zmpb.zmpb-cover-page-active .safe-guide:before{
 content:"SIGURNA ZONA"!important;
 left:5px!important;right:auto!important;top:50%!important;
 transform:translateY(-50%) rotate(-90deg)!important;
 transform-origin:center center!important;
 background:rgba(255,248,232,.96)!important;
 border:1px solid rgba(183,139,69,.75)!important;
 color:#6b4b1e!important;
 padding:4px 7px!important;border-radius:5px!important;
 font:800 9px/1 Arial,sans-serif!important;letter-spacing:.04em!important;
 white-space:nowrap!important;
}
@media(max-width:700px){
 .zmpb.zmpb-cover-page-active .safe-guide{border-width:1px!important}
 .zmpb.zmpb-cover-page-active .safe-guide:before{left:3px!important;font-size:7px!important;padding:3px 5px!important}
}
\n/* v3.0.33 — spine text affordance follows the physical spine instead of floating horizontally. */
.zmpb-cover-spine-text-btn{
  top:50%!important;
  left:auto;
  transform:translate(-50%,-50%) rotate(90deg)!important;
  transform-origin:center center!important;
  z-index:160!important;
  min-width:0!important;
  max-width:min(58cqh,420px)!important;
  padding:3px 7px!important;
  border:1px dashed rgba(154,107,47,.72)!important;
  border-radius:5px!important;
  background:rgba(255,248,232,.78)!important;
  box-shadow:none!important;
  color:#5b3b12!important;
  font-size:9px!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:.02em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.zmpb-cover-spine-text-btn:hover,.zmpb-cover-spine-text-btn:focus-visible{background:#fff1cc!important;outline:2px solid rgba(154,107,47,.3);outline-offset:2px}
@media(max-width:700px){.zmpb-cover-spine-text-btn{top:50%!important;font-size:7px!important;padding:2px 5px!important;max-width:42cqh!important}}

/* v3.0.36 — hard override: keep spine-text affordance at the geometric center of the cover. */
.zmpb.zmpb-cover-page-active .zmpb-cover-spine-text-btn,
.zmpb-cover-workspace-guides .zmpb-cover-spine-text-btn,
.zmpb-cover-spine-text-btn{
  top:50%!important;
  transform:translate(-50%,-50%) rotate(90deg)!important;
  transform-origin:center center!important;
}
@media(max-width:700px){
 .zmpb.zmpb-cover-page-active .zmpb-cover-spine-text-btn,
 .zmpb-cover-workspace-guides .zmpb-cover-spine-text-btn,
 .zmpb-cover-spine-text-btn{top:50%!important;transform:translate(-50%,-50%) rotate(90deg)!important}
}
\n\n/* v3.0.38 — keep spine text controls beside the selected text, never at the remote edge of its rotated box. */
.zmpb .zmpb-page-text[data-spine-text="1"] .zmpb-text-size-controls{
  left:50%!important;
  right:auto!important;
  top:calc(50% + 34px)!important;
  gap:5px!important;
  transform:translate(-50%,-50%) rotate(-90deg)!important;
  transform-origin:center center!important;
}
.zmpb .zmpb-page-text[data-spine-text="1"] .zmpb-text-size-controls button{
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;font-size:21px!important;
}
.zmpb .zmpb-page-text[data-spine-text="1"] .zmpb-text-size-controls .zmpb-inline-delete-text{font-size:17px!important}
@media(max-width:600px),(pointer:coarse){
 .zmpb .zmpb-page-text[data-spine-text="1"] .zmpb-text-size-controls{left:50%!important;right:auto!important;top:calc(50% + 38px)!important;gap:5px!important;transform:translate(-50%,-50%) rotate(-90deg)!important}
 .zmpb .zmpb-page-text[data-spine-text="1"] .zmpb-text-size-controls button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;font-size:23px!important}
}


/* v3.0.39 — mobile existing-text editor starts on the actual text content. */
@media(max-width:600px),(pointer:coarse){
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-tools>b,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-tools>p.hint,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-add,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-new-text-style,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-feedback,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-theme-captions,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-theme-stickers,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-sticker-edit{display:none!important}
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-edit{margin-top:0!important;padding-top:0!important;border-top:0!important}
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-content-label{margin-top:0!important}
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text #zmpb-text-content{min-height:120px!important}
}


/* v3.0.40 — mobile spine text stays physically inside the rendered spine. */
@media(max-width:600px),(pointer:coarse){
 .zmpb.zmpb-cover-page-active .zmpb-page-text[data-spine-text="1"]{
   line-height:.88!important;
   text-shadow:none!important;
 }
 .zmpb.zmpb-cover-page-active .zmpb-page-text[data-spine-text="1"] .zmpb-page-text-content{
   white-space:nowrap!important;
   overflow-wrap:normal!important;
   word-break:normal!important;
 }
}


/* v3.0.41 — existing-text editing opens directly on the edit controls on desktop too. */
@media(min-width:601px) and (pointer:fine){
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-tools>b,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-tools>p.hint,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-add,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-new-text-style,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-feedback,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-theme-captions,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-theme-stickers,
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-sticker-edit{display:none!important}
  .zmpb-layouts.zmpb-text-focus.zmpb-edit-existing-text .zmpb-text-edit{margin-top:0!important;padding-top:0!important;border-top:0!important}
}
\n\n/* v3.0.42 — spine controls are siblings of the rotated text, so they stay beside its visual center. */\n.zmpb .zmpb-spine-floating-controls{\n position:absolute!important;z-index:420!important;display:flex!important;gap:6px!important;\n opacity:0!important;visibility:hidden!important;pointer-events:none!important;\n transform:translate(18px,-50%)!important;transform-origin:center center!important;\n}\n.zmpb .zmpb-spine-floating-controls.is-selected{opacity:1!important;visibility:visible!important;pointer-events:auto!important}\n.zmpb .zmpb-spine-floating-controls button{\n width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;\n border:2px solid #c99a51!important;border-radius:999px!important;background:#171717!important;color:#fff!important;\n font:800 21px/1 Arial,sans-serif!important;box-shadow:0 2px 8px rgba(0,0,0,.25)!important;\n display:grid!important;place-items:center!important;cursor:pointer!important;touch-action:manipulation!important;\n}\n.zmpb .zmpb-spine-floating-controls .zmpb-inline-delete-text{background:#b91c1c!important;border-color:#b91c1c!important;font-size:17px!important}\n@media(max-width:600px),(pointer:coarse){\n .zmpb .zmpb-spine-floating-controls{transform:translate(12px,-50%)!important;gap:4px!important}\n .zmpb .zmpb-spine-floating-controls button{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;font-size:22px!important}\n}\n
/* v3.0.49 account / cross-device projects */
.zmpb-account-mini{display:flex;align-items:center;gap:9px}.zmpb-account-mini span{font-size:12px;font-weight:700}.zmpb-account-mini button,.zmpb-account-mini>a:not(.zmpb-app-exit){border:1px solid rgba(255,255,255,.35);background:transparent;color:inherit;border-radius:8px;padding:7px 10px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
@media(max-width:700px){.zmpb-account-mini span{display:none}.zmpb-account-mini{gap:5px}.zmpb-account-mini button,.zmpb-account-mini>a:not(.zmpb-app-exit){padding:6px 8px;font-size:11px}}

/* v3.0.69 WYSIWYG typography: do not synthesize semibold for script/display fonts. */
.zmpb .zmpb-page-text{font-weight:600!important;box-sizing:border-box!important}
.zmpb .zmpb-page-text[style*="Great Vibes"],.zmpb .zmpb-page-text[style*="Pacifico"],.zmpb .zmpb-page-text[style*="Dancing Script"],.zmpb .zmpb-page-text[style*="Caveat"]{font-weight:400!important}


/* v3.0.77 — mobile top controls: keep every primary action visible without horizontal clipping. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-appbar{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) auto!important;
  grid-template-rows:38px 38px!important;
  column-gap:6px!important;row-gap:2px!important;
  height:82px!important;min-height:82px!important;flex:0 0 82px!important;
  padding:2px 6px!important;overflow:visible!important;align-items:center!important;
 }
 body.zmpb-open .zmpb-appbar>.zmpb-v2-menu-toggle{
  display:block!important;grid-column:1!important;grid-row:1!important;
  width:28px!important;min-width:28px!important;height:36px!important;padding:0!important;
  font-size:21px!important;order:initial!important;
 }
 body.zmpb-open .zmpb-appbar>div:first-of-type{
  display:flex!important;grid-column:2!important;grid-row:1!important;
  min-width:0!important;align-items:center!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb-appbar>div:first-of-type b{display:block!important;font-size:12px!important;white-space:nowrap!important}
 body.zmpb-open .zmpb-appbar>div:first-of-type span{display:none!important}
 body.zmpb-open .zmpb-appbar>.zmpb-account-mini{display:none!important}
 body.zmpb-open .zmpb-appbar>.zmpb-mobile-finish{
  display:flex!important;grid-column:3!important;grid-row:1!important;order:initial!important;
  height:34px!important;min-height:34px!important;max-width:38vw!important;
  padding:0 8px!important;font-size:9px!important;white-space:nowrap!important;
 }
 body.zmpb-open .zmpb-appbar>label:first-of-type{
  display:block!important;grid-column:1 / 3!important;grid-row:2!important;
  min-width:0!important;width:auto!important;margin:0!important;
 }
 body.zmpb-open .zmpb-appbar>label:first-of-type>b{display:none!important}
 body.zmpb-open .zmpb-appbar>label:first-of-type select{
  width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;
  padding:3px 18px 3px 5px!important;font-size:10px!important;border-radius:6px!important;
  text-overflow:ellipsis!important;background:#fff!important;color:#222!important;
 }
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick{
  display:flex!important;grid-column:3!important;grid-row:2!important;
  align-items:center!important;justify-content:flex-end!important;gap:2px!important;
  min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;
 }
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 27px!important;width:27px!important;min-width:27px!important;height:34px!important;min-height:34px!important;
  padding:0!important;margin:0!important;border-radius:5px!important;
 }
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button b{font-size:16px!important;line-height:1!important}
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button small{display:none!important}
 body.zmpb-open .zmpb-v2-menu{top:81px!important}
}
@media (max-width:390px){
 body.zmpb-open .zmpb-appbar>.zmpb-flow-quick button{flex-basis:25px!important;width:25px!important;min-width:25px!important}
 body.zmpb-open .zmpb-appbar>.zmpb-mobile-finish{font-size:8px!important;padding:0 6px!important}
}
/* v3.0.78 — phone-to-desktop photo transfer */
.zmpb-phone-upload-trigger{display:block;width:100%;margin:8px 0 0;padding:11px 12px;border:1px solid #c79a3b;border-radius:9px;background:#fff;color:#222;font-weight:700;cursor:pointer}
.zmpb-phone-transfer-modal{position:fixed;inset:0;z-index:1000000;background:rgba(0,0,0,.68);display:flex;align-items:center;justify-content:center;padding:20px}
.zmpb-phone-transfer-card{position:relative;width:min(560px,94vw);background:#fff;color:#171717;border-radius:16px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.35);font-family:system-ui,-apple-system,sans-serif}
.zmpb-phone-transfer-card h2{margin:0 34px 8px 0;font-size:24px}.zmpb-phone-transfer-card p{line-height:1.45}.zmpb-phone-transfer-x{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:30px;cursor:pointer}
.zmpb-phone-link{padding:12px;border-radius:9px;background:#f3f3f3;word-break:break-all;font-size:12px;user-select:all}.zmpb-phone-transfer-actions{display:flex;gap:8px;margin:12px 0}.zmpb-phone-transfer-actions button{flex:1;padding:12px;border:0;border-radius:9px;background:#111;color:#fff;font-weight:700;cursor:pointer}#zmpb-phone-desktop-status{padding:10px;border-radius:8px;background:#fff7df;color:#5c4512}.zmpb-phone-transfer-card small{color:#666}
@media(max-width:600px){.zmpb-phone-transfer-actions{flex-direction:column}.zmpb-phone-transfer-card{padding:22px 18px}}
\n\n/* v3.0.80 — visible Classic/Magazin single-page vs full-spread selector. */
.zmpb-spread-mode-switch{display:flex;gap:6px;align-items:center;width:100%;box-sizing:border-box;margin:0 0 8px;padding:5px;background:#f4f1ea;border:1px solid #ded7c8;border-radius:9px}
.zmpb-spread-mode-switch button{appearance:none;border:1px solid #c9c1b2;background:#fff;color:#242424;border-radius:7px;min-height:34px;padding:6px 10px;font-size:11px;font-weight:800;line-height:1.1;cursor:pointer;white-space:nowrap}
.zmpb-spread-mode-switch button.active{background:#d9a84f;color:#17120a;border-color:#b98228;box-shadow:inset 0 0 0 1px #b98228}
.zmpb-spread-mode-switch button:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-work>.zmpb-side-template-library>.zmpb-side-template-scroll{display:flex!important;flex-direction:column!important;align-items:stretch!important}
 body.zmpb-open .zmpb-spread-mode-switch{display:grid!important;grid-template-columns:1fr 1.35fr!important;order:-20!important;margin:0 0 7px!important;padding:4px!important;gap:4px!important}
 body.zmpb-open .zmpb-spread-mode-switch button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:36px!important;padding:5px 4px!important;font-size:9px!important;white-space:normal!important;text-align:center!important}
}


/* v3.0.81 — compact mobile template rail so selector and thumbnails stay visible together. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb>.zmpb-work,
 body.zmpb-open .zmpb-work,
 body.zmpb-open .zmpb-work.templates-open{
   grid-template-rows:104px minmax(0,1fr) 104px!important;
   gap:5px!important;padding:5px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-side-template-library{padding:4px 6px!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title.zmpb-side-mode-tabs{
   height:27px!important;min-height:27px!important;max-height:27px!important;margin:0 0 2px!important;padding:0!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-side-template-title .zmpb-template-count-chooser{
   gap:3px!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button{
   height:24px!important;min-height:24px!important;width:27px!important;min-width:27px!important;flex-basis:27px!important;
   padding:0!important;font-size:10px!important;border-radius:6px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library>.zmpb-side-template-scroll{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important;
   height:69px!important;min-height:69px!important;max-height:69px!important;overflow:hidden!important;
 }
 body.zmpb-open .zmpb-spread-mode-switch{
   display:grid!important;grid-template-columns:1fr 1.35fr!important;
   flex:0 0 27px!important;height:27px!important;min-height:27px!important;max-height:27px!important;
   margin:0!important;padding:2px!important;gap:3px!important;border-radius:7px!important;
 }
 body.zmpb-open .zmpb-spread-mode-switch button{
   min-height:21px!important;height:21px!important;padding:1px 3px!important;
   font-size:8px!important;line-height:1!important;border-radius:5px!important;white-space:nowrap!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants{
   display:flex!important;flex:0 0 40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;
   padding:1px!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-variants .zmpb-side-template-btn{
   flex:0 0 52px!important;width:52px!important;min-width:52px!important;max-width:52px!important;
   height:36px!important;min-height:36px!important;max-height:36px!important;padding:2px!important;
 }
 body.zmpb-open .zmpb-work>.zmpb-canvas,
 body.zmpb-open .zmpb-work.templates-open>.zmpb-canvas{padding:4px 5px 3px!important}
}
@media (max-width:390px){
 body.zmpb-open .zmpb-spread-mode-switch button{font-size:7.5px!important}
 body.zmpb-open .zmpb-work>.zmpb-side-template-library .zmpb-template-count-chooser button{
   width:25px!important;min-width:25px!important;flex-basis:25px!important;
 }
}

/* v3.0.82 — compact mobile text editor */
@media (max-width:600px), (pointer:coarse){
body.zmpb-open .zmpb-layouts.zmpb-text-focus{padding:4px 7px calc(var(--zmpb-mobilebar-h,84px) + 6px)!important;overflow-y:auto!important}
body.zmpb-open .zmpb-layouts.zmpb-text-focus>.zmpb-text-tools{margin:0!important;padding:7px!important;padding-bottom:52px!important;border-radius:8px!important}
body.zmpb-open .zmpb-text-tools>p.hint,.zmpb-new-text-style>b,.zmpb-new-text-note{display:none!important}
body.zmpb-open .zmpb-text-tools>b{font-size:12px!important;line-height:1.1!important;margin:0 36px 3px 0!important}
body.zmpb-open .zmpb-text-add{grid-template-columns:minmax(0,1fr) 82px!important;gap:5px!important}
body.zmpb-open .zmpb-text-add textarea,body.zmpb-open .zmpb-text-content-label textarea{height:54px!important;min-height:54px!important;max-height:70px!important;resize:none!important;padding:6px 8px!important;font-size:16px!important;line-height:1.2!important}
body.zmpb-open .zmpb-text-add button{height:54px!important;min-height:54px!important;padding:3px!important;font-size:10px!important}
body.zmpb-open .zmpb-new-text-style{margin-top:4px!important;padding:5px!important}
body.zmpb-open .zmpb-new-text-style .zmpb-text-two,body.zmpb-open .zmpb-text-edit .zmpb-text-two{grid-template-columns:minmax(0,1fr) 54px!important;gap:5px!important;margin:2px 0!important}
body.zmpb-open .zmpb-text-two label{font-size:9px!important;gap:1px!important}
body.zmpb-open .zmpb-text-two select,body.zmpb-open .zmpb-text-two input[type=color]{height:31px!important;min-height:31px!important}
body.zmpb-open .zmpb-text-size-label{grid-template-columns:70px minmax(0,1fr)!important;align-items:center!important;gap:4px!important;margin:3px 0!important;font-size:9px!important}
body.zmpb-open .zmpb-text-align{gap:3px!important;margin:3px 0!important}
body.zmpb-open .zmpb-text-align button,body.zmpb-open .zmpb-text-rotate button{height:29px!important;min-height:29px!important;padding:2px!important;font-size:9px!important}
body.zmpb-open .zmpb-text-content-label{gap:2px!important;margin:0 0 3px!important}
body.zmpb-open .zmpb-text-content-label span{font-size:9px!important}
body.zmpb-open .zmpb-text-edit{margin-top:4px!important;padding-top:4px!important}
body.zmpb-open .zmpb-text-actions{gap:4px!important;margin-top:3px!important}
body.zmpb-open .zmpb-text-actions button{height:31px!important;min-height:31px!important;padding:2px 4px!important;font-size:9px!important}
body.zmpb-open .zmpb-text-donebar{position:sticky!important;bottom:0!important;margin-top:4px!important;padding-top:4px!important}
body.zmpb-open .zmpb-text-donebar button{height:38px!important;min-height:38px!important;font-size:11px!important}
}

/* v3.0.83 — mobile text editor: compact font picker + larger writing area. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open .zmpb-text-add{grid-template-columns:minmax(0,1fr) 82px!important;gap:5px!important}
 body.zmpb-open .zmpb-text-add textarea,
 body.zmpb-open .zmpb-text-content-label textarea{
   height:92px!important;min-height:92px!important;max-height:120px!important;
   padding:8px 10px!important;font-size:16px!important;line-height:1.25!important;
 }
 body.zmpb-open .zmpb-text-add button{height:92px!important;min-height:92px!important}
 /* Font choices become a compact horizontal rail instead of large 2-column cards. */
 body.zmpb-open .zmpb-font-grid,
 body.zmpb-open .zmpb-fonts,
 body.zmpb-open [class*="font-grid"]{
   display:flex!important;flex-wrap:nowrap!important;gap:4px!important;
   overflow-x:auto!important;overflow-y:hidden!important;
   padding:2px 0 4px!important;margin:0!important;
   -webkit-overflow-scrolling:touch!important;
   scrollbar-width:thin!important;
 }
 body.zmpb-open .zmpb-font-grid button,
 body.zmpb-open .zmpb-fonts button,
 body.zmpb-open [class*="font-grid"] button{
   flex:0 0 auto!important;width:auto!important;min-width:86px!important;max-width:126px!important;
   height:36px!important;min-height:36px!important;max-height:36px!important;
   padding:2px 9px!important;margin:0!important;border-radius:7px!important;
   font-size:15px!important;line-height:1!important;white-space:nowrap!important;
 }
 /* Fallback for the current font cards when their container has no dedicated class. */
 body.zmpb-open .zmpb-new-text-style label:has(+ button),
 body.zmpb-open .zmpb-text-edit label:has(+ button){margin-bottom:2px!important}
 body.zmpb-open .zmpb-new-text-style button[data-font],
 body.zmpb-open .zmpb-text-edit button[data-font],
 body.zmpb-open .zmpb-new-text-style .zmpb-font,
 body.zmpb-open .zmpb-text-edit .zmpb-font{
   min-height:36px!important;height:36px!important;padding:2px 8px!important;font-size:15px!important;
 }
 body.zmpb-open .zmpb-new-text-style{padding:4px 5px!important}
}

/* v3.0.84 — keep the active text field visible above the mobile keyboard. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-add,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-content-label{
   position:fixed!important;
   left:8px!important;right:8px!important;
   bottom:calc(var(--zmpb-vv-keyboard, 300px) + 6px)!important;
   z-index:1000002!important;
   margin:0!important;padding:5px!important;
   background:#fff!important;border:1px solid #d8d2c7!important;
   border-radius:9px!important;
   box-shadow:0 -3px 16px rgba(0,0,0,.18)!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-add{
   display:grid!important;grid-template-columns:minmax(0,1fr) 76px!important;gap:5px!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-add textarea,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-content-label textarea{
   display:block!important;width:100%!important;
   height:72px!important;min-height:72px!important;max-height:72px!important;
   margin:0!important;padding:7px 9px!important;
   font-size:16px!important;line-height:1.25!important;
   background:#fff!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-add button{
   height:72px!important;min-height:72px!important;margin:0!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-content-label span{
   display:none!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-layouts.zmpb-text-focus{
   padding-bottom:170px!important;
 }
}

/* v3.0.85 — keyboard mode: prioritize the writing field, not formatting controls. */
@media (max-width:600px), (pointer:coarse){
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-add,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-content-label{
   position:sticky!important;left:auto!important;right:auto!important;bottom:auto!important;top:4px!important;
   z-index:1000003!important;background:#fff!important;margin:0!important;padding:5px!important;
   border:1px solid #c99a51!important;border-radius:9px!important;box-shadow:0 3px 14px rgba(0,0,0,.16)!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-new-text-style,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-theme-captions,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-theme-stickers,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-edit>.zmpb-text-two,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-edit>.zmpb-text-size-label,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-edit>.zmpb-text-align,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-edit>.zmpb-text-rotate,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-edit>.zmpb-text-actions,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-donebar{
   display:none!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-add textarea,
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-content-label textarea{
   height:96px!important;min-height:96px!important;max-height:96px!important;
   font-size:16px!important;line-height:1.3!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-add button{
   height:96px!important;min-height:96px!important;
 }
 body.zmpb-open.zmpb-keyboard-writing .zmpb-text-tools{padding-bottom:8px!important}
}
